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