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