configure revision 1a9c160a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-input-elographics 1.4.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-input-elographics' 593PACKAGE_TARNAME='xf86-input-elographics' 594PACKAGE_VERSION='1.4.2' 595PACKAGE_STRING='xf86-input-elographics 1.4.2' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/issues' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640CHANGELOG_CMD 641MAN_SUBSTS 642XORG_MAN_PAGE 643ADMIN_MAN_DIR 644DRIVER_MAN_DIR 645MISC_MAN_DIR 646FILE_MAN_DIR 647LIB_MAN_DIR 648APP_MAN_DIR 649ADMIN_MAN_SUFFIX 650DRIVER_MAN_SUFFIX 651MISC_MAN_SUFFIX 652FILE_MAN_SUFFIX 653LIB_MAN_SUFFIX 654APP_MAN_SUFFIX 655DRIVER_NAME 656XORG_LIBS 657XORG_CFLAGS 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661inputdir 662CWARNFLAGS 663BASE_CFLAGS 664CPP 665LT_SYS_LIBRARY_PATH 666OTOOL64 667OTOOL 668LIPO 669NMEDIT 670DSYMUTIL 671MANIFEST_TOOL 672RANLIB 673ac_ct_AR 674AR 675DLLTOOL 676OBJDUMP 677LN_S 678NM 679ac_ct_DUMPBIN 680DUMPBIN 681LD 682FGREP 683EGREP 684GREP 685SED 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__include 694DEPDIR 695OBJEXT 696EXEEXT 697ac_ct_CC 698CPPFLAGS 699LDFLAGS 700CFLAGS 701CC 702host_os 703host_vendor 704host_cpu 705host 706build_os 707build_vendor 708build_cpu 709build 710LIBTOOL 711MAINT 712MAINTAINER_MODE_FALSE 713MAINTAINER_MODE_TRUE 714AM_BACKSLASH 715AM_DEFAULT_VERBOSITY 716AM_DEFAULT_V 717AM_V 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL 779am__quote' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_maintainer_mode 785enable_static 786enable_shared 787with_pic 788enable_fast_install 789with_aix_soname 790enable_dependency_tracking 791with_gnu_ld 792with_sysroot 793enable_libtool_lock 794enable_selective_werror 795with_xorg_module_dir 796' 797 ac_precious_vars='build_alias 798host_alias 799target_alias 800CC 801CFLAGS 802LDFLAGS 803LIBS 804CPPFLAGS 805LT_SYS_LIBRARY_PATH 806CPP 807PKG_CONFIG 808PKG_CONFIG_PATH 809PKG_CONFIG_LIBDIR 810XORG_CFLAGS 811XORG_LIBS' 812 813 814# Initialize some variables set by options. 815ac_init_help= 816ac_init_version=false 817ac_unrecognized_opts= 818ac_unrecognized_sep= 819# The variables have the same names as the options, with 820# dashes changed to underlines. 821cache_file=/dev/null 822exec_prefix=NONE 823no_create= 824no_recursion= 825prefix=NONE 826program_prefix=NONE 827program_suffix=NONE 828program_transform_name=s,x,x, 829silent= 830site= 831srcdir= 832verbose= 833x_includes=NONE 834x_libraries=NONE 835 836# Installation directory options. 837# These are left unexpanded so users can "make install exec_prefix=/foo" 838# and all the variables that are supposed to be based on exec_prefix 839# by default will actually change. 840# Use braces instead of parens because sh, perl, etc. also accept them. 841# (The list follows the same order as the GNU Coding Standards.) 842bindir='${exec_prefix}/bin' 843sbindir='${exec_prefix}/sbin' 844libexecdir='${exec_prefix}/libexec' 845datarootdir='${prefix}/share' 846datadir='${datarootdir}' 847sysconfdir='${prefix}/etc' 848sharedstatedir='${prefix}/com' 849localstatedir='${prefix}/var' 850includedir='${prefix}/include' 851oldincludedir='/usr/include' 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 853infodir='${datarootdir}/info' 854htmldir='${docdir}' 855dvidir='${docdir}' 856pdfdir='${docdir}' 857psdir='${docdir}' 858libdir='${exec_prefix}/lib' 859localedir='${datarootdir}/locale' 860mandir='${datarootdir}/man' 861 862ac_prev= 863ac_dashdash= 864for ac_option 865do 866 # If the previous option needs an argument, assign it. 867 if test -n "$ac_prev"; then 868 eval $ac_prev=\$ac_option 869 ac_prev= 870 continue 871 fi 872 873 case $ac_option in 874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875 *=) ac_optarg= ;; 876 *) ac_optarg=yes ;; 877 esac 878 879 # Accept the important Cygnus configure options, so we can diagnose typos. 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: $ac_useropt" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220done 1221 1222if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225fi 1226 1227if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233fi 1234 1235# Check all directory arguments for consistency. 1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir 1240do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254done 1255 1256# There might be people who depend on the old broken behavior: `$host' 1257# used to hold the argument of --host etc. 1258# FIXME: To remove some day. 1259build=$build_alias 1260host=$host_alias 1261target=$target_alias 1262 1263# FIXME: To remove some day. 1264if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295$as_echo X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures xf86-input-elographics 1.4.2 to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root 1401 [DATAROOTDIR/doc/xf86-input-elographics] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410Program names: 1411 --program-prefix=PREFIX prepend PREFIX to installed program names 1412 --program-suffix=SUFFIX append SUFFIX to installed program names 1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414 1415System types: 1416 --build=BUILD configure for building on BUILD [guessed] 1417 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418_ACEOF 1419fi 1420 1421if test -n "$ac_init_help"; then 1422 case $ac_init_help in 1423 short | recursive ) echo "Configuration of xf86-input-elographics 1.4.2:";; 1424 esac 1425 cat <<\_ACEOF 1426 1427Optional Features: 1428 --disable-option-checking ignore unrecognized --enable/--with options 1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-maintainer-mode 1434 enable make rules and dependencies not useful (and 1435 sometimes confusing) to the casual installer 1436 --enable-static[=PKGS] build static libraries [default=no] 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-fast-install[=PKGS] 1439 optimize for fast installation [default=yes] 1440 --enable-dependency-tracking 1441 do not reject slow dependency extractors 1442 --disable-dependency-tracking 1443 speeds up one-time build 1444 --disable-libtool-lock avoid locking (might break parallel builds) 1445 --disable-selective-werror 1446 Turn off selective compiler errors. (default: 1447 enabled) 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-aix-soname=aix|svr4|both 1455 shared library versioning (aka "SONAME") variant to 1456 provide on AIX, [default=aix]. 1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1458 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1459 compiler's sysroot if not specified). 1460 --with-xorg-module-dir=DIR 1461 Default xorg module directory 1462 [[default=$libdir/xorg/modules]] 1463 1464Some influential environment variables: 1465 CC C compiler command 1466 CFLAGS C compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 LT_SYS_LIBRARY_PATH 1473 User-defined run-time library search path. 1474 CPP C preprocessor 1475 PKG_CONFIG path to pkg-config utility 1476 PKG_CONFIG_PATH 1477 directories to add to pkg-config's search path 1478 PKG_CONFIG_LIBDIR 1479 path overriding pkg-config's built-in search path 1480 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1481 XORG_LIBS linker flags for XORG, overriding pkg-config 1482 1483Use these variables to override the choices made by `configure' or to help 1484it to find libraries and programs with nonstandard names/locations. 1485 1486Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/issues>. 1487_ACEOF 1488ac_status=$? 1489fi 1490 1491if test "$ac_init_help" = "recursive"; then 1492 # If there are subdirs, report their specific --help. 1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1494 test -d "$ac_dir" || 1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1496 continue 1497 ac_builddir=. 1498 1499case "$ac_dir" in 1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501*) 1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1503 # A ".." for each directory in $ac_dir_suffix. 1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1505 case $ac_top_builddir_sub in 1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1508 esac ;; 1509esac 1510ac_abs_top_builddir=$ac_pwd 1511ac_abs_builddir=$ac_pwd$ac_dir_suffix 1512# for backward compatibility: 1513ac_top_builddir=$ac_top_build_prefix 1514 1515case $srcdir in 1516 .) # We are building in place. 1517 ac_srcdir=. 1518 ac_top_srcdir=$ac_top_builddir_sub 1519 ac_abs_top_srcdir=$ac_pwd ;; 1520 [\\/]* | ?:[\\/]* ) # Absolute name. 1521 ac_srcdir=$srcdir$ac_dir_suffix; 1522 ac_top_srcdir=$srcdir 1523 ac_abs_top_srcdir=$srcdir ;; 1524 *) # Relative name. 1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1526 ac_top_srcdir=$ac_top_build_prefix$srcdir 1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1528esac 1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1530 1531 cd "$ac_dir" || { ac_status=$?; continue; } 1532 # Check for guested configure. 1533 if test -f "$ac_srcdir/configure.gnu"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1536 elif test -f "$ac_srcdir/configure"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure" --help=recursive 1539 else 1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1541 fi || ac_status=$? 1542 cd "$ac_pwd" || { ac_status=$?; break; } 1543 done 1544fi 1545 1546test -n "$ac_init_help" && exit $ac_status 1547if $ac_init_version; then 1548 cat <<\_ACEOF 1549xf86-input-elographics configure 1.4.2 1550generated by GNU Autoconf 2.69 1551 1552Copyright (C) 2012 Free Software Foundation, Inc. 1553This configure script is free software; the Free Software Foundation 1554gives unlimited permission to copy, distribute and modify it. 1555_ACEOF 1556 exit 1557fi 1558 1559## ------------------------ ## 1560## Autoconf initialization. ## 1561## ------------------------ ## 1562 1563# ac_fn_c_try_compile LINENO 1564# -------------------------- 1565# Try to compile conftest.$ac_ext, and return whether this succeeded. 1566ac_fn_c_try_compile () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 rm -f conftest.$ac_objext 1570 if { { ac_try="$ac_compile" 1571case "(($ac_try" in 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573 *) ac_try_echo=$ac_try;; 1574esac 1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576$as_echo "$ac_try_echo"; } >&5 1577 (eval "$ac_compile") 2>conftest.err 1578 ac_status=$? 1579 if test -s conftest.err; then 1580 grep -v '^ *+' conftest.err >conftest.er1 1581 cat conftest.er1 >&5 1582 mv -f conftest.er1 conftest.err 1583 fi 1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585 test $ac_status = 0; } && { 1586 test -z "$ac_c_werror_flag" || 1587 test ! -s conftest.err 1588 } && test -s conftest.$ac_objext; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597 as_fn_set_status $ac_retval 1598 1599} # ac_fn_c_try_compile 1600 1601# ac_fn_c_try_link LINENO 1602# ----------------------- 1603# Try to link conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_link () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext conftest$ac_exeext 1608 if { { ac_try="$ac_link" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_link") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest$ac_exeext && { 1627 test "$cross_compiling" = yes || 1628 test -x conftest$ac_exeext 1629 }; then : 1630 ac_retval=0 1631else 1632 $as_echo "$as_me: failed program was:" >&5 1633sed 's/^/| /' conftest.$ac_ext >&5 1634 1635 ac_retval=1 1636fi 1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1639 # interfere with the next link command; also delete a directory that is 1640 # left behind by Apple's compiler. We do this before executing the actions. 1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_link 1646 1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648# ------------------------------------------------------- 1649# Tests whether HEADER exists and can be compiled using the include files in 1650# INCLUDES, setting the cache variable VAR accordingly. 1651ac_fn_c_check_header_compile () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if eval \${$3+:} false; then : 1657 $as_echo_n "(cached) " >&6 1658else 1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1660/* end confdefs.h. */ 1661$4 1662#include <$2> 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO"; then : 1665 eval "$3=yes" 1666else 1667 eval "$3=no" 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670fi 1671eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673$as_echo "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_header_compile 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_func LINENO FUNC VAR 1758# ---------------------------------- 1759# Tests whether FUNC exists, setting the cache variable VAR accordingly 1760ac_fn_c_check_func () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1772#define $2 innocuous_$2 1773 1774/* System header to define __stub macros and hopefully few prototypes, 1775 which can conflict with char $2 (); below. 1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1777 <limits.h> exists even on freestanding compilers. */ 1778 1779#ifdef __STDC__ 1780# include <limits.h> 1781#else 1782# include <assert.h> 1783#endif 1784 1785#undef $2 1786 1787/* Override any GCC internal prototype to avoid an error. 1788 Use char because int might match the return type of a GCC 1789 builtin and then its argument prototype would still apply. */ 1790#ifdef __cplusplus 1791extern "C" 1792#endif 1793char $2 (); 1794/* The GNU C library defines this for functions which it implements 1795 to always fail with ENOSYS. Some functions are actually named 1796 something starting with __ and the normal name is an alias. */ 1797#if defined __stub_$2 || defined __stub___$2 1798choke me 1799#endif 1800 1801int 1802main () 1803{ 1804return $2 (); 1805 ; 1806 return 0; 1807} 1808_ACEOF 1809if ac_fn_c_try_link "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext \ 1815 conftest$ac_exeext conftest.$ac_ext 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 1822} # ac_fn_c_check_func 1823 1824# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1825# --------------------------------------------- 1826# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1827# accordingly. 1828ac_fn_c_check_decl () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 as_decl_name=`echo $2|sed 's/ *(.*//'` 1832 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1834$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841int 1842main () 1843{ 1844#ifndef $as_decl_name 1845#ifdef __cplusplus 1846 (void) $as_decl_use; 1847#else 1848 (void) $as_decl_name; 1849#endif 1850#endif 1851 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_compile "$LINENO"; then : 1857 eval "$3=yes" 1858else 1859 eval "$3=no" 1860fi 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_decl 1869cat >config.log <<_ACEOF 1870This file contains any messages produced by compilers while 1871running configure, to aid debugging if configure makes a mistake. 1872 1873It was created by xf86-input-elographics $as_me 1.4.2, which was 1874generated by GNU Autoconf 2.69. Invocation command line was 1875 1876 $ $0 $@ 1877 1878_ACEOF 1879exec 5>>config.log 1880{ 1881cat <<_ASUNAME 1882## --------- ## 1883## Platform. ## 1884## --------- ## 1885 1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1887uname -m = `(uname -m) 2>/dev/null || echo unknown` 1888uname -r = `(uname -r) 2>/dev/null || echo unknown` 1889uname -s = `(uname -s) 2>/dev/null || echo unknown` 1890uname -v = `(uname -v) 2>/dev/null || echo unknown` 1891 1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1893/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1894 1895/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1896/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1898/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1899/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1900/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1901/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1902 1903_ASUNAME 1904 1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1906for as_dir in $PATH 1907do 1908 IFS=$as_save_IFS 1909 test -z "$as_dir" && as_dir=. 1910 $as_echo "PATH: $as_dir" 1911 done 1912IFS=$as_save_IFS 1913 1914} >&5 1915 1916cat >&5 <<_ACEOF 1917 1918 1919## ----------- ## 1920## Core tests. ## 1921## ----------- ## 1922 1923_ACEOF 1924 1925 1926# Keep a trace of the command line. 1927# Strip out --no-create and --no-recursion so they do not pile up. 1928# Strip out --silent because we don't want to record it for future runs. 1929# Also quote any args containing shell meta-characters. 1930# Make two passes to allow for proper duplicate-argument suppression. 1931ac_configure_args= 1932ac_configure_args0= 1933ac_configure_args1= 1934ac_must_keep_next=false 1935for ac_pass in 1 2 1936do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970done 1971{ ac_configure_args0=; unset ac_configure_args0;} 1972{ ac_configure_args1=; unset ac_configure_args1;} 1973 1974# When interrupted or exit'd, cleanup temporary files, and complete 1975# config.log. We remove comments because anyway the quotes in there 1976# would cause problems or look ugly. 1977# WARNING: Use '\'' to represent an apostrophe within the trap. 1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979trap 'exit_status=$? 1980 # Save into config.log some information that might help in debugging. 1981 { 1982 echo 1983 1984 $as_echo "## ---------------- ## 1985## Cache variables. ## 1986## ---------------- ##" 1987 echo 1988 # The following way of writing the cache mishandles newlines in values, 1989( 1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in #( 1993 *${as_nl}*) 1994 case $ac_var in #( 1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1997 esac 1998 case $ac_var in #( 1999 _ | IFS | as_nl) ;; #( 2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2001 *) { eval $ac_var=; unset $ac_var;} ;; 2002 esac ;; 2003 esac 2004 done 2005 (set) 2>&1 | 2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2007 *${as_nl}ac_space=\ *) 2008 sed -n \ 2009 "s/'\''/'\''\\\\'\'''\''/g; 2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2011 ;; #( 2012 *) 2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2014 ;; 2015 esac | 2016 sort 2017) 2018 echo 2019 2020 $as_echo "## ----------------- ## 2021## Output variables. ## 2022## ----------------- ##" 2023 echo 2024 for ac_var in $ac_subst_vars 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 $as_echo "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 2034 if test -n "$ac_subst_files"; then 2035 $as_echo "## ------------------- ## 2036## File substitutions. ## 2037## ------------------- ##" 2038 echo 2039 for ac_var in $ac_subst_files 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 fi 2049 2050 if test -s confdefs.h; then 2051 $as_echo "## ----------- ## 2052## confdefs.h. ## 2053## ----------- ##" 2054 echo 2055 cat confdefs.h 2056 echo 2057 fi 2058 test "$ac_signal" != 0 && 2059 $as_echo "$as_me: caught signal $ac_signal" 2060 $as_echo "$as_me: exit $exit_status" 2061 } >&5 2062 rm -f core *.core core.conftest.* && 2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2064 exit $exit_status 2065' 0 2066for ac_signal in 1 2 13 15; do 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2068done 2069ac_signal=0 2070 2071# confdefs.h avoids OS command line length limits that DEFS can exceed. 2072rm -f -r conftest* confdefs.h 2073 2074$as_echo "/* confdefs.h */" > confdefs.h 2075 2076# Predefined preprocessor variables. 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_NAME "$PACKAGE_NAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_VERSION "$PACKAGE_VERSION" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_STRING "$PACKAGE_STRING" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_URL "$PACKAGE_URL" 2100_ACEOF 2101 2102 2103# Let the site file select an alternate cache file if it wants to. 2104# Prefer an explicitly selected file to automatically selected ones. 2105ac_site_file1=NONE 2106ac_site_file2=NONE 2107if test -n "$CONFIG_SITE"; then 2108 # We do not want a PATH search for config.site. 2109 case $CONFIG_SITE in #(( 2110 -*) ac_site_file1=./$CONFIG_SITE;; 2111 */*) ac_site_file1=$CONFIG_SITE;; 2112 *) ac_site_file1=./$CONFIG_SITE;; 2113 esac 2114elif test "x$prefix" != xNONE; then 2115 ac_site_file1=$prefix/share/config.site 2116 ac_site_file2=$prefix/etc/config.site 2117else 2118 ac_site_file1=$ac_default_prefix/share/config.site 2119 ac_site_file2=$ac_default_prefix/etc/config.site 2120fi 2121for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2122do 2123 test "x$ac_site_file" = xNONE && continue 2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2126$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2127 sed 's/^/| /' "$ac_site_file" >&5 2128 . "$ac_site_file" \ 2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2131as_fn_error $? "failed to load site script $ac_site_file 2132See \`config.log' for more details" "$LINENO" 5; } 2133 fi 2134done 2135 2136if test -r "$cache_file"; then 2137 # Some versions of bash will fail to source /dev/null (special files 2138 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2139 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2141$as_echo "$as_me: loading cache $cache_file" >&6;} 2142 case $cache_file in 2143 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2144 *) . "./$cache_file";; 2145 esac 2146 fi 2147else 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2149$as_echo "$as_me: creating cache $cache_file" >&6;} 2150 >$cache_file 2151fi 2152 2153# Check that the precious variables saved in the cache have kept the same 2154# value. 2155ac_cache_corrupted=false 2156for ac_var in $ac_precious_vars; do 2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2158 eval ac_new_set=\$ac_env_${ac_var}_set 2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2160 eval ac_new_val=\$ac_env_${ac_var}_value 2161 case $ac_old_set,$ac_new_set in 2162 set,) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2165 ac_cache_corrupted=: ;; 2166 ,set) 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2169 ac_cache_corrupted=: ;; 2170 ,);; 2171 *) 2172 if test "x$ac_old_val" != "x$ac_new_val"; then 2173 # differences in whitespace do not lead to failure. 2174 ac_old_val_w=`echo x $ac_old_val` 2175 ac_new_val_w=`echo x $ac_new_val` 2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2179 ac_cache_corrupted=: 2180 else 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2183 eval $ac_var=\$ac_old_val 2184 fi 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2186$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2188$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2189 fi;; 2190 esac 2191 # Pass precious variables to config.status. 2192 if test "$ac_new_set" = set; then 2193 case $ac_new_val in 2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2195 *) ac_arg=$ac_var=$ac_new_val ;; 2196 esac 2197 case " $ac_configure_args " in 2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2200 esac 2201 fi 2202done 2203if $ac_cache_corrupted; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2208 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2209fi 2210## -------------------- ## 2211## Main body of script. ## 2212## -------------------- ## 2213 2214ac_ext=c 2215ac_cpp='$CPP $CPPFLAGS' 2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2218ac_compiler_gnu=$ac_cv_c_compiler_gnu 2219 2220 2221 2222 2223ac_aux_dir= 2224for ac_dir in . "$srcdir"/.; do 2225 if test -f "$ac_dir/install-sh"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/install-sh -c" 2228 break 2229 elif test -f "$ac_dir/install.sh"; then 2230 ac_aux_dir=$ac_dir 2231 ac_install_sh="$ac_aux_dir/install.sh -c" 2232 break 2233 elif test -f "$ac_dir/shtool"; then 2234 ac_aux_dir=$ac_dir 2235 ac_install_sh="$ac_aux_dir/shtool install -c" 2236 break 2237 fi 2238done 2239if test -z "$ac_aux_dir"; then 2240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2241fi 2242 2243# These three variables are undocumented and unsupported, 2244# and are intended to be withdrawn in a future Autoconf release. 2245# They can cause serious problems if a builder's source tree is in a directory 2246# whose full name contains unusual characters. 2247ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2248ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2249ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2250 2251 2252am__api_version='1.16' 2253 2254# Find a good install program. We prefer a C program (faster), 2255# so one script is as good as another. But avoid the broken or 2256# incompatible versions: 2257# SysV /etc/install, /usr/sbin/install 2258# SunOS /usr/etc/install 2259# IRIX /sbin/install 2260# AIX /bin/install 2261# AmigaOS /C/install, which installs bootblocks on floppy discs 2262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2263# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2265# OS/2's system install, which has a completely different semantic 2266# ./install, which can be erroneously created by make from ./install.sh. 2267# Reject install programs that cannot install multiple files. 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2269$as_echo_n "checking for a BSD-compatible install... " >&6; } 2270if test -z "$INSTALL"; then 2271if ${ac_cv_path_install+:} false; then : 2272 $as_echo_n "(cached) " >&6 2273else 2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2275for as_dir in $PATH 2276do 2277 IFS=$as_save_IFS 2278 test -z "$as_dir" && as_dir=. 2279 # Account for people who put trailing slashes in PATH elements. 2280case $as_dir/ in #(( 2281 ./ | .// | /[cC]/* | \ 2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2284 /usr/ucb/* ) ;; 2285 *) 2286 # OSF1 and SCO ODT 3.0 have their own names for install. 2287 # Don't use installbsd from OSF since it installs stuff as root 2288 # by default. 2289 for ac_prog in ginstall scoinst install; do 2290 for ac_exec_ext in '' $ac_executable_extensions; do 2291 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2292 if test $ac_prog = install && 2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2294 # AIX install. It has an incompatible calling convention. 2295 : 2296 elif test $ac_prog = install && 2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2298 # program-specific install script used by HP pwplus--don't use. 2299 : 2300 else 2301 rm -rf conftest.one conftest.two conftest.dir 2302 echo one > conftest.one 2303 echo two > conftest.two 2304 mkdir conftest.dir 2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2306 test -s conftest.one && test -s conftest.two && 2307 test -s conftest.dir/conftest.one && 2308 test -s conftest.dir/conftest.two 2309 then 2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2311 break 3 2312 fi 2313 fi 2314 fi 2315 done 2316 done 2317 ;; 2318esac 2319 2320 done 2321IFS=$as_save_IFS 2322 2323rm -rf conftest.one conftest.two conftest.dir 2324 2325fi 2326 if test "${ac_cv_path_install+set}" = set; then 2327 INSTALL=$ac_cv_path_install 2328 else 2329 # As a last resort, use the slow shell script. Don't cache a 2330 # value for INSTALL within a source directory, because that will 2331 # break other packages using the cache if that directory is 2332 # removed, or if the value is a relative name. 2333 INSTALL=$ac_install_sh 2334 fi 2335fi 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2337$as_echo "$INSTALL" >&6; } 2338 2339# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2340# It thinks the first close brace ends the variable substitution. 2341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2342 2343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2344 2345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2346 2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2348$as_echo_n "checking whether build environment is sane... " >&6; } 2349# Reject unsafe characters in $srcdir or the absolute working directory 2350# name. Accept space and tab only in the latter. 2351am_lf=' 2352' 2353case `pwd` in 2354 *[\\\"\#\$\&\'\`$am_lf]*) 2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2356esac 2357case $srcdir in 2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2359 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2360esac 2361 2362# Do 'set' in a subshell so we don't clobber the current shell's 2363# arguments. Must try -L first in case configure is actually a 2364# symlink; some systems play weird games with the mod time of symlinks 2365# (eg FreeBSD returns the mod time of the symlink's containing 2366# directory). 2367if ( 2368 am_has_slept=no 2369 for am_try in 1 2; do 2370 echo "timestamp, slept: $am_has_slept" > conftest.file 2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2372 if test "$*" = "X"; then 2373 # -L didn't work. 2374 set X `ls -t "$srcdir/configure" conftest.file` 2375 fi 2376 if test "$*" != "X $srcdir/configure conftest.file" \ 2377 && test "$*" != "X conftest.file $srcdir/configure"; then 2378 2379 # If neither matched, then we have a broken ls. This can happen 2380 # if, for instance, CONFIG_SHELL is bash and it inherits a 2381 # broken ls alias from the environment. This has actually 2382 # happened. Such a system could not be considered "sane". 2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2384 alias in your environment" "$LINENO" 5 2385 fi 2386 if test "$2" = conftest.file || test $am_try -eq 2; then 2387 break 2388 fi 2389 # Just in case. 2390 sleep 1 2391 am_has_slept=yes 2392 done 2393 test "$2" = conftest.file 2394 ) 2395then 2396 # Ok. 2397 : 2398else 2399 as_fn_error $? "newly created file is older than distributed files! 2400Check your system clock" "$LINENO" 5 2401fi 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2403$as_echo "yes" >&6; } 2404# If we didn't sleep, we still need to ensure time stamps of config.status and 2405# generated files are strictly newer. 2406am_sleep_pid= 2407if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2408 ( sleep 1 ) & 2409 am_sleep_pid=$! 2410fi 2411 2412rm -f conftest.file 2413 2414test "$program_prefix" != NONE && 2415 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2416# Use a double $ so make ignores it. 2417test "$program_suffix" != NONE && 2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2419# Double any \ or $. 2420# By default was `s,x,x', remove it if useless. 2421ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2422program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2423 2424# Expand $ac_aux_dir to an absolute path. 2425am_aux_dir=`cd "$ac_aux_dir" && pwd` 2426 2427if test x"${MISSING+set}" != xset; then 2428 case $am_aux_dir in 2429 *\ * | *\ *) 2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2431 *) 2432 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2433 esac 2434fi 2435# Use eval to expand $SHELL 2436if eval "$MISSING --is-lightweight"; then 2437 am_missing_run="$MISSING " 2438else 2439 am_missing_run= 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2441$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2442fi 2443 2444if test x"${install_sh+set}" != xset; then 2445 case $am_aux_dir in 2446 *\ * | *\ *) 2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2448 *) 2449 install_sh="\${SHELL} $am_aux_dir/install-sh" 2450 esac 2451fi 2452 2453# Installed binaries are usually stripped using 'strip' when the user 2454# run "make install-strip". However 'strip' might not be the right 2455# tool to use in cross-compilation environments, therefore Automake 2456# will honor the 'STRIP' environment variable to overrule this program. 2457if test "$cross_compiling" != no; then 2458 if test -n "$ac_tool_prefix"; then 2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2460set dummy ${ac_tool_prefix}strip; ac_word=$2 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2462$as_echo_n "checking for $ac_word... " >&6; } 2463if ${ac_cv_prog_STRIP+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465else 2466 if test -n "$STRIP"; then 2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481 done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486STRIP=$ac_cv_prog_STRIP 2487if test -n "$STRIP"; then 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2489$as_echo "$STRIP" >&6; } 2490else 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2492$as_echo "no" >&6; } 2493fi 2494 2495 2496fi 2497if test -z "$ac_cv_prog_STRIP"; then 2498 ac_ct_STRIP=$STRIP 2499 # Extract the first word of "strip", so it can be a program name with args. 2500set dummy strip; ac_word=$2 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2502$as_echo_n "checking for $ac_word... " >&6; } 2503if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505else 2506 if test -n "$ac_ct_STRIP"; then 2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2516 ac_cv_prog_ac_ct_STRIP="strip" 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521 done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2527if test -n "$ac_ct_STRIP"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2529$as_echo "$ac_ct_STRIP" >&6; } 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2532$as_echo "no" >&6; } 2533fi 2534 2535 if test "x$ac_ct_STRIP" = x; then 2536 STRIP=":" 2537 else 2538 case $cross_compiling:$ac_tool_warned in 2539yes:) 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2542ac_tool_warned=yes ;; 2543esac 2544 STRIP=$ac_ct_STRIP 2545 fi 2546else 2547 STRIP="$ac_cv_prog_STRIP" 2548fi 2549 2550fi 2551INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2552 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2554$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2555if test -z "$MKDIR_P"; then 2556 if ${ac_cv_path_mkdir+:} false; then : 2557 $as_echo_n "(cached) " >&6 2558else 2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 for ac_prog in mkdir gmkdir; do 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2568 'mkdir (GNU coreutils) '* | \ 2569 'mkdir (coreutils) '* | \ 2570 'mkdir (fileutils) '4.1*) 2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2572 break 3;; 2573 esac 2574 done 2575 done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580 2581 test -d ./--version && rmdir ./--version 2582 if test "${ac_cv_path_mkdir+set}" = set; then 2583 MKDIR_P="$ac_cv_path_mkdir -p" 2584 else 2585 # As a last resort, use the slow shell script. Don't cache a 2586 # value for MKDIR_P within a source directory, because that will 2587 # break other packages using the cache if that directory is 2588 # removed, or if the value is a relative name. 2589 MKDIR_P="$ac_install_sh -d" 2590 fi 2591fi 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2593$as_echo "$MKDIR_P" >&6; } 2594 2595for ac_prog in gawk mawk nawk awk 2596do 2597 # Extract the first word of "$ac_prog", so it can be a program name with args. 2598set dummy $ac_prog; ac_word=$2 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2600$as_echo_n "checking for $ac_word... " >&6; } 2601if ${ac_cv_prog_AWK+:} false; then : 2602 $as_echo_n "(cached) " >&6 2603else 2604 if test -n "$AWK"; then 2605 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2606else 2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH 2609do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2614 ac_cv_prog_AWK="$ac_prog" 2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2616 break 2 2617 fi 2618done 2619 done 2620IFS=$as_save_IFS 2621 2622fi 2623fi 2624AWK=$ac_cv_prog_AWK 2625if test -n "$AWK"; then 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2627$as_echo "$AWK" >&6; } 2628else 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2630$as_echo "no" >&6; } 2631fi 2632 2633 2634 test -n "$AWK" && break 2635done 2636 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2639set x ${MAKE-make} 2640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 cat >conftest.make <<\_ACEOF 2645SHELL = /bin/sh 2646all: 2647 @echo '@@@%%%=$(MAKE)=@@@%%%' 2648_ACEOF 2649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2650case `${MAKE-make} -f conftest.make 2>/dev/null` in 2651 *@@@%%%=?*=@@@%%%*) 2652 eval ac_cv_prog_make_${ac_make}_set=yes;; 2653 *) 2654 eval ac_cv_prog_make_${ac_make}_set=no;; 2655esac 2656rm -f conftest.make 2657fi 2658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2660$as_echo "yes" >&6; } 2661 SET_MAKE= 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664$as_echo "no" >&6; } 2665 SET_MAKE="MAKE=${MAKE-make}" 2666fi 2667 2668rm -rf .tst 2>/dev/null 2669mkdir .tst 2>/dev/null 2670if test -d .tst; then 2671 am__leading_dot=. 2672else 2673 am__leading_dot=_ 2674fi 2675rmdir .tst 2>/dev/null 2676 2677# Check whether --enable-silent-rules was given. 2678if test "${enable_silent_rules+set}" = set; then : 2679 enableval=$enable_silent_rules; 2680fi 2681 2682case $enable_silent_rules in # ((( 2683 yes) AM_DEFAULT_VERBOSITY=0;; 2684 no) AM_DEFAULT_VERBOSITY=1;; 2685 *) AM_DEFAULT_VERBOSITY=1;; 2686esac 2687am_make=${MAKE-make} 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2689$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2690if ${am_cv_make_support_nested_variables+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if $as_echo 'TRUE=$(BAR$(V)) 2694BAR0=false 2695BAR1=true 2696V=1 2697am__doit: 2698 @$(TRUE) 2699.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2700 am_cv_make_support_nested_variables=yes 2701else 2702 am_cv_make_support_nested_variables=no 2703fi 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2706$as_echo "$am_cv_make_support_nested_variables" >&6; } 2707if test $am_cv_make_support_nested_variables = yes; then 2708 AM_V='$(V)' 2709 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2710else 2711 AM_V=$AM_DEFAULT_VERBOSITY 2712 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2713fi 2714AM_BACKSLASH='\' 2715 2716if test "`cd $srcdir && pwd`" != "`pwd`"; then 2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2718 # is not polluted with repeated "-I." 2719 am__isrc=' -I$(srcdir)' 2720 # test to see if srcdir already configured 2721 if test -f $srcdir/config.status; then 2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2723 fi 2724fi 2725 2726# test whether we have cygpath 2727if test -z "$CYGPATH_W"; then 2728 if (cygpath --version) >/dev/null 2>/dev/null; then 2729 CYGPATH_W='cygpath -w' 2730 else 2731 CYGPATH_W=echo 2732 fi 2733fi 2734 2735 2736# Define the identity of the package. 2737 PACKAGE='xf86-input-elographics' 2738 VERSION='1.4.2' 2739 2740 2741cat >>confdefs.h <<_ACEOF 2742#define PACKAGE "$PACKAGE" 2743_ACEOF 2744 2745 2746cat >>confdefs.h <<_ACEOF 2747#define VERSION "$VERSION" 2748_ACEOF 2749 2750# Some tools Automake needs. 2751 2752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2753 2754 2755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2756 2757 2758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2759 2760 2761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2762 2763 2764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2765 2766# For better backward compatibility. To be removed once Automake 1.9.x 2767# dies out for good. For more background, see: 2768# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2769# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2770mkdir_p='$(MKDIR_P)' 2771 2772# We need awk for the "check" target (and possibly the TAP driver). The 2773# system "awk" is bad on some platforms. 2774# Always define AMTAR for backward compatibility. Yes, it's still used 2775# in the wild :-( We should find a proper way to deprecate it ... 2776AMTAR='$${TAR-tar}' 2777 2778 2779# We'll loop over all known methods to create a tar archive until one works. 2780_am_tools='gnutar pax cpio none' 2781 2782am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2783 2784 2785 2786 2787 2788 2789# POSIX will say in a future version that running "rm -f" with no argument 2790# is OK; and we want to be able to make that assumption in our Makefile 2791# recipes. So use an aggressive probe to check that the usage we want is 2792# actually supported "in the wild" to an acceptable degree. 2793# See automake bug#10828. 2794# To make any issue more visible, cause the running configure to be aborted 2795# by default if the 'rm' program in use doesn't match our expectations; the 2796# user can still override this though. 2797if rm -f && rm -fr && rm -rf; then : OK; else 2798 cat >&2 <<'END' 2799Oops! 2800 2801Your 'rm' program seems unable to run without file operands specified 2802on the command line, even when the '-f' option is present. This is contrary 2803to the behaviour of most rm programs out there, and not conforming with 2804the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2805 2806Please tell bug-automake@gnu.org about your system, including the value 2807of your $PATH and any error possibly output before this message. This 2808can help us improve future automake versions. 2809 2810END 2811 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2812 echo 'Configuration will proceed anyway, since you have set the' >&2 2813 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2814 echo >&2 2815 else 2816 cat >&2 <<'END' 2817Aborting the configuration process, to ensure you take notice of the issue. 2818 2819You can download and install GNU coreutils to get an 'rm' implementation 2820that behaves properly: <https://www.gnu.org/software/coreutils/>. 2821 2822If you want to complete the configuration process using your problematic 2823'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2824to "yes", and re-run configure. 2825 2826END 2827 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2828 fi 2829fi 2830 2831 2832 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2834$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2835 # Check whether --enable-maintainer-mode was given. 2836if test "${enable_maintainer_mode+set}" = set; then : 2837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2838else 2839 USE_MAINTAINER_MODE=no 2840fi 2841 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2843$as_echo "$USE_MAINTAINER_MODE" >&6; } 2844 if test $USE_MAINTAINER_MODE = yes; then 2845 MAINTAINER_MODE_TRUE= 2846 MAINTAINER_MODE_FALSE='#' 2847else 2848 MAINTAINER_MODE_TRUE='#' 2849 MAINTAINER_MODE_FALSE= 2850fi 2851 2852 MAINT=$MAINTAINER_MODE_TRUE 2853 2854 2855 2856# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868ac_config_headers="$ac_config_headers config.h" 2869 2870 2871# Checks for programs. 2872# Check whether --enable-static was given. 2873if test "${enable_static+set}" = set; then : 2874 enableval=$enable_static; p=${PACKAGE-default} 2875 case $enableval in 2876 yes) enable_static=yes ;; 2877 no) enable_static=no ;; 2878 *) 2879 enable_static=no 2880 # Look at the argument we got. We use all the common list separators. 2881 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2882 for pkg in $enableval; do 2883 IFS=$lt_save_ifs 2884 if test "X$pkg" = "X$p"; then 2885 enable_static=yes 2886 fi 2887 done 2888 IFS=$lt_save_ifs 2889 ;; 2890 esac 2891else 2892 enable_static=no 2893fi 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903case `pwd` in 2904 *\ * | *\ *) 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2906$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2907esac 2908 2909 2910 2911macro_version='2.4.6' 2912macro_revision='2.4.6' 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926ltmain=$ac_aux_dir/ltmain.sh 2927 2928# Make sure we can run config.sub. 2929$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2930 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2931 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2933$as_echo_n "checking build system type... " >&6; } 2934if ${ac_cv_build+:} false; then : 2935 $as_echo_n "(cached) " >&6 2936else 2937 ac_build_alias=$build_alias 2938test "x$ac_build_alias" = x && 2939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2940test "x$ac_build_alias" = x && 2941 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2942ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2944 2945fi 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2947$as_echo "$ac_cv_build" >&6; } 2948case $ac_cv_build in 2949*-*-*) ;; 2950*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2951esac 2952build=$ac_cv_build 2953ac_save_IFS=$IFS; IFS='-' 2954set x $ac_cv_build 2955shift 2956build_cpu=$1 2957build_vendor=$2 2958shift; shift 2959# Remember, the first character of IFS is used to create $*, 2960# except with old shells: 2961build_os=$* 2962IFS=$ac_save_IFS 2963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2964 2965 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2967$as_echo_n "checking host system type... " >&6; } 2968if ${ac_cv_host+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 if test "x$host_alias" = x; then 2972 ac_cv_host=$ac_cv_build 2973else 2974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2975 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2976fi 2977 2978fi 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2980$as_echo "$ac_cv_host" >&6; } 2981case $ac_cv_host in 2982*-*-*) ;; 2983*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2984esac 2985host=$ac_cv_host 2986ac_save_IFS=$IFS; IFS='-' 2987set x $ac_cv_host 2988shift 2989host_cpu=$1 2990host_vendor=$2 2991shift; shift 2992# Remember, the first character of IFS is used to create $*, 2993# except with old shells: 2994host_os=$* 2995IFS=$ac_save_IFS 2996case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2997 2998 2999# Backslashify metacharacters that are still active within 3000# double-quoted strings. 3001sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3002 3003# Same as above, but do not quote variable references. 3004double_quote_subst='s/\(["`\\]\)/\\\1/g' 3005 3006# Sed substitution to delay expansion of an escaped shell variable in a 3007# double_quote_subst'ed string. 3008delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3009 3010# Sed substitution to delay expansion of an escaped single quote. 3011delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3012 3013# Sed substitution to avoid accidental globbing in evaled expressions 3014no_glob_subst='s/\*/\\\*/g' 3015 3016ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3017ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3018ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3021$as_echo_n "checking how to print strings... " >&6; } 3022# Test print first, because it will be a builtin if present. 3023if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3024 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3025 ECHO='print -r --' 3026elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3027 ECHO='printf %s\n' 3028else 3029 # Use this function as a fallback that always works. 3030 func_fallback_echo () 3031 { 3032 eval 'cat <<_LTECHO_EOF 3033$1 3034_LTECHO_EOF' 3035 } 3036 ECHO='func_fallback_echo' 3037fi 3038 3039# func_echo_all arg... 3040# Invoke $ECHO with all args, space-separated. 3041func_echo_all () 3042{ 3043 $ECHO "" 3044} 3045 3046case $ECHO in 3047 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3048$as_echo "printf" >&6; } ;; 3049 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3050$as_echo "print -r" >&6; } ;; 3051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3052$as_echo "cat" >&6; } ;; 3053esac 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068DEPDIR="${am__leading_dot}deps" 3069 3070ac_config_commands="$ac_config_commands depfiles" 3071 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3073$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3074cat > confinc.mk << 'END' 3075am__doit: 3076 @echo this is the am__doit target >confinc.out 3077.PHONY: am__doit 3078END 3079am__include="#" 3080am__quote= 3081# BSD make does it like this. 3082echo '.include "confinc.mk" # ignored' > confmf.BSD 3083# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3084echo 'include confinc.mk # ignored' > confmf.GNU 3085_am_result=no 3086for s in GNU BSD; do 3087 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3088 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3089 ac_status=$? 3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3091 (exit $ac_status); } 3092 case $?:`cat confinc.out 2>/dev/null` in #( 3093 '0:this is the am__doit target') : 3094 case $s in #( 3095 BSD) : 3096 am__include='.include' am__quote='"' ;; #( 3097 *) : 3098 am__include='include' am__quote='' ;; 3099esac ;; #( 3100 *) : 3101 ;; 3102esac 3103 if test "$am__include" != "#"; then 3104 _am_result="yes ($s style)" 3105 break 3106 fi 3107done 3108rm -f confinc.* confmf.* 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3110$as_echo "${_am_result}" >&6; } 3111 3112# Check whether --enable-dependency-tracking was given. 3113if test "${enable_dependency_tracking+set}" = set; then : 3114 enableval=$enable_dependency_tracking; 3115fi 3116 3117if test "x$enable_dependency_tracking" != xno; then 3118 am_depcomp="$ac_aux_dir/depcomp" 3119 AMDEPBACKSLASH='\' 3120 am__nodep='_no' 3121fi 3122 if test "x$enable_dependency_tracking" != xno; then 3123 AMDEP_TRUE= 3124 AMDEP_FALSE='#' 3125else 3126 AMDEP_TRUE='#' 3127 AMDEP_FALSE= 3128fi 3129 3130 3131ac_ext=c 3132ac_cpp='$CPP $CPPFLAGS' 3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3135ac_compiler_gnu=$ac_cv_c_compiler_gnu 3136if test -n "$ac_tool_prefix"; then 3137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3138set dummy ${ac_tool_prefix}gcc; ac_word=$2 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140$as_echo_n "checking for $ac_word... " >&6; } 3141if ${ac_cv_prog_CC+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$CC"; then 3145 ac_cv_prog_CC="$CC" # Let the user override the test. 3146else 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3154 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3156 break 2 3157 fi 3158done 3159 done 3160IFS=$as_save_IFS 3161 3162fi 3163fi 3164CC=$ac_cv_prog_CC 3165if test -n "$CC"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3167$as_echo "$CC" >&6; } 3168else 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171fi 3172 3173 3174fi 3175if test -z "$ac_cv_prog_CC"; then 3176 ac_ct_CC=$CC 3177 # Extract the first word of "gcc", so it can be a program name with args. 3178set dummy gcc; ac_word=$2 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3180$as_echo_n "checking for $ac_word... " >&6; } 3181if ${ac_cv_prog_ac_ct_CC+:} false; then : 3182 $as_echo_n "(cached) " >&6 3183else 3184 if test -n "$ac_ct_CC"; then 3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3186else 3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3194 ac_cv_prog_ac_ct_CC="gcc" 3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198done 3199 done 3200IFS=$as_save_IFS 3201 3202fi 3203fi 3204ac_ct_CC=$ac_cv_prog_ac_ct_CC 3205if test -n "$ac_ct_CC"; then 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3207$as_echo "$ac_ct_CC" >&6; } 3208else 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3210$as_echo "no" >&6; } 3211fi 3212 3213 if test "x$ac_ct_CC" = x; then 3214 CC="" 3215 else 3216 case $cross_compiling:$ac_tool_warned in 3217yes:) 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3220ac_tool_warned=yes ;; 3221esac 3222 CC=$ac_ct_CC 3223 fi 3224else 3225 CC="$ac_cv_prog_CC" 3226fi 3227 3228if test -z "$CC"; then 3229 if test -n "$ac_tool_prefix"; then 3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3231set dummy ${ac_tool_prefix}cc; ac_word=$2 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233$as_echo_n "checking for $ac_word... " >&6; } 3234if ${ac_cv_prog_CC+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 if test -n "$CC"; then 3238 ac_cv_prog_CC="$CC" # Let the user override the test. 3239else 3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3241for as_dir in $PATH 3242do 3243 IFS=$as_save_IFS 3244 test -z "$as_dir" && as_dir=. 3245 for ac_exec_ext in '' $ac_executable_extensions; do 3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3247 ac_cv_prog_CC="${ac_tool_prefix}cc" 3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3249 break 2 3250 fi 3251done 3252 done 3253IFS=$as_save_IFS 3254 3255fi 3256fi 3257CC=$ac_cv_prog_CC 3258if test -n "$CC"; then 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3260$as_echo "$CC" >&6; } 3261else 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263$as_echo "no" >&6; } 3264fi 3265 3266 3267 fi 3268fi 3269if test -z "$CC"; then 3270 # Extract the first word of "cc", so it can be a program name with args. 3271set dummy cc; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if ${ac_cv_prog_CC+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$CC"; then 3278 ac_cv_prog_CC="$CC" # Let the user override the test. 3279else 3280 ac_prog_rejected=no 3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282for as_dir in $PATH 3283do 3284 IFS=$as_save_IFS 3285 test -z "$as_dir" && as_dir=. 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3289 ac_prog_rejected=yes 3290 continue 3291 fi 3292 ac_cv_prog_CC="cc" 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300if test $ac_prog_rejected = yes; then 3301 # We found a bogon in the path, so make sure we never use it. 3302 set dummy $ac_cv_prog_CC 3303 shift 3304 if test $# != 0; then 3305 # We chose a different compiler from the bogus one. 3306 # However, it has the same basename, so the bogon will be chosen 3307 # first if we set CC to just the basename; use the full file name. 3308 shift 3309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3310 fi 3311fi 3312fi 3313fi 3314CC=$ac_cv_prog_CC 3315if test -n "$CC"; then 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3317$as_echo "$CC" >&6; } 3318else 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3320$as_echo "no" >&6; } 3321fi 3322 3323 3324fi 3325if test -z "$CC"; then 3326 if test -n "$ac_tool_prefix"; then 3327 for ac_prog in cl.exe 3328 do 3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3330set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332$as_echo_n "checking for $ac_word... " >&6; } 3333if ${ac_cv_prog_CC+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 if test -n "$CC"; then 3337 ac_cv_prog_CC="$CC" # Let the user override the test. 3338else 3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340for as_dir in $PATH 3341do 3342 IFS=$as_save_IFS 3343 test -z "$as_dir" && as_dir=. 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350done 3351 done 3352IFS=$as_save_IFS 3353 3354fi 3355fi 3356CC=$ac_cv_prog_CC 3357if test -n "$CC"; then 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3359$as_echo "$CC" >&6; } 3360else 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362$as_echo "no" >&6; } 3363fi 3364 3365 3366 test -n "$CC" && break 3367 done 3368fi 3369if test -z "$CC"; then 3370 ac_ct_CC=$CC 3371 for ac_prog in cl.exe 3372do 3373 # Extract the first word of "$ac_prog", so it can be a program name with args. 3374set dummy $ac_prog; ac_word=$2 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3376$as_echo_n "checking for $ac_word... " >&6; } 3377if ${ac_cv_prog_ac_ct_CC+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 if test -n "$ac_ct_CC"; then 3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3382else 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 test -z "$as_dir" && as_dir=. 3388 for ac_exec_ext in '' $ac_executable_extensions; do 3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3390 ac_cv_prog_ac_ct_CC="$ac_prog" 3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395 done 3396IFS=$as_save_IFS 3397 3398fi 3399fi 3400ac_ct_CC=$ac_cv_prog_ac_ct_CC 3401if test -n "$ac_ct_CC"; then 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3403$as_echo "$ac_ct_CC" >&6; } 3404else 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406$as_echo "no" >&6; } 3407fi 3408 3409 3410 test -n "$ac_ct_CC" && break 3411done 3412 3413 if test "x$ac_ct_CC" = x; then 3414 CC="" 3415 else 3416 case $cross_compiling:$ac_tool_warned in 3417yes:) 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3420ac_tool_warned=yes ;; 3421esac 3422 CC=$ac_ct_CC 3423 fi 3424fi 3425 3426fi 3427 3428 3429test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3431as_fn_error $? "no acceptable C compiler found in \$PATH 3432See \`config.log' for more details" "$LINENO" 5; } 3433 3434# Provide some information about the compiler. 3435$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3436set X $ac_compile 3437ac_compiler=$2 3438for ac_option in --version -v -V -qversion; do 3439 { { ac_try="$ac_compiler $ac_option >&5" 3440case "(($ac_try" in 3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3442 *) ac_try_echo=$ac_try;; 3443esac 3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3445$as_echo "$ac_try_echo"; } >&5 3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3447 ac_status=$? 3448 if test -s conftest.err; then 3449 sed '10a\ 3450... rest of stderr output deleted ... 3451 10q' conftest.err >conftest.er1 3452 cat conftest.er1 >&5 3453 fi 3454 rm -f conftest.er1 conftest.err 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; } 3457done 3458 3459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461 3462int 3463main () 3464{ 3465 3466 ; 3467 return 0; 3468} 3469_ACEOF 3470ac_clean_files_save=$ac_clean_files 3471ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3472# Try to create an executable without -o first, disregard a.out. 3473# It will help us diagnose broken compilers, and finding out an intuition 3474# of exeext. 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3476$as_echo_n "checking whether the C compiler works... " >&6; } 3477ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3478 3479# The possible output files: 3480ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3481 3482ac_rmfiles= 3483for ac_file in $ac_files 3484do 3485 case $ac_file in 3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3488 esac 3489done 3490rm -f $ac_rmfiles 3491 3492if { { ac_try="$ac_link_default" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3498$as_echo "$ac_try_echo"; } >&5 3499 (eval "$ac_link_default") 2>&5 3500 ac_status=$? 3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3502 test $ac_status = 0; }; then : 3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3504# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3505# in a Makefile. We should not override ac_cv_exeext if it was cached, 3506# so that the user can short-circuit this test for compilers unknown to 3507# Autoconf. 3508for ac_file in $ac_files '' 3509do 3510 test -f "$ac_file" || continue 3511 case $ac_file in 3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3513 ;; 3514 [ab].out ) 3515 # We found the default executable, but exeext='' is most 3516 # certainly right. 3517 break;; 3518 *.* ) 3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3520 then :; else 3521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3522 fi 3523 # We set ac_cv_exeext here because the later test for it is not 3524 # safe: cross compilers may not add the suffix if given an `-o' 3525 # argument, so we may need to know it at that point already. 3526 # Even if this section looks crufty: it has the advantage of 3527 # actually working. 3528 break;; 3529 * ) 3530 break;; 3531 esac 3532done 3533test "$ac_cv_exeext" = no && ac_cv_exeext= 3534 3535else 3536 ac_file='' 3537fi 3538if test -z "$ac_file"; then : 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3540$as_echo "no" >&6; } 3541$as_echo "$as_me: failed program was:" >&5 3542sed 's/^/| /' conftest.$ac_ext >&5 3543 3544{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546as_fn_error 77 "C compiler cannot create executables 3547See \`config.log' for more details" "$LINENO" 5; } 3548else 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3550$as_echo "yes" >&6; } 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3553$as_echo_n "checking for C compiler default output file name... " >&6; } 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3555$as_echo "$ac_file" >&6; } 3556ac_exeext=$ac_cv_exeext 3557 3558rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3559ac_clean_files=$ac_clean_files_save 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3561$as_echo_n "checking for suffix of executables... " >&6; } 3562if { { ac_try="$ac_link" 3563case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3568$as_echo "$ac_try_echo"; } >&5 3569 (eval "$ac_link") 2>&5 3570 ac_status=$? 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3572 test $ac_status = 0; }; then : 3573 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3574# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3575# work properly (i.e., refer to `conftest.exe'), while it won't with 3576# `rm'. 3577for ac_file in conftest.exe conftest conftest.*; do 3578 test -f "$ac_file" || continue 3579 case $ac_file in 3580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3582 break;; 3583 * ) break;; 3584 esac 3585done 3586else 3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3589as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3590See \`config.log' for more details" "$LINENO" 5; } 3591fi 3592rm -f conftest conftest$ac_cv_exeext 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3594$as_echo "$ac_cv_exeext" >&6; } 3595 3596rm -f conftest.$ac_ext 3597EXEEXT=$ac_cv_exeext 3598ac_exeext=$EXEEXT 3599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601#include <stdio.h> 3602int 3603main () 3604{ 3605FILE *f = fopen ("conftest.out", "w"); 3606 return ferror (f) || fclose (f) != 0; 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612ac_clean_files="$ac_clean_files conftest.out" 3613# Check that the compiler produces executables we can run. If not, either 3614# the compiler is broken, or we cross compile. 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3616$as_echo_n "checking whether we are cross compiling... " >&6; } 3617if test "$cross_compiling" != yes; then 3618 { { ac_try="$ac_link" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_link") 2>&5 3626 ac_status=$? 3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3628 test $ac_status = 0; } 3629 if { ac_try='./conftest$ac_cv_exeext' 3630 { { case "(($ac_try" in 3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3632 *) ac_try_echo=$ac_try;; 3633esac 3634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3635$as_echo "$ac_try_echo"; } >&5 3636 (eval "$ac_try") 2>&5 3637 ac_status=$? 3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3639 test $ac_status = 0; }; }; then 3640 cross_compiling=no 3641 else 3642 if test "$cross_compiling" = maybe; then 3643 cross_compiling=yes 3644 else 3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3647as_fn_error $? "cannot run C compiled programs. 3648If you meant to cross compile, use \`--host'. 3649See \`config.log' for more details" "$LINENO" 5; } 3650 fi 3651 fi 3652fi 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3654$as_echo "$cross_compiling" >&6; } 3655 3656rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3657ac_clean_files=$ac_clean_files_save 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3659$as_echo_n "checking for suffix of object files... " >&6; } 3660if ${ac_cv_objext+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666int 3667main () 3668{ 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674rm -f conftest.o conftest.obj 3675if { { ac_try="$ac_compile" 3676case "(($ac_try" in 3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3678 *) ac_try_echo=$ac_try;; 3679esac 3680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3681$as_echo "$ac_try_echo"; } >&5 3682 (eval "$ac_compile") 2>&5 3683 ac_status=$? 3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3685 test $ac_status = 0; }; then : 3686 for ac_file in conftest.o conftest.obj conftest.*; do 3687 test -f "$ac_file" || continue; 3688 case $ac_file in 3689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3691 break;; 3692 esac 3693done 3694else 3695 $as_echo "$as_me: failed program was:" >&5 3696sed 's/^/| /' conftest.$ac_ext >&5 3697 3698{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3700as_fn_error $? "cannot compute suffix of object files: cannot compile 3701See \`config.log' for more details" "$LINENO" 5; } 3702fi 3703rm -f conftest.$ac_cv_objext conftest.$ac_ext 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3706$as_echo "$ac_cv_objext" >&6; } 3707OBJEXT=$ac_cv_objext 3708ac_objext=$OBJEXT 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3710$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3711if ${ac_cv_c_compiler_gnu+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715/* end confdefs.h. */ 3716 3717int 3718main () 3719{ 3720#ifndef __GNUC__ 3721 choke me 3722#endif 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728if ac_fn_c_try_compile "$LINENO"; then : 3729 ac_compiler_gnu=yes 3730else 3731 ac_compiler_gnu=no 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734ac_cv_c_compiler_gnu=$ac_compiler_gnu 3735 3736fi 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3738$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3739if test $ac_compiler_gnu = yes; then 3740 GCC=yes 3741else 3742 GCC= 3743fi 3744ac_test_CFLAGS=${CFLAGS+set} 3745ac_save_CFLAGS=$CFLAGS 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3747$as_echo_n "checking whether $CC accepts -g... " >&6; } 3748if ${ac_cv_prog_cc_g+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 ac_save_c_werror_flag=$ac_c_werror_flag 3752 ac_c_werror_flag=yes 3753 ac_cv_prog_cc_g=no 3754 CFLAGS="-g" 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766if ac_fn_c_try_compile "$LINENO"; then : 3767 ac_cv_prog_cc_g=yes 3768else 3769 CFLAGS="" 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772 3773int 3774main () 3775{ 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO"; then : 3782 3783else 3784 ac_c_werror_flag=$ac_save_c_werror_flag 3785 CFLAGS="-g" 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789int 3790main () 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO"; then : 3798 ac_cv_prog_cc_g=yes 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803fi 3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3805 ac_c_werror_flag=$ac_save_c_werror_flag 3806fi 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3808$as_echo "$ac_cv_prog_cc_g" >&6; } 3809if test "$ac_test_CFLAGS" = set; then 3810 CFLAGS=$ac_save_CFLAGS 3811elif test $ac_cv_prog_cc_g = yes; then 3812 if test "$GCC" = yes; then 3813 CFLAGS="-g -O2" 3814 else 3815 CFLAGS="-g" 3816 fi 3817else 3818 if test "$GCC" = yes; then 3819 CFLAGS="-O2" 3820 else 3821 CFLAGS= 3822 fi 3823fi 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3825$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3826if ${ac_cv_prog_cc_c89+:} false; then : 3827 $as_echo_n "(cached) " >&6 3828else 3829 ac_cv_prog_cc_c89=no 3830ac_save_CC=$CC 3831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833#include <stdarg.h> 3834#include <stdio.h> 3835struct stat; 3836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3837struct buf { int x; }; 3838FILE * (*rcsopen) (struct buf *, struct stat *, int); 3839static char *e (p, i) 3840 char **p; 3841 int i; 3842{ 3843 return p[i]; 3844} 3845static char *f (char * (*g) (char **, int), char **p, ...) 3846{ 3847 char *s; 3848 va_list v; 3849 va_start (v,p); 3850 s = g (p, va_arg (v,int)); 3851 va_end (v); 3852 return s; 3853} 3854 3855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3856 function prototypes and stuff, but not '\xHH' hex character constants. 3857 These don't provoke an error unfortunately, instead are silently treated 3858 as 'x'. The following induces an error, until -std is added to get 3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3860 array size at least. It's necessary to write '\x00'==0 to get something 3861 that's true only with -std. */ 3862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3863 3864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3865 inside strings and character constants. */ 3866#define FOO(x) 'x' 3867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3868 3869int test (int i, double x); 3870struct s1 {int (*f) (int a);}; 3871struct s2 {int (*f) (double a);}; 3872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3873int argc; 3874char **argv; 3875int 3876main () 3877{ 3878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3885do 3886 CC="$ac_save_CC $ac_arg" 3887 if ac_fn_c_try_compile "$LINENO"; then : 3888 ac_cv_prog_cc_c89=$ac_arg 3889fi 3890rm -f core conftest.err conftest.$ac_objext 3891 test "x$ac_cv_prog_cc_c89" != "xno" && break 3892done 3893rm -f conftest.$ac_ext 3894CC=$ac_save_CC 3895 3896fi 3897# AC_CACHE_VAL 3898case "x$ac_cv_prog_cc_c89" in 3899 x) 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3901$as_echo "none needed" >&6; } ;; 3902 xno) 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3904$as_echo "unsupported" >&6; } ;; 3905 *) 3906 CC="$CC $ac_cv_prog_cc_c89" 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3908$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3909esac 3910if test "x$ac_cv_prog_cc_c89" != xno; then : 3911 3912fi 3913 3914ac_ext=c 3915ac_cpp='$CPP $CPPFLAGS' 3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3918ac_compiler_gnu=$ac_cv_c_compiler_gnu 3919 3920ac_ext=c 3921ac_cpp='$CPP $CPPFLAGS' 3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3924ac_compiler_gnu=$ac_cv_c_compiler_gnu 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3926$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3927if ${am_cv_prog_cc_c_o+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3931/* end confdefs.h. */ 3932 3933int 3934main () 3935{ 3936 3937 ; 3938 return 0; 3939} 3940_ACEOF 3941 # Make sure it works both with $CC and with simple cc. 3942 # Following AC_PROG_CC_C_O, we do the test twice because some 3943 # compilers refuse to overwrite an existing .o file with -o, 3944 # though they will create one. 3945 am_cv_prog_cc_c_o=yes 3946 for am_i in 1 2; do 3947 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3948 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3949 ac_status=$? 3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3951 (exit $ac_status); } \ 3952 && test -f conftest2.$ac_objext; then 3953 : OK 3954 else 3955 am_cv_prog_cc_c_o=no 3956 break 3957 fi 3958 done 3959 rm -f core conftest* 3960 unset am_i 3961fi 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3963$as_echo "$am_cv_prog_cc_c_o" >&6; } 3964if test "$am_cv_prog_cc_c_o" != yes; then 3965 # Losing compiler, so override with the script. 3966 # FIXME: It is wrong to rewrite CC. 3967 # But if we don't then we get into trouble of one sort or another. 3968 # A longer-term fix would be to have automake use am__CC in this case, 3969 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3970 CC="$am_aux_dir/compile $CC" 3971fi 3972ac_ext=c 3973ac_cpp='$CPP $CPPFLAGS' 3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3976ac_compiler_gnu=$ac_cv_c_compiler_gnu 3977 3978 3979depcc="$CC" am_compiler_list= 3980 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3982$as_echo_n "checking dependency style of $depcc... " >&6; } 3983if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3987 # We make a subdir and do the tests there. Otherwise we can end up 3988 # making bogus files that we don't know about and never remove. For 3989 # instance it was reported that on HP-UX the gcc test will end up 3990 # making a dummy file named 'D' -- because '-MD' means "put the output 3991 # in D". 3992 rm -rf conftest.dir 3993 mkdir conftest.dir 3994 # Copy depcomp to subdir because otherwise we won't find it if we're 3995 # using a relative directory. 3996 cp "$am_depcomp" conftest.dir 3997 cd conftest.dir 3998 # We will build objects and dependencies in a subdirectory because 3999 # it helps to detect inapplicable dependency modes. For instance 4000 # both Tru64's cc and ICC support -MD to output dependencies as a 4001 # side effect of compilation, but ICC will put the dependencies in 4002 # the current directory while Tru64 will put them in the object 4003 # directory. 4004 mkdir sub 4005 4006 am_cv_CC_dependencies_compiler_type=none 4007 if test "$am_compiler_list" = ""; then 4008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4009 fi 4010 am__universal=false 4011 case " $depcc " in #( 4012 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4013 esac 4014 4015 for depmode in $am_compiler_list; do 4016 # Setup a source with many dependencies, because some compilers 4017 # like to wrap large dependency lists on column 80 (with \), and 4018 # we should not choose a depcomp mode which is confused by this. 4019 # 4020 # We need to recreate these files for each test, as the compiler may 4021 # overwrite some of them when testing with obscure command lines. 4022 # This happens at least with the AIX C compiler. 4023 : > sub/conftest.c 4024 for i in 1 2 3 4 5 6; do 4025 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4026 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4027 # Solaris 10 /bin/sh. 4028 echo '/* dummy */' > sub/conftst$i.h 4029 done 4030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4031 4032 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4033 # mode. It turns out that the SunPro C++ compiler does not properly 4034 # handle '-M -o', and we need to detect this. Also, some Intel 4035 # versions had trouble with output in subdirs. 4036 am__obj=sub/conftest.${OBJEXT-o} 4037 am__minus_obj="-o $am__obj" 4038 case $depmode in 4039 gcc) 4040 # This depmode causes a compiler race in universal mode. 4041 test "$am__universal" = false || continue 4042 ;; 4043 nosideeffect) 4044 # After this tag, mechanisms are not by side-effect, so they'll 4045 # only be used when explicitly requested. 4046 if test "x$enable_dependency_tracking" = xyes; then 4047 continue 4048 else 4049 break 4050 fi 4051 ;; 4052 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4053 # This compiler won't grok '-c -o', but also, the minuso test has 4054 # not run yet. These depmodes are late enough in the game, and 4055 # so weak that their functioning should not be impacted. 4056 am__obj=conftest.${OBJEXT-o} 4057 am__minus_obj= 4058 ;; 4059 none) break ;; 4060 esac 4061 if depmode=$depmode \ 4062 source=sub/conftest.c object=$am__obj \ 4063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4065 >/dev/null 2>conftest.err && 4066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4070 # icc doesn't choke on unknown options, it will just issue warnings 4071 # or remarks (even with -Werror). So we grep stderr for any message 4072 # that says an option was ignored or not supported. 4073 # When given -MP, icc 7.0 and 7.1 complain thusly: 4074 # icc: Command line warning: ignoring option '-M'; no argument required 4075 # The diagnosis changed in icc 8.0: 4076 # icc: Command line remark: option '-MP' not supported 4077 if (grep 'ignoring option' conftest.err || 4078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4079 am_cv_CC_dependencies_compiler_type=$depmode 4080 break 4081 fi 4082 fi 4083 done 4084 4085 cd .. 4086 rm -rf conftest.dir 4087else 4088 am_cv_CC_dependencies_compiler_type=none 4089fi 4090 4091fi 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4093$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4094CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4095 4096 if 4097 test "x$enable_dependency_tracking" != xno \ 4098 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4099 am__fastdepCC_TRUE= 4100 am__fastdepCC_FALSE='#' 4101else 4102 am__fastdepCC_TRUE='#' 4103 am__fastdepCC_FALSE= 4104fi 4105 4106 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4108$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4109if ${ac_cv_path_SED+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111else 4112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4113 for ac_i in 1 2 3 4 5 6 7; do 4114 ac_script="$ac_script$as_nl$ac_script" 4115 done 4116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4117 { ac_script=; unset ac_script;} 4118 if test -z "$SED"; then 4119 ac_path_SED_found=false 4120 # Loop through the user's path and test for each of PROGNAME-LIST 4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $PATH 4123do 4124 IFS=$as_save_IFS 4125 test -z "$as_dir" && as_dir=. 4126 for ac_prog in sed gsed; do 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4129 as_fn_executable_p "$ac_path_SED" || continue 4130# Check for GNU ac_path_SED and select it if it is found. 4131 # Check for GNU $ac_path_SED 4132case `"$ac_path_SED" --version 2>&1` in 4133*GNU*) 4134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4135*) 4136 ac_count=0 4137 $as_echo_n 0123456789 >"conftest.in" 4138 while : 4139 do 4140 cat "conftest.in" "conftest.in" >"conftest.tmp" 4141 mv "conftest.tmp" "conftest.in" 4142 cp "conftest.in" "conftest.nl" 4143 $as_echo '' >> "conftest.nl" 4144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4146 as_fn_arith $ac_count + 1 && ac_count=$as_val 4147 if test $ac_count -gt ${ac_path_SED_max-0}; then 4148 # Best one so far, save it but keep looking for a better one 4149 ac_cv_path_SED="$ac_path_SED" 4150 ac_path_SED_max=$ac_count 4151 fi 4152 # 10*(2^10) chars as input seems more than enough 4153 test $ac_count -gt 10 && break 4154 done 4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4156esac 4157 4158 $ac_path_SED_found && break 3 4159 done 4160 done 4161 done 4162IFS=$as_save_IFS 4163 if test -z "$ac_cv_path_SED"; then 4164 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4165 fi 4166else 4167 ac_cv_path_SED=$SED 4168fi 4169 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4172$as_echo "$ac_cv_path_SED" >&6; } 4173 SED="$ac_cv_path_SED" 4174 rm -f conftest.sed 4175 4176test -z "$SED" && SED=sed 4177Xsed="$SED -e 1s/^X//" 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4190$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4191if ${ac_cv_path_GREP+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 if test -z "$GREP"; then 4195 ac_path_GREP_found=false 4196 # Loop through the user's path and test for each of PROGNAME-LIST 4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4199do 4200 IFS=$as_save_IFS 4201 test -z "$as_dir" && as_dir=. 4202 for ac_prog in grep ggrep; do 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4205 as_fn_executable_p "$ac_path_GREP" || continue 4206# Check for GNU ac_path_GREP and select it if it is found. 4207 # Check for GNU $ac_path_GREP 4208case `"$ac_path_GREP" --version 2>&1` in 4209*GNU*) 4210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4211*) 4212 ac_count=0 4213 $as_echo_n 0123456789 >"conftest.in" 4214 while : 4215 do 4216 cat "conftest.in" "conftest.in" >"conftest.tmp" 4217 mv "conftest.tmp" "conftest.in" 4218 cp "conftest.in" "conftest.nl" 4219 $as_echo 'GREP' >> "conftest.nl" 4220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4222 as_fn_arith $ac_count + 1 && ac_count=$as_val 4223 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4224 # Best one so far, save it but keep looking for a better one 4225 ac_cv_path_GREP="$ac_path_GREP" 4226 ac_path_GREP_max=$ac_count 4227 fi 4228 # 10*(2^10) chars as input seems more than enough 4229 test $ac_count -gt 10 && break 4230 done 4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4232esac 4233 4234 $ac_path_GREP_found && break 3 4235 done 4236 done 4237 done 4238IFS=$as_save_IFS 4239 if test -z "$ac_cv_path_GREP"; then 4240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4241 fi 4242else 4243 ac_cv_path_GREP=$GREP 4244fi 4245 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4248$as_echo "$ac_cv_path_GREP" >&6; } 4249 GREP="$ac_cv_path_GREP" 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4253$as_echo_n "checking for egrep... " >&6; } 4254if ${ac_cv_path_EGREP+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4258 then ac_cv_path_EGREP="$GREP -E" 4259 else 4260 if test -z "$EGREP"; then 4261 ac_path_EGREP_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in egrep; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4271 as_fn_executable_p "$ac_path_EGREP" || continue 4272# Check for GNU ac_path_EGREP and select it if it is found. 4273 # Check for GNU $ac_path_EGREP 4274case `"$ac_path_EGREP" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo 'EGREP' >> "conftest.nl" 4286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_EGREP="$ac_path_EGREP" 4292 ac_path_EGREP_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_EGREP_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_EGREP"; then 4306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_EGREP=$EGREP 4310fi 4311 4312 fi 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4315$as_echo "$ac_cv_path_EGREP" >&6; } 4316 EGREP="$ac_cv_path_EGREP" 4317 4318 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4320$as_echo_n "checking for fgrep... " >&6; } 4321if ${ac_cv_path_FGREP+:} false; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4325 then ac_cv_path_FGREP="$GREP -F" 4326 else 4327 if test -z "$FGREP"; then 4328 ac_path_FGREP_found=false 4329 # Loop through the user's path and test for each of PROGNAME-LIST 4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4332do 4333 IFS=$as_save_IFS 4334 test -z "$as_dir" && as_dir=. 4335 for ac_prog in fgrep; do 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4338 as_fn_executable_p "$ac_path_FGREP" || continue 4339# Check for GNU ac_path_FGREP and select it if it is found. 4340 # Check for GNU $ac_path_FGREP 4341case `"$ac_path_FGREP" --version 2>&1` in 4342*GNU*) 4343 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4344*) 4345 ac_count=0 4346 $as_echo_n 0123456789 >"conftest.in" 4347 while : 4348 do 4349 cat "conftest.in" "conftest.in" >"conftest.tmp" 4350 mv "conftest.tmp" "conftest.in" 4351 cp "conftest.in" "conftest.nl" 4352 $as_echo 'FGREP' >> "conftest.nl" 4353 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4355 as_fn_arith $ac_count + 1 && ac_count=$as_val 4356 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4357 # Best one so far, save it but keep looking for a better one 4358 ac_cv_path_FGREP="$ac_path_FGREP" 4359 ac_path_FGREP_max=$ac_count 4360 fi 4361 # 10*(2^10) chars as input seems more than enough 4362 test $ac_count -gt 10 && break 4363 done 4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4365esac 4366 4367 $ac_path_FGREP_found && break 3 4368 done 4369 done 4370 done 4371IFS=$as_save_IFS 4372 if test -z "$ac_cv_path_FGREP"; then 4373 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4374 fi 4375else 4376 ac_cv_path_FGREP=$FGREP 4377fi 4378 4379 fi 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4382$as_echo "$ac_cv_path_FGREP" >&6; } 4383 FGREP="$ac_cv_path_FGREP" 4384 4385 4386test -z "$GREP" && GREP=grep 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406# Check whether --with-gnu-ld was given. 4407if test "${with_gnu_ld+set}" = set; then : 4408 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4409else 4410 with_gnu_ld=no 4411fi 4412 4413ac_prog=ld 4414if test yes = "$GCC"; then 4415 # Check if gcc -print-prog-name=ld gives a path. 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4417$as_echo_n "checking for ld used by $CC... " >&6; } 4418 case $host in 4419 *-*-mingw*) 4420 # gcc leaves a trailing carriage return, which upsets mingw 4421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4422 *) 4423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4424 esac 4425 case $ac_prog in 4426 # Accept absolute paths. 4427 [\\/]* | ?:[\\/]*) 4428 re_direlt='/[^/][^/]*/\.\./' 4429 # Canonicalize the pathname of ld 4430 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4431 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4432 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4433 done 4434 test -z "$LD" && LD=$ac_prog 4435 ;; 4436 "") 4437 # If it fails, then pretend we aren't using GCC. 4438 ac_prog=ld 4439 ;; 4440 *) 4441 # If it is relative, then search for the first ld in PATH. 4442 with_gnu_ld=unknown 4443 ;; 4444 esac 4445elif test yes = "$with_gnu_ld"; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4447$as_echo_n "checking for GNU ld... " >&6; } 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4450$as_echo_n "checking for non-GNU ld... " >&6; } 4451fi 4452if ${lt_cv_path_LD+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -z "$LD"; then 4456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4457 for ac_dir in $PATH; do 4458 IFS=$lt_save_ifs 4459 test -z "$ac_dir" && ac_dir=. 4460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4461 lt_cv_path_LD=$ac_dir/$ac_prog 4462 # Check to see if the program is GNU ld. I'd rather use --version, 4463 # but apparently some variants of GNU ld only accept -v. 4464 # Break only if it was the GNU/non-GNU ld that we prefer. 4465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4466 *GNU* | *'with BFD'*) 4467 test no != "$with_gnu_ld" && break 4468 ;; 4469 *) 4470 test yes != "$with_gnu_ld" && break 4471 ;; 4472 esac 4473 fi 4474 done 4475 IFS=$lt_save_ifs 4476else 4477 lt_cv_path_LD=$LD # Let the user override the test with a path. 4478fi 4479fi 4480 4481LD=$lt_cv_path_LD 4482if test -n "$LD"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4484$as_echo "$LD" >&6; } 4485else 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4487$as_echo "no" >&6; } 4488fi 4489test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4491$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4492if ${lt_cv_prog_gnu_ld+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4496case `$LD -v 2>&1 </dev/null` in 4497*GNU* | *'with BFD'*) 4498 lt_cv_prog_gnu_ld=yes 4499 ;; 4500*) 4501 lt_cv_prog_gnu_ld=no 4502 ;; 4503esac 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4506$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4507with_gnu_ld=$lt_cv_prog_gnu_ld 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4518$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4519if ${lt_cv_path_NM+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 if test -n "$NM"; then 4523 # Let the user override the test. 4524 lt_cv_path_NM=$NM 4525else 4526 lt_nm_to_check=${ac_tool_prefix}nm 4527 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4528 lt_nm_to_check="$lt_nm_to_check nm" 4529 fi 4530 for lt_tmp_nm in $lt_nm_to_check; do 4531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4532 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4533 IFS=$lt_save_ifs 4534 test -z "$ac_dir" && ac_dir=. 4535 tmp_nm=$ac_dir/$lt_tmp_nm 4536 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4537 # Check to see if the nm accepts a BSD-compat flag. 4538 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4539 # nm: unknown option "B" ignored 4540 # Tru64's nm complains that /dev/null is an invalid object file 4541 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4542 case $build_os in 4543 mingw*) lt_bad_file=conftest.nm/nofile ;; 4544 *) lt_bad_file=/dev/null ;; 4545 esac 4546 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4547 *$lt_bad_file* | *'Invalid file or object type'*) 4548 lt_cv_path_NM="$tmp_nm -B" 4549 break 2 4550 ;; 4551 *) 4552 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4553 */dev/null*) 4554 lt_cv_path_NM="$tmp_nm -p" 4555 break 2 4556 ;; 4557 *) 4558 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4559 continue # so that we can try to find one that supports BSD flags 4560 ;; 4561 esac 4562 ;; 4563 esac 4564 fi 4565 done 4566 IFS=$lt_save_ifs 4567 done 4568 : ${lt_cv_path_NM=no} 4569fi 4570fi 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4572$as_echo "$lt_cv_path_NM" >&6; } 4573if test no != "$lt_cv_path_NM"; then 4574 NM=$lt_cv_path_NM 4575else 4576 # Didn't find any BSD compatible name lister, look for dumpbin. 4577 if test -n "$DUMPBIN"; then : 4578 # Let the user override the test. 4579 else 4580 if test -n "$ac_tool_prefix"; then 4581 for ac_prog in dumpbin "link -dump" 4582 do 4583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4584set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_prog_DUMPBIN+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 if test -n "$DUMPBIN"; then 4591 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4592else 4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4600 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4602 break 2 4603 fi 4604done 4605 done 4606IFS=$as_save_IFS 4607 4608fi 4609fi 4610DUMPBIN=$ac_cv_prog_DUMPBIN 4611if test -n "$DUMPBIN"; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4613$as_echo "$DUMPBIN" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4616$as_echo "no" >&6; } 4617fi 4618 4619 4620 test -n "$DUMPBIN" && break 4621 done 4622fi 4623if test -z "$DUMPBIN"; then 4624 ac_ct_DUMPBIN=$DUMPBIN 4625 for ac_prog in dumpbin "link -dump" 4626do 4627 # Extract the first word of "$ac_prog", so it can be a program name with args. 4628set dummy $ac_prog; ac_word=$2 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630$as_echo_n "checking for $ac_word... " >&6; } 4631if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 if test -n "$ac_ct_DUMPBIN"; then 4635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4636else 4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638for as_dir in $PATH 4639do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4644 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648done 4649 done 4650IFS=$as_save_IFS 4651 4652fi 4653fi 4654ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4655if test -n "$ac_ct_DUMPBIN"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4657$as_echo "$ac_ct_DUMPBIN" >&6; } 4658else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4660$as_echo "no" >&6; } 4661fi 4662 4663 4664 test -n "$ac_ct_DUMPBIN" && break 4665done 4666 4667 if test "x$ac_ct_DUMPBIN" = x; then 4668 DUMPBIN=":" 4669 else 4670 case $cross_compiling:$ac_tool_warned in 4671yes:) 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4674ac_tool_warned=yes ;; 4675esac 4676 DUMPBIN=$ac_ct_DUMPBIN 4677 fi 4678fi 4679 4680 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4681 *COFF*) 4682 DUMPBIN="$DUMPBIN -symbols -headers" 4683 ;; 4684 *) 4685 DUMPBIN=: 4686 ;; 4687 esac 4688 fi 4689 4690 if test : != "$DUMPBIN"; then 4691 NM=$DUMPBIN 4692 fi 4693fi 4694test -z "$NM" && NM=nm 4695 4696 4697 4698 4699 4700 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4702$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4703if ${lt_cv_nm_interface+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 lt_cv_nm_interface="BSD nm" 4707 echo "int some_variable = 0;" > conftest.$ac_ext 4708 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4709 (eval "$ac_compile" 2>conftest.err) 4710 cat conftest.err >&5 4711 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4713 cat conftest.err >&5 4714 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4715 cat conftest.out >&5 4716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4717 lt_cv_nm_interface="MS dumpbin" 4718 fi 4719 rm -f conftest* 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4722$as_echo "$lt_cv_nm_interface" >&6; } 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4725$as_echo_n "checking whether ln -s works... " >&6; } 4726LN_S=$as_ln_s 4727if test "$LN_S" = "ln -s"; then 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4729$as_echo "yes" >&6; } 4730else 4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4732$as_echo "no, using $LN_S" >&6; } 4733fi 4734 4735# find the maximum length of command line arguments 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4737$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4738if ${lt_cv_sys_max_cmd_len+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 i=0 4742 teststring=ABCD 4743 4744 case $build_os in 4745 msdosdjgpp*) 4746 # On DJGPP, this test can blow up pretty badly due to problems in libc 4747 # (any single argument exceeding 2000 bytes causes a buffer overrun 4748 # during glob expansion). Even if it were fixed, the result of this 4749 # check would be larger than it should be. 4750 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4751 ;; 4752 4753 gnu*) 4754 # Under GNU Hurd, this test is not required because there is 4755 # no limit to the length of command line arguments. 4756 # Libtool will interpret -1 as no limit whatsoever 4757 lt_cv_sys_max_cmd_len=-1; 4758 ;; 4759 4760 cygwin* | mingw* | cegcc*) 4761 # On Win9x/ME, this test blows up -- it succeeds, but takes 4762 # about 5 minutes as the teststring grows exponentially. 4763 # Worse, since 9x/ME are not pre-emptively multitasking, 4764 # you end up with a "frozen" computer, even though with patience 4765 # the test eventually succeeds (with a max line length of 256k). 4766 # Instead, let's just punt: use the minimum linelength reported by 4767 # all of the supported platforms: 8192 (on NT/2K/XP). 4768 lt_cv_sys_max_cmd_len=8192; 4769 ;; 4770 4771 mint*) 4772 # On MiNT this can take a long time and run out of memory. 4773 lt_cv_sys_max_cmd_len=8192; 4774 ;; 4775 4776 amigaos*) 4777 # On AmigaOS with pdksh, this test takes hours, literally. 4778 # So we just punt and use a minimum line length of 8192. 4779 lt_cv_sys_max_cmd_len=8192; 4780 ;; 4781 4782 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4783 # This has been around since 386BSD, at least. Likely further. 4784 if test -x /sbin/sysctl; then 4785 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4786 elif test -x /usr/sbin/sysctl; then 4787 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4788 else 4789 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4790 fi 4791 # And add a safety zone 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4794 ;; 4795 4796 interix*) 4797 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4798 lt_cv_sys_max_cmd_len=196608 4799 ;; 4800 4801 os2*) 4802 # The test takes a long time on OS/2. 4803 lt_cv_sys_max_cmd_len=8192 4804 ;; 4805 4806 osf*) 4807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4809 # nice to cause kernel panics so lets avoid the loop below. 4810 # First set a reasonable default. 4811 lt_cv_sys_max_cmd_len=16384 4812 # 4813 if test -x /sbin/sysconfig; then 4814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4815 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4816 esac 4817 fi 4818 ;; 4819 sco3.2v5*) 4820 lt_cv_sys_max_cmd_len=102400 4821 ;; 4822 sysv5* | sco5v6* | sysv4.2uw2*) 4823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4824 if test -n "$kargmax"; then 4825 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4826 else 4827 lt_cv_sys_max_cmd_len=32768 4828 fi 4829 ;; 4830 *) 4831 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4832 if test -n "$lt_cv_sys_max_cmd_len" && \ 4833 test undefined != "$lt_cv_sys_max_cmd_len"; then 4834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4836 else 4837 # Make teststring a little bigger before we do anything with it. 4838 # a 1K string should be a reasonable start. 4839 for i in 1 2 3 4 5 6 7 8; do 4840 teststring=$teststring$teststring 4841 done 4842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4843 # If test is not a shell built-in, we'll probably end up computing a 4844 # maximum length that is only half of the actual maximum length, but 4845 # we can't tell. 4846 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4847 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4848 test 17 != "$i" # 1/2 MB should be enough 4849 do 4850 i=`expr $i + 1` 4851 teststring=$teststring$teststring 4852 done 4853 # Only check the string length outside the loop. 4854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4855 teststring= 4856 # Add a significant safety factor because C++ compilers can tack on 4857 # massive amounts of additional arguments before passing them to the 4858 # linker. It appears as though 1/2 is a usable value. 4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4860 fi 4861 ;; 4862 esac 4863 4864fi 4865 4866if test -n "$lt_cv_sys_max_cmd_len"; then 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4868$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4869else 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4871$as_echo "none" >&6; } 4872fi 4873max_cmd_len=$lt_cv_sys_max_cmd_len 4874 4875 4876 4877 4878 4879 4880: ${CP="cp -f"} 4881: ${MV="mv -f"} 4882: ${RM="rm -f"} 4883 4884if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4885 lt_unset=unset 4886else 4887 lt_unset=false 4888fi 4889 4890 4891 4892 4893 4894# test EBCDIC or ASCII 4895case `echo X|tr X '\101'` in 4896 A) # ASCII based system 4897 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4898 lt_SP2NL='tr \040 \012' 4899 lt_NL2SP='tr \015\012 \040\040' 4900 ;; 4901 *) # EBCDIC based system 4902 lt_SP2NL='tr \100 \n' 4903 lt_NL2SP='tr \r\n \100\100' 4904 ;; 4905esac 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4916$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4917if ${lt_cv_to_host_file_cmd+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 case $host in 4921 *-*-mingw* ) 4922 case $build in 4923 *-*-mingw* ) # actually msys 4924 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4925 ;; 4926 *-*-cygwin* ) 4927 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4928 ;; 4929 * ) # otherwise, assume *nix 4930 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4931 ;; 4932 esac 4933 ;; 4934 *-*-cygwin* ) 4935 case $build in 4936 *-*-mingw* ) # actually msys 4937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4938 ;; 4939 *-*-cygwin* ) 4940 lt_cv_to_host_file_cmd=func_convert_file_noop 4941 ;; 4942 * ) # otherwise, assume *nix 4943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4944 ;; 4945 esac 4946 ;; 4947 * ) # unhandled hosts (and "normal" native builds) 4948 lt_cv_to_host_file_cmd=func_convert_file_noop 4949 ;; 4950esac 4951 4952fi 4953 4954to_host_file_cmd=$lt_cv_to_host_file_cmd 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4956$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4957 4958 4959 4960 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4963$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4964if ${lt_cv_to_tool_file_cmd+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 #assume ordinary cross tools, or native build. 4968lt_cv_to_tool_file_cmd=func_convert_file_noop 4969case $host in 4970 *-*-mingw* ) 4971 case $build in 4972 *-*-mingw* ) # actually msys 4973 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4974 ;; 4975 esac 4976 ;; 4977esac 4978 4979fi 4980 4981to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4983$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4984 4985 4986 4987 4988 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4990$as_echo_n "checking for $LD option to reload object files... " >&6; } 4991if ${lt_cv_ld_reload_flag+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 lt_cv_ld_reload_flag='-r' 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4997$as_echo "$lt_cv_ld_reload_flag" >&6; } 4998reload_flag=$lt_cv_ld_reload_flag 4999case $reload_flag in 5000"" | " "*) ;; 5001*) reload_flag=" $reload_flag" ;; 5002esac 5003reload_cmds='$LD$reload_flag -o $output$reload_objs' 5004case $host_os in 5005 cygwin* | mingw* | pw32* | cegcc*) 5006 if test yes != "$GCC"; then 5007 reload_cmds=false 5008 fi 5009 ;; 5010 darwin*) 5011 if test yes = "$GCC"; then 5012 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5013 else 5014 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5015 fi 5016 ;; 5017esac 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027if test -n "$ac_tool_prefix"; then 5028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5029set dummy ${ac_tool_prefix}objdump; ac_word=$2 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5031$as_echo_n "checking for $ac_word... " >&6; } 5032if ${ac_cv_prog_OBJDUMP+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 if test -n "$OBJDUMP"; then 5036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5037else 5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039for as_dir in $PATH 5040do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049done 5050 done 5051IFS=$as_save_IFS 5052 5053fi 5054fi 5055OBJDUMP=$ac_cv_prog_OBJDUMP 5056if test -n "$OBJDUMP"; then 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5058$as_echo "$OBJDUMP" >&6; } 5059else 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061$as_echo "no" >&6; } 5062fi 5063 5064 5065fi 5066if test -z "$ac_cv_prog_OBJDUMP"; then 5067 ac_ct_OBJDUMP=$OBJDUMP 5068 # Extract the first word of "objdump", so it can be a program name with args. 5069set dummy objdump; ac_word=$2 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5071$as_echo_n "checking for $ac_word... " >&6; } 5072if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 if test -n "$ac_ct_OBJDUMP"; then 5076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5077else 5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079for as_dir in $PATH 5080do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5085 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5087 break 2 5088 fi 5089done 5090 done 5091IFS=$as_save_IFS 5092 5093fi 5094fi 5095ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5096if test -n "$ac_ct_OBJDUMP"; then 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5098$as_echo "$ac_ct_OBJDUMP" >&6; } 5099else 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5101$as_echo "no" >&6; } 5102fi 5103 5104 if test "x$ac_ct_OBJDUMP" = x; then 5105 OBJDUMP="false" 5106 else 5107 case $cross_compiling:$ac_tool_warned in 5108yes:) 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5111ac_tool_warned=yes ;; 5112esac 5113 OBJDUMP=$ac_ct_OBJDUMP 5114 fi 5115else 5116 OBJDUMP="$ac_cv_prog_OBJDUMP" 5117fi 5118 5119test -z "$OBJDUMP" && OBJDUMP=objdump 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5130$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5131if ${lt_cv_deplibs_check_method+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 lt_cv_file_magic_cmd='$MAGIC_CMD' 5135lt_cv_file_magic_test_file= 5136lt_cv_deplibs_check_method='unknown' 5137# Need to set the preceding variable on all platforms that support 5138# interlibrary dependencies. 5139# 'none' -- dependencies not supported. 5140# 'unknown' -- same as none, but documents that we really don't know. 5141# 'pass_all' -- all dependencies passed with no checks. 5142# 'test_compile' -- check by making test program. 5143# 'file_magic [[regex]]' -- check by looking for files in library path 5144# that responds to the $file_magic_cmd with a given extended regex. 5145# If you have 'file' or equivalent on your system and you're not sure 5146# whether 'pass_all' will *always* work, you probably want this one. 5147 5148case $host_os in 5149aix[4-9]*) 5150 lt_cv_deplibs_check_method=pass_all 5151 ;; 5152 5153beos*) 5154 lt_cv_deplibs_check_method=pass_all 5155 ;; 5156 5157bsdi[45]*) 5158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5159 lt_cv_file_magic_cmd='/usr/bin/file -L' 5160 lt_cv_file_magic_test_file=/shlib/libc.so 5161 ;; 5162 5163cygwin*) 5164 # func_win32_libid is a shell function defined in ltmain.sh 5165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5166 lt_cv_file_magic_cmd='func_win32_libid' 5167 ;; 5168 5169mingw* | pw32*) 5170 # Base MSYS/MinGW do not provide the 'file' command needed by 5171 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5172 # unless we find 'file', for example because we are cross-compiling. 5173 if ( file / ) >/dev/null 2>&1; then 5174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5175 lt_cv_file_magic_cmd='func_win32_libid' 5176 else 5177 # Keep this pattern in sync with the one in func_win32_libid. 5178 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5179 lt_cv_file_magic_cmd='$OBJDUMP -f' 5180 fi 5181 ;; 5182 5183cegcc*) 5184 # use the weaker test based on 'objdump'. See mingw*. 5185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5186 lt_cv_file_magic_cmd='$OBJDUMP -f' 5187 ;; 5188 5189darwin* | rhapsody*) 5190 lt_cv_deplibs_check_method=pass_all 5191 ;; 5192 5193freebsd* | dragonfly*) 5194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5195 case $host_cpu in 5196 i*86 ) 5197 # Not sure whether the presence of OpenBSD here was a mistake. 5198 # Let's accept both of them until this is cleared up. 5199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5200 lt_cv_file_magic_cmd=/usr/bin/file 5201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5202 ;; 5203 esac 5204 else 5205 lt_cv_deplibs_check_method=pass_all 5206 fi 5207 ;; 5208 5209haiku*) 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213hpux10.20* | hpux11*) 5214 lt_cv_file_magic_cmd=/usr/bin/file 5215 case $host_cpu in 5216 ia64*) 5217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5219 ;; 5220 hppa*64*) 5221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5223 ;; 5224 *) 5225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5226 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5227 ;; 5228 esac 5229 ;; 5230 5231interix[3-9]*) 5232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5234 ;; 5235 5236irix5* | irix6* | nonstopux*) 5237 case $LD in 5238 *-32|*"-32 ") libmagic=32-bit;; 5239 *-n32|*"-n32 ") libmagic=N32;; 5240 *-64|*"-64 ") libmagic=64-bit;; 5241 *) libmagic=never-match;; 5242 esac 5243 lt_cv_deplibs_check_method=pass_all 5244 ;; 5245 5246# This must be glibc/ELF. 5247linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251netbsd*) 5252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5254 else 5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5256 fi 5257 ;; 5258 5259newos6*) 5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5261 lt_cv_file_magic_cmd=/usr/bin/file 5262 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5263 ;; 5264 5265*nto* | *qnx*) 5266 lt_cv_deplibs_check_method=pass_all 5267 ;; 5268 5269openbsd* | bitrig*) 5270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5272 else 5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5274 fi 5275 ;; 5276 5277osf3* | osf4* | osf5*) 5278 lt_cv_deplibs_check_method=pass_all 5279 ;; 5280 5281rdos*) 5282 lt_cv_deplibs_check_method=pass_all 5283 ;; 5284 5285solaris*) 5286 lt_cv_deplibs_check_method=pass_all 5287 ;; 5288 5289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293sysv4 | sysv4.3*) 5294 case $host_vendor in 5295 motorola) 5296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5298 ;; 5299 ncr) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 sequent) 5303 lt_cv_file_magic_cmd='/bin/file' 5304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5305 ;; 5306 sni) 5307 lt_cv_file_magic_cmd='/bin/file' 5308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5309 lt_cv_file_magic_test_file=/lib/libc.so 5310 ;; 5311 siemens) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 pc) 5315 lt_cv_deplibs_check_method=pass_all 5316 ;; 5317 esac 5318 ;; 5319 5320tpf*) 5321 lt_cv_deplibs_check_method=pass_all 5322 ;; 5323os2*) 5324 lt_cv_deplibs_check_method=pass_all 5325 ;; 5326esac 5327 5328fi 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5330$as_echo "$lt_cv_deplibs_check_method" >&6; } 5331 5332file_magic_glob= 5333want_nocaseglob=no 5334if test "$build" = "$host"; then 5335 case $host_os in 5336 mingw* | pw32*) 5337 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5338 want_nocaseglob=yes 5339 else 5340 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5341 fi 5342 ;; 5343 esac 5344fi 5345 5346file_magic_cmd=$lt_cv_file_magic_cmd 5347deplibs_check_method=$lt_cv_deplibs_check_method 5348test -z "$deplibs_check_method" && deplibs_check_method=unknown 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371if test -n "$ac_tool_prefix"; then 5372 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5373set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5375$as_echo_n "checking for $ac_word... " >&6; } 5376if ${ac_cv_prog_DLLTOOL+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 if test -n "$DLLTOOL"; then 5380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5381else 5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383for as_dir in $PATH 5384do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_exec_ext in '' $ac_executable_extensions; do 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5389 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5391 break 2 5392 fi 5393done 5394 done 5395IFS=$as_save_IFS 5396 5397fi 5398fi 5399DLLTOOL=$ac_cv_prog_DLLTOOL 5400if test -n "$DLLTOOL"; then 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5402$as_echo "$DLLTOOL" >&6; } 5403else 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5405$as_echo "no" >&6; } 5406fi 5407 5408 5409fi 5410if test -z "$ac_cv_prog_DLLTOOL"; then 5411 ac_ct_DLLTOOL=$DLLTOOL 5412 # Extract the first word of "dlltool", so it can be a program name with args. 5413set dummy dlltool; ac_word=$2 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5415$as_echo_n "checking for $ac_word... " >&6; } 5416if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 if test -n "$ac_ct_DLLTOOL"; then 5420 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5421else 5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5423for as_dir in $PATH 5424do 5425 IFS=$as_save_IFS 5426 test -z "$as_dir" && as_dir=. 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5429 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5431 break 2 5432 fi 5433done 5434 done 5435IFS=$as_save_IFS 5436 5437fi 5438fi 5439ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5440if test -n "$ac_ct_DLLTOOL"; then 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5442$as_echo "$ac_ct_DLLTOOL" >&6; } 5443else 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5445$as_echo "no" >&6; } 5446fi 5447 5448 if test "x$ac_ct_DLLTOOL" = x; then 5449 DLLTOOL="false" 5450 else 5451 case $cross_compiling:$ac_tool_warned in 5452yes:) 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5455ac_tool_warned=yes ;; 5456esac 5457 DLLTOOL=$ac_ct_DLLTOOL 5458 fi 5459else 5460 DLLTOOL="$ac_cv_prog_DLLTOOL" 5461fi 5462 5463test -z "$DLLTOOL" && DLLTOOL=dlltool 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5475$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5476if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 lt_cv_sharedlib_from_linklib_cmd='unknown' 5480 5481case $host_os in 5482cygwin* | mingw* | pw32* | cegcc*) 5483 # two different shell functions defined in ltmain.sh; 5484 # decide which one to use based on capabilities of $DLLTOOL 5485 case `$DLLTOOL --help 2>&1` in 5486 *--identify-strict*) 5487 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5488 ;; 5489 *) 5490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5491 ;; 5492 esac 5493 ;; 5494*) 5495 # fallback: assume linklib IS sharedlib 5496 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5497 ;; 5498esac 5499 5500fi 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5502$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5503sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5504test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5505 5506 5507 5508 5509 5510 5511 5512 5513if test -n "$ac_tool_prefix"; then 5514 for ac_prog in ar 5515 do 5516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5517set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5519$as_echo_n "checking for $ac_word... " >&6; } 5520if ${ac_cv_prog_AR+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 if test -n "$AR"; then 5524 ac_cv_prog_AR="$AR" # Let the user override the test. 5525else 5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527for as_dir in $PATH 5528do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5533 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5535 break 2 5536 fi 5537done 5538 done 5539IFS=$as_save_IFS 5540 5541fi 5542fi 5543AR=$ac_cv_prog_AR 5544if test -n "$AR"; then 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5546$as_echo "$AR" >&6; } 5547else 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5549$as_echo "no" >&6; } 5550fi 5551 5552 5553 test -n "$AR" && break 5554 done 5555fi 5556if test -z "$AR"; then 5557 ac_ct_AR=$AR 5558 for ac_prog in ar 5559do 5560 # Extract the first word of "$ac_prog", so it can be a program name with args. 5561set dummy $ac_prog; ac_word=$2 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563$as_echo_n "checking for $ac_word... " >&6; } 5564if ${ac_cv_prog_ac_ct_AR+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 if test -n "$ac_ct_AR"; then 5568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5569else 5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571for as_dir in $PATH 5572do 5573 IFS=$as_save_IFS 5574 test -z "$as_dir" && as_dir=. 5575 for ac_exec_ext in '' $ac_executable_extensions; do 5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5577 ac_cv_prog_ac_ct_AR="$ac_prog" 5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5579 break 2 5580 fi 5581done 5582 done 5583IFS=$as_save_IFS 5584 5585fi 5586fi 5587ac_ct_AR=$ac_cv_prog_ac_ct_AR 5588if test -n "$ac_ct_AR"; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5590$as_echo "$ac_ct_AR" >&6; } 5591else 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593$as_echo "no" >&6; } 5594fi 5595 5596 5597 test -n "$ac_ct_AR" && break 5598done 5599 5600 if test "x$ac_ct_AR" = x; then 5601 AR="false" 5602 else 5603 case $cross_compiling:$ac_tool_warned in 5604yes:) 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5607ac_tool_warned=yes ;; 5608esac 5609 AR=$ac_ct_AR 5610 fi 5611fi 5612 5613: ${AR=ar} 5614: ${AR_FLAGS=cru} 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5627$as_echo_n "checking for archiver @FILE support... " >&6; } 5628if ${lt_cv_ar_at_file+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 lt_cv_ar_at_file=no 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633/* end confdefs.h. */ 5634 5635int 5636main () 5637{ 5638 5639 ; 5640 return 0; 5641} 5642_ACEOF 5643if ac_fn_c_try_compile "$LINENO"; then : 5644 echo conftest.$ac_objext > conftest.lst 5645 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5647 (eval $lt_ar_try) 2>&5 5648 ac_status=$? 5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5650 test $ac_status = 0; } 5651 if test 0 -eq "$ac_status"; then 5652 # Ensure the archiver fails upon bogus file names. 5653 rm -f conftest.$ac_objext libconftest.a 5654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5655 (eval $lt_ar_try) 2>&5 5656 ac_status=$? 5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5658 test $ac_status = 0; } 5659 if test 0 -ne "$ac_status"; then 5660 lt_cv_ar_at_file=@ 5661 fi 5662 fi 5663 rm -f conftest.* libconftest.a 5664 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5667 5668fi 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5670$as_echo "$lt_cv_ar_at_file" >&6; } 5671 5672if test no = "$lt_cv_ar_at_file"; then 5673 archiver_list_spec= 5674else 5675 archiver_list_spec=$lt_cv_ar_at_file 5676fi 5677 5678 5679 5680 5681 5682 5683 5684if test -n "$ac_tool_prefix"; then 5685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5686set dummy ${ac_tool_prefix}strip; ac_word=$2 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5688$as_echo_n "checking for $ac_word... " >&6; } 5689if ${ac_cv_prog_STRIP+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 if test -n "$STRIP"; then 5693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5694else 5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696for as_dir in $PATH 5697do 5698 IFS=$as_save_IFS 5699 test -z "$as_dir" && as_dir=. 5700 for ac_exec_ext in '' $ac_executable_extensions; do 5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5702 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5704 break 2 5705 fi 5706done 5707 done 5708IFS=$as_save_IFS 5709 5710fi 5711fi 5712STRIP=$ac_cv_prog_STRIP 5713if test -n "$STRIP"; then 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5715$as_echo "$STRIP" >&6; } 5716else 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5718$as_echo "no" >&6; } 5719fi 5720 5721 5722fi 5723if test -z "$ac_cv_prog_STRIP"; then 5724 ac_ct_STRIP=$STRIP 5725 # Extract the first word of "strip", so it can be a program name with args. 5726set dummy strip; ac_word=$2 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728$as_echo_n "checking for $ac_word... " >&6; } 5729if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 if test -n "$ac_ct_STRIP"; then 5733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5734else 5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736for as_dir in $PATH 5737do 5738 IFS=$as_save_IFS 5739 test -z "$as_dir" && as_dir=. 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5742 ac_cv_prog_ac_ct_STRIP="strip" 5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5744 break 2 5745 fi 5746done 5747 done 5748IFS=$as_save_IFS 5749 5750fi 5751fi 5752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5753if test -n "$ac_ct_STRIP"; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5755$as_echo "$ac_ct_STRIP" >&6; } 5756else 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758$as_echo "no" >&6; } 5759fi 5760 5761 if test "x$ac_ct_STRIP" = x; then 5762 STRIP=":" 5763 else 5764 case $cross_compiling:$ac_tool_warned in 5765yes:) 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5768ac_tool_warned=yes ;; 5769esac 5770 STRIP=$ac_ct_STRIP 5771 fi 5772else 5773 STRIP="$ac_cv_prog_STRIP" 5774fi 5775 5776test -z "$STRIP" && STRIP=: 5777 5778 5779 5780 5781 5782 5783if test -n "$ac_tool_prefix"; then 5784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5785set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5787$as_echo_n "checking for $ac_word... " >&6; } 5788if ${ac_cv_prog_RANLIB+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 if test -n "$RANLIB"; then 5792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5793else 5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5795for as_dir in $PATH 5796do 5797 IFS=$as_save_IFS 5798 test -z "$as_dir" && as_dir=. 5799 for ac_exec_ext in '' $ac_executable_extensions; do 5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5803 break 2 5804 fi 5805done 5806 done 5807IFS=$as_save_IFS 5808 5809fi 5810fi 5811RANLIB=$ac_cv_prog_RANLIB 5812if test -n "$RANLIB"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5814$as_echo "$RANLIB" >&6; } 5815else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817$as_echo "no" >&6; } 5818fi 5819 5820 5821fi 5822if test -z "$ac_cv_prog_RANLIB"; then 5823 ac_ct_RANLIB=$RANLIB 5824 # Extract the first word of "ranlib", so it can be a program name with args. 5825set dummy ranlib; ac_word=$2 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5827$as_echo_n "checking for $ac_word... " >&6; } 5828if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 if test -n "$ac_ct_RANLIB"; then 5832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5833else 5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5835for as_dir in $PATH 5836do 5837 IFS=$as_save_IFS 5838 test -z "$as_dir" && as_dir=. 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5841 ac_cv_prog_ac_ct_RANLIB="ranlib" 5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5843 break 2 5844 fi 5845done 5846 done 5847IFS=$as_save_IFS 5848 5849fi 5850fi 5851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5852if test -n "$ac_ct_RANLIB"; then 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5854$as_echo "$ac_ct_RANLIB" >&6; } 5855else 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5857$as_echo "no" >&6; } 5858fi 5859 5860 if test "x$ac_ct_RANLIB" = x; then 5861 RANLIB=":" 5862 else 5863 case $cross_compiling:$ac_tool_warned in 5864yes:) 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5867ac_tool_warned=yes ;; 5868esac 5869 RANLIB=$ac_ct_RANLIB 5870 fi 5871else 5872 RANLIB="$ac_cv_prog_RANLIB" 5873fi 5874 5875test -z "$RANLIB" && RANLIB=: 5876 5877 5878 5879 5880 5881 5882# Determine commands to create old-style static archives. 5883old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5884old_postinstall_cmds='chmod 644 $oldlib' 5885old_postuninstall_cmds= 5886 5887if test -n "$RANLIB"; then 5888 case $host_os in 5889 bitrig* | openbsd*) 5890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5891 ;; 5892 *) 5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5894 ;; 5895 esac 5896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5897fi 5898 5899case $host_os in 5900 darwin*) 5901 lock_old_archive_extraction=yes ;; 5902 *) 5903 lock_old_archive_extraction=no ;; 5904esac 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944# If no C compiler was specified, use CC. 5945LTCC=${LTCC-"$CC"} 5946 5947# If no C compiler flags were specified, use CFLAGS. 5948LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5949 5950# Allow CC to be a program name with arguments. 5951compiler=$CC 5952 5953 5954# Check for command to grab the raw symbol name followed by C symbol from nm. 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5956$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5957if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 5961# These are sane defaults that work on at least a few old systems. 5962# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5963 5964# Character class describing NM global symbol codes. 5965symcode='[BCDEGRST]' 5966 5967# Regexp to match symbols that can be accessed directly from C. 5968sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5969 5970# Define system-specific variables. 5971case $host_os in 5972aix*) 5973 symcode='[BCDT]' 5974 ;; 5975cygwin* | mingw* | pw32* | cegcc*) 5976 symcode='[ABCDGISTW]' 5977 ;; 5978hpux*) 5979 if test ia64 = "$host_cpu"; then 5980 symcode='[ABCDEGRST]' 5981 fi 5982 ;; 5983irix* | nonstopux*) 5984 symcode='[BCDEGRST]' 5985 ;; 5986osf*) 5987 symcode='[BCDEGQRST]' 5988 ;; 5989solaris*) 5990 symcode='[BDRT]' 5991 ;; 5992sco3.2v5*) 5993 symcode='[DT]' 5994 ;; 5995sysv4.2uw2*) 5996 symcode='[DT]' 5997 ;; 5998sysv5* | sco5v6* | unixware* | OpenUNIX*) 5999 symcode='[ABDT]' 6000 ;; 6001sysv4) 6002 symcode='[DFNSTU]' 6003 ;; 6004esac 6005 6006# If we're using GNU nm, then use its standard symbol codes. 6007case `$NM -V 2>&1` in 6008*GNU* | *'with BFD'*) 6009 symcode='[ABCDGIRSTW]' ;; 6010esac 6011 6012if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6013 # Gets list of data symbols to import. 6014 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6015 # Adjust the below global symbol transforms to fixup imported variables. 6016 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6017 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6018 lt_c_name_lib_hook="\ 6019 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6020 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6021else 6022 # Disable hooks by default. 6023 lt_cv_sys_global_symbol_to_import= 6024 lt_cdecl_hook= 6025 lt_c_name_hook= 6026 lt_c_name_lib_hook= 6027fi 6028 6029# Transform an extracted symbol line into a proper C declaration. 6030# Some systems (esp. on ia64) link data and code symbols differently, 6031# so use this general approach. 6032lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6033$lt_cdecl_hook\ 6034" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6035" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6036 6037# Transform an extracted symbol line into symbol name and symbol address 6038lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6039$lt_c_name_hook\ 6040" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6041" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6042 6043# Transform an extracted symbol line into symbol name with lib prefix and 6044# symbol address. 6045lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6046$lt_c_name_lib_hook\ 6047" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6048" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6049" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6050 6051# Handle CRLF in mingw tool chain 6052opt_cr= 6053case $build_os in 6054mingw*) 6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6056 ;; 6057esac 6058 6059# Try without a prefix underscore, then with it. 6060for ac_symprfx in "" "_"; do 6061 6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6063 symxfrm="\\1 $ac_symprfx\\2 \\2" 6064 6065 # Write the raw and C identifiers. 6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6067 # Fake it for dumpbin and say T for any non-static function, 6068 # D for any global variable and I for any imported variable. 6069 # Also find C++ and __fastcall symbols from MSVC++, 6070 # which start with @ or ?. 6071 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6072" {last_section=section; section=\$ 3};"\ 6073" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6074" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6075" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6076" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6077" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6078" \$ 0!~/External *\|/{next};"\ 6079" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6080" {if(hide[section]) next};"\ 6081" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6082" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6083" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6084" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6085" ' prfx=^$ac_symprfx" 6086 else 6087 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6088 fi 6089 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6090 6091 # Check to see that the pipe works correctly. 6092 pipe_works=no 6093 6094 rm -f conftest* 6095 cat > conftest.$ac_ext <<_LT_EOF 6096#ifdef __cplusplus 6097extern "C" { 6098#endif 6099char nm_test_var; 6100void nm_test_func(void); 6101void nm_test_func(void){} 6102#ifdef __cplusplus 6103} 6104#endif 6105int main(){nm_test_var='a';nm_test_func();return(0);} 6106_LT_EOF 6107 6108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6109 (eval $ac_compile) 2>&5 6110 ac_status=$? 6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6112 test $ac_status = 0; }; then 6113 # Now try to grab the symbols. 6114 nlist=conftest.nm 6115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6116 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6117 ac_status=$? 6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6119 test $ac_status = 0; } && test -s "$nlist"; then 6120 # Try sorting and uniquifying the output. 6121 if sort "$nlist" | uniq > "$nlist"T; then 6122 mv -f "$nlist"T "$nlist" 6123 else 6124 rm -f "$nlist"T 6125 fi 6126 6127 # Make sure that we snagged all the symbols we need. 6128 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6129 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6130 cat <<_LT_EOF > conftest.$ac_ext 6131/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6132#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6133/* DATA imports from DLLs on WIN32 can't be const, because runtime 6134 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6135# define LT_DLSYM_CONST 6136#elif defined __osf__ 6137/* This system does not cope well with relocations in const data. */ 6138# define LT_DLSYM_CONST 6139#else 6140# define LT_DLSYM_CONST const 6141#endif 6142 6143#ifdef __cplusplus 6144extern "C" { 6145#endif 6146 6147_LT_EOF 6148 # Now generate the symbol file. 6149 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6150 6151 cat <<_LT_EOF >> conftest.$ac_ext 6152 6153/* The mapping between symbol names and symbols. */ 6154LT_DLSYM_CONST struct { 6155 const char *name; 6156 void *address; 6157} 6158lt__PROGRAM__LTX_preloaded_symbols[] = 6159{ 6160 { "@PROGRAM@", (void *) 0 }, 6161_LT_EOF 6162 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6163 cat <<\_LT_EOF >> conftest.$ac_ext 6164 {0, (void *) 0} 6165}; 6166 6167/* This works around a problem in FreeBSD linker */ 6168#ifdef FREEBSD_WORKAROUND 6169static const void *lt_preloaded_setup() { 6170 return lt__PROGRAM__LTX_preloaded_symbols; 6171} 6172#endif 6173 6174#ifdef __cplusplus 6175} 6176#endif 6177_LT_EOF 6178 # Now try linking the two files. 6179 mv conftest.$ac_objext conftstm.$ac_objext 6180 lt_globsym_save_LIBS=$LIBS 6181 lt_globsym_save_CFLAGS=$CFLAGS 6182 LIBS=conftstm.$ac_objext 6183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6185 (eval $ac_link) 2>&5 6186 ac_status=$? 6187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6188 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6189 pipe_works=yes 6190 fi 6191 LIBS=$lt_globsym_save_LIBS 6192 CFLAGS=$lt_globsym_save_CFLAGS 6193 else 6194 echo "cannot find nm_test_func in $nlist" >&5 6195 fi 6196 else 6197 echo "cannot find nm_test_var in $nlist" >&5 6198 fi 6199 else 6200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6201 fi 6202 else 6203 echo "$progname: failed program was:" >&5 6204 cat conftest.$ac_ext >&5 6205 fi 6206 rm -rf conftest* conftst* 6207 6208 # Do not use the global_symbol_pipe unless it works. 6209 if test yes = "$pipe_works"; then 6210 break 6211 else 6212 lt_cv_sys_global_symbol_pipe= 6213 fi 6214done 6215 6216fi 6217 6218if test -z "$lt_cv_sys_global_symbol_pipe"; then 6219 lt_cv_sys_global_symbol_to_cdecl= 6220fi 6221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6223$as_echo "failed" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6226$as_echo "ok" >&6; } 6227fi 6228 6229# Response file support. 6230if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6231 nm_file_list_spec='@' 6232elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6233 nm_file_list_spec='@' 6234fi 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6273$as_echo_n "checking for sysroot... " >&6; } 6274 6275# Check whether --with-sysroot was given. 6276if test "${with_sysroot+set}" = set; then : 6277 withval=$with_sysroot; 6278else 6279 with_sysroot=no 6280fi 6281 6282 6283lt_sysroot= 6284case $with_sysroot in #( 6285 yes) 6286 if test yes = "$GCC"; then 6287 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6288 fi 6289 ;; #( 6290 /*) 6291 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6292 ;; #( 6293 no|'') 6294 ;; #( 6295 *) 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6297$as_echo "$with_sysroot" >&6; } 6298 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6299 ;; 6300esac 6301 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6303$as_echo "${lt_sysroot:-no}" >&6; } 6304 6305 6306 6307 6308 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6310$as_echo_n "checking for a working dd... " >&6; } 6311if ${ac_cv_path_lt_DD+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 printf 0123456789abcdef0123456789abcdef >conftest.i 6315cat conftest.i conftest.i >conftest2.i 6316: ${lt_DD:=$DD} 6317if test -z "$lt_DD"; then 6318 ac_path_lt_DD_found=false 6319 # Loop through the user's path and test for each of PROGNAME-LIST 6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6321for as_dir in $PATH 6322do 6323 IFS=$as_save_IFS 6324 test -z "$as_dir" && as_dir=. 6325 for ac_prog in dd; do 6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6328 as_fn_executable_p "$ac_path_lt_DD" || continue 6329if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6330 cmp -s conftest.i conftest.out \ 6331 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6332fi 6333 $ac_path_lt_DD_found && break 3 6334 done 6335 done 6336 done 6337IFS=$as_save_IFS 6338 if test -z "$ac_cv_path_lt_DD"; then 6339 : 6340 fi 6341else 6342 ac_cv_path_lt_DD=$lt_DD 6343fi 6344 6345rm -f conftest.i conftest2.i conftest.out 6346fi 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6348$as_echo "$ac_cv_path_lt_DD" >&6; } 6349 6350 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6352$as_echo_n "checking how to truncate binary pipes... " >&6; } 6353if ${lt_cv_truncate_bin+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 printf 0123456789abcdef0123456789abcdef >conftest.i 6357cat conftest.i conftest.i >conftest2.i 6358lt_cv_truncate_bin= 6359if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6360 cmp -s conftest.i conftest.out \ 6361 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6362fi 6363rm -f conftest.i conftest2.i conftest.out 6364test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6365fi 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6367$as_echo "$lt_cv_truncate_bin" >&6; } 6368 6369 6370 6371 6372 6373 6374 6375# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6376func_cc_basename () 6377{ 6378 for cc_temp in $*""; do 6379 case $cc_temp in 6380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6382 \-*) ;; 6383 *) break;; 6384 esac 6385 done 6386 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6387} 6388 6389# Check whether --enable-libtool-lock was given. 6390if test "${enable_libtool_lock+set}" = set; then : 6391 enableval=$enable_libtool_lock; 6392fi 6393 6394test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6395 6396# Some flags need to be propagated to the compiler or linker for good 6397# libtool support. 6398case $host in 6399ia64-*-hpux*) 6400 # Find out what ABI is being produced by ac_compile, and set mode 6401 # options accordingly. 6402 echo 'int i;' > conftest.$ac_ext 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6404 (eval $ac_compile) 2>&5 6405 ac_status=$? 6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6407 test $ac_status = 0; }; then 6408 case `/usr/bin/file conftest.$ac_objext` in 6409 *ELF-32*) 6410 HPUX_IA64_MODE=32 6411 ;; 6412 *ELF-64*) 6413 HPUX_IA64_MODE=64 6414 ;; 6415 esac 6416 fi 6417 rm -rf conftest* 6418 ;; 6419*-*-irix6*) 6420 # Find out what ABI is being produced by ac_compile, and set linker 6421 # options accordingly. 6422 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6424 (eval $ac_compile) 2>&5 6425 ac_status=$? 6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6427 test $ac_status = 0; }; then 6428 if test yes = "$lt_cv_prog_gnu_ld"; then 6429 case `/usr/bin/file conftest.$ac_objext` in 6430 *32-bit*) 6431 LD="${LD-ld} -melf32bsmip" 6432 ;; 6433 *N32*) 6434 LD="${LD-ld} -melf32bmipn32" 6435 ;; 6436 *64-bit*) 6437 LD="${LD-ld} -melf64bmip" 6438 ;; 6439 esac 6440 else 6441 case `/usr/bin/file conftest.$ac_objext` in 6442 *32-bit*) 6443 LD="${LD-ld} -32" 6444 ;; 6445 *N32*) 6446 LD="${LD-ld} -n32" 6447 ;; 6448 *64-bit*) 6449 LD="${LD-ld} -64" 6450 ;; 6451 esac 6452 fi 6453 fi 6454 rm -rf conftest* 6455 ;; 6456 6457mips64*-*linux*) 6458 # Find out what ABI is being produced by ac_compile, and set linker 6459 # options accordingly. 6460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6462 (eval $ac_compile) 2>&5 6463 ac_status=$? 6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6465 test $ac_status = 0; }; then 6466 emul=elf 6467 case `/usr/bin/file conftest.$ac_objext` in 6468 *32-bit*) 6469 emul="${emul}32" 6470 ;; 6471 *64-bit*) 6472 emul="${emul}64" 6473 ;; 6474 esac 6475 case `/usr/bin/file conftest.$ac_objext` in 6476 *MSB*) 6477 emul="${emul}btsmip" 6478 ;; 6479 *LSB*) 6480 emul="${emul}ltsmip" 6481 ;; 6482 esac 6483 case `/usr/bin/file conftest.$ac_objext` in 6484 *N32*) 6485 emul="${emul}n32" 6486 ;; 6487 esac 6488 LD="${LD-ld} -m $emul" 6489 fi 6490 rm -rf conftest* 6491 ;; 6492 6493x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6494s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6495 # Find out what ABI is being produced by ac_compile, and set linker 6496 # options accordingly. Note that the listed cases only cover the 6497 # situations where additional linker options are needed (such as when 6498 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6499 # vice versa); the common cases where no linker options are needed do 6500 # not appear in the list. 6501 echo 'int i;' > conftest.$ac_ext 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6503 (eval $ac_compile) 2>&5 6504 ac_status=$? 6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6506 test $ac_status = 0; }; then 6507 case `/usr/bin/file conftest.o` in 6508 *32-bit*) 6509 case $host in 6510 x86_64-*kfreebsd*-gnu) 6511 LD="${LD-ld} -m elf_i386_fbsd" 6512 ;; 6513 x86_64-*linux*) 6514 case `/usr/bin/file conftest.o` in 6515 *x86-64*) 6516 LD="${LD-ld} -m elf32_x86_64" 6517 ;; 6518 *) 6519 LD="${LD-ld} -m elf_i386" 6520 ;; 6521 esac 6522 ;; 6523 powerpc64le-*linux*) 6524 LD="${LD-ld} -m elf32lppclinux" 6525 ;; 6526 powerpc64-*linux*) 6527 LD="${LD-ld} -m elf32ppclinux" 6528 ;; 6529 s390x-*linux*) 6530 LD="${LD-ld} -m elf_s390" 6531 ;; 6532 sparc64-*linux*) 6533 LD="${LD-ld} -m elf32_sparc" 6534 ;; 6535 esac 6536 ;; 6537 *64-bit*) 6538 case $host in 6539 x86_64-*kfreebsd*-gnu) 6540 LD="${LD-ld} -m elf_x86_64_fbsd" 6541 ;; 6542 x86_64-*linux*) 6543 LD="${LD-ld} -m elf_x86_64" 6544 ;; 6545 powerpcle-*linux*|powerpc64le-*linux*) 6546 LD="${LD-ld} -m elf64lppc" 6547 ;; 6548 powerpc-*linux*|powerpc64-*linux*) 6549 LD="${LD-ld} -m elf64ppc" 6550 ;; 6551 s390*-*linux*|s390*-*tpf*) 6552 LD="${LD-ld} -m elf64_s390" 6553 ;; 6554 sparc*-*linux*) 6555 LD="${LD-ld} -m elf64_sparc" 6556 ;; 6557 esac 6558 ;; 6559 esac 6560 fi 6561 rm -rf conftest* 6562 ;; 6563 6564*-*-sco3.2v5*) 6565 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6566 SAVE_CFLAGS=$CFLAGS 6567 CFLAGS="$CFLAGS -belf" 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6569$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6570if ${lt_cv_cc_needs_belf+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 ac_ext=c 6574ac_cpp='$CPP $CPPFLAGS' 6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6577ac_compiler_gnu=$ac_cv_c_compiler_gnu 6578 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581 6582int 6583main () 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_link "$LINENO"; then : 6591 lt_cv_cc_needs_belf=yes 6592else 6593 lt_cv_cc_needs_belf=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext \ 6596 conftest$ac_exeext conftest.$ac_ext 6597 ac_ext=c 6598ac_cpp='$CPP $CPPFLAGS' 6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6601ac_compiler_gnu=$ac_cv_c_compiler_gnu 6602 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6605$as_echo "$lt_cv_cc_needs_belf" >&6; } 6606 if test yes != "$lt_cv_cc_needs_belf"; then 6607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6608 CFLAGS=$SAVE_CFLAGS 6609 fi 6610 ;; 6611*-*solaris*) 6612 # Find out what ABI is being produced by ac_compile, and set linker 6613 # options accordingly. 6614 echo 'int i;' > conftest.$ac_ext 6615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6616 (eval $ac_compile) 2>&5 6617 ac_status=$? 6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6619 test $ac_status = 0; }; then 6620 case `/usr/bin/file conftest.o` in 6621 *64-bit*) 6622 case $lt_cv_prog_gnu_ld in 6623 yes*) 6624 case $host in 6625 i?86-*-solaris*|x86_64-*-solaris*) 6626 LD="${LD-ld} -m elf_x86_64" 6627 ;; 6628 sparc*-*-solaris*) 6629 LD="${LD-ld} -m elf64_sparc" 6630 ;; 6631 esac 6632 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6633 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6634 LD=${LD-ld}_sol2 6635 fi 6636 ;; 6637 *) 6638 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6639 LD="${LD-ld} -64" 6640 fi 6641 ;; 6642 esac 6643 ;; 6644 esac 6645 fi 6646 rm -rf conftest* 6647 ;; 6648esac 6649 6650need_locks=$enable_libtool_lock 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}mt; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$MANIFEST_TOOL"; then 6661 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6681if test -n "$MANIFEST_TOOL"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6683$as_echo "$MANIFEST_TOOL" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6692 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6693 # Extract the first word of "mt", so it can be a program name with args. 6694set dummy mt; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_MANIFEST_TOOL"; then 6701 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6721if test -n "$ac_ct_MANIFEST_TOOL"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6723$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6730 MANIFEST_TOOL=":" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6739 fi 6740else 6741 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6742fi 6743 6744test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6746$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6747if ${lt_cv_path_mainfest_tool+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 lt_cv_path_mainfest_tool=no 6751 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6752 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6753 cat conftest.err >&5 6754 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6755 lt_cv_path_mainfest_tool=yes 6756 fi 6757 rm -f conftest* 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6760$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6761if test yes != "$lt_cv_path_mainfest_tool"; then 6762 MANIFEST_TOOL=: 6763fi 6764 6765 6766 6767 6768 6769 6770 case $host_os in 6771 rhapsody* | darwin*) 6772 if test -n "$ac_tool_prefix"; then 6773 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6774set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776$as_echo_n "checking for $ac_word... " >&6; } 6777if ${ac_cv_prog_DSYMUTIL+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 if test -n "$DSYMUTIL"; then 6781 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6782else 6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in $PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6790 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794done 6795 done 6796IFS=$as_save_IFS 6797 6798fi 6799fi 6800DSYMUTIL=$ac_cv_prog_DSYMUTIL 6801if test -n "$DSYMUTIL"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6803$as_echo "$DSYMUTIL" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 6810fi 6811if test -z "$ac_cv_prog_DSYMUTIL"; then 6812 ac_ct_DSYMUTIL=$DSYMUTIL 6813 # Extract the first word of "dsymutil", so it can be a program name with args. 6814set dummy dsymutil; ac_word=$2 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816$as_echo_n "checking for $ac_word... " >&6; } 6817if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -n "$ac_ct_DSYMUTIL"; then 6821 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6830 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835 done 6836IFS=$as_save_IFS 6837 6838fi 6839fi 6840ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6841if test -n "$ac_ct_DSYMUTIL"; then 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6843$as_echo "$ac_ct_DSYMUTIL" >&6; } 6844else 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6846$as_echo "no" >&6; } 6847fi 6848 6849 if test "x$ac_ct_DSYMUTIL" = x; then 6850 DSYMUTIL=":" 6851 else 6852 case $cross_compiling:$ac_tool_warned in 6853yes:) 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6856ac_tool_warned=yes ;; 6857esac 6858 DSYMUTIL=$ac_ct_DSYMUTIL 6859 fi 6860else 6861 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6862fi 6863 6864 if test -n "$ac_tool_prefix"; then 6865 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6866set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_prog_NMEDIT+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 if test -n "$NMEDIT"; then 6873 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892NMEDIT=$ac_cv_prog_NMEDIT 6893if test -n "$NMEDIT"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6895$as_echo "$NMEDIT" >&6; } 6896else 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898$as_echo "no" >&6; } 6899fi 6900 6901 6902fi 6903if test -z "$ac_cv_prog_NMEDIT"; then 6904 ac_ct_NMEDIT=$NMEDIT 6905 # Extract the first word of "nmedit", so it can be a program name with args. 6906set dummy nmedit; ac_word=$2 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908$as_echo_n "checking for $ac_word... " >&6; } 6909if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$ac_ct_NMEDIT"; then 6913 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6922 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6933if test -n "$ac_ct_NMEDIT"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6935$as_echo "$ac_ct_NMEDIT" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 if test "x$ac_ct_NMEDIT" = x; then 6942 NMEDIT=":" 6943 else 6944 case $cross_compiling:$ac_tool_warned in 6945yes:) 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6948ac_tool_warned=yes ;; 6949esac 6950 NMEDIT=$ac_ct_NMEDIT 6951 fi 6952else 6953 NMEDIT="$ac_cv_prog_NMEDIT" 6954fi 6955 6956 if test -n "$ac_tool_prefix"; then 6957 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6958set dummy ${ac_tool_prefix}lipo; ac_word=$2 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960$as_echo_n "checking for $ac_word... " >&6; } 6961if ${ac_cv_prog_LIPO+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 if test -n "$LIPO"; then 6965 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 test -z "$as_dir" && as_dir=. 6972 for ac_exec_ext in '' $ac_executable_extensions; do 6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6974 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6976 break 2 6977 fi 6978done 6979 done 6980IFS=$as_save_IFS 6981 6982fi 6983fi 6984LIPO=$ac_cv_prog_LIPO 6985if test -n "$LIPO"; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6987$as_echo "$LIPO" >&6; } 6988else 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 6993 6994fi 6995if test -z "$ac_cv_prog_LIPO"; then 6996 ac_ct_LIPO=$LIPO 6997 # Extract the first word of "lipo", so it can be a program name with args. 6998set dummy lipo; ac_word=$2 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000$as_echo_n "checking for $ac_word... " >&6; } 7001if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 if test -n "$ac_ct_LIPO"; then 7005 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7006else 7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008for as_dir in $PATH 7009do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7014 ac_cv_prog_ac_ct_LIPO="lipo" 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018done 7019 done 7020IFS=$as_save_IFS 7021 7022fi 7023fi 7024ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7025if test -n "$ac_ct_LIPO"; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7027$as_echo "$ac_ct_LIPO" >&6; } 7028else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7030$as_echo "no" >&6; } 7031fi 7032 7033 if test "x$ac_ct_LIPO" = x; then 7034 LIPO=":" 7035 else 7036 case $cross_compiling:$ac_tool_warned in 7037yes:) 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7040ac_tool_warned=yes ;; 7041esac 7042 LIPO=$ac_ct_LIPO 7043 fi 7044else 7045 LIPO="$ac_cv_prog_LIPO" 7046fi 7047 7048 if test -n "$ac_tool_prefix"; then 7049 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7050set dummy ${ac_tool_prefix}otool; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_OTOOL+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$OTOOL"; then 7057 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076OTOOL=$ac_cv_prog_OTOOL 7077if test -n "$OTOOL"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7079$as_echo "$OTOOL" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086fi 7087if test -z "$ac_cv_prog_OTOOL"; then 7088 ac_ct_OTOOL=$OTOOL 7089 # Extract the first word of "otool", so it can be a program name with args. 7090set dummy otool; ac_word=$2 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 if test -n "$ac_ct_OTOOL"; then 7097 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7106 ac_cv_prog_ac_ct_OTOOL="otool" 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111 done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7117if test -n "$ac_ct_OTOOL"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7119$as_echo "$ac_ct_OTOOL" >&6; } 7120else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125 if test "x$ac_ct_OTOOL" = x; then 7126 OTOOL=":" 7127 else 7128 case $cross_compiling:$ac_tool_warned in 7129yes:) 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7132ac_tool_warned=yes ;; 7133esac 7134 OTOOL=$ac_ct_OTOOL 7135 fi 7136else 7137 OTOOL="$ac_cv_prog_OTOOL" 7138fi 7139 7140 if test -n "$ac_tool_prefix"; then 7141 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7142set dummy ${ac_tool_prefix}otool64; ac_word=$2 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7144$as_echo_n "checking for $ac_word... " >&6; } 7145if ${ac_cv_prog_OTOOL64+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 if test -n "$OTOOL64"; then 7149 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7150else 7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152for as_dir in $PATH 7153do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_exec_ext in '' $ac_executable_extensions; do 7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7158 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7160 break 2 7161 fi 7162done 7163 done 7164IFS=$as_save_IFS 7165 7166fi 7167fi 7168OTOOL64=$ac_cv_prog_OTOOL64 7169if test -n "$OTOOL64"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7171$as_echo "$OTOOL64" >&6; } 7172else 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7174$as_echo "no" >&6; } 7175fi 7176 7177 7178fi 7179if test -z "$ac_cv_prog_OTOOL64"; then 7180 ac_ct_OTOOL64=$OTOOL64 7181 # Extract the first word of "otool64", so it can be a program name with args. 7182set dummy otool64; ac_word=$2 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184$as_echo_n "checking for $ac_word... " >&6; } 7185if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187else 7188 if test -n "$ac_ct_OTOOL64"; then 7189 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7190else 7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192for as_dir in $PATH 7193do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_ac_ct_OTOOL64="otool64" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7209if test -n "$ac_ct_OTOOL64"; then 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7211$as_echo "$ac_ct_OTOOL64" >&6; } 7212else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214$as_echo "no" >&6; } 7215fi 7216 7217 if test "x$ac_ct_OTOOL64" = x; then 7218 OTOOL64=":" 7219 else 7220 case $cross_compiling:$ac_tool_warned in 7221yes:) 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7224ac_tool_warned=yes ;; 7225esac 7226 OTOOL64=$ac_ct_OTOOL64 7227 fi 7228else 7229 OTOOL64="$ac_cv_prog_OTOOL64" 7230fi 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7259$as_echo_n "checking for -single_module linker flag... " >&6; } 7260if ${lt_cv_apple_cc_single_mod+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 lt_cv_apple_cc_single_mod=no 7264 if test -z "$LT_MULTI_MODULE"; then 7265 # By default we will add the -single_module flag. You can override 7266 # by either setting the environment variable LT_MULTI_MODULE 7267 # non-empty at configure time, or by adding -multi_module to the 7268 # link flags. 7269 rm -rf libconftest.dylib* 7270 echo "int foo(void){return 1;}" > conftest.c 7271 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7272-dynamiclib -Wl,-single_module conftest.c" >&5 7273 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7274 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7275 _lt_result=$? 7276 # If there is a non-empty error log, and "single_module" 7277 # appears in it, assume the flag caused a linker warning 7278 if test -s conftest.err && $GREP single_module conftest.err; then 7279 cat conftest.err >&5 7280 # Otherwise, if the output was created with a 0 exit code from 7281 # the compiler, it worked. 7282 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7283 lt_cv_apple_cc_single_mod=yes 7284 else 7285 cat conftest.err >&5 7286 fi 7287 rm -rf libconftest.dylib* 7288 rm -f conftest.* 7289 fi 7290fi 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7292$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7293 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7295$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7296if ${lt_cv_ld_exported_symbols_list+:} false; then : 7297 $as_echo_n "(cached) " >&6 7298else 7299 lt_cv_ld_exported_symbols_list=no 7300 save_LDFLAGS=$LDFLAGS 7301 echo "_main" > conftest.sym 7302 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305 7306int 7307main () 7308{ 7309 7310 ; 7311 return 0; 7312} 7313_ACEOF 7314if ac_fn_c_try_link "$LINENO"; then : 7315 lt_cv_ld_exported_symbols_list=yes 7316else 7317 lt_cv_ld_exported_symbols_list=no 7318fi 7319rm -f core conftest.err conftest.$ac_objext \ 7320 conftest$ac_exeext conftest.$ac_ext 7321 LDFLAGS=$save_LDFLAGS 7322 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7325$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7326 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7328$as_echo_n "checking for -force_load linker flag... " >&6; } 7329if ${lt_cv_ld_force_load+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 lt_cv_ld_force_load=no 7333 cat > conftest.c << _LT_EOF 7334int forced_loaded() { return 2;} 7335_LT_EOF 7336 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7337 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7338 echo "$AR cru libconftest.a conftest.o" >&5 7339 $AR cru libconftest.a conftest.o 2>&5 7340 echo "$RANLIB libconftest.a" >&5 7341 $RANLIB libconftest.a 2>&5 7342 cat > conftest.c << _LT_EOF 7343int main() { return 0;} 7344_LT_EOF 7345 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7346 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7347 _lt_result=$? 7348 if test -s conftest.err && $GREP force_load conftest.err; then 7349 cat conftest.err >&5 7350 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7351 lt_cv_ld_force_load=yes 7352 else 7353 cat conftest.err >&5 7354 fi 7355 rm -f conftest.err libconftest.a conftest conftest.c 7356 rm -rf conftest.dSYM 7357 7358fi 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7360$as_echo "$lt_cv_ld_force_load" >&6; } 7361 case $host_os in 7362 rhapsody* | darwin1.[012]) 7363 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7364 darwin1.*) 7365 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7366 darwin*) # darwin 5.x on 7367 # if running on 10.5 or later, the deployment target defaults 7368 # to the OS version, if on x86, and 10.4, the deployment 7369 # target defaults to 10.4. Don't you love it? 7370 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7371 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7372 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7373 10.[012][,.]*) 7374 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7375 10.*) 7376 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7377 esac 7378 ;; 7379 esac 7380 if test yes = "$lt_cv_apple_cc_single_mod"; then 7381 _lt_dar_single_mod='$single_module' 7382 fi 7383 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7384 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7385 else 7386 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7387 fi 7388 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7389 _lt_dsymutil='~$DSYMUTIL $lib || :' 7390 else 7391 _lt_dsymutil= 7392 fi 7393 ;; 7394 esac 7395 7396# func_munge_path_list VARIABLE PATH 7397# ----------------------------------- 7398# VARIABLE is name of variable containing _space_ separated list of 7399# directories to be munged by the contents of PATH, which is string 7400# having a format: 7401# "DIR[:DIR]:" 7402# string "DIR[ DIR]" will be prepended to VARIABLE 7403# ":DIR[:DIR]" 7404# string "DIR[ DIR]" will be appended to VARIABLE 7405# "DIRP[:DIRP]::[DIRA:]DIRA" 7406# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7407# "DIRA[ DIRA]" will be appended to VARIABLE 7408# "DIR[:DIR]" 7409# VARIABLE will be replaced by "DIR[ DIR]" 7410func_munge_path_list () 7411{ 7412 case x$2 in 7413 x) 7414 ;; 7415 *:) 7416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7417 ;; 7418 x:*) 7419 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7420 ;; 7421 *::*) 7422 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7423 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7424 ;; 7425 *) 7426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7427 ;; 7428 esac 7429} 7430 7431ac_ext=c 7432ac_cpp='$CPP $CPPFLAGS' 7433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7435ac_compiler_gnu=$ac_cv_c_compiler_gnu 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7437$as_echo_n "checking how to run the C preprocessor... " >&6; } 7438# On Suns, sometimes $CPP names a directory. 7439if test -n "$CPP" && test -d "$CPP"; then 7440 CPP= 7441fi 7442if test -z "$CPP"; then 7443 if ${ac_cv_prog_CPP+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 # Double quotes because CPP needs to be expanded 7447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7448 do 7449 ac_preproc_ok=false 7450for ac_c_preproc_warn_flag in '' yes 7451do 7452 # Use a header file that comes with gcc, so configuring glibc 7453 # with a fresh cross-compiler works. 7454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7455 # <limits.h> exists even on freestanding compilers. 7456 # On the NeXT, cc -E runs the code through the compiler's parser, 7457 # not just through cpp. "Syntax error" is here to catch this case. 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460#ifdef __STDC__ 7461# include <limits.h> 7462#else 7463# include <assert.h> 7464#endif 7465 Syntax error 7466_ACEOF 7467if ac_fn_c_try_cpp "$LINENO"; then : 7468 7469else 7470 # Broken: fails on valid input. 7471continue 7472fi 7473rm -f conftest.err conftest.i conftest.$ac_ext 7474 7475 # OK, works on sane cases. Now check whether nonexistent headers 7476 # can be detected and how. 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479#include <ac_nonexistent.h> 7480_ACEOF 7481if ac_fn_c_try_cpp "$LINENO"; then : 7482 # Broken: success on invalid input. 7483continue 7484else 7485 # Passes both tests. 7486ac_preproc_ok=: 7487break 7488fi 7489rm -f conftest.err conftest.i conftest.$ac_ext 7490 7491done 7492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7493rm -f conftest.i conftest.err conftest.$ac_ext 7494if $ac_preproc_ok; then : 7495 break 7496fi 7497 7498 done 7499 ac_cv_prog_CPP=$CPP 7500 7501fi 7502 CPP=$ac_cv_prog_CPP 7503else 7504 ac_cv_prog_CPP=$CPP 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7507$as_echo "$CPP" >&6; } 7508ac_preproc_ok=false 7509for ac_c_preproc_warn_flag in '' yes 7510do 7511 # Use a header file that comes with gcc, so configuring glibc 7512 # with a fresh cross-compiler works. 7513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7514 # <limits.h> exists even on freestanding compilers. 7515 # On the NeXT, cc -E runs the code through the compiler's parser, 7516 # not just through cpp. "Syntax error" is here to catch this case. 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519#ifdef __STDC__ 7520# include <limits.h> 7521#else 7522# include <assert.h> 7523#endif 7524 Syntax error 7525_ACEOF 7526if ac_fn_c_try_cpp "$LINENO"; then : 7527 7528else 7529 # Broken: fails on valid input. 7530continue 7531fi 7532rm -f conftest.err conftest.i conftest.$ac_ext 7533 7534 # OK, works on sane cases. Now check whether nonexistent headers 7535 # can be detected and how. 7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537/* end confdefs.h. */ 7538#include <ac_nonexistent.h> 7539_ACEOF 7540if ac_fn_c_try_cpp "$LINENO"; then : 7541 # Broken: success on invalid input. 7542continue 7543else 7544 # Passes both tests. 7545ac_preproc_ok=: 7546break 7547fi 7548rm -f conftest.err conftest.i conftest.$ac_ext 7549 7550done 7551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7552rm -f conftest.i conftest.err conftest.$ac_ext 7553if $ac_preproc_ok; then : 7554 7555else 7556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7558as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7559See \`config.log' for more details" "$LINENO" 5; } 7560fi 7561 7562ac_ext=c 7563ac_cpp='$CPP $CPPFLAGS' 7564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7566ac_compiler_gnu=$ac_cv_c_compiler_gnu 7567 7568 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7570$as_echo_n "checking for ANSI C header files... " >&6; } 7571if ${ac_cv_header_stdc+:} false; then : 7572 $as_echo_n "(cached) " >&6 7573else 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576#include <stdlib.h> 7577#include <stdarg.h> 7578#include <string.h> 7579#include <float.h> 7580 7581int 7582main () 7583{ 7584 7585 ; 7586 return 0; 7587} 7588_ACEOF 7589if ac_fn_c_try_compile "$LINENO"; then : 7590 ac_cv_header_stdc=yes 7591else 7592 ac_cv_header_stdc=no 7593fi 7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7595 7596if test $ac_cv_header_stdc = yes; then 7597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600#include <string.h> 7601 7602_ACEOF 7603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7604 $EGREP "memchr" >/dev/null 2>&1; then : 7605 7606else 7607 ac_cv_header_stdc=no 7608fi 7609rm -f conftest* 7610 7611fi 7612 7613if test $ac_cv_header_stdc = yes; then 7614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617#include <stdlib.h> 7618 7619_ACEOF 7620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7621 $EGREP "free" >/dev/null 2>&1; then : 7622 7623else 7624 ac_cv_header_stdc=no 7625fi 7626rm -f conftest* 7627 7628fi 7629 7630if test $ac_cv_header_stdc = yes; then 7631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7632 if test "$cross_compiling" = yes; then : 7633 : 7634else 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637#include <ctype.h> 7638#include <stdlib.h> 7639#if ((' ' & 0x0FF) == 0x020) 7640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7642#else 7643# define ISLOWER(c) \ 7644 (('a' <= (c) && (c) <= 'i') \ 7645 || ('j' <= (c) && (c) <= 'r') \ 7646 || ('s' <= (c) && (c) <= 'z')) 7647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7648#endif 7649 7650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7651int 7652main () 7653{ 7654 int i; 7655 for (i = 0; i < 256; i++) 7656 if (XOR (islower (i), ISLOWER (i)) 7657 || toupper (i) != TOUPPER (i)) 7658 return 2; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_run "$LINENO"; then : 7663 7664else 7665 ac_cv_header_stdc=no 7666fi 7667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7668 conftest.$ac_objext conftest.beam conftest.$ac_ext 7669fi 7670 7671fi 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7674$as_echo "$ac_cv_header_stdc" >&6; } 7675if test $ac_cv_header_stdc = yes; then 7676 7677$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7678 7679fi 7680 7681# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7682for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7683 inttypes.h stdint.h unistd.h 7684do : 7685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7687" 7688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7689 cat >>confdefs.h <<_ACEOF 7690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7691_ACEOF 7692 7693fi 7694 7695done 7696 7697 7698for ac_header in dlfcn.h 7699do : 7700 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7701" 7702if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7703 cat >>confdefs.h <<_ACEOF 7704#define HAVE_DLFCN_H 1 7705_ACEOF 7706 7707fi 7708 7709done 7710 7711 7712 7713 7714 7715# Set options 7716 7717 7718 7719 enable_dlopen=no 7720 7721 7722 enable_win32_dll=no 7723 7724 7725 # Check whether --enable-shared was given. 7726if test "${enable_shared+set}" = set; then : 7727 enableval=$enable_shared; p=${PACKAGE-default} 7728 case $enableval in 7729 yes) enable_shared=yes ;; 7730 no) enable_shared=no ;; 7731 *) 7732 enable_shared=no 7733 # Look at the argument we got. We use all the common list separators. 7734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7735 for pkg in $enableval; do 7736 IFS=$lt_save_ifs 7737 if test "X$pkg" = "X$p"; then 7738 enable_shared=yes 7739 fi 7740 done 7741 IFS=$lt_save_ifs 7742 ;; 7743 esac 7744else 7745 enable_shared=yes 7746fi 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758# Check whether --with-pic was given. 7759if test "${with_pic+set}" = set; then : 7760 withval=$with_pic; lt_p=${PACKAGE-default} 7761 case $withval in 7762 yes|no) pic_mode=$withval ;; 7763 *) 7764 pic_mode=default 7765 # Look at the argument we got. We use all the common list separators. 7766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7767 for lt_pkg in $withval; do 7768 IFS=$lt_save_ifs 7769 if test "X$lt_pkg" = "X$lt_p"; then 7770 pic_mode=yes 7771 fi 7772 done 7773 IFS=$lt_save_ifs 7774 ;; 7775 esac 7776else 7777 pic_mode=default 7778fi 7779 7780 7781 7782 7783 7784 7785 7786 7787 # Check whether --enable-fast-install was given. 7788if test "${enable_fast_install+set}" = set; then : 7789 enableval=$enable_fast_install; p=${PACKAGE-default} 7790 case $enableval in 7791 yes) enable_fast_install=yes ;; 7792 no) enable_fast_install=no ;; 7793 *) 7794 enable_fast_install=no 7795 # Look at the argument we got. We use all the common list separators. 7796 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7797 for pkg in $enableval; do 7798 IFS=$lt_save_ifs 7799 if test "X$pkg" = "X$p"; then 7800 enable_fast_install=yes 7801 fi 7802 done 7803 IFS=$lt_save_ifs 7804 ;; 7805 esac 7806else 7807 enable_fast_install=yes 7808fi 7809 7810 7811 7812 7813 7814 7815 7816 7817 shared_archive_member_spec= 7818case $host,$enable_shared in 7819power*-*-aix[5-9]*,yes) 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7821$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7822 7823# Check whether --with-aix-soname was given. 7824if test "${with_aix_soname+set}" = set; then : 7825 withval=$with_aix_soname; case $withval in 7826 aix|svr4|both) 7827 ;; 7828 *) 7829 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7830 ;; 7831 esac 7832 lt_cv_with_aix_soname=$with_aix_soname 7833else 7834 if ${lt_cv_with_aix_soname+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 lt_cv_with_aix_soname=aix 7838fi 7839 7840 with_aix_soname=$lt_cv_with_aix_soname 7841fi 7842 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7844$as_echo "$with_aix_soname" >&6; } 7845 if test aix != "$with_aix_soname"; then 7846 # For the AIX way of multilib, we name the shared archive member 7847 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7848 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7849 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7850 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7851 if test 64 = "${OBJECT_MODE-32}"; then 7852 shared_archive_member_spec=shr_64 7853 else 7854 shared_archive_member_spec=shr 7855 fi 7856 fi 7857 ;; 7858*) 7859 with_aix_soname=aix 7860 ;; 7861esac 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872# This can be used to rebuild libtool when needed 7873LIBTOOL_DEPS=$ltmain 7874 7875# Always use our own libtool. 7876LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907test -z "$LN_S" && LN_S="ln -s" 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922if test -n "${ZSH_VERSION+set}"; then 7923 setopt NO_GLOB_SUBST 7924fi 7925 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7927$as_echo_n "checking for objdir... " >&6; } 7928if ${lt_cv_objdir+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 rm -f .libs 2>/dev/null 7932mkdir .libs 2>/dev/null 7933if test -d .libs; then 7934 lt_cv_objdir=.libs 7935else 7936 # MS-DOS does not allow filenames that begin with a dot. 7937 lt_cv_objdir=_libs 7938fi 7939rmdir .libs 2>/dev/null 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7942$as_echo "$lt_cv_objdir" >&6; } 7943objdir=$lt_cv_objdir 7944 7945 7946 7947 7948 7949cat >>confdefs.h <<_ACEOF 7950#define LT_OBJDIR "$lt_cv_objdir/" 7951_ACEOF 7952 7953 7954 7955 7956case $host_os in 7957aix3*) 7958 # AIX sometimes has problems with the GCC collect2 program. For some 7959 # reason, if we set the COLLECT_NAMES environment variable, the problems 7960 # vanish in a puff of smoke. 7961 if test set != "${COLLECT_NAMES+set}"; then 7962 COLLECT_NAMES= 7963 export COLLECT_NAMES 7964 fi 7965 ;; 7966esac 7967 7968# Global variables: 7969ofile=libtool 7970can_build_shared=yes 7971 7972# All known linkers require a '.a' archive for static linking (except MSVC, 7973# which needs '.lib'). 7974libext=a 7975 7976with_gnu_ld=$lt_cv_prog_gnu_ld 7977 7978old_CC=$CC 7979old_CFLAGS=$CFLAGS 7980 7981# Set sane defaults for various variables 7982test -z "$CC" && CC=cc 7983test -z "$LTCC" && LTCC=$CC 7984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7985test -z "$LD" && LD=ld 7986test -z "$ac_objext" && ac_objext=o 7987 7988func_cc_basename $compiler 7989cc_basename=$func_cc_basename_result 7990 7991 7992# Only perform the check for file, if the check method requires it 7993test -z "$MAGIC_CMD" && MAGIC_CMD=file 7994case $deplibs_check_method in 7995file_magic*) 7996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7998$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7999if ${lt_cv_path_MAGIC_CMD+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 case $MAGIC_CMD in 8003[\\/*] | ?:[\\/]*) 8004 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8005 ;; 8006*) 8007 lt_save_MAGIC_CMD=$MAGIC_CMD 8008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8010 for ac_dir in $ac_dummy; do 8011 IFS=$lt_save_ifs 8012 test -z "$ac_dir" && ac_dir=. 8013 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8014 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8015 if test -n "$file_magic_test_file"; then 8016 case $deplibs_check_method in 8017 "file_magic "*) 8018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8019 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8021 $EGREP "$file_magic_regex" > /dev/null; then 8022 : 8023 else 8024 cat <<_LT_EOF 1>&2 8025 8026*** Warning: the command libtool uses to detect shared libraries, 8027*** $file_magic_cmd, produces output that libtool cannot recognize. 8028*** The result is that libtool may fail to recognize shared libraries 8029*** as such. This will affect the creation of libtool libraries that 8030*** depend on shared libraries, but programs linked with such libtool 8031*** libraries will work regardless of this problem. Nevertheless, you 8032*** may want to report the problem to your system manager and/or to 8033*** bug-libtool@gnu.org 8034 8035_LT_EOF 8036 fi ;; 8037 esac 8038 fi 8039 break 8040 fi 8041 done 8042 IFS=$lt_save_ifs 8043 MAGIC_CMD=$lt_save_MAGIC_CMD 8044 ;; 8045esac 8046fi 8047 8048MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8049if test -n "$MAGIC_CMD"; then 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8051$as_echo "$MAGIC_CMD" >&6; } 8052else 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054$as_echo "no" >&6; } 8055fi 8056 8057 8058 8059 8060 8061if test -z "$lt_cv_path_MAGIC_CMD"; then 8062 if test -n "$ac_tool_prefix"; then 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8064$as_echo_n "checking for file... " >&6; } 8065if ${lt_cv_path_MAGIC_CMD+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 case $MAGIC_CMD in 8069[\\/*] | ?:[\\/]*) 8070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8071 ;; 8072*) 8073 lt_save_MAGIC_CMD=$MAGIC_CMD 8074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8076 for ac_dir in $ac_dummy; do 8077 IFS=$lt_save_ifs 8078 test -z "$ac_dir" && ac_dir=. 8079 if test -f "$ac_dir/file"; then 8080 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8081 if test -n "$file_magic_test_file"; then 8082 case $deplibs_check_method in 8083 "file_magic "*) 8084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8087 $EGREP "$file_magic_regex" > /dev/null; then 8088 : 8089 else 8090 cat <<_LT_EOF 1>&2 8091 8092*** Warning: the command libtool uses to detect shared libraries, 8093*** $file_magic_cmd, produces output that libtool cannot recognize. 8094*** The result is that libtool may fail to recognize shared libraries 8095*** as such. This will affect the creation of libtool libraries that 8096*** depend on shared libraries, but programs linked with such libtool 8097*** libraries will work regardless of this problem. Nevertheless, you 8098*** may want to report the problem to your system manager and/or to 8099*** bug-libtool@gnu.org 8100 8101_LT_EOF 8102 fi ;; 8103 esac 8104 fi 8105 break 8106 fi 8107 done 8108 IFS=$lt_save_ifs 8109 MAGIC_CMD=$lt_save_MAGIC_CMD 8110 ;; 8111esac 8112fi 8113 8114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8115if test -n "$MAGIC_CMD"; then 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8117$as_echo "$MAGIC_CMD" >&6; } 8118else 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120$as_echo "no" >&6; } 8121fi 8122 8123 8124 else 8125 MAGIC_CMD=: 8126 fi 8127fi 8128 8129 fi 8130 ;; 8131esac 8132 8133# Use C for the default configuration in the libtool script 8134 8135lt_save_CC=$CC 8136ac_ext=c 8137ac_cpp='$CPP $CPPFLAGS' 8138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8140ac_compiler_gnu=$ac_cv_c_compiler_gnu 8141 8142 8143# Source file extension for C test sources. 8144ac_ext=c 8145 8146# Object file extension for compiled C test sources. 8147objext=o 8148objext=$objext 8149 8150# Code to be used in simple compile tests 8151lt_simple_compile_test_code="int some_variable = 0;" 8152 8153# Code to be used in simple link tests 8154lt_simple_link_test_code='int main(){return(0);}' 8155 8156 8157 8158 8159 8160 8161 8162# If no C compiler was specified, use CC. 8163LTCC=${LTCC-"$CC"} 8164 8165# If no C compiler flags were specified, use CFLAGS. 8166LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8167 8168# Allow CC to be a program name with arguments. 8169compiler=$CC 8170 8171# Save the default compiler, since it gets overwritten when the other 8172# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8173compiler_DEFAULT=$CC 8174 8175# save warnings/boilerplate of simple test code 8176ac_outfile=conftest.$ac_objext 8177echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8179_lt_compiler_boilerplate=`cat conftest.err` 8180$RM conftest* 8181 8182ac_outfile=conftest.$ac_objext 8183echo "$lt_simple_link_test_code" >conftest.$ac_ext 8184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8185_lt_linker_boilerplate=`cat conftest.err` 8186$RM -r conftest* 8187 8188 8189if test -n "$compiler"; then 8190 8191lt_prog_compiler_no_builtin_flag= 8192 8193if test yes = "$GCC"; then 8194 case $cc_basename in 8195 nvcc*) 8196 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8197 *) 8198 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8199 esac 8200 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8202$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8203if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 lt_cv_prog_compiler_rtti_exceptions=no 8207 ac_outfile=conftest.$ac_objext 8208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8209 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8210 # Insert the option either (1) after the last *FLAGS variable, or 8211 # (2) before a word containing "conftest.", or (3) at the end. 8212 # Note that $ac_compile itself does not contain backslashes and begins 8213 # with a dollar sign (not a hyphen), so the echo should work correctly. 8214 # The option is referenced via a variable to avoid confusing sed. 8215 lt_compile=`echo "$ac_compile" | $SED \ 8216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8218 -e 's:$: $lt_compiler_flag:'` 8219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8220 (eval "$lt_compile" 2>conftest.err) 8221 ac_status=$? 8222 cat conftest.err >&5 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 if (exit $ac_status) && test -s "$ac_outfile"; then 8225 # The compiler can only warn and ignore the option if not recognized 8226 # So say no if there are warnings other than the usual output. 8227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8230 lt_cv_prog_compiler_rtti_exceptions=yes 8231 fi 8232 fi 8233 $RM conftest* 8234 8235fi 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8237$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8238 8239if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8240 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8241else 8242 : 8243fi 8244 8245fi 8246 8247 8248 8249 8250 8251 8252 lt_prog_compiler_wl= 8253lt_prog_compiler_pic= 8254lt_prog_compiler_static= 8255 8256 8257 if test yes = "$GCC"; then 8258 lt_prog_compiler_wl='-Wl,' 8259 lt_prog_compiler_static='-static' 8260 8261 case $host_os in 8262 aix*) 8263 # All AIX code is PIC. 8264 if test ia64 = "$host_cpu"; then 8265 # AIX 5 now supports IA64 processor 8266 lt_prog_compiler_static='-Bstatic' 8267 fi 8268 lt_prog_compiler_pic='-fPIC' 8269 ;; 8270 8271 amigaos*) 8272 case $host_cpu in 8273 powerpc) 8274 # see comment about AmigaOS4 .so support 8275 lt_prog_compiler_pic='-fPIC' 8276 ;; 8277 m68k) 8278 # FIXME: we need at least 68020 code to build shared libraries, but 8279 # adding the '-m68020' flag to GCC prevents building anything better, 8280 # like '-m68040'. 8281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8282 ;; 8283 esac 8284 ;; 8285 8286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8287 # PIC is the default for these OSes. 8288 ;; 8289 8290 mingw* | cygwin* | pw32* | os2* | cegcc*) 8291 # This hack is so that the source file can tell whether it is being 8292 # built for inclusion in a dll (and should export symbols for example). 8293 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8294 # (--disable-auto-import) libraries 8295 lt_prog_compiler_pic='-DDLL_EXPORT' 8296 case $host_os in 8297 os2*) 8298 lt_prog_compiler_static='$wl-static' 8299 ;; 8300 esac 8301 ;; 8302 8303 darwin* | rhapsody*) 8304 # PIC is the default on this platform 8305 # Common symbols not allowed in MH_DYLIB files 8306 lt_prog_compiler_pic='-fno-common' 8307 ;; 8308 8309 haiku*) 8310 # PIC is the default for Haiku. 8311 # The "-static" flag exists, but is broken. 8312 lt_prog_compiler_static= 8313 ;; 8314 8315 hpux*) 8316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8318 # sets the default TLS model and affects inlining. 8319 case $host_cpu in 8320 hppa*64*) 8321 # +Z the default 8322 ;; 8323 *) 8324 lt_prog_compiler_pic='-fPIC' 8325 ;; 8326 esac 8327 ;; 8328 8329 interix[3-9]*) 8330 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8331 # Instead, we relocate shared libraries at runtime. 8332 ;; 8333 8334 msdosdjgpp*) 8335 # Just because we use GCC doesn't mean we suddenly get shared libraries 8336 # on systems that don't support them. 8337 lt_prog_compiler_can_build_shared=no 8338 enable_shared=no 8339 ;; 8340 8341 *nto* | *qnx*) 8342 # QNX uses GNU C++, but need to define -shared option too, otherwise 8343 # it will coredump. 8344 lt_prog_compiler_pic='-fPIC -shared' 8345 ;; 8346 8347 sysv4*MP*) 8348 if test -d /usr/nec; then 8349 lt_prog_compiler_pic=-Kconform_pic 8350 fi 8351 ;; 8352 8353 *) 8354 lt_prog_compiler_pic='-fPIC' 8355 ;; 8356 esac 8357 8358 case $cc_basename in 8359 nvcc*) # Cuda Compiler Driver 2.2 8360 lt_prog_compiler_wl='-Xlinker ' 8361 if test -n "$lt_prog_compiler_pic"; then 8362 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8363 fi 8364 ;; 8365 esac 8366 else 8367 # PORTME Check for flag to pass linker flags through the system compiler. 8368 case $host_os in 8369 aix*) 8370 lt_prog_compiler_wl='-Wl,' 8371 if test ia64 = "$host_cpu"; then 8372 # AIX 5 now supports IA64 processor 8373 lt_prog_compiler_static='-Bstatic' 8374 else 8375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8376 fi 8377 ;; 8378 8379 darwin* | rhapsody*) 8380 # PIC is the default on this platform 8381 # Common symbols not allowed in MH_DYLIB files 8382 lt_prog_compiler_pic='-fno-common' 8383 case $cc_basename in 8384 nagfor*) 8385 # NAG Fortran compiler 8386 lt_prog_compiler_wl='-Wl,-Wl,,' 8387 lt_prog_compiler_pic='-PIC' 8388 lt_prog_compiler_static='-Bstatic' 8389 ;; 8390 esac 8391 ;; 8392 8393 mingw* | cygwin* | pw32* | os2* | cegcc*) 8394 # This hack is so that the source file can tell whether it is being 8395 # built for inclusion in a dll (and should export symbols for example). 8396 lt_prog_compiler_pic='-DDLL_EXPORT' 8397 case $host_os in 8398 os2*) 8399 lt_prog_compiler_static='$wl-static' 8400 ;; 8401 esac 8402 ;; 8403 8404 hpux9* | hpux10* | hpux11*) 8405 lt_prog_compiler_wl='-Wl,' 8406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8407 # not for PA HP-UX. 8408 case $host_cpu in 8409 hppa*64*|ia64*) 8410 # +Z the default 8411 ;; 8412 *) 8413 lt_prog_compiler_pic='+Z' 8414 ;; 8415 esac 8416 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8417 lt_prog_compiler_static='$wl-a ${wl}archive' 8418 ;; 8419 8420 irix5* | irix6* | nonstopux*) 8421 lt_prog_compiler_wl='-Wl,' 8422 # PIC (with -KPIC) is the default. 8423 lt_prog_compiler_static='-non_shared' 8424 ;; 8425 8426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8427 case $cc_basename in 8428 # old Intel for x86_64, which still supported -KPIC. 8429 ecc*) 8430 lt_prog_compiler_wl='-Wl,' 8431 lt_prog_compiler_pic='-KPIC' 8432 lt_prog_compiler_static='-static' 8433 ;; 8434 # icc used to be incompatible with GCC. 8435 # ICC 10 doesn't accept -KPIC any more. 8436 icc* | ifort*) 8437 lt_prog_compiler_wl='-Wl,' 8438 lt_prog_compiler_pic='-fPIC' 8439 lt_prog_compiler_static='-static' 8440 ;; 8441 # Lahey Fortran 8.1. 8442 lf95*) 8443 lt_prog_compiler_wl='-Wl,' 8444 lt_prog_compiler_pic='--shared' 8445 lt_prog_compiler_static='--static' 8446 ;; 8447 nagfor*) 8448 # NAG Fortran compiler 8449 lt_prog_compiler_wl='-Wl,-Wl,,' 8450 lt_prog_compiler_pic='-PIC' 8451 lt_prog_compiler_static='-Bstatic' 8452 ;; 8453 tcc*) 8454 # Fabrice Bellard et al's Tiny C Compiler 8455 lt_prog_compiler_wl='-Wl,' 8456 lt_prog_compiler_pic='-fPIC' 8457 lt_prog_compiler_static='-static' 8458 ;; 8459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8460 # Portland Group compilers (*not* the Pentium gcc compiler, 8461 # which looks to be a dead project) 8462 lt_prog_compiler_wl='-Wl,' 8463 lt_prog_compiler_pic='-fpic' 8464 lt_prog_compiler_static='-Bstatic' 8465 ;; 8466 ccc*) 8467 lt_prog_compiler_wl='-Wl,' 8468 # All Alpha code is PIC. 8469 lt_prog_compiler_static='-non_shared' 8470 ;; 8471 xl* | bgxl* | bgf* | mpixl*) 8472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8473 lt_prog_compiler_wl='-Wl,' 8474 lt_prog_compiler_pic='-qpic' 8475 lt_prog_compiler_static='-qstaticlink' 8476 ;; 8477 *) 8478 case `$CC -V 2>&1 | sed 5q` in 8479 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8481 lt_prog_compiler_pic='-KPIC' 8482 lt_prog_compiler_static='-Bstatic' 8483 lt_prog_compiler_wl='' 8484 ;; 8485 *Sun\ F* | *Sun*Fortran*) 8486 lt_prog_compiler_pic='-KPIC' 8487 lt_prog_compiler_static='-Bstatic' 8488 lt_prog_compiler_wl='-Qoption ld ' 8489 ;; 8490 *Sun\ C*) 8491 # Sun C 5.9 8492 lt_prog_compiler_pic='-KPIC' 8493 lt_prog_compiler_static='-Bstatic' 8494 lt_prog_compiler_wl='-Wl,' 8495 ;; 8496 *Intel*\ [CF]*Compiler*) 8497 lt_prog_compiler_wl='-Wl,' 8498 lt_prog_compiler_pic='-fPIC' 8499 lt_prog_compiler_static='-static' 8500 ;; 8501 *Portland\ Group*) 8502 lt_prog_compiler_wl='-Wl,' 8503 lt_prog_compiler_pic='-fpic' 8504 lt_prog_compiler_static='-Bstatic' 8505 ;; 8506 esac 8507 ;; 8508 esac 8509 ;; 8510 8511 newsos6) 8512 lt_prog_compiler_pic='-KPIC' 8513 lt_prog_compiler_static='-Bstatic' 8514 ;; 8515 8516 *nto* | *qnx*) 8517 # QNX uses GNU C++, but need to define -shared option too, otherwise 8518 # it will coredump. 8519 lt_prog_compiler_pic='-fPIC -shared' 8520 ;; 8521 8522 osf3* | osf4* | osf5*) 8523 lt_prog_compiler_wl='-Wl,' 8524 # All OSF/1 code is PIC. 8525 lt_prog_compiler_static='-non_shared' 8526 ;; 8527 8528 rdos*) 8529 lt_prog_compiler_static='-non_shared' 8530 ;; 8531 8532 solaris*) 8533 lt_prog_compiler_pic='-KPIC' 8534 lt_prog_compiler_static='-Bstatic' 8535 case $cc_basename in 8536 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8537 lt_prog_compiler_wl='-Qoption ld ';; 8538 *) 8539 lt_prog_compiler_wl='-Wl,';; 8540 esac 8541 ;; 8542 8543 sunos4*) 8544 lt_prog_compiler_wl='-Qoption ld ' 8545 lt_prog_compiler_pic='-PIC' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 8549 sysv4 | sysv4.2uw2* | sysv4.3*) 8550 lt_prog_compiler_wl='-Wl,' 8551 lt_prog_compiler_pic='-KPIC' 8552 lt_prog_compiler_static='-Bstatic' 8553 ;; 8554 8555 sysv4*MP*) 8556 if test -d /usr/nec; then 8557 lt_prog_compiler_pic='-Kconform_pic' 8558 lt_prog_compiler_static='-Bstatic' 8559 fi 8560 ;; 8561 8562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8563 lt_prog_compiler_wl='-Wl,' 8564 lt_prog_compiler_pic='-KPIC' 8565 lt_prog_compiler_static='-Bstatic' 8566 ;; 8567 8568 unicos*) 8569 lt_prog_compiler_wl='-Wl,' 8570 lt_prog_compiler_can_build_shared=no 8571 ;; 8572 8573 uts4*) 8574 lt_prog_compiler_pic='-pic' 8575 lt_prog_compiler_static='-Bstatic' 8576 ;; 8577 8578 *) 8579 lt_prog_compiler_can_build_shared=no 8580 ;; 8581 esac 8582 fi 8583 8584case $host_os in 8585 # For platforms that do not support PIC, -DPIC is meaningless: 8586 *djgpp*) 8587 lt_prog_compiler_pic= 8588 ;; 8589 *) 8590 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8591 ;; 8592esac 8593 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8595$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8596if ${lt_cv_prog_compiler_pic+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8602$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8603lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8604 8605# 8606# Check to make sure the PIC flag actually works. 8607# 8608if test -n "$lt_prog_compiler_pic"; then 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8610$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8611if ${lt_cv_prog_compiler_pic_works+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613else 8614 lt_cv_prog_compiler_pic_works=no 8615 ac_outfile=conftest.$ac_objext 8616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8618 # Insert the option either (1) after the last *FLAGS variable, or 8619 # (2) before a word containing "conftest.", or (3) at the end. 8620 # Note that $ac_compile itself does not contain backslashes and begins 8621 # with a dollar sign (not a hyphen), so the echo should work correctly. 8622 # The option is referenced via a variable to avoid confusing sed. 8623 lt_compile=`echo "$ac_compile" | $SED \ 8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8626 -e 's:$: $lt_compiler_flag:'` 8627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8628 (eval "$lt_compile" 2>conftest.err) 8629 ac_status=$? 8630 cat conftest.err >&5 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 if (exit $ac_status) && test -s "$ac_outfile"; then 8633 # The compiler can only warn and ignore the option if not recognized 8634 # So say no if there are warnings other than the usual output. 8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8638 lt_cv_prog_compiler_pic_works=yes 8639 fi 8640 fi 8641 $RM conftest* 8642 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8645$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8646 8647if test yes = "$lt_cv_prog_compiler_pic_works"; then 8648 case $lt_prog_compiler_pic in 8649 "" | " "*) ;; 8650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8651 esac 8652else 8653 lt_prog_compiler_pic= 8654 lt_prog_compiler_can_build_shared=no 8655fi 8656 8657fi 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669# 8670# Check to make sure the static flag actually works. 8671# 8672wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8675if ${lt_cv_prog_compiler_static_works+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_prog_compiler_static_works=no 8679 save_LDFLAGS=$LDFLAGS 8680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8681 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8683 # The linker can only warn and ignore the option if not recognized 8684 # So say no if there are warnings 8685 if test -s conftest.err; then 8686 # Append any errors to the config.log. 8687 cat conftest.err 1>&5 8688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8690 if diff conftest.exp conftest.er2 >/dev/null; then 8691 lt_cv_prog_compiler_static_works=yes 8692 fi 8693 else 8694 lt_cv_prog_compiler_static_works=yes 8695 fi 8696 fi 8697 $RM -r conftest* 8698 LDFLAGS=$save_LDFLAGS 8699 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8702$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8703 8704if test yes = "$lt_cv_prog_compiler_static_works"; then 8705 : 8706else 8707 lt_prog_compiler_static= 8708fi 8709 8710 8711 8712 8713 8714 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8718if ${lt_cv_prog_compiler_c_o+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 lt_cv_prog_compiler_c_o=no 8722 $RM -r conftest 2>/dev/null 8723 mkdir conftest 8724 cd conftest 8725 mkdir out 8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8727 8728 lt_compiler_flag="-o out/conftest2.$ac_objext" 8729 # Insert the option either (1) after the last *FLAGS variable, or 8730 # (2) before a word containing "conftest.", or (3) at the end. 8731 # Note that $ac_compile itself does not contain backslashes and begins 8732 # with a dollar sign (not a hyphen), so the echo should work correctly. 8733 lt_compile=`echo "$ac_compile" | $SED \ 8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8736 -e 's:$: $lt_compiler_flag:'` 8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8738 (eval "$lt_compile" 2>out/conftest.err) 8739 ac_status=$? 8740 cat out/conftest.err >&5 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8743 then 8744 # The compiler can only warn and ignore the option if not recognized 8745 # So say no if there are warnings 8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8749 lt_cv_prog_compiler_c_o=yes 8750 fi 8751 fi 8752 chmod u+w . 2>&5 8753 $RM conftest* 8754 # SGI C++ compiler will create directory out/ii_files/ for 8755 # template instantiation 8756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8757 $RM out/* && rmdir out 8758 cd .. 8759 $RM -r conftest 8760 $RM conftest* 8761 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8764$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8765 8766 8767 8768 8769 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8773if ${lt_cv_prog_compiler_c_o+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 lt_cv_prog_compiler_c_o=no 8777 $RM -r conftest 2>/dev/null 8778 mkdir conftest 8779 cd conftest 8780 mkdir out 8781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8782 8783 lt_compiler_flag="-o out/conftest2.$ac_objext" 8784 # Insert the option either (1) after the last *FLAGS variable, or 8785 # (2) before a word containing "conftest.", or (3) at the end. 8786 # Note that $ac_compile itself does not contain backslashes and begins 8787 # with a dollar sign (not a hyphen), so the echo should work correctly. 8788 lt_compile=`echo "$ac_compile" | $SED \ 8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8791 -e 's:$: $lt_compiler_flag:'` 8792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8793 (eval "$lt_compile" 2>out/conftest.err) 8794 ac_status=$? 8795 cat out/conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8798 then 8799 # The compiler can only warn and ignore the option if not recognized 8800 # So say no if there are warnings 8801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8804 lt_cv_prog_compiler_c_o=yes 8805 fi 8806 fi 8807 chmod u+w . 2>&5 8808 $RM conftest* 8809 # SGI C++ compiler will create directory out/ii_files/ for 8810 # template instantiation 8811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8812 $RM out/* && rmdir out 8813 cd .. 8814 $RM -r conftest 8815 $RM conftest* 8816 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8819$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8820 8821 8822 8823 8824hard_links=nottested 8825if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8826 # do not overwrite the value of need_locks provided by the user 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8828$as_echo_n "checking if we can lock with hard links... " >&6; } 8829 hard_links=yes 8830 $RM conftest* 8831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8832 touch conftest.a 8833 ln conftest.a conftest.b 2>&5 || hard_links=no 8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8836$as_echo "$hard_links" >&6; } 8837 if test no = "$hard_links"; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8839$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8840 need_locks=warn 8841 fi 8842else 8843 need_locks=no 8844fi 8845 8846 8847 8848 8849 8850 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8853 8854 runpath_var= 8855 allow_undefined_flag= 8856 always_export_symbols=no 8857 archive_cmds= 8858 archive_expsym_cmds= 8859 compiler_needs_object=no 8860 enable_shared_with_static_runtimes=no 8861 export_dynamic_flag_spec= 8862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8863 hardcode_automatic=no 8864 hardcode_direct=no 8865 hardcode_direct_absolute=no 8866 hardcode_libdir_flag_spec= 8867 hardcode_libdir_separator= 8868 hardcode_minus_L=no 8869 hardcode_shlibpath_var=unsupported 8870 inherit_rpath=no 8871 link_all_deplibs=unknown 8872 module_cmds= 8873 module_expsym_cmds= 8874 old_archive_from_new_cmds= 8875 old_archive_from_expsyms_cmds= 8876 thread_safe_flag_spec= 8877 whole_archive_flag_spec= 8878 # include_expsyms should be a list of space-separated symbols to be *always* 8879 # included in the symbol list 8880 include_expsyms= 8881 # exclude_expsyms can be an extended regexp of symbols to exclude 8882 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8883 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8884 # as well as any symbol that contains 'd'. 8885 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8887 # platforms (ab)use it in PIC code, but their linkers get confused if 8888 # the symbol is explicitly referenced. Since portable code cannot 8889 # rely on this symbol name, it's probably fine to never include it in 8890 # preloaded symbol tables. 8891 # Exclude shared library initialization/finalization symbols. 8892 extract_expsyms_cmds= 8893 8894 case $host_os in 8895 cygwin* | mingw* | pw32* | cegcc*) 8896 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8897 # When not using gcc, we currently assume that we are using 8898 # Microsoft Visual C++. 8899 if test yes != "$GCC"; then 8900 with_gnu_ld=no 8901 fi 8902 ;; 8903 interix*) 8904 # we just hope/assume this is gcc and not c89 (= MSVC++) 8905 with_gnu_ld=yes 8906 ;; 8907 openbsd* | bitrig*) 8908 with_gnu_ld=no 8909 ;; 8910 esac 8911 8912 ld_shlibs=yes 8913 8914 # On some targets, GNU ld is compatible enough with the native linker 8915 # that we're better off using the native interface for both. 8916 lt_use_gnu_ld_interface=no 8917 if test yes = "$with_gnu_ld"; then 8918 case $host_os in 8919 aix*) 8920 # The AIX port of GNU ld has always aspired to compatibility 8921 # with the native linker. However, as the warning in the GNU ld 8922 # block says, versions before 2.19.5* couldn't really create working 8923 # shared libraries, regardless of the interface used. 8924 case `$LD -v 2>&1` in 8925 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8926 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8927 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8928 *) 8929 lt_use_gnu_ld_interface=yes 8930 ;; 8931 esac 8932 ;; 8933 *) 8934 lt_use_gnu_ld_interface=yes 8935 ;; 8936 esac 8937 fi 8938 8939 if test yes = "$lt_use_gnu_ld_interface"; then 8940 # If archive_cmds runs LD, not CC, wlarc should be empty 8941 wlarc='$wl' 8942 8943 # Set some defaults for GNU ld with shared library support. These 8944 # are reset later if shared libraries are not supported. Putting them 8945 # here allows them to be overridden if necessary. 8946 runpath_var=LD_RUN_PATH 8947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8948 export_dynamic_flag_spec='$wl--export-dynamic' 8949 # ancient GNU ld didn't support --whole-archive et. al. 8950 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8951 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8952 else 8953 whole_archive_flag_spec= 8954 fi 8955 supports_anon_versioning=no 8956 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8957 *GNU\ gold*) supports_anon_versioning=yes ;; 8958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8961 *\ 2.11.*) ;; # other 2.11 versions 8962 *) supports_anon_versioning=yes ;; 8963 esac 8964 8965 # See if GNU ld supports shared libraries. 8966 case $host_os in 8967 aix[3-9]*) 8968 # On AIX/PPC, the GNU linker is very broken 8969 if test ia64 != "$host_cpu"; then 8970 ld_shlibs=no 8971 cat <<_LT_EOF 1>&2 8972 8973*** Warning: the GNU linker, at least up to release 2.19, is reported 8974*** to be unable to reliably create shared libraries on AIX. 8975*** Therefore, libtool is disabling shared libraries support. If you 8976*** really care for shared libraries, you may want to install binutils 8977*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8978*** You will then need to restart the configuration process. 8979 8980_LT_EOF 8981 fi 8982 ;; 8983 8984 amigaos*) 8985 case $host_cpu in 8986 powerpc) 8987 # see comment about AmigaOS4 .so support 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8989 archive_expsym_cmds='' 8990 ;; 8991 m68k) 8992 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_minus_L=yes 8995 ;; 8996 esac 8997 ;; 8998 8999 beos*) 9000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9001 allow_undefined_flag=unsupported 9002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9003 # support --undefined. This deserves some investigation. FIXME 9004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9005 else 9006 ld_shlibs=no 9007 fi 9008 ;; 9009 9010 cygwin* | mingw* | pw32* | cegcc*) 9011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9012 # as there is no search path for DLLs. 9013 hardcode_libdir_flag_spec='-L$libdir' 9014 export_dynamic_flag_spec='$wl--export-all-symbols' 9015 allow_undefined_flag=unsupported 9016 always_export_symbols=no 9017 enable_shared_with_static_runtimes=yes 9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9019 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9020 9021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9023 # If the export-symbols file already is a .def file, use it as 9024 # is; otherwise, prepend EXPORTS... 9025 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9026 cp $export_symbols $output_objdir/$soname.def; 9027 else 9028 echo EXPORTS > $output_objdir/$soname.def; 9029 cat $export_symbols >> $output_objdir/$soname.def; 9030 fi~ 9031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9032 else 9033 ld_shlibs=no 9034 fi 9035 ;; 9036 9037 haiku*) 9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9039 link_all_deplibs=yes 9040 ;; 9041 9042 os2*) 9043 hardcode_libdir_flag_spec='-L$libdir' 9044 hardcode_minus_L=yes 9045 allow_undefined_flag=unsupported 9046 shrext_cmds=.dll 9047 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9048 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9049 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9050 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9051 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9052 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9053 emximp -o $lib $output_objdir/$libname.def' 9054 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9055 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9056 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9057 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9058 prefix_cmds="$SED"~ 9059 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9060 prefix_cmds="$prefix_cmds -e 1d"; 9061 fi~ 9062 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9063 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9064 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9065 emximp -o $lib $output_objdir/$libname.def' 9066 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9067 enable_shared_with_static_runtimes=yes 9068 ;; 9069 9070 interix[3-9]*) 9071 hardcode_direct=no 9072 hardcode_shlibpath_var=no 9073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9074 export_dynamic_flag_spec='$wl-E' 9075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9076 # Instead, shared libraries are loaded at an image base (0x10000000 by 9077 # default) and relocated if they conflict, which is a slow very memory 9078 # consuming and fragmenting process. To avoid this, we pick a random, 9079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9080 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9082 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9083 ;; 9084 9085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9086 tmp_diet=no 9087 if test linux-dietlibc = "$host_os"; then 9088 case $cc_basename in 9089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9090 esac 9091 fi 9092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9093 && test no = "$tmp_diet" 9094 then 9095 tmp_addflag=' $pic_flag' 9096 tmp_sharedflag='-shared' 9097 case $cc_basename,$host_cpu in 9098 pgcc*) # Portland Group C compiler 9099 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9100 tmp_addflag=' $pic_flag' 9101 ;; 9102 pgf77* | pgf90* | pgf95* | pgfortran*) 9103 # Portland Group f77 and f90 compilers 9104 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9105 tmp_addflag=' $pic_flag -Mnomain' ;; 9106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9107 tmp_addflag=' -i_dynamic' ;; 9108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9109 tmp_addflag=' -i_dynamic -nofor_main' ;; 9110 ifc* | ifort*) # Intel Fortran compiler 9111 tmp_addflag=' -nofor_main' ;; 9112 lf95*) # Lahey Fortran 8.1 9113 whole_archive_flag_spec= 9114 tmp_sharedflag='--shared' ;; 9115 nagfor*) # NAGFOR 5.3 9116 tmp_sharedflag='-Wl,-shared' ;; 9117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9118 tmp_sharedflag='-qmkshrobj' 9119 tmp_addflag= ;; 9120 nvcc*) # Cuda Compiler Driver 2.2 9121 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9122 compiler_needs_object=yes 9123 ;; 9124 esac 9125 case `$CC -V 2>&1 | sed 5q` in 9126 *Sun\ C*) # Sun C 5.9 9127 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9128 compiler_needs_object=yes 9129 tmp_sharedflag='-G' ;; 9130 *Sun\ F*) # Sun Fortran 8.3 9131 tmp_sharedflag='-G' ;; 9132 esac 9133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9134 9135 if test yes = "$supports_anon_versioning"; then 9136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9138 echo "local: *; };" >> $output_objdir/$libname.ver~ 9139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9140 fi 9141 9142 case $cc_basename in 9143 tcc*) 9144 export_dynamic_flag_spec='-rdynamic' 9145 ;; 9146 xlf* | bgf* | bgxlf* | mpixlf*) 9147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9148 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9150 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9151 if test yes = "$supports_anon_versioning"; then 9152 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9154 echo "local: *; };" >> $output_objdir/$libname.ver~ 9155 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9156 fi 9157 ;; 9158 esac 9159 else 9160 ld_shlibs=no 9161 fi 9162 ;; 9163 9164 netbsd*) 9165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9167 wlarc= 9168 else 9169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9171 fi 9172 ;; 9173 9174 solaris*) 9175 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9176 ld_shlibs=no 9177 cat <<_LT_EOF 1>&2 9178 9179*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9180*** create shared libraries on Solaris systems. Therefore, libtool 9181*** is disabling shared libraries support. We urge you to upgrade GNU 9182*** binutils to release 2.9.1 or newer. Another option is to modify 9183*** your PATH or compiler configuration so that the native linker is 9184*** used, and then restart. 9185 9186_LT_EOF 9187 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9189 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9190 else 9191 ld_shlibs=no 9192 fi 9193 ;; 9194 9195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9196 case `$LD -v 2>&1` in 9197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9198 ld_shlibs=no 9199 cat <<_LT_EOF 1>&2 9200 9201*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9202*** reliably create shared libraries on SCO systems. Therefore, libtool 9203*** is disabling shared libraries support. We urge you to upgrade GNU 9204*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9205*** your PATH or compiler configuration so that the native linker is 9206*** used, and then restart. 9207 9208_LT_EOF 9209 ;; 9210 *) 9211 # For security reasons, it is highly recommended that you always 9212 # use absolute paths for naming shared libraries, and exclude the 9213 # DT_RUNPATH tag from executables and libraries. But doing so 9214 # requires that you compile everything twice, which is a pain. 9215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9219 else 9220 ld_shlibs=no 9221 fi 9222 ;; 9223 esac 9224 ;; 9225 9226 sunos4*) 9227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9228 wlarc= 9229 hardcode_direct=yes 9230 hardcode_shlibpath_var=no 9231 ;; 9232 9233 *) 9234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9237 else 9238 ld_shlibs=no 9239 fi 9240 ;; 9241 esac 9242 9243 if test no = "$ld_shlibs"; then 9244 runpath_var= 9245 hardcode_libdir_flag_spec= 9246 export_dynamic_flag_spec= 9247 whole_archive_flag_spec= 9248 fi 9249 else 9250 # PORTME fill in a description of your system's linker (not GNU ld) 9251 case $host_os in 9252 aix3*) 9253 allow_undefined_flag=unsupported 9254 always_export_symbols=yes 9255 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9256 # Note: this linker hardcodes the directories in LIBPATH if there 9257 # are no directories specified by -L. 9258 hardcode_minus_L=yes 9259 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9260 # Neither direct hardcoding nor static linking is supported with a 9261 # broken collect2. 9262 hardcode_direct=unsupported 9263 fi 9264 ;; 9265 9266 aix[4-9]*) 9267 if test ia64 = "$host_cpu"; then 9268 # On IA64, the linker does run time linking by default, so we don't 9269 # have to do anything special. 9270 aix_use_runtimelinking=no 9271 exp_sym_flag='-Bexport' 9272 no_entry_flag= 9273 else 9274 # If we're using GNU nm, then we don't want the "-C" option. 9275 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9276 # Without the "-l" option, or with the "-B" option, AIX nm treats 9277 # weak defined symbols like other global defined symbols, whereas 9278 # GNU nm marks them as "W". 9279 # While the 'weak' keyword is ignored in the Export File, we need 9280 # it in the Import File for the 'aix-soname' feature, so we have 9281 # to replace the "-B" option with "-P" for AIX nm. 9282 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9283 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9284 else 9285 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9286 fi 9287 aix_use_runtimelinking=no 9288 9289 # Test if we are trying to use run time linking or normal 9290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9291 # have runtime linking enabled, and use it for executables. 9292 # For shared libraries, we enable/disable runtime linking 9293 # depending on the kind of the shared library created - 9294 # when "with_aix_soname,aix_use_runtimelinking" is: 9295 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9296 # "aix,yes" lib.so shared, rtl:yes, for executables 9297 # lib.a static archive 9298 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9299 # lib.a(lib.so.V) shared, rtl:no, for executables 9300 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9301 # lib.a(lib.so.V) shared, rtl:no 9302 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9303 # lib.a static archive 9304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9305 for ld_flag in $LDFLAGS; do 9306 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9307 aix_use_runtimelinking=yes 9308 break 9309 fi 9310 done 9311 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9312 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9313 # so we don't have lib.a shared libs to link our executables. 9314 # We have to force runtime linking in this case. 9315 aix_use_runtimelinking=yes 9316 LDFLAGS="$LDFLAGS -Wl,-brtl" 9317 fi 9318 ;; 9319 esac 9320 9321 exp_sym_flag='-bexport' 9322 no_entry_flag='-bnoentry' 9323 fi 9324 9325 # When large executables or shared objects are built, AIX ld can 9326 # have problems creating the table of contents. If linking a library 9327 # or program results in "error TOC overflow" add -mminimal-toc to 9328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9330 9331 archive_cmds='' 9332 hardcode_direct=yes 9333 hardcode_direct_absolute=yes 9334 hardcode_libdir_separator=':' 9335 link_all_deplibs=yes 9336 file_list_spec='$wl-f,' 9337 case $with_aix_soname,$aix_use_runtimelinking in 9338 aix,*) ;; # traditional, no import file 9339 svr4,* | *,yes) # use import file 9340 # The Import File defines what to hardcode. 9341 hardcode_direct=no 9342 hardcode_direct_absolute=no 9343 ;; 9344 esac 9345 9346 if test yes = "$GCC"; then 9347 case $host_os in aix4.[012]|aix4.[012].*) 9348 # We only want to do this on AIX 4.2 and lower, the check 9349 # below for broken collect2 doesn't work under 4.3+ 9350 collect2name=`$CC -print-prog-name=collect2` 9351 if test -f "$collect2name" && 9352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9353 then 9354 # We have reworked collect2 9355 : 9356 else 9357 # We have old collect2 9358 hardcode_direct=unsupported 9359 # It fails to find uninstalled libraries when the uninstalled 9360 # path is not listed in the libpath. Setting hardcode_minus_L 9361 # to unsupported forces relinking 9362 hardcode_minus_L=yes 9363 hardcode_libdir_flag_spec='-L$libdir' 9364 hardcode_libdir_separator= 9365 fi 9366 ;; 9367 esac 9368 shared_flag='-shared' 9369 if test yes = "$aix_use_runtimelinking"; then 9370 shared_flag="$shared_flag "'$wl-G' 9371 fi 9372 # Need to ensure runtime linking is disabled for the traditional 9373 # shared library, or the linker may eventually find shared libraries 9374 # /with/ Import File - we do not want to mix them. 9375 shared_flag_aix='-shared' 9376 shared_flag_svr4='-shared $wl-G' 9377 else 9378 # not using gcc 9379 if test ia64 = "$host_cpu"; then 9380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9381 # chokes on -Wl,-G. The following line is correct: 9382 shared_flag='-G' 9383 else 9384 if test yes = "$aix_use_runtimelinking"; then 9385 shared_flag='$wl-G' 9386 else 9387 shared_flag='$wl-bM:SRE' 9388 fi 9389 shared_flag_aix='$wl-bM:SRE' 9390 shared_flag_svr4='$wl-G' 9391 fi 9392 fi 9393 9394 export_dynamic_flag_spec='$wl-bexpall' 9395 # It seems that -bexpall does not export symbols beginning with 9396 # underscore (_), so it is better to generate a list of symbols to export. 9397 always_export_symbols=yes 9398 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9399 # Warning - without using the other runtime loading flags (-brtl), 9400 # -berok will link without error, but may produce a broken library. 9401 allow_undefined_flag='-berok' 9402 # Determine the default libpath from the value encoded in an 9403 # empty executable. 9404 if test set = "${lt_cv_aix_libpath+set}"; then 9405 aix_libpath=$lt_cv_aix_libpath 9406else 9407 if ${lt_cv_aix_libpath_+:} false; then : 9408 $as_echo_n "(cached) " >&6 9409else 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412 9413int 9414main () 9415{ 9416 9417 ; 9418 return 0; 9419} 9420_ACEOF 9421if ac_fn_c_try_link "$LINENO"; then : 9422 9423 lt_aix_libpath_sed=' 9424 /Import File Strings/,/^$/ { 9425 /^0/ { 9426 s/^0 *\([^ ]*\) *$/\1/ 9427 p 9428 } 9429 }' 9430 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9431 # Check for a 64-bit object if we didn't find anything. 9432 if test -z "$lt_cv_aix_libpath_"; then 9433 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9434 fi 9435fi 9436rm -f core conftest.err conftest.$ac_objext \ 9437 conftest$ac_exeext conftest.$ac_ext 9438 if test -z "$lt_cv_aix_libpath_"; then 9439 lt_cv_aix_libpath_=/usr/lib:/lib 9440 fi 9441 9442fi 9443 9444 aix_libpath=$lt_cv_aix_libpath_ 9445fi 9446 9447 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9448 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9449 else 9450 if test ia64 = "$host_cpu"; then 9451 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9452 allow_undefined_flag="-z nodefs" 9453 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9454 else 9455 # Determine the default libpath from the value encoded in an 9456 # empty executable. 9457 if test set = "${lt_cv_aix_libpath+set}"; then 9458 aix_libpath=$lt_cv_aix_libpath 9459else 9460 if ${lt_cv_aix_libpath_+:} false; then : 9461 $as_echo_n "(cached) " >&6 9462else 9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464/* end confdefs.h. */ 9465 9466int 9467main () 9468{ 9469 9470 ; 9471 return 0; 9472} 9473_ACEOF 9474if ac_fn_c_try_link "$LINENO"; then : 9475 9476 lt_aix_libpath_sed=' 9477 /Import File Strings/,/^$/ { 9478 /^0/ { 9479 s/^0 *\([^ ]*\) *$/\1/ 9480 p 9481 } 9482 }' 9483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9484 # Check for a 64-bit object if we didn't find anything. 9485 if test -z "$lt_cv_aix_libpath_"; then 9486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9487 fi 9488fi 9489rm -f core conftest.err conftest.$ac_objext \ 9490 conftest$ac_exeext conftest.$ac_ext 9491 if test -z "$lt_cv_aix_libpath_"; then 9492 lt_cv_aix_libpath_=/usr/lib:/lib 9493 fi 9494 9495fi 9496 9497 aix_libpath=$lt_cv_aix_libpath_ 9498fi 9499 9500 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9501 # Warning - without using the other run time loading flags, 9502 # -berok will link without error, but may produce a broken library. 9503 no_undefined_flag=' $wl-bernotok' 9504 allow_undefined_flag=' $wl-berok' 9505 if test yes = "$with_gnu_ld"; then 9506 # We only use this code for GNU lds that support --whole-archive. 9507 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9508 else 9509 # Exported symbols can be pulled into shared objects from archives 9510 whole_archive_flag_spec='$convenience' 9511 fi 9512 archive_cmds_need_lc=yes 9513 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9514 # -brtl affects multiple linker settings, -berok does not and is overridden later 9515 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9516 if test svr4 != "$with_aix_soname"; then 9517 # This is similar to how AIX traditionally builds its shared libraries. 9518 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9519 fi 9520 if test aix != "$with_aix_soname"; then 9521 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9522 else 9523 # used by -dlpreopen to get the symbols 9524 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9525 fi 9526 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9527 fi 9528 fi 9529 ;; 9530 9531 amigaos*) 9532 case $host_cpu in 9533 powerpc) 9534 # see comment about AmigaOS4 .so support 9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9536 archive_expsym_cmds='' 9537 ;; 9538 m68k) 9539 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9540 hardcode_libdir_flag_spec='-L$libdir' 9541 hardcode_minus_L=yes 9542 ;; 9543 esac 9544 ;; 9545 9546 bsdi[45]*) 9547 export_dynamic_flag_spec=-rdynamic 9548 ;; 9549 9550 cygwin* | mingw* | pw32* | cegcc*) 9551 # When not using gcc, we currently assume that we are using 9552 # Microsoft Visual C++. 9553 # hardcode_libdir_flag_spec is actually meaningless, as there is 9554 # no search path for DLLs. 9555 case $cc_basename in 9556 cl*) 9557 # Native MSVC 9558 hardcode_libdir_flag_spec=' ' 9559 allow_undefined_flag=unsupported 9560 always_export_symbols=yes 9561 file_list_spec='@' 9562 # Tell ltmain to make .lib files, not .a files. 9563 libext=lib 9564 # Tell ltmain to make .dll files, not .so files. 9565 shrext_cmds=.dll 9566 # FIXME: Setting linknames here is a bad hack. 9567 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9568 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9569 cp "$export_symbols" "$output_objdir/$soname.def"; 9570 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9571 else 9572 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9573 fi~ 9574 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9575 linknames=' 9576 # The linker will not automatically build a static lib if we build a DLL. 9577 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9578 enable_shared_with_static_runtimes=yes 9579 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9581 # Don't use ranlib 9582 old_postinstall_cmds='chmod 644 $oldlib' 9583 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9584 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9585 case $lt_outputfile in 9586 *.exe|*.EXE) ;; 9587 *) 9588 lt_outputfile=$lt_outputfile.exe 9589 lt_tool_outputfile=$lt_tool_outputfile.exe 9590 ;; 9591 esac~ 9592 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9593 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9594 $RM "$lt_outputfile.manifest"; 9595 fi' 9596 ;; 9597 *) 9598 # Assume MSVC wrapper 9599 hardcode_libdir_flag_spec=' ' 9600 allow_undefined_flag=unsupported 9601 # Tell ltmain to make .lib files, not .a files. 9602 libext=lib 9603 # Tell ltmain to make .dll files, not .so files. 9604 shrext_cmds=.dll 9605 # FIXME: Setting linknames here is a bad hack. 9606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9607 # The linker will automatically build a .lib file if we build a DLL. 9608 old_archive_from_new_cmds='true' 9609 # FIXME: Should let the user specify the lib program. 9610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9611 enable_shared_with_static_runtimes=yes 9612 ;; 9613 esac 9614 ;; 9615 9616 darwin* | rhapsody*) 9617 9618 9619 archive_cmds_need_lc=no 9620 hardcode_direct=no 9621 hardcode_automatic=yes 9622 hardcode_shlibpath_var=unsupported 9623 if test yes = "$lt_cv_ld_force_load"; then 9624 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9625 9626 else 9627 whole_archive_flag_spec='' 9628 fi 9629 link_all_deplibs=yes 9630 allow_undefined_flag=$_lt_dar_allow_undefined 9631 case $cc_basename in 9632 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9633 *) _lt_dar_can_shared=$GCC ;; 9634 esac 9635 if test yes = "$_lt_dar_can_shared"; then 9636 output_verbose_link_cmd=func_echo_all 9637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9639 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 9640 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 9641 9642 else 9643 ld_shlibs=no 9644 fi 9645 9646 ;; 9647 9648 dgux*) 9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9650 hardcode_libdir_flag_spec='-L$libdir' 9651 hardcode_shlibpath_var=no 9652 ;; 9653 9654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9655 # support. Future versions do this automatically, but an explicit c++rt0.o 9656 # does not break anything, and helps significantly (at the cost of a little 9657 # extra space). 9658 freebsd2.2*) 9659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9660 hardcode_libdir_flag_spec='-R$libdir' 9661 hardcode_direct=yes 9662 hardcode_shlibpath_var=no 9663 ;; 9664 9665 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9666 freebsd2.*) 9667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9668 hardcode_direct=yes 9669 hardcode_minus_L=yes 9670 hardcode_shlibpath_var=no 9671 ;; 9672 9673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9674 freebsd* | dragonfly*) 9675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9676 hardcode_libdir_flag_spec='-R$libdir' 9677 hardcode_direct=yes 9678 hardcode_shlibpath_var=no 9679 ;; 9680 9681 hpux9*) 9682 if test yes = "$GCC"; then 9683 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9684 else 9685 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9686 fi 9687 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9688 hardcode_libdir_separator=: 9689 hardcode_direct=yes 9690 9691 # hardcode_minus_L: Not really in the search PATH, 9692 # but as the default location of the library. 9693 hardcode_minus_L=yes 9694 export_dynamic_flag_spec='$wl-E' 9695 ;; 9696 9697 hpux10*) 9698 if test yes,no = "$GCC,$with_gnu_ld"; then 9699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9700 else 9701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9702 fi 9703 if test no = "$with_gnu_ld"; then 9704 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9705 hardcode_libdir_separator=: 9706 hardcode_direct=yes 9707 hardcode_direct_absolute=yes 9708 export_dynamic_flag_spec='$wl-E' 9709 # hardcode_minus_L: Not really in the search PATH, 9710 # but as the default location of the library. 9711 hardcode_minus_L=yes 9712 fi 9713 ;; 9714 9715 hpux11*) 9716 if test yes,no = "$GCC,$with_gnu_ld"; then 9717 case $host_cpu in 9718 hppa*64*) 9719 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9720 ;; 9721 ia64*) 9722 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9723 ;; 9724 *) 9725 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9726 ;; 9727 esac 9728 else 9729 case $host_cpu in 9730 hppa*64*) 9731 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9732 ;; 9733 ia64*) 9734 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9735 ;; 9736 *) 9737 9738 # Older versions of the 11.00 compiler do not understand -b yet 9739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9741$as_echo_n "checking if $CC understands -b... " >&6; } 9742if ${lt_cv_prog_compiler__b+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 lt_cv_prog_compiler__b=no 9746 save_LDFLAGS=$LDFLAGS 9747 LDFLAGS="$LDFLAGS -b" 9748 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9750 # The linker can only warn and ignore the option if not recognized 9751 # So say no if there are warnings 9752 if test -s conftest.err; then 9753 # Append any errors to the config.log. 9754 cat conftest.err 1>&5 9755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9757 if diff conftest.exp conftest.er2 >/dev/null; then 9758 lt_cv_prog_compiler__b=yes 9759 fi 9760 else 9761 lt_cv_prog_compiler__b=yes 9762 fi 9763 fi 9764 $RM -r conftest* 9765 LDFLAGS=$save_LDFLAGS 9766 9767fi 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9769$as_echo "$lt_cv_prog_compiler__b" >&6; } 9770 9771if test yes = "$lt_cv_prog_compiler__b"; then 9772 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9773else 9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9775fi 9776 9777 ;; 9778 esac 9779 fi 9780 if test no = "$with_gnu_ld"; then 9781 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9782 hardcode_libdir_separator=: 9783 9784 case $host_cpu in 9785 hppa*64*|ia64*) 9786 hardcode_direct=no 9787 hardcode_shlibpath_var=no 9788 ;; 9789 *) 9790 hardcode_direct=yes 9791 hardcode_direct_absolute=yes 9792 export_dynamic_flag_spec='$wl-E' 9793 9794 # hardcode_minus_L: Not really in the search PATH, 9795 # but as the default location of the library. 9796 hardcode_minus_L=yes 9797 ;; 9798 esac 9799 fi 9800 ;; 9801 9802 irix5* | irix6* | nonstopux*) 9803 if test yes = "$GCC"; then 9804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9805 # Try to use the -exported_symbol ld option, if it does not 9806 # work, assume that -exports_file does not work either and 9807 # implicitly export all symbols. 9808 # This should be the same for all languages, so no per-tag cache variable. 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9810$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9811if ${lt_cv_irix_exported_symbol+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 save_LDFLAGS=$LDFLAGS 9815 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9817/* end confdefs.h. */ 9818int foo (void) { return 0; } 9819_ACEOF 9820if ac_fn_c_try_link "$LINENO"; then : 9821 lt_cv_irix_exported_symbol=yes 9822else 9823 lt_cv_irix_exported_symbol=no 9824fi 9825rm -f core conftest.err conftest.$ac_objext \ 9826 conftest$ac_exeext conftest.$ac_ext 9827 LDFLAGS=$save_LDFLAGS 9828fi 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9830$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9831 if test yes = "$lt_cv_irix_exported_symbol"; then 9832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 9833 fi 9834 else 9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 9837 fi 9838 archive_cmds_need_lc='no' 9839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9840 hardcode_libdir_separator=: 9841 inherit_rpath=yes 9842 link_all_deplibs=yes 9843 ;; 9844 9845 linux*) 9846 case $cc_basename in 9847 tcc*) 9848 # Fabrice Bellard et al's Tiny C Compiler 9849 ld_shlibs=yes 9850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9851 ;; 9852 esac 9853 ;; 9854 9855 netbsd*) 9856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9858 else 9859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9860 fi 9861 hardcode_libdir_flag_spec='-R$libdir' 9862 hardcode_direct=yes 9863 hardcode_shlibpath_var=no 9864 ;; 9865 9866 newsos6) 9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9868 hardcode_direct=yes 9869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9870 hardcode_libdir_separator=: 9871 hardcode_shlibpath_var=no 9872 ;; 9873 9874 *nto* | *qnx*) 9875 ;; 9876 9877 openbsd* | bitrig*) 9878 if test -f /usr/libexec/ld.so; then 9879 hardcode_direct=yes 9880 hardcode_shlibpath_var=no 9881 hardcode_direct_absolute=yes 9882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9885 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9886 export_dynamic_flag_spec='$wl-E' 9887 else 9888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9889 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9890 fi 9891 else 9892 ld_shlibs=no 9893 fi 9894 ;; 9895 9896 os2*) 9897 hardcode_libdir_flag_spec='-L$libdir' 9898 hardcode_minus_L=yes 9899 allow_undefined_flag=unsupported 9900 shrext_cmds=.dll 9901 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9904 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9905 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9907 emximp -o $lib $output_objdir/$libname.def' 9908 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9909 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9910 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9911 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9912 prefix_cmds="$SED"~ 9913 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9914 prefix_cmds="$prefix_cmds -e 1d"; 9915 fi~ 9916 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9917 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9919 emximp -o $lib $output_objdir/$libname.def' 9920 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9921 enable_shared_with_static_runtimes=yes 9922 ;; 9923 9924 osf3*) 9925 if test yes = "$GCC"; then 9926 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9927 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9928 else 9929 allow_undefined_flag=' -expect_unresolved \*' 9930 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9931 fi 9932 archive_cmds_need_lc='no' 9933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9934 hardcode_libdir_separator=: 9935 ;; 9936 9937 osf4* | osf5*) # as osf3* with the addition of -msym flag 9938 if test yes = "$GCC"; then 9939 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9940 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9942 else 9943 allow_undefined_flag=' -expect_unresolved \*' 9944 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9945 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9946 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 9947 9948 # Both c and cxx compiler support -rpath directly 9949 hardcode_libdir_flag_spec='-rpath $libdir' 9950 fi 9951 archive_cmds_need_lc='no' 9952 hardcode_libdir_separator=: 9953 ;; 9954 9955 solaris*) 9956 no_undefined_flag=' -z defs' 9957 if test yes = "$GCC"; then 9958 wlarc='$wl' 9959 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9961 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9962 else 9963 case `$CC -V 2>&1` in 9964 *"Compilers 5.0"*) 9965 wlarc='' 9966 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9968 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9969 ;; 9970 *) 9971 wlarc='$wl' 9972 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9974 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9975 ;; 9976 esac 9977 fi 9978 hardcode_libdir_flag_spec='-R$libdir' 9979 hardcode_shlibpath_var=no 9980 case $host_os in 9981 solaris2.[0-5] | solaris2.[0-5].*) ;; 9982 *) 9983 # The compiler driver will combine and reorder linker options, 9984 # but understands '-z linker_flag'. GCC discards it without '$wl', 9985 # but is careful enough not to reorder. 9986 # Supported since Solaris 2.6 (maybe 2.5.1?) 9987 if test yes = "$GCC"; then 9988 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9989 else 9990 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9991 fi 9992 ;; 9993 esac 9994 link_all_deplibs=yes 9995 ;; 9996 9997 sunos4*) 9998 if test sequent = "$host_vendor"; then 9999 # Use $CC to link under sequent, because it throws in some extra .o 10000 # files that make .init and .fini sections work. 10001 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10002 else 10003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10004 fi 10005 hardcode_libdir_flag_spec='-L$libdir' 10006 hardcode_direct=yes 10007 hardcode_minus_L=yes 10008 hardcode_shlibpath_var=no 10009 ;; 10010 10011 sysv4) 10012 case $host_vendor in 10013 sni) 10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10015 hardcode_direct=yes # is this really true??? 10016 ;; 10017 siemens) 10018 ## LD is ld it makes a PLAMLIB 10019 ## CC just makes a GrossModule. 10020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10021 reload_cmds='$CC -r -o $output$reload_objs' 10022 hardcode_direct=no 10023 ;; 10024 motorola) 10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10027 ;; 10028 esac 10029 runpath_var='LD_RUN_PATH' 10030 hardcode_shlibpath_var=no 10031 ;; 10032 10033 sysv4.3*) 10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10035 hardcode_shlibpath_var=no 10036 export_dynamic_flag_spec='-Bexport' 10037 ;; 10038 10039 sysv4*MP*) 10040 if test -d /usr/nec; then 10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10042 hardcode_shlibpath_var=no 10043 runpath_var=LD_RUN_PATH 10044 hardcode_runpath_var=yes 10045 ld_shlibs=yes 10046 fi 10047 ;; 10048 10049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10050 no_undefined_flag='$wl-z,text' 10051 archive_cmds_need_lc=no 10052 hardcode_shlibpath_var=no 10053 runpath_var='LD_RUN_PATH' 10054 10055 if test yes = "$GCC"; then 10056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10058 else 10059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10061 fi 10062 ;; 10063 10064 sysv5* | sco3.2v5* | sco5v6*) 10065 # Note: We CANNOT use -z defs as we might desire, because we do not 10066 # link with -lc, and that would cause any symbols used from libc to 10067 # always be unresolved, which means just about no library would 10068 # ever link correctly. If we're not using GNU ld we use -z text 10069 # though, which does catch some bad symbols but isn't as heavy-handed 10070 # as -z defs. 10071 no_undefined_flag='$wl-z,text' 10072 allow_undefined_flag='$wl-z,nodefs' 10073 archive_cmds_need_lc=no 10074 hardcode_shlibpath_var=no 10075 hardcode_libdir_flag_spec='$wl-R,$libdir' 10076 hardcode_libdir_separator=':' 10077 link_all_deplibs=yes 10078 export_dynamic_flag_spec='$wl-Bexport' 10079 runpath_var='LD_RUN_PATH' 10080 10081 if test yes = "$GCC"; then 10082 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10083 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10084 else 10085 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10086 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 fi 10088 ;; 10089 10090 uts4*) 10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10092 hardcode_libdir_flag_spec='-L$libdir' 10093 hardcode_shlibpath_var=no 10094 ;; 10095 10096 *) 10097 ld_shlibs=no 10098 ;; 10099 esac 10100 10101 if test sni = "$host_vendor"; then 10102 case $host in 10103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10104 export_dynamic_flag_spec='$wl-Blargedynsym' 10105 ;; 10106 esac 10107 fi 10108 fi 10109 10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10111$as_echo "$ld_shlibs" >&6; } 10112test no = "$ld_shlibs" && can_build_shared=no 10113 10114with_gnu_ld=$with_gnu_ld 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130# 10131# Do we need to explicitly link libc? 10132# 10133case "x$archive_cmds_need_lc" in 10134x|xyes) 10135 # Assume -lc should be added 10136 archive_cmds_need_lc=yes 10137 10138 if test yes,yes = "$GCC,$enable_shared"; then 10139 case $archive_cmds in 10140 *'~'*) 10141 # FIXME: we may have to deal with multi-command sequences. 10142 ;; 10143 '$CC '*) 10144 # Test whether the compiler implicitly links with -lc since on some 10145 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10146 # to ld, don't add -lc before -lgcc. 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10148$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10149if ${lt_cv_archive_cmds_need_lc+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 $RM conftest* 10153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10154 10155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10156 (eval $ac_compile) 2>&5 10157 ac_status=$? 10158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10159 test $ac_status = 0; } 2>conftest.err; then 10160 soname=conftest 10161 lib=conftest 10162 libobjs=conftest.$ac_objext 10163 deplibs= 10164 wl=$lt_prog_compiler_wl 10165 pic_flag=$lt_prog_compiler_pic 10166 compiler_flags=-v 10167 linker_flags=-v 10168 verstring= 10169 output_objdir=. 10170 libname=conftest 10171 lt_save_allow_undefined_flag=$allow_undefined_flag 10172 allow_undefined_flag= 10173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10174 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10175 ac_status=$? 10176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10177 test $ac_status = 0; } 10178 then 10179 lt_cv_archive_cmds_need_lc=no 10180 else 10181 lt_cv_archive_cmds_need_lc=yes 10182 fi 10183 allow_undefined_flag=$lt_save_allow_undefined_flag 10184 else 10185 cat conftest.err 1>&5 10186 fi 10187 $RM conftest* 10188 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10191$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10192 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10193 ;; 10194 esac 10195 fi 10196 ;; 10197esac 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10351$as_echo_n "checking dynamic linker characteristics... " >&6; } 10352 10353if test yes = "$GCC"; then 10354 case $host_os in 10355 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10356 *) lt_awk_arg='/^libraries:/' ;; 10357 esac 10358 case $host_os in 10359 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10360 *) lt_sed_strip_eq='s|=/|/|g' ;; 10361 esac 10362 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10363 case $lt_search_path_spec in 10364 *\;*) 10365 # if the path contains ";" then we assume it to be the separator 10366 # otherwise default to the standard path separator (i.e. ":") - it is 10367 # assumed that no part of a normal pathname contains ";" but that should 10368 # okay in the real world where ";" in dirpaths is itself problematic. 10369 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10370 ;; 10371 *) 10372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10373 ;; 10374 esac 10375 # Ok, now we have the path, separated by spaces, we can step through it 10376 # and add multilib dir if necessary... 10377 lt_tmp_lt_search_path_spec= 10378 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10379 # ...but if some path component already ends with the multilib dir we assume 10380 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10381 case "$lt_multi_os_dir; $lt_search_path_spec " in 10382 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10383 lt_multi_os_dir= 10384 ;; 10385 esac 10386 for lt_sys_path in $lt_search_path_spec; do 10387 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10389 elif test -n "$lt_multi_os_dir"; then 10390 test -d "$lt_sys_path" && \ 10391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10392 fi 10393 done 10394 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10395BEGIN {RS = " "; FS = "/|\n";} { 10396 lt_foo = ""; 10397 lt_count = 0; 10398 for (lt_i = NF; lt_i > 0; lt_i--) { 10399 if ($lt_i != "" && $lt_i != ".") { 10400 if ($lt_i == "..") { 10401 lt_count++; 10402 } else { 10403 if (lt_count == 0) { 10404 lt_foo = "/" $lt_i lt_foo; 10405 } else { 10406 lt_count--; 10407 } 10408 } 10409 } 10410 } 10411 if (lt_foo != "") { lt_freq[lt_foo]++; } 10412 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10413}'` 10414 # AWK program above erroneously prepends '/' to C:/dos/paths 10415 # for these hosts. 10416 case $host_os in 10417 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10418 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10419 esac 10420 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10421else 10422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10423fi 10424library_names_spec= 10425libname_spec='lib$name' 10426soname_spec= 10427shrext_cmds=.so 10428postinstall_cmds= 10429postuninstall_cmds= 10430finish_cmds= 10431finish_eval= 10432shlibpath_var= 10433shlibpath_overrides_runpath=unknown 10434version_type=none 10435dynamic_linker="$host_os ld.so" 10436sys_lib_dlsearch_path_spec="/lib /usr/lib" 10437need_lib_prefix=unknown 10438hardcode_into_libs=no 10439 10440# when you set need_version to no, make sure it does not cause -set_version 10441# flags to be left without arguments 10442need_version=unknown 10443 10444 10445 10446case $host_os in 10447aix3*) 10448 version_type=linux # correct to gnu/linux during the next big refactor 10449 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10450 shlibpath_var=LIBPATH 10451 10452 # AIX 3 has no versioning support, so we append a major version to the name. 10453 soname_spec='$libname$release$shared_ext$major' 10454 ;; 10455 10456aix[4-9]*) 10457 version_type=linux # correct to gnu/linux during the next big refactor 10458 need_lib_prefix=no 10459 need_version=no 10460 hardcode_into_libs=yes 10461 if test ia64 = "$host_cpu"; then 10462 # AIX 5 supports IA64 10463 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10464 shlibpath_var=LD_LIBRARY_PATH 10465 else 10466 # With GCC up to 2.95.x, collect2 would create an import file 10467 # for dependence libraries. The import file would start with 10468 # the line '#! .'. This would cause the generated library to 10469 # depend on '.', always an invalid library. This was fixed in 10470 # development snapshots of GCC prior to 3.0. 10471 case $host_os in 10472 aix4 | aix4.[01] | aix4.[01].*) 10473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10474 echo ' yes ' 10475 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10476 : 10477 else 10478 can_build_shared=no 10479 fi 10480 ;; 10481 esac 10482 # Using Import Files as archive members, it is possible to support 10483 # filename-based versioning of shared library archives on AIX. While 10484 # this would work for both with and without runtime linking, it will 10485 # prevent static linking of such archives. So we do filename-based 10486 # shared library versioning with .so extension only, which is used 10487 # when both runtime linking and shared linking is enabled. 10488 # Unfortunately, runtime linking may impact performance, so we do 10489 # not want this to be the default eventually. Also, we use the 10490 # versioned .so libs for executables only if there is the -brtl 10491 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10492 # To allow for filename-based versioning support, we need to create 10493 # libNAME.so.V as an archive file, containing: 10494 # *) an Import File, referring to the versioned filename of the 10495 # archive as well as the shared archive member, telling the 10496 # bitwidth (32 or 64) of that shared object, and providing the 10497 # list of exported symbols of that shared object, eventually 10498 # decorated with the 'weak' keyword 10499 # *) the shared object with the F_LOADONLY flag set, to really avoid 10500 # it being seen by the linker. 10501 # At run time we better use the real file rather than another symlink, 10502 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10503 10504 case $with_aix_soname,$aix_use_runtimelinking in 10505 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10506 # soname into executable. Probably we can add versioning support to 10507 # collect2, so additional links can be useful in future. 10508 aix,yes) # traditional libtool 10509 dynamic_linker='AIX unversionable lib.so' 10510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10511 # instead of lib<name>.a to let people know that these are not 10512 # typical AIX shared libraries. 10513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10514 ;; 10515 aix,no) # traditional AIX only 10516 dynamic_linker='AIX lib.a(lib.so.V)' 10517 # We preserve .a as extension for shared libraries through AIX4.2 10518 # and later when we are not doing run time linking. 10519 library_names_spec='$libname$release.a $libname.a' 10520 soname_spec='$libname$release$shared_ext$major' 10521 ;; 10522 svr4,*) # full svr4 only 10523 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10524 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10525 # We do not specify a path in Import Files, so LIBPATH fires. 10526 shlibpath_overrides_runpath=yes 10527 ;; 10528 *,yes) # both, prefer svr4 10529 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10530 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10531 # unpreferred sharedlib libNAME.a needs extra handling 10532 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10533 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10534 # We do not specify a path in Import Files, so LIBPATH fires. 10535 shlibpath_overrides_runpath=yes 10536 ;; 10537 *,no) # both, prefer aix 10538 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10539 library_names_spec='$libname$release.a $libname.a' 10540 soname_spec='$libname$release$shared_ext$major' 10541 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10542 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10543 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10544 ;; 10545 esac 10546 shlibpath_var=LIBPATH 10547 fi 10548 ;; 10549 10550amigaos*) 10551 case $host_cpu in 10552 powerpc) 10553 # Since July 2007 AmigaOS4 officially supports .so libraries. 10554 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10556 ;; 10557 m68k) 10558 library_names_spec='$libname.ixlibrary $libname.a' 10559 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10560 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10561 ;; 10562 esac 10563 ;; 10564 10565beos*) 10566 library_names_spec='$libname$shared_ext' 10567 dynamic_linker="$host_os ld.so" 10568 shlibpath_var=LIBRARY_PATH 10569 ;; 10570 10571bsdi[45]*) 10572 version_type=linux # correct to gnu/linux during the next big refactor 10573 need_version=no 10574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10575 soname_spec='$libname$release$shared_ext$major' 10576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10580 # the default ld.so.conf also contains /usr/contrib/lib and 10581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10582 # libtool to hard-code these into programs 10583 ;; 10584 10585cygwin* | mingw* | pw32* | cegcc*) 10586 version_type=windows 10587 shrext_cmds=.dll 10588 need_version=no 10589 need_lib_prefix=no 10590 10591 case $GCC,$cc_basename in 10592 yes,*) 10593 # gcc 10594 library_names_spec='$libname.dll.a' 10595 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10596 postinstall_cmds='base_file=`basename \$file`~ 10597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10598 dldir=$destdir/`dirname \$dlpath`~ 10599 test -d \$dldir || mkdir -p \$dldir~ 10600 $install_prog $dir/$dlname \$dldir/$dlname~ 10601 chmod a+x \$dldir/$dlname~ 10602 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10603 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10604 fi' 10605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10606 dlpath=$dir/\$dldll~ 10607 $RM \$dlpath' 10608 shlibpath_overrides_runpath=yes 10609 10610 case $host_os in 10611 cygwin*) 10612 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10613 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10614 10615 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10616 ;; 10617 mingw* | cegcc*) 10618 # MinGW DLLs use traditional 'lib' prefix 10619 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10620 ;; 10621 pw32*) 10622 # pw32 DLLs use 'pw' prefix rather than 'lib' 10623 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10624 ;; 10625 esac 10626 dynamic_linker='Win32 ld.exe' 10627 ;; 10628 10629 *,cl*) 10630 # Native MSVC 10631 libname_spec='$name' 10632 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10633 library_names_spec='$libname.dll.lib' 10634 10635 case $build_os in 10636 mingw*) 10637 sys_lib_search_path_spec= 10638 lt_save_ifs=$IFS 10639 IFS=';' 10640 for lt_path in $LIB 10641 do 10642 IFS=$lt_save_ifs 10643 # Let DOS variable expansion print the short 8.3 style file name. 10644 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10645 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10646 done 10647 IFS=$lt_save_ifs 10648 # Convert to MSYS style. 10649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10650 ;; 10651 cygwin*) 10652 # Convert to unix form, then to dos form, then back to unix form 10653 # but this time dos style (no spaces!) so that the unix form looks 10654 # like /cygdrive/c/PROGRA~1:/cygdr... 10655 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10656 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10657 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10658 ;; 10659 *) 10660 sys_lib_search_path_spec=$LIB 10661 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10662 # It is most probably a Windows format PATH. 10663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10664 else 10665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10666 fi 10667 # FIXME: find the short name or the path components, as spaces are 10668 # common. (e.g. "Program Files" -> "PROGRA~1") 10669 ;; 10670 esac 10671 10672 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10673 postinstall_cmds='base_file=`basename \$file`~ 10674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10675 dldir=$destdir/`dirname \$dlpath`~ 10676 test -d \$dldir || mkdir -p \$dldir~ 10677 $install_prog $dir/$dlname \$dldir/$dlname' 10678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10679 dlpath=$dir/\$dldll~ 10680 $RM \$dlpath' 10681 shlibpath_overrides_runpath=yes 10682 dynamic_linker='Win32 link.exe' 10683 ;; 10684 10685 *) 10686 # Assume MSVC wrapper 10687 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10688 dynamic_linker='Win32 ld.exe' 10689 ;; 10690 esac 10691 # FIXME: first we should search . and the directory the executable is in 10692 shlibpath_var=PATH 10693 ;; 10694 10695darwin* | rhapsody*) 10696 dynamic_linker="$host_os dyld" 10697 version_type=darwin 10698 need_lib_prefix=no 10699 need_version=no 10700 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10701 soname_spec='$libname$release$major$shared_ext' 10702 shlibpath_overrides_runpath=yes 10703 shlibpath_var=DYLD_LIBRARY_PATH 10704 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10705 10706 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10708 ;; 10709 10710dgux*) 10711 version_type=linux # correct to gnu/linux during the next big refactor 10712 need_lib_prefix=no 10713 need_version=no 10714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10715 soname_spec='$libname$release$shared_ext$major' 10716 shlibpath_var=LD_LIBRARY_PATH 10717 ;; 10718 10719freebsd* | dragonfly*) 10720 # DragonFly does not have aout. When/if they implement a new 10721 # versioning mechanism, adjust this. 10722 if test -x /usr/bin/objformat; then 10723 objformat=`/usr/bin/objformat` 10724 else 10725 case $host_os in 10726 freebsd[23].*) objformat=aout ;; 10727 *) objformat=elf ;; 10728 esac 10729 fi 10730 # Handle Gentoo/FreeBSD as it was Linux 10731 case $host_vendor in 10732 gentoo) 10733 version_type=linux ;; 10734 *) 10735 version_type=freebsd-$objformat ;; 10736 esac 10737 10738 case $version_type in 10739 freebsd-elf*) 10740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10741 soname_spec='$libname$release$shared_ext$major' 10742 need_version=no 10743 need_lib_prefix=no 10744 ;; 10745 freebsd-*) 10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10747 need_version=yes 10748 ;; 10749 linux) 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 need_lib_prefix=no 10753 need_version=no 10754 ;; 10755 esac 10756 shlibpath_var=LD_LIBRARY_PATH 10757 case $host_os in 10758 freebsd2.*) 10759 shlibpath_overrides_runpath=yes 10760 ;; 10761 freebsd3.[01]* | freebsdelf3.[01]*) 10762 shlibpath_overrides_runpath=yes 10763 hardcode_into_libs=yes 10764 ;; 10765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10767 shlibpath_overrides_runpath=no 10768 hardcode_into_libs=yes 10769 ;; 10770 *) # from 4.6 on, and DragonFly 10771 shlibpath_overrides_runpath=yes 10772 hardcode_into_libs=yes 10773 ;; 10774 esac 10775 ;; 10776 10777haiku*) 10778 version_type=linux # correct to gnu/linux during the next big refactor 10779 need_lib_prefix=no 10780 need_version=no 10781 dynamic_linker="$host_os runtime_loader" 10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10783 soname_spec='$libname$release$shared_ext$major' 10784 shlibpath_var=LIBRARY_PATH 10785 shlibpath_overrides_runpath=no 10786 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10787 hardcode_into_libs=yes 10788 ;; 10789 10790hpux9* | hpux10* | hpux11*) 10791 # Give a soname corresponding to the major version so that dld.sl refuses to 10792 # link against other versions. 10793 version_type=sunos 10794 need_lib_prefix=no 10795 need_version=no 10796 case $host_cpu in 10797 ia64*) 10798 shrext_cmds='.so' 10799 hardcode_into_libs=yes 10800 dynamic_linker="$host_os dld.so" 10801 shlibpath_var=LD_LIBRARY_PATH 10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10804 soname_spec='$libname$release$shared_ext$major' 10805 if test 32 = "$HPUX_IA64_MODE"; then 10806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10807 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10808 else 10809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10810 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10811 fi 10812 ;; 10813 hppa*64*) 10814 shrext_cmds='.sl' 10815 hardcode_into_libs=yes 10816 dynamic_linker="$host_os dld.sl" 10817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10820 soname_spec='$libname$release$shared_ext$major' 10821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10823 ;; 10824 *) 10825 shrext_cmds='.sl' 10826 dynamic_linker="$host_os dld.sl" 10827 shlibpath_var=SHLIB_PATH 10828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10830 soname_spec='$libname$release$shared_ext$major' 10831 ;; 10832 esac 10833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10834 postinstall_cmds='chmod 555 $lib' 10835 # or fails outright, so override atomically: 10836 install_override_mode=555 10837 ;; 10838 10839interix[3-9]*) 10840 version_type=linux # correct to gnu/linux during the next big refactor 10841 need_lib_prefix=no 10842 need_version=no 10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10844 soname_spec='$libname$release$shared_ext$major' 10845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10846 shlibpath_var=LD_LIBRARY_PATH 10847 shlibpath_overrides_runpath=no 10848 hardcode_into_libs=yes 10849 ;; 10850 10851irix5* | irix6* | nonstopux*) 10852 case $host_os in 10853 nonstopux*) version_type=nonstopux ;; 10854 *) 10855 if test yes = "$lt_cv_prog_gnu_ld"; then 10856 version_type=linux # correct to gnu/linux during the next big refactor 10857 else 10858 version_type=irix 10859 fi ;; 10860 esac 10861 need_lib_prefix=no 10862 need_version=no 10863 soname_spec='$libname$release$shared_ext$major' 10864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10865 case $host_os in 10866 irix5* | nonstopux*) 10867 libsuff= shlibsuff= 10868 ;; 10869 *) 10870 case $LD in # libtool.m4 will add one of these switches to LD 10871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10872 libsuff= shlibsuff= libmagic=32-bit;; 10873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10874 libsuff=32 shlibsuff=N32 libmagic=N32;; 10875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10876 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10877 *) libsuff= shlibsuff= libmagic=never-match;; 10878 esac 10879 ;; 10880 esac 10881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10882 shlibpath_overrides_runpath=no 10883 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10884 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10885 hardcode_into_libs=yes 10886 ;; 10887 10888# No shared lib support for Linux oldld, aout, or coff. 10889linux*oldld* | linux*aout* | linux*coff*) 10890 dynamic_linker=no 10891 ;; 10892 10893linux*android*) 10894 version_type=none # Android doesn't support versioned libraries. 10895 need_lib_prefix=no 10896 need_version=no 10897 library_names_spec='$libname$release$shared_ext' 10898 soname_spec='$libname$release$shared_ext' 10899 finish_cmds= 10900 shlibpath_var=LD_LIBRARY_PATH 10901 shlibpath_overrides_runpath=yes 10902 10903 # This implies no fast_install, which is unacceptable. 10904 # Some rework will be needed to allow for fast_install 10905 # before this can be enabled. 10906 hardcode_into_libs=yes 10907 10908 dynamic_linker='Android linker' 10909 # Don't embed -rpath directories since the linker doesn't support them. 10910 hardcode_libdir_flag_spec='-L$libdir' 10911 ;; 10912 10913# This must be glibc/ELF. 10914linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10915 version_type=linux # correct to gnu/linux during the next big refactor 10916 need_lib_prefix=no 10917 need_version=no 10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10919 soname_spec='$libname$release$shared_ext$major' 10920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10921 shlibpath_var=LD_LIBRARY_PATH 10922 shlibpath_overrides_runpath=no 10923 10924 # Some binutils ld are patched to set DT_RUNPATH 10925 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10926 $as_echo_n "(cached) " >&6 10927else 10928 lt_cv_shlibpath_overrides_runpath=no 10929 save_LDFLAGS=$LDFLAGS 10930 save_libdir=$libdir 10931 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10932 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10934/* end confdefs.h. */ 10935 10936int 10937main () 10938{ 10939 10940 ; 10941 return 0; 10942} 10943_ACEOF 10944if ac_fn_c_try_link "$LINENO"; then : 10945 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10946 lt_cv_shlibpath_overrides_runpath=yes 10947fi 10948fi 10949rm -f core conftest.err conftest.$ac_objext \ 10950 conftest$ac_exeext conftest.$ac_ext 10951 LDFLAGS=$save_LDFLAGS 10952 libdir=$save_libdir 10953 10954fi 10955 10956 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10957 10958 # This implies no fast_install, which is unacceptable. 10959 # Some rework will be needed to allow for fast_install 10960 # before this can be enabled. 10961 hardcode_into_libs=yes 10962 10963 # Ideally, we could use ldconfig to report *all* directores which are 10964 # searched for libraries, however this is still not possible. Aside from not 10965 # being certain /sbin/ldconfig is available, command 10966 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10967 # even though it is searched at run-time. Try to do the best guess by 10968 # appending ld.so.conf contents (and includes) to the search path. 10969 if test -f /etc/ld.so.conf; then 10970 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10972 fi 10973 10974 # We used to test for /lib/ld.so.1 and disable shared libraries on 10975 # powerpc, because MkLinux only supported shared libraries with the 10976 # GNU dynamic linker. Since this was broken with cross compilers, 10977 # most powerpc-linux boxes support dynamic linking these days and 10978 # people can always --disable-shared, the test was removed, and we 10979 # assume the GNU/Linux dynamic linker is in use. 10980 dynamic_linker='GNU/Linux ld.so' 10981 ;; 10982 10983netbsd*) 10984 version_type=sunos 10985 need_lib_prefix=no 10986 need_version=no 10987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10990 dynamic_linker='NetBSD (a.out) ld.so' 10991 else 10992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10993 soname_spec='$libname$release$shared_ext$major' 10994 dynamic_linker='NetBSD ld.elf_so' 10995 fi 10996 shlibpath_var=LD_LIBRARY_PATH 10997 shlibpath_overrides_runpath=yes 10998 hardcode_into_libs=yes 10999 ;; 11000 11001newsos6) 11002 version_type=linux # correct to gnu/linux during the next big refactor 11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11004 shlibpath_var=LD_LIBRARY_PATH 11005 shlibpath_overrides_runpath=yes 11006 ;; 11007 11008*nto* | *qnx*) 11009 version_type=qnx 11010 need_lib_prefix=no 11011 need_version=no 11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11013 soname_spec='$libname$release$shared_ext$major' 11014 shlibpath_var=LD_LIBRARY_PATH 11015 shlibpath_overrides_runpath=no 11016 hardcode_into_libs=yes 11017 dynamic_linker='ldqnx.so' 11018 ;; 11019 11020openbsd* | bitrig*) 11021 version_type=sunos 11022 sys_lib_dlsearch_path_spec=/usr/lib 11023 need_lib_prefix=no 11024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11025 need_version=no 11026 else 11027 need_version=yes 11028 fi 11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11031 shlibpath_var=LD_LIBRARY_PATH 11032 shlibpath_overrides_runpath=yes 11033 ;; 11034 11035os2*) 11036 libname_spec='$name' 11037 version_type=windows 11038 shrext_cmds=.dll 11039 need_version=no 11040 need_lib_prefix=no 11041 # OS/2 can only load a DLL with a base name of 8 characters or less. 11042 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11043 v=$($ECHO $release$versuffix | tr -d .-); 11044 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11045 $ECHO $n$v`$shared_ext' 11046 library_names_spec='${libname}_dll.$libext' 11047 dynamic_linker='OS/2 ld.exe' 11048 shlibpath_var=BEGINLIBPATH 11049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11051 postinstall_cmds='base_file=`basename \$file`~ 11052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11053 dldir=$destdir/`dirname \$dlpath`~ 11054 test -d \$dldir || mkdir -p \$dldir~ 11055 $install_prog $dir/$dlname \$dldir/$dlname~ 11056 chmod a+x \$dldir/$dlname~ 11057 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11058 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11059 fi' 11060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11061 dlpath=$dir/\$dldll~ 11062 $RM \$dlpath' 11063 ;; 11064 11065osf3* | osf4* | osf5*) 11066 version_type=osf 11067 need_lib_prefix=no 11068 need_version=no 11069 soname_spec='$libname$release$shared_ext$major' 11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11071 shlibpath_var=LD_LIBRARY_PATH 11072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11074 ;; 11075 11076rdos*) 11077 dynamic_linker=no 11078 ;; 11079 11080solaris*) 11081 version_type=linux # correct to gnu/linux during the next big refactor 11082 need_lib_prefix=no 11083 need_version=no 11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11085 soname_spec='$libname$release$shared_ext$major' 11086 shlibpath_var=LD_LIBRARY_PATH 11087 shlibpath_overrides_runpath=yes 11088 hardcode_into_libs=yes 11089 # ldd complains unless libraries are executable 11090 postinstall_cmds='chmod +x $lib' 11091 ;; 11092 11093sunos4*) 11094 version_type=sunos 11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11097 shlibpath_var=LD_LIBRARY_PATH 11098 shlibpath_overrides_runpath=yes 11099 if test yes = "$with_gnu_ld"; then 11100 need_lib_prefix=no 11101 fi 11102 need_version=yes 11103 ;; 11104 11105sysv4 | sysv4.3*) 11106 version_type=linux # correct to gnu/linux during the next big refactor 11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11108 soname_spec='$libname$release$shared_ext$major' 11109 shlibpath_var=LD_LIBRARY_PATH 11110 case $host_vendor in 11111 sni) 11112 shlibpath_overrides_runpath=no 11113 need_lib_prefix=no 11114 runpath_var=LD_RUN_PATH 11115 ;; 11116 siemens) 11117 need_lib_prefix=no 11118 ;; 11119 motorola) 11120 need_lib_prefix=no 11121 need_version=no 11122 shlibpath_overrides_runpath=no 11123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11124 ;; 11125 esac 11126 ;; 11127 11128sysv4*MP*) 11129 if test -d /usr/nec; then 11130 version_type=linux # correct to gnu/linux during the next big refactor 11131 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11132 soname_spec='$libname$shared_ext.$major' 11133 shlibpath_var=LD_LIBRARY_PATH 11134 fi 11135 ;; 11136 11137sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11138 version_type=sco 11139 need_lib_prefix=no 11140 need_version=no 11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11142 soname_spec='$libname$release$shared_ext$major' 11143 shlibpath_var=LD_LIBRARY_PATH 11144 shlibpath_overrides_runpath=yes 11145 hardcode_into_libs=yes 11146 if test yes = "$with_gnu_ld"; then 11147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11148 else 11149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11150 case $host_os in 11151 sco3.2v5*) 11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11153 ;; 11154 esac 11155 fi 11156 sys_lib_dlsearch_path_spec='/usr/lib' 11157 ;; 11158 11159tpf*) 11160 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11161 version_type=linux # correct to gnu/linux during the next big refactor 11162 need_lib_prefix=no 11163 need_version=no 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11165 shlibpath_var=LD_LIBRARY_PATH 11166 shlibpath_overrides_runpath=no 11167 hardcode_into_libs=yes 11168 ;; 11169 11170uts4*) 11171 version_type=linux # correct to gnu/linux during the next big refactor 11172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11173 soname_spec='$libname$release$shared_ext$major' 11174 shlibpath_var=LD_LIBRARY_PATH 11175 ;; 11176 11177*) 11178 dynamic_linker=no 11179 ;; 11180esac 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11182$as_echo "$dynamic_linker" >&6; } 11183test no = "$dynamic_linker" && can_build_shared=no 11184 11185variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11186if test yes = "$GCC"; then 11187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11188fi 11189 11190if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11191 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11192fi 11193 11194if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11195 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11196fi 11197 11198# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11199configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11200 11201# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11202func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11203 11204# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11205configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11304$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11305hardcode_action= 11306if test -n "$hardcode_libdir_flag_spec" || 11307 test -n "$runpath_var" || 11308 test yes = "$hardcode_automatic"; then 11309 11310 # We can hardcode non-existent directories. 11311 if test no != "$hardcode_direct" && 11312 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11313 # have to relink, otherwise we might link with an installed library 11314 # when we should be linking with a yet-to-be-installed one 11315 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11316 test no != "$hardcode_minus_L"; then 11317 # Linking always hardcodes the temporary library directory. 11318 hardcode_action=relink 11319 else 11320 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11321 hardcode_action=immediate 11322 fi 11323else 11324 # We cannot hardcode anything, or else we can only hardcode existing 11325 # directories. 11326 hardcode_action=unsupported 11327fi 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11329$as_echo "$hardcode_action" >&6; } 11330 11331if test relink = "$hardcode_action" || 11332 test yes = "$inherit_rpath"; then 11333 # Fast installation is not supported 11334 enable_fast_install=no 11335elif test yes = "$shlibpath_overrides_runpath" || 11336 test no = "$enable_shared"; then 11337 # Fast installation is not necessary 11338 enable_fast_install=needless 11339fi 11340 11341 11342 11343 11344 11345 11346 if test yes != "$enable_dlopen"; then 11347 enable_dlopen=unknown 11348 enable_dlopen_self=unknown 11349 enable_dlopen_self_static=unknown 11350else 11351 lt_cv_dlopen=no 11352 lt_cv_dlopen_libs= 11353 11354 case $host_os in 11355 beos*) 11356 lt_cv_dlopen=load_add_on 11357 lt_cv_dlopen_libs= 11358 lt_cv_dlopen_self=yes 11359 ;; 11360 11361 mingw* | pw32* | cegcc*) 11362 lt_cv_dlopen=LoadLibrary 11363 lt_cv_dlopen_libs= 11364 ;; 11365 11366 cygwin*) 11367 lt_cv_dlopen=dlopen 11368 lt_cv_dlopen_libs= 11369 ;; 11370 11371 darwin*) 11372 # if libdl is installed we need to link against it 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11374$as_echo_n "checking for dlopen in -ldl... " >&6; } 11375if ${ac_cv_lib_dl_dlopen+:} false; then : 11376 $as_echo_n "(cached) " >&6 11377else 11378 ac_check_lib_save_LIBS=$LIBS 11379LIBS="-ldl $LIBS" 11380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11381/* end confdefs.h. */ 11382 11383/* Override any GCC internal prototype to avoid an error. 11384 Use char because int might match the return type of a GCC 11385 builtin and then its argument prototype would still apply. */ 11386#ifdef __cplusplus 11387extern "C" 11388#endif 11389char dlopen (); 11390int 11391main () 11392{ 11393return dlopen (); 11394 ; 11395 return 0; 11396} 11397_ACEOF 11398if ac_fn_c_try_link "$LINENO"; then : 11399 ac_cv_lib_dl_dlopen=yes 11400else 11401 ac_cv_lib_dl_dlopen=no 11402fi 11403rm -f core conftest.err conftest.$ac_objext \ 11404 conftest$ac_exeext conftest.$ac_ext 11405LIBS=$ac_check_lib_save_LIBS 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11408$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11409if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11410 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11411else 11412 11413 lt_cv_dlopen=dyld 11414 lt_cv_dlopen_libs= 11415 lt_cv_dlopen_self=yes 11416 11417fi 11418 11419 ;; 11420 11421 tpf*) 11422 # Don't try to run any link tests for TPF. We know it's impossible 11423 # because TPF is a cross-compiler, and we know how we open DSOs. 11424 lt_cv_dlopen=dlopen 11425 lt_cv_dlopen_libs= 11426 lt_cv_dlopen_self=no 11427 ;; 11428 11429 *) 11430 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11431if test "x$ac_cv_func_shl_load" = xyes; then : 11432 lt_cv_dlopen=shl_load 11433else 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11435$as_echo_n "checking for shl_load in -ldld... " >&6; } 11436if ${ac_cv_lib_dld_shl_load+:} false; then : 11437 $as_echo_n "(cached) " >&6 11438else 11439 ac_check_lib_save_LIBS=$LIBS 11440LIBS="-ldld $LIBS" 11441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11442/* end confdefs.h. */ 11443 11444/* Override any GCC internal prototype to avoid an error. 11445 Use char because int might match the return type of a GCC 11446 builtin and then its argument prototype would still apply. */ 11447#ifdef __cplusplus 11448extern "C" 11449#endif 11450char shl_load (); 11451int 11452main () 11453{ 11454return shl_load (); 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459if ac_fn_c_try_link "$LINENO"; then : 11460 ac_cv_lib_dld_shl_load=yes 11461else 11462 ac_cv_lib_dld_shl_load=no 11463fi 11464rm -f core conftest.err conftest.$ac_objext \ 11465 conftest$ac_exeext conftest.$ac_ext 11466LIBS=$ac_check_lib_save_LIBS 11467fi 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11469$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11470if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11471 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11472else 11473 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11474if test "x$ac_cv_func_dlopen" = xyes; then : 11475 lt_cv_dlopen=dlopen 11476else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11478$as_echo_n "checking for dlopen in -ldl... " >&6; } 11479if ${ac_cv_lib_dl_dlopen+:} false; then : 11480 $as_echo_n "(cached) " >&6 11481else 11482 ac_check_lib_save_LIBS=$LIBS 11483LIBS="-ldl $LIBS" 11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486 11487/* Override any GCC internal prototype to avoid an error. 11488 Use char because int might match the return type of a GCC 11489 builtin and then its argument prototype would still apply. */ 11490#ifdef __cplusplus 11491extern "C" 11492#endif 11493char dlopen (); 11494int 11495main () 11496{ 11497return dlopen (); 11498 ; 11499 return 0; 11500} 11501_ACEOF 11502if ac_fn_c_try_link "$LINENO"; then : 11503 ac_cv_lib_dl_dlopen=yes 11504else 11505 ac_cv_lib_dl_dlopen=no 11506fi 11507rm -f core conftest.err conftest.$ac_objext \ 11508 conftest$ac_exeext conftest.$ac_ext 11509LIBS=$ac_check_lib_save_LIBS 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11512$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11513if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11514 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11515else 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11517$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11518if ${ac_cv_lib_svld_dlopen+:} false; then : 11519 $as_echo_n "(cached) " >&6 11520else 11521 ac_check_lib_save_LIBS=$LIBS 11522LIBS="-lsvld $LIBS" 11523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11524/* end confdefs.h. */ 11525 11526/* Override any GCC internal prototype to avoid an error. 11527 Use char because int might match the return type of a GCC 11528 builtin and then its argument prototype would still apply. */ 11529#ifdef __cplusplus 11530extern "C" 11531#endif 11532char dlopen (); 11533int 11534main () 11535{ 11536return dlopen (); 11537 ; 11538 return 0; 11539} 11540_ACEOF 11541if ac_fn_c_try_link "$LINENO"; then : 11542 ac_cv_lib_svld_dlopen=yes 11543else 11544 ac_cv_lib_svld_dlopen=no 11545fi 11546rm -f core conftest.err conftest.$ac_objext \ 11547 conftest$ac_exeext conftest.$ac_ext 11548LIBS=$ac_check_lib_save_LIBS 11549fi 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11551$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11552if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11553 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11554else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11556$as_echo_n "checking for dld_link in -ldld... " >&6; } 11557if ${ac_cv_lib_dld_dld_link+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559else 11560 ac_check_lib_save_LIBS=$LIBS 11561LIBS="-ldld $LIBS" 11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11563/* end confdefs.h. */ 11564 11565/* Override any GCC internal prototype to avoid an error. 11566 Use char because int might match the return type of a GCC 11567 builtin and then its argument prototype would still apply. */ 11568#ifdef __cplusplus 11569extern "C" 11570#endif 11571char dld_link (); 11572int 11573main () 11574{ 11575return dld_link (); 11576 ; 11577 return 0; 11578} 11579_ACEOF 11580if ac_fn_c_try_link "$LINENO"; then : 11581 ac_cv_lib_dld_dld_link=yes 11582else 11583 ac_cv_lib_dld_dld_link=no 11584fi 11585rm -f core conftest.err conftest.$ac_objext \ 11586 conftest$ac_exeext conftest.$ac_ext 11587LIBS=$ac_check_lib_save_LIBS 11588fi 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11590$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11591if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11592 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11593fi 11594 11595 11596fi 11597 11598 11599fi 11600 11601 11602fi 11603 11604 11605fi 11606 11607 11608fi 11609 11610 ;; 11611 esac 11612 11613 if test no = "$lt_cv_dlopen"; then 11614 enable_dlopen=no 11615 else 11616 enable_dlopen=yes 11617 fi 11618 11619 case $lt_cv_dlopen in 11620 dlopen) 11621 save_CPPFLAGS=$CPPFLAGS 11622 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11623 11624 save_LDFLAGS=$LDFLAGS 11625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11626 11627 save_LIBS=$LIBS 11628 LIBS="$lt_cv_dlopen_libs $LIBS" 11629 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11631$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11632if ${lt_cv_dlopen_self+:} false; then : 11633 $as_echo_n "(cached) " >&6 11634else 11635 if test yes = "$cross_compiling"; then : 11636 lt_cv_dlopen_self=cross 11637else 11638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11639 lt_status=$lt_dlunknown 11640 cat > conftest.$ac_ext <<_LT_EOF 11641#line $LINENO "configure" 11642#include "confdefs.h" 11643 11644#if HAVE_DLFCN_H 11645#include <dlfcn.h> 11646#endif 11647 11648#include <stdio.h> 11649 11650#ifdef RTLD_GLOBAL 11651# define LT_DLGLOBAL RTLD_GLOBAL 11652#else 11653# ifdef DL_GLOBAL 11654# define LT_DLGLOBAL DL_GLOBAL 11655# else 11656# define LT_DLGLOBAL 0 11657# endif 11658#endif 11659 11660/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11661 find out it does not work in some platform. */ 11662#ifndef LT_DLLAZY_OR_NOW 11663# ifdef RTLD_LAZY 11664# define LT_DLLAZY_OR_NOW RTLD_LAZY 11665# else 11666# ifdef DL_LAZY 11667# define LT_DLLAZY_OR_NOW DL_LAZY 11668# else 11669# ifdef RTLD_NOW 11670# define LT_DLLAZY_OR_NOW RTLD_NOW 11671# else 11672# ifdef DL_NOW 11673# define LT_DLLAZY_OR_NOW DL_NOW 11674# else 11675# define LT_DLLAZY_OR_NOW 0 11676# endif 11677# endif 11678# endif 11679# endif 11680#endif 11681 11682/* When -fvisibility=hidden is used, assume the code has been annotated 11683 correspondingly for the symbols needed. */ 11684#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11685int fnord () __attribute__((visibility("default"))); 11686#endif 11687 11688int fnord () { return 42; } 11689int main () 11690{ 11691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11692 int status = $lt_dlunknown; 11693 11694 if (self) 11695 { 11696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11697 else 11698 { 11699 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11700 else puts (dlerror ()); 11701 } 11702 /* dlclose (self); */ 11703 } 11704 else 11705 puts (dlerror ()); 11706 11707 return status; 11708} 11709_LT_EOF 11710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11711 (eval $ac_link) 2>&5 11712 ac_status=$? 11713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11714 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11715 (./conftest; exit; ) >&5 2>/dev/null 11716 lt_status=$? 11717 case x$lt_status in 11718 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11719 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11720 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11721 esac 11722 else : 11723 # compilation failed 11724 lt_cv_dlopen_self=no 11725 fi 11726fi 11727rm -fr conftest* 11728 11729 11730fi 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11732$as_echo "$lt_cv_dlopen_self" >&6; } 11733 11734 if test yes = "$lt_cv_dlopen_self"; then 11735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11737$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11738if ${lt_cv_dlopen_self_static+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740else 11741 if test yes = "$cross_compiling"; then : 11742 lt_cv_dlopen_self_static=cross 11743else 11744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11745 lt_status=$lt_dlunknown 11746 cat > conftest.$ac_ext <<_LT_EOF 11747#line $LINENO "configure" 11748#include "confdefs.h" 11749 11750#if HAVE_DLFCN_H 11751#include <dlfcn.h> 11752#endif 11753 11754#include <stdio.h> 11755 11756#ifdef RTLD_GLOBAL 11757# define LT_DLGLOBAL RTLD_GLOBAL 11758#else 11759# ifdef DL_GLOBAL 11760# define LT_DLGLOBAL DL_GLOBAL 11761# else 11762# define LT_DLGLOBAL 0 11763# endif 11764#endif 11765 11766/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11767 find out it does not work in some platform. */ 11768#ifndef LT_DLLAZY_OR_NOW 11769# ifdef RTLD_LAZY 11770# define LT_DLLAZY_OR_NOW RTLD_LAZY 11771# else 11772# ifdef DL_LAZY 11773# define LT_DLLAZY_OR_NOW DL_LAZY 11774# else 11775# ifdef RTLD_NOW 11776# define LT_DLLAZY_OR_NOW RTLD_NOW 11777# else 11778# ifdef DL_NOW 11779# define LT_DLLAZY_OR_NOW DL_NOW 11780# else 11781# define LT_DLLAZY_OR_NOW 0 11782# endif 11783# endif 11784# endif 11785# endif 11786#endif 11787 11788/* When -fvisibility=hidden is used, assume the code has been annotated 11789 correspondingly for the symbols needed. */ 11790#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11791int fnord () __attribute__((visibility("default"))); 11792#endif 11793 11794int fnord () { return 42; } 11795int main () 11796{ 11797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11798 int status = $lt_dlunknown; 11799 11800 if (self) 11801 { 11802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11803 else 11804 { 11805 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11806 else puts (dlerror ()); 11807 } 11808 /* dlclose (self); */ 11809 } 11810 else 11811 puts (dlerror ()); 11812 11813 return status; 11814} 11815_LT_EOF 11816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11817 (eval $ac_link) 2>&5 11818 ac_status=$? 11819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11820 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11821 (./conftest; exit; ) >&5 2>/dev/null 11822 lt_status=$? 11823 case x$lt_status in 11824 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11825 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11826 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11827 esac 11828 else : 11829 # compilation failed 11830 lt_cv_dlopen_self_static=no 11831 fi 11832fi 11833rm -fr conftest* 11834 11835 11836fi 11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11838$as_echo "$lt_cv_dlopen_self_static" >&6; } 11839 fi 11840 11841 CPPFLAGS=$save_CPPFLAGS 11842 LDFLAGS=$save_LDFLAGS 11843 LIBS=$save_LIBS 11844 ;; 11845 esac 11846 11847 case $lt_cv_dlopen_self in 11848 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11849 *) enable_dlopen_self=unknown ;; 11850 esac 11851 11852 case $lt_cv_dlopen_self_static in 11853 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11854 *) enable_dlopen_self_static=unknown ;; 11855 esac 11856fi 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874striplib= 11875old_striplib= 11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11877$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11878if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11879 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11880 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11882$as_echo "yes" >&6; } 11883else 11884# FIXME - insert some real tests, host_os isn't really good enough 11885 case $host_os in 11886 darwin*) 11887 if test -n "$STRIP"; then 11888 striplib="$STRIP -x" 11889 old_striplib="$STRIP -S" 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11891$as_echo "yes" >&6; } 11892 else 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11894$as_echo "no" >&6; } 11895 fi 11896 ;; 11897 *) 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11899$as_echo "no" >&6; } 11900 ;; 11901 esac 11902fi 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 # Report what library types will actually be built 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11917$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11919$as_echo "$can_build_shared" >&6; } 11920 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11922$as_echo_n "checking whether to build shared libraries... " >&6; } 11923 test no = "$can_build_shared" && enable_shared=no 11924 11925 # On AIX, shared libraries and static libraries use the same namespace, and 11926 # are all built from PIC. 11927 case $host_os in 11928 aix3*) 11929 test yes = "$enable_shared" && enable_static=no 11930 if test -n "$RANLIB"; then 11931 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11932 postinstall_cmds='$RANLIB $lib' 11933 fi 11934 ;; 11935 11936 aix[4-9]*) 11937 if test ia64 != "$host_cpu"; then 11938 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11939 yes,aix,yes) ;; # shared object as lib.so file only 11940 yes,svr4,*) ;; # shared object as lib.so archive member only 11941 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11942 esac 11943 fi 11944 ;; 11945 esac 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11947$as_echo "$enable_shared" >&6; } 11948 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11950$as_echo_n "checking whether to build static libraries... " >&6; } 11951 # Make sure either enable_shared or enable_static is yes. 11952 test yes = "$enable_shared" || enable_static=yes 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11954$as_echo "$enable_static" >&6; } 11955 11956 11957 11958 11959fi 11960ac_ext=c 11961ac_cpp='$CPP $CPPFLAGS' 11962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11964ac_compiler_gnu=$ac_cv_c_compiler_gnu 11965 11966CC=$lt_save_CC 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 ac_config_commands="$ac_config_commands libtool" 11983 11984 11985 11986 11987# Only expand once: 11988 11989 11990ac_ext=c 11991ac_cpp='$CPP $CPPFLAGS' 11992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11994ac_compiler_gnu=$ac_cv_c_compiler_gnu 11995if test -n "$ac_tool_prefix"; then 11996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11997set dummy ${ac_tool_prefix}gcc; ac_word=$2 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11999$as_echo_n "checking for $ac_word... " >&6; } 12000if ${ac_cv_prog_CC+:} false; then : 12001 $as_echo_n "(cached) " >&6 12002else 12003 if test -n "$CC"; then 12004 ac_cv_prog_CC="$CC" # Let the user override the test. 12005else 12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12007for as_dir in $PATH 12008do 12009 IFS=$as_save_IFS 12010 test -z "$as_dir" && as_dir=. 12011 for ac_exec_ext in '' $ac_executable_extensions; do 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12013 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12015 break 2 12016 fi 12017done 12018 done 12019IFS=$as_save_IFS 12020 12021fi 12022fi 12023CC=$ac_cv_prog_CC 12024if test -n "$CC"; then 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12026$as_echo "$CC" >&6; } 12027else 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12029$as_echo "no" >&6; } 12030fi 12031 12032 12033fi 12034if test -z "$ac_cv_prog_CC"; then 12035 ac_ct_CC=$CC 12036 # Extract the first word of "gcc", so it can be a program name with args. 12037set dummy gcc; ac_word=$2 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12039$as_echo_n "checking for $ac_word... " >&6; } 12040if ${ac_cv_prog_ac_ct_CC+:} false; then : 12041 $as_echo_n "(cached) " >&6 12042else 12043 if test -n "$ac_ct_CC"; then 12044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12045else 12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12047for as_dir in $PATH 12048do 12049 IFS=$as_save_IFS 12050 test -z "$as_dir" && as_dir=. 12051 for ac_exec_ext in '' $ac_executable_extensions; do 12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12053 ac_cv_prog_ac_ct_CC="gcc" 12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12055 break 2 12056 fi 12057done 12058 done 12059IFS=$as_save_IFS 12060 12061fi 12062fi 12063ac_ct_CC=$ac_cv_prog_ac_ct_CC 12064if test -n "$ac_ct_CC"; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12066$as_echo "$ac_ct_CC" >&6; } 12067else 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12069$as_echo "no" >&6; } 12070fi 12071 12072 if test "x$ac_ct_CC" = x; then 12073 CC="" 12074 else 12075 case $cross_compiling:$ac_tool_warned in 12076yes:) 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12079ac_tool_warned=yes ;; 12080esac 12081 CC=$ac_ct_CC 12082 fi 12083else 12084 CC="$ac_cv_prog_CC" 12085fi 12086 12087if test -z "$CC"; then 12088 if test -n "$ac_tool_prefix"; then 12089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12090set dummy ${ac_tool_prefix}cc; ac_word=$2 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12092$as_echo_n "checking for $ac_word... " >&6; } 12093if ${ac_cv_prog_CC+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095else 12096 if test -n "$CC"; then 12097 ac_cv_prog_CC="$CC" # Let the user override the test. 12098else 12099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12100for as_dir in $PATH 12101do 12102 IFS=$as_save_IFS 12103 test -z "$as_dir" && as_dir=. 12104 for ac_exec_ext in '' $ac_executable_extensions; do 12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12106 ac_cv_prog_CC="${ac_tool_prefix}cc" 12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12108 break 2 12109 fi 12110done 12111 done 12112IFS=$as_save_IFS 12113 12114fi 12115fi 12116CC=$ac_cv_prog_CC 12117if test -n "$CC"; then 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12119$as_echo "$CC" >&6; } 12120else 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12122$as_echo "no" >&6; } 12123fi 12124 12125 12126 fi 12127fi 12128if test -z "$CC"; then 12129 # Extract the first word of "cc", so it can be a program name with args. 12130set dummy cc; ac_word=$2 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12132$as_echo_n "checking for $ac_word... " >&6; } 12133if ${ac_cv_prog_CC+:} false; then : 12134 $as_echo_n "(cached) " >&6 12135else 12136 if test -n "$CC"; then 12137 ac_cv_prog_CC="$CC" # Let the user override the test. 12138else 12139 ac_prog_rejected=no 12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12141for as_dir in $PATH 12142do 12143 IFS=$as_save_IFS 12144 test -z "$as_dir" && as_dir=. 12145 for ac_exec_ext in '' $ac_executable_extensions; do 12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12148 ac_prog_rejected=yes 12149 continue 12150 fi 12151 ac_cv_prog_CC="cc" 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12153 break 2 12154 fi 12155done 12156 done 12157IFS=$as_save_IFS 12158 12159if test $ac_prog_rejected = yes; then 12160 # We found a bogon in the path, so make sure we never use it. 12161 set dummy $ac_cv_prog_CC 12162 shift 12163 if test $# != 0; then 12164 # We chose a different compiler from the bogus one. 12165 # However, it has the same basename, so the bogon will be chosen 12166 # first if we set CC to just the basename; use the full file name. 12167 shift 12168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12169 fi 12170fi 12171fi 12172fi 12173CC=$ac_cv_prog_CC 12174if test -n "$CC"; then 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12176$as_echo "$CC" >&6; } 12177else 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12179$as_echo "no" >&6; } 12180fi 12181 12182 12183fi 12184if test -z "$CC"; then 12185 if test -n "$ac_tool_prefix"; then 12186 for ac_prog in cl.exe 12187 do 12188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12189set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12191$as_echo_n "checking for $ac_word... " >&6; } 12192if ${ac_cv_prog_CC+:} false; then : 12193 $as_echo_n "(cached) " >&6 12194else 12195 if test -n "$CC"; then 12196 ac_cv_prog_CC="$CC" # Let the user override the test. 12197else 12198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12199for as_dir in $PATH 12200do 12201 IFS=$as_save_IFS 12202 test -z "$as_dir" && as_dir=. 12203 for ac_exec_ext in '' $ac_executable_extensions; do 12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12207 break 2 12208 fi 12209done 12210 done 12211IFS=$as_save_IFS 12212 12213fi 12214fi 12215CC=$ac_cv_prog_CC 12216if test -n "$CC"; then 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12218$as_echo "$CC" >&6; } 12219else 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12221$as_echo "no" >&6; } 12222fi 12223 12224 12225 test -n "$CC" && break 12226 done 12227fi 12228if test -z "$CC"; then 12229 ac_ct_CC=$CC 12230 for ac_prog in cl.exe 12231do 12232 # Extract the first word of "$ac_prog", so it can be a program name with args. 12233set dummy $ac_prog; ac_word=$2 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12235$as_echo_n "checking for $ac_word... " >&6; } 12236if ${ac_cv_prog_ac_ct_CC+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 if test -n "$ac_ct_CC"; then 12240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12241else 12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12243for as_dir in $PATH 12244do 12245 IFS=$as_save_IFS 12246 test -z "$as_dir" && as_dir=. 12247 for ac_exec_ext in '' $ac_executable_extensions; do 12248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12249 ac_cv_prog_ac_ct_CC="$ac_prog" 12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12251 break 2 12252 fi 12253done 12254 done 12255IFS=$as_save_IFS 12256 12257fi 12258fi 12259ac_ct_CC=$ac_cv_prog_ac_ct_CC 12260if test -n "$ac_ct_CC"; then 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12262$as_echo "$ac_ct_CC" >&6; } 12263else 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265$as_echo "no" >&6; } 12266fi 12267 12268 12269 test -n "$ac_ct_CC" && break 12270done 12271 12272 if test "x$ac_ct_CC" = x; then 12273 CC="" 12274 else 12275 case $cross_compiling:$ac_tool_warned in 12276yes:) 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12279ac_tool_warned=yes ;; 12280esac 12281 CC=$ac_ct_CC 12282 fi 12283fi 12284 12285fi 12286 12287 12288test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12290as_fn_error $? "no acceptable C compiler found in \$PATH 12291See \`config.log' for more details" "$LINENO" 5; } 12292 12293# Provide some information about the compiler. 12294$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12295set X $ac_compile 12296ac_compiler=$2 12297for ac_option in --version -v -V -qversion; do 12298 { { ac_try="$ac_compiler $ac_option >&5" 12299case "(($ac_try" in 12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12301 *) ac_try_echo=$ac_try;; 12302esac 12303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12304$as_echo "$ac_try_echo"; } >&5 12305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12306 ac_status=$? 12307 if test -s conftest.err; then 12308 sed '10a\ 12309... rest of stderr output deleted ... 12310 10q' conftest.err >conftest.er1 12311 cat conftest.er1 >&5 12312 fi 12313 rm -f conftest.er1 conftest.err 12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12315 test $ac_status = 0; } 12316done 12317 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12319$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12320if ${ac_cv_c_compiler_gnu+:} false; then : 12321 $as_echo_n "(cached) " >&6 12322else 12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12324/* end confdefs.h. */ 12325 12326int 12327main () 12328{ 12329#ifndef __GNUC__ 12330 choke me 12331#endif 12332 12333 ; 12334 return 0; 12335} 12336_ACEOF 12337if ac_fn_c_try_compile "$LINENO"; then : 12338 ac_compiler_gnu=yes 12339else 12340 ac_compiler_gnu=no 12341fi 12342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12343ac_cv_c_compiler_gnu=$ac_compiler_gnu 12344 12345fi 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12347$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12348if test $ac_compiler_gnu = yes; then 12349 GCC=yes 12350else 12351 GCC= 12352fi 12353ac_test_CFLAGS=${CFLAGS+set} 12354ac_save_CFLAGS=$CFLAGS 12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12356$as_echo_n "checking whether $CC accepts -g... " >&6; } 12357if ${ac_cv_prog_cc_g+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 ac_save_c_werror_flag=$ac_c_werror_flag 12361 ac_c_werror_flag=yes 12362 ac_cv_prog_cc_g=no 12363 CFLAGS="-g" 12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12365/* end confdefs.h. */ 12366 12367int 12368main () 12369{ 12370 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375if ac_fn_c_try_compile "$LINENO"; then : 12376 ac_cv_prog_cc_g=yes 12377else 12378 CFLAGS="" 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381 12382int 12383main () 12384{ 12385 12386 ; 12387 return 0; 12388} 12389_ACEOF 12390if ac_fn_c_try_compile "$LINENO"; then : 12391 12392else 12393 ac_c_werror_flag=$ac_save_c_werror_flag 12394 CFLAGS="-g" 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397 12398int 12399main () 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_compile "$LINENO"; then : 12407 ac_cv_prog_cc_g=yes 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410fi 12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12412fi 12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12414 ac_c_werror_flag=$ac_save_c_werror_flag 12415fi 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12417$as_echo "$ac_cv_prog_cc_g" >&6; } 12418if test "$ac_test_CFLAGS" = set; then 12419 CFLAGS=$ac_save_CFLAGS 12420elif test $ac_cv_prog_cc_g = yes; then 12421 if test "$GCC" = yes; then 12422 CFLAGS="-g -O2" 12423 else 12424 CFLAGS="-g" 12425 fi 12426else 12427 if test "$GCC" = yes; then 12428 CFLAGS="-O2" 12429 else 12430 CFLAGS= 12431 fi 12432fi 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12434$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12435if ${ac_cv_prog_cc_c89+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437else 12438 ac_cv_prog_cc_c89=no 12439ac_save_CC=$CC 12440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12441/* end confdefs.h. */ 12442#include <stdarg.h> 12443#include <stdio.h> 12444struct stat; 12445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12446struct buf { int x; }; 12447FILE * (*rcsopen) (struct buf *, struct stat *, int); 12448static char *e (p, i) 12449 char **p; 12450 int i; 12451{ 12452 return p[i]; 12453} 12454static char *f (char * (*g) (char **, int), char **p, ...) 12455{ 12456 char *s; 12457 va_list v; 12458 va_start (v,p); 12459 s = g (p, va_arg (v,int)); 12460 va_end (v); 12461 return s; 12462} 12463 12464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12465 function prototypes and stuff, but not '\xHH' hex character constants. 12466 These don't provoke an error unfortunately, instead are silently treated 12467 as 'x'. The following induces an error, until -std is added to get 12468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12469 array size at least. It's necessary to write '\x00'==0 to get something 12470 that's true only with -std. */ 12471int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12472 12473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12474 inside strings and character constants. */ 12475#define FOO(x) 'x' 12476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12477 12478int test (int i, double x); 12479struct s1 {int (*f) (int a);}; 12480struct s2 {int (*f) (double a);}; 12481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12482int argc; 12483char **argv; 12484int 12485main () 12486{ 12487return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12494do 12495 CC="$ac_save_CC $ac_arg" 12496 if ac_fn_c_try_compile "$LINENO"; then : 12497 ac_cv_prog_cc_c89=$ac_arg 12498fi 12499rm -f core conftest.err conftest.$ac_objext 12500 test "x$ac_cv_prog_cc_c89" != "xno" && break 12501done 12502rm -f conftest.$ac_ext 12503CC=$ac_save_CC 12504 12505fi 12506# AC_CACHE_VAL 12507case "x$ac_cv_prog_cc_c89" in 12508 x) 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12510$as_echo "none needed" >&6; } ;; 12511 xno) 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12513$as_echo "unsupported" >&6; } ;; 12514 *) 12515 CC="$CC $ac_cv_prog_cc_c89" 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12518esac 12519if test "x$ac_cv_prog_cc_c89" != xno; then : 12520 12521fi 12522 12523ac_ext=c 12524ac_cpp='$CPP $CPPFLAGS' 12525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12527ac_compiler_gnu=$ac_cv_c_compiler_gnu 12528 12529ac_ext=c 12530ac_cpp='$CPP $CPPFLAGS' 12531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12533ac_compiler_gnu=$ac_cv_c_compiler_gnu 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12535$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12536if ${am_cv_prog_cc_c_o+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542int 12543main () 12544{ 12545 12546 ; 12547 return 0; 12548} 12549_ACEOF 12550 # Make sure it works both with $CC and with simple cc. 12551 # Following AC_PROG_CC_C_O, we do the test twice because some 12552 # compilers refuse to overwrite an existing .o file with -o, 12553 # though they will create one. 12554 am_cv_prog_cc_c_o=yes 12555 for am_i in 1 2; do 12556 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12557 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12558 ac_status=$? 12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12560 (exit $ac_status); } \ 12561 && test -f conftest2.$ac_objext; then 12562 : OK 12563 else 12564 am_cv_prog_cc_c_o=no 12565 break 12566 fi 12567 done 12568 rm -f core conftest* 12569 unset am_i 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12572$as_echo "$am_cv_prog_cc_c_o" >&6; } 12573if test "$am_cv_prog_cc_c_o" != yes; then 12574 # Losing compiler, so override with the script. 12575 # FIXME: It is wrong to rewrite CC. 12576 # But if we don't then we get into trouble of one sort or another. 12577 # A longer-term fix would be to have automake use am__CC in this case, 12578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12579 CC="$am_aux_dir/compile $CC" 12580fi 12581ac_ext=c 12582ac_cpp='$CPP $CPPFLAGS' 12583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12585ac_compiler_gnu=$ac_cv_c_compiler_gnu 12586 12587 12588depcc="$CC" am_compiler_list= 12589 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12591$as_echo_n "checking dependency style of $depcc... " >&6; } 12592if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12593 $as_echo_n "(cached) " >&6 12594else 12595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12596 # We make a subdir and do the tests there. Otherwise we can end up 12597 # making bogus files that we don't know about and never remove. For 12598 # instance it was reported that on HP-UX the gcc test will end up 12599 # making a dummy file named 'D' -- because '-MD' means "put the output 12600 # in D". 12601 rm -rf conftest.dir 12602 mkdir conftest.dir 12603 # Copy depcomp to subdir because otherwise we won't find it if we're 12604 # using a relative directory. 12605 cp "$am_depcomp" conftest.dir 12606 cd conftest.dir 12607 # We will build objects and dependencies in a subdirectory because 12608 # it helps to detect inapplicable dependency modes. For instance 12609 # both Tru64's cc and ICC support -MD to output dependencies as a 12610 # side effect of compilation, but ICC will put the dependencies in 12611 # the current directory while Tru64 will put them in the object 12612 # directory. 12613 mkdir sub 12614 12615 am_cv_CC_dependencies_compiler_type=none 12616 if test "$am_compiler_list" = ""; then 12617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12618 fi 12619 am__universal=false 12620 case " $depcc " in #( 12621 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12622 esac 12623 12624 for depmode in $am_compiler_list; do 12625 # Setup a source with many dependencies, because some compilers 12626 # like to wrap large dependency lists on column 80 (with \), and 12627 # we should not choose a depcomp mode which is confused by this. 12628 # 12629 # We need to recreate these files for each test, as the compiler may 12630 # overwrite some of them when testing with obscure command lines. 12631 # This happens at least with the AIX C compiler. 12632 : > sub/conftest.c 12633 for i in 1 2 3 4 5 6; do 12634 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12635 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12636 # Solaris 10 /bin/sh. 12637 echo '/* dummy */' > sub/conftst$i.h 12638 done 12639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12640 12641 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12642 # mode. It turns out that the SunPro C++ compiler does not properly 12643 # handle '-M -o', and we need to detect this. Also, some Intel 12644 # versions had trouble with output in subdirs. 12645 am__obj=sub/conftest.${OBJEXT-o} 12646 am__minus_obj="-o $am__obj" 12647 case $depmode in 12648 gcc) 12649 # This depmode causes a compiler race in universal mode. 12650 test "$am__universal" = false || continue 12651 ;; 12652 nosideeffect) 12653 # After this tag, mechanisms are not by side-effect, so they'll 12654 # only be used when explicitly requested. 12655 if test "x$enable_dependency_tracking" = xyes; then 12656 continue 12657 else 12658 break 12659 fi 12660 ;; 12661 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12662 # This compiler won't grok '-c -o', but also, the minuso test has 12663 # not run yet. These depmodes are late enough in the game, and 12664 # so weak that their functioning should not be impacted. 12665 am__obj=conftest.${OBJEXT-o} 12666 am__minus_obj= 12667 ;; 12668 none) break ;; 12669 esac 12670 if depmode=$depmode \ 12671 source=sub/conftest.c object=$am__obj \ 12672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12674 >/dev/null 2>conftest.err && 12675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12679 # icc doesn't choke on unknown options, it will just issue warnings 12680 # or remarks (even with -Werror). So we grep stderr for any message 12681 # that says an option was ignored or not supported. 12682 # When given -MP, icc 7.0 and 7.1 complain thusly: 12683 # icc: Command line warning: ignoring option '-M'; no argument required 12684 # The diagnosis changed in icc 8.0: 12685 # icc: Command line remark: option '-MP' not supported 12686 if (grep 'ignoring option' conftest.err || 12687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12688 am_cv_CC_dependencies_compiler_type=$depmode 12689 break 12690 fi 12691 fi 12692 done 12693 12694 cd .. 12695 rm -rf conftest.dir 12696else 12697 am_cv_CC_dependencies_compiler_type=none 12698fi 12699 12700fi 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12702$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12704 12705 if 12706 test "x$enable_dependency_tracking" != xno \ 12707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12708 am__fastdepCC_TRUE= 12709 am__fastdepCC_FALSE='#' 12710else 12711 am__fastdepCC_TRUE='#' 12712 am__fastdepCC_FALSE= 12713fi 12714 12715 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12717$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12718if ${ac_cv_prog_cc_c99+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720else 12721 ac_cv_prog_cc_c99=no 12722ac_save_CC=$CC 12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725#include <stdarg.h> 12726#include <stdbool.h> 12727#include <stdlib.h> 12728#include <wchar.h> 12729#include <stdio.h> 12730 12731// Check varargs macros. These examples are taken from C99 6.10.3.5. 12732#define debug(...) fprintf (stderr, __VA_ARGS__) 12733#define showlist(...) puts (#__VA_ARGS__) 12734#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12735static void 12736test_varargs_macros (void) 12737{ 12738 int x = 1234; 12739 int y = 5678; 12740 debug ("Flag"); 12741 debug ("X = %d\n", x); 12742 showlist (The first, second, and third items.); 12743 report (x>y, "x is %d but y is %d", x, y); 12744} 12745 12746// Check long long types. 12747#define BIG64 18446744073709551615ull 12748#define BIG32 4294967295ul 12749#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12750#if !BIG_OK 12751 your preprocessor is broken; 12752#endif 12753#if BIG_OK 12754#else 12755 your preprocessor is broken; 12756#endif 12757static long long int bignum = -9223372036854775807LL; 12758static unsigned long long int ubignum = BIG64; 12759 12760struct incomplete_array 12761{ 12762 int datasize; 12763 double data[]; 12764}; 12765 12766struct named_init { 12767 int number; 12768 const wchar_t *name; 12769 double average; 12770}; 12771 12772typedef const char *ccp; 12773 12774static inline int 12775test_restrict (ccp restrict text) 12776{ 12777 // See if C++-style comments work. 12778 // Iterate through items via the restricted pointer. 12779 // Also check for declarations in for loops. 12780 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12781 continue; 12782 return 0; 12783} 12784 12785// Check varargs and va_copy. 12786static void 12787test_varargs (const char *format, ...) 12788{ 12789 va_list args; 12790 va_start (args, format); 12791 va_list args_copy; 12792 va_copy (args_copy, args); 12793 12794 const char *str; 12795 int number; 12796 float fnumber; 12797 12798 while (*format) 12799 { 12800 switch (*format++) 12801 { 12802 case 's': // string 12803 str = va_arg (args_copy, const char *); 12804 break; 12805 case 'd': // int 12806 number = va_arg (args_copy, int); 12807 break; 12808 case 'f': // float 12809 fnumber = va_arg (args_copy, double); 12810 break; 12811 default: 12812 break; 12813 } 12814 } 12815 va_end (args_copy); 12816 va_end (args); 12817} 12818 12819int 12820main () 12821{ 12822 12823 // Check bool. 12824 _Bool success = false; 12825 12826 // Check restrict. 12827 if (test_restrict ("String literal") == 0) 12828 success = true; 12829 char *restrict newvar = "Another string"; 12830 12831 // Check varargs. 12832 test_varargs ("s, d' f .", "string", 65, 34.234); 12833 test_varargs_macros (); 12834 12835 // Check flexible array members. 12836 struct incomplete_array *ia = 12837 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12838 ia->datasize = 10; 12839 for (int i = 0; i < ia->datasize; ++i) 12840 ia->data[i] = i * 1.234; 12841 12842 // Check named initializers. 12843 struct named_init ni = { 12844 .number = 34, 12845 .name = L"Test wide string", 12846 .average = 543.34343, 12847 }; 12848 12849 ni.number = 58; 12850 12851 int dynamic_array[ni.number]; 12852 dynamic_array[ni.number - 1] = 543; 12853 12854 // work around unused variable warnings 12855 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12856 || dynamic_array[ni.number - 1] != 543); 12857 12858 ; 12859 return 0; 12860} 12861_ACEOF 12862for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12863do 12864 CC="$ac_save_CC $ac_arg" 12865 if ac_fn_c_try_compile "$LINENO"; then : 12866 ac_cv_prog_cc_c99=$ac_arg 12867fi 12868rm -f core conftest.err conftest.$ac_objext 12869 test "x$ac_cv_prog_cc_c99" != "xno" && break 12870done 12871rm -f conftest.$ac_ext 12872CC=$ac_save_CC 12873 12874fi 12875# AC_CACHE_VAL 12876case "x$ac_cv_prog_cc_c99" in 12877 x) 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12879$as_echo "none needed" >&6; } ;; 12880 xno) 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12882$as_echo "unsupported" >&6; } ;; 12883 *) 12884 CC="$CC $ac_cv_prog_cc_c99" 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12886$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12887esac 12888if test "x$ac_cv_prog_cc_c99" != xno; then : 12889 12890fi 12891 12892 12893 12894 12895 12896 12897ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12898if test "x$ac_cv_have_decl___clang__" = xyes; then : 12899 CLANGCC="yes" 12900else 12901 CLANGCC="no" 12902fi 12903 12904ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12905if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12906 INTELCC="yes" 12907else 12908 INTELCC="no" 12909fi 12910 12911ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12912if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12913 SUNCC="yes" 12914else 12915 SUNCC="no" 12916fi 12917 12918 12919 12920 12921 12922# Check whether --enable-selective-werror was given. 12923if test "${enable_selective_werror+set}" = set; then : 12924 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12925else 12926 SELECTIVE_WERROR=yes 12927fi 12928 12929 12930 12931 12932 12933# -v is too short to test reliably with XORG_TESTSET_CFLAG 12934if test "x$SUNCC" = "xyes"; then 12935 BASE_CFLAGS="-v" 12936else 12937 BASE_CFLAGS="" 12938fi 12939 12940# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954xorg_testset_save_CFLAGS="$CFLAGS" 12955 12956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965int i; 12966_ACEOF 12967if ac_fn_c_try_compile "$LINENO"; then : 12968 xorg_cv_cc_flag_unknown_warning_option=yes 12969else 12970 xorg_cv_cc_flag_unknown_warning_option=no 12971fi 12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12977 CFLAGS="$xorg_testset_save_CFLAGS" 12978fi 12979 12980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12983 fi 12984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12988 $as_echo_n "(cached) " >&6 12989else 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992int i; 12993_ACEOF 12994if ac_fn_c_try_compile "$LINENO"; then : 12995 xorg_cv_cc_flag_unused_command_line_argument=yes 12996else 12997 xorg_cv_cc_flag_unused_command_line_argument=no 12998fi 12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13000fi 13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13004 CFLAGS="$xorg_testset_save_CFLAGS" 13005fi 13006 13007found="no" 13008 13009 if test $found = "no" ; then 13010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13012 fi 13013 13014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13016 fi 13017 13018 CFLAGS="$CFLAGS -Wall" 13019 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13021$as_echo_n "checking if $CC supports -Wall... " >&6; } 13022 cacheid=xorg_cv_cc_flag__Wall 13023 if eval \${$cacheid+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028int i; 13029int 13030main () 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037if ac_fn_c_try_link "$LINENO"; then : 13038 eval $cacheid=yes 13039else 13040 eval $cacheid=no 13041fi 13042rm -f core conftest.err conftest.$ac_objext \ 13043 conftest$ac_exeext conftest.$ac_ext 13044fi 13045 13046 13047 CFLAGS="$xorg_testset_save_CFLAGS" 13048 13049 eval supported=\$$cacheid 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13051$as_echo "$supported" >&6; } 13052 if test "$supported" = "yes" ; then 13053 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13054 found="yes" 13055 fi 13056 fi 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072xorg_testset_save_CFLAGS="$CFLAGS" 13073 13074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083int i; 13084_ACEOF 13085if ac_fn_c_try_compile "$LINENO"; then : 13086 xorg_cv_cc_flag_unknown_warning_option=yes 13087else 13088 xorg_cv_cc_flag_unknown_warning_option=no 13089fi 13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13091fi 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13095 CFLAGS="$xorg_testset_save_CFLAGS" 13096fi 13097 13098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 fi 13102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110int i; 13111_ACEOF 13112if ac_fn_c_try_compile "$LINENO"; then : 13113 xorg_cv_cc_flag_unused_command_line_argument=yes 13114else 13115 xorg_cv_cc_flag_unused_command_line_argument=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13122 CFLAGS="$xorg_testset_save_CFLAGS" 13123fi 13124 13125found="no" 13126 13127 if test $found = "no" ; then 13128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13130 fi 13131 13132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13134 fi 13135 13136 CFLAGS="$CFLAGS -Wpointer-arith" 13137 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13139$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13140 cacheid=xorg_cv_cc_flag__Wpointer_arith 13141 if eval \${$cacheid+:} false; then : 13142 $as_echo_n "(cached) " >&6 13143else 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146int i; 13147int 13148main () 13149{ 13150 13151 ; 13152 return 0; 13153} 13154_ACEOF 13155if ac_fn_c_try_link "$LINENO"; then : 13156 eval $cacheid=yes 13157else 13158 eval $cacheid=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162fi 13163 13164 13165 CFLAGS="$xorg_testset_save_CFLAGS" 13166 13167 eval supported=\$$cacheid 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13169$as_echo "$supported" >&6; } 13170 if test "$supported" = "yes" ; then 13171 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13172 found="yes" 13173 fi 13174 fi 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190xorg_testset_save_CFLAGS="$CFLAGS" 13191 13192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201int i; 13202_ACEOF 13203if ac_fn_c_try_compile "$LINENO"; then : 13204 xorg_cv_cc_flag_unknown_warning_option=yes 13205else 13206 xorg_cv_cc_flag_unknown_warning_option=no 13207fi 13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13209fi 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13213 CFLAGS="$xorg_testset_save_CFLAGS" 13214fi 13215 13216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13219 fi 13220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228int i; 13229_ACEOF 13230if ac_fn_c_try_compile "$LINENO"; then : 13231 xorg_cv_cc_flag_unused_command_line_argument=yes 13232else 13233 xorg_cv_cc_flag_unused_command_line_argument=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236fi 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13240 CFLAGS="$xorg_testset_save_CFLAGS" 13241fi 13242 13243found="no" 13244 13245 if test $found = "no" ; then 13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13248 fi 13249 13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13252 fi 13253 13254 CFLAGS="$CFLAGS -Wmissing-declarations" 13255 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13257$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13258 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13259 if eval \${$cacheid+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264int i; 13265int 13266main () 13267{ 13268 13269 ; 13270 return 0; 13271} 13272_ACEOF 13273if ac_fn_c_try_link "$LINENO"; then : 13274 eval $cacheid=yes 13275else 13276 eval $cacheid=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280fi 13281 13282 13283 CFLAGS="$xorg_testset_save_CFLAGS" 13284 13285 eval supported=\$$cacheid 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13287$as_echo "$supported" >&6; } 13288 if test "$supported" = "yes" ; then 13289 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13290 found="yes" 13291 fi 13292 fi 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308xorg_testset_save_CFLAGS="$CFLAGS" 13309 13310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13315 $as_echo_n "(cached) " >&6 13316else 13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13318/* end confdefs.h. */ 13319int i; 13320_ACEOF 13321if ac_fn_c_try_compile "$LINENO"; then : 13322 xorg_cv_cc_flag_unknown_warning_option=yes 13323else 13324 xorg_cv_cc_flag_unknown_warning_option=no 13325fi 13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13327fi 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13331 CFLAGS="$xorg_testset_save_CFLAGS" 13332fi 13333 13334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13337 fi 13338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346int i; 13347_ACEOF 13348if ac_fn_c_try_compile "$LINENO"; then : 13349 xorg_cv_cc_flag_unused_command_line_argument=yes 13350else 13351 xorg_cv_cc_flag_unused_command_line_argument=no 13352fi 13353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13358 CFLAGS="$xorg_testset_save_CFLAGS" 13359fi 13360 13361found="no" 13362 13363 if test $found = "no" ; then 13364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13366 fi 13367 13368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13370 fi 13371 13372 CFLAGS="$CFLAGS -Wformat=2" 13373 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13375$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13376 cacheid=xorg_cv_cc_flag__Wformat_2 13377 if eval \${$cacheid+:} false; then : 13378 $as_echo_n "(cached) " >&6 13379else 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382int i; 13383int 13384main () 13385{ 13386 13387 ; 13388 return 0; 13389} 13390_ACEOF 13391if ac_fn_c_try_link "$LINENO"; then : 13392 eval $cacheid=yes 13393else 13394 eval $cacheid=no 13395fi 13396rm -f core conftest.err conftest.$ac_objext \ 13397 conftest$ac_exeext conftest.$ac_ext 13398fi 13399 13400 13401 CFLAGS="$xorg_testset_save_CFLAGS" 13402 13403 eval supported=\$$cacheid 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13405$as_echo "$supported" >&6; } 13406 if test "$supported" = "yes" ; then 13407 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13408 found="yes" 13409 fi 13410 fi 13411 13412 if test $found = "no" ; then 13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13415 fi 13416 13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13419 fi 13420 13421 CFLAGS="$CFLAGS -Wformat" 13422 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13424$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13425 cacheid=xorg_cv_cc_flag__Wformat 13426 if eval \${$cacheid+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431int i; 13432int 13433main () 13434{ 13435 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_c_try_link "$LINENO"; then : 13441 eval $cacheid=yes 13442else 13443 eval $cacheid=no 13444fi 13445rm -f core conftest.err conftest.$ac_objext \ 13446 conftest$ac_exeext conftest.$ac_ext 13447fi 13448 13449 13450 CFLAGS="$xorg_testset_save_CFLAGS" 13451 13452 eval supported=\$$cacheid 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13454$as_echo "$supported" >&6; } 13455 if test "$supported" = "yes" ; then 13456 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13457 found="yes" 13458 fi 13459 fi 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477xorg_testset_save_CFLAGS="$CFLAGS" 13478 13479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488int i; 13489_ACEOF 13490if ac_fn_c_try_compile "$LINENO"; then : 13491 xorg_cv_cc_flag_unknown_warning_option=yes 13492else 13493 xorg_cv_cc_flag_unknown_warning_option=no 13494fi 13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13496fi 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13500 CFLAGS="$xorg_testset_save_CFLAGS" 13501fi 13502 13503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13506 fi 13507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515int i; 13516_ACEOF 13517if ac_fn_c_try_compile "$LINENO"; then : 13518 xorg_cv_cc_flag_unused_command_line_argument=yes 13519else 13520 xorg_cv_cc_flag_unused_command_line_argument=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13523fi 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13527 CFLAGS="$xorg_testset_save_CFLAGS" 13528fi 13529 13530found="no" 13531 13532 if test $found = "no" ; then 13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 fi 13536 13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13539 fi 13540 13541 CFLAGS="$CFLAGS -Wstrict-prototypes" 13542 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13544$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13545 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13546 if eval \${$cacheid+:} false; then : 13547 $as_echo_n "(cached) " >&6 13548else 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550/* end confdefs.h. */ 13551int i; 13552int 13553main () 13554{ 13555 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_link "$LINENO"; then : 13561 eval $cacheid=yes 13562else 13563 eval $cacheid=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext \ 13566 conftest$ac_exeext conftest.$ac_ext 13567fi 13568 13569 13570 CFLAGS="$xorg_testset_save_CFLAGS" 13571 13572 eval supported=\$$cacheid 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13574$as_echo "$supported" >&6; } 13575 if test "$supported" = "yes" ; then 13576 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13577 found="yes" 13578 fi 13579 fi 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595xorg_testset_save_CFLAGS="$CFLAGS" 13596 13597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13602 $as_echo_n "(cached) " >&6 13603else 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606int i; 13607_ACEOF 13608if ac_fn_c_try_compile "$LINENO"; then : 13609 xorg_cv_cc_flag_unknown_warning_option=yes 13610else 13611 xorg_cv_cc_flag_unknown_warning_option=no 13612fi 13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13614fi 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13618 CFLAGS="$xorg_testset_save_CFLAGS" 13619fi 13620 13621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13624 fi 13625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13629 $as_echo_n "(cached) " >&6 13630else 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633int i; 13634_ACEOF 13635if ac_fn_c_try_compile "$LINENO"; then : 13636 xorg_cv_cc_flag_unused_command_line_argument=yes 13637else 13638 xorg_cv_cc_flag_unused_command_line_argument=no 13639fi 13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13641fi 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13645 CFLAGS="$xorg_testset_save_CFLAGS" 13646fi 13647 13648found="no" 13649 13650 if test $found = "no" ; then 13651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13653 fi 13654 13655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13657 fi 13658 13659 CFLAGS="$CFLAGS -Wmissing-prototypes" 13660 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13662$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13663 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13664 if eval \${$cacheid+:} false; then : 13665 $as_echo_n "(cached) " >&6 13666else 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669int i; 13670int 13671main () 13672{ 13673 13674 ; 13675 return 0; 13676} 13677_ACEOF 13678if ac_fn_c_try_link "$LINENO"; then : 13679 eval $cacheid=yes 13680else 13681 eval $cacheid=no 13682fi 13683rm -f core conftest.err conftest.$ac_objext \ 13684 conftest$ac_exeext conftest.$ac_ext 13685fi 13686 13687 13688 CFLAGS="$xorg_testset_save_CFLAGS" 13689 13690 eval supported=\$$cacheid 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13692$as_echo "$supported" >&6; } 13693 if test "$supported" = "yes" ; then 13694 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13695 found="yes" 13696 fi 13697 fi 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713xorg_testset_save_CFLAGS="$CFLAGS" 13714 13715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13720 $as_echo_n "(cached) " >&6 13721else 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724int i; 13725_ACEOF 13726if ac_fn_c_try_compile "$LINENO"; then : 13727 xorg_cv_cc_flag_unknown_warning_option=yes 13728else 13729 xorg_cv_cc_flag_unknown_warning_option=no 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13732fi 13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13736 CFLAGS="$xorg_testset_save_CFLAGS" 13737fi 13738 13739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13742 fi 13743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13747 $as_echo_n "(cached) " >&6 13748else 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751int i; 13752_ACEOF 13753if ac_fn_c_try_compile "$LINENO"; then : 13754 xorg_cv_cc_flag_unused_command_line_argument=yes 13755else 13756 xorg_cv_cc_flag_unused_command_line_argument=no 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759fi 13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13763 CFLAGS="$xorg_testset_save_CFLAGS" 13764fi 13765 13766found="no" 13767 13768 if test $found = "no" ; then 13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13771 fi 13772 13773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13775 fi 13776 13777 CFLAGS="$CFLAGS -Wnested-externs" 13778 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13780$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13781 cacheid=xorg_cv_cc_flag__Wnested_externs 13782 if eval \${$cacheid+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13786/* end confdefs.h. */ 13787int i; 13788int 13789main () 13790{ 13791 13792 ; 13793 return 0; 13794} 13795_ACEOF 13796if ac_fn_c_try_link "$LINENO"; then : 13797 eval $cacheid=yes 13798else 13799 eval $cacheid=no 13800fi 13801rm -f core conftest.err conftest.$ac_objext \ 13802 conftest$ac_exeext conftest.$ac_ext 13803fi 13804 13805 13806 CFLAGS="$xorg_testset_save_CFLAGS" 13807 13808 eval supported=\$$cacheid 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13810$as_echo "$supported" >&6; } 13811 if test "$supported" = "yes" ; then 13812 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13813 found="yes" 13814 fi 13815 fi 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831xorg_testset_save_CFLAGS="$CFLAGS" 13832 13833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13838 $as_echo_n "(cached) " >&6 13839else 13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13841/* end confdefs.h. */ 13842int i; 13843_ACEOF 13844if ac_fn_c_try_compile "$LINENO"; then : 13845 xorg_cv_cc_flag_unknown_warning_option=yes 13846else 13847 xorg_cv_cc_flag_unknown_warning_option=no 13848fi 13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13850fi 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13854 CFLAGS="$xorg_testset_save_CFLAGS" 13855fi 13856 13857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13860 fi 13861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13865 $as_echo_n "(cached) " >&6 13866else 13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13868/* end confdefs.h. */ 13869int i; 13870_ACEOF 13871if ac_fn_c_try_compile "$LINENO"; then : 13872 xorg_cv_cc_flag_unused_command_line_argument=yes 13873else 13874 xorg_cv_cc_flag_unused_command_line_argument=no 13875fi 13876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13877fi 13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13881 CFLAGS="$xorg_testset_save_CFLAGS" 13882fi 13883 13884found="no" 13885 13886 if test $found = "no" ; then 13887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13889 fi 13890 13891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13893 fi 13894 13895 CFLAGS="$CFLAGS -Wbad-function-cast" 13896 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13898$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13899 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13900 if eval \${$cacheid+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904/* end confdefs.h. */ 13905int i; 13906int 13907main () 13908{ 13909 13910 ; 13911 return 0; 13912} 13913_ACEOF 13914if ac_fn_c_try_link "$LINENO"; then : 13915 eval $cacheid=yes 13916else 13917 eval $cacheid=no 13918fi 13919rm -f core conftest.err conftest.$ac_objext \ 13920 conftest$ac_exeext conftest.$ac_ext 13921fi 13922 13923 13924 CFLAGS="$xorg_testset_save_CFLAGS" 13925 13926 eval supported=\$$cacheid 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13928$as_echo "$supported" >&6; } 13929 if test "$supported" = "yes" ; then 13930 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13931 found="yes" 13932 fi 13933 fi 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949xorg_testset_save_CFLAGS="$CFLAGS" 13950 13951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13956 $as_echo_n "(cached) " >&6 13957else 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13959/* end confdefs.h. */ 13960int i; 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO"; then : 13963 xorg_cv_cc_flag_unknown_warning_option=yes 13964else 13965 xorg_cv_cc_flag_unknown_warning_option=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13968fi 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13978 fi 13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987int i; 13988_ACEOF 13989if ac_fn_c_try_compile "$LINENO"; then : 13990 xorg_cv_cc_flag_unused_command_line_argument=yes 13991else 13992 xorg_cv_cc_flag_unused_command_line_argument=no 13993fi 13994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13995fi 13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13999 CFLAGS="$xorg_testset_save_CFLAGS" 14000fi 14001 14002found="no" 14003 14004 if test $found = "no" ; then 14005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14007 fi 14008 14009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14011 fi 14012 14013 CFLAGS="$CFLAGS -Wold-style-definition" 14014 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14016$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 14017 cacheid=xorg_cv_cc_flag__Wold_style_definition 14018 if eval \${$cacheid+:} false; then : 14019 $as_echo_n "(cached) " >&6 14020else 14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14022/* end confdefs.h. */ 14023int i; 14024int 14025main () 14026{ 14027 14028 ; 14029 return 0; 14030} 14031_ACEOF 14032if ac_fn_c_try_link "$LINENO"; then : 14033 eval $cacheid=yes 14034else 14035 eval $cacheid=no 14036fi 14037rm -f core conftest.err conftest.$ac_objext \ 14038 conftest$ac_exeext conftest.$ac_ext 14039fi 14040 14041 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043 14044 eval supported=\$$cacheid 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14046$as_echo "$supported" >&6; } 14047 if test "$supported" = "yes" ; then 14048 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14049 found="yes" 14050 fi 14051 fi 14052 14053 if test $found = "no" ; then 14054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14056 fi 14057 14058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14060 fi 14061 14062 CFLAGS="$CFLAGS -fd" 14063 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14065$as_echo_n "checking if $CC supports -fd... " >&6; } 14066 cacheid=xorg_cv_cc_flag__fd 14067 if eval \${$cacheid+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14071/* end confdefs.h. */ 14072int i; 14073int 14074main () 14075{ 14076 14077 ; 14078 return 0; 14079} 14080_ACEOF 14081if ac_fn_c_try_link "$LINENO"; then : 14082 eval $cacheid=yes 14083else 14084 eval $cacheid=no 14085fi 14086rm -f core conftest.err conftest.$ac_objext \ 14087 conftest$ac_exeext conftest.$ac_ext 14088fi 14089 14090 14091 CFLAGS="$xorg_testset_save_CFLAGS" 14092 14093 eval supported=\$$cacheid 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14095$as_echo "$supported" >&6; } 14096 if test "$supported" = "yes" ; then 14097 BASE_CFLAGS="$BASE_CFLAGS -fd" 14098 found="yes" 14099 fi 14100 fi 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116xorg_testset_save_CFLAGS="$CFLAGS" 14117 14118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128_ACEOF 14129if ac_fn_c_try_compile "$LINENO"; then : 14130 xorg_cv_cc_flag_unknown_warning_option=yes 14131else 14132 xorg_cv_cc_flag_unknown_warning_option=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14139 CFLAGS="$xorg_testset_save_CFLAGS" 14140fi 14141 14142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14145 fi 14146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151else 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14153/* end confdefs.h. */ 14154int i; 14155_ACEOF 14156if ac_fn_c_try_compile "$LINENO"; then : 14157 xorg_cv_cc_flag_unused_command_line_argument=yes 14158else 14159 xorg_cv_cc_flag_unused_command_line_argument=no 14160fi 14161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14162fi 14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14166 CFLAGS="$xorg_testset_save_CFLAGS" 14167fi 14168 14169found="no" 14170 14171 if test $found = "no" ; then 14172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14174 fi 14175 14176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14178 fi 14179 14180 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14181 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14183$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14184 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14185 if eval \${$cacheid+:} false; then : 14186 $as_echo_n "(cached) " >&6 14187else 14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14189/* end confdefs.h. */ 14190int i; 14191int 14192main () 14193{ 14194 14195 ; 14196 return 0; 14197} 14198_ACEOF 14199if ac_fn_c_try_link "$LINENO"; then : 14200 eval $cacheid=yes 14201else 14202 eval $cacheid=no 14203fi 14204rm -f core conftest.err conftest.$ac_objext \ 14205 conftest$ac_exeext conftest.$ac_ext 14206fi 14207 14208 14209 CFLAGS="$xorg_testset_save_CFLAGS" 14210 14211 eval supported=\$$cacheid 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14213$as_echo "$supported" >&6; } 14214 if test "$supported" = "yes" ; then 14215 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14216 found="yes" 14217 fi 14218 fi 14219 14220 14221 14222 14223 14224# This chunk adds additional warnings that could catch undesired effects. 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238xorg_testset_save_CFLAGS="$CFLAGS" 14239 14240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14245 $as_echo_n "(cached) " >&6 14246else 14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14248/* end confdefs.h. */ 14249int i; 14250_ACEOF 14251if ac_fn_c_try_compile "$LINENO"; then : 14252 xorg_cv_cc_flag_unknown_warning_option=yes 14253else 14254 xorg_cv_cc_flag_unknown_warning_option=no 14255fi 14256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14257fi 14258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14261 CFLAGS="$xorg_testset_save_CFLAGS" 14262fi 14263 14264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14267 fi 14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14272 $as_echo_n "(cached) " >&6 14273else 14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14275/* end confdefs.h. */ 14276int i; 14277_ACEOF 14278if ac_fn_c_try_compile "$LINENO"; then : 14279 xorg_cv_cc_flag_unused_command_line_argument=yes 14280else 14281 xorg_cv_cc_flag_unused_command_line_argument=no 14282fi 14283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14284fi 14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14288 CFLAGS="$xorg_testset_save_CFLAGS" 14289fi 14290 14291found="no" 14292 14293 if test $found = "no" ; then 14294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14296 fi 14297 14298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14300 fi 14301 14302 CFLAGS="$CFLAGS -Wunused" 14303 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14305$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14306 cacheid=xorg_cv_cc_flag__Wunused 14307 if eval \${$cacheid+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312int i; 14313int 14314main () 14315{ 14316 14317 ; 14318 return 0; 14319} 14320_ACEOF 14321if ac_fn_c_try_link "$LINENO"; then : 14322 eval $cacheid=yes 14323else 14324 eval $cacheid=no 14325fi 14326rm -f core conftest.err conftest.$ac_objext \ 14327 conftest$ac_exeext conftest.$ac_ext 14328fi 14329 14330 14331 CFLAGS="$xorg_testset_save_CFLAGS" 14332 14333 eval supported=\$$cacheid 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14335$as_echo "$supported" >&6; } 14336 if test "$supported" = "yes" ; then 14337 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14338 found="yes" 14339 fi 14340 fi 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356xorg_testset_save_CFLAGS="$CFLAGS" 14357 14358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14363 $as_echo_n "(cached) " >&6 14364else 14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366/* end confdefs.h. */ 14367int i; 14368_ACEOF 14369if ac_fn_c_try_compile "$LINENO"; then : 14370 xorg_cv_cc_flag_unknown_warning_option=yes 14371else 14372 xorg_cv_cc_flag_unknown_warning_option=no 14373fi 14374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14375fi 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14379 CFLAGS="$xorg_testset_save_CFLAGS" 14380fi 14381 14382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14385 fi 14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14390 $as_echo_n "(cached) " >&6 14391else 14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14393/* end confdefs.h. */ 14394int i; 14395_ACEOF 14396if ac_fn_c_try_compile "$LINENO"; then : 14397 xorg_cv_cc_flag_unused_command_line_argument=yes 14398else 14399 xorg_cv_cc_flag_unused_command_line_argument=no 14400fi 14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14402fi 14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14406 CFLAGS="$xorg_testset_save_CFLAGS" 14407fi 14408 14409found="no" 14410 14411 if test $found = "no" ; then 14412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14414 fi 14415 14416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14418 fi 14419 14420 CFLAGS="$CFLAGS -Wuninitialized" 14421 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14423$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14424 cacheid=xorg_cv_cc_flag__Wuninitialized 14425 if eval \${$cacheid+:} false; then : 14426 $as_echo_n "(cached) " >&6 14427else 14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14429/* end confdefs.h. */ 14430int i; 14431int 14432main () 14433{ 14434 14435 ; 14436 return 0; 14437} 14438_ACEOF 14439if ac_fn_c_try_link "$LINENO"; then : 14440 eval $cacheid=yes 14441else 14442 eval $cacheid=no 14443fi 14444rm -f core conftest.err conftest.$ac_objext \ 14445 conftest$ac_exeext conftest.$ac_ext 14446fi 14447 14448 14449 CFLAGS="$xorg_testset_save_CFLAGS" 14450 14451 eval supported=\$$cacheid 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14453$as_echo "$supported" >&6; } 14454 if test "$supported" = "yes" ; then 14455 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14456 found="yes" 14457 fi 14458 fi 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474xorg_testset_save_CFLAGS="$CFLAGS" 14475 14476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14481 $as_echo_n "(cached) " >&6 14482else 14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14484/* end confdefs.h. */ 14485int i; 14486_ACEOF 14487if ac_fn_c_try_compile "$LINENO"; then : 14488 xorg_cv_cc_flag_unknown_warning_option=yes 14489else 14490 xorg_cv_cc_flag_unknown_warning_option=no 14491fi 14492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14493fi 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14497 CFLAGS="$xorg_testset_save_CFLAGS" 14498fi 14499 14500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14503 fi 14504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14508 $as_echo_n "(cached) " >&6 14509else 14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14511/* end confdefs.h. */ 14512int i; 14513_ACEOF 14514if ac_fn_c_try_compile "$LINENO"; then : 14515 xorg_cv_cc_flag_unused_command_line_argument=yes 14516else 14517 xorg_cv_cc_flag_unused_command_line_argument=no 14518fi 14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14520fi 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14524 CFLAGS="$xorg_testset_save_CFLAGS" 14525fi 14526 14527found="no" 14528 14529 if test $found = "no" ; then 14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14532 fi 14533 14534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14536 fi 14537 14538 CFLAGS="$CFLAGS -Wshadow" 14539 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14541$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14542 cacheid=xorg_cv_cc_flag__Wshadow 14543 if eval \${$cacheid+:} false; then : 14544 $as_echo_n "(cached) " >&6 14545else 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548int i; 14549int 14550main () 14551{ 14552 14553 ; 14554 return 0; 14555} 14556_ACEOF 14557if ac_fn_c_try_link "$LINENO"; then : 14558 eval $cacheid=yes 14559else 14560 eval $cacheid=no 14561fi 14562rm -f core conftest.err conftest.$ac_objext \ 14563 conftest$ac_exeext conftest.$ac_ext 14564fi 14565 14566 14567 CFLAGS="$xorg_testset_save_CFLAGS" 14568 14569 eval supported=\$$cacheid 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14571$as_echo "$supported" >&6; } 14572 if test "$supported" = "yes" ; then 14573 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14574 found="yes" 14575 fi 14576 fi 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592xorg_testset_save_CFLAGS="$CFLAGS" 14593 14594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14602/* end confdefs.h. */ 14603int i; 14604_ACEOF 14605if ac_fn_c_try_compile "$LINENO"; then : 14606 xorg_cv_cc_flag_unknown_warning_option=yes 14607else 14608 xorg_cv_cc_flag_unknown_warning_option=no 14609fi 14610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14611fi 14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616fi 14617 14618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14626 $as_echo_n "(cached) " >&6 14627else 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630int i; 14631_ACEOF 14632if ac_fn_c_try_compile "$LINENO"; then : 14633 xorg_cv_cc_flag_unused_command_line_argument=yes 14634else 14635 xorg_cv_cc_flag_unused_command_line_argument=no 14636fi 14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14638fi 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643fi 14644 14645found="no" 14646 14647 if test $found = "no" ; then 14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14650 fi 14651 14652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14654 fi 14655 14656 CFLAGS="$CFLAGS -Wmissing-noreturn" 14657 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14659$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14660 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14661 if eval \${$cacheid+:} false; then : 14662 $as_echo_n "(cached) " >&6 14663else 14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665/* end confdefs.h. */ 14666int i; 14667int 14668main () 14669{ 14670 14671 ; 14672 return 0; 14673} 14674_ACEOF 14675if ac_fn_c_try_link "$LINENO"; then : 14676 eval $cacheid=yes 14677else 14678 eval $cacheid=no 14679fi 14680rm -f core conftest.err conftest.$ac_objext \ 14681 conftest$ac_exeext conftest.$ac_ext 14682fi 14683 14684 14685 CFLAGS="$xorg_testset_save_CFLAGS" 14686 14687 eval supported=\$$cacheid 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14689$as_echo "$supported" >&6; } 14690 if test "$supported" = "yes" ; then 14691 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14692 found="yes" 14693 fi 14694 fi 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710xorg_testset_save_CFLAGS="$CFLAGS" 14711 14712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14717 $as_echo_n "(cached) " >&6 14718else 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721int i; 14722_ACEOF 14723if ac_fn_c_try_compile "$LINENO"; then : 14724 xorg_cv_cc_flag_unknown_warning_option=yes 14725else 14726 xorg_cv_cc_flag_unknown_warning_option=no 14727fi 14728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14729fi 14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14733 CFLAGS="$xorg_testset_save_CFLAGS" 14734fi 14735 14736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14739 fi 14740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14744 $as_echo_n "(cached) " >&6 14745else 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747/* end confdefs.h. */ 14748int i; 14749_ACEOF 14750if ac_fn_c_try_compile "$LINENO"; then : 14751 xorg_cv_cc_flag_unused_command_line_argument=yes 14752else 14753 xorg_cv_cc_flag_unused_command_line_argument=no 14754fi 14755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14756fi 14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14760 CFLAGS="$xorg_testset_save_CFLAGS" 14761fi 14762 14763found="no" 14764 14765 if test $found = "no" ; then 14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14768 fi 14769 14770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14772 fi 14773 14774 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14775 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14777$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14778 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14779 if eval \${$cacheid+:} false; then : 14780 $as_echo_n "(cached) " >&6 14781else 14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784int i; 14785int 14786main () 14787{ 14788 14789 ; 14790 return 0; 14791} 14792_ACEOF 14793if ac_fn_c_try_link "$LINENO"; then : 14794 eval $cacheid=yes 14795else 14796 eval $cacheid=no 14797fi 14798rm -f core conftest.err conftest.$ac_objext \ 14799 conftest$ac_exeext conftest.$ac_ext 14800fi 14801 14802 14803 CFLAGS="$xorg_testset_save_CFLAGS" 14804 14805 eval supported=\$$cacheid 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14807$as_echo "$supported" >&6; } 14808 if test "$supported" = "yes" ; then 14809 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14810 found="yes" 14811 fi 14812 fi 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828xorg_testset_save_CFLAGS="$CFLAGS" 14829 14830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14835 $as_echo_n "(cached) " >&6 14836else 14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14838/* end confdefs.h. */ 14839int i; 14840_ACEOF 14841if ac_fn_c_try_compile "$LINENO"; then : 14842 xorg_cv_cc_flag_unknown_warning_option=yes 14843else 14844 xorg_cv_cc_flag_unknown_warning_option=no 14845fi 14846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14847fi 14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14851 CFLAGS="$xorg_testset_save_CFLAGS" 14852fi 14853 14854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14857 fi 14858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14862 $as_echo_n "(cached) " >&6 14863else 14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14865/* end confdefs.h. */ 14866int i; 14867_ACEOF 14868if ac_fn_c_try_compile "$LINENO"; then : 14869 xorg_cv_cc_flag_unused_command_line_argument=yes 14870else 14871 xorg_cv_cc_flag_unused_command_line_argument=no 14872fi 14873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14874fi 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14878 CFLAGS="$xorg_testset_save_CFLAGS" 14879fi 14880 14881found="no" 14882 14883 if test $found = "no" ; then 14884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14886 fi 14887 14888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14890 fi 14891 14892 CFLAGS="$CFLAGS -Wredundant-decls" 14893 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14895$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14896 cacheid=xorg_cv_cc_flag__Wredundant_decls 14897 if eval \${$cacheid+:} false; then : 14898 $as_echo_n "(cached) " >&6 14899else 14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14901/* end confdefs.h. */ 14902int i; 14903int 14904main () 14905{ 14906 14907 ; 14908 return 0; 14909} 14910_ACEOF 14911if ac_fn_c_try_link "$LINENO"; then : 14912 eval $cacheid=yes 14913else 14914 eval $cacheid=no 14915fi 14916rm -f core conftest.err conftest.$ac_objext \ 14917 conftest$ac_exeext conftest.$ac_ext 14918fi 14919 14920 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922 14923 eval supported=\$$cacheid 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14925$as_echo "$supported" >&6; } 14926 if test "$supported" = "yes" ; then 14927 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14928 found="yes" 14929 fi 14930 fi 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946xorg_testset_save_CFLAGS="$CFLAGS" 14947 14948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14953 $as_echo_n "(cached) " >&6 14954else 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957int i; 14958_ACEOF 14959if ac_fn_c_try_compile "$LINENO"; then : 14960 xorg_cv_cc_flag_unknown_warning_option=yes 14961else 14962 xorg_cv_cc_flag_unknown_warning_option=no 14963fi 14964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14965fi 14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14969 CFLAGS="$xorg_testset_save_CFLAGS" 14970fi 14971 14972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14975 fi 14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14980 $as_echo_n "(cached) " >&6 14981else 14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984int i; 14985_ACEOF 14986if ac_fn_c_try_compile "$LINENO"; then : 14987 xorg_cv_cc_flag_unused_command_line_argument=yes 14988else 14989 xorg_cv_cc_flag_unused_command_line_argument=no 14990fi 14991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14992fi 14993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14996 CFLAGS="$xorg_testset_save_CFLAGS" 14997fi 14998 14999found="no" 15000 15001 if test $found = "no" ; then 15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 fi 15005 15006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15008 fi 15009 15010 CFLAGS="$CFLAGS -Wlogical-op" 15011 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15013$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 15014 cacheid=xorg_cv_cc_flag__Wlogical_op 15015 if eval \${$cacheid+:} false; then : 15016 $as_echo_n "(cached) " >&6 15017else 15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15019/* end confdefs.h. */ 15020int i; 15021int 15022main () 15023{ 15024 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029if ac_fn_c_try_link "$LINENO"; then : 15030 eval $cacheid=yes 15031else 15032 eval $cacheid=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext \ 15035 conftest$ac_exeext conftest.$ac_ext 15036fi 15037 15038 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040 15041 eval supported=\$$cacheid 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15043$as_echo "$supported" >&6; } 15044 if test "$supported" = "yes" ; then 15045 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15046 found="yes" 15047 fi 15048 fi 15049 15050 15051 15052# These are currently disabled because they are noisy. They will be enabled 15053# in the future once the codebase is sufficiently modernized to silence 15054# them. For now, I don't want them to drown out the other warnings. 15055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15056# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15057# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15058 15059# Turn some warnings into errors, so we don't accidently get successful builds 15060# when there are problems that should be fixed. 15061 15062if test "x$SELECTIVE_WERROR" = "xyes" ; then 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076xorg_testset_save_CFLAGS="$CFLAGS" 15077 15078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15083 $as_echo_n "(cached) " >&6 15084else 15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15086/* end confdefs.h. */ 15087int i; 15088_ACEOF 15089if ac_fn_c_try_compile "$LINENO"; then : 15090 xorg_cv_cc_flag_unknown_warning_option=yes 15091else 15092 xorg_cv_cc_flag_unknown_warning_option=no 15093fi 15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15095fi 15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15099 CFLAGS="$xorg_testset_save_CFLAGS" 15100fi 15101 15102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15105 fi 15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114int i; 15115_ACEOF 15116if ac_fn_c_try_compile "$LINENO"; then : 15117 xorg_cv_cc_flag_unused_command_line_argument=yes 15118else 15119 xorg_cv_cc_flag_unused_command_line_argument=no 15120fi 15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15122fi 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15126 CFLAGS="$xorg_testset_save_CFLAGS" 15127fi 15128 15129found="no" 15130 15131 if test $found = "no" ; then 15132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15134 fi 15135 15136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15138 fi 15139 15140 CFLAGS="$CFLAGS -Werror=implicit" 15141 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15143$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15144 cacheid=xorg_cv_cc_flag__Werror_implicit 15145 if eval \${$cacheid+:} false; then : 15146 $as_echo_n "(cached) " >&6 15147else 15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15149/* end confdefs.h. */ 15150int i; 15151int 15152main () 15153{ 15154 15155 ; 15156 return 0; 15157} 15158_ACEOF 15159if ac_fn_c_try_link "$LINENO"; then : 15160 eval $cacheid=yes 15161else 15162 eval $cacheid=no 15163fi 15164rm -f core conftest.err conftest.$ac_objext \ 15165 conftest$ac_exeext conftest.$ac_ext 15166fi 15167 15168 15169 CFLAGS="$xorg_testset_save_CFLAGS" 15170 15171 eval supported=\$$cacheid 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15173$as_echo "$supported" >&6; } 15174 if test "$supported" = "yes" ; then 15175 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15176 found="yes" 15177 fi 15178 fi 15179 15180 if test $found = "no" ; then 15181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15183 fi 15184 15185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15187 fi 15188 15189 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15190 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15192$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15193 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15194 if eval \${$cacheid+:} false; then : 15195 $as_echo_n "(cached) " >&6 15196else 15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15198/* end confdefs.h. */ 15199int i; 15200int 15201main () 15202{ 15203 15204 ; 15205 return 0; 15206} 15207_ACEOF 15208if ac_fn_c_try_link "$LINENO"; then : 15209 eval $cacheid=yes 15210else 15211 eval $cacheid=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext \ 15214 conftest$ac_exeext conftest.$ac_ext 15215fi 15216 15217 15218 CFLAGS="$xorg_testset_save_CFLAGS" 15219 15220 eval supported=\$$cacheid 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15222$as_echo "$supported" >&6; } 15223 if test "$supported" = "yes" ; then 15224 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15225 found="yes" 15226 fi 15227 fi 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243xorg_testset_save_CFLAGS="$CFLAGS" 15244 15245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15250 $as_echo_n "(cached) " >&6 15251else 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254int i; 15255_ACEOF 15256if ac_fn_c_try_compile "$LINENO"; then : 15257 xorg_cv_cc_flag_unknown_warning_option=yes 15258else 15259 xorg_cv_cc_flag_unknown_warning_option=no 15260fi 15261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15266 CFLAGS="$xorg_testset_save_CFLAGS" 15267fi 15268 15269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15272 fi 15273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15277 $as_echo_n "(cached) " >&6 15278else 15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15280/* end confdefs.h. */ 15281int i; 15282_ACEOF 15283if ac_fn_c_try_compile "$LINENO"; then : 15284 xorg_cv_cc_flag_unused_command_line_argument=yes 15285else 15286 xorg_cv_cc_flag_unused_command_line_argument=no 15287fi 15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15289fi 15290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15293 CFLAGS="$xorg_testset_save_CFLAGS" 15294fi 15295 15296found="no" 15297 15298 if test $found = "no" ; then 15299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15301 fi 15302 15303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15305 fi 15306 15307 CFLAGS="$CFLAGS -Werror=nonnull" 15308 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15310$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15311 cacheid=xorg_cv_cc_flag__Werror_nonnull 15312 if eval \${$cacheid+:} false; then : 15313 $as_echo_n "(cached) " >&6 15314else 15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316/* end confdefs.h. */ 15317int i; 15318int 15319main () 15320{ 15321 15322 ; 15323 return 0; 15324} 15325_ACEOF 15326if ac_fn_c_try_link "$LINENO"; then : 15327 eval $cacheid=yes 15328else 15329 eval $cacheid=no 15330fi 15331rm -f core conftest.err conftest.$ac_objext \ 15332 conftest$ac_exeext conftest.$ac_ext 15333fi 15334 15335 15336 CFLAGS="$xorg_testset_save_CFLAGS" 15337 15338 eval supported=\$$cacheid 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15340$as_echo "$supported" >&6; } 15341 if test "$supported" = "yes" ; then 15342 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15343 found="yes" 15344 fi 15345 fi 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361xorg_testset_save_CFLAGS="$CFLAGS" 15362 15363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15368 $as_echo_n "(cached) " >&6 15369else 15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15371/* end confdefs.h. */ 15372int i; 15373_ACEOF 15374if ac_fn_c_try_compile "$LINENO"; then : 15375 xorg_cv_cc_flag_unknown_warning_option=yes 15376else 15377 xorg_cv_cc_flag_unknown_warning_option=no 15378fi 15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15380fi 15381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15384 CFLAGS="$xorg_testset_save_CFLAGS" 15385fi 15386 15387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15390 fi 15391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15395 $as_echo_n "(cached) " >&6 15396else 15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15398/* end confdefs.h. */ 15399int i; 15400_ACEOF 15401if ac_fn_c_try_compile "$LINENO"; then : 15402 xorg_cv_cc_flag_unused_command_line_argument=yes 15403else 15404 xorg_cv_cc_flag_unused_command_line_argument=no 15405fi 15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15407fi 15408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15411 CFLAGS="$xorg_testset_save_CFLAGS" 15412fi 15413 15414found="no" 15415 15416 if test $found = "no" ; then 15417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15419 fi 15420 15421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15423 fi 15424 15425 CFLAGS="$CFLAGS -Werror=init-self" 15426 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15428$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15429 cacheid=xorg_cv_cc_flag__Werror_init_self 15430 if eval \${$cacheid+:} false; then : 15431 $as_echo_n "(cached) " >&6 15432else 15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15434/* end confdefs.h. */ 15435int i; 15436int 15437main () 15438{ 15439 15440 ; 15441 return 0; 15442} 15443_ACEOF 15444if ac_fn_c_try_link "$LINENO"; then : 15445 eval $cacheid=yes 15446else 15447 eval $cacheid=no 15448fi 15449rm -f core conftest.err conftest.$ac_objext \ 15450 conftest$ac_exeext conftest.$ac_ext 15451fi 15452 15453 15454 CFLAGS="$xorg_testset_save_CFLAGS" 15455 15456 eval supported=\$$cacheid 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15458$as_echo "$supported" >&6; } 15459 if test "$supported" = "yes" ; then 15460 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15461 found="yes" 15462 fi 15463 fi 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479xorg_testset_save_CFLAGS="$CFLAGS" 15480 15481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15486 $as_echo_n "(cached) " >&6 15487else 15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490int i; 15491_ACEOF 15492if ac_fn_c_try_compile "$LINENO"; then : 15493 xorg_cv_cc_flag_unknown_warning_option=yes 15494else 15495 xorg_cv_cc_flag_unknown_warning_option=no 15496fi 15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15498fi 15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15502 CFLAGS="$xorg_testset_save_CFLAGS" 15503fi 15504 15505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15508 fi 15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15513 $as_echo_n "(cached) " >&6 15514else 15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15516/* end confdefs.h. */ 15517int i; 15518_ACEOF 15519if ac_fn_c_try_compile "$LINENO"; then : 15520 xorg_cv_cc_flag_unused_command_line_argument=yes 15521else 15522 xorg_cv_cc_flag_unused_command_line_argument=no 15523fi 15524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15525fi 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15529 CFLAGS="$xorg_testset_save_CFLAGS" 15530fi 15531 15532found="no" 15533 15534 if test $found = "no" ; then 15535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15537 fi 15538 15539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15541 fi 15542 15543 CFLAGS="$CFLAGS -Werror=main" 15544 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15546$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15547 cacheid=xorg_cv_cc_flag__Werror_main 15548 if eval \${$cacheid+:} false; then : 15549 $as_echo_n "(cached) " >&6 15550else 15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15552/* end confdefs.h. */ 15553int i; 15554int 15555main () 15556{ 15557 15558 ; 15559 return 0; 15560} 15561_ACEOF 15562if ac_fn_c_try_link "$LINENO"; then : 15563 eval $cacheid=yes 15564else 15565 eval $cacheid=no 15566fi 15567rm -f core conftest.err conftest.$ac_objext \ 15568 conftest$ac_exeext conftest.$ac_ext 15569fi 15570 15571 15572 CFLAGS="$xorg_testset_save_CFLAGS" 15573 15574 eval supported=\$$cacheid 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15576$as_echo "$supported" >&6; } 15577 if test "$supported" = "yes" ; then 15578 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15579 found="yes" 15580 fi 15581 fi 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597xorg_testset_save_CFLAGS="$CFLAGS" 15598 15599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15604 $as_echo_n "(cached) " >&6 15605else 15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15607/* end confdefs.h. */ 15608int i; 15609_ACEOF 15610if ac_fn_c_try_compile "$LINENO"; then : 15611 xorg_cv_cc_flag_unknown_warning_option=yes 15612else 15613 xorg_cv_cc_flag_unknown_warning_option=no 15614fi 15615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15616fi 15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15620 CFLAGS="$xorg_testset_save_CFLAGS" 15621fi 15622 15623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15626 fi 15627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15631 $as_echo_n "(cached) " >&6 15632else 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635int i; 15636_ACEOF 15637if ac_fn_c_try_compile "$LINENO"; then : 15638 xorg_cv_cc_flag_unused_command_line_argument=yes 15639else 15640 xorg_cv_cc_flag_unused_command_line_argument=no 15641fi 15642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15643fi 15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15647 CFLAGS="$xorg_testset_save_CFLAGS" 15648fi 15649 15650found="no" 15651 15652 if test $found = "no" ; then 15653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15655 fi 15656 15657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15659 fi 15660 15661 CFLAGS="$CFLAGS -Werror=missing-braces" 15662 15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15664$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15665 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15666 if eval \${$cacheid+:} false; then : 15667 $as_echo_n "(cached) " >&6 15668else 15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15670/* end confdefs.h. */ 15671int i; 15672int 15673main () 15674{ 15675 15676 ; 15677 return 0; 15678} 15679_ACEOF 15680if ac_fn_c_try_link "$LINENO"; then : 15681 eval $cacheid=yes 15682else 15683 eval $cacheid=no 15684fi 15685rm -f core conftest.err conftest.$ac_objext \ 15686 conftest$ac_exeext conftest.$ac_ext 15687fi 15688 15689 15690 CFLAGS="$xorg_testset_save_CFLAGS" 15691 15692 eval supported=\$$cacheid 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15694$as_echo "$supported" >&6; } 15695 if test "$supported" = "yes" ; then 15696 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15697 found="yes" 15698 fi 15699 fi 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715xorg_testset_save_CFLAGS="$CFLAGS" 15716 15717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15722 $as_echo_n "(cached) " >&6 15723else 15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726int i; 15727_ACEOF 15728if ac_fn_c_try_compile "$LINENO"; then : 15729 xorg_cv_cc_flag_unknown_warning_option=yes 15730else 15731 xorg_cv_cc_flag_unknown_warning_option=no 15732fi 15733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15734fi 15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15738 CFLAGS="$xorg_testset_save_CFLAGS" 15739fi 15740 15741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15744 fi 15745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15749 $as_echo_n "(cached) " >&6 15750else 15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15752/* end confdefs.h. */ 15753int i; 15754_ACEOF 15755if ac_fn_c_try_compile "$LINENO"; then : 15756 xorg_cv_cc_flag_unused_command_line_argument=yes 15757else 15758 xorg_cv_cc_flag_unused_command_line_argument=no 15759fi 15760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15761fi 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15765 CFLAGS="$xorg_testset_save_CFLAGS" 15766fi 15767 15768found="no" 15769 15770 if test $found = "no" ; then 15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15773 fi 15774 15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15777 fi 15778 15779 CFLAGS="$CFLAGS -Werror=sequence-point" 15780 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15782$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15783 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15784 if eval \${$cacheid+:} false; then : 15785 $as_echo_n "(cached) " >&6 15786else 15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15788/* end confdefs.h. */ 15789int i; 15790int 15791main () 15792{ 15793 15794 ; 15795 return 0; 15796} 15797_ACEOF 15798if ac_fn_c_try_link "$LINENO"; then : 15799 eval $cacheid=yes 15800else 15801 eval $cacheid=no 15802fi 15803rm -f core conftest.err conftest.$ac_objext \ 15804 conftest$ac_exeext conftest.$ac_ext 15805fi 15806 15807 15808 CFLAGS="$xorg_testset_save_CFLAGS" 15809 15810 eval supported=\$$cacheid 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15812$as_echo "$supported" >&6; } 15813 if test "$supported" = "yes" ; then 15814 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15815 found="yes" 15816 fi 15817 fi 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833xorg_testset_save_CFLAGS="$CFLAGS" 15834 15835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15843/* end confdefs.h. */ 15844int i; 15845_ACEOF 15846if ac_fn_c_try_compile "$LINENO"; then : 15847 xorg_cv_cc_flag_unknown_warning_option=yes 15848else 15849 xorg_cv_cc_flag_unknown_warning_option=no 15850fi 15851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15852fi 15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15856 CFLAGS="$xorg_testset_save_CFLAGS" 15857fi 15858 15859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15862 fi 15863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15867 $as_echo_n "(cached) " >&6 15868else 15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15870/* end confdefs.h. */ 15871int i; 15872_ACEOF 15873if ac_fn_c_try_compile "$LINENO"; then : 15874 xorg_cv_cc_flag_unused_command_line_argument=yes 15875else 15876 xorg_cv_cc_flag_unused_command_line_argument=no 15877fi 15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15879fi 15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15883 CFLAGS="$xorg_testset_save_CFLAGS" 15884fi 15885 15886found="no" 15887 15888 if test $found = "no" ; then 15889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15891 fi 15892 15893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15895 fi 15896 15897 CFLAGS="$CFLAGS -Werror=return-type" 15898 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15900$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15901 cacheid=xorg_cv_cc_flag__Werror_return_type 15902 if eval \${$cacheid+:} false; then : 15903 $as_echo_n "(cached) " >&6 15904else 15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907int i; 15908int 15909main () 15910{ 15911 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916if ac_fn_c_try_link "$LINENO"; then : 15917 eval $cacheid=yes 15918else 15919 eval $cacheid=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext \ 15922 conftest$ac_exeext conftest.$ac_ext 15923fi 15924 15925 15926 CFLAGS="$xorg_testset_save_CFLAGS" 15927 15928 eval supported=\$$cacheid 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15930$as_echo "$supported" >&6; } 15931 if test "$supported" = "yes" ; then 15932 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15933 found="yes" 15934 fi 15935 fi 15936 15937 if test $found = "no" ; then 15938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15940 fi 15941 15942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15944 fi 15945 15946 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15947 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15949$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15950 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15951 if eval \${$cacheid+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15955/* end confdefs.h. */ 15956int i; 15957int 15958main () 15959{ 15960 15961 ; 15962 return 0; 15963} 15964_ACEOF 15965if ac_fn_c_try_link "$LINENO"; then : 15966 eval $cacheid=yes 15967else 15968 eval $cacheid=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext \ 15971 conftest$ac_exeext conftest.$ac_ext 15972fi 15973 15974 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976 15977 eval supported=\$$cacheid 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15979$as_echo "$supported" >&6; } 15980 if test "$supported" = "yes" ; then 15981 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15982 found="yes" 15983 fi 15984 fi 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000xorg_testset_save_CFLAGS="$CFLAGS" 16001 16002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16007 $as_echo_n "(cached) " >&6 16008else 16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010/* end confdefs.h. */ 16011int i; 16012_ACEOF 16013if ac_fn_c_try_compile "$LINENO"; then : 16014 xorg_cv_cc_flag_unknown_warning_option=yes 16015else 16016 xorg_cv_cc_flag_unknown_warning_option=no 16017fi 16018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16019fi 16020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16023 CFLAGS="$xorg_testset_save_CFLAGS" 16024fi 16025 16026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16029 fi 16030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16034 $as_echo_n "(cached) " >&6 16035else 16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16037/* end confdefs.h. */ 16038int i; 16039_ACEOF 16040if ac_fn_c_try_compile "$LINENO"; then : 16041 xorg_cv_cc_flag_unused_command_line_argument=yes 16042else 16043 xorg_cv_cc_flag_unused_command_line_argument=no 16044fi 16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16046fi 16047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16050 CFLAGS="$xorg_testset_save_CFLAGS" 16051fi 16052 16053found="no" 16054 16055 if test $found = "no" ; then 16056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16058 fi 16059 16060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16062 fi 16063 16064 CFLAGS="$CFLAGS -Werror=trigraphs" 16065 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16067$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 16068 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16069 if eval \${$cacheid+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074int i; 16075int 16076main () 16077{ 16078 16079 ; 16080 return 0; 16081} 16082_ACEOF 16083if ac_fn_c_try_link "$LINENO"; then : 16084 eval $cacheid=yes 16085else 16086 eval $cacheid=no 16087fi 16088rm -f core conftest.err conftest.$ac_objext \ 16089 conftest$ac_exeext conftest.$ac_ext 16090fi 16091 16092 16093 CFLAGS="$xorg_testset_save_CFLAGS" 16094 16095 eval supported=\$$cacheid 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16097$as_echo "$supported" >&6; } 16098 if test "$supported" = "yes" ; then 16099 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16100 found="yes" 16101 fi 16102 fi 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118xorg_testset_save_CFLAGS="$CFLAGS" 16119 16120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16125 $as_echo_n "(cached) " >&6 16126else 16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16128/* end confdefs.h. */ 16129int i; 16130_ACEOF 16131if ac_fn_c_try_compile "$LINENO"; then : 16132 xorg_cv_cc_flag_unknown_warning_option=yes 16133else 16134 xorg_cv_cc_flag_unknown_warning_option=no 16135fi 16136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16137fi 16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16141 CFLAGS="$xorg_testset_save_CFLAGS" 16142fi 16143 16144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16147 fi 16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16152 $as_echo_n "(cached) " >&6 16153else 16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155/* end confdefs.h. */ 16156int i; 16157_ACEOF 16158if ac_fn_c_try_compile "$LINENO"; then : 16159 xorg_cv_cc_flag_unused_command_line_argument=yes 16160else 16161 xorg_cv_cc_flag_unused_command_line_argument=no 16162fi 16163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16164fi 16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16168 CFLAGS="$xorg_testset_save_CFLAGS" 16169fi 16170 16171found="no" 16172 16173 if test $found = "no" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 16178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 fi 16181 16182 CFLAGS="$CFLAGS -Werror=array-bounds" 16183 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16185$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16186 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16187 if eval \${$cacheid+:} false; then : 16188 $as_echo_n "(cached) " >&6 16189else 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191/* end confdefs.h. */ 16192int i; 16193int 16194main () 16195{ 16196 16197 ; 16198 return 0; 16199} 16200_ACEOF 16201if ac_fn_c_try_link "$LINENO"; then : 16202 eval $cacheid=yes 16203else 16204 eval $cacheid=no 16205fi 16206rm -f core conftest.err conftest.$ac_objext \ 16207 conftest$ac_exeext conftest.$ac_ext 16208fi 16209 16210 16211 CFLAGS="$xorg_testset_save_CFLAGS" 16212 16213 eval supported=\$$cacheid 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16215$as_echo "$supported" >&6; } 16216 if test "$supported" = "yes" ; then 16217 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16218 found="yes" 16219 fi 16220 fi 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236xorg_testset_save_CFLAGS="$CFLAGS" 16237 16238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16243 $as_echo_n "(cached) " >&6 16244else 16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16246/* end confdefs.h. */ 16247int i; 16248_ACEOF 16249if ac_fn_c_try_compile "$LINENO"; then : 16250 xorg_cv_cc_flag_unknown_warning_option=yes 16251else 16252 xorg_cv_cc_flag_unknown_warning_option=no 16253fi 16254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16255fi 16256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16259 CFLAGS="$xorg_testset_save_CFLAGS" 16260fi 16261 16262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16265 fi 16266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16270 $as_echo_n "(cached) " >&6 16271else 16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16273/* end confdefs.h. */ 16274int i; 16275_ACEOF 16276if ac_fn_c_try_compile "$LINENO"; then : 16277 xorg_cv_cc_flag_unused_command_line_argument=yes 16278else 16279 xorg_cv_cc_flag_unused_command_line_argument=no 16280fi 16281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16282fi 16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16286 CFLAGS="$xorg_testset_save_CFLAGS" 16287fi 16288 16289found="no" 16290 16291 if test $found = "no" ; then 16292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16294 fi 16295 16296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16298 fi 16299 16300 CFLAGS="$CFLAGS -Werror=write-strings" 16301 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16303$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16304 cacheid=xorg_cv_cc_flag__Werror_write_strings 16305 if eval \${$cacheid+:} false; then : 16306 $as_echo_n "(cached) " >&6 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310int i; 16311int 16312main () 16313{ 16314 16315 ; 16316 return 0; 16317} 16318_ACEOF 16319if ac_fn_c_try_link "$LINENO"; then : 16320 eval $cacheid=yes 16321else 16322 eval $cacheid=no 16323fi 16324rm -f core conftest.err conftest.$ac_objext \ 16325 conftest$ac_exeext conftest.$ac_ext 16326fi 16327 16328 16329 CFLAGS="$xorg_testset_save_CFLAGS" 16330 16331 eval supported=\$$cacheid 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16333$as_echo "$supported" >&6; } 16334 if test "$supported" = "yes" ; then 16335 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16336 found="yes" 16337 fi 16338 fi 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354xorg_testset_save_CFLAGS="$CFLAGS" 16355 16356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16361 $as_echo_n "(cached) " >&6 16362else 16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16364/* end confdefs.h. */ 16365int i; 16366_ACEOF 16367if ac_fn_c_try_compile "$LINENO"; then : 16368 xorg_cv_cc_flag_unknown_warning_option=yes 16369else 16370 xorg_cv_cc_flag_unknown_warning_option=no 16371fi 16372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16373fi 16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16377 CFLAGS="$xorg_testset_save_CFLAGS" 16378fi 16379 16380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16383 fi 16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16388 $as_echo_n "(cached) " >&6 16389else 16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391/* end confdefs.h. */ 16392int i; 16393_ACEOF 16394if ac_fn_c_try_compile "$LINENO"; then : 16395 xorg_cv_cc_flag_unused_command_line_argument=yes 16396else 16397 xorg_cv_cc_flag_unused_command_line_argument=no 16398fi 16399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16400fi 16401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16404 CFLAGS="$xorg_testset_save_CFLAGS" 16405fi 16406 16407found="no" 16408 16409 if test $found = "no" ; then 16410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16412 fi 16413 16414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16416 fi 16417 16418 CFLAGS="$CFLAGS -Werror=address" 16419 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16421$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16422 cacheid=xorg_cv_cc_flag__Werror_address 16423 if eval \${$cacheid+:} false; then : 16424 $as_echo_n "(cached) " >&6 16425else 16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16427/* end confdefs.h. */ 16428int i; 16429int 16430main () 16431{ 16432 16433 ; 16434 return 0; 16435} 16436_ACEOF 16437if ac_fn_c_try_link "$LINENO"; then : 16438 eval $cacheid=yes 16439else 16440 eval $cacheid=no 16441fi 16442rm -f core conftest.err conftest.$ac_objext \ 16443 conftest$ac_exeext conftest.$ac_ext 16444fi 16445 16446 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448 16449 eval supported=\$$cacheid 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16451$as_echo "$supported" >&6; } 16452 if test "$supported" = "yes" ; then 16453 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16454 found="yes" 16455 fi 16456 fi 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472xorg_testset_save_CFLAGS="$CFLAGS" 16473 16474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16479 $as_echo_n "(cached) " >&6 16480else 16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16482/* end confdefs.h. */ 16483int i; 16484_ACEOF 16485if ac_fn_c_try_compile "$LINENO"; then : 16486 xorg_cv_cc_flag_unknown_warning_option=yes 16487else 16488 xorg_cv_cc_flag_unknown_warning_option=no 16489fi 16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16491fi 16492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16495 CFLAGS="$xorg_testset_save_CFLAGS" 16496fi 16497 16498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16501 fi 16502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509/* end confdefs.h. */ 16510int i; 16511_ACEOF 16512if ac_fn_c_try_compile "$LINENO"; then : 16513 xorg_cv_cc_flag_unused_command_line_argument=yes 16514else 16515 xorg_cv_cc_flag_unused_command_line_argument=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16518fi 16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523fi 16524 16525found="no" 16526 16527 if test $found = "no" ; then 16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16530 fi 16531 16532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16534 fi 16535 16536 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16537 16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16539$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16540 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16541 if eval \${$cacheid+:} false; then : 16542 $as_echo_n "(cached) " >&6 16543else 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546int i; 16547int 16548main () 16549{ 16550 16551 ; 16552 return 0; 16553} 16554_ACEOF 16555if ac_fn_c_try_link "$LINENO"; then : 16556 eval $cacheid=yes 16557else 16558 eval $cacheid=no 16559fi 16560rm -f core conftest.err conftest.$ac_objext \ 16561 conftest$ac_exeext conftest.$ac_ext 16562fi 16563 16564 16565 CFLAGS="$xorg_testset_save_CFLAGS" 16566 16567 eval supported=\$$cacheid 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16569$as_echo "$supported" >&6; } 16570 if test "$supported" = "yes" ; then 16571 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16572 found="yes" 16573 fi 16574 fi 16575 16576 if test $found = "no" ; then 16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 fi 16580 16581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16583 fi 16584 16585 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16586 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16588$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16589 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16590 if eval \${$cacheid+:} false; then : 16591 $as_echo_n "(cached) " >&6 16592else 16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594/* end confdefs.h. */ 16595int i; 16596int 16597main () 16598{ 16599 16600 ; 16601 return 0; 16602} 16603_ACEOF 16604if ac_fn_c_try_link "$LINENO"; then : 16605 eval $cacheid=yes 16606else 16607 eval $cacheid=no 16608fi 16609rm -f core conftest.err conftest.$ac_objext \ 16610 conftest$ac_exeext conftest.$ac_ext 16611fi 16612 16613 16614 CFLAGS="$xorg_testset_save_CFLAGS" 16615 16616 eval supported=\$$cacheid 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16618$as_echo "$supported" >&6; } 16619 if test "$supported" = "yes" ; then 16620 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16621 found="yes" 16622 fi 16623 fi 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639xorg_testset_save_CFLAGS="$CFLAGS" 16640 16641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16646 $as_echo_n "(cached) " >&6 16647else 16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649/* end confdefs.h. */ 16650int i; 16651_ACEOF 16652if ac_fn_c_try_compile "$LINENO"; then : 16653 xorg_cv_cc_flag_unknown_warning_option=yes 16654else 16655 xorg_cv_cc_flag_unknown_warning_option=no 16656fi 16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16658fi 16659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16662 CFLAGS="$xorg_testset_save_CFLAGS" 16663fi 16664 16665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16673 $as_echo_n "(cached) " >&6 16674else 16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16676/* end confdefs.h. */ 16677int i; 16678_ACEOF 16679if ac_fn_c_try_compile "$LINENO"; then : 16680 xorg_cv_cc_flag_unused_command_line_argument=yes 16681else 16682 xorg_cv_cc_flag_unused_command_line_argument=no 16683fi 16684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16689 CFLAGS="$xorg_testset_save_CFLAGS" 16690fi 16691 16692found="no" 16693 16694 if test $found = "no" ; then 16695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 fi 16698 16699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16701 fi 16702 16703 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16704 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16706$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16707 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16708 if eval \${$cacheid+:} false; then : 16709 $as_echo_n "(cached) " >&6 16710else 16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713int i; 16714int 16715main () 16716{ 16717 16718 ; 16719 return 0; 16720} 16721_ACEOF 16722if ac_fn_c_try_link "$LINENO"; then : 16723 eval $cacheid=yes 16724else 16725 eval $cacheid=no 16726fi 16727rm -f core conftest.err conftest.$ac_objext \ 16728 conftest$ac_exeext conftest.$ac_ext 16729fi 16730 16731 16732 CFLAGS="$xorg_testset_save_CFLAGS" 16733 16734 eval supported=\$$cacheid 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16736$as_echo "$supported" >&6; } 16737 if test "$supported" = "yes" ; then 16738 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16739 found="yes" 16740 fi 16741 fi 16742 16743 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16744else 16745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16746$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760xorg_testset_save_CFLAGS="$CFLAGS" 16761 16762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16767 $as_echo_n "(cached) " >&6 16768else 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771int i; 16772_ACEOF 16773if ac_fn_c_try_compile "$LINENO"; then : 16774 xorg_cv_cc_flag_unknown_warning_option=yes 16775else 16776 xorg_cv_cc_flag_unknown_warning_option=no 16777fi 16778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16779fi 16780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16783 CFLAGS="$xorg_testset_save_CFLAGS" 16784fi 16785 16786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16789 fi 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16794 $as_echo_n "(cached) " >&6 16795else 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797/* end confdefs.h. */ 16798int i; 16799_ACEOF 16800if ac_fn_c_try_compile "$LINENO"; then : 16801 xorg_cv_cc_flag_unused_command_line_argument=yes 16802else 16803 xorg_cv_cc_flag_unused_command_line_argument=no 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811fi 16812 16813found="no" 16814 16815 if test $found = "no" ; then 16816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16818 fi 16819 16820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16822 fi 16823 16824 CFLAGS="$CFLAGS -Wimplicit" 16825 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16827$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16828 cacheid=xorg_cv_cc_flag__Wimplicit 16829 if eval \${$cacheid+:} false; then : 16830 $as_echo_n "(cached) " >&6 16831else 16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16833/* end confdefs.h. */ 16834int i; 16835int 16836main () 16837{ 16838 16839 ; 16840 return 0; 16841} 16842_ACEOF 16843if ac_fn_c_try_link "$LINENO"; then : 16844 eval $cacheid=yes 16845else 16846 eval $cacheid=no 16847fi 16848rm -f core conftest.err conftest.$ac_objext \ 16849 conftest$ac_exeext conftest.$ac_ext 16850fi 16851 16852 16853 CFLAGS="$xorg_testset_save_CFLAGS" 16854 16855 eval supported=\$$cacheid 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16857$as_echo "$supported" >&6; } 16858 if test "$supported" = "yes" ; then 16859 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16860 found="yes" 16861 fi 16862 fi 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878xorg_testset_save_CFLAGS="$CFLAGS" 16879 16880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16885 $as_echo_n "(cached) " >&6 16886else 16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16888/* end confdefs.h. */ 16889int i; 16890_ACEOF 16891if ac_fn_c_try_compile "$LINENO"; then : 16892 xorg_cv_cc_flag_unknown_warning_option=yes 16893else 16894 xorg_cv_cc_flag_unknown_warning_option=no 16895fi 16896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16897fi 16898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16901 CFLAGS="$xorg_testset_save_CFLAGS" 16902fi 16903 16904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16907 fi 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16912 $as_echo_n "(cached) " >&6 16913else 16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16915/* end confdefs.h. */ 16916int i; 16917_ACEOF 16918if ac_fn_c_try_compile "$LINENO"; then : 16919 xorg_cv_cc_flag_unused_command_line_argument=yes 16920else 16921 xorg_cv_cc_flag_unused_command_line_argument=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16928 CFLAGS="$xorg_testset_save_CFLAGS" 16929fi 16930 16931found="no" 16932 16933 if test $found = "no" ; then 16934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16936 fi 16937 16938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16940 fi 16941 16942 CFLAGS="$CFLAGS -Wnonnull" 16943 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16945$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16946 cacheid=xorg_cv_cc_flag__Wnonnull 16947 if eval \${$cacheid+:} false; then : 16948 $as_echo_n "(cached) " >&6 16949else 16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16951/* end confdefs.h. */ 16952int i; 16953int 16954main () 16955{ 16956 16957 ; 16958 return 0; 16959} 16960_ACEOF 16961if ac_fn_c_try_link "$LINENO"; then : 16962 eval $cacheid=yes 16963else 16964 eval $cacheid=no 16965fi 16966rm -f core conftest.err conftest.$ac_objext \ 16967 conftest$ac_exeext conftest.$ac_ext 16968fi 16969 16970 16971 CFLAGS="$xorg_testset_save_CFLAGS" 16972 16973 eval supported=\$$cacheid 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16975$as_echo "$supported" >&6; } 16976 if test "$supported" = "yes" ; then 16977 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16978 found="yes" 16979 fi 16980 fi 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996xorg_testset_save_CFLAGS="$CFLAGS" 16997 16998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17003 $as_echo_n "(cached) " >&6 17004else 17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17006/* end confdefs.h. */ 17007int i; 17008_ACEOF 17009if ac_fn_c_try_compile "$LINENO"; then : 17010 xorg_cv_cc_flag_unknown_warning_option=yes 17011else 17012 xorg_cv_cc_flag_unknown_warning_option=no 17013fi 17014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17015fi 17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17019 CFLAGS="$xorg_testset_save_CFLAGS" 17020fi 17021 17022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 fi 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17033/* end confdefs.h. */ 17034int i; 17035_ACEOF 17036if ac_fn_c_try_compile "$LINENO"; then : 17037 xorg_cv_cc_flag_unused_command_line_argument=yes 17038else 17039 xorg_cv_cc_flag_unused_command_line_argument=no 17040fi 17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17042fi 17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17046 CFLAGS="$xorg_testset_save_CFLAGS" 17047fi 17048 17049found="no" 17050 17051 if test $found = "no" ; then 17052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17054 fi 17055 17056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17058 fi 17059 17060 CFLAGS="$CFLAGS -Winit-self" 17061 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17063$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 17064 cacheid=xorg_cv_cc_flag__Winit_self 17065 if eval \${$cacheid+:} false; then : 17066 $as_echo_n "(cached) " >&6 17067else 17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17069/* end confdefs.h. */ 17070int i; 17071int 17072main () 17073{ 17074 17075 ; 17076 return 0; 17077} 17078_ACEOF 17079if ac_fn_c_try_link "$LINENO"; then : 17080 eval $cacheid=yes 17081else 17082 eval $cacheid=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext \ 17085 conftest$ac_exeext conftest.$ac_ext 17086fi 17087 17088 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090 17091 eval supported=\$$cacheid 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17093$as_echo "$supported" >&6; } 17094 if test "$supported" = "yes" ; then 17095 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17096 found="yes" 17097 fi 17098 fi 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114xorg_testset_save_CFLAGS="$CFLAGS" 17115 17116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17121 $as_echo_n "(cached) " >&6 17122else 17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17124/* end confdefs.h. */ 17125int i; 17126_ACEOF 17127if ac_fn_c_try_compile "$LINENO"; then : 17128 xorg_cv_cc_flag_unknown_warning_option=yes 17129else 17130 xorg_cv_cc_flag_unknown_warning_option=no 17131fi 17132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17133fi 17134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17137 CFLAGS="$xorg_testset_save_CFLAGS" 17138fi 17139 17140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17143 fi 17144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17148 $as_echo_n "(cached) " >&6 17149else 17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17151/* end confdefs.h. */ 17152int i; 17153_ACEOF 17154if ac_fn_c_try_compile "$LINENO"; then : 17155 xorg_cv_cc_flag_unused_command_line_argument=yes 17156else 17157 xorg_cv_cc_flag_unused_command_line_argument=no 17158fi 17159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17160fi 17161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17164 CFLAGS="$xorg_testset_save_CFLAGS" 17165fi 17166 17167found="no" 17168 17169 if test $found = "no" ; then 17170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17172 fi 17173 17174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17176 fi 17177 17178 CFLAGS="$CFLAGS -Wmain" 17179 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17181$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17182 cacheid=xorg_cv_cc_flag__Wmain 17183 if eval \${$cacheid+:} false; then : 17184 $as_echo_n "(cached) " >&6 17185else 17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187/* end confdefs.h. */ 17188int i; 17189int 17190main () 17191{ 17192 17193 ; 17194 return 0; 17195} 17196_ACEOF 17197if ac_fn_c_try_link "$LINENO"; then : 17198 eval $cacheid=yes 17199else 17200 eval $cacheid=no 17201fi 17202rm -f core conftest.err conftest.$ac_objext \ 17203 conftest$ac_exeext conftest.$ac_ext 17204fi 17205 17206 17207 CFLAGS="$xorg_testset_save_CFLAGS" 17208 17209 eval supported=\$$cacheid 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17211$as_echo "$supported" >&6; } 17212 if test "$supported" = "yes" ; then 17213 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17214 found="yes" 17215 fi 17216 fi 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232xorg_testset_save_CFLAGS="$CFLAGS" 17233 17234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17239 $as_echo_n "(cached) " >&6 17240else 17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242/* end confdefs.h. */ 17243int i; 17244_ACEOF 17245if ac_fn_c_try_compile "$LINENO"; then : 17246 xorg_cv_cc_flag_unknown_warning_option=yes 17247else 17248 xorg_cv_cc_flag_unknown_warning_option=no 17249fi 17250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17251fi 17252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17255 CFLAGS="$xorg_testset_save_CFLAGS" 17256fi 17257 17258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17261 fi 17262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17266 $as_echo_n "(cached) " >&6 17267else 17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17269/* end confdefs.h. */ 17270int i; 17271_ACEOF 17272if ac_fn_c_try_compile "$LINENO"; then : 17273 xorg_cv_cc_flag_unused_command_line_argument=yes 17274else 17275 xorg_cv_cc_flag_unused_command_line_argument=no 17276fi 17277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17278fi 17279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17282 CFLAGS="$xorg_testset_save_CFLAGS" 17283fi 17284 17285found="no" 17286 17287 if test $found = "no" ; then 17288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17290 fi 17291 17292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17294 fi 17295 17296 CFLAGS="$CFLAGS -Wmissing-braces" 17297 17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17299$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17300 cacheid=xorg_cv_cc_flag__Wmissing_braces 17301 if eval \${$cacheid+:} false; then : 17302 $as_echo_n "(cached) " >&6 17303else 17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17305/* end confdefs.h. */ 17306int i; 17307int 17308main () 17309{ 17310 17311 ; 17312 return 0; 17313} 17314_ACEOF 17315if ac_fn_c_try_link "$LINENO"; then : 17316 eval $cacheid=yes 17317else 17318 eval $cacheid=no 17319fi 17320rm -f core conftest.err conftest.$ac_objext \ 17321 conftest$ac_exeext conftest.$ac_ext 17322fi 17323 17324 17325 CFLAGS="$xorg_testset_save_CFLAGS" 17326 17327 eval supported=\$$cacheid 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17329$as_echo "$supported" >&6; } 17330 if test "$supported" = "yes" ; then 17331 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17332 found="yes" 17333 fi 17334 fi 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350xorg_testset_save_CFLAGS="$CFLAGS" 17351 17352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17357 $as_echo_n "(cached) " >&6 17358else 17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17360/* end confdefs.h. */ 17361int i; 17362_ACEOF 17363if ac_fn_c_try_compile "$LINENO"; then : 17364 xorg_cv_cc_flag_unknown_warning_option=yes 17365else 17366 xorg_cv_cc_flag_unknown_warning_option=no 17367fi 17368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17369fi 17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17373 CFLAGS="$xorg_testset_save_CFLAGS" 17374fi 17375 17376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17379 fi 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385else 17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388int i; 17389_ACEOF 17390if ac_fn_c_try_compile "$LINENO"; then : 17391 xorg_cv_cc_flag_unused_command_line_argument=yes 17392else 17393 xorg_cv_cc_flag_unused_command_line_argument=no 17394fi 17395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17396fi 17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17400 CFLAGS="$xorg_testset_save_CFLAGS" 17401fi 17402 17403found="no" 17404 17405 if test $found = "no" ; then 17406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 fi 17409 17410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17412 fi 17413 17414 CFLAGS="$CFLAGS -Wsequence-point" 17415 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17417$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17418 cacheid=xorg_cv_cc_flag__Wsequence_point 17419 if eval \${$cacheid+:} false; then : 17420 $as_echo_n "(cached) " >&6 17421else 17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424int i; 17425int 17426main () 17427{ 17428 17429 ; 17430 return 0; 17431} 17432_ACEOF 17433if ac_fn_c_try_link "$LINENO"; then : 17434 eval $cacheid=yes 17435else 17436 eval $cacheid=no 17437fi 17438rm -f core conftest.err conftest.$ac_objext \ 17439 conftest$ac_exeext conftest.$ac_ext 17440fi 17441 17442 17443 CFLAGS="$xorg_testset_save_CFLAGS" 17444 17445 eval supported=\$$cacheid 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17447$as_echo "$supported" >&6; } 17448 if test "$supported" = "yes" ; then 17449 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17450 found="yes" 17451 fi 17452 fi 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468xorg_testset_save_CFLAGS="$CFLAGS" 17469 17470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17475 $as_echo_n "(cached) " >&6 17476else 17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17478/* end confdefs.h. */ 17479int i; 17480_ACEOF 17481if ac_fn_c_try_compile "$LINENO"; then : 17482 xorg_cv_cc_flag_unknown_warning_option=yes 17483else 17484 xorg_cv_cc_flag_unknown_warning_option=no 17485fi 17486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17487fi 17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17491 CFLAGS="$xorg_testset_save_CFLAGS" 17492fi 17493 17494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17497 fi 17498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17502 $as_echo_n "(cached) " >&6 17503else 17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17505/* end confdefs.h. */ 17506int i; 17507_ACEOF 17508if ac_fn_c_try_compile "$LINENO"; then : 17509 xorg_cv_cc_flag_unused_command_line_argument=yes 17510else 17511 xorg_cv_cc_flag_unused_command_line_argument=no 17512fi 17513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17514fi 17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17518 CFLAGS="$xorg_testset_save_CFLAGS" 17519fi 17520 17521found="no" 17522 17523 if test $found = "no" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 17528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17530 fi 17531 17532 CFLAGS="$CFLAGS -Wreturn-type" 17533 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17535$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17536 cacheid=xorg_cv_cc_flag__Wreturn_type 17537 if eval \${$cacheid+:} false; then : 17538 $as_echo_n "(cached) " >&6 17539else 17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17541/* end confdefs.h. */ 17542int i; 17543int 17544main () 17545{ 17546 17547 ; 17548 return 0; 17549} 17550_ACEOF 17551if ac_fn_c_try_link "$LINENO"; then : 17552 eval $cacheid=yes 17553else 17554 eval $cacheid=no 17555fi 17556rm -f core conftest.err conftest.$ac_objext \ 17557 conftest$ac_exeext conftest.$ac_ext 17558fi 17559 17560 17561 CFLAGS="$xorg_testset_save_CFLAGS" 17562 17563 eval supported=\$$cacheid 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17565$as_echo "$supported" >&6; } 17566 if test "$supported" = "yes" ; then 17567 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17568 found="yes" 17569 fi 17570 fi 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586xorg_testset_save_CFLAGS="$CFLAGS" 17587 17588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17593 $as_echo_n "(cached) " >&6 17594else 17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17596/* end confdefs.h. */ 17597int i; 17598_ACEOF 17599if ac_fn_c_try_compile "$LINENO"; then : 17600 xorg_cv_cc_flag_unknown_warning_option=yes 17601else 17602 xorg_cv_cc_flag_unknown_warning_option=no 17603fi 17604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17605fi 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17609 CFLAGS="$xorg_testset_save_CFLAGS" 17610fi 17611 17612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17615 fi 17616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17620 $as_echo_n "(cached) " >&6 17621else 17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17623/* end confdefs.h. */ 17624int i; 17625_ACEOF 17626if ac_fn_c_try_compile "$LINENO"; then : 17627 xorg_cv_cc_flag_unused_command_line_argument=yes 17628else 17629 xorg_cv_cc_flag_unused_command_line_argument=no 17630fi 17631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17632fi 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17636 CFLAGS="$xorg_testset_save_CFLAGS" 17637fi 17638 17639found="no" 17640 17641 if test $found = "no" ; then 17642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17644 fi 17645 17646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17648 fi 17649 17650 CFLAGS="$CFLAGS -Wtrigraphs" 17651 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17653$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17654 cacheid=xorg_cv_cc_flag__Wtrigraphs 17655 if eval \${$cacheid+:} false; then : 17656 $as_echo_n "(cached) " >&6 17657else 17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17659/* end confdefs.h. */ 17660int i; 17661int 17662main () 17663{ 17664 17665 ; 17666 return 0; 17667} 17668_ACEOF 17669if ac_fn_c_try_link "$LINENO"; then : 17670 eval $cacheid=yes 17671else 17672 eval $cacheid=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext \ 17675 conftest$ac_exeext conftest.$ac_ext 17676fi 17677 17678 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680 17681 eval supported=\$$cacheid 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17683$as_echo "$supported" >&6; } 17684 if test "$supported" = "yes" ; then 17685 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17686 found="yes" 17687 fi 17688 fi 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704xorg_testset_save_CFLAGS="$CFLAGS" 17705 17706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17711 $as_echo_n "(cached) " >&6 17712else 17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17714/* end confdefs.h. */ 17715int i; 17716_ACEOF 17717if ac_fn_c_try_compile "$LINENO"; then : 17718 xorg_cv_cc_flag_unknown_warning_option=yes 17719else 17720 xorg_cv_cc_flag_unknown_warning_option=no 17721fi 17722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17723fi 17724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17727 CFLAGS="$xorg_testset_save_CFLAGS" 17728fi 17729 17730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17733 fi 17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17738 $as_echo_n "(cached) " >&6 17739else 17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17741/* end confdefs.h. */ 17742int i; 17743_ACEOF 17744if ac_fn_c_try_compile "$LINENO"; then : 17745 xorg_cv_cc_flag_unused_command_line_argument=yes 17746else 17747 xorg_cv_cc_flag_unused_command_line_argument=no 17748fi 17749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17750fi 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17754 CFLAGS="$xorg_testset_save_CFLAGS" 17755fi 17756 17757found="no" 17758 17759 if test $found = "no" ; then 17760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17762 fi 17763 17764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17766 fi 17767 17768 CFLAGS="$CFLAGS -Warray-bounds" 17769 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17771$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17772 cacheid=xorg_cv_cc_flag__Warray_bounds 17773 if eval \${$cacheid+:} false; then : 17774 $as_echo_n "(cached) " >&6 17775else 17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17777/* end confdefs.h. */ 17778int i; 17779int 17780main () 17781{ 17782 17783 ; 17784 return 0; 17785} 17786_ACEOF 17787if ac_fn_c_try_link "$LINENO"; then : 17788 eval $cacheid=yes 17789else 17790 eval $cacheid=no 17791fi 17792rm -f core conftest.err conftest.$ac_objext \ 17793 conftest$ac_exeext conftest.$ac_ext 17794fi 17795 17796 17797 CFLAGS="$xorg_testset_save_CFLAGS" 17798 17799 eval supported=\$$cacheid 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17801$as_echo "$supported" >&6; } 17802 if test "$supported" = "yes" ; then 17803 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17804 found="yes" 17805 fi 17806 fi 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822xorg_testset_save_CFLAGS="$CFLAGS" 17823 17824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17829 $as_echo_n "(cached) " >&6 17830else 17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17832/* end confdefs.h. */ 17833int i; 17834_ACEOF 17835if ac_fn_c_try_compile "$LINENO"; then : 17836 xorg_cv_cc_flag_unknown_warning_option=yes 17837else 17838 xorg_cv_cc_flag_unknown_warning_option=no 17839fi 17840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17841fi 17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17845 CFLAGS="$xorg_testset_save_CFLAGS" 17846fi 17847 17848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17851 fi 17852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17856 $as_echo_n "(cached) " >&6 17857else 17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17859/* end confdefs.h. */ 17860int i; 17861_ACEOF 17862if ac_fn_c_try_compile "$LINENO"; then : 17863 xorg_cv_cc_flag_unused_command_line_argument=yes 17864else 17865 xorg_cv_cc_flag_unused_command_line_argument=no 17866fi 17867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17868fi 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17872 CFLAGS="$xorg_testset_save_CFLAGS" 17873fi 17874 17875found="no" 17876 17877 if test $found = "no" ; then 17878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17880 fi 17881 17882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17884 fi 17885 17886 CFLAGS="$CFLAGS -Wwrite-strings" 17887 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17889$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17890 cacheid=xorg_cv_cc_flag__Wwrite_strings 17891 if eval \${$cacheid+:} false; then : 17892 $as_echo_n "(cached) " >&6 17893else 17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17895/* end confdefs.h. */ 17896int i; 17897int 17898main () 17899{ 17900 17901 ; 17902 return 0; 17903} 17904_ACEOF 17905if ac_fn_c_try_link "$LINENO"; then : 17906 eval $cacheid=yes 17907else 17908 eval $cacheid=no 17909fi 17910rm -f core conftest.err conftest.$ac_objext \ 17911 conftest$ac_exeext conftest.$ac_ext 17912fi 17913 17914 17915 CFLAGS="$xorg_testset_save_CFLAGS" 17916 17917 eval supported=\$$cacheid 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17919$as_echo "$supported" >&6; } 17920 if test "$supported" = "yes" ; then 17921 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17922 found="yes" 17923 fi 17924 fi 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940xorg_testset_save_CFLAGS="$CFLAGS" 17941 17942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17947 $as_echo_n "(cached) " >&6 17948else 17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17950/* end confdefs.h. */ 17951int i; 17952_ACEOF 17953if ac_fn_c_try_compile "$LINENO"; then : 17954 xorg_cv_cc_flag_unknown_warning_option=yes 17955else 17956 xorg_cv_cc_flag_unknown_warning_option=no 17957fi 17958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17959fi 17960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17963 CFLAGS="$xorg_testset_save_CFLAGS" 17964fi 17965 17966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17969 fi 17970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17974 $as_echo_n "(cached) " >&6 17975else 17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977/* end confdefs.h. */ 17978int i; 17979_ACEOF 17980if ac_fn_c_try_compile "$LINENO"; then : 17981 xorg_cv_cc_flag_unused_command_line_argument=yes 17982else 17983 xorg_cv_cc_flag_unused_command_line_argument=no 17984fi 17985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17986fi 17987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17990 CFLAGS="$xorg_testset_save_CFLAGS" 17991fi 17992 17993found="no" 17994 17995 if test $found = "no" ; then 17996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17998 fi 17999 18000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18002 fi 18003 18004 CFLAGS="$CFLAGS -Waddress" 18005 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18007$as_echo_n "checking if $CC supports -Waddress... " >&6; } 18008 cacheid=xorg_cv_cc_flag__Waddress 18009 if eval \${$cacheid+:} false; then : 18010 $as_echo_n "(cached) " >&6 18011else 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013/* end confdefs.h. */ 18014int i; 18015int 18016main () 18017{ 18018 18019 ; 18020 return 0; 18021} 18022_ACEOF 18023if ac_fn_c_try_link "$LINENO"; then : 18024 eval $cacheid=yes 18025else 18026 eval $cacheid=no 18027fi 18028rm -f core conftest.err conftest.$ac_objext \ 18029 conftest$ac_exeext conftest.$ac_ext 18030fi 18031 18032 18033 CFLAGS="$xorg_testset_save_CFLAGS" 18034 18035 eval supported=\$$cacheid 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18037$as_echo "$supported" >&6; } 18038 if test "$supported" = "yes" ; then 18039 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18040 found="yes" 18041 fi 18042 fi 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058xorg_testset_save_CFLAGS="$CFLAGS" 18059 18060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18065 $as_echo_n "(cached) " >&6 18066else 18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18068/* end confdefs.h. */ 18069int i; 18070_ACEOF 18071if ac_fn_c_try_compile "$LINENO"; then : 18072 xorg_cv_cc_flag_unknown_warning_option=yes 18073else 18074 xorg_cv_cc_flag_unknown_warning_option=no 18075fi 18076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18077fi 18078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082fi 18083 18084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18087 fi 18088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18092 $as_echo_n "(cached) " >&6 18093else 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096int i; 18097_ACEOF 18098if ac_fn_c_try_compile "$LINENO"; then : 18099 xorg_cv_cc_flag_unused_command_line_argument=yes 18100else 18101 xorg_cv_cc_flag_unused_command_line_argument=no 18102fi 18103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18104fi 18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18108 CFLAGS="$xorg_testset_save_CFLAGS" 18109fi 18110 18111found="no" 18112 18113 if test $found = "no" ; then 18114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18116 fi 18117 18118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18120 fi 18121 18122 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18123 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18125$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18126 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18127 if eval \${$cacheid+:} false; then : 18128 $as_echo_n "(cached) " >&6 18129else 18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18131/* end confdefs.h. */ 18132int i; 18133int 18134main () 18135{ 18136 18137 ; 18138 return 0; 18139} 18140_ACEOF 18141if ac_fn_c_try_link "$LINENO"; then : 18142 eval $cacheid=yes 18143else 18144 eval $cacheid=no 18145fi 18146rm -f core conftest.err conftest.$ac_objext \ 18147 conftest$ac_exeext conftest.$ac_ext 18148fi 18149 18150 18151 CFLAGS="$xorg_testset_save_CFLAGS" 18152 18153 eval supported=\$$cacheid 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18155$as_echo "$supported" >&6; } 18156 if test "$supported" = "yes" ; then 18157 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18158 found="yes" 18159 fi 18160 fi 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176xorg_testset_save_CFLAGS="$CFLAGS" 18177 18178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18183 $as_echo_n "(cached) " >&6 18184else 18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18186/* end confdefs.h. */ 18187int i; 18188_ACEOF 18189if ac_fn_c_try_compile "$LINENO"; then : 18190 xorg_cv_cc_flag_unknown_warning_option=yes 18191else 18192 xorg_cv_cc_flag_unknown_warning_option=no 18193fi 18194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18195fi 18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18199 CFLAGS="$xorg_testset_save_CFLAGS" 18200fi 18201 18202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18205 fi 18206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18210 $as_echo_n "(cached) " >&6 18211else 18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18213/* end confdefs.h. */ 18214int i; 18215_ACEOF 18216if ac_fn_c_try_compile "$LINENO"; then : 18217 xorg_cv_cc_flag_unused_command_line_argument=yes 18218else 18219 xorg_cv_cc_flag_unused_command_line_argument=no 18220fi 18221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18222fi 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18226 CFLAGS="$xorg_testset_save_CFLAGS" 18227fi 18228 18229found="no" 18230 18231 if test $found = "no" ; then 18232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18234 fi 18235 18236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18238 fi 18239 18240 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18241 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18243$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18244 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18245 if eval \${$cacheid+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247else 18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250int i; 18251int 18252main () 18253{ 18254 18255 ; 18256 return 0; 18257} 18258_ACEOF 18259if ac_fn_c_try_link "$LINENO"; then : 18260 eval $cacheid=yes 18261else 18262 eval $cacheid=no 18263fi 18264rm -f core conftest.err conftest.$ac_objext \ 18265 conftest$ac_exeext conftest.$ac_ext 18266fi 18267 18268 18269 CFLAGS="$xorg_testset_save_CFLAGS" 18270 18271 eval supported=\$$cacheid 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18273$as_echo "$supported" >&6; } 18274 if test "$supported" = "yes" ; then 18275 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18276 found="yes" 18277 fi 18278 fi 18279 18280 18281fi 18282 18283 18284 18285 18286 18287 18288 18289 CWARNFLAGS="$BASE_CFLAGS" 18290 if test "x$GCC" = xyes ; then 18291 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18292 fi 18293 18294 18295 18296 18297 18298 18299 18300 18301# Check whether --with-xorg-module-dir was given. 18302if test "${with_xorg_module_dir+set}" = set; then : 18303 withval=$with_xorg_module_dir; moduledir="$withval" 18304else 18305 moduledir="$libdir/xorg/modules" 18306fi 18307 18308inputdir=${moduledir}/input 18309 18310 18311# Checks for extensions 18312 18313 18314 18315 18316 18317 18318 18319if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18320 if test -n "$ac_tool_prefix"; then 18321 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18322set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18324$as_echo_n "checking for $ac_word... " >&6; } 18325if ${ac_cv_path_PKG_CONFIG+:} false; then : 18326 $as_echo_n "(cached) " >&6 18327else 18328 case $PKG_CONFIG in 18329 [\\/]* | ?:[\\/]*) 18330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18331 ;; 18332 *) 18333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18334for as_dir in $PATH 18335do 18336 IFS=$as_save_IFS 18337 test -z "$as_dir" && as_dir=. 18338 for ac_exec_ext in '' $ac_executable_extensions; do 18339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18342 break 2 18343 fi 18344done 18345 done 18346IFS=$as_save_IFS 18347 18348 ;; 18349esac 18350fi 18351PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18352if test -n "$PKG_CONFIG"; then 18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18354$as_echo "$PKG_CONFIG" >&6; } 18355else 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18357$as_echo "no" >&6; } 18358fi 18359 18360 18361fi 18362if test -z "$ac_cv_path_PKG_CONFIG"; then 18363 ac_pt_PKG_CONFIG=$PKG_CONFIG 18364 # Extract the first word of "pkg-config", so it can be a program name with args. 18365set dummy pkg-config; ac_word=$2 18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18367$as_echo_n "checking for $ac_word... " >&6; } 18368if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18369 $as_echo_n "(cached) " >&6 18370else 18371 case $ac_pt_PKG_CONFIG in 18372 [\\/]* | ?:[\\/]*) 18373 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18374 ;; 18375 *) 18376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18377for as_dir in $PATH 18378do 18379 IFS=$as_save_IFS 18380 test -z "$as_dir" && as_dir=. 18381 for ac_exec_ext in '' $ac_executable_extensions; do 18382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18383 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18385 break 2 18386 fi 18387done 18388 done 18389IFS=$as_save_IFS 18390 18391 ;; 18392esac 18393fi 18394ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18395if test -n "$ac_pt_PKG_CONFIG"; then 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18397$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18398else 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18400$as_echo "no" >&6; } 18401fi 18402 18403 if test "x$ac_pt_PKG_CONFIG" = x; then 18404 PKG_CONFIG="" 18405 else 18406 case $cross_compiling:$ac_tool_warned in 18407yes:) 18408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18410ac_tool_warned=yes ;; 18411esac 18412 PKG_CONFIG=$ac_pt_PKG_CONFIG 18413 fi 18414else 18415 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18416fi 18417 18418fi 18419if test -n "$PKG_CONFIG"; then 18420 _pkg_min_version=0.9.0 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18422$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18423 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18425$as_echo "yes" >&6; } 18426 else 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18428$as_echo "no" >&6; } 18429 PKG_CONFIG="" 18430 fi 18431fi 18432 18433 18434 SAVE_CFLAGS="$CFLAGS" 18435 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18437/* end confdefs.h. */ 18438 18439#include "xorg-server.h" 18440#if !defined RANDR 18441#error RANDR not defined 18442#endif 18443 18444int 18445main () 18446{ 18447 18448 ; 18449 return 0; 18450} 18451_ACEOF 18452if ac_fn_c_try_compile "$LINENO"; then : 18453 _EXT_CHECK=yes 18454else 18455 _EXT_CHECK=no 18456fi 18457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18458 CFLAGS="$SAVE_CFLAGS" 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18460$as_echo_n "checking if RANDR is defined... " >&6; } 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18462$as_echo "$_EXT_CHECK" >&6; } 18463 if test "$_EXT_CHECK" != no; then 18464 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18465 fi 18466 18467 18468 18469 SAVE_CFLAGS="$CFLAGS" 18470 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18472/* end confdefs.h. */ 18473 18474#include "xorg-server.h" 18475#if !defined XINPUT 18476#error XINPUT not defined 18477#endif 18478 18479int 18480main () 18481{ 18482 18483 ; 18484 return 0; 18485} 18486_ACEOF 18487if ac_fn_c_try_compile "$LINENO"; then : 18488 _EXT_CHECK=yes 18489else 18490 _EXT_CHECK=no 18491fi 18492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18493 CFLAGS="$SAVE_CFLAGS" 18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5 18495$as_echo_n "checking if XINPUT is defined... " >&6; } 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18497$as_echo "$_EXT_CHECK" >&6; } 18498 if test "$_EXT_CHECK" != no; then 18499 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 18500 fi 18501 18502 18503# Checks for pkg-config packages 18504 18505pkg_failed=no 18506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18507$as_echo_n "checking for XORG... " >&6; } 18508 18509if test -n "$XORG_CFLAGS"; then 18510 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18511 elif test -n "$PKG_CONFIG"; then 18512 if test -n "$PKG_CONFIG" && \ 18513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5 18514 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5 18515 ac_status=$? 18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18517 test $ac_status = 0; }; then 18518 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null` 18519 test "x$?" != "x0" && pkg_failed=yes 18520else 18521 pkg_failed=yes 18522fi 18523 else 18524 pkg_failed=untried 18525fi 18526if test -n "$XORG_LIBS"; then 18527 pkg_cv_XORG_LIBS="$XORG_LIBS" 18528 elif test -n "$PKG_CONFIG"; then 18529 if test -n "$PKG_CONFIG" && \ 18530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5 18531 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5 18532 ac_status=$? 18533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18534 test $ac_status = 0; }; then 18535 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null` 18536 test "x$?" != "x0" && pkg_failed=yes 18537else 18538 pkg_failed=yes 18539fi 18540 else 18541 pkg_failed=untried 18542fi 18543 18544 18545 18546if test $pkg_failed = yes; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18548$as_echo "no" >&6; } 18549 18550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18551 _pkg_short_errors_supported=yes 18552else 18553 _pkg_short_errors_supported=no 18554fi 18555 if test $_pkg_short_errors_supported = yes; then 18556 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1` 18557 else 18558 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1` 18559 fi 18560 # Put the nasty error message in config.log where it belongs 18561 echo "$XORG_PKG_ERRORS" >&5 18562 18563 as_fn_error $? "Package requirements (xorg-server >= 1.10.0 xproto $REQUIRED_MODULES) were not met: 18564 18565$XORG_PKG_ERRORS 18566 18567Consider adjusting the PKG_CONFIG_PATH environment variable if you 18568installed software in a non-standard prefix. 18569 18570Alternatively, you may set the environment variables XORG_CFLAGS 18571and XORG_LIBS to avoid the need to call pkg-config. 18572See the pkg-config man page for more details." "$LINENO" 5 18573elif test $pkg_failed = untried; then 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18575$as_echo "no" >&6; } 18576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18578as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18579is in your PATH or set the PKG_CONFIG environment variable to the full 18580path to pkg-config. 18581 18582Alternatively, you may set the environment variables XORG_CFLAGS 18583and XORG_LIBS to avoid the need to call pkg-config. 18584See the pkg-config man page for more details. 18585 18586To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18587See \`config.log' for more details" "$LINENO" 5; } 18588else 18589 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18590 XORG_LIBS=$pkg_cv_XORG_LIBS 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18592$as_echo "yes" >&6; } 18593 18594fi 18595sdkdir=$(pkg-config --variable=sdkdir xorg-server) 18596XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS" 18597 18598# Checks for libraries. 18599 18600# Checks for header files. 18601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18602$as_echo_n "checking for ANSI C header files... " >&6; } 18603if ${ac_cv_header_stdc+:} false; then : 18604 $as_echo_n "(cached) " >&6 18605else 18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18607/* end confdefs.h. */ 18608#include <stdlib.h> 18609#include <stdarg.h> 18610#include <string.h> 18611#include <float.h> 18612 18613int 18614main () 18615{ 18616 18617 ; 18618 return 0; 18619} 18620_ACEOF 18621if ac_fn_c_try_compile "$LINENO"; then : 18622 ac_cv_header_stdc=yes 18623else 18624 ac_cv_header_stdc=no 18625fi 18626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18627 18628if test $ac_cv_header_stdc = yes; then 18629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631/* end confdefs.h. */ 18632#include <string.h> 18633 18634_ACEOF 18635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18636 $EGREP "memchr" >/dev/null 2>&1; then : 18637 18638else 18639 ac_cv_header_stdc=no 18640fi 18641rm -f conftest* 18642 18643fi 18644 18645if test $ac_cv_header_stdc = yes; then 18646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18648/* end confdefs.h. */ 18649#include <stdlib.h> 18650 18651_ACEOF 18652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18653 $EGREP "free" >/dev/null 2>&1; then : 18654 18655else 18656 ac_cv_header_stdc=no 18657fi 18658rm -f conftest* 18659 18660fi 18661 18662if test $ac_cv_header_stdc = yes; then 18663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18664 if test "$cross_compiling" = yes; then : 18665 : 18666else 18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18668/* end confdefs.h. */ 18669#include <ctype.h> 18670#include <stdlib.h> 18671#if ((' ' & 0x0FF) == 0x020) 18672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18674#else 18675# define ISLOWER(c) \ 18676 (('a' <= (c) && (c) <= 'i') \ 18677 || ('j' <= (c) && (c) <= 'r') \ 18678 || ('s' <= (c) && (c) <= 'z')) 18679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18680#endif 18681 18682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18683int 18684main () 18685{ 18686 int i; 18687 for (i = 0; i < 256; i++) 18688 if (XOR (islower (i), ISLOWER (i)) 18689 || toupper (i) != TOUPPER (i)) 18690 return 2; 18691 return 0; 18692} 18693_ACEOF 18694if ac_fn_c_try_run "$LINENO"; then : 18695 18696else 18697 ac_cv_header_stdc=no 18698fi 18699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18700 conftest.$ac_objext conftest.beam conftest.$ac_ext 18701fi 18702 18703fi 18704fi 18705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18706$as_echo "$ac_cv_header_stdc" >&6; } 18707if test $ac_cv_header_stdc = yes; then 18708 18709$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18710 18711fi 18712 18713 18714DRIVER_NAME=elographics 18715 18716 18717 18718 18719 18720 18721case $host_os in 18722 solaris*) 18723 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18724 # check for a man page file found in later versions that use 18725 # traditional section numbers instead 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18727$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18728if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18729 $as_echo_n "(cached) " >&6 18730else 18731 test "$cross_compiling" = yes && 18732 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18733if test -r "/usr/share/man/man7/attributes.7"; then 18734 ac_cv_file__usr_share_man_man7_attributes_7=yes 18735else 18736 ac_cv_file__usr_share_man_man7_attributes_7=no 18737fi 18738fi 18739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18740$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18741if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18742 SYSV_MAN_SECTIONS=false 18743else 18744 SYSV_MAN_SECTIONS=true 18745fi 18746 18747 ;; 18748 *) SYSV_MAN_SECTIONS=false ;; 18749esac 18750 18751if test x$APP_MAN_SUFFIX = x ; then 18752 APP_MAN_SUFFIX=1 18753fi 18754if test x$APP_MAN_DIR = x ; then 18755 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18756fi 18757 18758if test x$LIB_MAN_SUFFIX = x ; then 18759 LIB_MAN_SUFFIX=3 18760fi 18761if test x$LIB_MAN_DIR = x ; then 18762 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18763fi 18764 18765if test x$FILE_MAN_SUFFIX = x ; then 18766 case $SYSV_MAN_SECTIONS in 18767 true) FILE_MAN_SUFFIX=4 ;; 18768 *) FILE_MAN_SUFFIX=5 ;; 18769 esac 18770fi 18771if test x$FILE_MAN_DIR = x ; then 18772 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18773fi 18774 18775if test x$MISC_MAN_SUFFIX = x ; then 18776 case $SYSV_MAN_SECTIONS in 18777 true) MISC_MAN_SUFFIX=5 ;; 18778 *) MISC_MAN_SUFFIX=7 ;; 18779 esac 18780fi 18781if test x$MISC_MAN_DIR = x ; then 18782 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18783fi 18784 18785if test x$DRIVER_MAN_SUFFIX = x ; then 18786 case $SYSV_MAN_SECTIONS in 18787 true) DRIVER_MAN_SUFFIX=7 ;; 18788 *) DRIVER_MAN_SUFFIX=4 ;; 18789 esac 18790fi 18791if test x$DRIVER_MAN_DIR = x ; then 18792 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18793fi 18794 18795if test x$ADMIN_MAN_SUFFIX = x ; then 18796 case $SYSV_MAN_SECTIONS in 18797 true) ADMIN_MAN_SUFFIX=1m ;; 18798 *) ADMIN_MAN_SUFFIX=8 ;; 18799 esac 18800fi 18801if test x$ADMIN_MAN_DIR = x ; then 18802 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18803fi 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819XORG_MAN_PAGE="X Version 11" 18820 18821MAN_SUBSTS="\ 18822 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18823 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18824 -e 's|__xservername__|Xorg|g' \ 18825 -e 's|__xconfigfile__|xorg.conf|g' \ 18826 -e 's|__projectroot__|\$(prefix)|g' \ 18827 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18828 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18829 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18830 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18831 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18832 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18833 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18834 18835 18836 18837 18838 18839cat >>confdefs.h <<_ACEOF 18840#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18841_ACEOF 18842 18843 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18844 if test "x$PVM" = "x"; then 18845 PVM="0" 18846 fi 18847 18848cat >>confdefs.h <<_ACEOF 18849#define PACKAGE_VERSION_MINOR $PVM 18850_ACEOF 18851 18852 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18853 if test "x$PVP" = "x"; then 18854 PVP="0" 18855 fi 18856 18857cat >>confdefs.h <<_ACEOF 18858#define PACKAGE_VERSION_PATCHLEVEL $PVP 18859_ACEOF 18860 18861 18862 18863CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18864mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18865|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18866touch \$(top_srcdir)/ChangeLog; \ 18867echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18868 18869 18870 18871ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18872 18873cat >confcache <<\_ACEOF 18874# This file is a shell script that caches the results of configure 18875# tests run on this system so they can be shared between configure 18876# scripts and configure runs, see configure's option --config-cache. 18877# It is not useful on other systems. If it contains results you don't 18878# want to keep, you may remove or edit it. 18879# 18880# config.status only pays attention to the cache file if you give it 18881# the --recheck option to rerun configure. 18882# 18883# `ac_cv_env_foo' variables (set or unset) will be overridden when 18884# loading this file, other *unset* `ac_cv_foo' will be assigned the 18885# following values. 18886 18887_ACEOF 18888 18889# The following way of writing the cache mishandles newlines in values, 18890# but we know of no workaround that is simple, portable, and efficient. 18891# So, we kill variables containing newlines. 18892# Ultrix sh set writes to stderr and can't be redirected directly, 18893# and sets the high bit in the cache file unless we assign to the vars. 18894( 18895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18896 eval ac_val=\$$ac_var 18897 case $ac_val in #( 18898 *${as_nl}*) 18899 case $ac_var in #( 18900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18902 esac 18903 case $ac_var in #( 18904 _ | IFS | as_nl) ;; #( 18905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18906 *) { eval $ac_var=; unset $ac_var;} ;; 18907 esac ;; 18908 esac 18909 done 18910 18911 (set) 2>&1 | 18912 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18913 *${as_nl}ac_space=\ *) 18914 # `set' does not quote correctly, so add quotes: double-quote 18915 # substitution turns \\\\ into \\, and sed turns \\ into \. 18916 sed -n \ 18917 "s/'/'\\\\''/g; 18918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18919 ;; #( 18920 *) 18921 # `set' quotes correctly as required by POSIX, so do not add quotes. 18922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18923 ;; 18924 esac | 18925 sort 18926) | 18927 sed ' 18928 /^ac_cv_env_/b end 18929 t clear 18930 :clear 18931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18932 t end 18933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18934 :end' >>confcache 18935if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18936 if test -w "$cache_file"; then 18937 if test "x$cache_file" != "x/dev/null"; then 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18939$as_echo "$as_me: updating cache $cache_file" >&6;} 18940 if test ! -f "$cache_file" || test -h "$cache_file"; then 18941 cat confcache >"$cache_file" 18942 else 18943 case $cache_file in #( 18944 */* | ?:*) 18945 mv -f confcache "$cache_file"$$ && 18946 mv -f "$cache_file"$$ "$cache_file" ;; #( 18947 *) 18948 mv -f confcache "$cache_file" ;; 18949 esac 18950 fi 18951 fi 18952 else 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18954$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18955 fi 18956fi 18957rm -f confcache 18958 18959test "x$prefix" = xNONE && prefix=$ac_default_prefix 18960# Let make expand exec_prefix. 18961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18962 18963DEFS=-DHAVE_CONFIG_H 18964 18965ac_libobjs= 18966ac_ltlibobjs= 18967for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18968 # 1. Remove the extension, and $U if already installed. 18969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18972 # will be set to the directory where LIBOBJS objects are built. 18973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18975done 18976LIBOBJS=$ac_libobjs 18977 18978LTLIBOBJS=$ac_ltlibobjs 18979 18980 18981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18982$as_echo_n "checking that generated files are newer than configure... " >&6; } 18983 if test -n "$am_sleep_pid"; then 18984 # Hide warnings about reused PIDs. 18985 wait $am_sleep_pid 2>/dev/null 18986 fi 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18988$as_echo "done" >&6; } 18989 if test -n "$EXEEXT"; then 18990 am__EXEEXT_TRUE= 18991 am__EXEEXT_FALSE='#' 18992else 18993 am__EXEEXT_TRUE='#' 18994 am__EXEEXT_FALSE= 18995fi 18996 18997if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18998 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18999Usually this means the macro was only invoked conditionally." "$LINENO" 5 19000fi 19001if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19002 as_fn_error $? "conditional \"AMDEP\" was never defined. 19003Usually this means the macro was only invoked conditionally." "$LINENO" 5 19004fi 19005if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19006 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19007Usually this means the macro was only invoked conditionally." "$LINENO" 5 19008fi 19009if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19011Usually this means the macro was only invoked conditionally." "$LINENO" 5 19012fi 19013 19014: "${CONFIG_STATUS=./config.status}" 19015ac_write_fail=0 19016ac_clean_files_save=$ac_clean_files 19017ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19018{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19019$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19020as_write_fail=0 19021cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19022#! $SHELL 19023# Generated by $as_me. 19024# Run this file to recreate the current configuration. 19025# Compiler output produced by configure, useful for debugging 19026# configure, is in config.log if it exists. 19027 19028debug=false 19029ac_cs_recheck=false 19030ac_cs_silent=false 19031 19032SHELL=\${CONFIG_SHELL-$SHELL} 19033export SHELL 19034_ASEOF 19035cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19036## -------------------- ## 19037## M4sh Initialization. ## 19038## -------------------- ## 19039 19040# Be more Bourne compatible 19041DUALCASE=1; export DUALCASE # for MKS sh 19042if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19043 emulate sh 19044 NULLCMD=: 19045 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19046 # is contrary to our usage. Disable this feature. 19047 alias -g '${1+"$@"}'='"$@"' 19048 setopt NO_GLOB_SUBST 19049else 19050 case `(set -o) 2>/dev/null` in #( 19051 *posix*) : 19052 set -o posix ;; #( 19053 *) : 19054 ;; 19055esac 19056fi 19057 19058 19059as_nl=' 19060' 19061export as_nl 19062# Printing a long string crashes Solaris 7 /usr/bin/printf. 19063as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19064as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19066# Prefer a ksh shell builtin over an external printf program on Solaris, 19067# but without wasting forks for bash or zsh. 19068if test -z "$BASH_VERSION$ZSH_VERSION" \ 19069 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19070 as_echo='print -r --' 19071 as_echo_n='print -rn --' 19072elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19073 as_echo='printf %s\n' 19074 as_echo_n='printf %s' 19075else 19076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19078 as_echo_n='/usr/ucb/echo -n' 19079 else 19080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19081 as_echo_n_body='eval 19082 arg=$1; 19083 case $arg in #( 19084 *"$as_nl"*) 19085 expr "X$arg" : "X\\(.*\\)$as_nl"; 19086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19087 esac; 19088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19089 ' 19090 export as_echo_n_body 19091 as_echo_n='sh -c $as_echo_n_body as_echo' 19092 fi 19093 export as_echo_body 19094 as_echo='sh -c $as_echo_body as_echo' 19095fi 19096 19097# The user is always right. 19098if test "${PATH_SEPARATOR+set}" != set; then 19099 PATH_SEPARATOR=: 19100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19102 PATH_SEPARATOR=';' 19103 } 19104fi 19105 19106 19107# IFS 19108# We need space, tab and new line, in precisely that order. Quoting is 19109# there to prevent editors from complaining about space-tab. 19110# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19111# splitting by setting IFS to empty value.) 19112IFS=" "" $as_nl" 19113 19114# Find who we are. Look in the path if we contain no directory separator. 19115as_myself= 19116case $0 in #(( 19117 *[\\/]* ) as_myself=$0 ;; 19118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19119for as_dir in $PATH 19120do 19121 IFS=$as_save_IFS 19122 test -z "$as_dir" && as_dir=. 19123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19124 done 19125IFS=$as_save_IFS 19126 19127 ;; 19128esac 19129# We did not find ourselves, most probably we were run as `sh COMMAND' 19130# in which case we are not to be found in the path. 19131if test "x$as_myself" = x; then 19132 as_myself=$0 19133fi 19134if test ! -f "$as_myself"; then 19135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19136 exit 1 19137fi 19138 19139# Unset variables that we do not need and which cause bugs (e.g. in 19140# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19141# suppresses any "Segmentation fault" message there. '((' could 19142# trigger a bug in pdksh 5.2.14. 19143for as_var in BASH_ENV ENV MAIL MAILPATH 19144do eval test x\${$as_var+set} = xset \ 19145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19146done 19147PS1='$ ' 19148PS2='> ' 19149PS4='+ ' 19150 19151# NLS nuisances. 19152LC_ALL=C 19153export LC_ALL 19154LANGUAGE=C 19155export LANGUAGE 19156 19157# CDPATH. 19158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19159 19160 19161# as_fn_error STATUS ERROR [LINENO LOG_FD] 19162# ---------------------------------------- 19163# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19164# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19165# script with STATUS, using 1 if that was 0. 19166as_fn_error () 19167{ 19168 as_status=$1; test $as_status -eq 0 && as_status=1 19169 if test "$4"; then 19170 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19172 fi 19173 $as_echo "$as_me: error: $2" >&2 19174 as_fn_exit $as_status 19175} # as_fn_error 19176 19177 19178# as_fn_set_status STATUS 19179# ----------------------- 19180# Set $? to STATUS, without forking. 19181as_fn_set_status () 19182{ 19183 return $1 19184} # as_fn_set_status 19185 19186# as_fn_exit STATUS 19187# ----------------- 19188# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19189as_fn_exit () 19190{ 19191 set +e 19192 as_fn_set_status $1 19193 exit $1 19194} # as_fn_exit 19195 19196# as_fn_unset VAR 19197# --------------- 19198# Portably unset VAR. 19199as_fn_unset () 19200{ 19201 { eval $1=; unset $1;} 19202} 19203as_unset=as_fn_unset 19204# as_fn_append VAR VALUE 19205# ---------------------- 19206# Append the text in VALUE to the end of the definition contained in VAR. Take 19207# advantage of any shell optimizations that allow amortized linear growth over 19208# repeated appends, instead of the typical quadratic growth present in naive 19209# implementations. 19210if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19211 eval 'as_fn_append () 19212 { 19213 eval $1+=\$2 19214 }' 19215else 19216 as_fn_append () 19217 { 19218 eval $1=\$$1\$2 19219 } 19220fi # as_fn_append 19221 19222# as_fn_arith ARG... 19223# ------------------ 19224# Perform arithmetic evaluation on the ARGs, and store the result in the 19225# global $as_val. Take advantage of shells that can avoid forks. The arguments 19226# must be portable across $(()) and expr. 19227if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19228 eval 'as_fn_arith () 19229 { 19230 as_val=$(( $* )) 19231 }' 19232else 19233 as_fn_arith () 19234 { 19235 as_val=`expr "$@" || test $? -eq 1` 19236 } 19237fi # as_fn_arith 19238 19239 19240if expr a : '\(a\)' >/dev/null 2>&1 && 19241 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19242 as_expr=expr 19243else 19244 as_expr=false 19245fi 19246 19247if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19248 as_basename=basename 19249else 19250 as_basename=false 19251fi 19252 19253if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19254 as_dirname=dirname 19255else 19256 as_dirname=false 19257fi 19258 19259as_me=`$as_basename -- "$0" || 19260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19261 X"$0" : 'X\(//\)$' \| \ 19262 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19263$as_echo X/"$0" | 19264 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19265 s//\1/ 19266 q 19267 } 19268 /^X\/\(\/\/\)$/{ 19269 s//\1/ 19270 q 19271 } 19272 /^X\/\(\/\).*/{ 19273 s//\1/ 19274 q 19275 } 19276 s/.*/./; q'` 19277 19278# Avoid depending upon Character Ranges. 19279as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19280as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19281as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19282as_cr_digits='0123456789' 19283as_cr_alnum=$as_cr_Letters$as_cr_digits 19284 19285ECHO_C= ECHO_N= ECHO_T= 19286case `echo -n x` in #((((( 19287-n*) 19288 case `echo 'xy\c'` in 19289 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19290 xy) ECHO_C='\c';; 19291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19292 ECHO_T=' ';; 19293 esac;; 19294*) 19295 ECHO_N='-n';; 19296esac 19297 19298rm -f conf$$ conf$$.exe conf$$.file 19299if test -d conf$$.dir; then 19300 rm -f conf$$.dir/conf$$.file 19301else 19302 rm -f conf$$.dir 19303 mkdir conf$$.dir 2>/dev/null 19304fi 19305if (echo >conf$$.file) 2>/dev/null; then 19306 if ln -s conf$$.file conf$$ 2>/dev/null; then 19307 as_ln_s='ln -s' 19308 # ... but there are two gotchas: 19309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19311 # In both cases, we have to default to `cp -pR'. 19312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19313 as_ln_s='cp -pR' 19314 elif ln conf$$.file conf$$ 2>/dev/null; then 19315 as_ln_s=ln 19316 else 19317 as_ln_s='cp -pR' 19318 fi 19319else 19320 as_ln_s='cp -pR' 19321fi 19322rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19323rmdir conf$$.dir 2>/dev/null 19324 19325 19326# as_fn_mkdir_p 19327# ------------- 19328# Create "$as_dir" as a directory, including parents if necessary. 19329as_fn_mkdir_p () 19330{ 19331 19332 case $as_dir in #( 19333 -*) as_dir=./$as_dir;; 19334 esac 19335 test -d "$as_dir" || eval $as_mkdir_p || { 19336 as_dirs= 19337 while :; do 19338 case $as_dir in #( 19339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19340 *) as_qdir=$as_dir;; 19341 esac 19342 as_dirs="'$as_qdir' $as_dirs" 19343 as_dir=`$as_dirname -- "$as_dir" || 19344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19345 X"$as_dir" : 'X\(//\)[^/]' \| \ 19346 X"$as_dir" : 'X\(//\)$' \| \ 19347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19348$as_echo X"$as_dir" | 19349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19350 s//\1/ 19351 q 19352 } 19353 /^X\(\/\/\)[^/].*/{ 19354 s//\1/ 19355 q 19356 } 19357 /^X\(\/\/\)$/{ 19358 s//\1/ 19359 q 19360 } 19361 /^X\(\/\).*/{ 19362 s//\1/ 19363 q 19364 } 19365 s/.*/./; q'` 19366 test -d "$as_dir" && break 19367 done 19368 test -z "$as_dirs" || eval "mkdir $as_dirs" 19369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19370 19371 19372} # as_fn_mkdir_p 19373if mkdir -p . 2>/dev/null; then 19374 as_mkdir_p='mkdir -p "$as_dir"' 19375else 19376 test -d ./-p && rmdir ./-p 19377 as_mkdir_p=false 19378fi 19379 19380 19381# as_fn_executable_p FILE 19382# ----------------------- 19383# Test if FILE is an executable regular file. 19384as_fn_executable_p () 19385{ 19386 test -f "$1" && test -x "$1" 19387} # as_fn_executable_p 19388as_test_x='test -x' 19389as_executable_p=as_fn_executable_p 19390 19391# Sed expression to map a string onto a valid CPP name. 19392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19393 19394# Sed expression to map a string onto a valid variable name. 19395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19396 19397 19398exec 6>&1 19399## ----------------------------------- ## 19400## Main body of $CONFIG_STATUS script. ## 19401## ----------------------------------- ## 19402_ASEOF 19403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19404 19405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19406# Save the log message, to keep $0 and so on meaningful, and to 19407# report actual input values of CONFIG_FILES etc. instead of their 19408# values after options handling. 19409ac_log=" 19410This file was extended by xf86-input-elographics $as_me 1.4.2, which was 19411generated by GNU Autoconf 2.69. Invocation command line was 19412 19413 CONFIG_FILES = $CONFIG_FILES 19414 CONFIG_HEADERS = $CONFIG_HEADERS 19415 CONFIG_LINKS = $CONFIG_LINKS 19416 CONFIG_COMMANDS = $CONFIG_COMMANDS 19417 $ $0 $@ 19418 19419on `(hostname || uname -n) 2>/dev/null | sed 1q` 19420" 19421 19422_ACEOF 19423 19424case $ac_config_files in *" 19425"*) set x $ac_config_files; shift; ac_config_files=$*;; 19426esac 19427 19428case $ac_config_headers in *" 19429"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19430esac 19431 19432 19433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19434# Files that config.status was made for. 19435config_files="$ac_config_files" 19436config_headers="$ac_config_headers" 19437config_commands="$ac_config_commands" 19438 19439_ACEOF 19440 19441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19442ac_cs_usage="\ 19443\`$as_me' instantiates files and other configuration actions 19444from templates according to the current configuration. Unless the files 19445and actions are specified as TAGs, all are instantiated by default. 19446 19447Usage: $0 [OPTION]... [TAG]... 19448 19449 -h, --help print this help, then exit 19450 -V, --version print version number and configuration settings, then exit 19451 --config print configuration, then exit 19452 -q, --quiet, --silent 19453 do not print progress messages 19454 -d, --debug don't remove temporary files 19455 --recheck update $as_me by reconfiguring in the same conditions 19456 --file=FILE[:TEMPLATE] 19457 instantiate the configuration file FILE 19458 --header=FILE[:TEMPLATE] 19459 instantiate the configuration header FILE 19460 19461Configuration files: 19462$config_files 19463 19464Configuration headers: 19465$config_headers 19466 19467Configuration commands: 19468$config_commands 19469 19470Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/issues>." 19471 19472_ACEOF 19473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19474ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19475ac_cs_version="\\ 19476xf86-input-elographics config.status 1.4.2 19477configured by $0, generated by GNU Autoconf 2.69, 19478 with options \\"\$ac_cs_config\\" 19479 19480Copyright (C) 2012 Free Software Foundation, Inc. 19481This config.status script is free software; the Free Software Foundation 19482gives unlimited permission to copy, distribute and modify it." 19483 19484ac_pwd='$ac_pwd' 19485srcdir='$srcdir' 19486INSTALL='$INSTALL' 19487MKDIR_P='$MKDIR_P' 19488AWK='$AWK' 19489test -n "\$AWK" || AWK=awk 19490_ACEOF 19491 19492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19493# The default lists apply if the user does not specify any file. 19494ac_need_defaults=: 19495while test $# != 0 19496do 19497 case $1 in 19498 --*=?*) 19499 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19500 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19501 ac_shift=: 19502 ;; 19503 --*=) 19504 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19505 ac_optarg= 19506 ac_shift=: 19507 ;; 19508 *) 19509 ac_option=$1 19510 ac_optarg=$2 19511 ac_shift=shift 19512 ;; 19513 esac 19514 19515 case $ac_option in 19516 # Handling of the options. 19517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19518 ac_cs_recheck=: ;; 19519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19520 $as_echo "$ac_cs_version"; exit ;; 19521 --config | --confi | --conf | --con | --co | --c ) 19522 $as_echo "$ac_cs_config"; exit ;; 19523 --debug | --debu | --deb | --de | --d | -d ) 19524 debug=: ;; 19525 --file | --fil | --fi | --f ) 19526 $ac_shift 19527 case $ac_optarg in 19528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19529 '') as_fn_error $? "missing file argument" ;; 19530 esac 19531 as_fn_append CONFIG_FILES " '$ac_optarg'" 19532 ac_need_defaults=false;; 19533 --header | --heade | --head | --hea ) 19534 $ac_shift 19535 case $ac_optarg in 19536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19537 esac 19538 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19539 ac_need_defaults=false;; 19540 --he | --h) 19541 # Conflict between --help and --header 19542 as_fn_error $? "ambiguous option: \`$1' 19543Try \`$0 --help' for more information.";; 19544 --help | --hel | -h ) 19545 $as_echo "$ac_cs_usage"; exit ;; 19546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19547 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19548 ac_cs_silent=: ;; 19549 19550 # This is an error. 19551 -*) as_fn_error $? "unrecognized option: \`$1' 19552Try \`$0 --help' for more information." ;; 19553 19554 *) as_fn_append ac_config_targets " $1" 19555 ac_need_defaults=false ;; 19556 19557 esac 19558 shift 19559done 19560 19561ac_configure_extra_args= 19562 19563if $ac_cs_silent; then 19564 exec 6>/dev/null 19565 ac_configure_extra_args="$ac_configure_extra_args --silent" 19566fi 19567 19568_ACEOF 19569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19570if \$ac_cs_recheck; then 19571 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19572 shift 19573 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19574 CONFIG_SHELL='$SHELL' 19575 export CONFIG_SHELL 19576 exec "\$@" 19577fi 19578 19579_ACEOF 19580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19581exec 5>>config.log 19582{ 19583 echo 19584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19585## Running $as_me. ## 19586_ASBOX 19587 $as_echo "$ac_log" 19588} >&5 19589 19590_ACEOF 19591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19592# 19593# INIT-COMMANDS 19594# 19595AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19596 19597 19598# The HP-UX ksh and POSIX shell print the target directory to stdout 19599# if CDPATH is set. 19600(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19601 19602sed_quote_subst='$sed_quote_subst' 19603double_quote_subst='$double_quote_subst' 19604delay_variable_subst='$delay_variable_subst' 19605enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19606macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19607macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19608enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19609pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19610enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19611shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19612SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19613ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19614PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19615host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19616host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19617host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19618build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19619build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19620build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19621SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19622Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19623GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19624EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19625FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19626LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19627NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19628LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19629max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19630ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19631exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19632lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19633lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19634lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19635lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19636lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19637reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19638reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19639OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19640deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19641file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19642file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19643want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19644DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19645sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19646AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19647AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19648archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19649STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19650RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19651old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19652old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19653old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19654lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19655CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19656CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19657compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19658GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19659lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19660lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19661lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19662lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19663lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 19664lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19665nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19666lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19667lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19668objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19669MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19670lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19671lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19672lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19673lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19674lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19675need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19676MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19677DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19678NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19679LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19680OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19681OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19682libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19683shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19684extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19685archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19686enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19687export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19688whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19689compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19690old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19691old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19692archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19693archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19694module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19695module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19696with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19697allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19698no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19699hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19700hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19701hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19702hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19703hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19704hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19705hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19706inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19707link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19708always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19709export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19710exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19711include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19712prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19713postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19714file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19715variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19716need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19717need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19718version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19719runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19720shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19721shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19722libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19723library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19724soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19725install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19726postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19727postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19728finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19729finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19730hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19731sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19732configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19733configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19734hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19735enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19736enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19737enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19738old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19739striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19740 19741LTCC='$LTCC' 19742LTCFLAGS='$LTCFLAGS' 19743compiler='$compiler_DEFAULT' 19744 19745# A function that is used when there is no print builtin or printf. 19746func_fallback_echo () 19747{ 19748 eval 'cat <<_LTECHO_EOF 19749\$1 19750_LTECHO_EOF' 19751} 19752 19753# Quote evaled strings. 19754for var in SHELL \ 19755ECHO \ 19756PATH_SEPARATOR \ 19757SED \ 19758GREP \ 19759EGREP \ 19760FGREP \ 19761LD \ 19762NM \ 19763LN_S \ 19764lt_SP2NL \ 19765lt_NL2SP \ 19766reload_flag \ 19767OBJDUMP \ 19768deplibs_check_method \ 19769file_magic_cmd \ 19770file_magic_glob \ 19771want_nocaseglob \ 19772DLLTOOL \ 19773sharedlib_from_linklib_cmd \ 19774AR \ 19775AR_FLAGS \ 19776archiver_list_spec \ 19777STRIP \ 19778RANLIB \ 19779CC \ 19780CFLAGS \ 19781compiler \ 19782lt_cv_sys_global_symbol_pipe \ 19783lt_cv_sys_global_symbol_to_cdecl \ 19784lt_cv_sys_global_symbol_to_import \ 19785lt_cv_sys_global_symbol_to_c_name_address \ 19786lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19787lt_cv_nm_interface \ 19788nm_file_list_spec \ 19789lt_cv_truncate_bin \ 19790lt_prog_compiler_no_builtin_flag \ 19791lt_prog_compiler_pic \ 19792lt_prog_compiler_wl \ 19793lt_prog_compiler_static \ 19794lt_cv_prog_compiler_c_o \ 19795need_locks \ 19796MANIFEST_TOOL \ 19797DSYMUTIL \ 19798NMEDIT \ 19799LIPO \ 19800OTOOL \ 19801OTOOL64 \ 19802shrext_cmds \ 19803export_dynamic_flag_spec \ 19804whole_archive_flag_spec \ 19805compiler_needs_object \ 19806with_gnu_ld \ 19807allow_undefined_flag \ 19808no_undefined_flag \ 19809hardcode_libdir_flag_spec \ 19810hardcode_libdir_separator \ 19811exclude_expsyms \ 19812include_expsyms \ 19813file_list_spec \ 19814variables_saved_for_relink \ 19815libname_spec \ 19816library_names_spec \ 19817soname_spec \ 19818install_override_mode \ 19819finish_eval \ 19820old_striplib \ 19821striplib; do 19822 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19823 *[\\\\\\\`\\"\\\$]*) 19824 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19825 ;; 19826 *) 19827 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19828 ;; 19829 esac 19830done 19831 19832# Double-quote double-evaled strings. 19833for var in reload_cmds \ 19834old_postinstall_cmds \ 19835old_postuninstall_cmds \ 19836old_archive_cmds \ 19837extract_expsyms_cmds \ 19838old_archive_from_new_cmds \ 19839old_archive_from_expsyms_cmds \ 19840archive_cmds \ 19841archive_expsym_cmds \ 19842module_cmds \ 19843module_expsym_cmds \ 19844export_symbols_cmds \ 19845prelink_cmds \ 19846postlink_cmds \ 19847postinstall_cmds \ 19848postuninstall_cmds \ 19849finish_cmds \ 19850sys_lib_search_path_spec \ 19851configure_time_dlsearch_path \ 19852configure_time_lt_sys_library_path; do 19853 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19854 *[\\\\\\\`\\"\\\$]*) 19855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19856 ;; 19857 *) 19858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19859 ;; 19860 esac 19861done 19862 19863ac_aux_dir='$ac_aux_dir' 19864 19865# See if we are running on zsh, and set the options that allow our 19866# commands through without removal of \ escapes INIT. 19867if test -n "\${ZSH_VERSION+set}"; then 19868 setopt NO_GLOB_SUBST 19869fi 19870 19871 19872 PACKAGE='$PACKAGE' 19873 VERSION='$VERSION' 19874 RM='$RM' 19875 ofile='$ofile' 19876 19877 19878 19879 19880_ACEOF 19881 19882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19883 19884# Handling of arguments. 19885for ac_config_target in $ac_config_targets 19886do 19887 case $ac_config_target in 19888 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19889 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19890 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19891 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19892 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19893 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19894 19895 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19896 esac 19897done 19898 19899 19900# If the user did not use the arguments to specify the items to instantiate, 19901# then the envvar interface is used. Set only those that are not. 19902# We use the long form for the default assignment because of an extremely 19903# bizarre bug on SunOS 4.1.3. 19904if $ac_need_defaults; then 19905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19908fi 19909 19910# Have a temporary directory for convenience. Make it in the build tree 19911# simply because there is no reason against having it here, and in addition, 19912# creating and moving files from /tmp can sometimes cause problems. 19913# Hook for its removal unless debugging. 19914# Note that there is a small window in which the directory will not be cleaned: 19915# after its creation but before its name has been assigned to `$tmp'. 19916$debug || 19917{ 19918 tmp= ac_tmp= 19919 trap 'exit_status=$? 19920 : "${ac_tmp:=$tmp}" 19921 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19922' 0 19923 trap 'as_fn_exit 1' 1 2 13 15 19924} 19925# Create a (secure) tmp directory for tmp files. 19926 19927{ 19928 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19929 test -d "$tmp" 19930} || 19931{ 19932 tmp=./conf$$-$RANDOM 19933 (umask 077 && mkdir "$tmp") 19934} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19935ac_tmp=$tmp 19936 19937# Set up the scripts for CONFIG_FILES section. 19938# No need to generate them if there are no CONFIG_FILES. 19939# This happens for instance with `./config.status config.h'. 19940if test -n "$CONFIG_FILES"; then 19941 19942 19943ac_cr=`echo X | tr X '\015'` 19944# On cygwin, bash can eat \r inside `` if the user requested igncr. 19945# But we know of no other shell where ac_cr would be empty at this 19946# point, so we can use a bashism as a fallback. 19947if test "x$ac_cr" = x; then 19948 eval ac_cr=\$\'\\r\' 19949fi 19950ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19951if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19952 ac_cs_awk_cr='\\r' 19953else 19954 ac_cs_awk_cr=$ac_cr 19955fi 19956 19957echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19958_ACEOF 19959 19960 19961{ 19962 echo "cat >conf$$subs.awk <<_ACEOF" && 19963 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19964 echo "_ACEOF" 19965} >conf$$subs.sh || 19966 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19967ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19968ac_delim='%!_!# ' 19969for ac_last_try in false false false false false :; do 19970 . ./conf$$subs.sh || 19971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19972 19973 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19974 if test $ac_delim_n = $ac_delim_num; then 19975 break 19976 elif $ac_last_try; then 19977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19978 else 19979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19980 fi 19981done 19982rm -f conf$$subs.sh 19983 19984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19985cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19986_ACEOF 19987sed -n ' 19988h 19989s/^/S["/; s/!.*/"]=/ 19990p 19991g 19992s/^[^!]*!// 19993:repl 19994t repl 19995s/'"$ac_delim"'$// 19996t delim 19997:nl 19998h 19999s/\(.\{148\}\)..*/\1/ 20000t more1 20001s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20002p 20003n 20004b repl 20005:more1 20006s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20007p 20008g 20009s/.\{148\}// 20010t nl 20011:delim 20012h 20013s/\(.\{148\}\)..*/\1/ 20014t more2 20015s/["\\]/\\&/g; s/^/"/; s/$/"/ 20016p 20017b 20018:more2 20019s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20020p 20021g 20022s/.\{148\}// 20023t delim 20024' <conf$$subs.awk | sed ' 20025/^[^""]/{ 20026 N 20027 s/\n// 20028} 20029' >>$CONFIG_STATUS || ac_write_fail=1 20030rm -f conf$$subs.awk 20031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20032_ACAWK 20033cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20034 for (key in S) S_is_set[key] = 1 20035 FS = "" 20036 20037} 20038{ 20039 line = $ 0 20040 nfields = split(line, field, "@") 20041 substed = 0 20042 len = length(field[1]) 20043 for (i = 2; i < nfields; i++) { 20044 key = field[i] 20045 keylen = length(key) 20046 if (S_is_set[key]) { 20047 value = S[key] 20048 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20049 len += length(value) + length(field[++i]) 20050 substed = 1 20051 } else 20052 len += 1 + keylen 20053 } 20054 20055 print line 20056} 20057 20058_ACAWK 20059_ACEOF 20060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20061if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20062 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20063else 20064 cat 20065fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20066 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20067_ACEOF 20068 20069# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20070# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20071# trailing colons and then remove the whole line if VPATH becomes empty 20072# (actually we leave an empty line to preserve line numbers). 20073if test "x$srcdir" = x.; then 20074 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20075h 20076s/// 20077s/^/:/ 20078s/[ ]*$/:/ 20079s/:\$(srcdir):/:/g 20080s/:\${srcdir}:/:/g 20081s/:@srcdir@:/:/g 20082s/^:*// 20083s/:*$// 20084x 20085s/\(=[ ]*\).*/\1/ 20086G 20087s/\n// 20088s/^[^=]*=[ ]*$// 20089}' 20090fi 20091 20092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20093fi # test -n "$CONFIG_FILES" 20094 20095# Set up the scripts for CONFIG_HEADERS section. 20096# No need to generate them if there are no CONFIG_HEADERS. 20097# This happens for instance with `./config.status Makefile'. 20098if test -n "$CONFIG_HEADERS"; then 20099cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20100BEGIN { 20101_ACEOF 20102 20103# Transform confdefs.h into an awk script `defines.awk', embedded as 20104# here-document in config.status, that substitutes the proper values into 20105# config.h.in to produce config.h. 20106 20107# Create a delimiter string that does not exist in confdefs.h, to ease 20108# handling of long lines. 20109ac_delim='%!_!# ' 20110for ac_last_try in false false :; do 20111 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20112 if test -z "$ac_tt"; then 20113 break 20114 elif $ac_last_try; then 20115 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20116 else 20117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20118 fi 20119done 20120 20121# For the awk script, D is an array of macro values keyed by name, 20122# likewise P contains macro parameters if any. Preserve backslash 20123# newline sequences. 20124 20125ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20126sed -n ' 20127s/.\{148\}/&'"$ac_delim"'/g 20128t rset 20129:rset 20130s/^[ ]*#[ ]*define[ ][ ]*/ / 20131t def 20132d 20133:def 20134s/\\$// 20135t bsnl 20136s/["\\]/\\&/g 20137s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20138D["\1"]=" \3"/p 20139s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20140d 20141:bsnl 20142s/["\\]/\\&/g 20143s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20144D["\1"]=" \3\\\\\\n"\\/p 20145t cont 20146s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20147t cont 20148d 20149:cont 20150n 20151s/.\{148\}/&'"$ac_delim"'/g 20152t clear 20153:clear 20154s/\\$// 20155t bsnlc 20156s/["\\]/\\&/g; s/^/"/; s/$/"/p 20157d 20158:bsnlc 20159s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20160b cont 20161' <confdefs.h | sed ' 20162s/'"$ac_delim"'/"\\\ 20163"/g' >>$CONFIG_STATUS || ac_write_fail=1 20164 20165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20166 for (key in D) D_is_set[key] = 1 20167 FS = "" 20168} 20169/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20170 line = \$ 0 20171 split(line, arg, " ") 20172 if (arg[1] == "#") { 20173 defundef = arg[2] 20174 mac1 = arg[3] 20175 } else { 20176 defundef = substr(arg[1], 2) 20177 mac1 = arg[2] 20178 } 20179 split(mac1, mac2, "(") #) 20180 macro = mac2[1] 20181 prefix = substr(line, 1, index(line, defundef) - 1) 20182 if (D_is_set[macro]) { 20183 # Preserve the white space surrounding the "#". 20184 print prefix "define", macro P[macro] D[macro] 20185 next 20186 } else { 20187 # Replace #undef with comments. This is necessary, for example, 20188 # in the case of _POSIX_SOURCE, which is predefined and required 20189 # on some systems where configure will not decide to define it. 20190 if (defundef == "undef") { 20191 print "/*", prefix defundef, macro, "*/" 20192 next 20193 } 20194 } 20195} 20196{ print } 20197_ACAWK 20198_ACEOF 20199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20200 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20201fi # test -n "$CONFIG_HEADERS" 20202 20203 20204eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20205shift 20206for ac_tag 20207do 20208 case $ac_tag in 20209 :[FHLC]) ac_mode=$ac_tag; continue;; 20210 esac 20211 case $ac_mode$ac_tag in 20212 :[FHL]*:*);; 20213 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20214 :[FH]-) ac_tag=-:-;; 20215 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20216 esac 20217 ac_save_IFS=$IFS 20218 IFS=: 20219 set x $ac_tag 20220 IFS=$ac_save_IFS 20221 shift 20222 ac_file=$1 20223 shift 20224 20225 case $ac_mode in 20226 :L) ac_source=$1;; 20227 :[FH]) 20228 ac_file_inputs= 20229 for ac_f 20230 do 20231 case $ac_f in 20232 -) ac_f="$ac_tmp/stdin";; 20233 *) # Look for the file first in the build tree, then in the source tree 20234 # (if the path is not absolute). The absolute path cannot be DOS-style, 20235 # because $ac_f cannot contain `:'. 20236 test -f "$ac_f" || 20237 case $ac_f in 20238 [\\/$]*) false;; 20239 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20240 esac || 20241 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20242 esac 20243 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20244 as_fn_append ac_file_inputs " '$ac_f'" 20245 done 20246 20247 # Let's still pretend it is `configure' which instantiates (i.e., don't 20248 # use $as_me), people would be surprised to read: 20249 # /* config.h. Generated by config.status. */ 20250 configure_input='Generated from '` 20251 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20252 `' by configure.' 20253 if test x"$ac_file" != x-; then 20254 configure_input="$ac_file. $configure_input" 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20256$as_echo "$as_me: creating $ac_file" >&6;} 20257 fi 20258 # Neutralize special characters interpreted by sed in replacement strings. 20259 case $configure_input in #( 20260 *\&* | *\|* | *\\* ) 20261 ac_sed_conf_input=`$as_echo "$configure_input" | 20262 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20263 *) ac_sed_conf_input=$configure_input;; 20264 esac 20265 20266 case $ac_tag in 20267 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20269 esac 20270 ;; 20271 esac 20272 20273 ac_dir=`$as_dirname -- "$ac_file" || 20274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20275 X"$ac_file" : 'X\(//\)[^/]' \| \ 20276 X"$ac_file" : 'X\(//\)$' \| \ 20277 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20278$as_echo X"$ac_file" | 20279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20280 s//\1/ 20281 q 20282 } 20283 /^X\(\/\/\)[^/].*/{ 20284 s//\1/ 20285 q 20286 } 20287 /^X\(\/\/\)$/{ 20288 s//\1/ 20289 q 20290 } 20291 /^X\(\/\).*/{ 20292 s//\1/ 20293 q 20294 } 20295 s/.*/./; q'` 20296 as_dir="$ac_dir"; as_fn_mkdir_p 20297 ac_builddir=. 20298 20299case "$ac_dir" in 20300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20301*) 20302 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20303 # A ".." for each directory in $ac_dir_suffix. 20304 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20305 case $ac_top_builddir_sub in 20306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20308 esac ;; 20309esac 20310ac_abs_top_builddir=$ac_pwd 20311ac_abs_builddir=$ac_pwd$ac_dir_suffix 20312# for backward compatibility: 20313ac_top_builddir=$ac_top_build_prefix 20314 20315case $srcdir in 20316 .) # We are building in place. 20317 ac_srcdir=. 20318 ac_top_srcdir=$ac_top_builddir_sub 20319 ac_abs_top_srcdir=$ac_pwd ;; 20320 [\\/]* | ?:[\\/]* ) # Absolute name. 20321 ac_srcdir=$srcdir$ac_dir_suffix; 20322 ac_top_srcdir=$srcdir 20323 ac_abs_top_srcdir=$srcdir ;; 20324 *) # Relative name. 20325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20326 ac_top_srcdir=$ac_top_build_prefix$srcdir 20327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20328esac 20329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20330 20331 20332 case $ac_mode in 20333 :F) 20334 # 20335 # CONFIG_FILE 20336 # 20337 20338 case $INSTALL in 20339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20340 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20341 esac 20342 ac_MKDIR_P=$MKDIR_P 20343 case $MKDIR_P in 20344 [\\/$]* | ?:[\\/]* ) ;; 20345 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20346 esac 20347_ACEOF 20348 20349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20350# If the template does not know about datarootdir, expand it. 20351# FIXME: This hack should be removed a few years after 2.60. 20352ac_datarootdir_hack=; ac_datarootdir_seen= 20353ac_sed_dataroot=' 20354/datarootdir/ { 20355 p 20356 q 20357} 20358/@datadir@/p 20359/@docdir@/p 20360/@infodir@/p 20361/@localedir@/p 20362/@mandir@/p' 20363case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20364*datarootdir*) ac_datarootdir_seen=yes;; 20365*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20367$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20368_ACEOF 20369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20370 ac_datarootdir_hack=' 20371 s&@datadir@&$datadir&g 20372 s&@docdir@&$docdir&g 20373 s&@infodir@&$infodir&g 20374 s&@localedir@&$localedir&g 20375 s&@mandir@&$mandir&g 20376 s&\\\${datarootdir}&$datarootdir&g' ;; 20377esac 20378_ACEOF 20379 20380# Neutralize VPATH when `$srcdir' = `.'. 20381# Shell code in configure.ac might set extrasub. 20382# FIXME: do we really want to maintain this feature? 20383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20384ac_sed_extra="$ac_vpsub 20385$extrasub 20386_ACEOF 20387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20388:t 20389/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20390s|@configure_input@|$ac_sed_conf_input|;t t 20391s&@top_builddir@&$ac_top_builddir_sub&;t t 20392s&@top_build_prefix@&$ac_top_build_prefix&;t t 20393s&@srcdir@&$ac_srcdir&;t t 20394s&@abs_srcdir@&$ac_abs_srcdir&;t t 20395s&@top_srcdir@&$ac_top_srcdir&;t t 20396s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20397s&@builddir@&$ac_builddir&;t t 20398s&@abs_builddir@&$ac_abs_builddir&;t t 20399s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20400s&@INSTALL@&$ac_INSTALL&;t t 20401s&@MKDIR_P@&$ac_MKDIR_P&;t t 20402$ac_datarootdir_hack 20403" 20404eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20405 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20406 20407test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20408 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20409 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20410 "$ac_tmp/out"`; test -z "$ac_out"; } && 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20412which seems to be undefined. Please make sure it is defined" >&5 20413$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20414which seems to be undefined. Please make sure it is defined" >&2;} 20415 20416 rm -f "$ac_tmp/stdin" 20417 case $ac_file in 20418 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20419 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20420 esac \ 20421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20422 ;; 20423 :H) 20424 # 20425 # CONFIG_HEADER 20426 # 20427 if test x"$ac_file" != x-; then 20428 { 20429 $as_echo "/* $configure_input */" \ 20430 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20431 } >"$ac_tmp/config.h" \ 20432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20433 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20434 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20435$as_echo "$as_me: $ac_file is unchanged" >&6;} 20436 else 20437 rm -f "$ac_file" 20438 mv "$ac_tmp/config.h" "$ac_file" \ 20439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20440 fi 20441 else 20442 $as_echo "/* $configure_input */" \ 20443 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20444 || as_fn_error $? "could not create -" "$LINENO" 5 20445 fi 20446# Compute "$ac_file"'s index in $config_headers. 20447_am_arg="$ac_file" 20448_am_stamp_count=1 20449for _am_header in $config_headers :; do 20450 case $_am_header in 20451 $_am_arg | $_am_arg:* ) 20452 break ;; 20453 * ) 20454 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20455 esac 20456done 20457echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20458$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20459 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20460 X"$_am_arg" : 'X\(//\)$' \| \ 20461 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20462$as_echo X"$_am_arg" | 20463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20464 s//\1/ 20465 q 20466 } 20467 /^X\(\/\/\)[^/].*/{ 20468 s//\1/ 20469 q 20470 } 20471 /^X\(\/\/\)$/{ 20472 s//\1/ 20473 q 20474 } 20475 /^X\(\/\).*/{ 20476 s//\1/ 20477 q 20478 } 20479 s/.*/./; q'`/stamp-h$_am_stamp_count 20480 ;; 20481 20482 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20483$as_echo "$as_me: executing $ac_file commands" >&6;} 20484 ;; 20485 esac 20486 20487 20488 case $ac_file$ac_mode in 20489 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20490 # Older Autoconf quotes --file arguments for eval, but not when files 20491 # are listed without --file. Let's play safe and only enable the eval 20492 # if we detect the quoting. 20493 # TODO: see whether this extra hack can be removed once we start 20494 # requiring Autoconf 2.70 or later. 20495 case $CONFIG_FILES in #( 20496 *\'*) : 20497 eval set x "$CONFIG_FILES" ;; #( 20498 *) : 20499 set x $CONFIG_FILES ;; #( 20500 *) : 20501 ;; 20502esac 20503 shift 20504 # Used to flag and report bootstrapping failures. 20505 am_rc=0 20506 for am_mf 20507 do 20508 # Strip MF so we end up with the name of the file. 20509 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20510 # Check whether this is an Automake generated Makefile which includes 20511 # dependency-tracking related rules and includes. 20512 # Grep'ing the whole file directly is not great: AIX grep has a line 20513 # limit of 2048, but all sed's we know have understand at least 4000. 20514 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20515 || continue 20516 am_dirpart=`$as_dirname -- "$am_mf" || 20517$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20518 X"$am_mf" : 'X\(//\)[^/]' \| \ 20519 X"$am_mf" : 'X\(//\)$' \| \ 20520 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20521$as_echo X"$am_mf" | 20522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20523 s//\1/ 20524 q 20525 } 20526 /^X\(\/\/\)[^/].*/{ 20527 s//\1/ 20528 q 20529 } 20530 /^X\(\/\/\)$/{ 20531 s//\1/ 20532 q 20533 } 20534 /^X\(\/\).*/{ 20535 s//\1/ 20536 q 20537 } 20538 s/.*/./; q'` 20539 am_filepart=`$as_basename -- "$am_mf" || 20540$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20541 X"$am_mf" : 'X\(//\)$' \| \ 20542 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20543$as_echo X/"$am_mf" | 20544 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20545 s//\1/ 20546 q 20547 } 20548 /^X\/\(\/\/\)$/{ 20549 s//\1/ 20550 q 20551 } 20552 /^X\/\(\/\).*/{ 20553 s//\1/ 20554 q 20555 } 20556 s/.*/./; q'` 20557 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20558 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20559 | $MAKE -f - am--depfiles" >&5 20560 (cd "$am_dirpart" \ 20561 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20562 | $MAKE -f - am--depfiles) >&5 2>&5 20563 ac_status=$? 20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); } || am_rc=$? 20566 done 20567 if test $am_rc -ne 0; then 20568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20570as_fn_error $? "Something went wrong bootstrapping makefile fragments 20571 for automatic dependency tracking. Try re-running configure with the 20572 '--disable-dependency-tracking' option to at least be able to build 20573 the package (albeit without support for automatic dependency tracking). 20574See \`config.log' for more details" "$LINENO" 5; } 20575 fi 20576 { am_dirpart=; unset am_dirpart;} 20577 { am_filepart=; unset am_filepart;} 20578 { am_mf=; unset am_mf;} 20579 { am_rc=; unset am_rc;} 20580 rm -f conftest-deps.mk 20581} 20582 ;; 20583 "libtool":C) 20584 20585 # See if we are running on zsh, and set the options that allow our 20586 # commands through without removal of \ escapes. 20587 if test -n "${ZSH_VERSION+set}"; then 20588 setopt NO_GLOB_SUBST 20589 fi 20590 20591 cfgfile=${ofile}T 20592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20593 $RM "$cfgfile" 20594 20595 cat <<_LT_EOF >> "$cfgfile" 20596#! $SHELL 20597# Generated automatically by $as_me ($PACKAGE) $VERSION 20598# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20599# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20600 20601# Provide generalized library-building support services. 20602# Written by Gordon Matzigkeit, 1996 20603 20604# Copyright (C) 2014 Free Software Foundation, Inc. 20605# This is free software; see the source for copying conditions. There is NO 20606# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20607 20608# GNU Libtool is free software; you can redistribute it and/or modify 20609# it under the terms of the GNU General Public License as published by 20610# the Free Software Foundation; either version 2 of of the License, or 20611# (at your option) any later version. 20612# 20613# As a special exception to the GNU General Public License, if you 20614# distribute this file as part of a program or library that is built 20615# using GNU Libtool, you may include this file under the same 20616# distribution terms that you use for the rest of that program. 20617# 20618# GNU Libtool is distributed in the hope that it will be useful, but 20619# WITHOUT ANY WARRANTY; without even the implied warranty of 20620# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20621# GNU General Public License for more details. 20622# 20623# You should have received a copy of the GNU General Public License 20624# along with this program. If not, see <http://www.gnu.org/licenses/>. 20625 20626 20627# The names of the tagged configurations supported by this script. 20628available_tags='' 20629 20630# Configured defaults for sys_lib_dlsearch_path munging. 20631: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20632 20633# ### BEGIN LIBTOOL CONFIG 20634 20635# Whether or not to build static libraries. 20636build_old_libs=$enable_static 20637 20638# Which release of libtool.m4 was used? 20639macro_version=$macro_version 20640macro_revision=$macro_revision 20641 20642# Whether or not to build shared libraries. 20643build_libtool_libs=$enable_shared 20644 20645# What type of objects to build. 20646pic_mode=$pic_mode 20647 20648# Whether or not to optimize for fast installation. 20649fast_install=$enable_fast_install 20650 20651# Shared archive member basename,for filename based shared library versioning on AIX. 20652shared_archive_member_spec=$shared_archive_member_spec 20653 20654# Shell to use when invoking shell scripts. 20655SHELL=$lt_SHELL 20656 20657# An echo program that protects backslashes. 20658ECHO=$lt_ECHO 20659 20660# The PATH separator for the build system. 20661PATH_SEPARATOR=$lt_PATH_SEPARATOR 20662 20663# The host system. 20664host_alias=$host_alias 20665host=$host 20666host_os=$host_os 20667 20668# The build system. 20669build_alias=$build_alias 20670build=$build 20671build_os=$build_os 20672 20673# A sed program that does not truncate output. 20674SED=$lt_SED 20675 20676# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20677Xsed="\$SED -e 1s/^X//" 20678 20679# A grep program that handles long lines. 20680GREP=$lt_GREP 20681 20682# An ERE matcher. 20683EGREP=$lt_EGREP 20684 20685# A literal string matcher. 20686FGREP=$lt_FGREP 20687 20688# A BSD- or MS-compatible name lister. 20689NM=$lt_NM 20690 20691# Whether we need soft or hard links. 20692LN_S=$lt_LN_S 20693 20694# What is the maximum length of a command? 20695max_cmd_len=$max_cmd_len 20696 20697# Object file suffix (normally "o"). 20698objext=$ac_objext 20699 20700# Executable file suffix (normally ""). 20701exeext=$exeext 20702 20703# whether the shell understands "unset". 20704lt_unset=$lt_unset 20705 20706# turn spaces into newlines. 20707SP2NL=$lt_lt_SP2NL 20708 20709# turn newlines into spaces. 20710NL2SP=$lt_lt_NL2SP 20711 20712# convert \$build file names to \$host format. 20713to_host_file_cmd=$lt_cv_to_host_file_cmd 20714 20715# convert \$build files to toolchain format. 20716to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20717 20718# An object symbol dumper. 20719OBJDUMP=$lt_OBJDUMP 20720 20721# Method to check whether dependent libraries are shared objects. 20722deplibs_check_method=$lt_deplibs_check_method 20723 20724# Command to use when deplibs_check_method = "file_magic". 20725file_magic_cmd=$lt_file_magic_cmd 20726 20727# How to find potential files when deplibs_check_method = "file_magic". 20728file_magic_glob=$lt_file_magic_glob 20729 20730# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20731want_nocaseglob=$lt_want_nocaseglob 20732 20733# DLL creation program. 20734DLLTOOL=$lt_DLLTOOL 20735 20736# Command to associate shared and link libraries. 20737sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20738 20739# The archiver. 20740AR=$lt_AR 20741 20742# Flags to create an archive. 20743AR_FLAGS=$lt_AR_FLAGS 20744 20745# How to feed a file listing to the archiver. 20746archiver_list_spec=$lt_archiver_list_spec 20747 20748# A symbol stripping program. 20749STRIP=$lt_STRIP 20750 20751# Commands used to install an old-style archive. 20752RANLIB=$lt_RANLIB 20753old_postinstall_cmds=$lt_old_postinstall_cmds 20754old_postuninstall_cmds=$lt_old_postuninstall_cmds 20755 20756# Whether to use a lock for old archive extraction. 20757lock_old_archive_extraction=$lock_old_archive_extraction 20758 20759# A C compiler. 20760LTCC=$lt_CC 20761 20762# LTCC compiler flags. 20763LTCFLAGS=$lt_CFLAGS 20764 20765# Take the output of nm and produce a listing of raw symbols and C names. 20766global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20767 20768# Transform the output of nm in a proper C declaration. 20769global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20770 20771# Transform the output of nm into a list of symbols to manually relocate. 20772global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20773 20774# Transform the output of nm in a C name address pair. 20775global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20776 20777# Transform the output of nm in a C name address pair when lib prefix is needed. 20778global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20779 20780# The name lister interface. 20781nm_interface=$lt_lt_cv_nm_interface 20782 20783# Specify filename containing input files for \$NM. 20784nm_file_list_spec=$lt_nm_file_list_spec 20785 20786# The root where to search for dependent libraries,and where our libraries should be installed. 20787lt_sysroot=$lt_sysroot 20788 20789# Command to truncate a binary pipe. 20790lt_truncate_bin=$lt_lt_cv_truncate_bin 20791 20792# The name of the directory that contains temporary libtool files. 20793objdir=$objdir 20794 20795# Used to examine libraries when file_magic_cmd begins with "file". 20796MAGIC_CMD=$MAGIC_CMD 20797 20798# Must we lock files when doing compilation? 20799need_locks=$lt_need_locks 20800 20801# Manifest tool. 20802MANIFEST_TOOL=$lt_MANIFEST_TOOL 20803 20804# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20805DSYMUTIL=$lt_DSYMUTIL 20806 20807# Tool to change global to local symbols on Mac OS X. 20808NMEDIT=$lt_NMEDIT 20809 20810# Tool to manipulate fat objects and archives on Mac OS X. 20811LIPO=$lt_LIPO 20812 20813# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20814OTOOL=$lt_OTOOL 20815 20816# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20817OTOOL64=$lt_OTOOL64 20818 20819# Old archive suffix (normally "a"). 20820libext=$libext 20821 20822# Shared library suffix (normally ".so"). 20823shrext_cmds=$lt_shrext_cmds 20824 20825# The commands to extract the exported symbol list from a shared archive. 20826extract_expsyms_cmds=$lt_extract_expsyms_cmds 20827 20828# Variables whose values should be saved in libtool wrapper scripts and 20829# restored at link time. 20830variables_saved_for_relink=$lt_variables_saved_for_relink 20831 20832# Do we need the "lib" prefix for modules? 20833need_lib_prefix=$need_lib_prefix 20834 20835# Do we need a version for libraries? 20836need_version=$need_version 20837 20838# Library versioning type. 20839version_type=$version_type 20840 20841# Shared library runtime path variable. 20842runpath_var=$runpath_var 20843 20844# Shared library path variable. 20845shlibpath_var=$shlibpath_var 20846 20847# Is shlibpath searched before the hard-coded library search path? 20848shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20849 20850# Format of library name prefix. 20851libname_spec=$lt_libname_spec 20852 20853# List of archive names. First name is the real one, the rest are links. 20854# The last name is the one that the linker finds with -lNAME 20855library_names_spec=$lt_library_names_spec 20856 20857# The coded name of the library, if different from the real name. 20858soname_spec=$lt_soname_spec 20859 20860# Permission mode override for installation of shared libraries. 20861install_override_mode=$lt_install_override_mode 20862 20863# Command to use after installation of a shared archive. 20864postinstall_cmds=$lt_postinstall_cmds 20865 20866# Command to use after uninstallation of a shared archive. 20867postuninstall_cmds=$lt_postuninstall_cmds 20868 20869# Commands used to finish a libtool library installation in a directory. 20870finish_cmds=$lt_finish_cmds 20871 20872# As "finish_cmds", except a single script fragment to be evaled but 20873# not shown. 20874finish_eval=$lt_finish_eval 20875 20876# Whether we should hardcode library paths into libraries. 20877hardcode_into_libs=$hardcode_into_libs 20878 20879# Compile-time system search path for libraries. 20880sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20881 20882# Detected run-time system search path for libraries. 20883sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20884 20885# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20886configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20887 20888# Whether dlopen is supported. 20889dlopen_support=$enable_dlopen 20890 20891# Whether dlopen of programs is supported. 20892dlopen_self=$enable_dlopen_self 20893 20894# Whether dlopen of statically linked programs is supported. 20895dlopen_self_static=$enable_dlopen_self_static 20896 20897# Commands to strip libraries. 20898old_striplib=$lt_old_striplib 20899striplib=$lt_striplib 20900 20901 20902# The linker used to build libraries. 20903LD=$lt_LD 20904 20905# How to create reloadable object files. 20906reload_flag=$lt_reload_flag 20907reload_cmds=$lt_reload_cmds 20908 20909# Commands used to build an old-style archive. 20910old_archive_cmds=$lt_old_archive_cmds 20911 20912# A language specific compiler. 20913CC=$lt_compiler 20914 20915# Is the compiler the GNU compiler? 20916with_gcc=$GCC 20917 20918# Compiler flag to turn off builtin functions. 20919no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20920 20921# Additional compiler flags for building library objects. 20922pic_flag=$lt_lt_prog_compiler_pic 20923 20924# How to pass a linker flag through the compiler. 20925wl=$lt_lt_prog_compiler_wl 20926 20927# Compiler flag to prevent dynamic linking. 20928link_static_flag=$lt_lt_prog_compiler_static 20929 20930# Does compiler simultaneously support -c and -o options? 20931compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20932 20933# Whether or not to add -lc for building shared libraries. 20934build_libtool_need_lc=$archive_cmds_need_lc 20935 20936# Whether or not to disallow shared libs when runtime libs are static. 20937allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20938 20939# Compiler flag to allow reflexive dlopens. 20940export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20941 20942# Compiler flag to generate shared objects directly from archives. 20943whole_archive_flag_spec=$lt_whole_archive_flag_spec 20944 20945# Whether the compiler copes with passing no objects directly. 20946compiler_needs_object=$lt_compiler_needs_object 20947 20948# Create an old-style archive from a shared archive. 20949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20950 20951# Create a temporary old-style archive to link instead of a shared archive. 20952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20953 20954# Commands used to build a shared archive. 20955archive_cmds=$lt_archive_cmds 20956archive_expsym_cmds=$lt_archive_expsym_cmds 20957 20958# Commands used to build a loadable module if different from building 20959# a shared archive. 20960module_cmds=$lt_module_cmds 20961module_expsym_cmds=$lt_module_expsym_cmds 20962 20963# Whether we are building with GNU ld or not. 20964with_gnu_ld=$lt_with_gnu_ld 20965 20966# Flag that allows shared libraries with undefined symbols to be built. 20967allow_undefined_flag=$lt_allow_undefined_flag 20968 20969# Flag that enforces no undefined symbols. 20970no_undefined_flag=$lt_no_undefined_flag 20971 20972# Flag to hardcode \$libdir into a binary during linking. 20973# This must work even if \$libdir does not exist 20974hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20975 20976# Whether we need a single "-rpath" flag with a separated argument. 20977hardcode_libdir_separator=$lt_hardcode_libdir_separator 20978 20979# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20980# DIR into the resulting binary. 20981hardcode_direct=$hardcode_direct 20982 20983# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20984# DIR into the resulting binary and the resulting library dependency is 20985# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20986# library is relocated. 20987hardcode_direct_absolute=$hardcode_direct_absolute 20988 20989# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20990# into the resulting binary. 20991hardcode_minus_L=$hardcode_minus_L 20992 20993# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20994# into the resulting binary. 20995hardcode_shlibpath_var=$hardcode_shlibpath_var 20996 20997# Set to "yes" if building a shared library automatically hardcodes DIR 20998# into the library and all subsequent libraries and executables linked 20999# against it. 21000hardcode_automatic=$hardcode_automatic 21001 21002# Set to yes if linker adds runtime paths of dependent libraries 21003# to runtime path list. 21004inherit_rpath=$inherit_rpath 21005 21006# Whether libtool must link a program against all its dependency libraries. 21007link_all_deplibs=$link_all_deplibs 21008 21009# Set to "yes" if exported symbols are required. 21010always_export_symbols=$always_export_symbols 21011 21012# The commands to list exported symbols. 21013export_symbols_cmds=$lt_export_symbols_cmds 21014 21015# Symbols that should not be listed in the preloaded symbols. 21016exclude_expsyms=$lt_exclude_expsyms 21017 21018# Symbols that must always be exported. 21019include_expsyms=$lt_include_expsyms 21020 21021# Commands necessary for linking programs (against libraries) with templates. 21022prelink_cmds=$lt_prelink_cmds 21023 21024# Commands necessary for finishing linking programs. 21025postlink_cmds=$lt_postlink_cmds 21026 21027# Specify filename containing input files. 21028file_list_spec=$lt_file_list_spec 21029 21030# How to hardcode a shared library path into an executable. 21031hardcode_action=$hardcode_action 21032 21033# ### END LIBTOOL CONFIG 21034 21035_LT_EOF 21036 21037 cat <<'_LT_EOF' >> "$cfgfile" 21038 21039# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21040 21041# func_munge_path_list VARIABLE PATH 21042# ----------------------------------- 21043# VARIABLE is name of variable containing _space_ separated list of 21044# directories to be munged by the contents of PATH, which is string 21045# having a format: 21046# "DIR[:DIR]:" 21047# string "DIR[ DIR]" will be prepended to VARIABLE 21048# ":DIR[:DIR]" 21049# string "DIR[ DIR]" will be appended to VARIABLE 21050# "DIRP[:DIRP]::[DIRA:]DIRA" 21051# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21052# "DIRA[ DIRA]" will be appended to VARIABLE 21053# "DIR[:DIR]" 21054# VARIABLE will be replaced by "DIR[ DIR]" 21055func_munge_path_list () 21056{ 21057 case x$2 in 21058 x) 21059 ;; 21060 *:) 21061 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21062 ;; 21063 x:*) 21064 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21065 ;; 21066 *::*) 21067 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21068 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21069 ;; 21070 *) 21071 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21072 ;; 21073 esac 21074} 21075 21076 21077# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21078func_cc_basename () 21079{ 21080 for cc_temp in $*""; do 21081 case $cc_temp in 21082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21084 \-*) ;; 21085 *) break;; 21086 esac 21087 done 21088 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21089} 21090 21091 21092# ### END FUNCTIONS SHARED WITH CONFIGURE 21093 21094_LT_EOF 21095 21096 case $host_os in 21097 aix3*) 21098 cat <<\_LT_EOF >> "$cfgfile" 21099# AIX sometimes has problems with the GCC collect2 program. For some 21100# reason, if we set the COLLECT_NAMES environment variable, the problems 21101# vanish in a puff of smoke. 21102if test set != "${COLLECT_NAMES+set}"; then 21103 COLLECT_NAMES= 21104 export COLLECT_NAMES 21105fi 21106_LT_EOF 21107 ;; 21108 esac 21109 21110 21111ltmain=$ac_aux_dir/ltmain.sh 21112 21113 21114 # We use sed instead of cat because bash on DJGPP gets confused if 21115 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21116 # text mode, it properly converts lines to CR/LF. This bash problem 21117 # is reportedly fixed, but why not run on old versions too? 21118 sed '$q' "$ltmain" >> "$cfgfile" \ 21119 || (rm -f "$cfgfile"; exit 1) 21120 21121 mv -f "$cfgfile" "$ofile" || 21122 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21123 chmod +x "$ofile" 21124 21125 ;; 21126 21127 esac 21128done # for ac_tag 21129 21130 21131as_fn_exit 0 21132_ACEOF 21133ac_clean_files=$ac_clean_files_save 21134 21135test $ac_write_fail = 0 || 21136 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21137 21138 21139# configure is writing to config.log, and then calls config.status. 21140# config.status does its own redirection, appending to config.log. 21141# Unfortunately, on DOS this fails, as config.log is still kept open 21142# by configure, so config.status won't be able to write to it; its 21143# output is simply discarded. So we exec the FD to /dev/null, 21144# effectively closing config.log, so it can be properly (re)opened and 21145# appended to by config.status. When coming back to configure, we 21146# need to make the FD available again. 21147if test "$no_create" != yes; then 21148 ac_cs_success=: 21149 ac_config_status_args= 21150 test "$silent" = yes && 21151 ac_config_status_args="$ac_config_status_args --quiet" 21152 exec 5>/dev/null 21153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21154 exec 5>>config.log 21155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21156 # would make configure fail if this is the last instruction. 21157 $ac_cs_success || as_fn_exit 1 21158fi 21159if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21161$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21162fi 21163 21164