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