A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for geoipupdate 3.1.1. 4 # 5 # Report bugs to <support@maxmind.com>. 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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if 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 --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -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 test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 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 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 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 244 fi; } 245 IFS=$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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $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 267 exit 255 268 fi 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: support@maxmind.com about your system, including any 279 $0: error possibly output before this message. Then install 280 $0: a modern shell, or manually run the script under such a 281 $0: shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='geoipupdate' 592 PACKAGE_TARNAME='geoipupdate' 593 PACKAGE_VERSION='3.1.1' 594 PACKAGE_STRING='geoipupdate 3.1.1' 595 PACKAGE_BUGREPORT='support@maxmind.com' 596 PACKAGE_URL='' 597 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stdio.h> 601 #ifdef HAVE_SYS_TYPES_H 602 # include <sys/types.h> 603 #endif 604 #ifdef HAVE_SYS_STAT_H 605 # include <sys/stat.h> 606 #endif 607 #ifdef STDC_HEADERS 608 # include <stdlib.h> 609 # include <stddef.h> 610 #else 611 # ifdef HAVE_STDLIB_H 612 # include <stdlib.h> 613 # endif 614 #endif 615 #ifdef HAVE_STRING_H 616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617 # include <memory.h> 618 # endif 619 # include <string.h> 620 #endif 621 #ifdef HAVE_STRINGS_H 622 # include <strings.h> 623 #endif 624 #ifdef HAVE_INTTYPES_H 625 # include <inttypes.h> 626 #endif 627 #ifdef HAVE_STDINT_H 628 # include <stdint.h> 629 #endif 630 #ifdef HAVE_UNISTD_H 631 # include <unistd.h> 632 #endif" 633 634 ac_unique_file="bin/geoipupdate.c" 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 LT_SYS_LIBRARY_PATH 640 OTOOL64 641 OTOOL 642 LIPO 643 NMEDIT 644 DSYMUTIL 645 MANIFEST_TOOL 646 RANLIB 647 ac_ct_AR 648 AR 649 DLLTOOL 650 OBJDUMP 651 LN_S 652 NM 653 ac_ct_DUMPBIN 654 DUMPBIN 655 LD 656 FGREP 657 SED 658 host_os 659 host_vendor 660 host_cpu 661 host 662 build_os 663 build_vendor 664 build_cpu 665 build 666 LIBTOOL 667 GEOIPUPDATE_VERSION_INFO 668 AM_BACKSLASH 669 AM_DEFAULT_VERBOSITY 670 AM_DEFAULT_V 671 AM_V 672 am__fastdepCC_FALSE 673 am__fastdepCC_TRUE 674 CCDEPMODE 675 am__nodep 676 AMDEPBACKSLASH 677 AMDEP_FALSE 678 AMDEP_TRUE 679 am__quote 680 am__include 681 DEPDIR 682 am__untar 683 am__tar 684 AMTAR 685 am__leading_dot 686 SET_MAKE 687 AWK 688 mkdir_p 689 MKDIR_P 690 INSTALL_STRIP_PROGRAM 691 STRIP 692 install_sh 693 MAKEINFO 694 AUTOHEADER 695 AUTOMAKE 696 AUTOCONF 697 ACLOCAL 698 VERSION 699 PACKAGE 700 CYGPATH_W 701 am__isrc 702 INSTALL_DATA 703 INSTALL_SCRIPT 704 INSTALL_PROGRAM 705 EGREP 706 GREP 707 CPP 708 OBJEXT 709 EXEEXT 710 ac_ct_CC 711 CPPFLAGS 712 LDFLAGS 713 CFLAGS 714 CC 715 target_alias 716 host_alias 717 build_alias 718 LIBS 719 ECHO_T 720 ECHO_N 721 ECHO_C 722 DEFS 723 mandir 724 localedir 725 libdir 726 psdir 727 pdfdir 728 dvidir 729 htmldir 730 infodir 731 docdir 732 oldincludedir 733 includedir 734 runstatedir 735 localstatedir 736 sharedstatedir 737 sysconfdir 738 datadir 739 datarootdir 740 libexecdir 741 sbindir 742 bindir 743 program_transform_name 744 prefix 745 exec_prefix 746 PACKAGE_URL 747 PACKAGE_BUGREPORT 748 PACKAGE_STRING 749 PACKAGE_VERSION 750 PACKAGE_TARNAME 751 PACKAGE_NAME 752 PATH_SEPARATOR 753 SHELL' 754 ac_subst_files='' 755 ac_user_opts=' 756 enable_option_checking 757 enable_dependency_tracking 758 enable_silent_rules 759 enable_shared 760 enable_static 761 with_pic 762 enable_fast_install 763 with_aix_soname 764 with_gnu_ld 765 with_sysroot 766 enable_libtool_lock 767 ' 768 ac_precious_vars='build_alias 769 host_alias 770 target_alias 771 CC 772 CFLAGS 773 LDFLAGS 774 LIBS 775 CPPFLAGS 776 CPP 777 LT_SYS_LIBRARY_PATH' 778 779 780 # Initialize some variables set by options. 781 ac_init_help= 782 ac_init_version=false 783 ac_unrecognized_opts= 784 ac_unrecognized_sep= 785 # The variables have the same names as the options, with 786 # dashes changed to underlines. 787 cache_file=/dev/null 788 exec_prefix=NONE 789 no_create= 790 no_recursion= 791 prefix=NONE 792 program_prefix=NONE 793 program_suffix=NONE 794 program_transform_name=s,x,x, 795 silent= 796 site= 797 srcdir= 798 verbose= 799 x_includes=NONE 800 x_libraries=NONE 801 802 # Installation directory options. 803 # These are left unexpanded so users can "make install exec_prefix=/foo" 804 # and all the variables that are supposed to be based on exec_prefix 805 # by default will actually change. 806 # Use braces instead of parens because sh, perl, etc. also accept them. 807 # (The list follows the same order as the GNU Coding Standards.) 808 bindir='${exec_prefix}/bin' 809 sbindir='${exec_prefix}/sbin' 810 libexecdir='${exec_prefix}/libexec' 811 datarootdir='${prefix}/share' 812 datadir='${datarootdir}' 813 sysconfdir='${prefix}/etc' 814 sharedstatedir='${prefix}/com' 815 localstatedir='${prefix}/var' 816 runstatedir='${localstatedir}/run' 817 includedir='${prefix}/include' 818 oldincludedir='/usr/include' 819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820 infodir='${datarootdir}/info' 821 htmldir='${docdir}' 822 dvidir='${docdir}' 823 pdfdir='${docdir}' 824 psdir='${docdir}' 825 libdir='${exec_prefix}/lib' 826 localedir='${datarootdir}/locale' 827 mandir='${datarootdir}/man' 828 829 ac_prev= 830 ac_dashdash= 831 for ac_option 832 do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *=) ac_optarg= ;; 843 *) ac_optarg=yes ;; 844 esac 845 846 # Accept the important Cygnus configure options, so we can diagnose typos. 847 848 case $ac_dashdash$ac_option in 849 --) 850 ac_dashdash=yes ;; 851 852 -bindir | --bindir | --bindi | --bind | --bin | --bi) 853 ac_prev=bindir ;; 854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 855 bindir=$ac_optarg ;; 856 857 -build | --build | --buil | --bui | --bu) 858 ac_prev=build_alias ;; 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 860 build_alias=$ac_optarg ;; 861 862 -cache-file | --cache-file | --cache-fil | --cache-fi \ 863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 864 ac_prev=cache_file ;; 865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 867 cache_file=$ac_optarg ;; 868 869 --config-cache | -C) 870 cache_file=config.cache ;; 871 872 -datadir | --datadir | --datadi | --datad) 873 ac_prev=datadir ;; 874 -datadir=* | --datadir=* | --datadi=* | --datad=*) 875 datadir=$ac_optarg ;; 876 877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 878 | --dataroo | --dataro | --datar) 879 ac_prev=datarootdir ;; 880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 882 datarootdir=$ac_optarg ;; 883 884 -disable-* | --disable-*) 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 886 # Reject names that are not valid shell variable names. 887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 888 as_fn_error $? "invalid feature name: $ac_useropt" 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893 "enable_$ac_useropt" 894 "*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919 "enable_$ac_useropt" 920 "*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=\$ac_optarg ;; 925 926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 928 | --exec | --exe | --ex) 929 ac_prev=exec_prefix ;; 930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 932 | --exec=* | --exe=* | --ex=*) 933 exec_prefix=$ac_optarg ;; 934 935 -gas | --gas | --ga | --g) 936 # Obsolete; use --with-gas. 937 with_gas=yes ;; 938 939 -help | --help | --hel | --he | -h) 940 ac_init_help=long ;; 941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 942 ac_init_help=recursive ;; 943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 944 ac_init_help=short ;; 945 946 -host | --host | --hos | --ho) 947 ac_prev=host_alias ;; 948 -host=* | --host=* | --hos=* | --ho=*) 949 host_alias=$ac_optarg ;; 950 951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 952 ac_prev=htmldir ;; 953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 954 | --ht=*) 955 htmldir=$ac_optarg ;; 956 957 -includedir | --includedir | --includedi | --included | --include \ 958 | --includ | --inclu | --incl | --inc) 959 ac_prev=includedir ;; 960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 961 | --includ=* | --inclu=* | --incl=* | --inc=*) 962 includedir=$ac_optarg ;; 963 964 -infodir | --infodir | --infodi | --infod | --info | --inf) 965 ac_prev=infodir ;; 966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 967 infodir=$ac_optarg ;; 968 969 -libdir | --libdir | --libdi | --libd) 970 ac_prev=libdir ;; 971 -libdir=* | --libdir=* | --libdi=* | --libd=*) 972 libdir=$ac_optarg ;; 973 974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 975 | --libexe | --libex | --libe) 976 ac_prev=libexecdir ;; 977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 978 | --libexe=* | --libex=* | --libe=*) 979 libexecdir=$ac_optarg ;; 980 981 -localedir | --localedir | --localedi | --localed | --locale) 982 ac_prev=localedir ;; 983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 984 localedir=$ac_optarg ;; 985 986 -localstatedir | --localstatedir | --localstatedi | --localstated \ 987 | --localstate | --localstat | --localsta | --localst | --locals) 988 ac_prev=localstatedir ;; 989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 991 localstatedir=$ac_optarg ;; 992 993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 994 ac_prev=mandir ;; 995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 996 mandir=$ac_optarg ;; 997 998 -nfp | --nfp | --nf) 999 # Obsolete; use --without-fp. 1000 with_fp=no ;; 1001 1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1003 | --no-cr | --no-c | -n) 1004 no_create=yes ;; 1005 1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1008 no_recursion=yes ;; 1009 1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1012 | --oldin | --oldi | --old | --ol | --o) 1013 ac_prev=oldincludedir ;; 1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1017 oldincludedir=$ac_optarg ;; 1018 1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1020 ac_prev=prefix ;; 1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1022 prefix=$ac_optarg ;; 1023 1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1025 | --program-pre | --program-pr | --program-p) 1026 ac_prev=program_prefix ;; 1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1029 program_prefix=$ac_optarg ;; 1030 1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1032 | --program-suf | --program-su | --program-s) 1033 ac_prev=program_suffix ;; 1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1036 program_suffix=$ac_optarg ;; 1037 1038 -program-transform-name | --program-transform-name \ 1039 | --program-transform-nam | --program-transform-na \ 1040 | --program-transform-n | --program-transform- \ 1041 | --program-transform | --program-transfor \ 1042 | --program-transfo | --program-transf \ 1043 | --program-trans | --program-tran \ 1044 | --progr-tra | --program-tr | --program-t) 1045 ac_prev=program_transform_name ;; 1046 -program-transform-name=* | --program-transform-name=* \ 1047 | --program-transform-nam=* | --program-transform-na=* \ 1048 | --program-transform-n=* | --program-transform-=* \ 1049 | --program-transform=* | --program-transfor=* \ 1050 | --program-transfo=* | --program-transf=* \ 1051 | --program-trans=* | --program-tran=* \ 1052 | --progr-tra=* | --program-tr=* | --program-t=*) 1053 program_transform_name=$ac_optarg ;; 1054 1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1056 ac_prev=pdfdir ;; 1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1058 pdfdir=$ac_optarg ;; 1059 1060 -psdir | --psdir | --psdi | --psd | --ps) 1061 ac_prev=psdir ;; 1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1063 psdir=$ac_optarg ;; 1064 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 silent=yes ;; 1068 1069 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1070 | --runstate | --runstat | --runsta | --runst | --runs \ 1071 | --run | --ru | --r) 1072 ac_prev=runstatedir ;; 1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1075 | --run=* | --ru=* | --r=*) 1076 runstatedir=$ac_optarg ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132 "with_$ac_useropt" 1133 "*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148 "with_$ac_useropt" 1149 "*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174 Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196 done 1197 1198 if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201 fi 1202 1203 if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209 fi 1210 1211 # Check all directory arguments for consistency. 1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir runstatedir 1216 do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230 done 1231 1232 # There might be people who depend on the old broken behavior: `$host' 1233 # used to hold the argument of --host etc. 1234 # FIXME: To remove some day. 1235 build=$build_alias 1236 host=$host_alias 1237 target=$target_alias 1238 1239 # FIXME: To remove some day. 1240 if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246 fi 1247 1248 ac_tool_prefix= 1249 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251 test "$silent" = yes && exec 6>/dev/null 1252 1253 1254 ac_pwd=`pwd` && test -n "$ac_pwd" && 1255 ac_ls_di=`ls -di .` && 1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262 # Find the source files, if location was not specified. 1263 if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271 $as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293 else 1294 ac_srcdir_defaulted=no 1295 fi 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299 fi 1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301 ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304 # When building in place, set srcdir=. 1305 if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307 fi 1308 # Remove unnecessary trailing slashes from srcdir. 1309 # Double slashes in file names in object file debugging info 1310 # mess up M-x gdb in Emacs. 1311 case $srcdir in 1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313 esac 1314 for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319 done 1320 1321 # 1322 # Report the --help message. 1323 # 1324 if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328 \`configure' configures geoipupdate 3.1.1 to adapt to many kinds of systems. 1329 1330 Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333 VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335 Defaults for the options are specified in brackets. 1336 1337 Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348 Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354 By default, \`make install' will install all the files in 1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357 for instance \`--prefix=\$HOME'. 1358 1359 For better control, use the options below. 1360 1361 Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/geoipupdate] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382 _ACEOF 1383 1384 cat <<\_ACEOF 1385 1386 Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391 System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394 _ACEOF 1395 fi 1396 1397 if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of geoipupdate 3.1.1:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403 Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-dependency-tracking 1408 do not reject slow dependency extractors 1409 --disable-dependency-tracking 1410 speeds up one-time build 1411 --enable-silent-rules less verbose build output (undo: "make V=1") 1412 --disable-silent-rules verbose build output (undo: "make V=0") 1413 --enable-shared[=PKGS] build shared libraries [default=yes] 1414 --enable-static[=PKGS] build static libraries [default=yes] 1415 --enable-fast-install[=PKGS] 1416 optimize for fast installation [default=yes] 1417 --disable-libtool-lock avoid locking (might break parallel builds) 1418 1419 Optional Packages: 1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1423 both] 1424 --with-aix-soname=aix|svr4|both 1425 shared library versioning (aka "SONAME") variant to 1426 provide on AIX, [default=aix]. 1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1428 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1429 compiler's sysroot if not specified). 1430 1431 Some influential environment variables: 1432 CC C compiler command 1433 CFLAGS C compiler flags 1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1435 nonstandard directory <lib dir> 1436 LIBS libraries to pass to the linker, e.g. -l<library> 1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1438 you have headers in a nonstandard directory <include dir> 1439 CPP C preprocessor 1440 LT_SYS_LIBRARY_PATH 1441 User-defined run-time library search path. 1442 1443 Use these variables to override the choices made by `configure' or to help 1444 it to find libraries and programs with nonstandard names/locations. 1445 1446 Report bugs to <support@maxmind.com>. 1447 _ACEOF 1448 ac_status=$? 1449 fi 1450 1451 if test "$ac_init_help" = "recursive"; then 1452 # If there are subdirs, report their specific --help. 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1454 test -d "$ac_dir" || 1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1456 continue 1457 ac_builddir=. 1458 1459 case "$ac_dir" in 1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461 *) 1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1463 # A ".." for each directory in $ac_dir_suffix. 1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1465 case $ac_top_builddir_sub in 1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1468 esac ;; 1469 esac 1470 ac_abs_top_builddir=$ac_pwd 1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1472 # for backward compatibility: 1473 ac_top_builddir=$ac_top_build_prefix 1474 1475 case $srcdir in 1476 .) # We are building in place. 1477 ac_srcdir=. 1478 ac_top_srcdir=$ac_top_builddir_sub 1479 ac_abs_top_srcdir=$ac_pwd ;; 1480 [\\/]* | ?:[\\/]* ) # Absolute name. 1481 ac_srcdir=$srcdir$ac_dir_suffix; 1482 ac_top_srcdir=$srcdir 1483 ac_abs_top_srcdir=$srcdir ;; 1484 *) # Relative name. 1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1486 ac_top_srcdir=$ac_top_build_prefix$srcdir 1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1488 esac 1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1490 1491 cd "$ac_dir" || { ac_status=$?; continue; } 1492 # Check for guested configure. 1493 if test -f "$ac_srcdir/configure.gnu"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1496 elif test -f "$ac_srcdir/configure"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure" --help=recursive 1499 else 1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1501 fi || ac_status=$? 1502 cd "$ac_pwd" || { ac_status=$?; break; } 1503 done 1504 fi 1505 1506 test -n "$ac_init_help" && exit $ac_status 1507 if $ac_init_version; then 1508 cat <<\_ACEOF 1509 geoipupdate configure 3.1.1 1510 generated by GNU Autoconf 2.69 1511 1512 Copyright (C) 2012 Free Software Foundation, Inc. 1513 This configure script is free software; the Free Software Foundation 1514 gives unlimited permission to copy, distribute and modify it. 1515 _ACEOF 1516 exit 1517 fi 1518 1519 ## ------------------------ ## 1520 ## Autoconf initialization. ## 1521 ## ------------------------ ## 1522 1523 # ac_fn_c_try_compile LINENO 1524 # -------------------------- 1525 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1526 ac_fn_c_try_compile () 1527 { 1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529 rm -f conftest.$ac_objext 1530 if { { ac_try="$ac_compile" 1531 case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534 esac 1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536 $as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_compile") 2>conftest.err 1538 ac_status=$? 1539 if test -s conftest.err; then 1540 grep -v '^ *+' conftest.err >conftest.er1 1541 cat conftest.er1 >&5 1542 mv -f conftest.er1 conftest.err 1543 fi 1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1545 test $ac_status = 0; } && { 1546 test -z "$ac_c_werror_flag" || 1547 test ! -s conftest.err 1548 } && test -s conftest.$ac_objext; then : 1549 ac_retval=0 1550 else 1551 $as_echo "$as_me: failed program was:" >&5 1552 sed 's/^/| /' conftest.$ac_ext >&5 1553 1554 ac_retval=1 1555 fi 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1557 as_fn_set_status $ac_retval 1558 1559 } # ac_fn_c_try_compile 1560 1561 # ac_fn_c_try_cpp LINENO 1562 # ---------------------- 1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1564 ac_fn_c_try_cpp () 1565 { 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 if { { ac_try="$ac_cpp conftest.$ac_ext" 1568 case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571 esac 1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573 $as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } > conftest.i && { 1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 }; then : 1586 ac_retval=0 1587 else 1588 $as_echo "$as_me: failed program was:" >&5 1589 sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592 fi 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596 } # ac_fn_c_try_cpp 1597 1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1599 # ------------------------------------------------------- 1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1601 # the include files in INCLUDES and setting the cache variable VAR 1602 # accordingly. 1603 ac_fn_c_check_header_mongrel () 1604 { 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 if eval \${$3+:} false; then : 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1608 $as_echo_n "checking for $2... " >&6; } 1609 if eval \${$3+:} false; then : 1610 $as_echo_n "(cached) " >&6 1611 fi 1612 eval ac_res=\$$3 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1614 $as_echo "$ac_res" >&6; } 1615 else 1616 # Is the header compilable? 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1618 $as_echo_n "checking $2 usability... " >&6; } 1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1620 /* end confdefs.h. */ 1621 $4 1622 #include <$2> 1623 _ACEOF 1624 if ac_fn_c_try_compile "$LINENO"; then : 1625 ac_header_compiler=yes 1626 else 1627 ac_header_compiler=no 1628 fi 1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1631 $as_echo "$ac_header_compiler" >&6; } 1632 1633 # Is the header present? 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1635 $as_echo_n "checking $2 presence... " >&6; } 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637 /* end confdefs.h. */ 1638 #include <$2> 1639 _ACEOF 1640 if ac_fn_c_try_cpp "$LINENO"; then : 1641 ac_header_preproc=yes 1642 else 1643 ac_header_preproc=no 1644 fi 1645 rm -f conftest.err conftest.i conftest.$ac_ext 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1647 $as_echo "$ac_header_preproc" >&6; } 1648 1649 # So? What about this header? 1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1651 yes:no: ) 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1656 ;; 1657 no:yes:* ) 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1668 ( $as_echo "## ---------------------------------- ## 1669 ## Report this to support@maxmind.com ## 1670 ## ---------------------------------- ##" 1671 ) | sed "s/^/$as_me: WARNING: /" >&2 1672 ;; 1673 esac 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1675 $as_echo_n "checking for $2... " >&6; } 1676 if eval \${$3+:} false; then : 1677 $as_echo_n "(cached) " >&6 1678 else 1679 eval "$3=\$ac_header_compiler" 1680 fi 1681 eval ac_res=\$$3 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683 $as_echo "$ac_res" >&6; } 1684 fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687 } # ac_fn_c_check_header_mongrel 1688 1689 # ac_fn_c_try_run LINENO 1690 # ---------------------- 1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1692 # that executables *can* be run. 1693 ac_fn_c_try_run () 1694 { 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_link" 1697 case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700 esac 1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702 $as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>&5 1704 ac_status=$? 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1707 { { case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710 esac 1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712 $as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_try") 2>&5 1714 ac_status=$? 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; }; }; then : 1717 ac_retval=0 1718 else 1719 $as_echo "$as_me: program exited with status $ac_status" >&5 1720 $as_echo "$as_me: failed program was:" >&5 1721 sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=$ac_status 1724 fi 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729 } # ac_fn_c_try_run 1730 1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1732 # ------------------------------------------------------- 1733 # Tests whether HEADER exists and can be compiled using the include files in 1734 # INCLUDES, setting the cache variable VAR accordingly. 1735 ac_fn_c_check_header_compile () 1736 { 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739 $as_echo_n "checking for $2... " >&6; } 1740 if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742 else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744 /* end confdefs.h. */ 1745 $4 1746 #include <$2> 1747 _ACEOF 1748 if ac_fn_c_try_compile "$LINENO"; then : 1749 eval "$3=yes" 1750 else 1751 eval "$3=no" 1752 fi 1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754 fi 1755 eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757 $as_echo "$ac_res" >&6; } 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 1760 } # ac_fn_c_check_header_compile 1761 1762 # ac_fn_c_try_link LINENO 1763 # ----------------------- 1764 # Try to link conftest.$ac_ext, and return whether this succeeded. 1765 ac_fn_c_try_link () 1766 { 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 rm -f conftest.$ac_objext conftest$ac_exeext 1769 if { { ac_try="$ac_link" 1770 case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773 esac 1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775 $as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>conftest.err 1777 ac_status=$? 1778 if test -s conftest.err; then 1779 grep -v '^ *+' conftest.err >conftest.er1 1780 cat conftest.er1 >&5 1781 mv -f conftest.er1 conftest.err 1782 fi 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } && { 1785 test -z "$ac_c_werror_flag" || 1786 test ! -s conftest.err 1787 } && test -s conftest$ac_exeext && { 1788 test "$cross_compiling" = yes || 1789 test -x conftest$ac_exeext 1790 }; then : 1791 ac_retval=0 1792 else 1793 $as_echo "$as_me: failed program was:" >&5 1794 sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=1 1797 fi 1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1800 # interfere with the next link command; also delete a directory that is 1801 # left behind by Apple's compiler. We do this before executing the actions. 1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806 } # ac_fn_c_try_link 1807 1808 # ac_fn_c_check_func LINENO FUNC VAR 1809 # ---------------------------------- 1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1811 ac_fn_c_check_func () 1812 { 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815 $as_echo_n "checking for $2... " >&6; } 1816 if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818 else 1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820 /* end confdefs.h. */ 1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1823 #define $2 innocuous_$2 1824 1825 /* System header to define __stub macros and hopefully few prototypes, 1826 which can conflict with char $2 (); below. 1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1828 <limits.h> exists even on freestanding compilers. */ 1829 1830 #ifdef __STDC__ 1831 # include <limits.h> 1832 #else 1833 # include <assert.h> 1834 #endif 1835 1836 #undef $2 1837 1838 /* Override any GCC internal prototype to avoid an error. 1839 Use char because int might match the return type of a GCC 1840 builtin and then its argument prototype would still apply. */ 1841 #ifdef __cplusplus 1842 extern "C" 1843 #endif 1844 char $2 (); 1845 /* The GNU C library defines this for functions which it implements 1846 to always fail with ENOSYS. Some functions are actually named 1847 something starting with __ and the normal name is an alias. */ 1848 #if defined __stub_$2 || defined __stub___$2 1849 choke me 1850 #endif 1851 1852 int 1853 main () 1854 { 1855 return $2 (); 1856 ; 1857 return 0; 1858 } 1859 _ACEOF 1860 if ac_fn_c_try_link "$LINENO"; then : 1861 eval "$3=yes" 1862 else 1863 eval "$3=no" 1864 fi 1865 rm -f core conftest.err conftest.$ac_objext \ 1866 conftest$ac_exeext conftest.$ac_ext 1867 fi 1868 eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870 $as_echo "$ac_res" >&6; } 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873 } # ac_fn_c_check_func 1874 1875 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1876 # ------------------------------------------- 1877 # Tests whether TYPE exists after having included INCLUDES, setting cache 1878 # variable VAR accordingly. 1879 ac_fn_c_check_type () 1880 { 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883 $as_echo_n "checking for $2... " >&6; } 1884 if eval \${$3+:} false; then : 1885 $as_echo_n "(cached) " >&6 1886 else 1887 eval "$3=no" 1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1889 /* end confdefs.h. */ 1890 $4 1891 int 1892 main () 1893 { 1894 if (sizeof ($2)) 1895 return 0; 1896 ; 1897 return 0; 1898 } 1899 _ACEOF 1900 if ac_fn_c_try_compile "$LINENO"; then : 1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1902 /* end confdefs.h. */ 1903 $4 1904 int 1905 main () 1906 { 1907 if (sizeof (($2))) 1908 return 0; 1909 ; 1910 return 0; 1911 } 1912 _ACEOF 1913 if ac_fn_c_try_compile "$LINENO"; then : 1914 1915 else 1916 eval "$3=yes" 1917 fi 1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1919 fi 1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1921 fi 1922 eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924 $as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927 } # ac_fn_c_check_type 1928 1929 # ac_fn_c_find_uintX_t LINENO BITS VAR 1930 # ------------------------------------ 1931 # Finds an unsigned integer type with width BITS, setting cache variable VAR 1932 # accordingly. 1933 ac_fn_c_find_uintX_t () 1934 { 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1937 $as_echo_n "checking for uint$2_t... " >&6; } 1938 if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940 else 1941 eval "$3=no" 1942 # Order is important - never check a type that is potentially smaller 1943 # than half of the expected target width. 1944 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1945 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947 /* end confdefs.h. */ 1948 $ac_includes_default 1949 int 1950 main () 1951 { 1952 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1953 test_array [0] = 0; 1954 return test_array [0]; 1955 1956 ; 1957 return 0; 1958 } 1959 _ACEOF 1960 if ac_fn_c_try_compile "$LINENO"; then : 1961 case $ac_type in #( 1962 uint$2_t) : 1963 eval "$3=yes" ;; #( 1964 *) : 1965 eval "$3=\$ac_type" ;; 1966 esac 1967 fi 1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969 if eval test \"x\$"$3"\" = x"no"; then : 1970 1971 else 1972 break 1973 fi 1974 done 1975 fi 1976 eval ac_res=\$$3 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1978 $as_echo "$ac_res" >&6; } 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 1981 } # ac_fn_c_find_uintX_t 1982 cat >config.log <<_ACEOF 1983 This file contains any messages produced by compilers while 1984 running configure, to aid debugging if configure makes a mistake. 1985 1986 It was created by geoipupdate $as_me 3.1.1, which was 1987 generated by GNU Autoconf 2.69. Invocation command line was 1988 1989 $ $0 $@ 1990 1991 _ACEOF 1992 exec 5>>config.log 1993 { 1994 cat <<_ASUNAME 1995 ## --------- ## 1996 ## Platform. ## 1997 ## --------- ## 1998 1999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2000 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2001 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2002 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2003 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2004 2005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2007 2008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2011 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2015 2016 _ASUNAME 2017 2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019 for as_dir in $PATH 2020 do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 $as_echo "PATH: $as_dir" 2024 done 2025 IFS=$as_save_IFS 2026 2027 } >&5 2028 2029 cat >&5 <<_ACEOF 2030 2031 2032 ## ----------- ## 2033 ## Core tests. ## 2034 ## ----------- ## 2035 2036 _ACEOF 2037 2038 2039 # Keep a trace of the command line. 2040 # Strip out --no-create and --no-recursion so they do not pile up. 2041 # Strip out --silent because we don't want to record it for future runs. 2042 # Also quote any args containing shell meta-characters. 2043 # Make two passes to allow for proper duplicate-argument suppression. 2044 ac_configure_args= 2045 ac_configure_args0= 2046 ac_configure_args1= 2047 ac_must_keep_next=false 2048 for ac_pass in 1 2 2049 do 2050 for ac_arg 2051 do 2052 case $ac_arg in 2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2055 | -silent | --silent | --silen | --sile | --sil) 2056 continue ;; 2057 *\'*) 2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2059 esac 2060 case $ac_pass in 2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2062 2) 2063 as_fn_append ac_configure_args1 " '$ac_arg'" 2064 if test $ac_must_keep_next = true; then 2065 ac_must_keep_next=false # Got value, back to normal. 2066 else 2067 case $ac_arg in 2068 *=* | --config-cache | -C | -disable-* | --disable-* \ 2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2071 | -with-* | --with-* | -without-* | --without-* | --x) 2072 case "$ac_configure_args0 " in 2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2074 esac 2075 ;; 2076 -* ) ac_must_keep_next=true ;; 2077 esac 2078 fi 2079 as_fn_append ac_configure_args " '$ac_arg'" 2080 ;; 2081 esac 2082 done 2083 done 2084 { ac_configure_args0=; unset ac_configure_args0;} 2085 { ac_configure_args1=; unset ac_configure_args1;} 2086 2087 # When interrupted or exit'd, cleanup temporary files, and complete 2088 # config.log. We remove comments because anyway the quotes in there 2089 # would cause problems or look ugly. 2090 # WARNING: Use '\'' to represent an apostrophe within the trap. 2091 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2092 trap 'exit_status=$? 2093 # Save into config.log some information that might help in debugging. 2094 { 2095 echo 2096 2097 $as_echo "## ---------------- ## 2098 ## Cache variables. ## 2099 ## ---------------- ##" 2100 echo 2101 # The following way of writing the cache mishandles newlines in values, 2102 ( 2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in #( 2106 *${as_nl}*) 2107 case $ac_var in #( 2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2110 esac 2111 case $ac_var in #( 2112 _ | IFS | as_nl) ;; #( 2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2114 *) { eval $ac_var=; unset $ac_var;} ;; 2115 esac ;; 2116 esac 2117 done 2118 (set) 2>&1 | 2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2120 *${as_nl}ac_space=\ *) 2121 sed -n \ 2122 "s/'\''/'\''\\\\'\'''\''/g; 2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2124 ;; #( 2125 *) 2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2127 ;; 2128 esac | 2129 sort 2130 ) 2131 echo 2132 2133 $as_echo "## ----------------- ## 2134 ## Output variables. ## 2135 ## ----------------- ##" 2136 echo 2137 for ac_var in $ac_subst_vars 2138 do 2139 eval ac_val=\$$ac_var 2140 case $ac_val in 2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2142 esac 2143 $as_echo "$ac_var='\''$ac_val'\''" 2144 done | sort 2145 echo 2146 2147 if test -n "$ac_subst_files"; then 2148 $as_echo "## ------------------- ## 2149 ## File substitutions. ## 2150 ## ------------------- ##" 2151 echo 2152 for ac_var in $ac_subst_files 2153 do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2157 esac 2158 $as_echo "$ac_var='\''$ac_val'\''" 2159 done | sort 2160 echo 2161 fi 2162 2163 if test -s confdefs.h; then 2164 $as_echo "## ----------- ## 2165 ## confdefs.h. ## 2166 ## ----------- ##" 2167 echo 2168 cat confdefs.h 2169 echo 2170 fi 2171 test "$ac_signal" != 0 && 2172 $as_echo "$as_me: caught signal $ac_signal" 2173 $as_echo "$as_me: exit $exit_status" 2174 } >&5 2175 rm -f core *.core core.conftest.* && 2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2177 exit $exit_status 2178 ' 0 2179 for ac_signal in 1 2 13 15; do 2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2181 done 2182 ac_signal=0 2183 2184 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2185 rm -f -r conftest* confdefs.h 2186 2187 $as_echo "/* confdefs.h */" > confdefs.h 2188 2189 # Predefined preprocessor variables. 2190 2191 cat >>confdefs.h <<_ACEOF 2192 #define PACKAGE_NAME "$PACKAGE_NAME" 2193 _ACEOF 2194 2195 cat >>confdefs.h <<_ACEOF 2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2197 _ACEOF 2198 2199 cat >>confdefs.h <<_ACEOF 2200 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2201 _ACEOF 2202 2203 cat >>confdefs.h <<_ACEOF 2204 #define PACKAGE_STRING "$PACKAGE_STRING" 2205 _ACEOF 2206 2207 cat >>confdefs.h <<_ACEOF 2208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2209 _ACEOF 2210 2211 cat >>confdefs.h <<_ACEOF 2212 #define PACKAGE_URL "$PACKAGE_URL" 2213 _ACEOF 2214 2215 2216 # Let the site file select an alternate cache file if it wants to. 2217 # Prefer an explicitly selected file to automatically selected ones. 2218 ac_site_file1=NONE 2219 ac_site_file2=NONE 2220 if test -n "$CONFIG_SITE"; then 2221 # We do not want a PATH search for config.site. 2222 case $CONFIG_SITE in #(( 2223 -*) ac_site_file1=./$CONFIG_SITE;; 2224 */*) ac_site_file1=$CONFIG_SITE;; 2225 *) ac_site_file1=./$CONFIG_SITE;; 2226 esac 2227 elif test "x$prefix" != xNONE; then 2228 ac_site_file1=$prefix/share/config.site 2229 ac_site_file2=$prefix/etc/config.site 2230 else 2231 ac_site_file1=$ac_default_prefix/share/config.site 2232 ac_site_file2=$ac_default_prefix/etc/config.site 2233 fi 2234 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2235 do 2236 test "x$ac_site_file" = xNONE && continue 2237 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2239 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2240 sed 's/^/| /' "$ac_site_file" >&5 2241 . "$ac_site_file" \ 2242 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2244 as_fn_error $? "failed to load site script $ac_site_file 2245 See \`config.log' for more details" "$LINENO" 5; } 2246 fi 2247 done 2248 2249 if test -r "$cache_file"; then 2250 # Some versions of bash will fail to source /dev/null (special files 2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2254 $as_echo "$as_me: loading cache $cache_file" >&6;} 2255 case $cache_file in 2256 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2257 *) . "./$cache_file";; 2258 esac 2259 fi 2260 else 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2262 $as_echo "$as_me: creating cache $cache_file" >&6;} 2263 >$cache_file 2264 fi 2265 2266 # Check that the precious variables saved in the cache have kept the same 2267 # value. 2268 ac_cache_corrupted=false 2269 for ac_var in $ac_precious_vars; do 2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2271 eval ac_new_set=\$ac_env_${ac_var}_set 2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2273 eval ac_new_val=\$ac_env_${ac_var}_value 2274 case $ac_old_set,$ac_new_set in 2275 set,) 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2278 ac_cache_corrupted=: ;; 2279 ,set) 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2282 ac_cache_corrupted=: ;; 2283 ,);; 2284 *) 2285 if test "x$ac_old_val" != "x$ac_new_val"; then 2286 # differences in whitespace do not lead to failure. 2287 ac_old_val_w=`echo x $ac_old_val` 2288 ac_new_val_w=`echo x $ac_new_val` 2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2292 ac_cache_corrupted=: 2293 else 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2296 eval $ac_var=\$ac_old_val 2297 fi 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2302 fi;; 2303 esac 2304 # Pass precious variables to config.status. 2305 if test "$ac_new_set" = set; then 2306 case $ac_new_val in 2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2308 *) ac_arg=$ac_var=$ac_new_val ;; 2309 esac 2310 case " $ac_configure_args " in 2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2313 esac 2314 fi 2315 done 2316 if $ac_cache_corrupted; then 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2322 fi 2323 ## -------------------- ## 2324 ## Main body of script. ## 2325 ## -------------------- ## 2326 2327 ac_ext=c 2328 ac_cpp='$CPP $CPPFLAGS' 2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2332 2333 2334 ac_aux_dir= 2335 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2336 if test -f "$ac_dir/install-sh"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/install-sh -c" 2339 break 2340 elif test -f "$ac_dir/install.sh"; then 2341 ac_aux_dir=$ac_dir 2342 ac_install_sh="$ac_aux_dir/install.sh -c" 2343 break 2344 elif test -f "$ac_dir/shtool"; then 2345 ac_aux_dir=$ac_dir 2346 ac_install_sh="$ac_aux_dir/shtool install -c" 2347 break 2348 fi 2349 done 2350 if test -z "$ac_aux_dir"; then 2351 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2352 fi 2353 2354 # These three variables are undocumented and unsupported, 2355 # and are intended to be withdrawn in a future Autoconf release. 2356 # They can cause serious problems if a builder's source tree is in a directory 2357 # whose full name contains unusual characters. 2358 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2359 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2360 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2361 2362 2363 # Expand $ac_aux_dir to an absolute path. 2364 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2365 2366 ac_ext=c 2367 ac_cpp='$CPP $CPPFLAGS' 2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2371 if test -n "$ac_tool_prefix"; then 2372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2373 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375 $as_echo_n "checking for $ac_word... " >&6; } 2376 if ${ac_cv_prog_CC+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378 else 2379 if test -n "$CC"; then 2380 ac_cv_prog_CC="$CC" # Let the user override the test. 2381 else 2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383 for as_dir in $PATH 2384 do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2391 break 2 2392 fi 2393 done 2394 done 2395 IFS=$as_save_IFS 2396 2397 fi 2398 fi 2399 CC=$ac_cv_prog_CC 2400 if test -n "$CC"; then 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2402 $as_echo "$CC" >&6; } 2403 else 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2405 $as_echo "no" >&6; } 2406 fi 2407 2408 2409 fi 2410 if test -z "$ac_cv_prog_CC"; then 2411 ac_ct_CC=$CC 2412 # Extract the first word of "gcc", so it can be a program name with args. 2413 set dummy gcc; ac_word=$2 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2415 $as_echo_n "checking for $ac_word... " >&6; } 2416 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2417 $as_echo_n "(cached) " >&6 2418 else 2419 if test -n "$ac_ct_CC"; then 2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2421 else 2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423 for as_dir in $PATH 2424 do 2425 IFS=$as_save_IFS 2426 test -z "$as_dir" && as_dir=. 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2429 ac_cv_prog_ac_ct_CC="gcc" 2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2431 break 2 2432 fi 2433 done 2434 done 2435 IFS=$as_save_IFS 2436 2437 fi 2438 fi 2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2440 if test -n "$ac_ct_CC"; then 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2442 $as_echo "$ac_ct_CC" >&6; } 2443 else 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2445 $as_echo "no" >&6; } 2446 fi 2447 2448 if test "x$ac_ct_CC" = x; then 2449 CC="" 2450 else 2451 case $cross_compiling:$ac_tool_warned in 2452 yes:) 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2455 ac_tool_warned=yes ;; 2456 esac 2457 CC=$ac_ct_CC 2458 fi 2459 else 2460 CC="$ac_cv_prog_CC" 2461 fi 2462 2463 if test -z "$CC"; then 2464 if test -n "$ac_tool_prefix"; then 2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2466 set dummy ${ac_tool_prefix}cc; ac_word=$2 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2468 $as_echo_n "checking for $ac_word... " >&6; } 2469 if ${ac_cv_prog_CC+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471 else 2472 if test -n "$CC"; then 2473 ac_cv_prog_CC="$CC" # Let the user override the test. 2474 else 2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476 for as_dir in $PATH 2477 do 2478 IFS=$as_save_IFS 2479 test -z "$as_dir" && as_dir=. 2480 for ac_exec_ext in '' $ac_executable_extensions; do 2481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2482 ac_cv_prog_CC="${ac_tool_prefix}cc" 2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2484 break 2 2485 fi 2486 done 2487 done 2488 IFS=$as_save_IFS 2489 2490 fi 2491 fi 2492 CC=$ac_cv_prog_CC 2493 if test -n "$CC"; then 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2495 $as_echo "$CC" >&6; } 2496 else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2498 $as_echo "no" >&6; } 2499 fi 2500 2501 2502 fi 2503 fi 2504 if test -z "$CC"; then 2505 # Extract the first word of "cc", so it can be a program name with args. 2506 set dummy cc; ac_word=$2 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2508 $as_echo_n "checking for $ac_word... " >&6; } 2509 if ${ac_cv_prog_CC+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511 else 2512 if test -n "$CC"; then 2513 ac_cv_prog_CC="$CC" # Let the user override the test. 2514 else 2515 ac_prog_rejected=no 2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517 for as_dir in $PATH 2518 do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2524 ac_prog_rejected=yes 2525 continue 2526 fi 2527 ac_cv_prog_CC="cc" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531 done 2532 done 2533 IFS=$as_save_IFS 2534 2535 if test $ac_prog_rejected = yes; then 2536 # We found a bogon in the path, so make sure we never use it. 2537 set dummy $ac_cv_prog_CC 2538 shift 2539 if test $# != 0; then 2540 # We chose a different compiler from the bogus one. 2541 # However, it has the same basename, so the bogon will be chosen 2542 # first if we set CC to just the basename; use the full file name. 2543 shift 2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2545 fi 2546 fi 2547 fi 2548 fi 2549 CC=$ac_cv_prog_CC 2550 if test -n "$CC"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2552 $as_echo "$CC" >&6; } 2553 else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2555 $as_echo "no" >&6; } 2556 fi 2557 2558 2559 fi 2560 if test -z "$CC"; then 2561 if test -n "$ac_tool_prefix"; then 2562 for ac_prog in cl.exe 2563 do 2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2567 $as_echo_n "checking for $ac_word... " >&6; } 2568 if ${ac_cv_prog_CC+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570 else 2571 if test -n "$CC"; then 2572 ac_cv_prog_CC="$CC" # Let the user override the test. 2573 else 2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575 for as_dir in $PATH 2576 do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585 done 2586 done 2587 IFS=$as_save_IFS 2588 2589 fi 2590 fi 2591 CC=$ac_cv_prog_CC 2592 if test -n "$CC"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2594 $as_echo "$CC" >&6; } 2595 else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597 $as_echo "no" >&6; } 2598 fi 2599 2600 2601 test -n "$CC" && break 2602 done 2603 fi 2604 if test -z "$CC"; then 2605 ac_ct_CC=$CC 2606 for ac_prog in cl.exe 2607 do 2608 # Extract the first word of "$ac_prog", so it can be a program name with args. 2609 set dummy $ac_prog; ac_word=$2 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2611 $as_echo_n "checking for $ac_word... " >&6; } 2612 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614 else 2615 if test -n "$ac_ct_CC"; then 2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2617 else 2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619 for as_dir in $PATH 2620 do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_ac_ct_CC="$ac_prog" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629 done 2630 done 2631 IFS=$as_save_IFS 2632 2633 fi 2634 fi 2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2636 if test -n "$ac_ct_CC"; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2638 $as_echo "$ac_ct_CC" >&6; } 2639 else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641 $as_echo "no" >&6; } 2642 fi 2643 2644 2645 test -n "$ac_ct_CC" && break 2646 done 2647 2648 if test "x$ac_ct_CC" = x; then 2649 CC="" 2650 else 2651 case $cross_compiling:$ac_tool_warned in 2652 yes:) 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2655 ac_tool_warned=yes ;; 2656 esac 2657 CC=$ac_ct_CC 2658 fi 2659 fi 2660 2661 fi 2662 2663 2664 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2666 as_fn_error $? "no acceptable C compiler found in \$PATH 2667 See \`config.log' for more details" "$LINENO" 5; } 2668 2669 # Provide some information about the compiler. 2670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2671 set X $ac_compile 2672 ac_compiler=$2 2673 for ac_option in --version -v -V -qversion; do 2674 { { ac_try="$ac_compiler $ac_option >&5" 2675 case "(($ac_try" in 2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2677 *) ac_try_echo=$ac_try;; 2678 esac 2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2680 $as_echo "$ac_try_echo"; } >&5 2681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2682 ac_status=$? 2683 if test -s conftest.err; then 2684 sed '10a\ 2685 ... rest of stderr output deleted ... 2686 10q' conftest.err >conftest.er1 2687 cat conftest.er1 >&5 2688 fi 2689 rm -f conftest.er1 conftest.err 2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2691 test $ac_status = 0; } 2692 done 2693 2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2695 /* end confdefs.h. */ 2696 2697 int 2698 main () 2699 { 2700 2701 ; 2702 return 0; 2703 } 2704 _ACEOF 2705 ac_clean_files_save=$ac_clean_files 2706 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2707 # Try to create an executable without -o first, disregard a.out. 2708 # It will help us diagnose broken compilers, and finding out an intuition 2709 # of exeext. 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2711 $as_echo_n "checking whether the C compiler works... " >&6; } 2712 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2713 2714 # The possible output files: 2715 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2716 2717 ac_rmfiles= 2718 for ac_file in $ac_files 2719 do 2720 case $ac_file in 2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2723 esac 2724 done 2725 rm -f $ac_rmfiles 2726 2727 if { { ac_try="$ac_link_default" 2728 case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731 esac 2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2733 $as_echo "$ac_try_echo"; } >&5 2734 (eval "$ac_link_default") 2>&5 2735 ac_status=$? 2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2737 test $ac_status = 0; }; then : 2738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2739 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2740 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2741 # so that the user can short-circuit this test for compilers unknown to 2742 # Autoconf. 2743 for ac_file in $ac_files '' 2744 do 2745 test -f "$ac_file" || continue 2746 case $ac_file in 2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2748 ;; 2749 [ab].out ) 2750 # We found the default executable, but exeext='' is most 2751 # certainly right. 2752 break;; 2753 *.* ) 2754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2755 then :; else 2756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2757 fi 2758 # We set ac_cv_exeext here because the later test for it is not 2759 # safe: cross compilers may not add the suffix if given an `-o' 2760 # argument, so we may need to know it at that point already. 2761 # Even if this section looks crufty: it has the advantage of 2762 # actually working. 2763 break;; 2764 * ) 2765 break;; 2766 esac 2767 done 2768 test "$ac_cv_exeext" = no && ac_cv_exeext= 2769 2770 else 2771 ac_file='' 2772 fi 2773 if test -z "$ac_file"; then : 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775 $as_echo "no" >&6; } 2776 $as_echo "$as_me: failed program was:" >&5 2777 sed 's/^/| /' conftest.$ac_ext >&5 2778 2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2781 as_fn_error 77 "C compiler cannot create executables 2782 See \`config.log' for more details" "$LINENO" 5; } 2783 else 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2785 $as_echo "yes" >&6; } 2786 fi 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2788 $as_echo_n "checking for C compiler default output file name... " >&6; } 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2790 $as_echo "$ac_file" >&6; } 2791 ac_exeext=$ac_cv_exeext 2792 2793 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2794 ac_clean_files=$ac_clean_files_save 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2796 $as_echo_n "checking for suffix of executables... " >&6; } 2797 if { { ac_try="$ac_link" 2798 case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801 esac 2802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2803 $as_echo "$ac_try_echo"; } >&5 2804 (eval "$ac_link") 2>&5 2805 ac_status=$? 2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2807 test $ac_status = 0; }; then : 2808 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2810 # work properly (i.e., refer to `conftest.exe'), while it won't with 2811 # `rm'. 2812 for ac_file in conftest.exe conftest conftest.*; do 2813 test -f "$ac_file" || continue 2814 case $ac_file in 2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2817 break;; 2818 * ) break;; 2819 esac 2820 done 2821 else 2822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2824 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2825 See \`config.log' for more details" "$LINENO" 5; } 2826 fi 2827 rm -f conftest conftest$ac_cv_exeext 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2829 $as_echo "$ac_cv_exeext" >&6; } 2830 2831 rm -f conftest.$ac_ext 2832 EXEEXT=$ac_cv_exeext 2833 ac_exeext=$EXEEXT 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835 /* end confdefs.h. */ 2836 #include <stdio.h> 2837 int 2838 main () 2839 { 2840 FILE *f = fopen ("conftest.out", "w"); 2841 return ferror (f) || fclose (f) != 0; 2842 2843 ; 2844 return 0; 2845 } 2846 _ACEOF 2847 ac_clean_files="$ac_clean_files conftest.out" 2848 # Check that the compiler produces executables we can run. If not, either 2849 # the compiler is broken, or we cross compile. 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2851 $as_echo_n "checking whether we are cross compiling... " >&6; } 2852 if test "$cross_compiling" != yes; then 2853 { { ac_try="$ac_link" 2854 case "(($ac_try" in 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2856 *) ac_try_echo=$ac_try;; 2857 esac 2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2859 $as_echo "$ac_try_echo"; } >&5 2860 (eval "$ac_link") 2>&5 2861 ac_status=$? 2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2863 test $ac_status = 0; } 2864 if { ac_try='./conftest$ac_cv_exeext' 2865 { { case "(($ac_try" in 2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2867 *) ac_try_echo=$ac_try;; 2868 esac 2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2870 $as_echo "$ac_try_echo"; } >&5 2871 (eval "$ac_try") 2>&5 2872 ac_status=$? 2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2874 test $ac_status = 0; }; }; then 2875 cross_compiling=no 2876 else 2877 if test "$cross_compiling" = maybe; then 2878 cross_compiling=yes 2879 else 2880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882 as_fn_error $? "cannot run C compiled programs. 2883 If you meant to cross compile, use \`--host'. 2884 See \`config.log' for more details" "$LINENO" 5; } 2885 fi 2886 fi 2887 fi 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2889 $as_echo "$cross_compiling" >&6; } 2890 2891 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2892 ac_clean_files=$ac_clean_files_save 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2894 $as_echo_n "checking for suffix of object files... " >&6; } 2895 if ${ac_cv_objext+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897 else 2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2899 /* end confdefs.h. */ 2900 2901 int 2902 main () 2903 { 2904 2905 ; 2906 return 0; 2907 } 2908 _ACEOF 2909 rm -f conftest.o conftest.obj 2910 if { { ac_try="$ac_compile" 2911 case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914 esac 2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2916 $as_echo "$ac_try_echo"; } >&5 2917 (eval "$ac_compile") 2>&5 2918 ac_status=$? 2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2920 test $ac_status = 0; }; then : 2921 for ac_file in conftest.o conftest.obj conftest.*; do 2922 test -f "$ac_file" || continue; 2923 case $ac_file in 2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2926 break;; 2927 esac 2928 done 2929 else 2930 $as_echo "$as_me: failed program was:" >&5 2931 sed 's/^/| /' conftest.$ac_ext >&5 2932 2933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2935 as_fn_error $? "cannot compute suffix of object files: cannot compile 2936 See \`config.log' for more details" "$LINENO" 5; } 2937 fi 2938 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2939 fi 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2941 $as_echo "$ac_cv_objext" >&6; } 2942 OBJEXT=$ac_cv_objext 2943 ac_objext=$OBJEXT 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2945 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2946 if ${ac_cv_c_compiler_gnu+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948 else 2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2950 /* end confdefs.h. */ 2951 2952 int 2953 main () 2954 { 2955 #ifndef __GNUC__ 2956 choke me 2957 #endif 2958 2959 ; 2960 return 0; 2961 } 2962 _ACEOF 2963 if ac_fn_c_try_compile "$LINENO"; then : 2964 ac_compiler_gnu=yes 2965 else 2966 ac_compiler_gnu=no 2967 fi 2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2970 2971 fi 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2973 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2974 if test $ac_compiler_gnu = yes; then 2975 GCC=yes 2976 else 2977 GCC= 2978 fi 2979 ac_test_CFLAGS=${CFLAGS+set} 2980 ac_save_CFLAGS=$CFLAGS 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2982 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2983 if ${ac_cv_prog_cc_g+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985 else 2986 ac_save_c_werror_flag=$ac_c_werror_flag 2987 ac_c_werror_flag=yes 2988 ac_cv_prog_cc_g=no 2989 CFLAGS="-g" 2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2991 /* end confdefs.h. */ 2992 2993 int 2994 main () 2995 { 2996 2997 ; 2998 return 0; 2999 } 3000 _ACEOF 3001 if ac_fn_c_try_compile "$LINENO"; then : 3002 ac_cv_prog_cc_g=yes 3003 else 3004 CFLAGS="" 3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3006 /* end confdefs.h. */ 3007 3008 int 3009 main () 3010 { 3011 3012 ; 3013 return 0; 3014 } 3015 _ACEOF 3016 if ac_fn_c_try_compile "$LINENO"; then : 3017 3018 else 3019 ac_c_werror_flag=$ac_save_c_werror_flag 3020 CFLAGS="-g" 3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3022 /* end confdefs.h. */ 3023 3024 int 3025 main () 3026 { 3027 3028 ; 3029 return 0; 3030 } 3031 _ACEOF 3032 if ac_fn_c_try_compile "$LINENO"; then : 3033 ac_cv_prog_cc_g=yes 3034 fi 3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3036 fi 3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3038 fi 3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3040 ac_c_werror_flag=$ac_save_c_werror_flag 3041 fi 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3043 $as_echo "$ac_cv_prog_cc_g" >&6; } 3044 if test "$ac_test_CFLAGS" = set; then 3045 CFLAGS=$ac_save_CFLAGS 3046 elif test $ac_cv_prog_cc_g = yes; then 3047 if test "$GCC" = yes; then 3048 CFLAGS="-g -O2" 3049 else 3050 CFLAGS="-g" 3051 fi 3052 else 3053 if test "$GCC" = yes; then 3054 CFLAGS="-O2" 3055 else 3056 CFLAGS= 3057 fi 3058 fi 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3060 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3061 if ${ac_cv_prog_cc_c89+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063 else 3064 ac_cv_prog_cc_c89=no 3065 ac_save_CC=$CC 3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3067 /* end confdefs.h. */ 3068 #include <stdarg.h> 3069 #include <stdio.h> 3070 struct stat; 3071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3072 struct buf { int x; }; 3073 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3074 static char *e (p, i) 3075 char **p; 3076 int i; 3077 { 3078 return p[i]; 3079 } 3080 static char *f (char * (*g) (char **, int), char **p, ...) 3081 { 3082 char *s; 3083 va_list v; 3084 va_start (v,p); 3085 s = g (p, va_arg (v,int)); 3086 va_end (v); 3087 return s; 3088 } 3089 3090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3091 function prototypes and stuff, but not '\xHH' hex character constants. 3092 These don't provoke an error unfortunately, instead are silently treated 3093 as 'x'. The following induces an error, until -std is added to get 3094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3095 array size at least. It's necessary to write '\x00'==0 to get something 3096 that's true only with -std. */ 3097 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3098 3099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3100 inside strings and character constants. */ 3101 #define FOO(x) 'x' 3102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3103 3104 int test (int i, double x); 3105 struct s1 {int (*f) (int a);}; 3106 struct s2 {int (*f) (double a);}; 3107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3108 int argc; 3109 char **argv; 3110 int 3111 main () 3112 { 3113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3114 ; 3115 return 0; 3116 } 3117 _ACEOF 3118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3120 do 3121 CC="$ac_save_CC $ac_arg" 3122 if ac_fn_c_try_compile "$LINENO"; then : 3123 ac_cv_prog_cc_c89=$ac_arg 3124 fi 3125 rm -f core conftest.err conftest.$ac_objext 3126 test "x$ac_cv_prog_cc_c89" != "xno" && break 3127 done 3128 rm -f conftest.$ac_ext 3129 CC=$ac_save_CC 3130 3131 fi 3132 # AC_CACHE_VAL 3133 case "x$ac_cv_prog_cc_c89" in 3134 x) 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3136 $as_echo "none needed" >&6; } ;; 3137 xno) 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3139 $as_echo "unsupported" >&6; } ;; 3140 *) 3141 CC="$CC $ac_cv_prog_cc_c89" 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3143 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3144 esac 3145 if test "x$ac_cv_prog_cc_c89" != xno; then : 3146 3147 fi 3148 3149 ac_ext=c 3150 ac_cpp='$CPP $CPPFLAGS' 3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3154 3155 ac_ext=c 3156 ac_cpp='$CPP $CPPFLAGS' 3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3161 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3162 if ${am_cv_prog_cc_c_o+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164 else 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166 /* end confdefs.h. */ 3167 3168 int 3169 main () 3170 { 3171 3172 ; 3173 return 0; 3174 } 3175 _ACEOF 3176 # Make sure it works both with $CC and with simple cc. 3177 # Following AC_PROG_CC_C_O, we do the test twice because some 3178 # compilers refuse to overwrite an existing .o file with -o, 3179 # though they will create one. 3180 am_cv_prog_cc_c_o=yes 3181 for am_i in 1 2; do 3182 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3183 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3184 ac_status=$? 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); } \ 3187 && test -f conftest2.$ac_objext; then 3188 : OK 3189 else 3190 am_cv_prog_cc_c_o=no 3191 break 3192 fi 3193 done 3194 rm -f core conftest* 3195 unset am_i 3196 fi 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3198 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3199 if test "$am_cv_prog_cc_c_o" != yes; then 3200 # Losing compiler, so override with the script. 3201 # FIXME: It is wrong to rewrite CC. 3202 # But if we don't then we get into trouble of one sort or another. 3203 # A longer-term fix would be to have automake use am__CC in this case, 3204 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3205 CC="$am_aux_dir/compile $CC" 3206 fi 3207 ac_ext=c 3208 ac_cpp='$CPP $CPPFLAGS' 3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3212 3213 3214 3215 ac_ext=c 3216 ac_cpp='$CPP $CPPFLAGS' 3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3221 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3222 # On Suns, sometimes $CPP names a directory. 3223 if test -n "$CPP" && test -d "$CPP"; then 3224 CPP= 3225 fi 3226 if test -z "$CPP"; then 3227 if ${ac_cv_prog_CPP+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229 else 3230 # Double quotes because CPP needs to be expanded 3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3232 do 3233 ac_preproc_ok=false 3234 for ac_c_preproc_warn_flag in '' yes 3235 do 3236 # Use a header file that comes with gcc, so configuring glibc 3237 # with a fresh cross-compiler works. 3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3239 # <limits.h> exists even on freestanding compilers. 3240 # On the NeXT, cc -E runs the code through the compiler's parser, 3241 # not just through cpp. "Syntax error" is here to catch this case. 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243 /* end confdefs.h. */ 3244 #ifdef __STDC__ 3245 # include <limits.h> 3246 #else 3247 # include <assert.h> 3248 #endif 3249 Syntax error 3250 _ACEOF 3251 if ac_fn_c_try_cpp "$LINENO"; then : 3252 3253 else 3254 # Broken: fails on valid input. 3255 continue 3256 fi 3257 rm -f conftest.err conftest.i conftest.$ac_ext 3258 3259 # OK, works on sane cases. Now check whether nonexistent headers 3260 # can be detected and how. 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262 /* end confdefs.h. */ 3263 #include <ac_nonexistent.h> 3264 _ACEOF 3265 if ac_fn_c_try_cpp "$LINENO"; then : 3266 # Broken: success on invalid input. 3267 continue 3268 else 3269 # Passes both tests. 3270 ac_preproc_ok=: 3271 break 3272 fi 3273 rm -f conftest.err conftest.i conftest.$ac_ext 3274 3275 done 3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3277 rm -f conftest.i conftest.err conftest.$ac_ext 3278 if $ac_preproc_ok; then : 3279 break 3280 fi 3281 3282 done 3283 ac_cv_prog_CPP=$CPP 3284 3285 fi 3286 CPP=$ac_cv_prog_CPP 3287 else 3288 ac_cv_prog_CPP=$CPP 3289 fi 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3291 $as_echo "$CPP" >&6; } 3292 ac_preproc_ok=false 3293 for ac_c_preproc_warn_flag in '' yes 3294 do 3295 # Use a header file that comes with gcc, so configuring glibc 3296 # with a fresh cross-compiler works. 3297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3298 # <limits.h> exists even on freestanding compilers. 3299 # On the NeXT, cc -E runs the code through the compiler's parser, 3300 # not just through cpp. "Syntax error" is here to catch this case. 3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3302 /* end confdefs.h. */ 3303 #ifdef __STDC__ 3304 # include <limits.h> 3305 #else 3306 # include <assert.h> 3307 #endif 3308 Syntax error 3309 _ACEOF 3310 if ac_fn_c_try_cpp "$LINENO"; then : 3311 3312 else 3313 # Broken: fails on valid input. 3314 continue 3315 fi 3316 rm -f conftest.err conftest.i conftest.$ac_ext 3317 3318 # OK, works on sane cases. Now check whether nonexistent headers 3319 # can be detected and how. 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321 /* end confdefs.h. */ 3322 #include <ac_nonexistent.h> 3323 _ACEOF 3324 if ac_fn_c_try_cpp "$LINENO"; then : 3325 # Broken: success on invalid input. 3326 continue 3327 else 3328 # Passes both tests. 3329 ac_preproc_ok=: 3330 break 3331 fi 3332 rm -f conftest.err conftest.i conftest.$ac_ext 3333 3334 done 3335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3336 rm -f conftest.i conftest.err conftest.$ac_ext 3337 if $ac_preproc_ok; then : 3338 3339 else 3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3343 See \`config.log' for more details" "$LINENO" 5; } 3344 fi 3345 3346 ac_ext=c 3347 ac_cpp='$CPP $CPPFLAGS' 3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3351 3352 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3354 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3355 if ${ac_cv_path_GREP+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357 else 3358 if test -z "$GREP"; then 3359 ac_path_GREP_found=false 3360 # Loop through the user's path and test for each of PROGNAME-LIST 3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3363 do 3364 IFS=$as_save_IFS 3365 test -z "$as_dir" && as_dir=. 3366 for ac_prog in grep ggrep; do 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3369 as_fn_executable_p "$ac_path_GREP" || continue 3370 # Check for GNU ac_path_GREP and select it if it is found. 3371 # Check for GNU $ac_path_GREP 3372 case `"$ac_path_GREP" --version 2>&1` in 3373 *GNU*) 3374 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3375 *) 3376 ac_count=0 3377 $as_echo_n 0123456789 >"conftest.in" 3378 while : 3379 do 3380 cat "conftest.in" "conftest.in" >"conftest.tmp" 3381 mv "conftest.tmp" "conftest.in" 3382 cp "conftest.in" "conftest.nl" 3383 $as_echo 'GREP' >> "conftest.nl" 3384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3386 as_fn_arith $ac_count + 1 && ac_count=$as_val 3387 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3388 # Best one so far, save it but keep looking for a better one 3389 ac_cv_path_GREP="$ac_path_GREP" 3390 ac_path_GREP_max=$ac_count 3391 fi 3392 # 10*(2^10) chars as input seems more than enough 3393 test $ac_count -gt 10 && break 3394 done 3395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3396 esac 3397 3398 $ac_path_GREP_found && break 3 3399 done 3400 done 3401 done 3402 IFS=$as_save_IFS 3403 if test -z "$ac_cv_path_GREP"; then 3404 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3405 fi 3406 else 3407 ac_cv_path_GREP=$GREP 3408 fi 3409 3410 fi 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3412 $as_echo "$ac_cv_path_GREP" >&6; } 3413 GREP="$ac_cv_path_GREP" 3414 3415 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3417 $as_echo_n "checking for egrep... " >&6; } 3418 if ${ac_cv_path_EGREP+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420 else 3421 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3422 then ac_cv_path_EGREP="$GREP -E" 3423 else 3424 if test -z "$EGREP"; then 3425 ac_path_EGREP_found=false 3426 # Loop through the user's path and test for each of PROGNAME-LIST 3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3429 do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_prog in egrep; do 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3435 as_fn_executable_p "$ac_path_EGREP" || continue 3436 # Check for GNU ac_path_EGREP and select it if it is found. 3437 # Check for GNU $ac_path_EGREP 3438 case `"$ac_path_EGREP" --version 2>&1` in 3439 *GNU*) 3440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3441 *) 3442 ac_count=0 3443 $as_echo_n 0123456789 >"conftest.in" 3444 while : 3445 do 3446 cat "conftest.in" "conftest.in" >"conftest.tmp" 3447 mv "conftest.tmp" "conftest.in" 3448 cp "conftest.in" "conftest.nl" 3449 $as_echo 'EGREP' >> "conftest.nl" 3450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3452 as_fn_arith $ac_count + 1 && ac_count=$as_val 3453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3454 # Best one so far, save it but keep looking for a better one 3455 ac_cv_path_EGREP="$ac_path_EGREP" 3456 ac_path_EGREP_max=$ac_count 3457 fi 3458 # 10*(2^10) chars as input seems more than enough 3459 test $ac_count -gt 10 && break 3460 done 3461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3462 esac 3463 3464 $ac_path_EGREP_found && break 3 3465 done 3466 done 3467 done 3468 IFS=$as_save_IFS 3469 if test -z "$ac_cv_path_EGREP"; then 3470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3471 fi 3472 else 3473 ac_cv_path_EGREP=$EGREP 3474 fi 3475 3476 fi 3477 fi 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3479 $as_echo "$ac_cv_path_EGREP" >&6; } 3480 EGREP="$ac_cv_path_EGREP" 3481 3482 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3484 $as_echo_n "checking for ANSI C header files... " >&6; } 3485 if ${ac_cv_header_stdc+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487 else 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489 /* end confdefs.h. */ 3490 #include <stdlib.h> 3491 #include <stdarg.h> 3492 #include <string.h> 3493 #include <float.h> 3494 3495 int 3496 main () 3497 { 3498 3499 ; 3500 return 0; 3501 } 3502 _ACEOF 3503 if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_header_stdc=yes 3505 else 3506 ac_cv_header_stdc=no 3507 fi 3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509 3510 if test $ac_cv_header_stdc = yes; then 3511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513 /* end confdefs.h. */ 3514 #include <string.h> 3515 3516 _ACEOF 3517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3518 $EGREP "memchr" >/dev/null 2>&1; then : 3519 3520 else 3521 ac_cv_header_stdc=no 3522 fi 3523 rm -f conftest* 3524 3525 fi 3526 3527 if test $ac_cv_header_stdc = yes; then 3528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530 /* end confdefs.h. */ 3531 #include <stdlib.h> 3532 3533 _ACEOF 3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3535 $EGREP "free" >/dev/null 2>&1; then : 3536 3537 else 3538 ac_cv_header_stdc=no 3539 fi 3540 rm -f conftest* 3541 3542 fi 3543 3544 if test $ac_cv_header_stdc = yes; then 3545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3546 if test "$cross_compiling" = yes; then : 3547 : 3548 else 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550 /* end confdefs.h. */ 3551 #include <ctype.h> 3552 #include <stdlib.h> 3553 #if ((' ' & 0x0FF) == 0x020) 3554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3556 #else 3557 # define ISLOWER(c) \ 3558 (('a' <= (c) && (c) <= 'i') \ 3559 || ('j' <= (c) && (c) <= 'r') \ 3560 || ('s' <= (c) && (c) <= 'z')) 3561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3562 #endif 3563 3564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3565 int 3566 main () 3567 { 3568 int i; 3569 for (i = 0; i < 256; i++) 3570 if (XOR (islower (i), ISLOWER (i)) 3571 || toupper (i) != TOUPPER (i)) 3572 return 2; 3573 return 0; 3574 } 3575 _ACEOF 3576 if ac_fn_c_try_run "$LINENO"; then : 3577 3578 else 3579 ac_cv_header_stdc=no 3580 fi 3581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3582 conftest.$ac_objext conftest.beam conftest.$ac_ext 3583 fi 3584 3585 fi 3586 fi 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3588 $as_echo "$ac_cv_header_stdc" >&6; } 3589 if test $ac_cv_header_stdc = yes; then 3590 3591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3592 3593 fi 3594 3595 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3597 inttypes.h stdint.h unistd.h 3598 do : 3599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3600 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3601 " 3602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3603 cat >>confdefs.h <<_ACEOF 3604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3605 _ACEOF 3606 3607 fi 3608 3609 done 3610 3611 3612 3613 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3614 if test "x$ac_cv_header_minix_config_h" = xyes; then : 3615 MINIX=yes 3616 else 3617 MINIX= 3618 fi 3619 3620 3621 if test "$MINIX" = yes; then 3622 3623 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3624 3625 3626 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3627 3628 3629 $as_echo "#define _MINIX 1" >>confdefs.h 3630 3631 fi 3632 3633 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3636 if ${ac_cv_safe_to_define___extensions__+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638 else 3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640 /* end confdefs.h. */ 3641 3642 # define __EXTENSIONS__ 1 3643 $ac_includes_default 3644 int 3645 main () 3646 { 3647 3648 ; 3649 return 0; 3650 } 3651 _ACEOF 3652 if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_safe_to_define___extensions__=yes 3654 else 3655 ac_cv_safe_to_define___extensions__=no 3656 fi 3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658 fi 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3661 test $ac_cv_safe_to_define___extensions__ = yes && 3662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3663 3664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3665 3666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3667 3668 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3669 3670 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3671 3672 3673 3674 am__api_version='1.15' 3675 3676 # Find a good install program. We prefer a C program (faster), 3677 # so one script is as good as another. But avoid the broken or 3678 # incompatible versions: 3679 # SysV /etc/install, /usr/sbin/install 3680 # SunOS /usr/etc/install 3681 # IRIX /sbin/install 3682 # AIX /bin/install 3683 # AmigaOS /C/install, which installs bootblocks on floppy discs 3684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3687 # OS/2's system install, which has a completely different semantic 3688 # ./install, which can be erroneously created by make from ./install.sh. 3689 # Reject install programs that cannot install multiple files. 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3691 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3692 if test -z "$INSTALL"; then 3693 if ${ac_cv_path_install+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695 else 3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697 for as_dir in $PATH 3698 do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 # Account for people who put trailing slashes in PATH elements. 3702 case $as_dir/ in #(( 3703 ./ | .// | /[cC]/* | \ 3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3706 /usr/ucb/* ) ;; 3707 *) 3708 # OSF1 and SCO ODT 3.0 have their own names for install. 3709 # Don't use installbsd from OSF since it installs stuff as root 3710 # by default. 3711 for ac_prog in ginstall scoinst install; do 3712 for ac_exec_ext in '' $ac_executable_extensions; do 3713 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3714 if test $ac_prog = install && 3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3716 # AIX install. It has an incompatible calling convention. 3717 : 3718 elif test $ac_prog = install && 3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3720 # program-specific install script used by HP pwplus--don't use. 3721 : 3722 else 3723 rm -rf conftest.one conftest.two conftest.dir 3724 echo one > conftest.one 3725 echo two > conftest.two 3726 mkdir conftest.dir 3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3728 test -s conftest.one && test -s conftest.two && 3729 test -s conftest.dir/conftest.one && 3730 test -s conftest.dir/conftest.two 3731 then 3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3733 break 3 3734 fi 3735 fi 3736 fi 3737 done 3738 done 3739 ;; 3740 esac 3741 3742 done 3743 IFS=$as_save_IFS 3744 3745 rm -rf conftest.one conftest.two conftest.dir 3746 3747 fi 3748 if test "${ac_cv_path_install+set}" = set; then 3749 INSTALL=$ac_cv_path_install 3750 else 3751 # As a last resort, use the slow shell script. Don't cache a 3752 # value for INSTALL within a source directory, because that will 3753 # break other packages using the cache if that directory is 3754 # removed, or if the value is a relative name. 3755 INSTALL=$ac_install_sh 3756 fi 3757 fi 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3759 $as_echo "$INSTALL" >&6; } 3760 3761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3762 # It thinks the first close brace ends the variable substitution. 3763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3764 3765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3766 3767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3768 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3770 $as_echo_n "checking whether build environment is sane... " >&6; } 3771 # Reject unsafe characters in $srcdir or the absolute working directory 3772 # name. Accept space and tab only in the latter. 3773 am_lf=' 3774 ' 3775 case `pwd` in 3776 *[\\\"\#\$\&\'\`$am_lf]*) 3777 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3778 esac 3779 case $srcdir in 3780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3781 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3782 esac 3783 3784 # Do 'set' in a subshell so we don't clobber the current shell's 3785 # arguments. Must try -L first in case configure is actually a 3786 # symlink; some systems play weird games with the mod time of symlinks 3787 # (eg FreeBSD returns the mod time of the symlink's containing 3788 # directory). 3789 if ( 3790 am_has_slept=no 3791 for am_try in 1 2; do 3792 echo "timestamp, slept: $am_has_slept" > conftest.file 3793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3794 if test "$*" = "X"; then 3795 # -L didn't work. 3796 set X `ls -t "$srcdir/configure" conftest.file` 3797 fi 3798 if test "$*" != "X $srcdir/configure conftest.file" \ 3799 && test "$*" != "X conftest.file $srcdir/configure"; then 3800 3801 # If neither matched, then we have a broken ls. This can happen 3802 # if, for instance, CONFIG_SHELL is bash and it inherits a 3803 # broken ls alias from the environment. This has actually 3804 # happened. Such a system could not be considered "sane". 3805 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3806 alias in your environment" "$LINENO" 5 3807 fi 3808 if test "$2" = conftest.file || test $am_try -eq 2; then 3809 break 3810 fi 3811 # Just in case. 3812 sleep 1 3813 am_has_slept=yes 3814 done 3815 test "$2" = conftest.file 3816 ) 3817 then 3818 # Ok. 3819 : 3820 else 3821 as_fn_error $? "newly created file is older than distributed files! 3822 Check your system clock" "$LINENO" 5 3823 fi 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3825 $as_echo "yes" >&6; } 3826 # If we didn't sleep, we still need to ensure time stamps of config.status and 3827 # generated files are strictly newer. 3828 am_sleep_pid= 3829 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3830 ( sleep 1 ) & 3831 am_sleep_pid=$! 3832 fi 3833 3834 rm -f conftest.file 3835 3836 test "$program_prefix" != NONE && 3837 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3838 # Use a double $ so make ignores it. 3839 test "$program_suffix" != NONE && 3840 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3841 # Double any \ or $. 3842 # By default was `s,x,x', remove it if useless. 3843 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3844 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3845 3846 if test x"${MISSING+set}" != xset; then 3847 case $am_aux_dir in 3848 *\ * | *\ *) 3849 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3850 *) 3851 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3852 esac 3853 fi 3854 # Use eval to expand $SHELL 3855 if eval "$MISSING --is-lightweight"; then 3856 am_missing_run="$MISSING " 3857 else 3858 am_missing_run= 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3860 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3861 fi 3862 3863 if test x"${install_sh+set}" != xset; then 3864 case $am_aux_dir in 3865 *\ * | *\ *) 3866 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3867 *) 3868 install_sh="\${SHELL} $am_aux_dir/install-sh" 3869 esac 3870 fi 3871 3872 # Installed binaries are usually stripped using 'strip' when the user 3873 # run "make install-strip". However 'strip' might not be the right 3874 # tool to use in cross-compilation environments, therefore Automake 3875 # will honor the 'STRIP' environment variable to overrule this program. 3876 if test "$cross_compiling" != no; then 3877 if test -n "$ac_tool_prefix"; then 3878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3879 set dummy ${ac_tool_prefix}strip; ac_word=$2 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3881 $as_echo_n "checking for $ac_word... " >&6; } 3882 if ${ac_cv_prog_STRIP+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884 else 3885 if test -n "$STRIP"; then 3886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3887 else 3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889 for as_dir in $PATH 3890 do 3891 IFS=$as_save_IFS 3892 test -z "$as_dir" && as_dir=. 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3895 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3897 break 2 3898 fi 3899 done 3900 done 3901 IFS=$as_save_IFS 3902 3903 fi 3904 fi 3905 STRIP=$ac_cv_prog_STRIP 3906 if test -n "$STRIP"; then 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3908 $as_echo "$STRIP" >&6; } 3909 else 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911 $as_echo "no" >&6; } 3912 fi 3913 3914 3915 fi 3916 if test -z "$ac_cv_prog_STRIP"; then 3917 ac_ct_STRIP=$STRIP 3918 # Extract the first word of "strip", so it can be a program name with args. 3919 set dummy strip; ac_word=$2 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3921 $as_echo_n "checking for $ac_word... " >&6; } 3922 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924 else 3925 if test -n "$ac_ct_STRIP"; then 3926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3927 else 3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3929 for as_dir in $PATH 3930 do 3931 IFS=$as_save_IFS 3932 test -z "$as_dir" && as_dir=. 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3935 ac_cv_prog_ac_ct_STRIP="strip" 3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3937 break 2 3938 fi 3939 done 3940 done 3941 IFS=$as_save_IFS 3942 3943 fi 3944 fi 3945 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3946 if test -n "$ac_ct_STRIP"; then 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3948 $as_echo "$ac_ct_STRIP" >&6; } 3949 else 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3951 $as_echo "no" >&6; } 3952 fi 3953 3954 if test "x$ac_ct_STRIP" = x; then 3955 STRIP=":" 3956 else 3957 case $cross_compiling:$ac_tool_warned in 3958 yes:) 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3961 ac_tool_warned=yes ;; 3962 esac 3963 STRIP=$ac_ct_STRIP 3964 fi 3965 else 3966 STRIP="$ac_cv_prog_STRIP" 3967 fi 3968 3969 fi 3970 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3971 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3973 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3974 if test -z "$MKDIR_P"; then 3975 if ${ac_cv_path_mkdir+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977 else 3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3980 do 3981 IFS=$as_save_IFS 3982 test -z "$as_dir" && as_dir=. 3983 for ac_prog in mkdir gmkdir; do 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3986 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3987 'mkdir (GNU coreutils) '* | \ 3988 'mkdir (coreutils) '* | \ 3989 'mkdir (fileutils) '4.1*) 3990 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3991 break 3;; 3992 esac 3993 done 3994 done 3995 done 3996 IFS=$as_save_IFS 3997 3998 fi 3999 4000 test -d ./--version && rmdir ./--version 4001 if test "${ac_cv_path_mkdir+set}" = set; then 4002 MKDIR_P="$ac_cv_path_mkdir -p" 4003 else 4004 # As a last resort, use the slow shell script. Don't cache a 4005 # value for MKDIR_P within a source directory, because that will 4006 # break other packages using the cache if that directory is 4007 # removed, or if the value is a relative name. 4008 MKDIR_P="$ac_install_sh -d" 4009 fi 4010 fi 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4012 $as_echo "$MKDIR_P" >&6; } 4013 4014 for ac_prog in gawk mawk nawk awk 4015 do 4016 # Extract the first word of "$ac_prog", so it can be a program name with args. 4017 set dummy $ac_prog; ac_word=$2 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019 $as_echo_n "checking for $ac_word... " >&6; } 4020 if ${ac_cv_prog_AWK+:} false; then : 4021 $as_echo_n "(cached) " >&6 4022 else 4023 if test -n "$AWK"; then 4024 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4025 else 4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027 for as_dir in $PATH 4028 do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4033 ac_cv_prog_AWK="$ac_prog" 4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4035 break 2 4036 fi 4037 done 4038 done 4039 IFS=$as_save_IFS 4040 4041 fi 4042 fi 4043 AWK=$ac_cv_prog_AWK 4044 if test -n "$AWK"; then 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4046 $as_echo "$AWK" >&6; } 4047 else 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049 $as_echo "no" >&6; } 4050 fi 4051 4052 4053 test -n "$AWK" && break 4054 done 4055 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4058 set x ${MAKE-make} 4059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062 else 4063 cat >conftest.make <<\_ACEOF 4064 SHELL = /bin/sh 4065 all: 4066 @echo '@@@%%%=$(MAKE)=@@@%%%' 4067 _ACEOF 4068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4069 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4070 *@@@%%%=?*=@@@%%%*) 4071 eval ac_cv_prog_make_${ac_make}_set=yes;; 4072 *) 4073 eval ac_cv_prog_make_${ac_make}_set=no;; 4074 esac 4075 rm -f conftest.make 4076 fi 4077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4079 $as_echo "yes" >&6; } 4080 SET_MAKE= 4081 else 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4083 $as_echo "no" >&6; } 4084 SET_MAKE="MAKE=${MAKE-make}" 4085 fi 4086 4087 rm -rf .tst 2>/dev/null 4088 mkdir .tst 2>/dev/null 4089 if test -d .tst; then 4090 am__leading_dot=. 4091 else 4092 am__leading_dot=_ 4093 fi 4094 rmdir .tst 2>/dev/null 4095 4096 DEPDIR="${am__leading_dot}deps" 4097 4098 ac_config_commands="$ac_config_commands depfiles" 4099 4100 4101 am_make=${MAKE-make} 4102 cat > confinc << 'END' 4103 am__doit: 4104 @echo this is the am__doit target 4105 .PHONY: am__doit 4106 END 4107 # If we don't find an include directive, just comment out the code. 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4109 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4110 am__include="#" 4111 am__quote= 4112 _am_result=none 4113 # First try GNU make style include. 4114 echo "include confinc" > confmf 4115 # Ignore all kinds of additional output from 'make'. 4116 case `$am_make -s -f confmf 2> /dev/null` in #( 4117 *the\ am__doit\ target*) 4118 am__include=include 4119 am__quote= 4120 _am_result=GNU 4121 ;; 4122 esac 4123 # Now try BSD make style include. 4124 if test "$am__include" = "#"; then 4125 echo '.include "confinc"' > confmf 4126 case `$am_make -s -f confmf 2> /dev/null` in #( 4127 *the\ am__doit\ target*) 4128 am__include=.include 4129 am__quote="\"" 4130 _am_result=BSD 4131 ;; 4132 esac 4133 fi 4134 4135 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4137 $as_echo "$_am_result" >&6; } 4138 rm -f confinc confmf 4139 4140 # Check whether --enable-dependency-tracking was given. 4141 if test "${enable_dependency_tracking+set}" = set; then : 4142 enableval=$enable_dependency_tracking; 4143 fi 4144 4145 if test "x$enable_dependency_tracking" != xno; then 4146 am_depcomp="$ac_aux_dir/depcomp" 4147 AMDEPBACKSLASH='\' 4148 am__nodep='_no' 4149 fi 4150 if test "x$enable_dependency_tracking" != xno; then 4151 AMDEP_TRUE= 4152 AMDEP_FALSE='#' 4153 else 4154 AMDEP_TRUE='#' 4155 AMDEP_FALSE= 4156 fi 4157 4158 4159 # Check whether --enable-silent-rules was given. 4160 if test "${enable_silent_rules+set}" = set; then : 4161 enableval=$enable_silent_rules; 4162 fi 4163 4164 case $enable_silent_rules in # ((( 4165 yes) AM_DEFAULT_VERBOSITY=0;; 4166 no) AM_DEFAULT_VERBOSITY=1;; 4167 *) AM_DEFAULT_VERBOSITY=1;; 4168 esac 4169 am_make=${MAKE-make} 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4171 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4172 if ${am_cv_make_support_nested_variables+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174 else 4175 if $as_echo 'TRUE=$(BAR$(V)) 4176 BAR0=false 4177 BAR1=true 4178 V=1 4179 am__doit: 4180 @$(TRUE) 4181 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4182 am_cv_make_support_nested_variables=yes 4183 else 4184 am_cv_make_support_nested_variables=no 4185 fi 4186 fi 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4188 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4189 if test $am_cv_make_support_nested_variables = yes; then 4190 AM_V='$(V)' 4191 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4192 else 4193 AM_V=$AM_DEFAULT_VERBOSITY 4194 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4195 fi 4196 AM_BACKSLASH='\' 4197 4198 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4200 # is not polluted with repeated "-I." 4201 am__isrc=' -I$(srcdir)' 4202 # test to see if srcdir already configured 4203 if test -f $srcdir/config.status; then 4204 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4205 fi 4206 fi 4207 4208 # test whether we have cygpath 4209 if test -z "$CYGPATH_W"; then 4210 if (cygpath --version) >/dev/null 2>/dev/null; then 4211 CYGPATH_W='cygpath -w' 4212 else 4213 CYGPATH_W=echo 4214 fi 4215 fi 4216 4217 4218 # Define the identity of the package. 4219 PACKAGE='geoipupdate' 4220 VERSION='3.1.1' 4221 4222 4223 cat >>confdefs.h <<_ACEOF 4224 #define PACKAGE "$PACKAGE" 4225 _ACEOF 4226 4227 4228 cat >>confdefs.h <<_ACEOF 4229 #define VERSION "$VERSION" 4230 _ACEOF 4231 4232 # Some tools Automake needs. 4233 4234 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4235 4236 4237 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4238 4239 4240 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4241 4242 4243 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4244 4245 4246 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4247 4248 # For better backward compatibility. To be removed once Automake 1.9.x 4249 # dies out for good. For more background, see: 4250 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4251 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4252 mkdir_p='$(MKDIR_P)' 4253 4254 # We need awk for the "check" target (and possibly the TAP driver). The 4255 # system "awk" is bad on some platforms. 4256 # Always define AMTAR for backward compatibility. Yes, it's still used 4257 # in the wild :-( We should find a proper way to deprecate it ... 4258 AMTAR='$${TAR-tar}' 4259 4260 4261 # We'll loop over all known methods to create a tar archive until one works. 4262 _am_tools='gnutar pax cpio none' 4263 4264 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4265 4266 4267 4268 4269 4270 depcc="$CC" am_compiler_list= 4271 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4273 $as_echo_n "checking dependency style of $depcc... " >&6; } 4274 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4275 $as_echo_n "(cached) " >&6 4276 else 4277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4278 # We make a subdir and do the tests there. Otherwise we can end up 4279 # making bogus files that we don't know about and never remove. For 4280 # instance it was reported that on HP-UX the gcc test will end up 4281 # making a dummy file named 'D' -- because '-MD' means "put the output 4282 # in D". 4283 rm -rf conftest.dir 4284 mkdir conftest.dir 4285 # Copy depcomp to subdir because otherwise we won't find it if we're 4286 # using a relative directory. 4287 cp "$am_depcomp" conftest.dir 4288 cd conftest.dir 4289 # We will build objects and dependencies in a subdirectory because 4290 # it helps to detect inapplicable dependency modes. For instance 4291 # both Tru64's cc and ICC support -MD to output dependencies as a 4292 # side effect of compilation, but ICC will put the dependencies in 4293 # the current directory while Tru64 will put them in the object 4294 # directory. 4295 mkdir sub 4296 4297 am_cv_CC_dependencies_compiler_type=none 4298 if test "$am_compiler_list" = ""; then 4299 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4300 fi 4301 am__universal=false 4302 case " $depcc " in #( 4303 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4304 esac 4305 4306 for depmode in $am_compiler_list; do 4307 # Setup a source with many dependencies, because some compilers 4308 # like to wrap large dependency lists on column 80 (with \), and 4309 # we should not choose a depcomp mode which is confused by this. 4310 # 4311 # We need to recreate these files for each test, as the compiler may 4312 # overwrite some of them when testing with obscure command lines. 4313 # This happens at least with the AIX C compiler. 4314 : > sub/conftest.c 4315 for i in 1 2 3 4 5 6; do 4316 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4317 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4318 # Solaris 10 /bin/sh. 4319 echo '/* dummy */' > sub/conftst$i.h 4320 done 4321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4322 4323 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4324 # mode. It turns out that the SunPro C++ compiler does not properly 4325 # handle '-M -o', and we need to detect this. Also, some Intel 4326 # versions had trouble with output in subdirs. 4327 am__obj=sub/conftest.${OBJEXT-o} 4328 am__minus_obj="-o $am__obj" 4329 case $depmode in 4330 gcc) 4331 # This depmode causes a compiler race in universal mode. 4332 test "$am__universal" = false || continue 4333 ;; 4334 nosideeffect) 4335 # After this tag, mechanisms are not by side-effect, so they'll 4336 # only be used when explicitly requested. 4337 if test "x$enable_dependency_tracking" = xyes; then 4338 continue 4339 else 4340 break 4341 fi 4342 ;; 4343 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4344 # This compiler won't grok '-c -o', but also, the minuso test has 4345 # not run yet. These depmodes are late enough in the game, and 4346 # so weak that their functioning should not be impacted. 4347 am__obj=conftest.${OBJEXT-o} 4348 am__minus_obj= 4349 ;; 4350 none) break ;; 4351 esac 4352 if depmode=$depmode \ 4353 source=sub/conftest.c object=$am__obj \ 4354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4355 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4356 >/dev/null 2>conftest.err && 4357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4359 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4361 # icc doesn't choke on unknown options, it will just issue warnings 4362 # or remarks (even with -Werror). So we grep stderr for any message 4363 # that says an option was ignored or not supported. 4364 # When given -MP, icc 7.0 and 7.1 complain thusly: 4365 # icc: Command line warning: ignoring option '-M'; no argument required 4366 # The diagnosis changed in icc 8.0: 4367 # icc: Command line remark: option '-MP' not supported 4368 if (grep 'ignoring option' conftest.err || 4369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4370 am_cv_CC_dependencies_compiler_type=$depmode 4371 break 4372 fi 4373 fi 4374 done 4375 4376 cd .. 4377 rm -rf conftest.dir 4378 else 4379 am_cv_CC_dependencies_compiler_type=none 4380 fi 4381 4382 fi 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4384 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4385 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4386 4387 if 4388 test "x$enable_dependency_tracking" != xno \ 4389 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4390 am__fastdepCC_TRUE= 4391 am__fastdepCC_FALSE='#' 4392 else 4393 am__fastdepCC_TRUE='#' 4394 am__fastdepCC_FALSE= 4395 fi 4396 4397 4398 4399 # POSIX will say in a future version that running "rm -f" with no argument 4400 # is OK; and we want to be able to make that assumption in our Makefile 4401 # recipes. So use an aggressive probe to check that the usage we want is 4402 # actually supported "in the wild" to an acceptable degree. 4403 # See automake bug#10828. 4404 # To make any issue more visible, cause the running configure to be aborted 4405 # by default if the 'rm' program in use doesn't match our expectations; the 4406 # user can still override this though. 4407 if rm -f && rm -fr && rm -rf; then : OK; else 4408 cat >&2 <<'END' 4409 Oops! 4410 4411 Your 'rm' program seems unable to run without file operands specified 4412 on the command line, even when the '-f' option is present. This is contrary 4413 to the behaviour of most rm programs out there, and not conforming with 4414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4415 4416 Please tell bug-automake@gnu.org about your system, including the value 4417 of your $PATH and any error possibly output before this message. This 4418 can help us improve future automake versions. 4419 4420 END 4421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4422 echo 'Configuration will proceed anyway, since you have set the' >&2 4423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4424 echo >&2 4425 else 4426 cat >&2 <<'END' 4427 Aborting the configuration process, to ensure you take notice of the issue. 4428 4429 You can download and install GNU coreutils to get an 'rm' implementation 4430 that behaves properly: <http://www.gnu.org/software/coreutils/>. 4431 4432 If you want to complete the configuration process using your problematic 4433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4434 to "yes", and re-run configure. 4435 4436 END 4437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4438 fi 4439 fi 4440 4441 4442 GEOIPUPDATE_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'` 4443 4444 4445 4446 case `pwd` in 4447 *\ * | *\ *) 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4449 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4450 esac 4451 4452 4453 4454 macro_version='2.4.6' 4455 macro_revision='2.4.6' 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 ltmain=$ac_aux_dir/ltmain.sh 4470 4471 # Make sure we can run config.sub. 4472 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4473 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4474 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4476 $as_echo_n "checking build system type... " >&6; } 4477 if ${ac_cv_build+:} false; then : 4478 $as_echo_n "(cached) " >&6 4479 else 4480 ac_build_alias=$build_alias 4481 test "x$ac_build_alias" = x && 4482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4483 test "x$ac_build_alias" = x && 4484 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4485 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4486 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4487 4488 fi 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4490 $as_echo "$ac_cv_build" >&6; } 4491 case $ac_cv_build in 4492 *-*-*) ;; 4493 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4494 esac 4495 build=$ac_cv_build 4496 ac_save_IFS=$IFS; IFS='-' 4497 set x $ac_cv_build 4498 shift 4499 build_cpu=$1 4500 build_vendor=$2 4501 shift; shift 4502 # Remember, the first character of IFS is used to create $*, 4503 # except with old shells: 4504 build_os=$* 4505 IFS=$ac_save_IFS 4506 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4507 4508 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4510 $as_echo_n "checking host system type... " >&6; } 4511 if ${ac_cv_host+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513 else 4514 if test "x$host_alias" = x; then 4515 ac_cv_host=$ac_cv_build 4516 else 4517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4519 fi 4520 4521 fi 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4523 $as_echo "$ac_cv_host" >&6; } 4524 case $ac_cv_host in 4525 *-*-*) ;; 4526 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4527 esac 4528 host=$ac_cv_host 4529 ac_save_IFS=$IFS; IFS='-' 4530 set x $ac_cv_host 4531 shift 4532 host_cpu=$1 4533 host_vendor=$2 4534 shift; shift 4535 # Remember, the first character of IFS is used to create $*, 4536 # except with old shells: 4537 host_os=$* 4538 IFS=$ac_save_IFS 4539 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4540 4541 4542 # Backslashify metacharacters that are still active within 4543 # double-quoted strings. 4544 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4545 4546 # Same as above, but do not quote variable references. 4547 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4548 4549 # Sed substitution to delay expansion of an escaped shell variable in a 4550 # double_quote_subst'ed string. 4551 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4552 4553 # Sed substitution to delay expansion of an escaped single quote. 4554 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4555 4556 # Sed substitution to avoid accidental globbing in evaled expressions 4557 no_glob_subst='s/\*/\\\*/g' 4558 4559 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4560 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4561 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4562 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4564 $as_echo_n "checking how to print strings... " >&6; } 4565 # Test print first, because it will be a builtin if present. 4566 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4567 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4568 ECHO='print -r --' 4569 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4570 ECHO='printf %s\n' 4571 else 4572 # Use this function as a fallback that always works. 4573 func_fallback_echo () 4574 { 4575 eval 'cat <<_LTECHO_EOF 4576 $1 4577 _LTECHO_EOF' 4578 } 4579 ECHO='func_fallback_echo' 4580 fi 4581 4582 # func_echo_all arg... 4583 # Invoke $ECHO with all args, space-separated. 4584 func_echo_all () 4585 { 4586 $ECHO "" 4587 } 4588 4589 case $ECHO in 4590 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4591 $as_echo "printf" >&6; } ;; 4592 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4593 $as_echo "print -r" >&6; } ;; 4594 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4595 $as_echo "cat" >&6; } ;; 4596 esac 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4612 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4613 if ${ac_cv_path_SED+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615 else 4616 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4617 for ac_i in 1 2 3 4 5 6 7; do 4618 ac_script="$ac_script$as_nl$ac_script" 4619 done 4620 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4621 { ac_script=; unset ac_script;} 4622 if test -z "$SED"; then 4623 ac_path_SED_found=false 4624 # Loop through the user's path and test for each of PROGNAME-LIST 4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4626 for as_dir in $PATH 4627 do 4628 IFS=$as_save_IFS 4629 test -z "$as_dir" && as_dir=. 4630 for ac_prog in sed gsed; do 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4633 as_fn_executable_p "$ac_path_SED" || continue 4634 # Check for GNU ac_path_SED and select it if it is found. 4635 # Check for GNU $ac_path_SED 4636 case `"$ac_path_SED" --version 2>&1` in 4637 *GNU*) 4638 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4639 *) 4640 ac_count=0 4641 $as_echo_n 0123456789 >"conftest.in" 4642 while : 4643 do 4644 cat "conftest.in" "conftest.in" >"conftest.tmp" 4645 mv "conftest.tmp" "conftest.in" 4646 cp "conftest.in" "conftest.nl" 4647 $as_echo '' >> "conftest.nl" 4648 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4650 as_fn_arith $ac_count + 1 && ac_count=$as_val 4651 if test $ac_count -gt ${ac_path_SED_max-0}; then 4652 # Best one so far, save it but keep looking for a better one 4653 ac_cv_path_SED="$ac_path_SED" 4654 ac_path_SED_max=$ac_count 4655 fi 4656 # 10*(2^10) chars as input seems more than enough 4657 test $ac_count -gt 10 && break 4658 done 4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4660 esac 4661 4662 $ac_path_SED_found && break 3 4663 done 4664 done 4665 done 4666 IFS=$as_save_IFS 4667 if test -z "$ac_cv_path_SED"; then 4668 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4669 fi 4670 else 4671 ac_cv_path_SED=$SED 4672 fi 4673 4674 fi 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4676 $as_echo "$ac_cv_path_SED" >&6; } 4677 SED="$ac_cv_path_SED" 4678 rm -f conftest.sed 4679 4680 test -z "$SED" && SED=sed 4681 Xsed="$SED -e 1s/^X//" 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4694 $as_echo_n "checking for fgrep... " >&6; } 4695 if ${ac_cv_path_FGREP+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697 else 4698 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4699 then ac_cv_path_FGREP="$GREP -F" 4700 else 4701 if test -z "$FGREP"; then 4702 ac_path_FGREP_found=false 4703 # Loop through the user's path and test for each of PROGNAME-LIST 4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4706 do 4707 IFS=$as_save_IFS 4708 test -z "$as_dir" && as_dir=. 4709 for ac_prog in fgrep; do 4710 for ac_exec_ext in '' $ac_executable_extensions; do 4711 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4712 as_fn_executable_p "$ac_path_FGREP" || continue 4713 # Check for GNU ac_path_FGREP and select it if it is found. 4714 # Check for GNU $ac_path_FGREP 4715 case `"$ac_path_FGREP" --version 2>&1` in 4716 *GNU*) 4717 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4718 *) 4719 ac_count=0 4720 $as_echo_n 0123456789 >"conftest.in" 4721 while : 4722 do 4723 cat "conftest.in" "conftest.in" >"conftest.tmp" 4724 mv "conftest.tmp" "conftest.in" 4725 cp "conftest.in" "conftest.nl" 4726 $as_echo 'FGREP' >> "conftest.nl" 4727 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4729 as_fn_arith $ac_count + 1 && ac_count=$as_val 4730 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4731 # Best one so far, save it but keep looking for a better one 4732 ac_cv_path_FGREP="$ac_path_FGREP" 4733 ac_path_FGREP_max=$ac_count 4734 fi 4735 # 10*(2^10) chars as input seems more than enough 4736 test $ac_count -gt 10 && break 4737 done 4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4739 esac 4740 4741 $ac_path_FGREP_found && break 3 4742 done 4743 done 4744 done 4745 IFS=$as_save_IFS 4746 if test -z "$ac_cv_path_FGREP"; then 4747 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4748 fi 4749 else 4750 ac_cv_path_FGREP=$FGREP 4751 fi 4752 4753 fi 4754 fi 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4756 $as_echo "$ac_cv_path_FGREP" >&6; } 4757 FGREP="$ac_cv_path_FGREP" 4758 4759 4760 test -z "$GREP" && GREP=grep 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 # Check whether --with-gnu-ld was given. 4781 if test "${with_gnu_ld+set}" = set; then : 4782 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4783 else 4784 with_gnu_ld=no 4785 fi 4786 4787 ac_prog=ld 4788 if test yes = "$GCC"; then 4789 # Check if gcc -print-prog-name=ld gives a path. 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4791 $as_echo_n "checking for ld used by $CC... " >&6; } 4792 case $host in 4793 *-*-mingw*) 4794 # gcc leaves a trailing carriage return, which upsets mingw 4795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4796 *) 4797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4798 esac 4799 case $ac_prog in 4800 # Accept absolute paths. 4801 [\\/]* | ?:[\\/]*) 4802 re_direlt='/[^/][^/]*/\.\./' 4803 # Canonicalize the pathname of ld 4804 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4805 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4806 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4807 done 4808 test -z "$LD" && LD=$ac_prog 4809 ;; 4810 "") 4811 # If it fails, then pretend we aren't using GCC. 4812 ac_prog=ld 4813 ;; 4814 *) 4815 # If it is relative, then search for the first ld in PATH. 4816 with_gnu_ld=unknown 4817 ;; 4818 esac 4819 elif test yes = "$with_gnu_ld"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4821 $as_echo_n "checking for GNU ld... " >&6; } 4822 else 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4824 $as_echo_n "checking for non-GNU ld... " >&6; } 4825 fi 4826 if ${lt_cv_path_LD+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828 else 4829 if test -z "$LD"; then 4830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4831 for ac_dir in $PATH; do 4832 IFS=$lt_save_ifs 4833 test -z "$ac_dir" && ac_dir=. 4834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4835 lt_cv_path_LD=$ac_dir/$ac_prog 4836 # Check to see if the program is GNU ld. I'd rather use --version, 4837 # but apparently some variants of GNU ld only accept -v. 4838 # Break only if it was the GNU/non-GNU ld that we prefer. 4839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4840 *GNU* | *'with BFD'*) 4841 test no != "$with_gnu_ld" && break 4842 ;; 4843 *) 4844 test yes != "$with_gnu_ld" && break 4845 ;; 4846 esac 4847 fi 4848 done 4849 IFS=$lt_save_ifs 4850 else 4851 lt_cv_path_LD=$LD # Let the user override the test with a path. 4852 fi 4853 fi 4854 4855 LD=$lt_cv_path_LD 4856 if test -n "$LD"; then 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4858 $as_echo "$LD" >&6; } 4859 else 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4861 $as_echo "no" >&6; } 4862 fi 4863 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4865 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4866 if ${lt_cv_prog_gnu_ld+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4870 case `$LD -v 2>&1 </dev/null` in 4871 *GNU* | *'with BFD'*) 4872 lt_cv_prog_gnu_ld=yes 4873 ;; 4874 *) 4875 lt_cv_prog_gnu_ld=no 4876 ;; 4877 esac 4878 fi 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4880 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4881 with_gnu_ld=$lt_cv_prog_gnu_ld 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4892 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4893 if ${lt_cv_path_NM+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895 else 4896 if test -n "$NM"; then 4897 # Let the user override the test. 4898 lt_cv_path_NM=$NM 4899 else 4900 lt_nm_to_check=${ac_tool_prefix}nm 4901 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4902 lt_nm_to_check="$lt_nm_to_check nm" 4903 fi 4904 for lt_tmp_nm in $lt_nm_to_check; do 4905 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4906 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4907 IFS=$lt_save_ifs 4908 test -z "$ac_dir" && ac_dir=. 4909 tmp_nm=$ac_dir/$lt_tmp_nm 4910 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4911 # Check to see if the nm accepts a BSD-compat flag. 4912 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4913 # nm: unknown option "B" ignored 4914 # Tru64's nm complains that /dev/null is an invalid object file 4915 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4916 case $build_os in 4917 mingw*) lt_bad_file=conftest.nm/nofile ;; 4918 *) lt_bad_file=/dev/null ;; 4919 esac 4920 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4921 *$lt_bad_file* | *'Invalid file or object type'*) 4922 lt_cv_path_NM="$tmp_nm -B" 4923 break 2 4924 ;; 4925 *) 4926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4927 */dev/null*) 4928 lt_cv_path_NM="$tmp_nm -p" 4929 break 2 4930 ;; 4931 *) 4932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4933 continue # so that we can try to find one that supports BSD flags 4934 ;; 4935 esac 4936 ;; 4937 esac 4938 fi 4939 done 4940 IFS=$lt_save_ifs 4941 done 4942 : ${lt_cv_path_NM=no} 4943 fi 4944 fi 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4946 $as_echo "$lt_cv_path_NM" >&6; } 4947 if test no != "$lt_cv_path_NM"; then 4948 NM=$lt_cv_path_NM 4949 else 4950 # Didn't find any BSD compatible name lister, look for dumpbin. 4951 if test -n "$DUMPBIN"; then : 4952 # Let the user override the test. 4953 else 4954 if test -n "$ac_tool_prefix"; then 4955 for ac_prog in dumpbin "link -dump" 4956 do 4957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4960 $as_echo_n "checking for $ac_word... " >&6; } 4961 if ${ac_cv_prog_DUMPBIN+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963 else 4964 if test -n "$DUMPBIN"; then 4965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4966 else 4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4968 for as_dir in $PATH 4969 do 4970 IFS=$as_save_IFS 4971 test -z "$as_dir" && as_dir=. 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4976 break 2 4977 fi 4978 done 4979 done 4980 IFS=$as_save_IFS 4981 4982 fi 4983 fi 4984 DUMPBIN=$ac_cv_prog_DUMPBIN 4985 if test -n "$DUMPBIN"; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4987 $as_echo "$DUMPBIN" >&6; } 4988 else 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4990 $as_echo "no" >&6; } 4991 fi 4992 4993 4994 test -n "$DUMPBIN" && break 4995 done 4996 fi 4997 if test -z "$DUMPBIN"; then 4998 ac_ct_DUMPBIN=$DUMPBIN 4999 for ac_prog in dumpbin "link -dump" 5000 do 5001 # Extract the first word of "$ac_prog", so it can be a program name with args. 5002 set dummy $ac_prog; ac_word=$2 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5004 $as_echo_n "checking for $ac_word... " >&6; } 5005 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007 else 5008 if test -n "$ac_ct_DUMPBIN"; then 5009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5010 else 5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012 for as_dir in $PATH 5013 do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5020 break 2 5021 fi 5022 done 5023 done 5024 IFS=$as_save_IFS 5025 5026 fi 5027 fi 5028 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5029 if test -n "$ac_ct_DUMPBIN"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5031 $as_echo "$ac_ct_DUMPBIN" >&6; } 5032 else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034 $as_echo "no" >&6; } 5035 fi 5036 5037 5038 test -n "$ac_ct_DUMPBIN" && break 5039 done 5040 5041 if test "x$ac_ct_DUMPBIN" = x; then 5042 DUMPBIN=":" 5043 else 5044 case $cross_compiling:$ac_tool_warned in 5045 yes:) 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5048 ac_tool_warned=yes ;; 5049 esac 5050 DUMPBIN=$ac_ct_DUMPBIN 5051 fi 5052 fi 5053 5054 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5055 *COFF*) 5056 DUMPBIN="$DUMPBIN -symbols -headers" 5057 ;; 5058 *) 5059 DUMPBIN=: 5060 ;; 5061 esac 5062 fi 5063 5064 if test : != "$DUMPBIN"; then 5065 NM=$DUMPBIN 5066 fi 5067 fi 5068 test -z "$NM" && NM=nm 5069 5070 5071 5072 5073 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5076 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5077 if ${lt_cv_nm_interface+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079 else 5080 lt_cv_nm_interface="BSD nm" 5081 echo "int some_variable = 0;" > conftest.$ac_ext 5082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5083 (eval "$ac_compile" 2>conftest.err) 5084 cat conftest.err >&5 5085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5087 cat conftest.err >&5 5088 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5089 cat conftest.out >&5 5090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5091 lt_cv_nm_interface="MS dumpbin" 5092 fi 5093 rm -f conftest* 5094 fi 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5096 $as_echo "$lt_cv_nm_interface" >&6; } 5097 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5099 $as_echo_n "checking whether ln -s works... " >&6; } 5100 LN_S=$as_ln_s 5101 if test "$LN_S" = "ln -s"; then 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5103 $as_echo "yes" >&6; } 5104 else 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5106 $as_echo "no, using $LN_S" >&6; } 5107 fi 5108 5109 # find the maximum length of command line arguments 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5111 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5112 if ${lt_cv_sys_max_cmd_len+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114 else 5115 i=0 5116 teststring=ABCD 5117 5118 case $build_os in 5119 msdosdjgpp*) 5120 # On DJGPP, this test can blow up pretty badly due to problems in libc 5121 # (any single argument exceeding 2000 bytes causes a buffer overrun 5122 # during glob expansion). Even if it were fixed, the result of this 5123 # check would be larger than it should be. 5124 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5125 ;; 5126 5127 gnu*) 5128 # Under GNU Hurd, this test is not required because there is 5129 # no limit to the length of command line arguments. 5130 # Libtool will interpret -1 as no limit whatsoever 5131 lt_cv_sys_max_cmd_len=-1; 5132 ;; 5133 5134 cygwin* | mingw* | cegcc*) 5135 # On Win9x/ME, this test blows up -- it succeeds, but takes 5136 # about 5 minutes as the teststring grows exponentially. 5137 # Worse, since 9x/ME are not pre-emptively multitasking, 5138 # you end up with a "frozen" computer, even though with patience 5139 # the test eventually succeeds (with a max line length of 256k). 5140 # Instead, let's just punt: use the minimum linelength reported by 5141 # all of the supported platforms: 8192 (on NT/2K/XP). 5142 lt_cv_sys_max_cmd_len=8192; 5143 ;; 5144 5145 mint*) 5146 # On MiNT this can take a long time and run out of memory. 5147 lt_cv_sys_max_cmd_len=8192; 5148 ;; 5149 5150 amigaos*) 5151 # On AmigaOS with pdksh, this test takes hours, literally. 5152 # So we just punt and use a minimum line length of 8192. 5153 lt_cv_sys_max_cmd_len=8192; 5154 ;; 5155 5156 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5157 # This has been around since 386BSD, at least. Likely further. 5158 if test -x /sbin/sysctl; then 5159 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5160 elif test -x /usr/sbin/sysctl; then 5161 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5162 else 5163 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5164 fi 5165 # And add a safety zone 5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5168 ;; 5169 5170 interix*) 5171 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5172 lt_cv_sys_max_cmd_len=196608 5173 ;; 5174 5175 os2*) 5176 # The test takes a long time on OS/2. 5177 lt_cv_sys_max_cmd_len=8192 5178 ;; 5179 5180 osf*) 5181 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5182 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5183 # nice to cause kernel panics so lets avoid the loop below. 5184 # First set a reasonable default. 5185 lt_cv_sys_max_cmd_len=16384 5186 # 5187 if test -x /sbin/sysconfig; then 5188 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5189 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5190 esac 5191 fi 5192 ;; 5193 sco3.2v5*) 5194 lt_cv_sys_max_cmd_len=102400 5195 ;; 5196 sysv5* | sco5v6* | sysv4.2uw2*) 5197 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5198 if test -n "$kargmax"; then 5199 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5200 else 5201 lt_cv_sys_max_cmd_len=32768 5202 fi 5203 ;; 5204 *) 5205 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5206 if test -n "$lt_cv_sys_max_cmd_len" && \ 5207 test undefined != "$lt_cv_sys_max_cmd_len"; then 5208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5210 else 5211 # Make teststring a little bigger before we do anything with it. 5212 # a 1K string should be a reasonable start. 5213 for i in 1 2 3 4 5 6 7 8; do 5214 teststring=$teststring$teststring 5215 done 5216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5217 # If test is not a shell built-in, we'll probably end up computing a 5218 # maximum length that is only half of the actual maximum length, but 5219 # we can't tell. 5220 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5221 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5222 test 17 != "$i" # 1/2 MB should be enough 5223 do 5224 i=`expr $i + 1` 5225 teststring=$teststring$teststring 5226 done 5227 # Only check the string length outside the loop. 5228 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5229 teststring= 5230 # Add a significant safety factor because C++ compilers can tack on 5231 # massive amounts of additional arguments before passing them to the 5232 # linker. It appears as though 1/2 is a usable value. 5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5234 fi 5235 ;; 5236 esac 5237 5238 fi 5239 5240 if test -n "$lt_cv_sys_max_cmd_len"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5242 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5243 else 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5245 $as_echo "none" >&6; } 5246 fi 5247 max_cmd_len=$lt_cv_sys_max_cmd_len 5248 5249 5250 5251 5252 5253 5254 : ${CP="cp -f"} 5255 : ${MV="mv -f"} 5256 : ${RM="rm -f"} 5257 5258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5259 lt_unset=unset 5260 else 5261 lt_unset=false 5262 fi 5263 5264 5265 5266 5267 5268 # test EBCDIC or ASCII 5269 case `echo X|tr X '\101'` in 5270 A) # ASCII based system 5271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5272 lt_SP2NL='tr \040 \012' 5273 lt_NL2SP='tr \015\012 \040\040' 5274 ;; 5275 *) # EBCDIC based system 5276 lt_SP2NL='tr \100 \n' 5277 lt_NL2SP='tr \r\n \100\100' 5278 ;; 5279 esac 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5290 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5291 if ${lt_cv_to_host_file_cmd+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293 else 5294 case $host in 5295 *-*-mingw* ) 5296 case $build in 5297 *-*-mingw* ) # actually msys 5298 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5299 ;; 5300 *-*-cygwin* ) 5301 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5302 ;; 5303 * ) # otherwise, assume *nix 5304 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5305 ;; 5306 esac 5307 ;; 5308 *-*-cygwin* ) 5309 case $build in 5310 *-*-mingw* ) # actually msys 5311 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5312 ;; 5313 *-*-cygwin* ) 5314 lt_cv_to_host_file_cmd=func_convert_file_noop 5315 ;; 5316 * ) # otherwise, assume *nix 5317 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5318 ;; 5319 esac 5320 ;; 5321 * ) # unhandled hosts (and "normal" native builds) 5322 lt_cv_to_host_file_cmd=func_convert_file_noop 5323 ;; 5324 esac 5325 5326 fi 5327 5328 to_host_file_cmd=$lt_cv_to_host_file_cmd 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5330 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5331 5332 5333 5334 5335 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5337 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5338 if ${lt_cv_to_tool_file_cmd+:} false; then : 5339 $as_echo_n "(cached) " >&6 5340 else 5341 #assume ordinary cross tools, or native build. 5342 lt_cv_to_tool_file_cmd=func_convert_file_noop 5343 case $host in 5344 *-*-mingw* ) 5345 case $build in 5346 *-*-mingw* ) # actually msys 5347 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5348 ;; 5349 esac 5350 ;; 5351 esac 5352 5353 fi 5354 5355 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5357 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5358 5359 5360 5361 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5364 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5365 if ${lt_cv_ld_reload_flag+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 lt_cv_ld_reload_flag='-r' 5369 fi 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5371 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5372 reload_flag=$lt_cv_ld_reload_flag 5373 case $reload_flag in 5374 "" | " "*) ;; 5375 *) reload_flag=" $reload_flag" ;; 5376 esac 5377 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5378 case $host_os in 5379 cygwin* | mingw* | pw32* | cegcc*) 5380 if test yes != "$GCC"; then 5381 reload_cmds=false 5382 fi 5383 ;; 5384 darwin*) 5385 if test yes = "$GCC"; then 5386 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5387 else 5388 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5389 fi 5390 ;; 5391 esac 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 if test -n "$ac_tool_prefix"; then 5402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5403 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405 $as_echo_n "checking for $ac_word... " >&6; } 5406 if ${ac_cv_prog_OBJDUMP+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408 else 5409 if test -n "$OBJDUMP"; then 5410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5411 else 5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413 for as_dir in $PATH 5414 do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5420 $as_echo