1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for ace 1.4. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$lt_ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540ECHO=${lt_ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $ECHO works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<_LT_EOF 559$* 560_LT_EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$lt_ECHO"; then 569 if test "X${echo_test_string+set}" != Xset; then 570 # find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 575 then 576 break 577 fi 578 done 579 fi 580 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 583 test "X$echo_testing_string" = "X$echo_test_string"; then 584 : 585 else 586 # The Solaris, AIX, and Digital Unix default echo programs unquote 587 # backslashes. This makes it impossible to quote backslashes using 588 # echo "$something" | sed 's/\\/\\\\/g' 589 # 590 # So, first we look for a working echo in the user's PATH. 591 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 593 for dir in $PATH /usr/ucb; do 594 IFS="$lt_save_ifs" 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 598 test "X$echo_testing_string" = "X$echo_test_string"; then 599 ECHO="$dir/echo" 600 break 601 fi 602 done 603 IFS="$lt_save_ifs" 604 605 if test "X$ECHO" = Xecho; then 606 # We didn't find a better echo, so look for alternatives. 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 # This shell has a builtin print -r that does the trick. 611 ECHO='print -r' 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 613 test "X$CONFIG_SHELL" != X/bin/ksh; then 614 # If we have ksh, try running configure again with it. 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 616 export ORIGINAL_CONFIG_SHELL 617 CONFIG_SHELL=/bin/ksh 618 export CONFIG_SHELL 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 620 else 621 # Try using printf. 622 ECHO='printf %s\n' 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 # Cool, printf works 627 : 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 629 test "X$echo_testing_string" = 'X\t' && 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 633 export CONFIG_SHELL 634 SHELL="$CONFIG_SHELL" 635 export SHELL 636 ECHO="$CONFIG_SHELL $0 --fallback-echo" 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 ECHO="$CONFIG_SHELL $0 --fallback-echo" 642 else 643 # maybe with a smaller string... 644 prev=: 645 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 648 then 649 break 650 fi 651 prev="$cmd" 652 done 653 654 if test "$prev" != 'sed 50q "$0"'; then 655 echo_test_string=`eval $prev` 656 export echo_test_string 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 658 else 659 # Oops. We lost completely, so just stick with echo. 660 ECHO=echo 661 fi 662 fi 663 fi 664 fi 665 fi 666fi 667 668# Copy echo and quote the copy suitably for passing to libtool from 669# the Makefile, instead of quoting the original, which is used later. 670lt_ECHO=$ECHO 671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 673fi 674 675 676 677 678test -n "$DJDIR" || exec 7<&0 </dev/null 679exec 6>&1 680 681# Name of the host. 682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 683# so uname gets run too. 684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685 686# 687# Initializations. 688# 689ac_default_prefix=/usr/local 690ac_clean_files= 691ac_config_libobj_dir=. 692LIBOBJS= 693cross_compiling=no 694subdirs= 695MFLAGS= 696MAKEFLAGS= 697 698# Identity of this package. 699PACKAGE_NAME='ace' 700PACKAGE_TARNAME='ace' 701PACKAGE_VERSION='1.4' 702PACKAGE_STRING='ace 1.4' 703PACKAGE_BUGREPORT='' 704PACKAGE_URL='' 705 706ac_unique_file="lib/cards.h" 707# Factoring default headers for most tests. 708ac_includes_default="\ 709#include <stdio.h> 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef STDC_HEADERS 717# include <stdlib.h> 718# include <stddef.h> 719#else 720# ifdef HAVE_STDLIB_H 721# include <stdlib.h> 722# endif 723#endif 724#ifdef HAVE_STRING_H 725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726# include <memory.h> 727# endif 728# include <string.h> 729#endif 730#ifdef HAVE_STRINGS_H 731# include <strings.h> 732#endif 733#ifdef HAVE_INTTYPES_H 734# include <inttypes.h> 735#endif 736#ifdef HAVE_STDINT_H 737# include <stdint.h> 738#endif 739#ifdef HAVE_UNISTD_H 740# include <unistd.h> 741#endif" 742 743ac_header_list= 744ac_subst_vars='am__EXEEXT_FALSE 745am__EXEEXT_TRUE 746LTLIBOBJS 747LIBOBJS 748PDA 749PNG_LIBS 750PNG_CFLAGS 751Z_LIBS 752Z_CFLAGS 753X_EXTRA_LIBS 754X_LIBS 755X_PRE_LIBS 756X_CFLAGS 757XMKMF 758BUILD_CC 759CPP 760OTOOL64 761OTOOL 762LIPO 763NMEDIT 764DSYMUTIL 765lt_ECHO 766RANLIB 767AR 768OBJDUMP 769LN_S 770NM 771ac_ct_DUMPBIN 772DUMPBIN 773LD 774FGREP 775EGREP 776GREP 777SED 778am__fastdepCC_FALSE 779am__fastdepCC_TRUE 780CCDEPMODE 781AMDEPBACKSLASH 782AMDEP_FALSE 783AMDEP_TRUE 784am__quote 785am__include 786DEPDIR 787OBJEXT 788EXEEXT 789ac_ct_CC 790CPPFLAGS 791LDFLAGS 792CFLAGS 793CC 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802LIBTOOL 803am__untar 804am__tar 805AMTAR 806am__leading_dot 807SET_MAKE 808AWK 809mkdir_p 810MKDIR_P 811INSTALL_STRIP_PROGRAM 812STRIP 813install_sh 814MAKEINFO 815AUTOHEADER 816AUTOMAKE 817AUTOCONF 818ACLOCAL 819VERSION 820PACKAGE 821CYGPATH_W 822am__isrc 823INSTALL_DATA 824INSTALL_SCRIPT 825INSTALL_PROGRAM 826target_alias 827host_alias 828build_alias 829LIBS 830ECHO_T 831ECHO_N 832ECHO_C 833DEFS 834mandir 835localedir 836libdir 837psdir 838pdfdir 839dvidir 840htmldir 841infodir 842docdir 843oldincludedir 844includedir 845localstatedir 846sharedstatedir 847sysconfdir 848datadir 849datarootdir 850libexecdir 851sbindir 852bindir 853program_transform_name 854prefix 855exec_prefix 856PACKAGE_URL 857PACKAGE_BUGREPORT 858PACKAGE_STRING 859PACKAGE_VERSION 860PACKAGE_TARNAME 861PACKAGE_NAME 862PATH_SEPARATOR 863SHELL' 864ac_subst_files='' 865ac_user_opts=' 866enable_option_checking 867with_cross 868enable_shared 869enable_static 870with_pic 871enable_fast_install 872enable_dependency_tracking 873with_gnu_ld 874enable_libtool_lock 875with_x 876with_z 877with_png 878' 879 ac_precious_vars='build_alias 880host_alias 881target_alias 882CC 883CFLAGS 884LDFLAGS 885LIBS 886CPPFLAGS 887CPP 888XMKMF' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894ac_unrecognized_opts= 895ac_unrecognized_sep= 896# The variables have the same names as the options, with 897# dashes changed to underlines. 898cache_file=/dev/null 899exec_prefix=NONE 900no_create= 901no_recursion= 902prefix=NONE 903program_prefix=NONE 904program_suffix=NONE 905program_transform_name=s,x,x, 906silent= 907site= 908srcdir= 909verbose= 910x_includes=NONE 911x_libraries=NONE 912 913# Installation directory options. 914# These are left unexpanded so users can "make install exec_prefix=/foo" 915# and all the variables that are supposed to be based on exec_prefix 916# by default will actually change. 917# Use braces instead of parens because sh, perl, etc. also accept them. 918# (The list follows the same order as the GNU Coding Standards.) 919bindir='${exec_prefix}/bin' 920sbindir='${exec_prefix}/sbin' 921libexecdir='${exec_prefix}/libexec' 922datarootdir='${prefix}/share' 923datadir='${datarootdir}' 924sysconfdir='${prefix}/etc' 925sharedstatedir='${prefix}/com' 926localstatedir='${prefix}/var' 927includedir='${prefix}/include' 928oldincludedir='/usr/include' 929docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 930infodir='${datarootdir}/info' 931htmldir='${docdir}' 932dvidir='${docdir}' 933pdfdir='${docdir}' 934psdir='${docdir}' 935libdir='${exec_prefix}/lib' 936localedir='${datarootdir}/locale' 937mandir='${datarootdir}/man' 938 939ac_prev= 940ac_dashdash= 941for ac_option 942do 943 # If the previous option needs an argument, assign it. 944 if test -n "$ac_prev"; then 945 eval $ac_prev=\$ac_option 946 ac_prev= 947 continue 948 fi 949 950 case $ac_option in 951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 952 *) ac_optarg=yes ;; 953 esac 954 955 # Accept the important Cygnus configure options, so we can diagnose typos. 956 957 case $ac_dashdash$ac_option in 958 --) 959 ac_dashdash=yes ;; 960 961 -bindir | --bindir | --bindi | --bind | --bin | --bi) 962 ac_prev=bindir ;; 963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 964 bindir=$ac_optarg ;; 965 966 -build | --build | --buil | --bui | --bu) 967 ac_prev=build_alias ;; 968 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 969 build_alias=$ac_optarg ;; 970 971 -cache-file | --cache-file | --cache-fil | --cache-fi \ 972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 973 ac_prev=cache_file ;; 974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 976 cache_file=$ac_optarg ;; 977 978 --config-cache | -C) 979 cache_file=config.cache ;; 980 981 -datadir | --datadir | --datadi | --datad) 982 ac_prev=datadir ;; 983 -datadir=* | --datadir=* | --datadi=* | --datad=*) 984 datadir=$ac_optarg ;; 985 986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 987 | --dataroo | --dataro | --datar) 988 ac_prev=datarootdir ;; 989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 991 datarootdir=$ac_optarg ;; 992 993 -disable-* | --disable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1023 as_fn_error "invalid feature name: $ac_useropt" 1024 ac_useropt_orig=$ac_useropt 1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1026 case $ac_user_opts in 1027 *" 1028"enable_$ac_useropt" 1029"*) ;; 1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1031 ac_unrecognized_sep=', ';; 1032 esac 1033 eval enable_$ac_useropt=\$ac_optarg ;; 1034 1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1037 | --exec | --exe | --ex) 1038 ac_prev=exec_prefix ;; 1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1041 | --exec=* | --exe=* | --ex=*) 1042 exec_prefix=$ac_optarg ;; 1043 1044 -gas | --gas | --ga | --g) 1045 # Obsolete; use --with-gas. 1046 with_gas=yes ;; 1047 1048 -help | --help | --hel | --he | -h) 1049 ac_init_help=long ;; 1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1051 ac_init_help=recursive ;; 1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1053 ac_init_help=short ;; 1054 1055 -host | --host | --hos | --ho) 1056 ac_prev=host_alias ;; 1057 -host=* | --host=* | --hos=* | --ho=*) 1058 host_alias=$ac_optarg ;; 1059 1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1061 ac_prev=htmldir ;; 1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1063 | --ht=*) 1064 htmldir=$ac_optarg ;; 1065 1066 -includedir | --includedir | --includedi | --included | --include \ 1067 | --includ | --inclu | --incl | --inc) 1068 ac_prev=includedir ;; 1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1070 | --includ=* | --inclu=* | --incl=* | --inc=*) 1071 includedir=$ac_optarg ;; 1072 1073 -infodir | --infodir | --infodi | --infod | --info | --inf) 1074 ac_prev=infodir ;; 1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1076 infodir=$ac_optarg ;; 1077 1078 -libdir | --libdir | --libdi | --libd) 1079 ac_prev=libdir ;; 1080 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1081 libdir=$ac_optarg ;; 1082 1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1084 | --libexe | --libex | --libe) 1085 ac_prev=libexecdir ;; 1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1087 | --libexe=* | --libex=* | --libe=*) 1088 libexecdir=$ac_optarg ;; 1089 1090 -localedir | --localedir | --localedi | --localed | --locale) 1091 ac_prev=localedir ;; 1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1093 localedir=$ac_optarg ;; 1094 1095 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1096 | --localstate | --localstat | --localsta | --localst | --locals) 1097 ac_prev=localstatedir ;; 1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1100 localstatedir=$ac_optarg ;; 1101 1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1103 ac_prev=mandir ;; 1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1105 mandir=$ac_optarg ;; 1106 1107 -nfp | --nfp | --nf) 1108 # Obsolete; use --without-fp. 1109 with_fp=no ;; 1110 1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1112 | --no-cr | --no-c | -n) 1113 no_create=yes ;; 1114 1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1117 no_recursion=yes ;; 1118 1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1121 | --oldin | --oldi | --old | --ol | --o) 1122 ac_prev=oldincludedir ;; 1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1126 oldincludedir=$ac_optarg ;; 1127 1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1129 ac_prev=prefix ;; 1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1131 prefix=$ac_optarg ;; 1132 1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1134 | --program-pre | --program-pr | --program-p) 1135 ac_prev=program_prefix ;; 1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1138 program_prefix=$ac_optarg ;; 1139 1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1141 | --program-suf | --program-su | --program-s) 1142 ac_prev=program_suffix ;; 1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1145 program_suffix=$ac_optarg ;; 1146 1147 -program-transform-name | --program-transform-name \ 1148 | --program-transform-nam | --program-transform-na \ 1149 | --program-transform-n | --program-transform- \ 1150 | --program-transform | --program-transfor \ 1151 | --program-transfo | --program-transf \ 1152 | --program-trans | --program-tran \ 1153 | --progr-tra | --program-tr | --program-t) 1154 ac_prev=program_transform_name ;; 1155 -program-transform-name=* | --program-transform-name=* \ 1156 | --program-transform-nam=* | --program-transform-na=* \ 1157 | --program-transform-n=* | --program-transform-=* \ 1158 | --program-transform=* | --program-transfor=* \ 1159 | --program-transfo=* | --program-transf=* \ 1160 | --program-trans=* | --program-tran=* \ 1161 | --progr-tra=* | --program-tr=* | --program-t=*) 1162 program_transform_name=$ac_optarg ;; 1163 1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1165 ac_prev=pdfdir ;; 1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1167 pdfdir=$ac_optarg ;; 1168 1169 -psdir | --psdir | --psdi | --psd | --ps) 1170 ac_prev=psdir ;; 1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1172 psdir=$ac_optarg ;; 1173 1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1175 | -silent | --silent | --silen | --sile | --sil) 1176 silent=yes ;; 1177 1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1179 ac_prev=sbindir ;; 1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1181 | --sbi=* | --sb=*) 1182 sbindir=$ac_optarg ;; 1183 1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1186 | --sharedst | --shareds | --shared | --share | --shar \ 1187 | --sha | --sh) 1188 ac_prev=sharedstatedir ;; 1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1192 | --sha=* | --sh=*) 1193 sharedstatedir=$ac_optarg ;; 1194 1195 -site | --site | --sit) 1196 ac_prev=site ;; 1197 -site=* | --site=* | --sit=*) 1198 site=$ac_optarg ;; 1199 1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1201 ac_prev=srcdir ;; 1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1203 srcdir=$ac_optarg ;; 1204 1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1206 | --syscon | --sysco | --sysc | --sys | --sy) 1207 ac_prev=sysconfdir ;; 1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1210 sysconfdir=$ac_optarg ;; 1211 1212 -target | --target | --targe | --targ | --tar | --ta | --t) 1213 ac_prev=target_alias ;; 1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1215 target_alias=$ac_optarg ;; 1216 1217 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1218 verbose=yes ;; 1219 1220 -version | --version | --versio | --versi | --vers | -V) 1221 ac_init_version=: ;; 1222 1223 -with-* | --with-*) 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1225 # Reject names that are not valid shell variable names. 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error "invalid package name: $ac_useropt" 1228 ac_useropt_orig=$ac_useropt 1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1230 case $ac_user_opts in 1231 *" 1232"with_$ac_useropt" 1233"*) ;; 1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1235 ac_unrecognized_sep=', ';; 1236 esac 1237 eval with_$ac_useropt=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error "invalid package name: $ac_useropt" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248"with_$ac_useropt" 1249"*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) as_fn_error "unrecognized option: \`$ac_option' 1274Try \`$0 --help' for more information." 1275 ;; 1276 1277 *=*) 1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1279 # Reject names that are not valid shell variable names. 1280 case $ac_envvar in #( 1281 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1282 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1283 esac 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 as_fn_error "missing argument to $ac_option" 1301fi 1302 1303if test -n "$ac_unrecognized_opts"; then 1304 case $enable_option_checking in 1305 no) ;; 1306 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1308 esac 1309fi 1310 1311# Check all directory arguments for consistency. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir 1316do 1317 eval ac_val=\$$ac_var 1318 # Remove trailing slashes. 1319 case $ac_val in 1320 */ ) 1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1322 eval $ac_var=\$ac_val;; 1323 esac 1324 # Be sure to have absolute directory names. 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1344 If a cross compiler is detected then cross compile mode will be used." >&2 1345 elif test "x$build_alias" != "x$host_alias"; then 1346 cross_compiling=yes 1347 fi 1348fi 1349 1350ac_tool_prefix= 1351test -n "$host_alias" && ac_tool_prefix=$host_alias- 1352 1353test "$silent" = yes && exec 6>/dev/null 1354 1355 1356ac_pwd=`pwd` && test -n "$ac_pwd" && 1357ac_ls_di=`ls -di .` && 1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1359 as_fn_error "working directory cannot be determined" 1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1361 as_fn_error "pwd does not report name of working directory" 1362 1363 1364# Find the source files, if location was not specified. 1365if test -z "$srcdir"; then 1366 ac_srcdir_defaulted=yes 1367 # Try the directory containing this script, then the parent directory. 1368 ac_confdir=`$as_dirname -- "$as_myself" || 1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1370 X"$as_myself" : 'X\(//\)[^/]' \| \ 1371 X"$as_myself" : 'X\(//\)$' \| \ 1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1373$as_echo X"$as_myself" | 1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)[^/].*/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\).*/{ 1387 s//\1/ 1388 q 1389 } 1390 s/.*/./; q'` 1391 srcdir=$ac_confdir 1392 if test ! -r "$srcdir/$ac_unique_file"; then 1393 srcdir=.. 1394 fi 1395else 1396 ac_srcdir_defaulted=no 1397fi 1398if test ! -r "$srcdir/$ac_unique_file"; then 1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1400 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1401fi 1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1403ac_abs_confdir=`( 1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1405 pwd)` 1406# When building in place, set srcdir=. 1407if test "$ac_abs_confdir" = "$ac_pwd"; then 1408 srcdir=. 1409fi 1410# Remove unnecessary trailing slashes from srcdir. 1411# Double slashes in file names in object file debugging info 1412# mess up M-x gdb in Emacs. 1413case $srcdir in 1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1415esac 1416for ac_var in $ac_precious_vars; do 1417 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_env_${ac_var}_value=\$${ac_var} 1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1420 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1421done 1422 1423# 1424# Report the --help message. 1425# 1426if test "$ac_init_help" = "long"; then 1427 # Omit some internal or obsolete options to make the list less imposing. 1428 # This message is too long to be a string in the A/UX 3.1 sh. 1429 cat <<_ACEOF 1430\`configure' configures ace 1.4 to adapt to many kinds of systems. 1431 1432Usage: $0 [OPTION]... [VAR=VALUE]... 1433 1434To assign environment variables (e.g., CC, CFLAGS...), specify them as 1435VAR=VALUE. See below for descriptions of some of the useful variables. 1436 1437Defaults for the options are specified in brackets. 1438 1439Configuration: 1440 -h, --help display this help and exit 1441 --help=short display options specific to this package 1442 --help=recursive display the short help of all the included packages 1443 -V, --version display version information and exit 1444 -q, --quiet, --silent do not print \`checking...' messages 1445 --cache-file=FILE cache test results in FILE [disabled] 1446 -C, --config-cache alias for \`--cache-file=config.cache' 1447 -n, --no-create do not create output files 1448 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1449 1450Installation directories: 1451 --prefix=PREFIX install architecture-independent files in PREFIX 1452 [$ac_default_prefix] 1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1454 [PREFIX] 1455 1456By default, \`make install' will install all the files in 1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1458an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1459for instance \`--prefix=\$HOME'. 1460 1461For better control, use the options below. 1462 1463Fine tuning of the installation directories: 1464 --bindir=DIR user executables [EPREFIX/bin] 1465 --sbindir=DIR system admin executables [EPREFIX/sbin] 1466 --libexecdir=DIR program executables [EPREFIX/libexec] 1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1470 --libdir=DIR object code libraries [EPREFIX/lib] 1471 --includedir=DIR C header files [PREFIX/include] 1472 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1475 --infodir=DIR info documentation [DATAROOTDIR/info] 1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1477 --mandir=DIR man documentation [DATAROOTDIR/man] 1478 --docdir=DIR documentation root [DATAROOTDIR/doc/ace] 1479 --htmldir=DIR html documentation [DOCDIR] 1480 --dvidir=DIR dvi documentation [DOCDIR] 1481 --pdfdir=DIR pdf documentation [DOCDIR] 1482 --psdir=DIR ps documentation [DOCDIR] 1483_ACEOF 1484 1485 cat <<\_ACEOF 1486 1487Program names: 1488 --program-prefix=PREFIX prepend PREFIX to installed program names 1489 --program-suffix=SUFFIX append SUFFIX to installed program names 1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1491 1492X features: 1493 --x-includes=DIR X include files are in DIR 1494 --x-libraries=DIR X library files are in DIR 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of ace 1.4:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-shared[=PKGS] build shared libraries [default=yes] 1513 --enable-static[=PKGS] build static libraries [default=yes] 1514 --enable-fast-install[=PKGS] 1515 optimize for fast installation [default=yes] 1516 --disable-dependency-tracking speeds up one-time build 1517 --enable-dependency-tracking do not reject slow dependency extractors 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 1520Optional Packages: 1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1523 --with-cross=TARGET select cross development 1524 --with-pic try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1527 --with-x use the X Window System 1528 --with-z=DIR location of the ZLIB library 1529 --with-png=DIR location of the PNG library 1530 1531Some influential environment variables: 1532 CC C compiler command 1533 CFLAGS C compiler flags 1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1535 nonstandard directory <lib dir> 1536 LIBS libraries to pass to the linker, e.g. -l<library> 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1538 you have headers in a nonstandard directory <include dir> 1539 CPP C preprocessor 1540 XMKMF Path to xmkmf, Makefile generator for X Window System 1541 1542Use these variables to override the choices made by `configure' or to help 1543it to find libraries and programs with nonstandard names/locations. 1544 1545Report bugs to the package provider. 1546_ACEOF 1547ac_status=$? 1548fi 1549 1550if test "$ac_init_help" = "recursive"; then 1551 # If there are subdirs, report their specific --help. 1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1553 test -d "$ac_dir" || 1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1555 continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for guested configure. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608ace configure 1.4 1609generated by GNU Autoconf 2.65 1610 1611Copyright (C) 2009 Free Software Foundation, Inc. 1612This configure script is free software; the Free Software Foundation 1613gives unlimited permission to copy, distribute and modify it. 1614_ACEOF 1615 exit 1616fi 1617 1618## ------------------------ ## 1619## Autoconf initialization. ## 1620## ------------------------ ## 1621 1622# ac_fn_c_try_compile LINENO 1623# -------------------------- 1624# Try to compile conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_compile () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 rm -f conftest.$ac_objext 1629 if { { ac_try="$ac_compile" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_compile") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } && { 1645 test -z "$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 } && test -s conftest.$ac_objext; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_compile 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 $as_test_x conftest$ac_exeext 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_link 1705 1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists and can be compiled using the include files in 1709# INCLUDES, setting the cache variable VAR accordingly. 1710ac_fn_c_check_header_compile () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714$as_echo_n "checking for $2... " >&6; } 1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720$4 1721#include <$2> 1722_ACEOF 1723if ac_fn_c_try_compile "$LINENO"; then : 1724 eval "$3=yes" 1725else 1726 eval "$3=no" 1727fi 1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1729fi 1730eval ac_res=\$$3 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732$as_echo "$ac_res" >&6; } 1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1734 1735} # ac_fn_c_check_header_compile 1736 1737# ac_fn_c_try_cpp LINENO 1738# ---------------------- 1739# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1740ac_fn_c_try_cpp () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { { ac_try="$ac_cpp conftest.$ac_ext" 1744case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1751 ac_status=$? 1752 if test -s conftest.err; then 1753 grep -v '^ *+' conftest.err >conftest.er1 1754 cat conftest.er1 >&5 1755 mv -f conftest.er1 conftest.err 1756 fi 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; } >/dev/null && { 1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1760 test ! -s conftest.err 1761 }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: failed program was:" >&5 1765sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=1 1768fi 1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_cpp 1773 1774# ac_fn_c_try_run LINENO 1775# ---------------------- 1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1777# that executables *can* be run. 1778ac_fn_c_try_run () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 if { { ac_try="$ac_link" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_link") 2>&5 1789 ac_status=$? 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1792 { { case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_try") 2>&5 1799 ac_status=$? 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; }; }; then : 1802 ac_retval=0 1803else 1804 $as_echo "$as_me: program exited with status $ac_status" >&5 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=$ac_status 1809fi 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1812 as_fn_set_status $ac_retval 1813 1814} # ac_fn_c_try_run 1815 1816# ac_fn_c_check_func LINENO FUNC VAR 1817# ---------------------------------- 1818# Tests whether FUNC exists, setting the cache variable VAR accordingly 1819ac_fn_c_check_func () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823$as_echo_n "checking for $2... " >&6; } 1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1825 $as_echo_n "(cached) " >&6 1826else 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1831#define $2 innocuous_$2 1832 1833/* System header to define __stub macros and hopefully few prototypes, 1834 which can conflict with char $2 (); below. 1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1836 <limits.h> exists even on freestanding compilers. */ 1837 1838#ifdef __STDC__ 1839# include <limits.h> 1840#else 1841# include <assert.h> 1842#endif 1843 1844#undef $2 1845 1846/* Override any GCC internal prototype to avoid an error. 1847 Use char because int might match the return type of a GCC 1848 builtin and then its argument prototype would still apply. */ 1849#ifdef __cplusplus 1850extern "C" 1851#endif 1852char $2 (); 1853/* The GNU C library defines this for functions which it implements 1854 to always fail with ENOSYS. Some functions are actually named 1855 something starting with __ and the normal name is an alias. */ 1856#if defined __stub_$2 || defined __stub___$2 1857choke me 1858#endif 1859 1860int 1861main () 1862{ 1863return $2 (); 1864 ; 1865 return 0; 1866} 1867_ACEOF 1868if ac_fn_c_try_link "$LINENO"; then : 1869 eval "$3=yes" 1870else 1871 eval "$3=no" 1872fi 1873rm -f core conftest.err conftest.$ac_objext \ 1874 conftest$ac_exeext conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1880 1881} # ac_fn_c_check_func 1882 1883# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1884# ------------------------------------------------------- 1885# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1886# the include files in INCLUDES and setting the cache variable VAR 1887# accordingly. 1888ac_fn_c_check_header_mongrel () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1895 $as_echo_n "(cached) " >&6 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900else 1901 # Is the header compilable? 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1903$as_echo_n "checking $2 usability... " >&6; } 1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907#include <$2> 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 ac_header_compiler=yes 1911else 1912 ac_header_compiler=no 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1916$as_echo "$ac_header_compiler" >&6; } 1917 1918# Is the header present? 1919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1920$as_echo_n "checking $2 presence... " >&6; } 1921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1922/* end confdefs.h. */ 1923#include <$2> 1924_ACEOF 1925if ac_fn_c_try_cpp "$LINENO"; then : 1926 ac_header_preproc=yes 1927else 1928 ac_header_preproc=no 1929fi 1930rm -f conftest.err conftest.$ac_ext 1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1932$as_echo "$ac_header_preproc" >&6; } 1933 1934# So? What about this header? 1935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1936 yes:no: ) 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1938$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1941 ;; 1942 no:yes:* ) 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1944$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1946$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1948$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1950$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1953 ;; 1954esac 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956$as_echo_n "checking for $2... " >&6; } 1957if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1958 $as_echo_n "(cached) " >&6 1959else 1960 eval "$3=\$ac_header_compiler" 1961fi 1962eval ac_res=\$$3 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964$as_echo "$ac_res" >&6; } 1965fi 1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1967 1968} # ac_fn_c_check_header_mongrel 1969cat >config.log <<_ACEOF 1970This file contains any messages produced by compilers while 1971running configure, to aid debugging if configure makes a mistake. 1972 1973It was created by ace $as_me 1.4, which was 1974generated by GNU Autoconf 2.65. Invocation command line was 1975 1976 $ $0 $@ 1977 1978_ACEOF 1979exec 5>>config.log 1980{ 1981cat <<_ASUNAME 1982## --------- ## 1983## Platform. ## 1984## --------- ## 1985 1986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1987uname -m = `(uname -m) 2>/dev/null || echo unknown` 1988uname -r = `(uname -r) 2>/dev/null || echo unknown` 1989uname -s = `(uname -s) 2>/dev/null || echo unknown` 1990uname -v = `(uname -v) 2>/dev/null || echo unknown` 1991 1992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1994 1995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1998/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2002 2003_ASUNAME 2004 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006for as_dir in $PATH 2007do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 $as_echo "PATH: $as_dir" 2011 done 2012IFS=$as_save_IFS 2013 2014} >&5 2015 2016cat >&5 <<_ACEOF 2017 2018 2019## ----------- ## 2020## Core tests. ## 2021## ----------- ## 2022 2023_ACEOF 2024 2025 2026# Keep a trace of the command line. 2027# Strip out --no-create and --no-recursion so they do not pile up. 2028# Strip out --silent because we don't want to record it for future runs. 2029# Also quote any args containing shell meta-characters. 2030# Make two passes to allow for proper duplicate-argument suppression. 2031ac_configure_args= 2032ac_configure_args0= 2033ac_configure_args1= 2034ac_must_keep_next=false 2035for ac_pass in 1 2 2036do 2037 for ac_arg 2038 do 2039 case $ac_arg in 2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2042 | -silent | --silent | --silen | --sile | --sil) 2043 continue ;; 2044 *\'*) 2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2046 esac 2047 case $ac_pass in 2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2049 2) 2050 as_fn_append ac_configure_args1 " '$ac_arg'" 2051 if test $ac_must_keep_next = true; then 2052 ac_must_keep_next=false # Got value, back to normal. 2053 else 2054 case $ac_arg in 2055 *=* | --config-cache | -C | -disable-* | --disable-* \ 2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2058 | -with-* | --with-* | -without-* | --without-* | --x) 2059 case "$ac_configure_args0 " in 2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2061 esac 2062 ;; 2063 -* ) ac_must_keep_next=true ;; 2064 esac 2065 fi 2066 as_fn_append ac_configure_args " '$ac_arg'" 2067 ;; 2068 esac 2069 done 2070done 2071{ ac_configure_args0=; unset ac_configure_args0;} 2072{ ac_configure_args1=; unset ac_configure_args1;} 2073 2074# When interrupted or exit'd, cleanup temporary files, and complete 2075# config.log. We remove comments because anyway the quotes in there 2076# would cause problems or look ugly. 2077# WARNING: Use '\'' to represent an apostrophe within the trap. 2078# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2079trap 'exit_status=$? 2080 # Save into config.log some information that might help in debugging. 2081 { 2082 echo 2083 2084 cat <<\_ASBOX 2085## ---------------- ## 2086## Cache variables. ## 2087## ---------------- ## 2088_ASBOX 2089 echo 2090 # The following way of writing the cache mishandles newlines in values, 2091( 2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in #( 2095 *${as_nl}*) 2096 case $ac_var in #( 2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2099 esac 2100 case $ac_var in #( 2101 _ | IFS | as_nl) ;; #( 2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2103 *) { eval $ac_var=; unset $ac_var;} ;; 2104 esac ;; 2105 esac 2106 done 2107 (set) 2>&1 | 2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2109 *${as_nl}ac_space=\ *) 2110 sed -n \ 2111 "s/'\''/'\''\\\\'\'''\''/g; 2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2113 ;; #( 2114 *) 2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2116 ;; 2117 esac | 2118 sort 2119) 2120 echo 2121 2122 cat <<\_ASBOX 2123## ----------------- ## 2124## Output variables. ## 2125## ----------------- ## 2126_ASBOX 2127 echo 2128 for ac_var in $ac_subst_vars 2129 do 2130 eval ac_val=\$$ac_var 2131 case $ac_val in 2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2133 esac 2134 $as_echo "$ac_var='\''$ac_val'\''" 2135 done | sort 2136 echo 2137 2138 if test -n "$ac_subst_files"; then 2139 cat <<\_ASBOX 2140## ------------------- ## 2141## File substitutions. ## 2142## ------------------- ## 2143_ASBOX 2144 echo 2145 for ac_var in $ac_subst_files 2146 do 2147 eval ac_val=\$$ac_var 2148 case $ac_val in 2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2150 esac 2151 $as_echo "$ac_var='\''$ac_val'\''" 2152 done | sort 2153 echo 2154 fi 2155 2156 if test -s confdefs.h; then 2157 cat <<\_ASBOX 2158## ----------- ## 2159## confdefs.h. ## 2160## ----------- ## 2161_ASBOX 2162 echo 2163 cat confdefs.h 2164 echo 2165 fi 2166 test "$ac_signal" != 0 && 2167 $as_echo "$as_me: caught signal $ac_signal" 2168 $as_echo "$as_me: exit $exit_status" 2169 } >&5 2170 rm -f core *.core core.conftest.* && 2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2172 exit $exit_status 2173' 0 2174for ac_signal in 1 2 13 15; do 2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2176done 2177ac_signal=0 2178 2179# confdefs.h avoids OS command line length limits that DEFS can exceed. 2180rm -f -r conftest* confdefs.h 2181 2182$as_echo "/* confdefs.h */" > confdefs.h 2183 2184# Predefined preprocessor variables. 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_NAME "$PACKAGE_NAME" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_VERSION "$PACKAGE_VERSION" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_STRING "$PACKAGE_STRING" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_URL "$PACKAGE_URL" 2208_ACEOF 2209 2210 2211# Let the site file select an alternate cache file if it wants to. 2212# Prefer an explicitly selected file to automatically selected ones. 2213ac_site_file1=NONE 2214ac_site_file2=NONE 2215if test -n "$CONFIG_SITE"; then 2216 ac_site_file1=$CONFIG_SITE 2217elif test "x$prefix" != xNONE; then 2218 ac_site_file1=$prefix/share/config.site 2219 ac_site_file2=$prefix/etc/config.site 2220else 2221 ac_site_file1=$ac_default_prefix/share/config.site 2222 ac_site_file2=$ac_default_prefix/etc/config.site 2223fi 2224for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2225do 2226 test "x$ac_site_file" = xNONE && continue 2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2229$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2230 sed 's/^/| /' "$ac_site_file" >&5 2231 . "$ac_site_file" 2232 fi 2233done 2234 2235if test -r "$cache_file"; then 2236 # Some versions of bash will fail to source /dev/null (special files 2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2240$as_echo "$as_me: loading cache $cache_file" >&6;} 2241 case $cache_file in 2242 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2243 *) . "./$cache_file";; 2244 esac 2245 fi 2246else 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2248$as_echo "$as_me: creating cache $cache_file" >&6;} 2249 >$cache_file 2250fi 2251 2252as_fn_append ac_header_list " utime.h" 2253# Check that the precious variables saved in the cache have kept the same 2254# value. 2255ac_cache_corrupted=false 2256for ac_var in $ac_precious_vars; do 2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2258 eval ac_new_set=\$ac_env_${ac_var}_set 2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2260 eval ac_new_val=\$ac_env_${ac_var}_value 2261 case $ac_old_set,$ac_new_set in 2262 set,) 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2264$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2265 ac_cache_corrupted=: ;; 2266 ,set) 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2268$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2269 ac_cache_corrupted=: ;; 2270 ,);; 2271 *) 2272 if test "x$ac_old_val" != "x$ac_new_val"; then 2273 # differences in whitespace do not lead to failure. 2274 ac_old_val_w=`echo x $ac_old_val` 2275 ac_new_val_w=`echo x $ac_new_val` 2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2278$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2279 ac_cache_corrupted=: 2280 else 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2282$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2283 eval $ac_var=\$ac_old_val 2284 fi 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2286$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2288$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2289 fi;; 2290 esac 2291 # Pass precious variables to config.status. 2292 if test "$ac_new_set" = set; then 2293 case $ac_new_val in 2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2295 *) ac_arg=$ac_var=$ac_new_val ;; 2296 esac 2297 case " $ac_configure_args " in 2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2300 esac 2301 fi 2302done 2303if $ac_cache_corrupted; then 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2307$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2308 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2309fi 2310## -------------------- ## 2311## Main body of script. ## 2312## -------------------- ## 2313 2314ac_ext=c 2315ac_cpp='$CPP $CPPFLAGS' 2316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2318ac_compiler_gnu=$ac_cv_c_compiler_gnu 2319 2320 2321 2322am__api_version='1.11' 2323 2324ac_aux_dir= 2325for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2326 for ac_t in install-sh install.sh shtool; do 2327 if test -f "$ac_dir/$ac_t"; then 2328 ac_aux_dir=$ac_dir 2329 ac_install_sh="$ac_aux_dir/$ac_t -c" 2330 break 2 2331 fi 2332 done 2333done 2334if test -z "$ac_aux_dir"; then 2335 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2336fi 2337 2338# These three variables are undocumented and unsupported, 2339# and are intended to be withdrawn in a future Autoconf release. 2340# They can cause serious problems if a builder's source tree is in a directory 2341# whose full name contains unusual characters. 2342ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2343ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2344ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2345 2346 2347# Find a good install program. We prefer a C program (faster), 2348# so one script is as good as another. But avoid the broken or 2349# incompatible versions: 2350# SysV /etc/install, /usr/sbin/install 2351# SunOS /usr/etc/install 2352# IRIX /sbin/install 2353# AIX /bin/install 2354# AmigaOS /C/install, which installs bootblocks on floppy discs 2355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2356# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2358# OS/2's system install, which has a completely different semantic 2359# ./install, which can be erroneously created by make from ./install.sh. 2360# Reject install programs that cannot install multiple files. 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2362$as_echo_n "checking for a BSD-compatible install... " >&6; } 2363if test -z "$INSTALL"; then 2364if test "${ac_cv_path_install+set}" = set; then : 2365 $as_echo_n "(cached) " >&6 2366else 2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 # Account for people who put trailing slashes in PATH elements. 2373case $as_dir/ in #(( 2374 ./ | .// | /[cC]/* | \ 2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2376 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2377 /usr/ucb/* ) ;; 2378 *) 2379 # OSF1 and SCO ODT 3.0 have their own names for install. 2380 # Don't use installbsd from OSF since it installs stuff as root 2381 # by default. 2382 for ac_prog in ginstall scoinst install; do 2383 for ac_exec_ext in '' $ac_executable_extensions; do 2384 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2385 if test $ac_prog = install && 2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2387 # AIX install. It has an incompatible calling convention. 2388 : 2389 elif test $ac_prog = install && 2390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2391 # program-specific install script used by HP pwplus--don't use. 2392 : 2393 else 2394 rm -rf conftest.one conftest.two conftest.dir 2395 echo one > conftest.one 2396 echo two > conftest.two 2397 mkdir conftest.dir 2398 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2399 test -s conftest.one && test -s conftest.two && 2400 test -s conftest.dir/conftest.one && 2401 test -s conftest.dir/conftest.two 2402 then 2403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2404 break 3 2405 fi 2406 fi 2407 fi 2408 done 2409 done 2410 ;; 2411esac 2412 2413 done 2414IFS=$as_save_IFS 2415 2416rm -rf conftest.one conftest.two conftest.dir 2417 2418fi 2419 if test "${ac_cv_path_install+set}" = set; then 2420 INSTALL=$ac_cv_path_install 2421 else 2422 # As a last resort, use the slow shell script. Don't cache a 2423 # value for INSTALL within a source directory, because that will 2424 # break other packages using the cache if that directory is 2425 # removed, or if the value is a relative name. 2426 INSTALL=$ac_install_sh 2427 fi 2428fi 2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2430$as_echo "$INSTALL" >&6; } 2431 2432# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2433# It thinks the first close brace ends the variable substitution. 2434test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2435 2436test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2437 2438test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2439 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2441$as_echo_n "checking whether build environment is sane... " >&6; } 2442# Just in case 2443sleep 1 2444echo timestamp > conftest.file 2445# Reject unsafe characters in $srcdir or the absolute working directory 2446# name. Accept space and tab only in the latter. 2447am_lf=' 2448' 2449case `pwd` in 2450 *[\\\"\#\$\&\'\`$am_lf]*) 2451 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2452esac 2453case $srcdir in 2454 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2455 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2456esac 2457 2458# Do `set' in a subshell so we don't clobber the current shell's 2459# arguments. Must try -L first in case configure is actually a 2460# symlink; some systems play weird games with the mod time of symlinks 2461# (eg FreeBSD returns the mod time of the symlink's containing 2462# directory). 2463if ( 2464 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2465 if test "$*" = "X"; then 2466 # -L didn't work. 2467 set X `ls -t "$srcdir/configure" conftest.file` 2468 fi 2469 rm -f conftest.file 2470 if test "$*" != "X $srcdir/configure conftest.file" \ 2471 && test "$*" != "X conftest.file $srcdir/configure"; then 2472 2473 # If neither matched, then we have a broken ls. This can happen 2474 # if, for instance, CONFIG_SHELL is bash and it inherits a 2475 # broken ls alias from the environment. This has actually 2476 # happened. Such a system could not be considered "sane". 2477 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2478alias in your environment" "$LINENO" 5 2479 fi 2480 2481 test "$2" = conftest.file 2482 ) 2483then 2484 # Ok. 2485 : 2486else 2487 as_fn_error "newly created file is older than distributed files! 2488Check your system clock" "$LINENO" 5 2489fi 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2491$as_echo "yes" >&6; } 2492test "$program_prefix" != NONE && 2493 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2494# Use a double $ so make ignores it. 2495test "$program_suffix" != NONE && 2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2497# Double any \ or $. 2498# By default was `s,x,x', remove it if useless. 2499ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2500program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2501 2502# expand $ac_aux_dir to an absolute path 2503am_aux_dir=`cd $ac_aux_dir && pwd` 2504 2505if test x"${MISSING+set}" != xset; then 2506 case $am_aux_dir in 2507 *\ * | *\ *) 2508 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2509 *) 2510 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2511 esac 2512fi 2513# Use eval to expand $SHELL 2514if eval "$MISSING --run true"; then 2515 am_missing_run="$MISSING --run " 2516else 2517 am_missing_run= 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2519$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2520fi 2521 2522if test x"${install_sh}" != xset; then 2523 case $am_aux_dir in 2524 *\ * | *\ *) 2525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2526 *) 2527 install_sh="\${SHELL} $am_aux_dir/install-sh" 2528 esac 2529fi 2530 2531# Installed binaries are usually stripped using `strip' when the user 2532# run `make install-strip'. However `strip' might not be the right 2533# tool to use in cross-compilation environments, therefore Automake 2534# will honor the `STRIP' environment variable to overrule this program. 2535if test "$cross_compiling" != no; then 2536 if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}strip; ac_word=$2 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2540$as_echo_n "checking for $ac_word... " >&6; } 2541if test "${ac_cv_prog_STRIP+set}" = set; then : 2542 $as_echo_n "(cached) " >&6 2543else 2544 if test -n "$STRIP"; then 2545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559 done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564STRIP=$ac_cv_prog_STRIP 2565if test -n "$STRIP"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2567$as_echo "$STRIP" >&6; } 2568else 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2570$as_echo "no" >&6; } 2571fi 2572 2573 2574fi 2575if test -z "$ac_cv_prog_STRIP"; then 2576 ac_ct_STRIP=$STRIP 2577 # Extract the first word of "strip", so it can be a program name with args. 2578set dummy strip; ac_word=$2 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580$as_echo_n "checking for $ac_word... " >&6; } 2581if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test -n "$ac_ct_STRIP"; then 2585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_ac_ct_STRIP="strip" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2605if test -n "$ac_ct_STRIP"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2607$as_echo "$ac_ct_STRIP" >&6; } 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610$as_echo "no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_STRIP" = x; then 2614 STRIP=":" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2620ac_tool_warned=yes ;; 2621esac 2622 STRIP=$ac_ct_STRIP 2623 fi 2624else 2625 STRIP="$ac_cv_prog_STRIP" 2626fi 2627 2628fi 2629INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2630 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2632$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2633if test -z "$MKDIR_P"; then 2634 if test "${ac_cv_path_mkdir+set}" = set; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_prog in mkdir gmkdir; do 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2646 'mkdir (GNU coreutils) '* | \ 2647 'mkdir (coreutils) '* | \ 2648 'mkdir (fileutils) '4.1*) 2649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2650 break 3;; 2651 esac 2652 done 2653 done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658 2659 test -d ./--version && rmdir ./--version 2660 if test "${ac_cv_path_mkdir+set}" = set; then 2661 MKDIR_P="$ac_cv_path_mkdir -p" 2662 else 2663 # As a last resort, use the slow shell script. Don't cache a 2664 # value for MKDIR_P within a source directory, because that will 2665 # break other packages using the cache if that directory is 2666 # removed, or if the value is a relative name. 2667 MKDIR_P="$ac_install_sh -d" 2668 fi 2669fi 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2671$as_echo "$MKDIR_P" >&6; } 2672 2673mkdir_p="$MKDIR_P" 2674case $mkdir_p in 2675 [\\/$]* | ?:[\\/]*) ;; 2676 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2677esac 2678 2679for ac_prog in gawk mawk nawk awk 2680do 2681 # Extract the first word of "$ac_prog", so it can be a program name with args. 2682set dummy $ac_prog; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if test "${ac_cv_prog_AWK+set}" = set; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$AWK"; then 2689 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2698 ac_cv_prog_AWK="$ac_prog" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708AWK=$ac_cv_prog_AWK 2709if test -n "$AWK"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2711$as_echo "$AWK" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718 test -n "$AWK" && break 2719done 2720 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2722$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2723set x ${MAKE-make} 2724ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2725if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 cat >conftest.make <<\_ACEOF 2729SHELL = /bin/sh 2730all: 2731 @echo '@@@%%%=$(MAKE)=@@@%%%' 2732_ACEOF 2733# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2734case `${MAKE-make} -f conftest.make 2>/dev/null` in 2735 *@@@%%%=?*=@@@%%%*) 2736 eval ac_cv_prog_make_${ac_make}_set=yes;; 2737 *) 2738 eval ac_cv_prog_make_${ac_make}_set=no;; 2739esac 2740rm -f conftest.make 2741fi 2742if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2744$as_echo "yes" >&6; } 2745 SET_MAKE= 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749 SET_MAKE="MAKE=${MAKE-make}" 2750fi 2751 2752rm -rf .tst 2>/dev/null 2753mkdir .tst 2>/dev/null 2754if test -d .tst; then 2755 am__leading_dot=. 2756else 2757 am__leading_dot=_ 2758fi 2759rmdir .tst 2>/dev/null 2760 2761if test "`cd $srcdir && pwd`" != "`pwd`"; then 2762 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2763 # is not polluted with repeated "-I." 2764 am__isrc=' -I$(srcdir)' 2765 # test to see if srcdir already configured 2766 if test -f $srcdir/config.status; then 2767 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2768 fi 2769fi 2770 2771# test whether we have cygpath 2772if test -z "$CYGPATH_W"; then 2773 if (cygpath --version) >/dev/null 2>/dev/null; then 2774 CYGPATH_W='cygpath -w' 2775 else 2776 CYGPATH_W=echo 2777 fi 2778fi 2779 2780 2781# Define the identity of the package. 2782 PACKAGE='ace' 2783 VERSION='1.4' 2784 2785 2786cat >>confdefs.h <<_ACEOF 2787#define PACKAGE "$PACKAGE" 2788_ACEOF 2789 2790 2791cat >>confdefs.h <<_ACEOF 2792#define VERSION "$VERSION" 2793_ACEOF 2794 2795# Some tools Automake needs. 2796 2797ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2798 2799 2800AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2801 2802 2803AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2804 2805 2806AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2807 2808 2809MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2810 2811# We need awk for the "check" target. The system "awk" is bad on 2812# some platforms. 2813# Always define AMTAR for backward compatibility. 2814 2815AMTAR=${AMTAR-"${am_missing_run}tar"} 2816 2817am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2818 2819 2820 2821 2822 2823 2824 2825# Check whether --with-cross was given. 2826if test "${with_cross+set}" = set; then : 2827 withval=$with_cross; 2828 target=$withval 2829 host=$withval 2830 echo Cross compiling for $withval 2831 CC=$target-gcc 2832 AR=$target-ar 2833 RANLIB=$target-ranlib 2834 LD=$target-ld 2835 STRIP=$target-strip 2836 PDA=-DPDA 2837 2838 for dir in x `$CC --print-search-dirs | grep libraries: | sed -e 's/libraries: //' -e 's/:/ /g'` 2839 do 2840 dir=`echo $dir | sed 's@/$@@'` 2841 echo testing $dir/X11 2842 if test -d $dir/X11 2843 then 2844 x_libraries=$dir/X11 2845 break; 2846 fi 2847 done 2848 echo x_libraries=$x_libraries 2849 case $x_libraries in 2850 *lib/X11 ) dir=`echo $x_libraries | sed 's@lib/X11$@include@'` ;; 2851 *gcc-lib* ) dir=`echo $x_libraries | sed -e 's@gcc-lib@@' -e 's@X11$@include@'` ;; 2852 *) dir=`echo $x_libraries | sed 's@X11$@include@'` ;; 2853 esac 2854 test -d $dir/. && x_includes=$dir 2855 export CC AR RANLIB LD STRIP PDA 2856 2857fi 2858 2859 2860ac_ext=c 2861ac_cpp='$CPP $CPPFLAGS' 2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2864ac_compiler_gnu=$ac_cv_c_compiler_gnu 2865 2866 2867case `pwd` in 2868 *\ * | *\ *) 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2870$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2871esac 2872 2873 2874 2875macro_version='2.2.6b' 2876macro_revision='1.3017' 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890ltmain="$ac_aux_dir/ltmain.sh" 2891 2892# Make sure we can run config.sub. 2893$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2894 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2895 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2897$as_echo_n "checking build system type... " >&6; } 2898if test "${ac_cv_build+set}" = set; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 ac_build_alias=$build_alias 2902test "x$ac_build_alias" = x && 2903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2904test "x$ac_build_alias" = x && 2905 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2906ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2907 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2908 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2911$as_echo "$ac_cv_build" >&6; } 2912case $ac_cv_build in 2913*-*-*) ;; 2914*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2915esac 2916build=$ac_cv_build 2917ac_save_IFS=$IFS; IFS='-' 2918set x $ac_cv_build 2919shift 2920build_cpu=$1 2921build_vendor=$2 2922shift; shift 2923# Remember, the first character of IFS is used to create $*, 2924# except with old shells: 2925build_os=$* 2926IFS=$ac_save_IFS 2927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2928 2929 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2931$as_echo_n "checking host system type... " >&6; } 2932if test "${ac_cv_host+set}" = set; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test "x$host_alias" = x; then 2936 ac_cv_host=$ac_cv_build 2937else 2938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2939 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2940fi 2941 2942fi 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2944$as_echo "$ac_cv_host" >&6; } 2945case $ac_cv_host in 2946*-*-*) ;; 2947*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2948esac 2949host=$ac_cv_host 2950ac_save_IFS=$IFS; IFS='-' 2951set x $ac_cv_host 2952shift 2953host_cpu=$1 2954host_vendor=$2 2955shift; shift 2956# Remember, the first character of IFS is used to create $*, 2957# except with old shells: 2958host_os=$* 2959IFS=$ac_save_IFS 2960case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2961 2962 2963DEPDIR="${am__leading_dot}deps" 2964 2965ac_config_commands="$ac_config_commands depfiles" 2966 2967 2968am_make=${MAKE-make} 2969cat > confinc << 'END' 2970am__doit: 2971 @echo this is the am__doit target 2972.PHONY: am__doit 2973END 2974# If we don't find an include directive, just comment out the code. 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2976$as_echo_n "checking for style of include used by $am_make... " >&6; } 2977am__include="#" 2978am__quote= 2979_am_result=none 2980# First try GNU make style include. 2981echo "include confinc" > confmf 2982# Ignore all kinds of additional output from `make'. 2983case `$am_make -s -f confmf 2> /dev/null` in #( 2984*the\ am__doit\ target*) 2985 am__include=include 2986 am__quote= 2987 _am_result=GNU 2988 ;; 2989esac 2990# Now try BSD make style include. 2991if test "$am__include" = "#"; then 2992 echo '.include "confinc"' > confmf 2993 case `$am_make -s -f confmf 2> /dev/null` in #( 2994 *the\ am__doit\ target*) 2995 am__include=.include 2996 am__quote="\"" 2997 _am_result=BSD 2998 ;; 2999 esac 3000fi 3001 3002 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3004$as_echo "$_am_result" >&6; } 3005rm -f confinc confmf 3006 3007# Check whether --enable-dependency-tracking was given. 3008if test "${enable_dependency_tracking+set}" = set; then : 3009 enableval=$enable_dependency_tracking; 3010fi 3011 3012if test "x$enable_dependency_tracking" != xno; then 3013 am_depcomp="$ac_aux_dir/depcomp" 3014 AMDEPBACKSLASH='\' 3015fi 3016 if test "x$enable_dependency_tracking" != xno; then 3017 AMDEP_TRUE= 3018 AMDEP_FALSE='#' 3019else 3020 AMDEP_TRUE='#' 3021 AMDEP_FALSE= 3022fi 3023 3024 3025ac_ext=c 3026ac_cpp='$CPP $CPPFLAGS' 3027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3029ac_compiler_gnu=$ac_cv_c_compiler_gnu 3030if test -n "$ac_tool_prefix"; then 3031 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3032set dummy ${ac_tool_prefix}gcc; ac_word=$2 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034$as_echo_n "checking for $ac_word... " >&6; } 3035if test "${ac_cv_prog_CC+set}" = set; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if test -n "$CC"; then 3039 ac_cv_prog_CC="$CC" # Let the user override the test. 3040else 3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3048 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3050 break 2 3051 fi 3052done 3053 done 3054IFS=$as_save_IFS 3055 3056fi 3057fi 3058CC=$ac_cv_prog_CC 3059if test -n "$CC"; then 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3061$as_echo "$CC" >&6; } 3062else 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3064$as_echo "no" >&6; } 3065fi 3066 3067 3068fi 3069if test -z "$ac_cv_prog_CC"; then 3070 ac_ct_CC=$CC 3071 # Extract the first word of "gcc", so it can be a program name with args. 3072set dummy gcc; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$ac_ct_CC"; then 3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3088 ac_cv_prog_ac_ct_CC="gcc" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098ac_ct_CC=$ac_cv_prog_ac_ct_CC 3099if test -n "$ac_ct_CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3101$as_echo "$ac_ct_CC" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 if test "x$ac_ct_CC" = x; then 3108 CC="" 3109 else 3110 case $cross_compiling:$ac_tool_warned in 3111yes:) 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3114ac_tool_warned=yes ;; 3115esac 3116 CC=$ac_ct_CC 3117 fi 3118else 3119 CC="$ac_cv_prog_CC" 3120fi 3121 3122if test -z "$CC"; then 3123 if test -n "$ac_tool_prefix"; then 3124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3125set dummy ${ac_tool_prefix}cc; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if test "${ac_cv_prog_CC+set}" = set; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 if test -n "$CC"; then 3132 ac_cv_prog_CC="$CC" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3141 ac_cv_prog_CC="${ac_tool_prefix}cc" 3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146 done 3147IFS=$as_save_IFS 3148 3149fi 3150fi 3151CC=$ac_cv_prog_CC 3152if test -n "$CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3154$as_echo "$CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161 fi 3162fi 3163if test -z "$CC"; then 3164 # Extract the first word of "cc", so it can be a program name with args. 3165set dummy cc; ac_word=$2 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167$as_echo_n "checking for $ac_word... " >&6; } 3168if test "${ac_cv_prog_CC+set}" = set; then : 3169 $as_echo_n "(cached) " >&6 3170else 3171 if test -n "$CC"; then 3172 ac_cv_prog_CC="$CC" # Let the user override the test. 3173else 3174 ac_prog_rejected=no 3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3176for as_dir in $PATH 3177do 3178 IFS=$as_save_IFS 3179 test -z "$as_dir" && as_dir=. 3180 for ac_exec_ext in '' $ac_executable_extensions; do 3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3183 ac_prog_rejected=yes 3184 continue 3185 fi 3186 ac_cv_prog_CC="cc" 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194if test $ac_prog_rejected = yes; then 3195 # We found a bogon in the path, so make sure we never use it. 3196 set dummy $ac_cv_prog_CC 3197 shift 3198 if test $# != 0; then 3199 # We chose a different compiler from the bogus one. 3200 # However, it has the same basename, so the bogon will be chosen 3201 # first if we set CC to just the basename; use the full file name. 3202 shift 3203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3204 fi 3205fi 3206fi 3207fi 3208CC=$ac_cv_prog_CC 3209if test -n "$CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3211$as_echo "$CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218fi 3219if test -z "$CC"; then 3220 if test -n "$ac_tool_prefix"; then 3221 for ac_prog in cl.exe 3222 do 3223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3224set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3226$as_echo_n "checking for $ac_word... " >&6; } 3227if test "${ac_cv_prog_CC+set}" = set; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 if test -n "$CC"; then 3231 ac_cv_prog_CC="$CC" # Let the user override the test. 3232else 3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3234for as_dir in $PATH 3235do 3236 IFS=$as_save_IFS 3237 test -z "$as_dir" && as_dir=. 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3242 break 2 3243 fi 3244done 3245 done 3246IFS=$as_save_IFS 3247 3248fi 3249fi 3250CC=$ac_cv_prog_CC 3251if test -n "$CC"; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3253$as_echo "$CC" >&6; } 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257fi 3258 3259 3260 test -n "$CC" && break 3261 done 3262fi 3263if test -z "$CC"; then 3264 ac_ct_CC=$CC 3265 for ac_prog in cl.exe 3266do 3267 # Extract the first word of "$ac_prog", so it can be a program name with args. 3268set dummy $ac_prog; ac_word=$2 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270$as_echo_n "checking for $ac_word... " >&6; } 3271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 if test -n "$ac_ct_CC"; then 3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 test -z "$as_dir" && as_dir=. 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3284 ac_cv_prog_ac_ct_CC="$ac_prog" 3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292fi 3293fi 3294ac_ct_CC=$ac_cv_prog_ac_ct_CC 3295if test -n "$ac_ct_CC"; then 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3297$as_echo "$ac_ct_CC" >&6; } 3298else 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3300$as_echo "no" >&6; } 3301fi 3302 3303 3304 test -n "$ac_ct_CC" && break 3305done 3306 3307 if test "x$ac_ct_CC" = x; then 3308 CC="" 3309 else 3310 case $cross_compiling:$ac_tool_warned in 3311yes:) 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3314ac_tool_warned=yes ;; 3315esac 3316 CC=$ac_ct_CC 3317 fi 3318fi 3319 3320fi 3321 3322 3323test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325as_fn_error "no acceptable C compiler found in \$PATH 3326See \`config.log' for more details." "$LINENO" 5; } 3327 3328# Provide some information about the compiler. 3329$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3330set X $ac_compile 3331ac_compiler=$2 3332for ac_option in --version -v -V -qversion; do 3333 { { ac_try="$ac_compiler $ac_option >&5" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339$as_echo "$ac_try_echo"; } >&5 3340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3341 ac_status=$? 3342 if test -s conftest.err; then 3343 sed '10a\ 3344... rest of stderr output deleted ... 3345 10q' conftest.err >conftest.er1 3346 cat conftest.er1 >&5 3347 fi 3348 rm -f conftest.er1 conftest.err 3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3350 test $ac_status = 0; } 3351done 3352 3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355 3356int 3357main () 3358{ 3359 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364ac_clean_files_save=$ac_clean_files 3365ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3366# Try to create an executable without -o first, disregard a.out. 3367# It will help us diagnose broken compilers, and finding out an intuition 3368# of exeext. 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3370$as_echo_n "checking whether the C compiler works... " >&6; } 3371ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3372 3373# The possible output files: 3374ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3375 3376ac_rmfiles= 3377for ac_file in $ac_files 3378do 3379 case $ac_file in 3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3381 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3382 esac 3383done 3384rm -f $ac_rmfiles 3385 3386if { { ac_try="$ac_link_default" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_link_default") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; then : 3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3398# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3399# in a Makefile. We should not override ac_cv_exeext if it was cached, 3400# so that the user can short-circuit this test for compilers unknown to 3401# Autoconf. 3402for ac_file in $ac_files '' 3403do 3404 test -f "$ac_file" || continue 3405 case $ac_file in 3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3407 ;; 3408 [ab].out ) 3409 # We found the default executable, but exeext='' is most 3410 # certainly right. 3411 break;; 3412 *.* ) 3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3414 then :; else 3415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3416 fi 3417 # We set ac_cv_exeext here because the later test for it is not 3418 # safe: cross compilers may not add the suffix if given an `-o' 3419 # argument, so we may need to know it at that point already. 3420 # Even if this section looks crufty: it has the advantage of 3421 # actually working. 3422 break;; 3423 * ) 3424 break;; 3425 esac 3426done 3427test "$ac_cv_exeext" = no && ac_cv_exeext= 3428 3429else 3430 ac_file='' 3431fi 3432if test -z "$ac_file"; then : 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434$as_echo "no" >&6; } 3435$as_echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440{ as_fn_set_status 77 3441as_fn_error "C compiler cannot create executables 3442See \`config.log' for more details." "$LINENO" 5; }; } 3443else 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3445$as_echo "yes" >&6; } 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3448$as_echo_n "checking for C compiler default output file name... " >&6; } 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3450$as_echo "$ac_file" >&6; } 3451ac_exeext=$ac_cv_exeext 3452 3453rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3454ac_clean_files=$ac_clean_files_save 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3456$as_echo_n "checking for suffix of executables... " >&6; } 3457if { { ac_try="$ac_link" 3458case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3463$as_echo "$ac_try_echo"; } >&5 3464 (eval "$ac_link") 2>&5 3465 ac_status=$? 3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3467 test $ac_status = 0; }; then : 3468 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3469# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3470# work properly (i.e., refer to `conftest.exe'), while it won't with 3471# `rm'. 3472for ac_file in conftest.exe conftest conftest.*; do 3473 test -f "$ac_file" || continue 3474 case $ac_file in 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3477 break;; 3478 * ) break;; 3479 esac 3480done 3481else 3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484as_fn_error "cannot compute suffix of executables: cannot compile and link 3485See \`config.log' for more details." "$LINENO" 5; } 3486fi 3487rm -f conftest conftest$ac_cv_exeext 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3489$as_echo "$ac_cv_exeext" >&6; } 3490 3491rm -f conftest.$ac_ext 3492EXEEXT=$ac_cv_exeext 3493ac_exeext=$EXEEXT 3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496#include <stdio.h> 3497int 3498main () 3499{ 3500FILE *f = fopen ("conftest.out", "w"); 3501 return ferror (f) || fclose (f) != 0; 3502 3503 ; 3504 return 0; 3505} 3506_ACEOF 3507ac_clean_files="$ac_clean_files conftest.out" 3508# Check that the compiler produces executables we can run. If not, either 3509# the compiler is broken, or we cross compile. 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3511$as_echo_n "checking whether we are cross compiling... " >&6; } 3512if test "$cross_compiling" != yes; then 3513 { { ac_try="$ac_link" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; } 3524 if { ac_try='./conftest$ac_cv_exeext' 3525 { { case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528esac 3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530$as_echo "$ac_try_echo"; } >&5 3531 (eval "$ac_try") 2>&5 3532 ac_status=$? 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; }; }; then 3535 cross_compiling=no 3536 else 3537 if test "$cross_compiling" = maybe; then 3538 cross_compiling=yes 3539 else 3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3542as_fn_error "cannot run C compiled programs. 3543If you meant to cross compile, use \`--host'. 3544See \`config.log' for more details." "$LINENO" 5; } 3545 fi 3546 fi 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3549$as_echo "$cross_compiling" >&6; } 3550 3551rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3552ac_clean_files=$ac_clean_files_save 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3554$as_echo_n "checking for suffix of object files... " >&6; } 3555if test "${ac_cv_objext+set}" = set; then : 3556 $as_echo_n "(cached) " >&6 3557else 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559/* end confdefs.h. */ 3560 3561int 3562main () 3563{ 3564 3565 ; 3566 return 0; 3567} 3568_ACEOF 3569rm -f conftest.o conftest.obj 3570if { { ac_try="$ac_compile" 3571case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574esac 3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3576$as_echo "$ac_try_echo"; } >&5 3577 (eval "$ac_compile") 2>&5 3578 ac_status=$? 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; }; then : 3581 for ac_file in conftest.o conftest.obj conftest.*; do 3582 test -f "$ac_file" || continue; 3583 case $ac_file in 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3586 break;; 3587 esac 3588done 3589else 3590 $as_echo "$as_me: failed program was:" >&5 3591sed 's/^/| /' conftest.$ac_ext >&5 3592 3593{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3595as_fn_error "cannot compute suffix of object files: cannot compile 3596See \`config.log' for more details." "$LINENO" 5; } 3597fi 3598rm -f conftest.$ac_cv_objext conftest.$ac_ext 3599fi 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3601$as_echo "$ac_cv_objext" >&6; } 3602OBJEXT=$ac_cv_objext 3603ac_objext=$OBJEXT 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3606if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3607 $as_echo_n "(cached) " >&6 3608else 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3610/* end confdefs.h. */ 3611 3612int 3613main () 3614{ 3615#ifndef __GNUC__ 3616 choke me 3617#endif 3618 3619 ; 3620 return 0; 3621} 3622_ACEOF 3623if ac_fn_c_try_compile "$LINENO"; then : 3624 ac_compiler_gnu=yes 3625else 3626 ac_compiler_gnu=no 3627fi 3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3629ac_cv_c_compiler_gnu=$ac_compiler_gnu 3630 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3633$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3634if test $ac_compiler_gnu = yes; then 3635 GCC=yes 3636else 3637 GCC= 3638fi 3639ac_test_CFLAGS=${CFLAGS+set} 3640ac_save_CFLAGS=$CFLAGS 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3642$as_echo_n "checking whether $CC accepts -g... " >&6; } 3643if test "${ac_cv_prog_cc_g+set}" = set; then : 3644 $as_echo_n "(cached) " >&6 3645else 3646 ac_save_c_werror_flag=$ac_c_werror_flag 3647 ac_c_werror_flag=yes 3648 ac_cv_prog_cc_g=no 3649 CFLAGS="-g" 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_cv_prog_cc_g=yes 3663else 3664 CFLAGS="" 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 3678else 3679 ac_c_werror_flag=$ac_save_c_werror_flag 3680 CFLAGS="-g" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 ac_cv_prog_cc_g=yes 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696fi 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3698fi 3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3700 ac_c_werror_flag=$ac_save_c_werror_flag 3701fi 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3703$as_echo "$ac_cv_prog_cc_g" >&6; } 3704if test "$ac_test_CFLAGS" = set; then 3705 CFLAGS=$ac_save_CFLAGS 3706elif test $ac_cv_prog_cc_g = yes; then 3707 if test "$GCC" = yes; then 3708 CFLAGS="-g -O2" 3709 else 3710 CFLAGS="-g" 3711 fi 3712else 3713 if test "$GCC" = yes; then 3714 CFLAGS="-O2" 3715 else 3716 CFLAGS= 3717 fi 3718fi 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3721if test "${ac_cv_prog_cc_c89+set}" = set; then : 3722 $as_echo_n "(cached) " >&6 3723else 3724 ac_cv_prog_cc_c89=no 3725ac_save_CC=$CC 3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728#include <stdarg.h> 3729#include <stdio.h> 3730#include <sys/types.h> 3731#include <sys/stat.h> 3732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3733struct buf { int x; }; 3734FILE * (*rcsopen) (struct buf *, struct stat *, int); 3735static char *e (p, i) 3736 char **p; 3737 int i; 3738{ 3739 return p[i]; 3740} 3741static char *f (char * (*g) (char **, int), char **p, ...) 3742{ 3743 char *s; 3744 va_list v; 3745 va_start (v,p); 3746 s = g (p, va_arg (v,int)); 3747 va_end (v); 3748 return s; 3749} 3750 3751/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3752 function prototypes and stuff, but not '\xHH' hex character constants. 3753 These don't provoke an error unfortunately, instead are silently treated 3754 as 'x'. The following induces an error, until -std is added to get 3755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3756 array size at least. It's necessary to write '\x00'==0 to get something 3757 that's true only with -std. */ 3758int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3759 3760/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3761 inside strings and character constants. */ 3762#define FOO(x) 'x' 3763int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3764 3765int test (int i, double x); 3766struct s1 {int (*f) (int a);}; 3767struct s2 {int (*f) (double a);}; 3768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3769int argc; 3770char **argv; 3771int 3772main () 3773{ 3774return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3780 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3781do 3782 CC="$ac_save_CC $ac_arg" 3783 if ac_fn_c_try_compile "$LINENO"; then : 3784 ac_cv_prog_cc_c89=$ac_arg 3785fi 3786rm -f core conftest.err conftest.$ac_objext 3787 test "x$ac_cv_prog_cc_c89" != "xno" && break 3788done 3789rm -f conftest.$ac_ext 3790CC=$ac_save_CC 3791 3792fi 3793# AC_CACHE_VAL 3794case "x$ac_cv_prog_cc_c89" in 3795 x) 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3797$as_echo "none needed" >&6; } ;; 3798 xno) 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3800$as_echo "unsupported" >&6; } ;; 3801 *) 3802 CC="$CC $ac_cv_prog_cc_c89" 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3804$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3805esac 3806if test "x$ac_cv_prog_cc_c89" != xno; then : 3807 3808fi 3809 3810ac_ext=c 3811ac_cpp='$CPP $CPPFLAGS' 3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3814ac_compiler_gnu=$ac_cv_c_compiler_gnu 3815 3816depcc="$CC" am_compiler_list= 3817 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3819$as_echo_n "checking dependency style of $depcc... " >&6; } 3820if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3824 # We make a subdir and do the tests there. Otherwise we can end up 3825 # making bogus files that we don't know about and never remove. For 3826 # instance it was reported that on HP-UX the gcc test will end up 3827 # making a dummy file named `D' -- because `-MD' means `put the output 3828 # in D'. 3829 mkdir conftest.dir 3830 # Copy depcomp to subdir because otherwise we won't find it if we're 3831 # using a relative directory. 3832 cp "$am_depcomp" conftest.dir 3833 cd conftest.dir 3834 # We will build objects and dependencies in a subdirectory because 3835 # it helps to detect inapplicable dependency modes. For instance 3836 # both Tru64's cc and ICC support -MD to output dependencies as a 3837 # side effect of compilation, but ICC will put the dependencies in 3838 # the current directory while Tru64 will put them in the object 3839 # directory. 3840 mkdir sub 3841 3842 am_cv_CC_dependencies_compiler_type=none 3843 if test "$am_compiler_list" = ""; then 3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3845 fi 3846 am__universal=false 3847 case " $depcc " in #( 3848 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3849 esac 3850 3851 for depmode in $am_compiler_list; do 3852 # Setup a source with many dependencies, because some compilers 3853 # like to wrap large dependency lists on column 80 (with \), and 3854 # we should not choose a depcomp mode which is confused by this. 3855 # 3856 # We need to recreate these files for each test, as the compiler may 3857 # overwrite some of them when testing with obscure command lines. 3858 # This happens at least with the AIX C compiler. 3859 : > sub/conftest.c 3860 for i in 1 2 3 4 5 6; do 3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3863 # Solaris 8's {/usr,}/bin/sh. 3864 touch sub/conftst$i.h 3865 done 3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3867 3868 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3869 # mode. It turns out that the SunPro C++ compiler does not properly 3870 # handle `-M -o', and we need to detect this. Also, some Intel 3871 # versions had trouble with output in subdirs 3872 am__obj=sub/conftest.${OBJEXT-o} 3873 am__minus_obj="-o $am__obj" 3874 case $depmode in 3875 gcc) 3876 # This depmode causes a compiler race in universal mode. 3877 test "$am__universal" = false || continue 3878 ;; 3879 nosideeffect) 3880 # after this tag, mechanisms are not by side-effect, so they'll 3881 # only be used when explicitly requested 3882 if test "x$enable_dependency_tracking" = xyes; then 3883 continue 3884 else 3885 break 3886 fi 3887 ;; 3888 msvisualcpp | msvcmsys) 3889 # This compiler won't grok `-c -o', but also, the minuso test has 3890 # not run yet. These depmodes are late enough in the game, and 3891 # so weak that their functioning should not be impacted. 3892 am__obj=conftest.${OBJEXT-o} 3893 am__minus_obj= 3894 ;; 3895 none) break ;; 3896 esac 3897 if depmode=$depmode \ 3898 source=sub/conftest.c object=$am__obj \ 3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3901 >/dev/null 2>conftest.err && 3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3906 # icc doesn't choke on unknown options, it will just issue warnings 3907 # or remarks (even with -Werror). So we grep stderr for any message 3908 # that says an option was ignored or not supported. 3909 # When given -MP, icc 7.0 and 7.1 complain thusly: 3910 # icc: Command line warning: ignoring option '-M'; no argument required 3911 # The diagnosis changed in icc 8.0: 3912 # icc: Command line remark: option '-MP' not supported 3913 if (grep 'ignoring option' conftest.err || 3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3915 am_cv_CC_dependencies_compiler_type=$depmode 3916 break 3917 fi 3918 fi 3919 done 3920 3921 cd .. 3922 rm -rf conftest.dir 3923else 3924 am_cv_CC_dependencies_compiler_type=none 3925fi 3926 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3929$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3930CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3931 3932 if 3933 test "x$enable_dependency_tracking" != xno \ 3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3935 am__fastdepCC_TRUE= 3936 am__fastdepCC_FALSE='#' 3937else 3938 am__fastdepCC_TRUE='#' 3939 am__fastdepCC_FALSE= 3940fi 3941 3942 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3944$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3945if test "${ac_cv_path_SED+set}" = set; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3949 for ac_i in 1 2 3 4 5 6 7; do 3950 ac_script="$ac_script$as_nl$ac_script" 3951 done 3952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3953 { ac_script=; unset ac_script;} 3954 if test -z "$SED"; then 3955 ac_path_SED_found=false 3956 # Loop through the user's path and test for each of PROGNAME-LIST 3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_prog in sed gsed; do 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3965 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3966# Check for GNU ac_path_SED and select it if it is found. 3967 # Check for GNU $ac_path_SED 3968case `"$ac_path_SED" --version 2>&1` in 3969*GNU*) 3970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3971*) 3972 ac_count=0 3973 $as_echo_n 0123456789 >"conftest.in" 3974 while : 3975 do 3976 cat "conftest.in" "conftest.in" >"conftest.tmp" 3977 mv "conftest.tmp" "conftest.in" 3978 cp "conftest.in" "conftest.nl" 3979 $as_echo '' >> "conftest.nl" 3980 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3982 as_fn_arith $ac_count + 1 && ac_count=$as_val 3983 if test $ac_count -gt ${ac_path_SED_max-0}; then 3984 # Best one so far, save it but keep looking for a better one 3985 ac_cv_path_SED="$ac_path_SED" 3986 ac_path_SED_max=$ac_count 3987 fi 3988 # 10*(2^10) chars as input seems more than enough 3989 test $ac_count -gt 10 && break 3990 done 3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3992esac 3993 3994 $ac_path_SED_found && break 3 3995 done 3996 done 3997 done 3998IFS=$as_save_IFS 3999 if test -z "$ac_cv_path_SED"; then 4000 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4001 fi 4002else 4003 ac_cv_path_SED=$SED 4004fi 4005 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4008$as_echo "$ac_cv_path_SED" >&6; } 4009 SED="$ac_cv_path_SED" 4010 rm -f conftest.sed 4011 4012test -z "$SED" && SED=sed 4013Xsed="$SED -e 1s/^X//" 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4026$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4027if test "${ac_cv_path_GREP+set}" = set; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 if test -z "$GREP"; then 4031 ac_path_GREP_found=false 4032 # Loop through the user's path and test for each of PROGNAME-LIST 4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4035do 4036 IFS=$as_save_IFS 4037 test -z "$as_dir" && as_dir=. 4038 for ac_prog in grep ggrep; do 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4041 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4042# Check for GNU ac_path_GREP and select it if it is found. 4043 # Check for GNU $ac_path_GREP 4044case `"$ac_path_GREP" --version 2>&1` in 4045*GNU*) 4046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4047*) 4048 ac_count=0 4049 $as_echo_n 0123456789 >"conftest.in" 4050 while : 4051 do 4052 cat "conftest.in" "conftest.in" >"conftest.tmp" 4053 mv "conftest.tmp" "conftest.in" 4054 cp "conftest.in" "conftest.nl" 4055 $as_echo 'GREP' >> "conftest.nl" 4056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4058 as_fn_arith $ac_count + 1 && ac_count=$as_val 4059 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4060 # Best one so far, save it but keep looking for a better one 4061 ac_cv_path_GREP="$ac_path_GREP" 4062 ac_path_GREP_max=$ac_count 4063 fi 4064 # 10*(2^10) chars as input seems more than enough 4065 test $ac_count -gt 10 && break 4066 done 4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4068esac 4069 4070 $ac_path_GREP_found && break 3 4071 done 4072 done 4073 done 4074IFS=$as_save_IFS 4075 if test -z "$ac_cv_path_GREP"; then 4076 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4077 fi 4078else 4079 ac_cv_path_GREP=$GREP 4080fi 4081 4082fi 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4084$as_echo "$ac_cv_path_GREP" >&6; } 4085 GREP="$ac_cv_path_GREP" 4086 4087 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4089$as_echo_n "checking for egrep... " >&6; } 4090if test "${ac_cv_path_EGREP+set}" = set; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4094 then ac_cv_path_EGREP="$GREP -E" 4095 else 4096 if test -z "$EGREP"; then 4097 ac_path_EGREP_found=false 4098 # Loop through the user's path and test for each of PROGNAME-LIST 4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4101do 4102 IFS=$as_save_IFS 4103 test -z "$as_dir" && as_dir=. 4104 for ac_prog in egrep; do 4105 for ac_exec_ext in '' $ac_executable_extensions; do 4106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4107 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4108# Check for GNU ac_path_EGREP and select it if it is found. 4109 # Check for GNU $ac_path_EGREP 4110case `"$ac_path_EGREP" --version 2>&1` in 4111*GNU*) 4112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4113*) 4114 ac_count=0 4115 $as_echo_n 0123456789 >"conftest.in" 4116 while : 4117 do 4118 cat "conftest.in" "conftest.in" >"conftest.tmp" 4119 mv "conftest.tmp" "conftest.in" 4120 cp "conftest.in" "conftest.nl" 4121 $as_echo 'EGREP' >> "conftest.nl" 4122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4124 as_fn_arith $ac_count + 1 && ac_count=$as_val 4125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4126 # Best one so far, save it but keep looking for a better one 4127 ac_cv_path_EGREP="$ac_path_EGREP" 4128 ac_path_EGREP_max=$ac_count 4129 fi 4130 # 10*(2^10) chars as input seems more than enough 4131 test $ac_count -gt 10 && break 4132 done 4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4134esac 4135 4136 $ac_path_EGREP_found && break 3 4137 done 4138 done 4139 done 4140IFS=$as_save_IFS 4141 if test -z "$ac_cv_path_EGREP"; then 4142 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4143 fi 4144else 4145 ac_cv_path_EGREP=$EGREP 4146fi 4147 4148 fi 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4151$as_echo "$ac_cv_path_EGREP" >&6; } 4152 EGREP="$ac_cv_path_EGREP" 4153 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4156$as_echo_n "checking for fgrep... " >&6; } 4157if test "${ac_cv_path_FGREP+set}" = set; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4161 then ac_cv_path_FGREP="$GREP -F" 4162 else 4163 if test -z "$FGREP"; then 4164 ac_path_FGREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in fgrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4174 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4175# Check for GNU ac_path_FGREP and select it if it is found. 4176 # Check for GNU $ac_path_FGREP 4177case `"$ac_path_FGREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'FGREP' >> "conftest.nl" 4189 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_FGREP="$ac_path_FGREP" 4195 ac_path_FGREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_FGREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_FGREP"; then 4209 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_FGREP=$FGREP 4213fi 4214 4215 fi 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4218$as_echo "$ac_cv_path_FGREP" >&6; } 4219 FGREP="$ac_cv_path_FGREP" 4220 4221 4222test -z "$GREP" && GREP=grep 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242# Check whether --with-gnu-ld was given. 4243if test "${with_gnu_ld+set}" = set; then : 4244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4245else 4246 with_gnu_ld=no 4247fi 4248 4249ac_prog=ld 4250if test "$GCC" = yes; then 4251 # Check if gcc -print-prog-name=ld gives a path. 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4253$as_echo_n "checking for ld used by $CC... " >&6; } 4254 case $host in 4255 *-*-mingw*) 4256 # gcc leaves a trailing carriage return which upsets mingw 4257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4258 *) 4259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4260 esac 4261 case $ac_prog in 4262 # Accept absolute paths. 4263 [\\/]* | ?:[\\/]*) 4264 re_direlt='/[^/][^/]*/\.\./' 4265 # Canonicalize the pathname of ld 4266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4269 done 4270 test -z "$LD" && LD="$ac_prog" 4271 ;; 4272 "") 4273 # If it fails, then pretend we aren't using GCC. 4274 ac_prog=ld 4275 ;; 4276 *) 4277 # If it is relative, then search for the first ld in PATH. 4278 with_gnu_ld=unknown 4279 ;; 4280 esac 4281elif test "$with_gnu_ld" = yes; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4283$as_echo_n "checking for GNU ld... " >&6; } 4284else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4286$as_echo_n "checking for non-GNU ld... " >&6; } 4287fi 4288if test "${lt_cv_path_LD+set}" = set; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if test -z "$LD"; then 4292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4293 for ac_dir in $PATH; do 4294 IFS="$lt_save_ifs" 4295 test -z "$ac_dir" && ac_dir=. 4296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4297 lt_cv_path_LD="$ac_dir/$ac_prog" 4298 # Check to see if the program is GNU ld. I'd rather use --version, 4299 # but apparently some variants of GNU ld only accept -v. 4300 # Break only if it was the GNU/non-GNU ld that we prefer. 4301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4302 *GNU* | *'with BFD'*) 4303 test "$with_gnu_ld" != no && break 4304 ;; 4305 *) 4306 test "$with_gnu_ld" != yes && break 4307 ;; 4308 esac 4309 fi 4310 done 4311 IFS="$lt_save_ifs" 4312else 4313 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4314fi 4315fi 4316 4317LD="$lt_cv_path_LD" 4318if test -n "$LD"; then 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4320$as_echo "$LD" >&6; } 4321else 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4323$as_echo "no" >&6; } 4324fi 4325test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4327$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4328if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4329 $as_echo_n "(cached) " >&6 4330else 4331 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4332case `$LD -v 2>&1 </dev/null` in 4333*GNU* | *'with BFD'*) 4334 lt_cv_prog_gnu_ld=yes 4335 ;; 4336*) 4337 lt_cv_prog_gnu_ld=no 4338 ;; 4339esac 4340fi 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4342$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4343with_gnu_ld=$lt_cv_prog_gnu_ld 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4354$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4355if test "${lt_cv_path_NM+set}" = set; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 if test -n "$NM"; then 4359 # Let the user override the test. 4360 lt_cv_path_NM="$NM" 4361else 4362 lt_nm_to_check="${ac_tool_prefix}nm" 4363 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4364 lt_nm_to_check="$lt_nm_to_check nm" 4365 fi 4366 for lt_tmp_nm in $lt_nm_to_check; do 4367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4368 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4369 IFS="$lt_save_ifs" 4370 test -z "$ac_dir" && ac_dir=. 4371 tmp_nm="$ac_dir/$lt_tmp_nm" 4372 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4373 # Check to see if the nm accepts a BSD-compat flag. 4374 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4375 # nm: unknown option "B" ignored 4376 # Tru64's nm complains that /dev/null is an invalid object file 4377 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4378 */dev/null* | *'Invalid file or object type'*) 4379 lt_cv_path_NM="$tmp_nm -B" 4380 break 4381 ;; 4382 *) 4383 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4384 */dev/null*) 4385 lt_cv_path_NM="$tmp_nm -p" 4386 break 4387 ;; 4388 *) 4389 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4390 continue # so that we can try to find one that supports BSD flags 4391 ;; 4392 esac 4393 ;; 4394 esac 4395 fi 4396 done 4397 IFS="$lt_save_ifs" 4398 done 4399 : ${lt_cv_path_NM=no} 4400fi 4401fi 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4403$as_echo "$lt_cv_path_NM" >&6; } 4404if test "$lt_cv_path_NM" != "no"; then 4405 NM="$lt_cv_path_NM" 4406else 4407 # Didn't find any BSD compatible name lister, look for dumpbin. 4408 if test -n "$ac_tool_prefix"; then 4409 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4410 do 4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4414$as_echo_n "checking for $ac_word... " >&6; } 4415if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if test -n "$DUMPBIN"; then 4419 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4420else 4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422for as_dir in $PATH 4423do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4428 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4430 break 2 4431 fi 4432done 4433 done 4434IFS=$as_save_IFS 4435 4436fi 4437fi 4438DUMPBIN=$ac_cv_prog_DUMPBIN 4439if test -n "$DUMPBIN"; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4441$as_echo "$DUMPBIN" >&6; } 4442else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445fi 4446 4447 4448 test -n "$DUMPBIN" && break 4449 done 4450fi 4451if test -z "$DUMPBIN"; then 4452 ac_ct_DUMPBIN=$DUMPBIN 4453 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4454do 4455 # Extract the first word of "$ac_prog", so it can be a program name with args. 4456set dummy $ac_prog; ac_word=$2 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458$as_echo_n "checking for $ac_word... " >&6; } 4459if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -n "$ac_ct_DUMPBIN"; then 4463 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4464else 4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4472 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480fi 4481fi 4482ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4483if test -n "$ac_ct_DUMPBIN"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4485$as_echo "$ac_ct_DUMPBIN" >&6; } 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 4492 test -n "$ac_ct_DUMPBIN" && break 4493done 4494 4495 if test "x$ac_ct_DUMPBIN" = x; then 4496 DUMPBIN=":" 4497 else 4498 case $cross_compiling:$ac_tool_warned in 4499yes:) 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4502ac_tool_warned=yes ;; 4503esac 4504 DUMPBIN=$ac_ct_DUMPBIN 4505 fi 4506fi 4507 4508 4509 if test "$DUMPBIN" != ":"; then 4510 NM="$DUMPBIN" 4511 fi 4512fi 4513test -z "$NM" && NM=nm 4514 4515 4516 4517 4518 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4521$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4522if test "${lt_cv_nm_interface+set}" = set; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 lt_cv_nm_interface="BSD nm" 4526 echo "int some_variable = 0;" > conftest.$ac_ext 4527 (eval echo "\"\$as_me:4527: $ac_compile\"" >&5) 4528 (eval "$ac_compile" 2>conftest.err) 4529 cat conftest.err >&5 4530 (eval echo "\"\$as_me:4530: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4531 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4532 cat conftest.err >&5 4533 (eval echo "\"\$as_me:4533: output\"" >&5) 4534 cat conftest.out >&5 4535 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4536 lt_cv_nm_interface="MS dumpbin" 4537 fi 4538 rm -f conftest* 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4541$as_echo "$lt_cv_nm_interface" >&6; } 4542 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4544$as_echo_n "checking whether ln -s works... " >&6; } 4545LN_S=$as_ln_s 4546if test "$LN_S" = "ln -s"; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4548$as_echo "yes" >&6; } 4549else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4551$as_echo "no, using $LN_S" >&6; } 4552fi 4553 4554# find the maximum length of command line arguments 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4556$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4557if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 i=0 4561 teststring="ABCD" 4562 4563 case $build_os in 4564 msdosdjgpp*) 4565 # On DJGPP, this test can blow up pretty badly due to problems in libc 4566 # (any single argument exceeding 2000 bytes causes a buffer overrun 4567 # during glob expansion). Even if it were fixed, the result of this 4568 # check would be larger than it should be. 4569 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4570 ;; 4571 4572 gnu*) 4573 # Under GNU Hurd, this test is not required because there is 4574 # no limit to the length of command line arguments. 4575 # Libtool will interpret -1 as no limit whatsoever 4576 lt_cv_sys_max_cmd_len=-1; 4577 ;; 4578 4579 cygwin* | mingw* | cegcc*) 4580 # On Win9x/ME, this test blows up -- it succeeds, but takes 4581 # about 5 minutes as the teststring grows exponentially. 4582 # Worse, since 9x/ME are not pre-emptively multitasking, 4583 # you end up with a "frozen" computer, even though with patience 4584 # the test eventually succeeds (with a max line length of 256k). 4585 # Instead, let's just punt: use the minimum linelength reported by 4586 # all of the supported platforms: 8192 (on NT/2K/XP). 4587 lt_cv_sys_max_cmd_len=8192; 4588 ;; 4589 4590 amigaos*) 4591 # On AmigaOS with pdksh, this test takes hours, literally. 4592 # So we just punt and use a minimum line length of 8192. 4593 lt_cv_sys_max_cmd_len=8192; 4594 ;; 4595 4596 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4597 # This has been around since 386BSD, at least. Likely further. 4598 if test -x /sbin/sysctl; then 4599 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4600 elif test -x /usr/sbin/sysctl; then 4601 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4602 else 4603 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4604 fi 4605 # And add a safety zone 4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4608 ;; 4609 4610 interix*) 4611 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4612 lt_cv_sys_max_cmd_len=196608 4613 ;; 4614 4615 osf*) 4616 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4617 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4618 # nice to cause kernel panics so lets avoid the loop below. 4619 # First set a reasonable default. 4620 lt_cv_sys_max_cmd_len=16384 4621 # 4622 if test -x /sbin/sysconfig; then 4623 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4624 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4625 esac 4626 fi 4627 ;; 4628 sco3.2v5*) 4629 lt_cv_sys_max_cmd_len=102400 4630 ;; 4631 sysv5* | sco5v6* | sysv4.2uw2*) 4632 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4633 if test -n "$kargmax"; then 4634 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4635 else 4636 lt_cv_sys_max_cmd_len=32768 4637 fi 4638 ;; 4639 *) 4640 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4641 if test -n "$lt_cv_sys_max_cmd_len"; then 4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4644 else 4645 # Make teststring a little bigger before we do anything with it. 4646 # a 1K string should be a reasonable start. 4647 for i in 1 2 3 4 5 6 7 8 ; do 4648 teststring=$teststring$teststring 4649 done 4650 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4651 # If test is not a shell built-in, we'll probably end up computing a 4652 # maximum length that is only half of the actual maximum length, but 4653 # we can't tell. 4654 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4655 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4656 test $i != 17 # 1/2 MB should be enough 4657 do 4658 i=`expr $i + 1` 4659 teststring=$teststring$teststring 4660 done 4661 # Only check the string length outside the loop. 4662 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4663 teststring= 4664 # Add a significant safety factor because C++ compilers can tack on 4665 # massive amounts of additional arguments before passing them to the 4666 # linker. It appears as though 1/2 is a usable value. 4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4668 fi 4669 ;; 4670 esac 4671 4672fi 4673 4674if test -n $lt_cv_sys_max_cmd_len ; then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4676$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4677else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4679$as_echo "none" >&6; } 4680fi 4681max_cmd_len=$lt_cv_sys_max_cmd_len 4682 4683 4684 4685 4686 4687 4688: ${CP="cp -f"} 4689: ${MV="mv -f"} 4690: ${RM="rm -f"} 4691 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4693$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4694# Try some XSI features 4695xsi_shell=no 4696( _lt_dummy="a/b/c" 4697 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4698 = c,a/b,, \ 4699 && eval 'test $(( 1 + 1 )) -eq 2 \ 4700 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4701 && xsi_shell=yes 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4703$as_echo "$xsi_shell" >&6; } 4704 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4707$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4708lt_shell_append=no 4709( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4710 >/dev/null 2>&1 \ 4711 && lt_shell_append=yes 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4713$as_echo "$lt_shell_append" >&6; } 4714 4715 4716if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4717 lt_unset=unset 4718else 4719 lt_unset=false 4720fi 4721 4722 4723 4724 4725 4726# test EBCDIC or ASCII 4727case `echo X|tr X '\101'` in 4728 A) # ASCII based system 4729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4730 lt_SP2NL='tr \040 \012' 4731 lt_NL2SP='tr \015\012 \040\040' 4732 ;; 4733 *) # EBCDIC based system 4734 lt_SP2NL='tr \100 \n' 4735 lt_NL2SP='tr \r\n \100\100' 4736 ;; 4737esac 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4748$as_echo_n "checking for $LD option to reload object files... " >&6; } 4749if test "${lt_cv_ld_reload_flag+set}" = set; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 lt_cv_ld_reload_flag='-r' 4753fi 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4755$as_echo "$lt_cv_ld_reload_flag" >&6; } 4756reload_flag=$lt_cv_ld_reload_flag 4757case $reload_flag in 4758"" | " "*) ;; 4759*) reload_flag=" $reload_flag" ;; 4760esac 4761reload_cmds='$LD$reload_flag -o $output$reload_objs' 4762case $host_os in 4763 darwin*) 4764 if test "$GCC" = yes; then 4765 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4766 else 4767 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4768 fi 4769 ;; 4770esac 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780if test -n "$ac_tool_prefix"; then 4781 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4782set dummy ${ac_tool_prefix}objdump; ac_word=$2 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4784$as_echo_n "checking for $ac_word... " >&6; } 4785if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 if test -n "$OBJDUMP"; then 4789 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4790else 4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4798 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803 done 4804IFS=$as_save_IFS 4805 4806fi 4807fi 4808OBJDUMP=$ac_cv_prog_OBJDUMP 4809if test -n "$OBJDUMP"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4811$as_echo "$OBJDUMP" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818fi 4819if test -z "$ac_cv_prog_OBJDUMP"; then 4820 ac_ct_OBJDUMP=$OBJDUMP 4821 # Extract the first word of "objdump", so it can be a program name with args. 4822set dummy objdump; ac_word=$2 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824$as_echo_n "checking for $ac_word... " >&6; } 4825if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 if test -n "$ac_ct_OBJDUMP"; then 4829 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4830else 4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832for as_dir in $PATH 4833do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4838 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843 done 4844IFS=$as_save_IFS 4845 4846fi 4847fi 4848ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4849if test -n "$ac_ct_OBJDUMP"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4851$as_echo "$ac_ct_OBJDUMP" >&6; } 4852else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855fi 4856 4857 if test "x$ac_ct_OBJDUMP" = x; then 4858 OBJDUMP="false" 4859 else 4860 case $cross_compiling:$ac_tool_warned in 4861yes:) 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4864ac_tool_warned=yes ;; 4865esac 4866 OBJDUMP=$ac_ct_OBJDUMP 4867 fi 4868else 4869 OBJDUMP="$ac_cv_prog_OBJDUMP" 4870fi 4871 4872test -z "$OBJDUMP" && OBJDUMP=objdump 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4883$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4884if test "${lt_cv_deplibs_check_method+set}" = set; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 lt_cv_file_magic_cmd='$MAGIC_CMD' 4888lt_cv_file_magic_test_file= 4889lt_cv_deplibs_check_method='unknown' 4890# Need to set the preceding variable on all platforms that support 4891# interlibrary dependencies. 4892# 'none' -- dependencies not supported. 4893# `unknown' -- same as none, but documents that we really don't know. 4894# 'pass_all' -- all dependencies passed with no checks. 4895# 'test_compile' -- check by making test program. 4896# 'file_magic [[regex]]' -- check by looking for files in library path 4897# which responds to the $file_magic_cmd with a given extended regex. 4898# If you have `file' or equivalent on your system and you're not sure 4899# whether `pass_all' will *always* work, you probably want this one. 4900 4901case $host_os in 4902aix[4-9]*) 4903 lt_cv_deplibs_check_method=pass_all 4904 ;; 4905 4906beos*) 4907 lt_cv_deplibs_check_method=pass_all 4908 ;; 4909 4910bsdi[45]*) 4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4912 lt_cv_file_magic_cmd='/usr/bin/file -L' 4913 lt_cv_file_magic_test_file=/shlib/libc.so 4914 ;; 4915 4916cygwin*) 4917 # func_win32_libid is a shell function defined in ltmain.sh 4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4919 lt_cv_file_magic_cmd='func_win32_libid' 4920 ;; 4921 4922mingw* | pw32*) 4923 # Base MSYS/MinGW do not provide the 'file' command needed by 4924 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4925 # unless we find 'file', for example because we are cross-compiling. 4926 if ( file / ) >/dev/null 2>&1; then 4927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4928 lt_cv_file_magic_cmd='func_win32_libid' 4929 else 4930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4931 lt_cv_file_magic_cmd='$OBJDUMP -f' 4932 fi 4933 ;; 4934 4935cegcc) 4936 # use the weaker test based on 'objdump'. See mingw*. 4937 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4938 lt_cv_file_magic_cmd='$OBJDUMP -f' 4939 ;; 4940 4941darwin* | rhapsody*) 4942 lt_cv_deplibs_check_method=pass_all 4943 ;; 4944 4945freebsd* | dragonfly*) 4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4947 case $host_cpu in 4948 i*86 ) 4949 # Not sure whether the presence of OpenBSD here was a mistake. 4950 # Let's accept both of them until this is cleared up. 4951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4952 lt_cv_file_magic_cmd=/usr/bin/file 4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4954 ;; 4955 esac 4956 else 4957 lt_cv_deplibs_check_method=pass_all 4958 fi 4959 ;; 4960 4961gnu*) 4962 lt_cv_deplibs_check_method=pass_all 4963 ;; 4964 4965hpux10.20* | hpux11*) 4966 lt_cv_file_magic_cmd=/usr/bin/file 4967 case $host_cpu in 4968 ia64*) 4969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4970 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4971 ;; 4972 hppa*64*) 4973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4974 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4975 ;; 4976 *) 4977 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4978 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4979 ;; 4980 esac 4981 ;; 4982 4983interix[3-9]*) 4984 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4986 ;; 4987 4988irix5* | irix6* | nonstopux*) 4989 case $LD in 4990 *-32|*"-32 ") libmagic=32-bit;; 4991 *-n32|*"-n32 ") libmagic=N32;; 4992 *-64|*"-64 ") libmagic=64-bit;; 4993 *) libmagic=never-match;; 4994 esac 4995 lt_cv_deplibs_check_method=pass_all 4996 ;; 4997 4998# This must be Linux ELF. 4999linux* | k*bsd*-gnu | kopensolaris*-gnu) 5000 lt_cv_deplibs_check_method=pass_all 5001 ;; 5002 5003netbsd* | netbsdelf*-gnu) 5004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5006 else 5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5008 fi 5009 ;; 5010 5011newos6*) 5012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5013 lt_cv_file_magic_cmd=/usr/bin/file 5014 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5015 ;; 5016 5017*nto* | *qnx*) 5018 lt_cv_deplibs_check_method=pass_all 5019 ;; 5020 5021openbsd*) 5022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5024 else 5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5026 fi 5027 ;; 5028 5029osf3* | osf4* | osf5*) 5030 lt_cv_deplibs_check_method=pass_all 5031 ;; 5032 5033rdos*) 5034 lt_cv_deplibs_check_method=pass_all 5035 ;; 5036 5037solaris*) 5038 lt_cv_deplibs_check_method=pass_all 5039 ;; 5040 5041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5042 lt_cv_deplibs_check_method=pass_all 5043 ;; 5044 5045sysv4 | sysv4.3*) 5046 case $host_vendor in 5047 motorola) 5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5050 ;; 5051 ncr) 5052 lt_cv_deplibs_check_method=pass_all 5053 ;; 5054 sequent) 5055 lt_cv_file_magic_cmd='/bin/file' 5056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5057 ;; 5058 sni) 5059 lt_cv_file_magic_cmd='/bin/file' 5060 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5061 lt_cv_file_magic_test_file=/lib/libc.so 5062 ;; 5063 siemens) 5064 lt_cv_deplibs_check_method=pass_all 5065 ;; 5066 pc) 5067 lt_cv_deplibs_check_method=pass_all 5068 ;; 5069 esac 5070 ;; 5071 5072tpf*) 5073 lt_cv_deplibs_check_method=pass_all 5074 ;; 5075esac 5076 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5079$as_echo "$lt_cv_deplibs_check_method" >&6; } 5080file_magic_cmd=$lt_cv_file_magic_cmd 5081deplibs_check_method=$lt_cv_deplibs_check_method 5082test -z "$deplibs_check_method" && deplibs_check_method=unknown 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095if test -n "$ac_tool_prefix"; then 5096 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5097set dummy ${ac_tool_prefix}ar; ac_word=$2 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5099$as_echo_n "checking for $ac_word... " >&6; } 5100if test "${ac_cv_prog_AR+set}" = set; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -n "$AR"; then 5104 ac_cv_prog_AR="$AR" # Let the user override the test. 5105else 5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107for as_dir in $PATH 5108do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5113 ac_cv_prog_AR="${ac_tool_prefix}ar" 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5115 break 2 5116 fi 5117done 5118 done 5119IFS=$as_save_IFS 5120 5121fi 5122fi 5123AR=$ac_cv_prog_AR 5124if test -n "$AR"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5126$as_echo "$AR" >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129$as_echo "no" >&6; } 5130fi 5131 5132 5133fi 5134if test -z "$ac_cv_prog_AR"; then 5135 ac_ct_AR=$AR 5136 # Extract the first word of "ar", so it can be a program name with args. 5137set dummy ar; ac_word=$2 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5139$as_echo_n "checking for $ac_word... " >&6; } 5140if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5141 $as_echo_n "(cached) " >&6 5142else 5143 if test -n "$ac_ct_AR"; then 5144 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5145else 5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5147for as_dir in $PATH 5148do 5149 IFS=$as_save_IFS 5150 test -z "$as_dir" && as_dir=. 5151 for ac_exec_ext in '' $ac_executable_extensions; do 5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5153 ac_cv_prog_ac_ct_AR="ar" 5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5155 break 2 5156 fi 5157done 5158 done 5159IFS=$as_save_IFS 5160 5161fi 5162fi 5163ac_ct_AR=$ac_cv_prog_ac_ct_AR 5164if test -n "$ac_ct_AR"; then 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5166$as_echo "$ac_ct_AR" >&6; } 5167else 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5169$as_echo "no" >&6; } 5170fi 5171 5172 if test "x$ac_ct_AR" = x; then 5173 AR="false" 5174 else 5175 case $cross_compiling:$ac_tool_warned in 5176yes:) 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5179ac_tool_warned=yes ;; 5180esac 5181 AR=$ac_ct_AR 5182 fi 5183else 5184 AR="$ac_cv_prog_AR" 5185fi 5186 5187test -z "$AR" && AR=ar 5188test -z "$AR_FLAGS" && AR_FLAGS=cru 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200if test -n "$ac_tool_prefix"; then 5201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5202set dummy ${ac_tool_prefix}strip; ac_word=$2 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204$as_echo_n "checking for $ac_word... " >&6; } 5205if test "${ac_cv_prog_STRIP+set}" = set; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -n "$STRIP"; then 5209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5218 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223 done 5224IFS=$as_save_IFS 5225 5226fi 5227fi 5228STRIP=$ac_cv_prog_STRIP 5229if test -n "$STRIP"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5231$as_echo "$STRIP" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5234$as_echo "no" >&6; } 5235fi 5236 5237 5238fi 5239if test -z "$ac_cv_prog_STRIP"; then 5240 ac_ct_STRIP=$STRIP 5241 # Extract the first word of "strip", so it can be a program name with args. 5242set dummy strip; ac_word=$2 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5244$as_echo_n "checking for $ac_word... " >&6; } 5245if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 if test -n "$ac_ct_STRIP"; then 5249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5250else 5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252for as_dir in $PATH 5253do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_exec_ext in '' $ac_executable_extensions; do 5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5258 ac_cv_prog_ac_ct_STRIP="strip" 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5260 break 2 5261 fi 5262done 5263 done 5264IFS=$as_save_IFS 5265 5266fi 5267fi 5268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5269if test -n "$ac_ct_STRIP"; then 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5271$as_echo "$ac_ct_STRIP" >&6; } 5272else 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5274$as_echo "no" >&6; } 5275fi 5276 5277 if test "x$ac_ct_STRIP" = x; then 5278 STRIP=":" 5279 else 5280 case $cross_compiling:$ac_tool_warned in 5281yes:) 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5284ac_tool_warned=yes ;; 5285esac 5286 STRIP=$ac_ct_STRIP 5287 fi 5288else 5289 STRIP="$ac_cv_prog_STRIP" 5290fi 5291 5292test -z "$STRIP" && STRIP=: 5293 5294 5295 5296 5297 5298 5299if test -n "$ac_tool_prefix"; then 5300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5301set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5303$as_echo_n "checking for $ac_word... " >&6; } 5304if test "${ac_cv_prog_RANLIB+set}" = set; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 if test -n "$RANLIB"; then 5308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5309else 5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 test -z "$as_dir" && as_dir=. 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5319 break 2 5320 fi 5321done 5322 done 5323IFS=$as_save_IFS 5324 5325fi 5326fi 5327RANLIB=$ac_cv_prog_RANLIB 5328if test -n "$RANLIB"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5330$as_echo "$RANLIB" >&6; } 5331else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333$as_echo "no" >&6; } 5334fi 5335 5336 5337fi 5338if test -z "$ac_cv_prog_RANLIB"; then 5339 ac_ct_RANLIB=$RANLIB 5340 # Extract the first word of "ranlib", so it can be a program name with args. 5341set dummy ranlib; ac_word=$2 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 if test -n "$ac_ct_RANLIB"; then 5348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5349else 5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5351for as_dir in $PATH 5352do 5353 IFS=$as_save_IFS 5354 test -z "$as_dir" && as_dir=. 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5357 ac_cv_prog_ac_ct_RANLIB="ranlib" 5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5359 break 2 5360 fi 5361done 5362 done 5363IFS=$as_save_IFS 5364 5365fi 5366fi 5367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5368if test -n "$ac_ct_RANLIB"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5370$as_echo "$ac_ct_RANLIB" >&6; } 5371else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373$as_echo "no" >&6; } 5374fi 5375 5376 if test "x$ac_ct_RANLIB" = x; then 5377 RANLIB=":" 5378 else 5379 case $cross_compiling:$ac_tool_warned in 5380yes:) 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5383ac_tool_warned=yes ;; 5384esac 5385 RANLIB=$ac_ct_RANLIB 5386 fi 5387else 5388 RANLIB="$ac_cv_prog_RANLIB" 5389fi 5390 5391test -z "$RANLIB" && RANLIB=: 5392 5393 5394 5395 5396 5397 5398# Determine commands to create old-style static archives. 5399old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5400old_postinstall_cmds='chmod 644 $oldlib' 5401old_postuninstall_cmds= 5402 5403if test -n "$RANLIB"; then 5404 case $host_os in 5405 openbsd*) 5406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5407 ;; 5408 *) 5409 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5410 ;; 5411 esac 5412 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5413fi 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448# If no C compiler was specified, use CC. 5449LTCC=${LTCC-"$CC"} 5450 5451# If no C compiler flags were specified, use CFLAGS. 5452LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5453 5454# Allow CC to be a program name with arguments. 5455compiler=$CC 5456 5457 5458# Check for command to grab the raw symbol name followed by C symbol from nm. 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5460$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5461if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 5465# These are sane defaults that work on at least a few old systems. 5466# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5467 5468# Character class describing NM global symbol codes. 5469symcode='[BCDEGRST]' 5470 5471# Regexp to match symbols that can be accessed directly from C. 5472sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5473 5474# Define system-specific variables. 5475case $host_os in 5476aix*) 5477 symcode='[BCDT]' 5478 ;; 5479cygwin* | mingw* | pw32* | cegcc*) 5480 symcode='[ABCDGISTW]' 5481 ;; 5482hpux*) 5483 if test "$host_cpu" = ia64; then 5484 symcode='[ABCDEGRST]' 5485 fi 5486 ;; 5487irix* | nonstopux*) 5488 symcode='[BCDEGRST]' 5489 ;; 5490osf*) 5491 symcode='[BCDEGQRST]' 5492 ;; 5493solaris*) 5494 symcode='[BDRT]' 5495 ;; 5496sco3.2v5*) 5497 symcode='[DT]' 5498 ;; 5499sysv4.2uw2*) 5500 symcode='[DT]' 5501 ;; 5502sysv5* | sco5v6* | unixware* | OpenUNIX*) 5503 symcode='[ABDT]' 5504 ;; 5505sysv4) 5506 symcode='[DFNSTU]' 5507 ;; 5508esac 5509 5510# If we're using GNU nm, then use its standard symbol codes. 5511case `$NM -V 2>&1` in 5512*GNU* | *'with BFD'*) 5513 symcode='[ABCDGIRSTW]' ;; 5514esac 5515 5516# Transform an extracted symbol line into a proper C declaration. 5517# Some systems (esp. on ia64) link data and code symbols differently, 5518# so use this general approach. 5519lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5520 5521# Transform an extracted symbol line into symbol name and symbol address 5522lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5523lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5524 5525# Handle CRLF in mingw tool chain 5526opt_cr= 5527case $build_os in 5528mingw*) 5529 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5530 ;; 5531esac 5532 5533# Try without a prefix underscore, then with it. 5534for ac_symprfx in "" "_"; do 5535 5536 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5537 symxfrm="\\1 $ac_symprfx\\2 \\2" 5538 5539 # Write the raw and C identifiers. 5540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5541 # Fake it for dumpbin and say T for any non-static function 5542 # and D for any global variable. 5543 # Also find C++ and __fastcall symbols from MSVC++, 5544 # which start with @ or ?. 5545 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5546" {last_section=section; section=\$ 3};"\ 5547" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5548" \$ 0!~/External *\|/{next};"\ 5549" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5550" {if(hide[section]) next};"\ 5551" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5552" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5553" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5554" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5555" ' prfx=^$ac_symprfx" 5556 else 5557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5558 fi 5559 5560 # Check to see that the pipe works correctly. 5561 pipe_works=no 5562 5563 rm -f conftest* 5564 cat > conftest.$ac_ext <<_LT_EOF 5565#ifdef __cplusplus 5566extern "C" { 5567#endif 5568char nm_test_var; 5569void nm_test_func(void); 5570void nm_test_func(void){} 5571#ifdef __cplusplus 5572} 5573#endif 5574int main(){nm_test_var='a';nm_test_func();return(0);} 5575_LT_EOF 5576 5577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5578 (eval $ac_compile) 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5581 test $ac_status = 0; }; then 5582 # Now try to grab the symbols. 5583 nlist=conftest.nm 5584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5585 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5586 ac_status=$? 5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5588 test $ac_status = 0; } && test -s "$nlist"; then 5589 # Try sorting and uniquifying the output. 5590 if sort "$nlist" | uniq > "$nlist"T; then 5591 mv -f "$nlist"T "$nlist" 5592 else 5593 rm -f "$nlist"T 5594 fi 5595 5596 # Make sure that we snagged all the symbols we need. 5597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5599 cat <<_LT_EOF > conftest.$ac_ext 5600#ifdef __cplusplus 5601extern "C" { 5602#endif 5603 5604_LT_EOF 5605 # Now generate the symbol file. 5606 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5607 5608 cat <<_LT_EOF >> conftest.$ac_ext 5609 5610/* The mapping between symbol names and symbols. */ 5611const struct { 5612 const char *name; 5613 void *address; 5614} 5615lt__PROGRAM__LTX_preloaded_symbols[] = 5616{ 5617 { "@PROGRAM@", (void *) 0 }, 5618_LT_EOF 5619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5620 cat <<\_LT_EOF >> conftest.$ac_ext 5621 {0, (void *) 0} 5622}; 5623 5624/* This works around a problem in FreeBSD linker */ 5625#ifdef FREEBSD_WORKAROUND 5626static const void *lt_preloaded_setup() { 5627 return lt__PROGRAM__LTX_preloaded_symbols; 5628} 5629#endif 5630 5631#ifdef __cplusplus 5632} 5633#endif 5634_LT_EOF 5635 # Now try linking the two files. 5636 mv conftest.$ac_objext conftstm.$ac_objext 5637 lt_save_LIBS="$LIBS" 5638 lt_save_CFLAGS="$CFLAGS" 5639 LIBS="conftstm.$ac_objext" 5640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5642 (eval $ac_link) 2>&5 5643 ac_status=$? 5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5645 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5646 pipe_works=yes 5647 fi 5648 LIBS="$lt_save_LIBS" 5649 CFLAGS="$lt_save_CFLAGS" 5650 else 5651 echo "cannot find nm_test_func in $nlist" >&5 5652 fi 5653 else 5654 echo "cannot find nm_test_var in $nlist" >&5 5655 fi 5656 else 5657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5658 fi 5659 else 5660 echo "$progname: failed program was:" >&5 5661 cat conftest.$ac_ext >&5 5662 fi 5663 rm -rf conftest* conftst* 5664 5665 # Do not use the global_symbol_pipe unless it works. 5666 if test "$pipe_works" = yes; then 5667 break 5668 else 5669 lt_cv_sys_global_symbol_pipe= 5670 fi 5671done 5672 5673fi 5674 5675if test -z "$lt_cv_sys_global_symbol_pipe"; then 5676 lt_cv_sys_global_symbol_to_cdecl= 5677fi 5678if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5680$as_echo "failed" >&6; } 5681else 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5683$as_echo "ok" >&6; } 5684fi 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708# Check whether --enable-libtool-lock was given. 5709if test "${enable_libtool_lock+set}" = set; then : 5710 enableval=$enable_libtool_lock; 5711fi 5712 5713test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5714 5715# Some flags need to be propagated to the compiler or linker for good 5716# libtool support. 5717case $host in 5718ia64-*-hpux*) 5719 # Find out which ABI we are using. 5720 echo 'int i;' > conftest.$ac_ext 5721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5722 (eval $ac_compile) 2>&5 5723 ac_status=$? 5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5725 test $ac_status = 0; }; then 5726 case `/usr/bin/file conftest.$ac_objext` in 5727 *ELF-32*) 5728 HPUX_IA64_MODE="32" 5729 ;; 5730 *ELF-64*) 5731 HPUX_IA64_MODE="64" 5732 ;; 5733 esac 5734 fi 5735 rm -rf conftest* 5736 ;; 5737*-*-irix6*) 5738 # Find out which ABI we are using. 5739 echo '#line 5739 "configure"' > conftest.$ac_ext 5740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5741 (eval $ac_compile) 2>&5 5742 ac_status=$? 5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5744 test $ac_status = 0; }; then 5745 if test "$lt_cv_prog_gnu_ld" = yes; then 5746 case `/usr/bin/file conftest.$ac_objext` in 5747 *32-bit*) 5748 LD="${LD-ld} -melf32bsmip" 5749 ;; 5750 *N32*) 5751 LD="${LD-ld} -melf32bmipn32" 5752 ;; 5753 *64-bit*) 5754 LD="${LD-ld} -melf64bmip" 5755 ;; 5756 esac 5757 else 5758 case `/usr/bin/file conftest.$ac_objext` in 5759 *32-bit*) 5760 LD="${LD-ld} -32" 5761 ;; 5762 *N32*) 5763 LD="${LD-ld} -n32" 5764 ;; 5765 *64-bit*) 5766 LD="${LD-ld} -64" 5767 ;; 5768 esac 5769 fi 5770 fi 5771 rm -rf conftest* 5772 ;; 5773 5774x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5775s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5776 # Find out which ABI we are using. 5777 echo 'int i;' > conftest.$ac_ext 5778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5779 (eval $ac_compile) 2>&5 5780 ac_status=$? 5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5782 test $ac_status = 0; }; then 5783 case `/usr/bin/file conftest.o` in 5784 *32-bit*) 5785 case $host in 5786 x86_64-*kfreebsd*-gnu) 5787 LD="${LD-ld} -m elf_i386_fbsd" 5788 ;; 5789 x86_64-*linux*) 5790 LD="${LD-ld} -m elf_i386" 5791 ;; 5792 ppc64-*linux*|powerpc64-*linux*) 5793 LD="${LD-ld} -m elf32ppclinux" 5794 ;; 5795 s390x-*linux*) 5796 LD="${LD-ld} -m elf_s390" 5797 ;; 5798 sparc64-*linux*) 5799 LD="${LD-ld} -m elf32_sparc" 5800 ;; 5801 esac 5802 ;; 5803 *64-bit*) 5804 case $host in 5805 x86_64-*kfreebsd*-gnu) 5806 LD="${LD-ld} -m elf_x86_64_fbsd" 5807 ;; 5808 x86_64-*linux*) 5809 LD="${LD-ld} -m elf_x86_64" 5810 ;; 5811 ppc*-*linux*|powerpc*-*linux*) 5812 LD="${LD-ld} -m elf64ppc" 5813 ;; 5814 s390*-*linux*|s390*-*tpf*) 5815 LD="${LD-ld} -m elf64_s390" 5816 ;; 5817 sparc*-*linux*) 5818 LD="${LD-ld} -m elf64_sparc" 5819 ;; 5820 esac 5821 ;; 5822 esac 5823 fi 5824 rm -rf conftest* 5825 ;; 5826 5827*-*-sco3.2v5*) 5828 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5829 SAVE_CFLAGS="$CFLAGS" 5830 CFLAGS="$CFLAGS -belf" 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5832$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5833if test "${lt_cv_cc_needs_belf+set}" = set; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 ac_ext=c 5837ac_cpp='$CPP $CPPFLAGS' 5838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5840ac_compiler_gnu=$ac_cv_c_compiler_gnu 5841 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844 5845int 5846main () 5847{ 5848 5849 ; 5850 return 0; 5851} 5852_ACEOF 5853if ac_fn_c_try_link "$LINENO"; then : 5854 lt_cv_cc_needs_belf=yes 5855else 5856 lt_cv_cc_needs_belf=no 5857fi 5858rm -f core conftest.err conftest.$ac_objext \ 5859 conftest$ac_exeext conftest.$ac_ext 5860 ac_ext=c 5861ac_cpp='$CPP $CPPFLAGS' 5862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5864ac_compiler_gnu=$ac_cv_c_compiler_gnu 5865 5866fi 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5868$as_echo "$lt_cv_cc_needs_belf" >&6; } 5869 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5870 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5871 CFLAGS="$SAVE_CFLAGS" 5872 fi 5873 ;; 5874sparc*-*solaris*) 5875 # Find out which ABI we are using. 5876 echo 'int i;' > conftest.$ac_ext 5877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5878 (eval $ac_compile) 2>&5 5879 ac_status=$? 5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5881 test $ac_status = 0; }; then 5882 case `/usr/bin/file conftest.o` in 5883 *64-bit*) 5884 case $lt_cv_prog_gnu_ld in 5885 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5886 *) 5887 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5888 LD="${LD-ld} -64" 5889 fi 5890 ;; 5891 esac 5892 ;; 5893 esac 5894 fi 5895 rm -rf conftest* 5896 ;; 5897esac 5898 5899need_locks="$enable_libtool_lock" 5900 5901 5902 case $host_os in 5903 rhapsody* | darwin*) 5904 if test -n "$ac_tool_prefix"; then 5905 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5906set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$DSYMUTIL"; then 5913 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5922 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932DSYMUTIL=$ac_cv_prog_DSYMUTIL 5933if test -n "$DSYMUTIL"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5935$as_echo "$DSYMUTIL" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 5942fi 5943if test -z "$ac_cv_prog_DSYMUTIL"; then 5944 ac_ct_DSYMUTIL=$DSYMUTIL 5945 # Extract the first word of "dsymutil", so it can be a program name with args. 5946set dummy dsymutil; ac_word=$2 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5948$as_echo_n "checking for $ac_word... " >&6; } 5949if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -n "$ac_ct_DSYMUTIL"; then 5953 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5954else 5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956for as_dir in $PATH 5957do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for ac_exec_ext in '' $ac_executable_extensions; do 5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5962 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5964 break 2 5965 fi 5966done 5967 done 5968IFS=$as_save_IFS 5969 5970fi 5971fi 5972ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5973if test -n "$ac_ct_DSYMUTIL"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5975$as_echo "$ac_ct_DSYMUTIL" >&6; } 5976else 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979fi 5980 5981 if test "x$ac_ct_DSYMUTIL" = x; then 5982 DSYMUTIL=":" 5983 else 5984 case $cross_compiling:$ac_tool_warned in 5985yes:) 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5988ac_tool_warned=yes ;; 5989esac 5990 DSYMUTIL=$ac_ct_DSYMUTIL 5991 fi 5992else 5993 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5994fi 5995 5996 if test -n "$ac_tool_prefix"; then 5997 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5998set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6000$as_echo_n "checking for $ac_word... " >&6; } 6001if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 if test -n "$NMEDIT"; then 6005 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6006else 6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6008for as_dir in $PATH 6009do 6010 IFS=$as_save_IFS 6011 test -z "$as_dir" && as_dir=. 6012 for ac_exec_ext in '' $ac_executable_extensions; do 6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6014 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6016 break 2 6017 fi 6018done 6019 done 6020IFS=$as_save_IFS 6021 6022fi 6023fi 6024NMEDIT=$ac_cv_prog_NMEDIT 6025if test -n "$NMEDIT"; then 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6027$as_echo "$NMEDIT" >&6; } 6028else 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6030$as_echo "no" >&6; } 6031fi 6032 6033 6034fi 6035if test -z "$ac_cv_prog_NMEDIT"; then 6036 ac_ct_NMEDIT=$NMEDIT 6037 # Extract the first word of "nmedit", so it can be a program name with args. 6038set dummy nmedit; ac_word=$2 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6040$as_echo_n "checking for $ac_word... " >&6; } 6041if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 if test -n "$ac_ct_NMEDIT"; then 6045 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6046else 6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6048for as_dir in $PATH 6049do 6050 IFS=$as_save_IFS 6051 test -z "$as_dir" && as_dir=. 6052 for ac_exec_ext in '' $ac_executable_extensions; do 6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6054 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6056 break 2 6057 fi 6058done 6059 done 6060IFS=$as_save_IFS 6061 6062fi 6063fi 6064ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6065if test -n "$ac_ct_NMEDIT"; then 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6067$as_echo "$ac_ct_NMEDIT" >&6; } 6068else 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6070$as_echo "no" >&6; } 6071fi 6072 6073 if test "x$ac_ct_NMEDIT" = x; then 6074 NMEDIT=":" 6075 else 6076 case $cross_compiling:$ac_tool_warned in 6077yes:) 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6080ac_tool_warned=yes ;; 6081esac 6082 NMEDIT=$ac_ct_NMEDIT 6083 fi 6084else 6085 NMEDIT="$ac_cv_prog_NMEDIT" 6086fi 6087 6088 if test -n "$ac_tool_prefix"; then 6089 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6090set dummy ${ac_tool_prefix}lipo; ac_word=$2 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092$as_echo_n "checking for $ac_word... " >&6; } 6093if test "${ac_cv_prog_LIPO+set}" = set; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 if test -n "$LIPO"; then 6097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6098else 6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100for as_dir in $PATH 6101do 6102 IFS=$as_save_IFS 6103 test -z "$as_dir" && as_dir=. 6104 for ac_exec_ext in '' $ac_executable_extensions; do 6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6106 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6108 break 2 6109 fi 6110done 6111 done 6112IFS=$as_save_IFS 6113 6114fi 6115fi 6116LIPO=$ac_cv_prog_LIPO 6117if test -n "$LIPO"; then 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6119$as_echo "$LIPO" >&6; } 6120else 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6122$as_echo "no" >&6; } 6123fi 6124 6125 6126fi 6127if test -z "$ac_cv_prog_LIPO"; then 6128 ac_ct_LIPO=$LIPO 6129 # Extract the first word of "lipo", so it can be a program name with args. 6130set dummy lipo; ac_word=$2 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6132$as_echo_n "checking for $ac_word... " >&6; } 6133if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 if test -n "$ac_ct_LIPO"; then 6137 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6146 ac_cv_prog_ac_ct_LIPO="lipo" 6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151 done 6152IFS=$as_save_IFS 6153 6154fi 6155fi 6156ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6157if test -n "$ac_ct_LIPO"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6159$as_echo "$ac_ct_LIPO" >&6; } 6160else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162$as_echo "no" >&6; } 6163fi 6164 6165 if test "x$ac_ct_LIPO" = x; then 6166 LIPO=":" 6167 else 6168 case $cross_compiling:$ac_tool_warned in 6169yes:) 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6172ac_tool_warned=yes ;; 6173esac 6174 LIPO=$ac_ct_LIPO 6175 fi 6176else 6177 LIPO="$ac_cv_prog_LIPO" 6178fi 6179 6180 if test -n "$ac_tool_prefix"; then 6181 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6182set dummy ${ac_tool_prefix}otool; ac_word=$2 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6184$as_echo_n "checking for $ac_word... " >&6; } 6185if test "${ac_cv_prog_OTOOL+set}" = set; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 if test -n "$OTOOL"; then 6189 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6198 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206fi 6207fi 6208OTOOL=$ac_cv_prog_OTOOL 6209if test -n "$OTOOL"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6211$as_echo "$OTOOL" >&6; } 6212else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214$as_echo "no" >&6; } 6215fi 6216 6217 6218fi 6219if test -z "$ac_cv_prog_OTOOL"; then 6220 ac_ct_OTOOL=$OTOOL 6221 # Extract the first word of "otool", so it can be a program name with args. 6222set dummy otool; ac_word=$2 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6224$as_echo_n "checking for $ac_word... " >&6; } 6225if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 if test -n "$ac_ct_OTOOL"; then 6229 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6230else 6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6232for as_dir in $PATH 6233do 6234 IFS=$as_save_IFS 6235 test -z "$as_dir" && as_dir=. 6236 for ac_exec_ext in '' $ac_executable_extensions; do 6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6238 ac_cv_prog_ac_ct_OTOOL="otool" 6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6240 break 2 6241 fi 6242done 6243 done 6244IFS=$as_save_IFS 6245 6246fi 6247fi 6248ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6249if test -n "$ac_ct_OTOOL"; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6251$as_echo "$ac_ct_OTOOL" >&6; } 6252else 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6254$as_echo "no" >&6; } 6255fi 6256 6257 if test "x$ac_ct_OTOOL" = x; then 6258 OTOOL=":" 6259 else 6260 case $cross_compiling:$ac_tool_warned in 6261yes:) 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6264ac_tool_warned=yes ;; 6265esac 6266 OTOOL=$ac_ct_OTOOL 6267 fi 6268else 6269 OTOOL="$ac_cv_prog_OTOOL" 6270fi 6271 6272 if test -n "$ac_tool_prefix"; then 6273 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6274set dummy ${ac_tool_prefix}otool64; ac_word=$2 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6276$as_echo_n "checking for $ac_word... " >&6; } 6277if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 if test -n "$OTOOL64"; then 6281 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6282else 6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284for as_dir in $PATH 6285do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6290 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294done 6295 done 6296IFS=$as_save_IFS 6297 6298fi 6299fi 6300OTOOL64=$ac_cv_prog_OTOOL64 6301if test -n "$OTOOL64"; then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6303$as_echo "$OTOOL64" >&6; } 6304else 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6306$as_echo "no" >&6; } 6307fi 6308 6309 6310fi 6311if test -z "$ac_cv_prog_OTOOL64"; then 6312 ac_ct_OTOOL64=$OTOOL64 6313 # Extract the first word of "otool64", so it can be a program name with args. 6314set dummy otool64; ac_word=$2 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316$as_echo_n "checking for $ac_word... " >&6; } 6317if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 if test -n "$ac_ct_OTOOL64"; then 6321 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6322else 6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6330 ac_cv_prog_ac_ct_OTOOL64="otool64" 6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334done 6335 done 6336IFS=$as_save_IFS 6337 6338fi 6339fi 6340ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6341if test -n "$ac_ct_OTOOL64"; then 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6343$as_echo "$ac_ct_OTOOL64" >&6; } 6344else 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6346$as_echo "no" >&6; } 6347fi 6348 6349 if test "x$ac_ct_OTOOL64" = x; then 6350 OTOOL64=":" 6351 else 6352 case $cross_compiling:$ac_tool_warned in 6353yes:) 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6356ac_tool_warned=yes ;; 6357esac 6358 OTOOL64=$ac_ct_OTOOL64 6359 fi 6360else 6361 OTOOL64="$ac_cv_prog_OTOOL64" 6362fi 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6391$as_echo_n "checking for -single_module linker flag... " >&6; } 6392if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 lt_cv_apple_cc_single_mod=no 6396 if test -z "${LT_MULTI_MODULE}"; then 6397 # By default we will add the -single_module flag. You can override 6398 # by either setting the environment variable LT_MULTI_MODULE 6399 # non-empty at configure time, or by adding -multi_module to the 6400 # link flags. 6401 rm -rf libconftest.dylib* 6402 echo "int foo(void){return 1;}" > conftest.c 6403 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6404-dynamiclib -Wl,-single_module conftest.c" >&5 6405 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6406 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6407 _lt_result=$? 6408 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6409 lt_cv_apple_cc_single_mod=yes 6410 else 6411 cat conftest.err >&5 6412 fi 6413 rm -rf libconftest.dylib* 6414 rm -f conftest.* 6415 fi 6416fi 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6418$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6421if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 lt_cv_ld_exported_symbols_list=no 6425 save_LDFLAGS=$LDFLAGS 6426 echo "_main" > conftest.sym 6427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429/* end confdefs.h. */ 6430 6431int 6432main () 6433{ 6434 6435 ; 6436 return 0; 6437} 6438_ACEOF 6439if ac_fn_c_try_link "$LINENO"; then : 6440 lt_cv_ld_exported_symbols_list=yes 6441else 6442 lt_cv_ld_exported_symbols_list=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext \ 6445 conftest$ac_exeext conftest.$ac_ext 6446 LDFLAGS="$save_LDFLAGS" 6447 6448fi 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6451 case $host_os in 6452 rhapsody* | darwin1.[012]) 6453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6454 darwin1.*) 6455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6456 darwin*) # darwin 5.x on 6457 # if running on 10.5 or later, the deployment target defaults 6458 # to the OS version, if on x86, and 10.4, the deployment 6459 # target defaults to 10.4. Don't you love it? 6460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6461 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6463 10.[012]*) 6464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6465 10.*) 6466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6467 esac 6468 ;; 6469 esac 6470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6471 _lt_dar_single_mod='$single_module' 6472 fi 6473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6475 else 6476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6477 fi 6478 if test "$DSYMUTIL" != ":"; then 6479 _lt_dsymutil='~$DSYMUTIL $lib || :' 6480 else 6481 _lt_dsymutil= 6482 fi 6483 ;; 6484 esac 6485 6486ac_ext=c 6487ac_cpp='$CPP $CPPFLAGS' 6488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6490ac_compiler_gnu=$ac_cv_c_compiler_gnu 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6492$as_echo_n "checking how to run the C preprocessor... " >&6; } 6493# On Suns, sometimes $CPP names a directory. 6494if test -n "$CPP" && test -d "$CPP"; then 6495 CPP= 6496fi 6497if test -z "$CPP"; then 6498 if test "${ac_cv_prog_CPP+set}" = set; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 # Double quotes because CPP needs to be expanded 6502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6503 do 6504 ac_preproc_ok=false 6505for ac_c_preproc_warn_flag in '' yes 6506do 6507 # Use a header file that comes with gcc, so configuring glibc 6508 # with a fresh cross-compiler works. 6509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6510 # <limits.h> exists even on freestanding compilers. 6511 # On the NeXT, cc -E runs the code through the compiler's parser, 6512 # not just through cpp. "Syntax error" is here to catch this case. 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514/* end confdefs.h. */ 6515#ifdef __STDC__ 6516# include <limits.h> 6517#else 6518# include <assert.h> 6519#endif 6520 Syntax error 6521_ACEOF 6522if ac_fn_c_try_cpp "$LINENO"; then : 6523 6524else 6525 # Broken: fails on valid input. 6526continue 6527fi 6528rm -f conftest.err conftest.$ac_ext 6529 6530 # OK, works on sane cases. Now check whether nonexistent headers 6531 # can be detected and how. 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534#include <ac_nonexistent.h> 6535_ACEOF 6536if ac_fn_c_try_cpp "$LINENO"; then : 6537 # Broken: success on invalid input. 6538continue 6539else 6540 # Passes both tests. 6541ac_preproc_ok=: 6542break 6543fi 6544rm -f conftest.err conftest.$ac_ext 6545 6546done 6547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6548rm -f conftest.err conftest.$ac_ext 6549if $ac_preproc_ok; then : 6550 break 6551fi 6552 6553 done 6554 ac_cv_prog_CPP=$CPP 6555 6556fi 6557 CPP=$ac_cv_prog_CPP 6558else 6559 ac_cv_prog_CPP=$CPP 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6562$as_echo "$CPP" >&6; } 6563ac_preproc_ok=false 6564for ac_c_preproc_warn_flag in '' yes 6565do 6566 # Use a header file that comes with gcc, so configuring glibc 6567 # with a fresh cross-compiler works. 6568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6569 # <limits.h> exists even on freestanding compilers. 6570 # On the NeXT, cc -E runs the code through the compiler's parser, 6571 # not just through cpp. "Syntax error" is here to catch this case. 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574#ifdef __STDC__ 6575# include <limits.h> 6576#else 6577# include <assert.h> 6578#endif 6579 Syntax error 6580_ACEOF 6581if ac_fn_c_try_cpp "$LINENO"; then : 6582 6583else 6584 # Broken: fails on valid input. 6585continue 6586fi 6587rm -f conftest.err conftest.$ac_ext 6588 6589 # OK, works on sane cases. Now check whether nonexistent headers 6590 # can be detected and how. 6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6592/* end confdefs.h. */ 6593#include <ac_nonexistent.h> 6594_ACEOF 6595if ac_fn_c_try_cpp "$LINENO"; then : 6596 # Broken: success on invalid input. 6597continue 6598else 6599 # Passes both tests. 6600ac_preproc_ok=: 6601break 6602fi 6603rm -f conftest.err conftest.$ac_ext 6604 6605done 6606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6607rm -f conftest.err conftest.$ac_ext 6608if $ac_preproc_ok; then : 6609 6610else 6611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6613as_fn_error "C preprocessor \"$CPP\" fails sanity check 6614See \`config.log' for more details." "$LINENO" 5; } 6615fi 6616 6617ac_ext=c 6618ac_cpp='$CPP $CPPFLAGS' 6619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6621ac_compiler_gnu=$ac_cv_c_compiler_gnu 6622 6623 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6625$as_echo_n "checking for ANSI C header files... " >&6; } 6626if test "${ac_cv_header_stdc+set}" = set; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631#include <stdlib.h> 6632#include <stdarg.h> 6633#include <string.h> 6634#include <float.h> 6635 6636int 6637main () 6638{ 6639 6640 ; 6641 return 0; 6642} 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO"; then : 6645 ac_cv_header_stdc=yes 6646else 6647 ac_cv_header_stdc=no 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6650 6651if test $ac_cv_header_stdc = yes; then 6652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655#include <string.h> 6656 6657_ACEOF 6658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6659 $EGREP "memchr" >/dev/null 2>&1; then : 6660 6661else 6662 ac_cv_header_stdc=no 6663fi 6664rm -f conftest* 6665 6666fi 6667 6668if test $ac_cv_header_stdc = yes; then 6669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672#include <stdlib.h> 6673 6674_ACEOF 6675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6676 $EGREP "free" >/dev/null 2>&1; then : 6677 6678else 6679 ac_cv_header_stdc=no 6680fi 6681rm -f conftest* 6682 6683fi 6684 6685if test $ac_cv_header_stdc = yes; then 6686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6687 if test "$cross_compiling" = yes; then : 6688 : 6689else 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692#include <ctype.h> 6693#include <stdlib.h> 6694#if ((' ' & 0x0FF) == 0x020) 6695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6697#else 6698# define ISLOWER(c) \ 6699 (('a' <= (c) && (c) <= 'i') \ 6700 || ('j' <= (c) && (c) <= 'r') \ 6701 || ('s' <= (c) && (c) <= 'z')) 6702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6703#endif 6704 6705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6706int 6707main () 6708{ 6709 int i; 6710 for (i = 0; i < 256; i++) 6711 if (XOR (islower (i), ISLOWER (i)) 6712 || toupper (i) != TOUPPER (i)) 6713 return 2; 6714 return 0; 6715} 6716_ACEOF 6717if ac_fn_c_try_run "$LINENO"; then : 6718 6719else 6720 ac_cv_header_stdc=no 6721fi 6722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6723 conftest.$ac_objext conftest.beam conftest.$ac_ext 6724fi 6725 6726fi 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6729$as_echo "$ac_cv_header_stdc" >&6; } 6730if test $ac_cv_header_stdc = yes; then 6731 6732$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6733 6734fi 6735 6736# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6738 inttypes.h stdint.h unistd.h 6739do : 6740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6741ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6742" 6743eval as_val=\$$as_ac_Header 6744 if test "x$as_val" = x""yes; then : 6745 cat >>confdefs.h <<_ACEOF 6746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6747_ACEOF 6748 6749fi 6750 6751done 6752 6753 6754for ac_header in dlfcn.h 6755do : 6756 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6757" 6758if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6759 cat >>confdefs.h <<_ACEOF 6760#define HAVE_DLFCN_H 1 6761_ACEOF 6762 6763fi 6764 6765done 6766 6767 6768 6769# Set options 6770 6771 6772 6773 enable_dlopen=no 6774 6775 6776 enable_win32_dll=no 6777 6778 6779 # Check whether --enable-shared was given. 6780if test "${enable_shared+set}" = set; then : 6781 enableval=$enable_shared; p=${PACKAGE-default} 6782 case $enableval in 6783 yes) enable_shared=yes ;; 6784 no) enable_shared=no ;; 6785 *) 6786 enable_shared=no 6787 # Look at the argument we got. We use all the common list separators. 6788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6789 for pkg in $enableval; do 6790 IFS="$lt_save_ifs" 6791 if test "X$pkg" = "X$p"; then 6792 enable_shared=yes 6793 fi 6794 done 6795 IFS="$lt_save_ifs" 6796 ;; 6797 esac 6798else 6799 enable_shared=yes 6800fi 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 # Check whether --enable-static was given. 6811if test "${enable_static+set}" = set; then : 6812 enableval=$enable_static; p=${PACKAGE-default} 6813 case $enableval in 6814 yes) enable_static=yes ;; 6815 no) enable_static=no ;; 6816 *) 6817 enable_static=no 6818 # Look at the argument we got. We use all the common list separators. 6819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6820 for pkg in $enableval; do 6821 IFS="$lt_save_ifs" 6822 if test "X$pkg" = "X$p"; then 6823 enable_static=yes 6824 fi 6825 done 6826 IFS="$lt_save_ifs" 6827 ;; 6828 esac 6829else 6830 enable_static=yes 6831fi 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842# Check whether --with-pic was given. 6843if test "${with_pic+set}" = set; then : 6844 withval=$with_pic; pic_mode="$withval" 6845else 6846 pic_mode=default 6847fi 6848 6849 6850test -z "$pic_mode" && pic_mode=default 6851 6852 6853 6854 6855 6856 6857 6858 # Check whether --enable-fast-install was given. 6859if test "${enable_fast_install+set}" = set; then : 6860 enableval=$enable_fast_install; p=${PACKAGE-default} 6861 case $enableval in 6862 yes) enable_fast_install=yes ;; 6863 no) enable_fast_install=no ;; 6864 *) 6865 enable_fast_install=no 6866 # Look at the argument we got. We use all the common list separators. 6867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6868 for pkg in $enableval; do 6869 IFS="$lt_save_ifs" 6870 if test "X$pkg" = "X$p"; then 6871 enable_fast_install=yes 6872 fi 6873 done 6874 IFS="$lt_save_ifs" 6875 ;; 6876 esac 6877else 6878 enable_fast_install=yes 6879fi 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891# This can be used to rebuild libtool when needed 6892LIBTOOL_DEPS="$ltmain" 6893 6894# Always use our own libtool. 6895LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921test -z "$LN_S" && LN_S="ln -s" 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936if test -n "${ZSH_VERSION+set}" ; then 6937 setopt NO_GLOB_SUBST 6938fi 6939 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6941$as_echo_n "checking for objdir... " >&6; } 6942if test "${lt_cv_objdir+set}" = set; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 rm -f .libs 2>/dev/null 6946mkdir .libs 2>/dev/null 6947if test -d .libs; then 6948 lt_cv_objdir=.libs 6949else 6950 # MS-DOS does not allow filenames that begin with a dot. 6951 lt_cv_objdir=_libs 6952fi 6953rmdir .libs 2>/dev/null 6954fi 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6956$as_echo "$lt_cv_objdir" >&6; } 6957objdir=$lt_cv_objdir 6958 6959 6960 6961 6962 6963cat >>confdefs.h <<_ACEOF 6964#define LT_OBJDIR "$lt_cv_objdir/" 6965_ACEOF 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983case $host_os in 6984aix3*) 6985 # AIX sometimes has problems with the GCC collect2 program. For some 6986 # reason, if we set the COLLECT_NAMES environment variable, the problems 6987 # vanish in a puff of smoke. 6988 if test "X${COLLECT_NAMES+set}" != Xset; then 6989 COLLECT_NAMES= 6990 export COLLECT_NAMES 6991 fi 6992 ;; 6993esac 6994 6995# Sed substitution that helps us do robust quoting. It backslashifies 6996# metacharacters that are still active within double-quoted strings. 6997sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6998 6999# Same as above, but do not quote variable references. 7000double_quote_subst='s/\(["`\\]\)/\\\1/g' 7001 7002# Sed substitution to delay expansion of an escaped shell variable in a 7003# double_quote_subst'ed string. 7004delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7005 7006# Sed substitution to delay expansion of an escaped single quote. 7007delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7008 7009# Sed substitution to avoid accidental globbing in evaled expressions 7010no_glob_subst='s/\*/\\\*/g' 7011 7012# Global variables: 7013ofile=libtool 7014can_build_shared=yes 7015 7016# All known linkers require a `.a' archive for static linking (except MSVC, 7017# which needs '.lib'). 7018libext=a 7019 7020with_gnu_ld="$lt_cv_prog_gnu_ld" 7021 7022old_CC="$CC" 7023old_CFLAGS="$CFLAGS" 7024 7025# Set sane defaults for various variables 7026test -z "$CC" && CC=cc 7027test -z "$LTCC" && LTCC=$CC 7028test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7029test -z "$LD" && LD=ld 7030test -z "$ac_objext" && ac_objext=o 7031 7032for cc_temp in $compiler""; do 7033 case $cc_temp in 7034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7036 \-*) ;; 7037 *) break;; 7038 esac 7039done 7040cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7041 7042 7043# Only perform the check for file, if the check method requires it 7044test -z "$MAGIC_CMD" && MAGIC_CMD=file 7045case $deplibs_check_method in 7046file_magic*) 7047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7049$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7050if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 case $MAGIC_CMD in 7054[\\/*] | ?:[\\/]*) 7055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7056 ;; 7057*) 7058 lt_save_MAGIC_CMD="$MAGIC_CMD" 7059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7061 for ac_dir in $ac_dummy; do 7062 IFS="$lt_save_ifs" 7063 test -z "$ac_dir" && ac_dir=. 7064 if test -f $ac_dir/${ac_tool_prefix}file; then 7065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7066 if test -n "$file_magic_test_file"; then 7067 case $deplibs_check_method in 7068 "file_magic "*) 7069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7072 $EGREP "$file_magic_regex" > /dev/null; then 7073 : 7074 else 7075 cat <<_LT_EOF 1>&2 7076 7077*** Warning: the command libtool uses to detect shared libraries, 7078*** $file_magic_cmd, produces output that libtool cannot recognize. 7079*** The result is that libtool may fail to recognize shared libraries 7080*** as such. This will affect the creation of libtool libraries that 7081*** depend on shared libraries, but programs linked with such libtool 7082*** libraries will work regardless of this problem. Nevertheless, you 7083*** may want to report the problem to your system manager and/or to 7084*** bug-libtool@gnu.org 7085 7086_LT_EOF 7087 fi ;; 7088 esac 7089 fi 7090 break 7091 fi 7092 done 7093 IFS="$lt_save_ifs" 7094 MAGIC_CMD="$lt_save_MAGIC_CMD" 7095 ;; 7096esac 7097fi 7098 7099MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7100if test -n "$MAGIC_CMD"; then 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7102$as_echo "$MAGIC_CMD" >&6; } 7103else 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7105$as_echo "no" >&6; } 7106fi 7107 7108 7109 7110 7111 7112if test -z "$lt_cv_path_MAGIC_CMD"; then 7113 if test -n "$ac_tool_prefix"; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7115$as_echo_n "checking for file... " >&6; } 7116if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 case $MAGIC_CMD in 7120[\\/*] | ?:[\\/]*) 7121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7122 ;; 7123*) 7124 lt_save_MAGIC_CMD="$MAGIC_CMD" 7125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7127 for ac_dir in $ac_dummy; do 7128 IFS="$lt_save_ifs" 7129 test -z "$ac_dir" && ac_dir=. 7130 if test -f $ac_dir/file; then 7131 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7132 if test -n "$file_magic_test_file"; then 7133 case $deplibs_check_method in 7134 "file_magic "*) 7135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7138 $EGREP "$file_magic_regex" > /dev/null; then 7139 : 7140 else 7141 cat <<_LT_EOF 1>&2 7142 7143*** Warning: the command libtool uses to detect shared libraries, 7144*** $file_magic_cmd, produces output that libtool cannot recognize. 7145*** The result is that libtool may fail to recognize shared libraries 7146*** as such. This will affect the creation of libtool libraries that 7147*** depend on shared libraries, but programs linked with such libtool 7148*** libraries will work regardless of this problem. Nevertheless, you 7149*** may want to report the problem to your system manager and/or to 7150*** bug-libtool@gnu.org 7151 7152_LT_EOF 7153 fi ;; 7154 esac 7155 fi 7156 break 7157 fi 7158 done 7159 IFS="$lt_save_ifs" 7160 MAGIC_CMD="$lt_save_MAGIC_CMD" 7161 ;; 7162esac 7163fi 7164 7165MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7166if test -n "$MAGIC_CMD"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7168$as_echo "$MAGIC_CMD" >&6; } 7169else 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171$as_echo "no" >&6; } 7172fi 7173 7174 7175 else 7176 MAGIC_CMD=: 7177 fi 7178fi 7179 7180 fi 7181 ;; 7182esac 7183 7184# Use C for the default configuration in the libtool script 7185 7186lt_save_CC="$CC" 7187ac_ext=c 7188ac_cpp='$CPP $CPPFLAGS' 7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7191ac_compiler_gnu=$ac_cv_c_compiler_gnu 7192 7193 7194# Source file extension for C test sources. 7195ac_ext=c 7196 7197# Object file extension for compiled C test sources. 7198objext=o 7199objext=$objext 7200 7201# Code to be used in simple compile tests 7202lt_simple_compile_test_code="int some_variable = 0;" 7203 7204# Code to be used in simple link tests 7205lt_simple_link_test_code='int main(){return(0);}' 7206 7207 7208 7209 7210 7211 7212 7213# If no C compiler was specified, use CC. 7214LTCC=${LTCC-"$CC"} 7215 7216# If no C compiler flags were specified, use CFLAGS. 7217LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7218 7219# Allow CC to be a program name with arguments. 7220compiler=$CC 7221 7222# Save the default compiler, since it gets overwritten when the other 7223# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7224compiler_DEFAULT=$CC 7225 7226# save warnings/boilerplate of simple test code 7227ac_outfile=conftest.$ac_objext 7228echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7230_lt_compiler_boilerplate=`cat conftest.err` 7231$RM conftest* 7232 7233ac_outfile=conftest.$ac_objext 7234echo "$lt_simple_link_test_code" >conftest.$ac_ext 7235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7236_lt_linker_boilerplate=`cat conftest.err` 7237$RM -r conftest* 7238 7239 7240if test -n "$compiler"; then 7241 7242lt_prog_compiler_no_builtin_flag= 7243 7244if test "$GCC" = yes; then 7245 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7246 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7248$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7249if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 lt_cv_prog_compiler_rtti_exceptions=no 7253 ac_outfile=conftest.$ac_objext 7254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7255 lt_compiler_flag="-fno-rtti -fno-exceptions" 7256 # Insert the option either (1) after the last *FLAGS variable, or 7257 # (2) before a word containing "conftest.", or (3) at the end. 7258 # Note that $ac_compile itself does not contain backslashes and begins 7259 # with a dollar sign (not a hyphen), so the echo should work correctly. 7260 # The option is referenced via a variable to avoid confusing sed. 7261 lt_compile=`echo "$ac_compile" | $SED \ 7262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7264 -e 's:$: $lt_compiler_flag:'` 7265 (eval echo "\"\$as_me:7265: $lt_compile\"" >&5) 7266 (eval "$lt_compile" 2>conftest.err) 7267 ac_status=$? 7268 cat conftest.err >&5 7269 echo "$as_me:7269: \$? = $ac_status" >&5 7270 if (exit $ac_status) && test -s "$ac_outfile"; then 7271 # The compiler can only warn and ignore the option if not recognized 7272 # So say no if there are warnings other than the usual output. 7273 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7276 lt_cv_prog_compiler_rtti_exceptions=yes 7277 fi 7278 fi 7279 $RM conftest* 7280 7281fi 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7283$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7284 7285if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7286 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7287else 7288 : 7289fi 7290 7291fi 7292 7293 7294 7295 7296 7297 7298 lt_prog_compiler_wl= 7299lt_prog_compiler_pic= 7300lt_prog_compiler_static= 7301 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7303$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7304 7305 if test "$GCC" = yes; then 7306 lt_prog_compiler_wl='-Wl,' 7307 lt_prog_compiler_static='-static' 7308 7309 case $host_os in 7310 aix*) 7311 # All AIX code is PIC. 7312 if test "$host_cpu" = ia64; then 7313 # AIX 5 now supports IA64 processor 7314 lt_prog_compiler_static='-Bstatic' 7315 fi 7316 ;; 7317 7318 amigaos*) 7319 case $host_cpu in 7320 powerpc) 7321 # see comment about AmigaOS4 .so support 7322 lt_prog_compiler_pic='-fPIC' 7323 ;; 7324 m68k) 7325 # FIXME: we need at least 68020 code to build shared libraries, but 7326 # adding the `-m68020' flag to GCC prevents building anything better, 7327 # like `-m68040'. 7328 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7329 ;; 7330 esac 7331 ;; 7332 7333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7334 # PIC is the default for these OSes. 7335 ;; 7336 7337 mingw* | cygwin* | pw32* | os2* | cegcc*) 7338 # This hack is so that the source file can tell whether it is being 7339 # built for inclusion in a dll (and should export symbols for example). 7340 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7341 # (--disable-auto-import) libraries 7342 lt_prog_compiler_pic='-DDLL_EXPORT' 7343 ;; 7344 7345 darwin* | rhapsody*) 7346 # PIC is the default on this platform 7347 # Common symbols not allowed in MH_DYLIB files 7348 lt_prog_compiler_pic='-fno-common' 7349 ;; 7350 7351 hpux*) 7352 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7353 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7354 # sets the default TLS model and affects inlining. 7355 case $host_cpu in 7356 hppa*64*) 7357 # +Z the default 7358 ;; 7359 *) 7360 lt_prog_compiler_pic='-fPIC' 7361 ;; 7362 esac 7363 ;; 7364 7365 interix[3-9]*) 7366 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7367 # Instead, we relocate shared libraries at runtime. 7368 ;; 7369 7370 msdosdjgpp*) 7371 # Just because we use GCC doesn't mean we suddenly get shared libraries 7372 # on systems that don't support them. 7373 lt_prog_compiler_can_build_shared=no 7374 enable_shared=no 7375 ;; 7376 7377 *nto* | *qnx*) 7378 # QNX uses GNU C++, but need to define -shared option too, otherwise 7379 # it will coredump. 7380 lt_prog_compiler_pic='-fPIC -shared' 7381 ;; 7382 7383 sysv4*MP*) 7384 if test -d /usr/nec; then 7385 lt_prog_compiler_pic=-Kconform_pic 7386 fi 7387 ;; 7388 7389 *) 7390 lt_prog_compiler_pic='-fPIC' 7391 ;; 7392 esac 7393 else 7394 # PORTME Check for flag to pass linker flags through the system compiler. 7395 case $host_os in 7396 aix*) 7397 lt_prog_compiler_wl='-Wl,' 7398 if test "$host_cpu" = ia64; then 7399 # AIX 5 now supports IA64 processor 7400 lt_prog_compiler_static='-Bstatic' 7401 else 7402 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7403 fi 7404 ;; 7405 7406 mingw* | cygwin* | pw32* | os2* | cegcc*) 7407 # This hack is so that the source file can tell whether it is being 7408 # built for inclusion in a dll (and should export symbols for example). 7409 lt_prog_compiler_pic='-DDLL_EXPORT' 7410 ;; 7411 7412 hpux9* | hpux10* | hpux11*) 7413 lt_prog_compiler_wl='-Wl,' 7414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7415 # not for PA HP-UX. 7416 case $host_cpu in 7417 hppa*64*|ia64*) 7418 # +Z the default 7419 ;; 7420 *) 7421 lt_prog_compiler_pic='+Z' 7422 ;; 7423 esac 7424 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7425 lt_prog_compiler_static='${wl}-a ${wl}archive' 7426 ;; 7427 7428 irix5* | irix6* | nonstopux*) 7429 lt_prog_compiler_wl='-Wl,' 7430 # PIC (with -KPIC) is the default. 7431 lt_prog_compiler_static='-non_shared' 7432 ;; 7433 7434 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7435 case $cc_basename in 7436 # old Intel for x86_64 which still supported -KPIC. 7437 ecc*) 7438 lt_prog_compiler_wl='-Wl,' 7439 lt_prog_compiler_pic='-KPIC' 7440 lt_prog_compiler_static='-static' 7441 ;; 7442 # icc used to be incompatible with GCC. 7443 # ICC 10 doesn't accept -KPIC any more. 7444 icc* | ifort*) 7445 lt_prog_compiler_wl='-Wl,' 7446 lt_prog_compiler_pic='-fPIC' 7447 lt_prog_compiler_static='-static' 7448 ;; 7449 # Lahey Fortran 8.1. 7450 lf95*) 7451 lt_prog_compiler_wl='-Wl,' 7452 lt_prog_compiler_pic='--shared' 7453 lt_prog_compiler_static='--static' 7454 ;; 7455 pgcc* | pgf77* | pgf90* | pgf95*) 7456 # Portland Group compilers (*not* the Pentium gcc compiler, 7457 # which looks to be a dead project) 7458 lt_prog_compiler_wl='-Wl,' 7459 lt_prog_compiler_pic='-fpic' 7460 lt_prog_compiler_static='-Bstatic' 7461 ;; 7462 ccc*) 7463 lt_prog_compiler_wl='-Wl,' 7464 # All Alpha code is PIC. 7465 lt_prog_compiler_static='-non_shared' 7466 ;; 7467 xl*) 7468 # IBM XL C 8.0/Fortran 10.1 on PPC 7469 lt_prog_compiler_wl='-Wl,' 7470 lt_prog_compiler_pic='-qpic' 7471 lt_prog_compiler_static='-qstaticlink' 7472 ;; 7473 *) 7474 case `$CC -V 2>&1 | sed 5q` in 7475 *Sun\ C*) 7476 # Sun C 5.9 7477 lt_prog_compiler_pic='-KPIC' 7478 lt_prog_compiler_static='-Bstatic' 7479 lt_prog_compiler_wl='-Wl,' 7480 ;; 7481 *Sun\ F*) 7482 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7483 lt_prog_compiler_pic='-KPIC' 7484 lt_prog_compiler_static='-Bstatic' 7485 lt_prog_compiler_wl='' 7486 ;; 7487 esac 7488 ;; 7489 esac 7490 ;; 7491 7492 newsos6) 7493 lt_prog_compiler_pic='-KPIC' 7494 lt_prog_compiler_static='-Bstatic' 7495 ;; 7496 7497 *nto* | *qnx*) 7498 # QNX uses GNU C++, but need to define -shared option too, otherwise 7499 # it will coredump. 7500 lt_prog_compiler_pic='-fPIC -shared' 7501 ;; 7502 7503 osf3* | osf4* | osf5*) 7504 lt_prog_compiler_wl='-Wl,' 7505 # All OSF/1 code is PIC. 7506 lt_prog_compiler_static='-non_shared' 7507 ;; 7508 7509 rdos*) 7510 lt_prog_compiler_static='-non_shared' 7511 ;; 7512 7513 solaris*) 7514 lt_prog_compiler_pic='-KPIC' 7515 lt_prog_compiler_static='-Bstatic' 7516 case $cc_basename in 7517 f77* | f90* | f95*) 7518 lt_prog_compiler_wl='-Qoption ld ';; 7519 *) 7520 lt_prog_compiler_wl='-Wl,';; 7521 esac 7522 ;; 7523 7524 sunos4*) 7525 lt_prog_compiler_wl='-Qoption ld ' 7526 lt_prog_compiler_pic='-PIC' 7527 lt_prog_compiler_static='-Bstatic' 7528 ;; 7529 7530 sysv4 | sysv4.2uw2* | sysv4.3*) 7531 lt_prog_compiler_wl='-Wl,' 7532 lt_prog_compiler_pic='-KPIC' 7533 lt_prog_compiler_static='-Bstatic' 7534 ;; 7535 7536 sysv4*MP*) 7537 if test -d /usr/nec ;then 7538 lt_prog_compiler_pic='-Kconform_pic' 7539 lt_prog_compiler_static='-Bstatic' 7540 fi 7541 ;; 7542 7543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7544 lt_prog_compiler_wl='-Wl,' 7545 lt_prog_compiler_pic='-KPIC' 7546 lt_prog_compiler_static='-Bstatic' 7547 ;; 7548 7549 unicos*) 7550 lt_prog_compiler_wl='-Wl,' 7551 lt_prog_compiler_can_build_shared=no 7552 ;; 7553 7554 uts4*) 7555 lt_prog_compiler_pic='-pic' 7556 lt_prog_compiler_static='-Bstatic' 7557 ;; 7558 7559 *) 7560 lt_prog_compiler_can_build_shared=no 7561 ;; 7562 esac 7563 fi 7564 7565case $host_os in 7566 # For platforms which do not support PIC, -DPIC is meaningless: 7567 *djgpp*) 7568 lt_prog_compiler_pic= 7569 ;; 7570 *) 7571 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7572 ;; 7573esac 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7575$as_echo "$lt_prog_compiler_pic" >&6; } 7576 7577 7578 7579 7580 7581 7582# 7583# Check to make sure the PIC flag actually works. 7584# 7585if test -n "$lt_prog_compiler_pic"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7587$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7588if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 lt_cv_prog_compiler_pic_works=no 7592 ac_outfile=conftest.$ac_objext 7593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7595 # Insert the option either (1) after the last *FLAGS variable, or 7596 # (2) before a word containing "conftest.", or (3) at the end. 7597 # Note that $ac_compile itself does not contain backslashes and begins 7598 # with a dollar sign (not a hyphen), so the echo should work correctly. 7599 # The option is referenced via a variable to avoid confusing sed. 7600 lt_compile=`echo "$ac_compile" | $SED \ 7601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7603 -e 's:$: $lt_compiler_flag:'` 7604 (eval echo "\"\$as_me:7604: $lt_compile\"" >&5) 7605 (eval "$lt_compile" 2>conftest.err) 7606 ac_status=$? 7607 cat conftest.err >&5 7608 echo "$as_me:7608: \$? = $ac_status" >&5 7609 if (exit $ac_status) && test -s "$ac_outfile"; then 7610 # The compiler can only warn and ignore the option if not recognized 7611 # So say no if there are warnings other than the usual output. 7612 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7615 lt_cv_prog_compiler_pic_works=yes 7616 fi 7617 fi 7618 $RM conftest* 7619 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7622$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7623 7624if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7625 case $lt_prog_compiler_pic in 7626 "" | " "*) ;; 7627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7628 esac 7629else 7630 lt_prog_compiler_pic= 7631 lt_prog_compiler_can_build_shared=no 7632fi 7633 7634fi 7635 7636 7637 7638 7639 7640 7641# 7642# Check to make sure the static flag actually works. 7643# 7644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7647if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 lt_cv_prog_compiler_static_works=no 7651 save_LDFLAGS="$LDFLAGS" 7652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7653 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7655 # The linker can only warn and ignore the option if not recognized 7656 # So say no if there are warnings 7657 if test -s conftest.err; then 7658 # Append any errors to the config.log. 7659 cat conftest.err 1>&5 7660 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7662 if diff conftest.exp conftest.er2 >/dev/null; then 7663 lt_cv_prog_compiler_static_works=yes 7664 fi 7665 else 7666 lt_cv_prog_compiler_static_works=yes 7667 fi 7668 fi 7669 $RM -r conftest* 7670 LDFLAGS="$save_LDFLAGS" 7671 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7674$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7675 7676if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7677 : 7678else 7679 lt_prog_compiler_static= 7680fi 7681 7682 7683 7684 7685 7686 7687 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7690if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 lt_cv_prog_compiler_c_o=no 7694 $RM -r conftest 2>/dev/null 7695 mkdir conftest 7696 cd conftest 7697 mkdir out 7698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7699 7700 lt_compiler_flag="-o out/conftest2.$ac_objext" 7701 # Insert the option either (1) after the last *FLAGS variable, or 7702 # (2) before a word containing "conftest.", or (3) at the end. 7703 # Note that $ac_compile itself does not contain backslashes and begins 7704 # with a dollar sign (not a hyphen), so the echo should work correctly. 7705 lt_compile=`echo "$ac_compile" | $SED \ 7706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7708 -e 's:$: $lt_compiler_flag:'` 7709 (eval echo "\"\$as_me:7709: $lt_compile\"" >&5) 7710 (eval "$lt_compile" 2>out/conftest.err) 7711 ac_status=$? 7712 cat out/conftest.err >&5 7713 echo "$as_me:7713: \$? = $ac_status" >&5 7714 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7715 then 7716 # The compiler can only warn and ignore the option if not recognized 7717 # So say no if there are warnings 7718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7721 lt_cv_prog_compiler_c_o=yes 7722 fi 7723 fi 7724 chmod u+w . 2>&5 7725 $RM conftest* 7726 # SGI C++ compiler will create directory out/ii_files/ for 7727 # template instantiation 7728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7729 $RM out/* && rmdir out 7730 cd .. 7731 $RM -r conftest 7732 $RM conftest* 7733 7734fi 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7736$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7737 7738 7739 7740 7741 7742 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7745if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7746 $as_echo_n "(cached) " >&6 7747else 7748 lt_cv_prog_compiler_c_o=no 7749 $RM -r conftest 2>/dev/null 7750 mkdir conftest 7751 cd conftest 7752 mkdir out 7753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7754 7755 lt_compiler_flag="-o out/conftest2.$ac_objext" 7756 # Insert the option either (1) after the last *FLAGS variable, or 7757 # (2) before a word containing "conftest.", or (3) at the end. 7758 # Note that $ac_compile itself does not contain backslashes and begins 7759 # with a dollar sign (not a hyphen), so the echo should work correctly. 7760 lt_compile=`echo "$ac_compile" | $SED \ 7761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7763 -e 's:$: $lt_compiler_flag:'` 7764 (eval echo "\"\$as_me:7764: $lt_compile\"" >&5) 7765 (eval "$lt_compile" 2>out/conftest.err) 7766 ac_status=$? 7767 cat out/conftest.err >&5 7768 echo "$as_me:7768: \$? = $ac_status" >&5 7769 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7770 then 7771 # The compiler can only warn and ignore the option if not recognized 7772 # So say no if there are warnings 7773 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7776 lt_cv_prog_compiler_c_o=yes 7777 fi 7778 fi 7779 chmod u+w . 2>&5 7780 $RM conftest* 7781 # SGI C++ compiler will create directory out/ii_files/ for 7782 # template instantiation 7783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7784 $RM out/* && rmdir out 7785 cd .. 7786 $RM -r conftest 7787 $RM conftest* 7788 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7791$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7792 7793 7794 7795 7796hard_links="nottested" 7797if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7798 # do not overwrite the value of need_locks provided by the user 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7800$as_echo_n "checking if we can lock with hard links... " >&6; } 7801 hard_links=yes 7802 $RM conftest* 7803 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7804 touch conftest.a 7805 ln conftest.a conftest.b 2>&5 || hard_links=no 7806 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7808$as_echo "$hard_links" >&6; } 7809 if test "$hard_links" = no; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7811$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7812 need_locks=warn 7813 fi 7814else 7815 need_locks=no 7816fi 7817 7818 7819 7820 7821 7822 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7825 7826 runpath_var= 7827 allow_undefined_flag= 7828 always_export_symbols=no 7829 archive_cmds= 7830 archive_expsym_cmds= 7831 compiler_needs_object=no 7832 enable_shared_with_static_runtimes=no 7833 export_dynamic_flag_spec= 7834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7835 hardcode_automatic=no 7836 hardcode_direct=no 7837 hardcode_direct_absolute=no 7838 hardcode_libdir_flag_spec= 7839 hardcode_libdir_flag_spec_ld= 7840 hardcode_libdir_separator= 7841 hardcode_minus_L=no 7842 hardcode_shlibpath_var=unsupported 7843 inherit_rpath=no 7844 link_all_deplibs=unknown 7845 module_cmds= 7846 module_expsym_cmds= 7847 old_archive_from_new_cmds= 7848 old_archive_from_expsyms_cmds= 7849 thread_safe_flag_spec= 7850 whole_archive_flag_spec= 7851 # include_expsyms should be a list of space-separated symbols to be *always* 7852 # included in the symbol list 7853 include_expsyms= 7854 # exclude_expsyms can be an extended regexp of symbols to exclude 7855 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7856 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7857 # as well as any symbol that contains `d'. 7858 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7860 # platforms (ab)use it in PIC code, but their linkers get confused if 7861 # the symbol is explicitly referenced. Since portable code cannot 7862 # rely on this symbol name, it's probably fine to never include it in 7863 # preloaded symbol tables. 7864 # Exclude shared library initialization/finalization symbols. 7865 extract_expsyms_cmds= 7866 7867 case $host_os in 7868 cygwin* | mingw* | pw32* | cegcc*) 7869 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7870 # When not using gcc, we currently assume that we are using 7871 # Microsoft Visual C++. 7872 if test "$GCC" != yes; then 7873 with_gnu_ld=no 7874 fi 7875 ;; 7876 interix*) 7877 # we just hope/assume this is gcc and not c89 (= MSVC++) 7878 with_gnu_ld=yes 7879 ;; 7880 openbsd*) 7881 with_gnu_ld=no 7882 ;; 7883 linux* | k*bsd*-gnu) 7884 link_all_deplibs=no 7885 ;; 7886 esac 7887 7888 ld_shlibs=yes 7889 if test "$with_gnu_ld" = yes; then 7890 # If archive_cmds runs LD, not CC, wlarc should be empty 7891 wlarc='${wl}' 7892 7893 # Set some defaults for GNU ld with shared library support. These 7894 # are reset later if shared libraries are not supported. Putting them 7895 # here allows them to be overridden if necessary. 7896 runpath_var=LD_RUN_PATH 7897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7898 export_dynamic_flag_spec='${wl}--export-dynamic' 7899 # ancient GNU ld didn't support --whole-archive et. al. 7900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7902 else 7903 whole_archive_flag_spec= 7904 fi 7905 supports_anon_versioning=no 7906 case `$LD -v 2>&1` in 7907 *GNU\ gold*) supports_anon_versioning=yes ;; 7908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7911 *\ 2.11.*) ;; # other 2.11 versions 7912 *) supports_anon_versioning=yes ;; 7913 esac 7914 7915 # See if GNU ld supports shared libraries. 7916 case $host_os in 7917 aix[3-9]*) 7918 # On AIX/PPC, the GNU linker is very broken 7919 if test "$host_cpu" != ia64; then 7920 ld_shlibs=no 7921 cat <<_LT_EOF 1>&2 7922 7923*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7924*** to be unable to reliably create shared libraries on AIX. 7925*** Therefore, libtool is disabling shared libraries support. If you 7926*** really care for shared libraries, you may want to modify your PATH 7927*** so that a non-GNU linker is found, and then restart. 7928 7929_LT_EOF 7930 fi 7931 ;; 7932 7933 amigaos*) 7934 case $host_cpu in 7935 powerpc) 7936 # see comment about AmigaOS4 .so support 7937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7938 archive_expsym_cmds='' 7939 ;; 7940 m68k) 7941 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7942 hardcode_libdir_flag_spec='-L$libdir' 7943 hardcode_minus_L=yes 7944 ;; 7945 esac 7946 ;; 7947 7948 beos*) 7949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7950 allow_undefined_flag=unsupported 7951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7952 # support --undefined. This deserves some investigation. FIXME 7953 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7954 else 7955 ld_shlibs=no 7956 fi 7957 ;; 7958 7959 cygwin* | mingw* | pw32* | cegcc*) 7960 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7961 # as there is no search path for DLLs. 7962 hardcode_libdir_flag_spec='-L$libdir' 7963 allow_undefined_flag=unsupported 7964 always_export_symbols=no 7965 enable_shared_with_static_runtimes=yes 7966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7967 7968 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7970 # If the export-symbols file already is a .def file (1st line 7971 # is EXPORTS), use it as is; otherwise, prepend... 7972 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7973 cp $export_symbols $output_objdir/$soname.def; 7974 else 7975 echo EXPORTS > $output_objdir/$soname.def; 7976 cat $export_symbols >> $output_objdir/$soname.def; 7977 fi~ 7978 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7979 else 7980 ld_shlibs=no 7981 fi 7982 ;; 7983 7984 interix[3-9]*) 7985 hardcode_direct=no 7986 hardcode_shlibpath_var=no 7987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7988 export_dynamic_flag_spec='${wl}-E' 7989 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7990 # Instead, shared libraries are loaded at an image base (0x10000000 by 7991 # default) and relocated if they conflict, which is a slow very memory 7992 # consuming and fragmenting process. To avoid this, we pick a random, 7993 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7994 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7996 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7997 ;; 7998 7999 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8000 tmp_diet=no 8001 if test "$host_os" = linux-dietlibc; then 8002 case $cc_basename in 8003 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8004 esac 8005 fi 8006 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8007 && test "$tmp_diet" = no 8008 then 8009 tmp_addflag= 8010 tmp_sharedflag='-shared' 8011 case $cc_basename,$host_cpu in 8012 pgcc*) # Portland Group C compiler 8013 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8014 tmp_addflag=' $pic_flag' 8015 ;; 8016 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8017 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8018 tmp_addflag=' $pic_flag -Mnomain' ;; 8019 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8020 tmp_addflag=' -i_dynamic' ;; 8021 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8022 tmp_addflag=' -i_dynamic -nofor_main' ;; 8023 ifc* | ifort*) # Intel Fortran compiler 8024 tmp_addflag=' -nofor_main' ;; 8025 lf95*) # Lahey Fortran 8.1 8026 whole_archive_flag_spec= 8027 tmp_sharedflag='--shared' ;; 8028 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8029 tmp_sharedflag='-qmkshrobj' 8030 tmp_addflag= ;; 8031 esac 8032 case `$CC -V 2>&1 | sed 5q` in 8033 *Sun\ C*) # Sun C 5.9 8034 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8035 compiler_needs_object=yes 8036 tmp_sharedflag='-G' ;; 8037 *Sun\ F*) # Sun Fortran 8.3 8038 tmp_sharedflag='-G' ;; 8039 esac 8040 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8041 8042 if test "x$supports_anon_versioning" = xyes; then 8043 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8045 echo "local: *; };" >> $output_objdir/$libname.ver~ 8046 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8047 fi 8048 8049 case $cc_basename in 8050 xlf*) 8051 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8052 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8053 hardcode_libdir_flag_spec= 8054 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8055 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8056 if test "x$supports_anon_versioning" = xyes; then 8057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8059 echo "local: *; };" >> $output_objdir/$libname.ver~ 8060 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8061 fi 8062 ;; 8063 esac 8064 else 8065 ld_shlibs=no 8066 fi 8067 ;; 8068 8069 netbsd* | netbsdelf*-gnu) 8070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8071 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8072 wlarc= 8073 else 8074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8076 fi 8077 ;; 8078 8079 solaris*) 8080 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8081 ld_shlibs=no 8082 cat <<_LT_EOF 1>&2 8083 8084*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8085*** create shared libraries on Solaris systems. Therefore, libtool 8086*** is disabling shared libraries support. We urge you to upgrade GNU 8087*** binutils to release 2.9.1 or newer. Another option is to modify 8088*** your PATH or compiler configuration so that the native linker is 8089*** used, and then restart. 8090 8091_LT_EOF 8092 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8095 else 8096 ld_shlibs=no 8097 fi 8098 ;; 8099 8100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8101 case `$LD -v 2>&1` in 8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8103 ld_shlibs=no 8104 cat <<_LT_EOF 1>&2 8105 8106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8107*** reliably create shared libraries on SCO systems. Therefore, libtool 8108*** is disabling shared libraries support. We urge you to upgrade GNU 8109*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8110*** your PATH or compiler configuration so that the native linker is 8111*** used, and then restart. 8112 8113_LT_EOF 8114 ;; 8115 *) 8116 # For security reasons, it is highly recommended that you always 8117 # use absolute paths for naming shared libraries, and exclude the 8118 # DT_RUNPATH tag from executables and libraries. But doing so 8119 # requires that you compile everything twice, which is a pain. 8120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8124 else 8125 ld_shlibs=no 8126 fi 8127 ;; 8128 esac 8129 ;; 8130 8131 sunos4*) 8132 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8133 wlarc= 8134 hardcode_direct=yes 8135 hardcode_shlibpath_var=no 8136 ;; 8137 8138 *) 8139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8142 else 8143 ld_shlibs=no 8144 fi 8145 ;; 8146 esac 8147 8148 if test "$ld_shlibs" = no; then 8149 runpath_var= 8150 hardcode_libdir_flag_spec= 8151 export_dynamic_flag_spec= 8152 whole_archive_flag_spec= 8153 fi 8154 else 8155 # PORTME fill in a description of your system's linker (not GNU ld) 8156 case $host_os in 8157 aix3*) 8158 allow_undefined_flag=unsupported 8159 always_export_symbols=yes 8160 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 8161 # Note: this linker hardcodes the directories in LIBPATH if there 8162 # are no directories specified by -L. 8163 hardcode_minus_L=yes 8164 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8165 # Neither direct hardcoding nor static linking is supported with a 8166 # broken collect2. 8167 hardcode_direct=unsupported 8168 fi 8169 ;; 8170 8171 aix[4-9]*) 8172 if test "$host_cpu" = ia64; then 8173 # On IA64, the linker does run time linking by default, so we don't 8174 # have to do anything special. 8175 aix_use_runtimelinking=no 8176 exp_sym_flag='-Bexport' 8177 no_entry_flag="" 8178 else 8179 # If we're using GNU nm, then we don't want the "-C" option. 8180 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8182 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8183 else 8184 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8185 fi 8186 aix_use_runtimelinking=no 8187 8188 # Test if we are trying to use run time linking or normal 8189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8190 # need to do runtime linking. 8191 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8192 for ld_flag in $LDFLAGS; do 8193 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8194 aix_use_runtimelinking=yes 8195 break 8196 fi 8197 done 8198 ;; 8199 esac 8200 8201 exp_sym_flag='-bexport' 8202 no_entry_flag='-bnoentry' 8203 fi 8204 8205 # When large executables or shared objects are built, AIX ld can 8206 # have problems creating the table of contents. If linking a library 8207 # or program results in "error TOC overflow" add -mminimal-toc to 8208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8210 8211 archive_cmds='' 8212 hardcode_direct=yes 8213 hardcode_direct_absolute=yes 8214 hardcode_libdir_separator=':' 8215 link_all_deplibs=yes 8216 file_list_spec='${wl}-f,' 8217 8218 if test "$GCC" = yes; then 8219 case $host_os in aix4.[012]|aix4.[012].*) 8220 # We only want to do this on AIX 4.2 and lower, the check 8221 # below for broken collect2 doesn't work under 4.3+ 8222 collect2name=`${CC} -print-prog-name=collect2` 8223 if test -f "$collect2name" && 8224 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8225 then 8226 # We have reworked collect2 8227 : 8228 else 8229 # We have old collect2 8230 hardcode_direct=unsupported 8231 # It fails to find uninstalled libraries when the uninstalled 8232 # path is not listed in the libpath. Setting hardcode_minus_L 8233 # to unsupported forces relinking 8234 hardcode_minus_L=yes 8235 hardcode_libdir_flag_spec='-L$libdir' 8236 hardcode_libdir_separator= 8237 fi 8238 ;; 8239 esac 8240 shared_flag='-shared' 8241 if test "$aix_use_runtimelinking" = yes; then 8242 shared_flag="$shared_flag "'${wl}-G' 8243 fi 8244 link_all_deplibs=no 8245 else 8246 # not using gcc 8247 if test "$host_cpu" = ia64; then 8248 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8249 # chokes on -Wl,-G. The following line is correct: 8250 shared_flag='-G' 8251 else 8252 if test "$aix_use_runtimelinking" = yes; then 8253 shared_flag='${wl}-G' 8254 else 8255 shared_flag='${wl}-bM:SRE' 8256 fi 8257 fi 8258 fi 8259 8260 export_dynamic_flag_spec='${wl}-bexpall' 8261 # It seems that -bexpall does not export symbols beginning with 8262 # underscore (_), so it is better to generate a list of symbols to export. 8263 always_export_symbols=yes 8264 if test "$aix_use_runtimelinking" = yes; then 8265 # Warning - without using the other runtime loading flags (-brtl), 8266 # -berok will link without error, but may produce a broken library. 8267 allow_undefined_flag='-berok' 8268 # Determine the default libpath from the value encoded in an 8269 # empty executable. 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271/* end confdefs.h. */ 8272 8273int 8274main () 8275{ 8276 8277 ; 8278 return 0; 8279} 8280_ACEOF 8281if ac_fn_c_try_link "$LINENO"; then : 8282 8283lt_aix_libpath_sed=' 8284 /Import File Strings/,/^$/ { 8285 /^0/ { 8286 s/^0 *\(.*\)$/\1/ 8287 p 8288 } 8289 }' 8290aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8291# Check for a 64-bit object if we didn't find anything. 8292if test -z "$aix_libpath"; then 8293 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8294fi 8295fi 8296rm -f core conftest.err conftest.$ac_objext \ 8297 conftest$ac_exeext conftest.$ac_ext 8298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8299 8300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8301 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8302 else 8303 if test "$host_cpu" = ia64; then 8304 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8305 allow_undefined_flag="-z nodefs" 8306 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8307 else 8308 # Determine the default libpath from the value encoded in an 8309 # empty executable. 8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312 8313int 8314main () 8315{ 8316 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321if ac_fn_c_try_link "$LINENO"; then : 8322 8323lt_aix_libpath_sed=' 8324 /Import File Strings/,/^$/ { 8325 /^0/ { 8326 s/^0 *\(.*\)$/\1/ 8327 p 8328 } 8329 }' 8330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8331# Check for a 64-bit object if we didn't find anything. 8332if test -z "$aix_libpath"; then 8333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8334fi 8335fi 8336rm -f core conftest.err conftest.$ac_objext \ 8337 conftest$ac_exeext conftest.$ac_ext 8338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8339 8340 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8341 # Warning - without using the other run time loading flags, 8342 # -berok will link without error, but may produce a broken library. 8343 no_undefined_flag=' ${wl}-bernotok' 8344 allow_undefined_flag=' ${wl}-berok' 8345 # Exported symbols can be pulled into shared objects from archives 8346 whole_archive_flag_spec='$convenience' 8347 archive_cmds_need_lc=yes 8348 # This is similar to how AIX traditionally builds its shared libraries. 8349 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8350 fi 8351 fi 8352 ;; 8353 8354 amigaos*) 8355 case $host_cpu in 8356 powerpc) 8357 # see comment about AmigaOS4 .so support 8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8359 archive_expsym_cmds='' 8360 ;; 8361 m68k) 8362 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8363 hardcode_libdir_flag_spec='-L$libdir' 8364 hardcode_minus_L=yes 8365 ;; 8366 esac 8367 ;; 8368 8369 bsdi[45]*) 8370 export_dynamic_flag_spec=-rdynamic 8371 ;; 8372 8373 cygwin* | mingw* | pw32* | cegcc*) 8374 # When not using gcc, we currently assume that we are using 8375 # Microsoft Visual C++. 8376 # hardcode_libdir_flag_spec is actually meaningless, as there is 8377 # no search path for DLLs. 8378 hardcode_libdir_flag_spec=' ' 8379 allow_undefined_flag=unsupported 8380 # Tell ltmain to make .lib files, not .a files. 8381 libext=lib 8382 # Tell ltmain to make .dll files, not .so files. 8383 shrext_cmds=".dll" 8384 # FIXME: Setting linknames here is a bad hack. 8385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8386 # The linker will automatically build a .lib file if we build a DLL. 8387 old_archive_from_new_cmds='true' 8388 # FIXME: Should let the user specify the lib program. 8389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8390 fix_srcfile_path='`cygpath -w "$srcfile"`' 8391 enable_shared_with_static_runtimes=yes 8392 ;; 8393 8394 darwin* | rhapsody*) 8395 8396 8397 archive_cmds_need_lc=no 8398 hardcode_direct=no 8399 hardcode_automatic=yes 8400 hardcode_shlibpath_var=unsupported 8401 whole_archive_flag_spec='' 8402 link_all_deplibs=yes 8403 allow_undefined_flag="$_lt_dar_allow_undefined" 8404 case $cc_basename in 8405 ifort*) _lt_dar_can_shared=yes ;; 8406 *) _lt_dar_can_shared=$GCC ;; 8407 esac 8408 if test "$_lt_dar_can_shared" = "yes"; then 8409 output_verbose_link_cmd=echo 8410 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8411 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8412 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8413 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8414 8415 else 8416 ld_shlibs=no 8417 fi 8418 8419 ;; 8420 8421 dgux*) 8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8423 hardcode_libdir_flag_spec='-L$libdir' 8424 hardcode_shlibpath_var=no 8425 ;; 8426 8427 freebsd1*) 8428 ld_shlibs=no 8429 ;; 8430 8431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8432 # support. Future versions do this automatically, but an explicit c++rt0.o 8433 # does not break anything, and helps significantly (at the cost of a little 8434 # extra space). 8435 freebsd2.2*) 8436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8437 hardcode_libdir_flag_spec='-R$libdir' 8438 hardcode_direct=yes 8439 hardcode_shlibpath_var=no 8440 ;; 8441 8442 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8443 freebsd2*) 8444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8445 hardcode_direct=yes 8446 hardcode_minus_L=yes 8447 hardcode_shlibpath_var=no 8448 ;; 8449 8450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8451 freebsd* | dragonfly*) 8452 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8453 hardcode_libdir_flag_spec='-R$libdir' 8454 hardcode_direct=yes 8455 hardcode_shlibpath_var=no 8456 ;; 8457 8458 hpux9*) 8459 if test "$GCC" = yes; then 8460 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8461 else 8462 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8463 fi 8464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8465 hardcode_libdir_separator=: 8466 hardcode_direct=yes 8467 8468 # hardcode_minus_L: Not really in the search PATH, 8469 # but as the default location of the library. 8470 hardcode_minus_L=yes 8471 export_dynamic_flag_spec='${wl}-E' 8472 ;; 8473 8474 hpux10*) 8475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8476 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8477 else 8478 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8479 fi 8480 if test "$with_gnu_ld" = no; then 8481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8482 hardcode_libdir_flag_spec_ld='+b $libdir' 8483 hardcode_libdir_separator=: 8484 hardcode_direct=yes 8485 hardcode_direct_absolute=yes 8486 export_dynamic_flag_spec='${wl}-E' 8487 # hardcode_minus_L: Not really in the search PATH, 8488 # but as the default location of the library. 8489 hardcode_minus_L=yes 8490 fi 8491 ;; 8492 8493 hpux11*) 8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8495 case $host_cpu in 8496 hppa*64*) 8497 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8498 ;; 8499 ia64*) 8500 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8501 ;; 8502 *) 8503 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8504 ;; 8505 esac 8506 else 8507 case $host_cpu in 8508 hppa*64*) 8509 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8510 ;; 8511 ia64*) 8512 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8513 ;; 8514 *) 8515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8516 ;; 8517 esac 8518 fi 8519 if test "$with_gnu_ld" = no; then 8520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8521 hardcode_libdir_separator=: 8522 8523 case $host_cpu in 8524 hppa*64*|ia64*) 8525 hardcode_direct=no 8526 hardcode_shlibpath_var=no 8527 ;; 8528 *) 8529 hardcode_direct=yes 8530 hardcode_direct_absolute=yes 8531 export_dynamic_flag_spec='${wl}-E' 8532 8533 # hardcode_minus_L: Not really in the search PATH, 8534 # but as the default location of the library. 8535 hardcode_minus_L=yes 8536 ;; 8537 esac 8538 fi 8539 ;; 8540 8541 irix5* | irix6* | nonstopux*) 8542 if test "$GCC" = yes; then 8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8544 # Try to use the -exported_symbol ld option, if it does not 8545 # work, assume that -exports_file does not work either and 8546 # implicitly export all symbols. 8547 save_LDFLAGS="$LDFLAGS" 8548 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int foo(void) {} 8552_ACEOF 8553if ac_fn_c_try_link "$LINENO"; then : 8554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8555 8556fi 8557rm -f core conftest.err conftest.$ac_objext \ 8558 conftest$ac_exeext conftest.$ac_ext 8559 LDFLAGS="$save_LDFLAGS" 8560 else 8561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8563 fi 8564 archive_cmds_need_lc='no' 8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8566 hardcode_libdir_separator=: 8567 inherit_rpath=yes 8568 link_all_deplibs=yes 8569 ;; 8570 8571 netbsd* | netbsdelf*-gnu) 8572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8574 else 8575 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8576 fi 8577 hardcode_libdir_flag_spec='-R$libdir' 8578 hardcode_direct=yes 8579 hardcode_shlibpath_var=no 8580 ;; 8581 8582 newsos6) 8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8584 hardcode_direct=yes 8585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8586 hardcode_libdir_separator=: 8587 hardcode_shlibpath_var=no 8588 ;; 8589 8590 *nto* | *qnx*) 8591 ;; 8592 8593 openbsd*) 8594 if test -f /usr/libexec/ld.so; then 8595 hardcode_direct=yes 8596 hardcode_shlibpath_var=no 8597 hardcode_direct_absolute=yes 8598 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8600 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8602 export_dynamic_flag_spec='${wl}-E' 8603 else 8604 case $host_os in 8605 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8607 hardcode_libdir_flag_spec='-R$libdir' 8608 ;; 8609 *) 8610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8611 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8612 ;; 8613 esac 8614 fi 8615 else 8616 ld_shlibs=no 8617 fi 8618 ;; 8619 8620 os2*) 8621 hardcode_libdir_flag_spec='-L$libdir' 8622 hardcode_minus_L=yes 8623 allow_undefined_flag=unsupported 8624 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 8625 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8626 ;; 8627 8628 osf3*) 8629 if test "$GCC" = yes; then 8630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8631 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8632 else 8633 allow_undefined_flag=' -expect_unresolved \*' 8634 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8635 fi 8636 archive_cmds_need_lc='no' 8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8638 hardcode_libdir_separator=: 8639 ;; 8640 8641 osf4* | osf5*) # as osf3* with the addition of -msym flag 8642 if test "$GCC" = yes; then 8643 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8644 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8646 else 8647 allow_undefined_flag=' -expect_unresolved \*' 8648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8649 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8650 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8651 8652 # Both c and cxx compiler support -rpath directly 8653 hardcode_libdir_flag_spec='-rpath $libdir' 8654 fi 8655 archive_cmds_need_lc='no' 8656 hardcode_libdir_separator=: 8657 ;; 8658 8659 solaris*) 8660 no_undefined_flag=' -z defs' 8661 if test "$GCC" = yes; then 8662 wlarc='${wl}' 8663 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8665 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8666 else 8667 case `$CC -V 2>&1` in 8668 *"Compilers 5.0"*) 8669 wlarc='' 8670 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8672 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8673 ;; 8674 *) 8675 wlarc='${wl}' 8676 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8678 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8679 ;; 8680 esac 8681 fi 8682 hardcode_libdir_flag_spec='-R$libdir' 8683 hardcode_shlibpath_var=no 8684 case $host_os in 8685 solaris2.[0-5] | solaris2.[0-5].*) ;; 8686 *) 8687 # The compiler driver will combine and reorder linker options, 8688 # but understands `-z linker_flag'. GCC discards it without `$wl', 8689 # but is careful enough not to reorder. 8690 # Supported since Solaris 2.6 (maybe 2.5.1?) 8691 if test "$GCC" = yes; then 8692 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8693 else 8694 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8695 fi 8696 ;; 8697 esac 8698 link_all_deplibs=yes 8699 ;; 8700 8701 sunos4*) 8702 if test "x$host_vendor" = xsequent; then 8703 # Use $CC to link under sequent, because it throws in some extra .o 8704 # files that make .init and .fini sections work. 8705 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8706 else 8707 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8708 fi 8709 hardcode_libdir_flag_spec='-L$libdir' 8710 hardcode_direct=yes 8711 hardcode_minus_L=yes 8712 hardcode_shlibpath_var=no 8713 ;; 8714 8715 sysv4) 8716 case $host_vendor in 8717 sni) 8718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8719 hardcode_direct=yes # is this really true??? 8720 ;; 8721 siemens) 8722 ## LD is ld it makes a PLAMLIB 8723 ## CC just makes a GrossModule. 8724 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8725 reload_cmds='$CC -r -o $output$reload_objs' 8726 hardcode_direct=no 8727 ;; 8728 motorola) 8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8730 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8731 ;; 8732 esac 8733 runpath_var='LD_RUN_PATH' 8734 hardcode_shlibpath_var=no 8735 ;; 8736 8737 sysv4.3*) 8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8739 hardcode_shlibpath_var=no 8740 export_dynamic_flag_spec='-Bexport' 8741 ;; 8742 8743 sysv4*MP*) 8744 if test -d /usr/nec; then 8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8746 hardcode_shlibpath_var=no 8747 runpath_var=LD_RUN_PATH 8748 hardcode_runpath_var=yes 8749 ld_shlibs=yes 8750 fi 8751 ;; 8752 8753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8754 no_undefined_flag='${wl}-z,text' 8755 archive_cmds_need_lc=no 8756 hardcode_shlibpath_var=no 8757 runpath_var='LD_RUN_PATH' 8758 8759 if test "$GCC" = yes; then 8760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8762 else 8763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8765 fi 8766 ;; 8767 8768 sysv5* | sco3.2v5* | sco5v6*) 8769 # Note: We can NOT use -z defs as we might desire, because we do not 8770 # link with -lc, and that would cause any symbols used from libc to 8771 # always be unresolved, which means just about no library would 8772 # ever link correctly. If we're not using GNU ld we use -z text 8773 # though, which does catch some bad symbols but isn't as heavy-handed 8774 # as -z defs. 8775 no_undefined_flag='${wl}-z,text' 8776 allow_undefined_flag='${wl}-z,nodefs' 8777 archive_cmds_need_lc=no 8778 hardcode_shlibpath_var=no 8779 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8780 hardcode_libdir_separator=':' 8781 link_all_deplibs=yes 8782 export_dynamic_flag_spec='${wl}-Bexport' 8783 runpath_var='LD_RUN_PATH' 8784 8785 if test "$GCC" = yes; then 8786 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8788 else 8789 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8791 fi 8792 ;; 8793 8794 uts4*) 8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8796 hardcode_libdir_flag_spec='-L$libdir' 8797 hardcode_shlibpath_var=no 8798 ;; 8799 8800 *) 8801 ld_shlibs=no 8802 ;; 8803 esac 8804 8805 if test x$host_vendor = xsni; then 8806 case $host in 8807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8808 export_dynamic_flag_spec='${wl}-Blargedynsym' 8809 ;; 8810 esac 8811 fi 8812 fi 8813 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8815$as_echo "$ld_shlibs" >&6; } 8816test "$ld_shlibs" = no && can_build_shared=no 8817 8818with_gnu_ld=$with_gnu_ld 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834# 8835# Do we need to explicitly link libc? 8836# 8837case "x$archive_cmds_need_lc" in 8838x|xyes) 8839 # Assume -lc should be added 8840 archive_cmds_need_lc=yes 8841 8842 if test "$enable_shared" = yes && test "$GCC" = yes; then 8843 case $archive_cmds in 8844 *'~'*) 8845 # FIXME: we may have to deal with multi-command sequences. 8846 ;; 8847 '$CC '*) 8848 # Test whether the compiler implicitly links with -lc since on some 8849 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8850 # to ld, don't add -lc before -lgcc. 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8852$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8853 $RM conftest* 8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8855 8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8857 (eval $ac_compile) 2>&5 8858 ac_status=$? 8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8860 test $ac_status = 0; } 2>conftest.err; then 8861 soname=conftest 8862 lib=conftest 8863 libobjs=conftest.$ac_objext 8864 deplibs= 8865 wl=$lt_prog_compiler_wl 8866 pic_flag=$lt_prog_compiler_pic 8867 compiler_flags=-v 8868 linker_flags=-v 8869 verstring= 8870 output_objdir=. 8871 libname=conftest 8872 lt_save_allow_undefined_flag=$allow_undefined_flag 8873 allow_undefined_flag= 8874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8875 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8876 ac_status=$? 8877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8878 test $ac_status = 0; } 8879 then 8880 archive_cmds_need_lc=no 8881 else 8882 archive_cmds_need_lc=yes 8883 fi 8884 allow_undefined_flag=$lt_save_allow_undefined_flag 8885 else 8886 cat conftest.err 1>&5 8887 fi 8888 $RM conftest* 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8890$as_echo "$archive_cmds_need_lc" >&6; } 8891 ;; 8892 esac 8893 fi 8894 ;; 8895esac 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9054$as_echo_n "checking dynamic linker characteristics... " >&6; } 9055 9056if test "$GCC" = yes; then 9057 case $host_os in 9058 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9059 *) lt_awk_arg="/^libraries:/" ;; 9060 esac 9061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9062 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9063 # if the path contains ";" then we assume it to be the separator 9064 # otherwise default to the standard path separator (i.e. ":") - it is 9065 # assumed that no part of a normal pathname contains ";" but that should 9066 # okay in the real world where ";" in dirpaths is itself problematic. 9067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9068 else 9069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9070 fi 9071 # Ok, now we have the path, separated by spaces, we can step through it 9072 # and add multilib dir if necessary. 9073 lt_tmp_lt_search_path_spec= 9074 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9075 for lt_sys_path in $lt_search_path_spec; do 9076 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9078 else 9079 test -d "$lt_sys_path" && \ 9080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9081 fi 9082 done 9083 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9084BEGIN {RS=" "; FS="/|\n";} { 9085 lt_foo=""; 9086 lt_count=0; 9087 for (lt_i = NF; lt_i > 0; lt_i--) { 9088 if ($lt_i != "" && $lt_i != ".") { 9089 if ($lt_i == "..") { 9090 lt_count++; 9091 } else { 9092 if (lt_count == 0) { 9093 lt_foo="/" $lt_i lt_foo; 9094 } else { 9095 lt_count--; 9096 } 9097 } 9098 } 9099 } 9100 if (lt_foo != "") { lt_freq[lt_foo]++; } 9101 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9102}'` 9103 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9104else 9105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9106fi 9107library_names_spec= 9108libname_spec='lib$name' 9109soname_spec= 9110shrext_cmds=".so" 9111postinstall_cmds= 9112postuninstall_cmds= 9113finish_cmds= 9114finish_eval= 9115shlibpath_var= 9116shlibpath_overrides_runpath=unknown 9117version_type=none 9118dynamic_linker="$host_os ld.so" 9119sys_lib_dlsearch_path_spec="/lib /usr/lib" 9120need_lib_prefix=unknown 9121hardcode_into_libs=no 9122 9123# when you set need_version to no, make sure it does not cause -set_version 9124# flags to be left without arguments 9125need_version=unknown 9126 9127case $host_os in 9128aix3*) 9129 version_type=linux 9130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9131 shlibpath_var=LIBPATH 9132 9133 # AIX 3 has no versioning support, so we append a major version to the name. 9134 soname_spec='${libname}${release}${shared_ext}$major' 9135 ;; 9136 9137aix[4-9]*) 9138 version_type=linux 9139 need_lib_prefix=no 9140 need_version=no 9141 hardcode_into_libs=yes 9142 if test "$host_cpu" = ia64; then 9143 # AIX 5 supports IA64 9144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9145 shlibpath_var=LD_LIBRARY_PATH 9146 else 9147 # With GCC up to 2.95.x, collect2 would create an import file 9148 # for dependence libraries. The import file would start with 9149 # the line `#! .'. This would cause the generated library to 9150 # depend on `.', always an invalid library. This was fixed in 9151 # development snapshots of GCC prior to 3.0. 9152 case $host_os in 9153 aix4 | aix4.[01] | aix4.[01].*) 9154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9155 echo ' yes ' 9156 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9157 : 9158 else 9159 can_build_shared=no 9160 fi 9161 ;; 9162 esac 9163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9164 # soname into executable. Probably we can add versioning support to 9165 # collect2, so additional links can be useful in future. 9166 if test "$aix_use_runtimelinking" = yes; then 9167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9168 # instead of lib<name>.a to let people know that these are not 9169 # typical AIX shared libraries. 9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9171 else 9172 # We preserve .a as extension for shared libraries through AIX4.2 9173 # and later when we are not doing run time linking. 9174 library_names_spec='${libname}${release}.a $libname.a' 9175 soname_spec='${libname}${release}${shared_ext}$major' 9176 fi 9177 shlibpath_var=LIBPATH 9178 fi 9179 ;; 9180 9181amigaos*) 9182 case $host_cpu in 9183 powerpc) 9184 # Since July 2007 AmigaOS4 officially supports .so libraries. 9185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9187 ;; 9188 m68k) 9189 library_names_spec='$libname.ixlibrary $libname.a' 9190 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9191 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9192 ;; 9193 esac 9194 ;; 9195 9196beos*) 9197 library_names_spec='${libname}${shared_ext}' 9198 dynamic_linker="$host_os ld.so" 9199 shlibpath_var=LIBRARY_PATH 9200 ;; 9201 9202bsdi[45]*) 9203 version_type=linux 9204 need_version=no 9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9206 soname_spec='${libname}${release}${shared_ext}$major' 9207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9208 shlibpath_var=LD_LIBRARY_PATH 9209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9211 # the default ld.so.conf also contains /usr/contrib/lib and 9212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9213 # libtool to hard-code these into programs 9214 ;; 9215 9216cygwin* | mingw* | pw32* | cegcc*) 9217 version_type=windows 9218 shrext_cmds=".dll" 9219 need_version=no 9220 need_lib_prefix=no 9221 9222 case $GCC,$host_os in 9223 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9224 library_names_spec='$libname.dll.a' 9225 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9226 postinstall_cmds='base_file=`basename \${file}`~ 9227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9228 dldir=$destdir/`dirname \$dlpath`~ 9229 test -d \$dldir || mkdir -p \$dldir~ 9230 $install_prog $dir/$dlname \$dldir/$dlname~ 9231 chmod a+x \$dldir/$dlname~ 9232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9234 fi' 9235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9236 dlpath=$dir/\$dldll~ 9237 $RM \$dlpath' 9238 shlibpath_overrides_runpath=yes 9239 9240 case $host_os in 9241 cygwin*) 9242 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9245 ;; 9246 mingw* | cegcc*) 9247 # MinGW DLLs use traditional 'lib' prefix 9248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9249 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9250 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9251 # It is most probably a Windows format PATH printed by 9252 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9253 # path with ; separators, and with drive letters. We can handle the 9254 # drive letters (cygwin fileutils understands them), so leave them, 9255 # especially as we might pass files found there to a mingw objdump, 9256 # which wouldn't understand a cygwinified path. Ahh. 9257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9258 else 9259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9260 fi 9261 ;; 9262 pw32*) 9263 # pw32 DLLs use 'pw' prefix rather than 'lib' 9264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9265 ;; 9266 esac 9267 ;; 9268 9269 *) 9270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9271 ;; 9272 esac 9273 dynamic_linker='Win32 ld.exe' 9274 # FIXME: first we should search . and the directory the executable is in 9275 shlibpath_var=PATH 9276 ;; 9277 9278darwin* | rhapsody*) 9279 dynamic_linker="$host_os dyld" 9280 version_type=darwin 9281 need_lib_prefix=no 9282 need_version=no 9283 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9284 soname_spec='${libname}${release}${major}$shared_ext' 9285 shlibpath_overrides_runpath=yes 9286 shlibpath_var=DYLD_LIBRARY_PATH 9287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9288 9289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9291 ;; 9292 9293dgux*) 9294 version_type=linux 9295 need_lib_prefix=no 9296 need_version=no 9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9298 soname_spec='${libname}${release}${shared_ext}$major' 9299 shlibpath_var=LD_LIBRARY_PATH 9300 ;; 9301 9302freebsd1*) 9303 dynamic_linker=no 9304 ;; 9305 9306freebsd* | dragonfly*) 9307 # DragonFly does not have aout. When/if they implement a new 9308 # versioning mechanism, adjust this. 9309 if test -x /usr/bin/objformat; then 9310 objformat=`/usr/bin/objformat` 9311 else 9312 case $host_os in 9313 freebsd[123]*) objformat=aout ;; 9314 *) objformat=elf ;; 9315 esac 9316 fi 9317 version_type=freebsd-$objformat 9318 case $version_type in 9319 freebsd-elf*) 9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9321 need_version=no 9322 need_lib_prefix=no 9323 ;; 9324 freebsd-*) 9325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9326 need_version=yes 9327 ;; 9328 esac 9329 shlibpath_var=LD_LIBRARY_PATH 9330 case $host_os in 9331 freebsd2*) 9332 shlibpath_overrides_runpath=yes 9333 ;; 9334 freebsd3.[01]* | freebsdelf3.[01]*) 9335 shlibpath_overrides_runpath=yes 9336 hardcode_into_libs=yes 9337 ;; 9338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9340 shlibpath_overrides_runpath=no 9341 hardcode_into_libs=yes 9342 ;; 9343 *) # from 4.6 on, and DragonFly 9344 shlibpath_overrides_runpath=yes 9345 hardcode_into_libs=yes 9346 ;; 9347 esac 9348 ;; 9349 9350gnu*) 9351 version_type=linux 9352 need_lib_prefix=no 9353 need_version=no 9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9355 soname_spec='${libname}${release}${shared_ext}$major' 9356 shlibpath_var=LD_LIBRARY_PATH 9357 hardcode_into_libs=yes 9358 ;; 9359 9360hpux9* | hpux10* | hpux11*) 9361 # Give a soname corresponding to the major version so that dld.sl refuses to 9362 # link against other versions. 9363 version_type=sunos 9364 need_lib_prefix=no 9365 need_version=no 9366 case $host_cpu in 9367 ia64*) 9368 shrext_cmds='.so' 9369 hardcode_into_libs=yes 9370 dynamic_linker="$host_os dld.so" 9371 shlibpath_var=LD_LIBRARY_PATH 9372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9374 soname_spec='${libname}${release}${shared_ext}$major' 9375 if test "X$HPUX_IA64_MODE" = X32; then 9376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9377 else 9378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9379 fi 9380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9381 ;; 9382 hppa*64*) 9383 shrext_cmds='.sl' 9384 hardcode_into_libs=yes 9385 dynamic_linker="$host_os dld.sl" 9386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9389 soname_spec='${libname}${release}${shared_ext}$major' 9390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9392 ;; 9393 *) 9394 shrext_cmds='.sl' 9395 dynamic_linker="$host_os dld.sl" 9396 shlibpath_var=SHLIB_PATH 9397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9399 soname_spec='${libname}${release}${shared_ext}$major' 9400 ;; 9401 esac 9402 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9403 postinstall_cmds='chmod 555 $lib' 9404 ;; 9405 9406interix[3-9]*) 9407 version_type=linux 9408 need_lib_prefix=no 9409 need_version=no 9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9411 soname_spec='${libname}${release}${shared_ext}$major' 9412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9413 shlibpath_var=LD_LIBRARY_PATH 9414 shlibpath_overrides_runpath=no 9415 hardcode_into_libs=yes 9416 ;; 9417 9418irix5* | irix6* | nonstopux*) 9419 case $host_os in 9420 nonstopux*) version_type=nonstopux ;; 9421 *) 9422 if test "$lt_cv_prog_gnu_ld" = yes; then 9423 version_type=linux 9424 else 9425 version_type=irix 9426 fi ;; 9427 esac 9428 need_lib_prefix=no 9429 need_version=no 9430 soname_spec='${libname}${release}${shared_ext}$major' 9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9432 case $host_os in 9433 irix5* | nonstopux*) 9434 libsuff= shlibsuff= 9435 ;; 9436 *) 9437 case $LD in # libtool.m4 will add one of these switches to LD 9438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9439 libsuff= shlibsuff= libmagic=32-bit;; 9440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9441 libsuff=32 shlibsuff=N32 libmagic=N32;; 9442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9443 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9444 *) libsuff= shlibsuff= libmagic=never-match;; 9445 esac 9446 ;; 9447 esac 9448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9449 shlibpath_overrides_runpath=no 9450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9452 hardcode_into_libs=yes 9453 ;; 9454 9455# No shared lib support for Linux oldld, aout, or coff. 9456linux*oldld* | linux*aout* | linux*coff*) 9457 dynamic_linker=no 9458 ;; 9459 9460# This must be Linux ELF. 9461linux* | k*bsd*-gnu | kopensolaris*-gnu) 9462 version_type=linux 9463 need_lib_prefix=no 9464 need_version=no 9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9466 soname_spec='${libname}${release}${shared_ext}$major' 9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9468 shlibpath_var=LD_LIBRARY_PATH 9469 shlibpath_overrides_runpath=no 9470 # Some binutils ld are patched to set DT_RUNPATH 9471 save_LDFLAGS=$LDFLAGS 9472 save_libdir=$libdir 9473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477 9478int 9479main () 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9488 shlibpath_overrides_runpath=yes 9489fi 9490fi 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext conftest.$ac_ext 9493 LDFLAGS=$save_LDFLAGS 9494 libdir=$save_libdir 9495 9496 # This implies no fast_install, which is unacceptable. 9497 # Some rework will be needed to allow for fast_install 9498 # before this can be enabled. 9499 hardcode_into_libs=yes 9500 9501 # Append ld.so.conf contents to the search path 9502 if test -f /etc/ld.so.conf; then 9503 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9504 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9505 fi 9506 9507 # We used to test for /lib/ld.so.1 and disable shared libraries on 9508 # powerpc, because MkLinux only supported shared libraries with the 9509 # GNU dynamic linker. Since this was broken with cross compilers, 9510 # most powerpc-linux boxes support dynamic linking these days and 9511 # people can always --disable-shared, the test was removed, and we 9512 # assume the GNU/Linux dynamic linker is in use. 9513 dynamic_linker='GNU/Linux ld.so' 9514 ;; 9515 9516netbsdelf*-gnu) 9517 version_type=linux 9518 need_lib_prefix=no 9519 need_version=no 9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9521 soname_spec='${libname}${release}${shared_ext}$major' 9522 shlibpath_var=LD_LIBRARY_PATH 9523 shlibpath_overrides_runpath=no 9524 hardcode_into_libs=yes 9525 dynamic_linker='NetBSD ld.elf_so' 9526 ;; 9527 9528netbsd*) 9529 version_type=sunos 9530 need_lib_prefix=no 9531 need_version=no 9532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9535 dynamic_linker='NetBSD (a.out) ld.so' 9536 else 9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9538 soname_spec='${libname}${release}${shared_ext}$major' 9539 dynamic_linker='NetBSD ld.elf_so' 9540 fi 9541 shlibpath_var=LD_LIBRARY_PATH 9542 shlibpath_overrides_runpath=yes 9543 hardcode_into_libs=yes 9544 ;; 9545 9546newsos6) 9547 version_type=linux 9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9549 shlibpath_var=LD_LIBRARY_PATH 9550 shlibpath_overrides_runpath=yes 9551 ;; 9552 9553*nto* | *qnx*) 9554 version_type=qnx 9555 need_lib_prefix=no 9556 need_version=no 9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9558 soname_spec='${libname}${release}${shared_ext}$major' 9559 shlibpath_var=LD_LIBRARY_PATH 9560 shlibpath_overrides_runpath=no 9561 hardcode_into_libs=yes 9562 dynamic_linker='ldqnx.so' 9563 ;; 9564 9565openbsd*) 9566 version_type=sunos 9567 sys_lib_dlsearch_path_spec="/usr/lib" 9568 need_lib_prefix=no 9569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9570 case $host_os in 9571 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9572 *) need_version=no ;; 9573 esac 9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9576 shlibpath_var=LD_LIBRARY_PATH 9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9578 case $host_os in 9579 openbsd2.[89] | openbsd2.[89].*) 9580 shlibpath_overrides_runpath=no 9581 ;; 9582 *) 9583 shlibpath_overrides_runpath=yes 9584 ;; 9585 esac 9586 else 9587 shlibpath_overrides_runpath=yes 9588 fi 9589 ;; 9590 9591os2*) 9592 libname_spec='$name' 9593 shrext_cmds=".dll" 9594 need_lib_prefix=no 9595 library_names_spec='$libname${shared_ext} $libname.a' 9596 dynamic_linker='OS/2 ld.exe' 9597 shlibpath_var=LIBPATH 9598 ;; 9599 9600osf3* | osf4* | osf5*) 9601 version_type=osf 9602 need_lib_prefix=no 9603 need_version=no 9604 soname_spec='${libname}${release}${shared_ext}$major' 9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9606 shlibpath_var=LD_LIBRARY_PATH 9607 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9608 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9609 ;; 9610 9611rdos*) 9612 dynamic_linker=no 9613 ;; 9614 9615solaris*) 9616 version_type=linux 9617 need_lib_prefix=no 9618 need_version=no 9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9620 soname_spec='${libname}${release}${shared_ext}$major' 9621 shlibpath_var=LD_LIBRARY_PATH 9622 shlibpath_overrides_runpath=yes 9623 hardcode_into_libs=yes 9624 # ldd complains unless libraries are executable 9625 postinstall_cmds='chmod +x $lib' 9626 ;; 9627 9628sunos4*) 9629 version_type=sunos 9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9632 shlibpath_var=LD_LIBRARY_PATH 9633 shlibpath_overrides_runpath=yes 9634 if test "$with_gnu_ld" = yes; then 9635 need_lib_prefix=no 9636 fi 9637 need_version=yes 9638 ;; 9639 9640sysv4 | sysv4.3*) 9641 version_type=linux 9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9643 soname_spec='${libname}${release}${shared_ext}$major' 9644 shlibpath_var=LD_LIBRARY_PATH 9645 case $host_vendor in 9646 sni) 9647 shlibpath_overrides_runpath=no 9648 need_lib_prefix=no 9649 runpath_var=LD_RUN_PATH 9650 ;; 9651 siemens) 9652 need_lib_prefix=no 9653 ;; 9654 motorola) 9655 need_lib_prefix=no 9656 need_version=no 9657 shlibpath_overrides_runpath=no 9658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9659 ;; 9660 esac 9661 ;; 9662 9663sysv4*MP*) 9664 if test -d /usr/nec ;then 9665 version_type=linux 9666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9667 soname_spec='$libname${shared_ext}.$major' 9668 shlibpath_var=LD_LIBRARY_PATH 9669 fi 9670 ;; 9671 9672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9673 version_type=freebsd-elf 9674 need_lib_prefix=no 9675 need_version=no 9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9677 soname_spec='${libname}${release}${shared_ext}$major' 9678 shlibpath_var=LD_LIBRARY_PATH 9679 shlibpath_overrides_runpath=yes 9680 hardcode_into_libs=yes 9681 if test "$with_gnu_ld" = yes; then 9682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9683 else 9684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9685 case $host_os in 9686 sco3.2v5*) 9687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9688 ;; 9689 esac 9690 fi 9691 sys_lib_dlsearch_path_spec='/usr/lib' 9692 ;; 9693 9694tpf*) 9695 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9696 version_type=linux 9697 need_lib_prefix=no 9698 need_version=no 9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9700 shlibpath_var=LD_LIBRARY_PATH 9701 shlibpath_overrides_runpath=no 9702 hardcode_into_libs=yes 9703 ;; 9704 9705uts4*) 9706 version_type=linux 9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9708 soname_spec='${libname}${release}${shared_ext}$major' 9709 shlibpath_var=LD_LIBRARY_PATH 9710 ;; 9711 9712*) 9713 dynamic_linker=no 9714 ;; 9715esac 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9717$as_echo "$dynamic_linker" >&6; } 9718test "$dynamic_linker" = no && can_build_shared=no 9719 9720variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9721if test "$GCC" = yes; then 9722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9723fi 9724 9725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9727fi 9728if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9730fi 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9819$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9820hardcode_action= 9821if test -n "$hardcode_libdir_flag_spec" || 9822 test -n "$runpath_var" || 9823 test "X$hardcode_automatic" = "Xyes" ; then 9824 9825 # We can hardcode non-existent directories. 9826 if test "$hardcode_direct" != no && 9827 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9828 # have to relink, otherwise we might link with an installed library 9829 # when we should be linking with a yet-to-be-installed one 9830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9831 test "$hardcode_minus_L" != no; then 9832 # Linking always hardcodes the temporary library directory. 9833 hardcode_action=relink 9834 else 9835 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9836 hardcode_action=immediate 9837 fi 9838else 9839 # We cannot hardcode anything, or else we can only hardcode existing 9840 # directories. 9841 hardcode_action=unsupported 9842fi 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9844$as_echo "$hardcode_action" >&6; } 9845 9846if test "$hardcode_action" = relink || 9847 test "$inherit_rpath" = yes; then 9848 # Fast installation is not supported 9849 enable_fast_install=no 9850elif test "$shlibpath_overrides_runpath" = yes || 9851 test "$enable_shared" = no; then 9852 # Fast installation is not necessary 9853 enable_fast_install=needless 9854fi 9855 9856 9857 9858 9859 9860 9861 if test "x$enable_dlopen" != xyes; then 9862 enable_dlopen=unknown 9863 enable_dlopen_self=unknown 9864 enable_dlopen_self_static=unknown 9865else 9866 lt_cv_dlopen=no 9867 lt_cv_dlopen_libs= 9868 9869 case $host_os in 9870 beos*) 9871 lt_cv_dlopen="load_add_on" 9872 lt_cv_dlopen_libs= 9873 lt_cv_dlopen_self=yes 9874 ;; 9875 9876 mingw* | pw32* | cegcc*) 9877 lt_cv_dlopen="LoadLibrary" 9878 lt_cv_dlopen_libs= 9879 ;; 9880 9881 cygwin*) 9882 lt_cv_dlopen="dlopen" 9883 lt_cv_dlopen_libs= 9884 ;; 9885 9886 darwin*) 9887 # if libdl is installed we need to link against it 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9889$as_echo_n "checking for dlopen in -ldl... " >&6; } 9890if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 ac_check_lib_save_LIBS=$LIBS 9894LIBS="-ldl $LIBS" 9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897 9898/* Override any GCC internal prototype to avoid an error. 9899 Use char because int might match the return type of a GCC 9900 builtin and then its argument prototype would still apply. */ 9901#ifdef __cplusplus 9902extern "C" 9903#endif 9904char dlopen (); 9905int 9906main () 9907{ 9908return dlopen (); 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_link "$LINENO"; then : 9914 ac_cv_lib_dl_dlopen=yes 9915else 9916 ac_cv_lib_dl_dlopen=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext conftest.$ac_ext 9920LIBS=$ac_check_lib_save_LIBS 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9923$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9924if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9926else 9927 9928 lt_cv_dlopen="dyld" 9929 lt_cv_dlopen_libs= 9930 lt_cv_dlopen_self=yes 9931 9932fi 9933 9934 ;; 9935 9936 *) 9937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9938if test "x$ac_cv_func_shl_load" = x""yes; then : 9939 lt_cv_dlopen="shl_load" 9940else 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9942$as_echo_n "checking for shl_load in -ldld... " >&6; } 9943if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 ac_check_lib_save_LIBS=$LIBS 9947LIBS="-ldld $LIBS" 9948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950 9951/* Override any GCC internal prototype to avoid an error. 9952 Use char because int might match the return type of a GCC 9953 builtin and then its argument prototype would still apply. */ 9954#ifdef __cplusplus 9955extern "C" 9956#endif 9957char shl_load (); 9958int 9959main () 9960{ 9961return shl_load (); 9962 ; 9963 return 0; 9964} 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO"; then : 9967 ac_cv_lib_dld_shl_load=yes 9968else 9969 ac_cv_lib_dld_shl_load=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext \ 9972 conftest$ac_exeext conftest.$ac_ext 9973LIBS=$ac_check_lib_save_LIBS 9974fi 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9976$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9977if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9979else 9980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9981if test "x$ac_cv_func_dlopen" = x""yes; then : 9982 lt_cv_dlopen="dlopen" 9983else 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9985$as_echo_n "checking for dlopen in -ldl... " >&6; } 9986if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9987 $as_echo_n "(cached) " >&6 9988else 9989 ac_check_lib_save_LIBS=$LIBS 9990LIBS="-ldl $LIBS" 9991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993 9994/* Override any GCC internal prototype to avoid an error. 9995 Use char because int might match the return type of a GCC 9996 builtin and then its argument prototype would still apply. */ 9997#ifdef __cplusplus 9998extern "C" 9999#endif 10000char dlopen (); 10001int 10002main () 10003{ 10004return dlopen (); 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO"; then : 10010 ac_cv_lib_dl_dlopen=yes 10011else 10012 ac_cv_lib_dl_dlopen=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016LIBS=$ac_check_lib_save_LIBS 10017fi 10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10019$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10020if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10022else 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10024$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10025if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 ac_check_lib_save_LIBS=$LIBS 10029LIBS="-lsvld $LIBS" 10030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032 10033/* Override any GCC internal prototype to avoid an error. 10034 Use char because int might match the return type of a GCC 10035 builtin and then its argument prototype would still apply. */ 10036#ifdef __cplusplus 10037extern "C" 10038#endif 10039char dlopen (); 10040int 10041main () 10042{ 10043return dlopen (); 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_link "$LINENO"; then : 10049 ac_cv_lib_svld_dlopen=yes 10050else 10051 ac_cv_lib_svld_dlopen=no 10052fi 10053rm -f core conftest.err conftest.$ac_objext \ 10054 conftest$ac_exeext conftest.$ac_ext 10055LIBS=$ac_check_lib_save_LIBS 10056fi 10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10058$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10059if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10061else 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10063$as_echo_n "checking for dld_link in -ldld... " >&6; } 10064if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 ac_check_lib_save_LIBS=$LIBS 10068LIBS="-ldld $LIBS" 10069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070/* end confdefs.h. */ 10071 10072/* Override any GCC internal prototype to avoid an error. 10073 Use char because int might match the return type of a GCC 10074 builtin and then its argument prototype would still apply. */ 10075#ifdef __cplusplus 10076extern "C" 10077#endif 10078char dld_link (); 10079int 10080main () 10081{ 10082return dld_link (); 10083 ; 10084 return 0; 10085} 10086_ACEOF 10087if ac_fn_c_try_link "$LINENO"; then : 10088 ac_cv_lib_dld_dld_link=yes 10089else 10090 ac_cv_lib_dld_dld_link=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext \ 10093 conftest$ac_exeext conftest.$ac_ext 10094LIBS=$ac_check_lib_save_LIBS 10095fi 10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10097$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10098if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10100fi 10101 10102 10103fi 10104 10105 10106fi 10107 10108 10109fi 10110 10111 10112fi 10113 10114 10115fi 10116 10117 ;; 10118 esac 10119 10120 if test "x$lt_cv_dlopen" != xno; then 10121 enable_dlopen=yes 10122 else 10123 enable_dlopen=no 10124 fi 10125 10126 case $lt_cv_dlopen in 10127 dlopen) 10128 save_CPPFLAGS="$CPPFLAGS" 10129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10130 10131 save_LDFLAGS="$LDFLAGS" 10132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10133 10134 save_LIBS="$LIBS" 10135 LIBS="$lt_cv_dlopen_libs $LIBS" 10136 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10138$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10139if test "${lt_cv_dlopen_self+set}" = set; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 if test "$cross_compiling" = yes; then : 10143 lt_cv_dlopen_self=cross 10144else 10145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10146 lt_status=$lt_dlunknown 10147 cat > conftest.$ac_ext <<_LT_EOF 10148#line 10148 "configure" 10149#include "confdefs.h" 10150 10151#if HAVE_DLFCN_H 10152#include <dlfcn.h> 10153#endif 10154 10155#include <stdio.h> 10156 10157#ifdef RTLD_GLOBAL 10158# define LT_DLGLOBAL RTLD_GLOBAL 10159#else 10160# ifdef DL_GLOBAL 10161# define LT_DLGLOBAL DL_GLOBAL 10162# else 10163# define LT_DLGLOBAL 0 10164# endif 10165#endif 10166 10167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10168 find out it does not work in some platform. */ 10169#ifndef LT_DLLAZY_OR_NOW 10170# ifdef RTLD_LAZY 10171# define LT_DLLAZY_OR_NOW RTLD_LAZY 10172# else 10173# ifdef DL_LAZY 10174# define LT_DLLAZY_OR_NOW DL_LAZY 10175# else 10176# ifdef RTLD_NOW 10177# define LT_DLLAZY_OR_NOW RTLD_NOW 10178# else 10179# ifdef DL_NOW 10180# define LT_DLLAZY_OR_NOW DL_NOW 10181# else 10182# define LT_DLLAZY_OR_NOW 0 10183# endif 10184# endif 10185# endif 10186# endif 10187#endif 10188 10189void fnord() { int i=42;} 10190int main () 10191{ 10192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10193 int status = $lt_dlunknown; 10194 10195 if (self) 10196 { 10197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10199 /* dlclose (self); */ 10200 } 10201 else 10202 puts (dlerror ()); 10203 10204 return status; 10205} 10206_LT_EOF 10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10208 (eval $ac_link) 2>&5 10209 ac_status=$? 10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10211 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10212 (./conftest; exit; ) >&5 2>/dev/null 10213 lt_status=$? 10214 case x$lt_status in 10215 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10216 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10217 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10218 esac 10219 else : 10220 # compilation failed 10221 lt_cv_dlopen_self=no 10222 fi 10223fi 10224rm -fr conftest* 10225 10226 10227fi 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10229$as_echo "$lt_cv_dlopen_self" >&6; } 10230 10231 if test "x$lt_cv_dlopen_self" = xyes; then 10232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10234$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10235if test "${lt_cv_dlopen_self_static+set}" = set; then : 10236 $as_echo_n "(cached) " >&6 10237else 10238 if test "$cross_compiling" = yes; then : 10239 lt_cv_dlopen_self_static=cross 10240else 10241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10242 lt_status=$lt_dlunknown 10243 cat > conftest.$ac_ext <<_LT_EOF 10244#line 10244 "configure" 10245#include "confdefs.h" 10246 10247#if HAVE_DLFCN_H 10248#include <dlfcn.h> 10249#endif 10250 10251#include <stdio.h> 10252 10253#ifdef RTLD_GLOBAL 10254# define LT_DLGLOBAL RTLD_GLOBAL 10255#else 10256# ifdef DL_GLOBAL 10257# define LT_DLGLOBAL DL_GLOBAL 10258# else 10259# define LT_DLGLOBAL 0 10260# endif 10261#endif 10262 10263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10264 find out it does not work in some platform. */ 10265#ifndef LT_DLLAZY_OR_NOW 10266# ifdef RTLD_LAZY 10267# define LT_DLLAZY_OR_NOW RTLD_LAZY 10268# else 10269# ifdef DL_LAZY 10270# define LT_DLLAZY_OR_NOW DL_LAZY 10271# else 10272# ifdef RTLD_NOW 10273# define LT_DLLAZY_OR_NOW RTLD_NOW 10274# else 10275# ifdef DL_NOW 10276# define LT_DLLAZY_OR_NOW DL_NOW 10277# else 10278# define LT_DLLAZY_OR_NOW 0 10279# endif 10280# endif 10281# endif 10282# endif 10283#endif 10284 10285void fnord() { int i=42;} 10286int main () 10287{ 10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10289 int status = $lt_dlunknown; 10290 10291 if (self) 10292 { 10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10295 /* dlclose (self); */ 10296 } 10297 else 10298 puts (dlerror ()); 10299 10300 return status; 10301} 10302_LT_EOF 10303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10304 (eval $ac_link) 2>&5 10305 ac_status=$? 10306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10308 (./conftest; exit; ) >&5 2>/dev/null 10309 lt_status=$? 10310 case x$lt_status in 10311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10314 esac 10315 else : 10316 # compilation failed 10317 lt_cv_dlopen_self_static=no 10318 fi 10319fi 10320rm -fr conftest* 10321 10322 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10325$as_echo "$lt_cv_dlopen_self_static" >&6; } 10326 fi 10327 10328 CPPFLAGS="$save_CPPFLAGS" 10329 LDFLAGS="$save_LDFLAGS" 10330 LIBS="$save_LIBS" 10331 ;; 10332 esac 10333 10334 case $lt_cv_dlopen_self in 10335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10336 *) enable_dlopen_self=unknown ;; 10337 esac 10338 10339 case $lt_cv_dlopen_self_static in 10340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10341 *) enable_dlopen_self_static=unknown ;; 10342 esac 10343fi 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361striplib= 10362old_striplib= 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10364$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10365if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10367 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10369$as_echo "yes" >&6; } 10370else 10371# FIXME - insert some real tests, host_os isn't really good enough 10372 case $host_os in 10373 darwin*) 10374 if test -n "$STRIP" ; then 10375 striplib="$STRIP -x" 10376 old_striplib="$STRIP -S" 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10378$as_echo "yes" >&6; } 10379 else 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10381$as_echo "no" >&6; } 10382 fi 10383 ;; 10384 *) 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10386$as_echo "no" >&6; } 10387 ;; 10388 esac 10389fi 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 # Report which library types will actually be built 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10404$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10406$as_echo "$can_build_shared" >&6; } 10407 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10409$as_echo_n "checking whether to build shared libraries... " >&6; } 10410 test "$can_build_shared" = "no" && enable_shared=no 10411 10412 # On AIX, shared libraries and static libraries use the same namespace, and 10413 # are all built from PIC. 10414 case $host_os in 10415 aix3*) 10416 test "$enable_shared" = yes && enable_static=no 10417 if test -n "$RANLIB"; then 10418 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10419 postinstall_cmds='$RANLIB $lib' 10420 fi 10421 ;; 10422 10423 aix[4-9]*) 10424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10425 test "$enable_shared" = yes && enable_static=no 10426 fi 10427 ;; 10428 esac 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10430$as_echo "$enable_shared" >&6; } 10431 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10433$as_echo_n "checking whether to build static libraries... " >&6; } 10434 # Make sure either enable_shared or enable_static is yes. 10435 test "$enable_shared" = yes || enable_static=yes 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10437$as_echo "$enable_static" >&6; } 10438 10439 10440 10441 10442fi 10443ac_ext=c 10444ac_cpp='$CPP $CPPFLAGS' 10445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10447ac_compiler_gnu=$ac_cv_c_compiler_gnu 10448 10449CC="$lt_save_CC" 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 ac_config_commands="$ac_config_commands libtool" 10464 10465 10466 10467 10468# Only expand once: 10469 10470 10471 10472for ac_prog in gawk mawk nawk awk 10473do 10474 # Extract the first word of "$ac_prog", so it can be a program name with args. 10475set dummy $ac_prog; ac_word=$2 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10477$as_echo_n "checking for $ac_word... " >&6; } 10478if test "${ac_cv_prog_AWK+set}" = set; then : 10479 $as_echo_n "(cached) " >&6 10480else 10481 if test -n "$AWK"; then 10482 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10483else 10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10485for as_dir in $PATH 10486do 10487 IFS=$as_save_IFS 10488 test -z "$as_dir" && as_dir=. 10489 for ac_exec_ext in '' $ac_executable_extensions; do 10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10491 ac_cv_prog_AWK="$ac_prog" 10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10493 break 2 10494 fi 10495done 10496 done 10497IFS=$as_save_IFS 10498 10499fi 10500fi 10501AWK=$ac_cv_prog_AWK 10502if test -n "$AWK"; then 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10504$as_echo "$AWK" >&6; } 10505else 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10507$as_echo "no" >&6; } 10508fi 10509 10510 10511 test -n "$AWK" && break 10512done 10513 10514ac_ext=c 10515ac_cpp='$CPP $CPPFLAGS' 10516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10518ac_compiler_gnu=$ac_cv_c_compiler_gnu 10519if test -n "$ac_tool_prefix"; then 10520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10521set dummy ${ac_tool_prefix}gcc; ac_word=$2 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10523$as_echo_n "checking for $ac_word... " >&6; } 10524if test "${ac_cv_prog_CC+set}" = set; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 if test -n "$CC"; then 10528 ac_cv_prog_CC="$CC" # Let the user override the test. 10529else 10530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10531for as_dir in $PATH 10532do 10533 IFS=$as_save_IFS 10534 test -z "$as_dir" && as_dir=. 10535 for ac_exec_ext in '' $ac_executable_extensions; do 10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10537 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10539 break 2 10540 fi 10541done 10542 done 10543IFS=$as_save_IFS 10544 10545fi 10546fi 10547CC=$ac_cv_prog_CC 10548if test -n "$CC"; then 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10550$as_echo "$CC" >&6; } 10551else 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10553$as_echo "no" >&6; } 10554fi 10555 10556 10557fi 10558if test -z "$ac_cv_prog_CC"; then 10559 ac_ct_CC=$CC 10560 # Extract the first word of "gcc", so it can be a program name with args. 10561set dummy gcc; ac_word=$2 10562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10563$as_echo_n "checking for $ac_word... " >&6; } 10564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 if test -n "$ac_ct_CC"; then 10568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10569else 10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10571for as_dir in $PATH 10572do 10573 IFS=$as_save_IFS 10574 test -z "$as_dir" && as_dir=. 10575 for ac_exec_ext in '' $ac_executable_extensions; do 10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10577 ac_cv_prog_ac_ct_CC="gcc" 10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10579 break 2 10580 fi 10581done 10582 done 10583IFS=$as_save_IFS 10584 10585fi 10586fi 10587ac_ct_CC=$ac_cv_prog_ac_ct_CC 10588if test -n "$ac_ct_CC"; then 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10590$as_echo "$ac_ct_CC" >&6; } 10591else 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10593$as_echo "no" >&6; } 10594fi 10595 10596 if test "x$ac_ct_CC" = x; then 10597 CC="" 10598 else 10599 case $cross_compiling:$ac_tool_warned in 10600yes:) 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10603ac_tool_warned=yes ;; 10604esac 10605 CC=$ac_ct_CC 10606 fi 10607else 10608 CC="$ac_cv_prog_CC" 10609fi 10610 10611if test -z "$CC"; then 10612 if test -n "$ac_tool_prefix"; then 10613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 10614set dummy ${ac_tool_prefix}cc; ac_word=$2 10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10616$as_echo_n "checking for $ac_word... " >&6; } 10617if test "${ac_cv_prog_CC+set}" = set; then : 10618 $as_echo_n "(cached) " >&6 10619else 10620 if test -n "$CC"; then 10621 ac_cv_prog_CC="$CC" # Let the user override the test. 10622else 10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10624for as_dir in $PATH 10625do 10626 IFS=$as_save_IFS 10627 test -z "$as_dir" && as_dir=. 10628 for ac_exec_ext in '' $ac_executable_extensions; do 10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10630 ac_cv_prog_CC="${ac_tool_prefix}cc" 10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10632 break 2 10633 fi 10634done 10635 done 10636IFS=$as_save_IFS 10637 10638fi 10639fi 10640CC=$ac_cv_prog_CC 10641if test -n "$CC"; then 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10643$as_echo "$CC" >&6; } 10644else 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10646$as_echo "no" >&6; } 10647fi 10648 10649 10650 fi 10651fi 10652if test -z "$CC"; then 10653 # Extract the first word of "cc", so it can be a program name with args. 10654set dummy cc; ac_word=$2 10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10656$as_echo_n "checking for $ac_word... " >&6; } 10657if test "${ac_cv_prog_CC+set}" = set; then : 10658 $as_echo_n "(cached) " >&6 10659else 10660 if test -n "$CC"; then 10661 ac_cv_prog_CC="$CC" # Let the user override the test. 10662else 10663 ac_prog_rejected=no 10664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10665for as_dir in $PATH 10666do 10667 IFS=$as_save_IFS 10668 test -z "$as_dir" && as_dir=. 10669 for ac_exec_ext in '' $ac_executable_extensions; do 10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 10672 ac_prog_rejected=yes 10673 continue 10674 fi 10675 ac_cv_prog_CC="cc" 10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10677 break 2 10678 fi 10679done 10680 done 10681IFS=$as_save_IFS 10682 10683if test $ac_prog_rejected = yes; then 10684 # We found a bogon in the path, so make sure we never use it. 10685 set dummy $ac_cv_prog_CC 10686 shift 10687 if test $# != 0; then 10688 # We chose a different compiler from the bogus one. 10689 # However, it has the same basename, so the bogon will be chosen 10690 # first if we set CC to just the basename; use the full file name. 10691 shift 10692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 10693 fi 10694fi 10695fi 10696fi 10697CC=$ac_cv_prog_CC 10698if test -n "$CC"; then 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10700$as_echo "$CC" >&6; } 10701else 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10703$as_echo "no" >&6; } 10704fi 10705 10706 10707fi 10708if test -z "$CC"; then 10709 if test -n "$ac_tool_prefix"; then 10710 for ac_prog in cl.exe 10711 do 10712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10713set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10715$as_echo_n "checking for $ac_word... " >&6; } 10716if test "${ac_cv_prog_CC+set}" = set; then : 10717 $as_echo_n "(cached) " >&6 10718else 10719 if test -n "$CC"; then 10720 ac_cv_prog_CC="$CC" # Let the user override the test. 10721else 10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10723for as_dir in $PATH 10724do 10725 IFS=$as_save_IFS 10726 test -z "$as_dir" && as_dir=. 10727 for ac_exec_ext in '' $ac_executable_extensions; do 10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10731 break 2 10732 fi 10733done 10734 done 10735IFS=$as_save_IFS 10736 10737fi 10738fi 10739CC=$ac_cv_prog_CC 10740if test -n "$CC"; then 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10742$as_echo "$CC" >&6; } 10743else 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10745$as_echo "no" >&6; } 10746fi 10747 10748 10749 test -n "$CC" && break 10750 done 10751fi 10752if test -z "$CC"; then 10753 ac_ct_CC=$CC 10754 for ac_prog in cl.exe 10755do 10756 # Extract the first word of "$ac_prog", so it can be a program name with args. 10757set dummy $ac_prog; ac_word=$2 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10759$as_echo_n "checking for $ac_word... " >&6; } 10760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 10761 $as_echo_n "(cached) " >&6 10762else 10763 if test -n "$ac_ct_CC"; then 10764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10765else 10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10767for as_dir in $PATH 10768do 10769 IFS=$as_save_IFS 10770 test -z "$as_dir" && as_dir=. 10771 for ac_exec_ext in '' $ac_executable_extensions; do 10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10773 ac_cv_prog_ac_ct_CC="$ac_prog" 10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10775 break 2 10776 fi 10777done 10778 done 10779IFS=$as_save_IFS 10780 10781fi 10782fi 10783ac_ct_CC=$ac_cv_prog_ac_ct_CC 10784if test -n "$ac_ct_CC"; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10786$as_echo "$ac_ct_CC" >&6; } 10787else 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10789$as_echo "no" >&6; } 10790fi 10791 10792 10793 test -n "$ac_ct_CC" && break 10794done 10795 10796 if test "x$ac_ct_CC" = x; then 10797 CC="" 10798 else 10799 case $cross_compiling:$ac_tool_warned in 10800yes:) 10801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10803ac_tool_warned=yes ;; 10804esac 10805 CC=$ac_ct_CC 10806 fi 10807fi 10808 10809fi 10810 10811 10812test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10814as_fn_error "no acceptable C compiler found in \$PATH 10815See \`config.log' for more details." "$LINENO" 5; } 10816 10817# Provide some information about the compiler. 10818$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 10819set X $ac_compile 10820ac_compiler=$2 10821for ac_option in --version -v -V -qversion; do 10822 { { ac_try="$ac_compiler $ac_option >&5" 10823case "(($ac_try" in 10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10825 *) ac_try_echo=$ac_try;; 10826esac 10827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10828$as_echo "$ac_try_echo"; } >&5 10829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10830 ac_status=$? 10831 if test -s conftest.err; then 10832 sed '10a\ 10833... rest of stderr output deleted ... 10834 10q' conftest.err >conftest.er1 10835 cat conftest.er1 >&5 10836 fi 10837 rm -f conftest.er1 conftest.err 10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10839 test $ac_status = 0; } 10840done 10841 10842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 10843$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 10844if test "${ac_cv_c_compiler_gnu+set}" = set; then : 10845 $as_echo_n "(cached) " >&6 10846else 10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10848/* end confdefs.h. */ 10849 10850int 10851main () 10852{ 10853#ifndef __GNUC__ 10854 choke me 10855#endif 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861if ac_fn_c_try_compile "$LINENO"; then : 10862 ac_compiler_gnu=yes 10863else 10864 ac_compiler_gnu=no 10865fi 10866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10867ac_cv_c_compiler_gnu=$ac_compiler_gnu 10868 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 10871$as_echo "$ac_cv_c_compiler_gnu" >&6; } 10872if test $ac_compiler_gnu = yes; then 10873 GCC=yes 10874else 10875 GCC= 10876fi 10877ac_test_CFLAGS=${CFLAGS+set} 10878ac_save_CFLAGS=$CFLAGS 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 10880$as_echo_n "checking whether $CC accepts -g... " >&6; } 10881if test "${ac_cv_prog_cc_g+set}" = set; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 ac_save_c_werror_flag=$ac_c_werror_flag 10885 ac_c_werror_flag=yes 10886 ac_cv_prog_cc_g=no 10887 CFLAGS="-g" 10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890 10891int 10892main () 10893{ 10894 10895 ; 10896 return 0; 10897} 10898_ACEOF 10899if ac_fn_c_try_compile "$LINENO"; then : 10900 ac_cv_prog_cc_g=yes 10901else 10902 CFLAGS="" 10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905 10906int 10907main () 10908{ 10909 10910 ; 10911 return 0; 10912} 10913_ACEOF 10914if ac_fn_c_try_compile "$LINENO"; then : 10915 10916else 10917 ac_c_werror_flag=$ac_save_c_werror_flag 10918 CFLAGS="-g" 10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10920/* end confdefs.h. */ 10921 10922int 10923main () 10924{ 10925 10926 ; 10927 return 0; 10928} 10929_ACEOF 10930if ac_fn_c_try_compile "$LINENO"; then : 10931 ac_cv_prog_cc_g=yes 10932fi 10933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10934fi 10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10936fi 10937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10938 ac_c_werror_flag=$ac_save_c_werror_flag 10939fi 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 10941$as_echo "$ac_cv_prog_cc_g" >&6; } 10942if test "$ac_test_CFLAGS" = set; then 10943 CFLAGS=$ac_save_CFLAGS 10944elif test $ac_cv_prog_cc_g = yes; then 10945 if test "$GCC" = yes; then 10946 CFLAGS="-g -O2" 10947 else 10948 CFLAGS="-g" 10949 fi 10950else 10951 if test "$GCC" = yes; then 10952 CFLAGS="-O2" 10953 else 10954 CFLAGS= 10955 fi 10956fi 10957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 10958$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 10959if test "${ac_cv_prog_cc_c89+set}" = set; then : 10960 $as_echo_n "(cached) " >&6 10961else 10962 ac_cv_prog_cc_c89=no 10963ac_save_CC=$CC 10964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10965/* end confdefs.h. */ 10966#include <stdarg.h> 10967#include <stdio.h> 10968#include <sys/types.h> 10969#include <sys/stat.h> 10970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 10971struct buf { int x; }; 10972FILE * (*rcsopen) (struct buf *, struct stat *, int); 10973static char *e (p, i) 10974 char **p; 10975 int i; 10976{ 10977 return p[i]; 10978} 10979static char *f (char * (*g) (char **, int), char **p, ...) 10980{ 10981 char *s; 10982 va_list v; 10983 va_start (v,p); 10984 s = g (p, va_arg (v,int)); 10985 va_end (v); 10986 return s; 10987} 10988 10989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 10990 function prototypes and stuff, but not '\xHH' hex character constants. 10991 These don't provoke an error unfortunately, instead are silently treated 10992 as 'x'. The following induces an error, until -std is added to get 10993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 10994 array size at least. It's necessary to write '\x00'==0 to get something 10995 that's true only with -std. */ 10996int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 10997 10998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 10999 inside strings and character constants. */ 11000#define FOO(x) 'x' 11001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11002 11003int test (int i, double x); 11004struct s1 {int (*f) (int a);}; 11005struct s2 {int (*f) (double a);}; 11006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11007int argc; 11008char **argv; 11009int 11010main () 11011{ 11012return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11013 ; 11014 return 0; 11015} 11016_ACEOF 11017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11019do 11020 CC="$ac_save_CC $ac_arg" 11021 if ac_fn_c_try_compile "$LINENO"; then : 11022 ac_cv_prog_cc_c89=$ac_arg 11023fi 11024rm -f core conftest.err conftest.$ac_objext 11025 test "x$ac_cv_prog_cc_c89" != "xno" && break 11026done 11027rm -f conftest.$ac_ext 11028CC=$ac_save_CC 11029 11030fi 11031# AC_CACHE_VAL 11032case "x$ac_cv_prog_cc_c89" in 11033 x) 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11035$as_echo "none needed" >&6; } ;; 11036 xno) 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11038$as_echo "unsupported" >&6; } ;; 11039 *) 11040 CC="$CC $ac_cv_prog_cc_c89" 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11042$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11043esac 11044if test "x$ac_cv_prog_cc_c89" != xno; then : 11045 11046fi 11047 11048ac_ext=c 11049ac_cpp='$CPP $CPPFLAGS' 11050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11052ac_compiler_gnu=$ac_cv_c_compiler_gnu 11053 11054depcc="$CC" am_compiler_list= 11055 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11057$as_echo_n "checking dependency style of $depcc... " >&6; } 11058if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11062 # We make a subdir and do the tests there. Otherwise we can end up 11063 # making bogus files that we don't know about and never remove. For 11064 # instance it was reported that on HP-UX the gcc test will end up 11065 # making a dummy file named `D' -- because `-MD' means `put the output 11066 # in D'. 11067 mkdir conftest.dir 11068 # Copy depcomp to subdir because otherwise we won't find it if we're 11069 # using a relative directory. 11070 cp "$am_depcomp" conftest.dir 11071 cd conftest.dir 11072 # We will build objects and dependencies in a subdirectory because 11073 # it helps to detect inapplicable dependency modes. For instance 11074 # both Tru64's cc and ICC support -MD to output dependencies as a 11075 # side effect of compilation, but ICC will put the dependencies in 11076 # the current directory while Tru64 will put them in the object 11077 # directory. 11078 mkdir sub 11079 11080 am_cv_CC_dependencies_compiler_type=none 11081 if test "$am_compiler_list" = ""; then 11082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11083 fi 11084 am__universal=false 11085 case " $depcc " in #( 11086 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11087 esac 11088 11089 for depmode in $am_compiler_list; do 11090 # Setup a source with many dependencies, because some compilers 11091 # like to wrap large dependency lists on column 80 (with \), and 11092 # we should not choose a depcomp mode which is confused by this. 11093 # 11094 # We need to recreate these files for each test, as the compiler may 11095 # overwrite some of them when testing with obscure command lines. 11096 # This happens at least with the AIX C compiler. 11097 : > sub/conftest.c 11098 for i in 1 2 3 4 5 6; do 11099 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11101 # Solaris 8's {/usr,}/bin/sh. 11102 touch sub/conftst$i.h 11103 done 11104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11105 11106 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11107 # mode. It turns out that the SunPro C++ compiler does not properly 11108 # handle `-M -o', and we need to detect this. Also, some Intel 11109 # versions had trouble with output in subdirs 11110 am__obj=sub/conftest.${OBJEXT-o} 11111 am__minus_obj="-o $am__obj" 11112 case $depmode in 11113 gcc) 11114 # This depmode causes a compiler race in universal mode. 11115 test "$am__universal" = false || continue 11116 ;; 11117 nosideeffect) 11118 # after this tag, mechanisms are not by side-effect, so they'll 11119 # only be used when explicitly requested 11120 if test "x$enable_dependency_tracking" = xyes; then 11121 continue 11122 else 11123 break 11124 fi 11125 ;; 11126 msvisualcpp | msvcmsys) 11127 # This compiler won't grok `-c -o', but also, the minuso test has 11128 # not run yet. These depmodes are late enough in the game, and 11129 # so weak that their functioning should not be impacted. 11130 am__obj=conftest.${OBJEXT-o} 11131 am__minus_obj= 11132 ;; 11133 none) break ;; 11134 esac 11135 if depmode=$depmode \ 11136 source=sub/conftest.c object=$am__obj \ 11137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11139 >/dev/null 2>conftest.err && 11140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11144 # icc doesn't choke on unknown options, it will just issue warnings 11145 # or remarks (even with -Werror). So we grep stderr for any message 11146 # that says an option was ignored or not supported. 11147 # When given -MP, icc 7.0 and 7.1 complain thusly: 11148 # icc: Command line warning: ignoring option '-M'; no argument required 11149 # The diagnosis changed in icc 8.0: 11150 # icc: Command line remark: option '-MP' not supported 11151 if (grep 'ignoring option' conftest.err || 11152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11153 am_cv_CC_dependencies_compiler_type=$depmode 11154 break 11155 fi 11156 fi 11157 done 11158 11159 cd .. 11160 rm -rf conftest.dir 11161else 11162 am_cv_CC_dependencies_compiler_type=none 11163fi 11164 11165fi 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11167$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11168CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11169 11170 if 11171 test "x$enable_dependency_tracking" != xno \ 11172 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11173 am__fastdepCC_TRUE= 11174 am__fastdepCC_FALSE='#' 11175else 11176 am__fastdepCC_TRUE='#' 11177 am__fastdepCC_FALSE= 11178fi 11179 11180 11181 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11183$as_echo_n "checking whether ln -s works... " >&6; } 11184LN_S=$as_ln_s 11185if test "$LN_S" = "ln -s"; then 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11187$as_echo "yes" >&6; } 11188else 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11190$as_echo "no, using $LN_S" >&6; } 11191fi 11192 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11194$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11195set x ${MAKE-make} 11196ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11197if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 11198 $as_echo_n "(cached) " >&6 11199else 11200 cat >conftest.make <<\_ACEOF 11201SHELL = /bin/sh 11202all: 11203 @echo '@@@%%%=$(MAKE)=@@@%%%' 11204_ACEOF 11205# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11206case `${MAKE-make} -f conftest.make 2>/dev/null` in 11207 *@@@%%%=?*=@@@%%%*) 11208 eval ac_cv_prog_make_${ac_make}_set=yes;; 11209 *) 11210 eval ac_cv_prog_make_${ac_make}_set=no;; 11211esac 11212rm -f conftest.make 11213fi 11214if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11216$as_echo "yes" >&6; } 11217 SET_MAKE= 11218else 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11220$as_echo "no" >&6; } 11221 SET_MAKE="MAKE=${MAKE-make}" 11222fi 11223 11224 11225for ac_prog in gcc cc ${CC} 11226do 11227 # Extract the first word of "$ac_prog", so it can be a program name with args. 11228set dummy $ac_prog; ac_word=$2 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11230$as_echo_n "checking for $ac_word... " >&6; } 11231if test "${ac_cv_prog_BUILD_CC+set}" = set; then : 11232 $as_echo_n "(cached) " >&6 11233else 11234 if test -n "$BUILD_CC"; then 11235 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 11236else 11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11238for as_dir in $PATH 11239do 11240 IFS=$as_save_IFS 11241 test -z "$as_dir" && as_dir=. 11242 for ac_exec_ext in '' $ac_executable_extensions; do 11243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11244 ac_cv_prog_BUILD_CC="$ac_prog" 11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11246 break 2 11247 fi 11248done 11249 done 11250IFS=$as_save_IFS 11251 11252fi 11253fi 11254BUILD_CC=$ac_cv_prog_BUILD_CC 11255if test -n "$BUILD_CC"; then 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 11257$as_echo "$BUILD_CC" >&6; } 11258else 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11260$as_echo "no" >&6; } 11261fi 11262 11263 11264 test -n "$BUILD_CC" && break 11265done 11266test -n "$BUILD_CC" || BUILD_CC="gcc" 11267 11268# Extract the first word of "${AR:-ar}", so it can be a program name with args. 11269set dummy ${AR:-ar}; ac_word=$2 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11271$as_echo_n "checking for $ac_word... " >&6; } 11272if test "${ac_cv_prog_AR+set}" = set; then : 11273 $as_echo_n "(cached) " >&6 11274else 11275 if test -n "$AR"; then 11276 ac_cv_prog_AR="$AR" # Let the user override the test. 11277else 11278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11279for as_dir in $PATH 11280do 11281 IFS=$as_save_IFS 11282 test -z "$as_dir" && as_dir=. 11283 for ac_exec_ext in '' $ac_executable_extensions; do 11284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11285 ac_cv_prog_AR="${AR:-ar}" 11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11287 break 2 11288 fi 11289done 11290 done 11291IFS=$as_save_IFS 11292 11293 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 11294fi 11295fi 11296AR=$ac_cv_prog_AR 11297if test -n "$AR"; then 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11299$as_echo "$AR" >&6; } 11300else 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11302$as_echo "no" >&6; } 11303fi 11304 11305 11306# Extract the first word of "${LD:-ld}", so it can be a program name with args. 11307set dummy ${LD:-ld}; ac_word=$2 11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11309$as_echo_n "checking for $ac_word... " >&6; } 11310if test "${ac_cv_prog_LD+set}" = set; then : 11311 $as_echo_n "(cached) " >&6 11312else 11313 if test -n "$LD"; then 11314 ac_cv_prog_LD="$LD" # Let the user override the test. 11315else 11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11317for as_dir in $PATH 11318do 11319 IFS=$as_save_IFS 11320 test -z "$as_dir" && as_dir=. 11321 for ac_exec_ext in '' $ac_executable_extensions; do 11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11323 ac_cv_prog_LD="${LD:-ld}" 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11325 break 2 11326 fi 11327done 11328 done 11329IFS=$as_save_IFS 11330 11331 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld" 11332fi 11333fi 11334LD=$ac_cv_prog_LD 11335if test -n "$LD"; then 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11337$as_echo "$LD" >&6; } 11338else 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11340$as_echo "no" >&6; } 11341fi 11342 11343 11344# Extract the first word of "${STRIP:-strip}", so it can be a program name with args. 11345set dummy ${STRIP:-strip}; ac_word=$2 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11347$as_echo_n "checking for $ac_word... " >&6; } 11348if test "${ac_cv_prog_STRIP+set}" = set; then : 11349 $as_echo_n "(cached) " >&6 11350else 11351 if test -n "$STRIP"; then 11352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11353else 11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11355for as_dir in $PATH 11356do 11357 IFS=$as_save_IFS 11358 test -z "$as_dir" && as_dir=. 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11361 ac_cv_prog_STRIP="${STRIP:-strip}" 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11363 break 2 11364 fi 11365done 11366 done 11367IFS=$as_save_IFS 11368 11369 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="strip" 11370fi 11371fi 11372STRIP=$ac_cv_prog_STRIP 11373if test -n "$STRIP"; then 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11375$as_echo "$STRIP" >&6; } 11376else 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378$as_echo "no" >&6; } 11379fi 11380 11381 11382 11383 11384 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 11386$as_echo_n "checking for X... " >&6; } 11387 11388 11389# Check whether --with-x was given. 11390if test "${with_x+set}" = set; then : 11391 withval=$with_x; 11392fi 11393 11394# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 11395if test "x$with_x" = xno; then 11396 # The user explicitly disabled X. 11397 have_x=disabled 11398else 11399 case $x_includes,$x_libraries in #( 11400 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 11401 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 11402 $as_echo_n "(cached) " >&6 11403else 11404 # One or both of the vars are not set, and there is no cached value. 11405ac_x_includes=no ac_x_libraries=no 11406rm -f -r conftest.dir 11407if mkdir conftest.dir; then 11408 cd conftest.dir 11409 cat >Imakefile <<'_ACEOF' 11410incroot: 11411 @echo incroot='${INCROOT}' 11412usrlibdir: 11413 @echo usrlibdir='${USRLIBDIR}' 11414libdir: 11415 @echo libdir='${LIBDIR}' 11416_ACEOF 11417 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 11418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11419 for ac_var in incroot usrlibdir libdir; do 11420 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 11421 done 11422 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 11423 for ac_extension in a so sl dylib la dll; do 11424 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 11425 test -f "$ac_im_libdir/libX11.$ac_extension"; then 11426 ac_im_usrlibdir=$ac_im_libdir; break 11427 fi 11428 done 11429 # Screen out bogus values from the imake configuration. They are 11430 # bogus both because they are the default anyway, and because 11431 # using them would break gcc on systems where it needs fixed includes. 11432 case $ac_im_incroot in 11433 /usr/include) ac_x_includes= ;; 11434 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 11435 esac 11436 case $ac_im_usrlibdir in 11437 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 11438 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 11439 esac 11440 fi 11441 cd .. 11442 rm -f -r conftest.dir 11443fi 11444 11445# Standard set of common directories for X headers. 11446# Check X11 before X11Rn because it is often a symlink to the current release. 11447ac_x_header_dirs=' 11448/usr/X11/include 11449/usr/X11R7/include 11450/usr/X11R6/include 11451/usr/X11R5/include 11452/usr/X11R4/include 11453 11454/usr/include/X11 11455/usr/include/X11R7 11456/usr/include/X11R6 11457/usr/include/X11R5 11458/usr/include/X11R4 11459 11460/usr/local/X11/include 11461/usr/local/X11R7/include 11462/usr/local/X11R6/include 11463/usr/local/X11R5/include 11464/usr/local/X11R4/include 11465 11466/usr/local/include/X11 11467/usr/local/include/X11R7 11468/usr/local/include/X11R6 11469/usr/local/include/X11R5 11470/usr/local/include/X11R4 11471 11472/usr/X386/include 11473/usr/x386/include 11474/usr/XFree86/include/X11 11475 11476/usr/include 11477/usr/local/include 11478/usr/unsupported/include 11479/usr/athena/include 11480/usr/local/x11r5/include 11481/usr/lpp/Xamples/include 11482 11483/usr/openwin/include 11484/usr/openwin/share/include' 11485 11486if test "$ac_x_includes" = no; then 11487 # Guess where to find include files, by looking for Xlib.h. 11488 # First, try using that file with no special directory specified. 11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11490/* end confdefs.h. */ 11491#include <X11/Xlib.h> 11492_ACEOF 11493if ac_fn_c_try_cpp "$LINENO"; then : 11494 # We can compile using X headers with no special include directory. 11495ac_x_includes= 11496else 11497 for ac_dir in $ac_x_header_dirs; do 11498 if test -r "$ac_dir/X11/Xlib.h"; then 11499 ac_x_includes=$ac_dir 11500 break 11501 fi 11502done 11503fi 11504rm -f conftest.err conftest.$ac_ext 11505fi # $ac_x_includes = no 11506 11507if test "$ac_x_libraries" = no; then 11508 # Check for the libraries. 11509 # See if we find them without any special options. 11510 # Don't add to $LIBS permanently. 11511 ac_save_LIBS=$LIBS 11512 LIBS="-lX11 $LIBS" 11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515#include <X11/Xlib.h> 11516int 11517main () 11518{ 11519XrmInitialize () 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524if ac_fn_c_try_link "$LINENO"; then : 11525 LIBS=$ac_save_LIBS 11526# We can link X programs with no special library path. 11527ac_x_libraries= 11528else 11529 LIBS=$ac_save_LIBS 11530for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11531do 11532 # Don't even attempt the hair of trying to link an X program! 11533 for ac_extension in a so sl dylib la dll; do 11534 if test -r "$ac_dir/libX11.$ac_extension"; then 11535 ac_x_libraries=$ac_dir 11536 break 2 11537 fi 11538 done 11539done 11540fi 11541rm -f core conftest.err conftest.$ac_objext \ 11542 conftest$ac_exeext conftest.$ac_ext 11543fi # $ac_x_libraries = no 11544 11545case $ac_x_includes,$ac_x_libraries in #( 11546 no,* | *,no | *\'*) 11547 # Didn't find X, or a directory has "'" in its name. 11548 ac_cv_have_x="have_x=no";; #( 11549 *) 11550 # Record where we found X for the cache. 11551 ac_cv_have_x="have_x=yes\ 11552 ac_x_includes='$ac_x_includes'\ 11553 ac_x_libraries='$ac_x_libraries'" 11554esac 11555fi 11556;; #( 11557 *) have_x=yes;; 11558 esac 11559 eval "$ac_cv_have_x" 11560fi # $with_x != no 11561 11562if test "$have_x" != yes; then 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 11564$as_echo "$have_x" >&6; } 11565 no_x=yes 11566else 11567 # If each of the values was on the command line, it overrides each guess. 11568 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11569 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11570 # Update the cache value to reflect the command line values. 11571 ac_cv_have_x="have_x=yes\ 11572 ac_x_includes='$x_includes'\ 11573 ac_x_libraries='$x_libraries'" 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 11575$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 11576fi 11577 11578if test "$no_x" = yes; then 11579 # Not all programs may use this symbol, but it does not hurt to define it. 11580 11581$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 11582 11583 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 11584else 11585 if test -n "$x_includes"; then 11586 X_CFLAGS="$X_CFLAGS -I$x_includes" 11587 fi 11588 11589 # It would also be nice to do this for all -L options, not just this one. 11590 if test -n "$x_libraries"; then 11591 X_LIBS="$X_LIBS -L$x_libraries" 11592 # For Solaris; some versions of Sun CC require a space after -R and 11593 # others require no space. Words are not sufficient . . . . 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 11595$as_echo_n "checking whether -R must be followed by a space... " >&6; } 11596 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 11597 ac_xsave_c_werror_flag=$ac_c_werror_flag 11598 ac_c_werror_flag=yes 11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11600/* end confdefs.h. */ 11601 11602int 11603main () 11604{ 11605 11606 ; 11607 return 0; 11608} 11609_ACEOF 11610if ac_fn_c_try_link "$LINENO"; then : 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11612$as_echo "no" >&6; } 11613 X_LIBS="$X_LIBS -R$x_libraries" 11614else 11615 LIBS="$ac_xsave_LIBS -R $x_libraries" 11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11617/* end confdefs.h. */ 11618 11619int 11620main () 11621{ 11622 11623 ; 11624 return 0; 11625} 11626_ACEOF 11627if ac_fn_c_try_link "$LINENO"; then : 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11629$as_echo "yes" >&6; } 11630 X_LIBS="$X_LIBS -R $x_libraries" 11631else 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 11633$as_echo "neither works" >&6; } 11634fi 11635rm -f core conftest.err conftest.$ac_objext \ 11636 conftest$ac_exeext conftest.$ac_ext 11637fi 11638rm -f core conftest.err conftest.$ac_objext \ 11639 conftest$ac_exeext conftest.$ac_ext 11640 ac_c_werror_flag=$ac_xsave_c_werror_flag 11641 LIBS=$ac_xsave_LIBS 11642 fi 11643 11644 # Check for system-dependent libraries X programs must link with. 11645 # Do this before checking for the system-independent R6 libraries 11646 # (-lICE), since we may need -lsocket or whatever for X linking. 11647 11648 if test "$ISC" = yes; then 11649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 11650 else 11651 # Martyn Johnson says this is needed for Ultrix, if the X 11652 # libraries were built with DECnet support. And Karl Berry says 11653 # the Alpha needs dnet_stub (dnet does not exist). 11654 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11656/* end confdefs.h. */ 11657 11658/* Override any GCC internal prototype to avoid an error. 11659 Use char because int might match the return type of a GCC 11660 builtin and then its argument prototype would still apply. */ 11661#ifdef __cplusplus 11662extern "C" 11663#endif 11664char XOpenDisplay (); 11665int 11666main () 11667{ 11668return XOpenDisplay (); 11669 ; 11670 return 0; 11671} 11672_ACEOF 11673if ac_fn_c_try_link "$LINENO"; then : 11674 11675else 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 11677$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 11678if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 11679 $as_echo_n "(cached) " >&6 11680else 11681 ac_check_lib_save_LIBS=$LIBS 11682LIBS="-ldnet $LIBS" 11683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11684/* end confdefs.h. */ 11685 11686/* Override any GCC internal prototype to avoid an error. 11687 Use char because int might match the return type of a GCC 11688 builtin and then its argument prototype would still apply. */ 11689#ifdef __cplusplus 11690extern "C" 11691#endif 11692char dnet_ntoa (); 11693int 11694main () 11695{ 11696return dnet_ntoa (); 11697 ; 11698 return 0; 11699} 11700_ACEOF 11701if ac_fn_c_try_link "$LINENO"; then : 11702 ac_cv_lib_dnet_dnet_ntoa=yes 11703else 11704 ac_cv_lib_dnet_dnet_ntoa=no 11705fi 11706rm -f core conftest.err conftest.$ac_objext \ 11707 conftest$ac_exeext conftest.$ac_ext 11708LIBS=$ac_check_lib_save_LIBS 11709fi 11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 11711$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 11712if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 11713 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 11714fi 11715 11716 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 11718$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 11719if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 11720 $as_echo_n "(cached) " >&6 11721else 11722 ac_check_lib_save_LIBS=$LIBS 11723LIBS="-ldnet_stub $LIBS" 11724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725/* end confdefs.h. */ 11726 11727/* Override any GCC internal prototype to avoid an error. 11728 Use char because int might match the return type of a GCC 11729 builtin and then its argument prototype would still apply. */ 11730#ifdef __cplusplus 11731extern "C" 11732#endif 11733char dnet_ntoa (); 11734int 11735main () 11736{ 11737return dnet_ntoa (); 11738 ; 11739 return 0; 11740} 11741_ACEOF 11742if ac_fn_c_try_link "$LINENO"; then : 11743 ac_cv_lib_dnet_stub_dnet_ntoa=yes 11744else 11745 ac_cv_lib_dnet_stub_dnet_ntoa=no 11746fi 11747rm -f core conftest.err conftest.$ac_objext \ 11748 conftest$ac_exeext conftest.$ac_ext 11749LIBS=$ac_check_lib_save_LIBS 11750fi 11751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 11752$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 11753if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 11754 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 11755fi 11756 11757 fi 11758fi 11759rm -f core conftest.err conftest.$ac_objext \ 11760 conftest$ac_exeext conftest.$ac_ext 11761 LIBS="$ac_xsave_LIBS" 11762 11763 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 11764 # to get the SysV transport functions. 11765 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 11766 # needs -lnsl. 11767 # The nsl library prevents programs from opening the X display 11768 # on Irix 5.2, according to T.E. Dickey. 11769 # The functions gethostbyname, getservbyname, and inet_addr are 11770 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 11771 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 11772if test "x$ac_cv_func_gethostbyname" = x""yes; then : 11773 11774fi 11775 11776 if test $ac_cv_func_gethostbyname = no; then 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 11778$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 11779if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 11780 $as_echo_n "(cached) " >&6 11781else 11782 ac_check_lib_save_LIBS=$LIBS 11783LIBS="-lnsl $LIBS" 11784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786 11787/* Override any GCC internal prototype to avoid an error. 11788 Use char because int might match the return type of a GCC 11789 builtin and then its argument prototype would still apply. */ 11790#ifdef __cplusplus 11791extern "C" 11792#endif 11793char gethostbyname (); 11794int 11795main () 11796{ 11797return gethostbyname (); 11798 ; 11799 return 0; 11800} 11801_ACEOF 11802if ac_fn_c_try_link "$LINENO"; then : 11803 ac_cv_lib_nsl_gethostbyname=yes 11804else 11805 ac_cv_lib_nsl_gethostbyname=no 11806fi 11807rm -f core conftest.err conftest.$ac_objext \ 11808 conftest$ac_exeext conftest.$ac_ext 11809LIBS=$ac_check_lib_save_LIBS 11810fi 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 11812$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 11813if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 11814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 11815fi 11816 11817 if test $ac_cv_lib_nsl_gethostbyname = no; then 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 11819$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 11820if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 11821 $as_echo_n "(cached) " >&6 11822else 11823 ac_check_lib_save_LIBS=$LIBS 11824LIBS="-lbsd $LIBS" 11825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11826/* end confdefs.h. */ 11827 11828/* Override any GCC internal prototype to avoid an error. 11829 Use char because int might match the return type of a GCC 11830 builtin and then its argument prototype would still apply. */ 11831#ifdef __cplusplus 11832extern "C" 11833#endif 11834char gethostbyname (); 11835int 11836main () 11837{ 11838return gethostbyname (); 11839 ; 11840 return 0; 11841} 11842_ACEOF 11843if ac_fn_c_try_link "$LINENO"; then : 11844 ac_cv_lib_bsd_gethostbyname=yes 11845else 11846 ac_cv_lib_bsd_gethostbyname=no 11847fi 11848rm -f core conftest.err conftest.$ac_objext \ 11849 conftest$ac_exeext conftest.$ac_ext 11850LIBS=$ac_check_lib_save_LIBS 11851fi 11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 11853$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 11854if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 11855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 11856fi 11857 11858 fi 11859 fi 11860 11861 # lieder@skyler.mavd.honeywell.com says without -lsocket, 11862 # socket/setsockopt and other routines are undefined under SCO ODT 11863 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 11864 # on later versions), says Simon Leinen: it contains gethostby* 11865 # variants that don't use the name server (or something). -lsocket 11866 # must be given before -lnsl if both are needed. We assume that 11867 # if connect needs -lnsl, so does gethostbyname. 11868 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 11869if test "x$ac_cv_func_connect" = x""yes; then : 11870 11871fi 11872 11873 if test $ac_cv_func_connect = no; then 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 11875$as_echo_n "checking for connect in -lsocket... " >&6; } 11876if test "${ac_cv_lib_socket_connect+set}" = set; then : 11877 $as_echo_n "(cached) " >&6 11878else 11879 ac_check_lib_save_LIBS=$LIBS 11880LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11882/* end confdefs.h. */ 11883 11884/* Override any GCC internal prototype to avoid an error. 11885 Use char because int might match the return type of a GCC 11886 builtin and then its argument prototype would still apply. */ 11887#ifdef __cplusplus 11888extern "C" 11889#endif 11890char connect (); 11891int 11892main () 11893{ 11894return connect (); 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_c_try_link "$LINENO"; then : 11900 ac_cv_lib_socket_connect=yes 11901else 11902 ac_cv_lib_socket_connect=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext \ 11905 conftest$ac_exeext conftest.$ac_ext 11906LIBS=$ac_check_lib_save_LIBS 11907fi 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 11909$as_echo "$ac_cv_lib_socket_connect" >&6; } 11910if test "x$ac_cv_lib_socket_connect" = x""yes; then : 11911 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 11912fi 11913 11914 fi 11915 11916 # Guillermo Gomez says -lposix is necessary on A/UX. 11917 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 11918if test "x$ac_cv_func_remove" = x""yes; then : 11919 11920fi 11921 11922 if test $ac_cv_func_remove = no; then 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 11924$as_echo_n "checking for remove in -lposix... " >&6; } 11925if test "${ac_cv_lib_posix_remove+set}" = set; then : 11926 $as_echo_n "(cached) " >&6 11927else 11928 ac_check_lib_save_LIBS=$LIBS 11929LIBS="-lposix $LIBS" 11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11931/* end confdefs.h. */ 11932 11933/* Override any GCC internal prototype to avoid an error. 11934 Use char because int might match the return type of a GCC 11935 builtin and then its argument prototype would still apply. */ 11936#ifdef __cplusplus 11937extern "C" 11938#endif 11939char remove (); 11940int 11941main () 11942{ 11943return remove (); 11944 ; 11945 return 0; 11946} 11947_ACEOF 11948if ac_fn_c_try_link "$LINENO"; then : 11949 ac_cv_lib_posix_remove=yes 11950else 11951 ac_cv_lib_posix_remove=no 11952fi 11953rm -f core conftest.err conftest.$ac_objext \ 11954 conftest$ac_exeext conftest.$ac_ext 11955LIBS=$ac_check_lib_save_LIBS 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 11958$as_echo "$ac_cv_lib_posix_remove" >&6; } 11959if test "x$ac_cv_lib_posix_remove" = x""yes; then : 11960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 11961fi 11962 11963 fi 11964 11965 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 11966 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 11967if test "x$ac_cv_func_shmat" = x""yes; then : 11968 11969fi 11970 11971 if test $ac_cv_func_shmat = no; then 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 11973$as_echo_n "checking for shmat in -lipc... " >&6; } 11974if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 ac_check_lib_save_LIBS=$LIBS 11978LIBS="-lipc $LIBS" 11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981 11982/* Override any GCC internal prototype to avoid an error. 11983 Use char because int might match the return type of a GCC 11984 builtin and then its argument prototype would still apply. */ 11985#ifdef __cplusplus 11986extern "C" 11987#endif 11988char shmat (); 11989int 11990main () 11991{ 11992return shmat (); 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_link "$LINENO"; then : 11998 ac_cv_lib_ipc_shmat=yes 11999else 12000 ac_cv_lib_ipc_shmat=no 12001fi 12002rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004LIBS=$ac_check_lib_save_LIBS 12005fi 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 12007$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 12008if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 12009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 12010fi 12011 12012 fi 12013 fi 12014 12015 # Check for libraries that X11R6 Xt/Xaw programs need. 12016 ac_save_LDFLAGS=$LDFLAGS 12017 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 12018 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 12019 # check for ICE first), but we must link in the order -lSM -lICE or 12020 # we get undefined symbols. So assume we have SM if we have ICE. 12021 # These have to be linked with before -lX11, unlike the other 12022 # libraries we check for below, so use a different variable. 12023 # John Interrante, Karl Berry 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 12025$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 12026if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 12027 $as_echo_n "(cached) " >&6 12028else 12029 ac_check_lib_save_LIBS=$LIBS 12030LIBS="-lICE $X_EXTRA_LIBS $LIBS" 12031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12032/* end confdefs.h. */ 12033 12034/* Override any GCC internal prototype to avoid an error. 12035 Use char because int might match the return type of a GCC 12036 builtin and then its argument prototype would still apply. */ 12037#ifdef __cplusplus 12038extern "C" 12039#endif 12040char IceConnectionNumber (); 12041int 12042main () 12043{ 12044return IceConnectionNumber (); 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049if ac_fn_c_try_link "$LINENO"; then : 12050 ac_cv_lib_ICE_IceConnectionNumber=yes 12051else 12052 ac_cv_lib_ICE_IceConnectionNumber=no 12053fi 12054rm -f core conftest.err conftest.$ac_objext \ 12055 conftest$ac_exeext conftest.$ac_ext 12056LIBS=$ac_check_lib_save_LIBS 12057fi 12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 12059$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 12060if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 12061 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 12062fi 12063 12064 LDFLAGS=$ac_save_LDFLAGS 12065 12066fi 12067 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12069$as_echo_n "checking for ANSI C header files... " >&6; } 12070if test "${ac_cv_header_stdc+set}" = set; then : 12071 $as_echo_n "(cached) " >&6 12072else 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12074/* end confdefs.h. */ 12075#include <stdlib.h> 12076#include <stdarg.h> 12077#include <string.h> 12078#include <float.h> 12079 12080int 12081main () 12082{ 12083 12084 ; 12085 return 0; 12086} 12087_ACEOF 12088if ac_fn_c_try_compile "$LINENO"; then : 12089 ac_cv_header_stdc=yes 12090else 12091 ac_cv_header_stdc=no 12092fi 12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12094 12095if test $ac_cv_header_stdc = yes; then 12096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099#include <string.h> 12100 12101_ACEOF 12102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12103 $EGREP "memchr" >/dev/null 2>&1; then : 12104 12105else 12106 ac_cv_header_stdc=no 12107fi 12108rm -f conftest* 12109 12110fi 12111 12112if test $ac_cv_header_stdc = yes; then 12113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116#include <stdlib.h> 12117 12118_ACEOF 12119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12120 $EGREP "free" >/dev/null 2>&1; then : 12121 12122else 12123 ac_cv_header_stdc=no 12124fi 12125rm -f conftest* 12126 12127fi 12128 12129if test $ac_cv_header_stdc = yes; then 12130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12131 if test "$cross_compiling" = yes; then : 12132 : 12133else 12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12135/* end confdefs.h. */ 12136#include <ctype.h> 12137#include <stdlib.h> 12138#if ((' ' & 0x0FF) == 0x020) 12139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12141#else 12142# define ISLOWER(c) \ 12143 (('a' <= (c) && (c) <= 'i') \ 12144 || ('j' <= (c) && (c) <= 'r') \ 12145 || ('s' <= (c) && (c) <= 'z')) 12146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12147#endif 12148 12149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12150int 12151main () 12152{ 12153 int i; 12154 for (i = 0; i < 256; i++) 12155 if (XOR (islower (i), ISLOWER (i)) 12156 || toupper (i) != TOUPPER (i)) 12157 return 2; 12158 return 0; 12159} 12160_ACEOF 12161if ac_fn_c_try_run "$LINENO"; then : 12162 12163else 12164 ac_cv_header_stdc=no 12165fi 12166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12167 conftest.$ac_objext conftest.beam conftest.$ac_ext 12168fi 12169 12170fi 12171fi 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12173$as_echo "$ac_cv_header_stdc" >&6; } 12174if test $ac_cv_header_stdc = yes; then 12175 12176$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12177 12178fi 12179 12180for ac_header in sys/time.h 12181do : 12182 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 12183if test "x$ac_cv_header_sys_time_h" = x""yes; then : 12184 cat >>confdefs.h <<_ACEOF 12185#define HAVE_SYS_TIME_H 1 12186_ACEOF 12187 12188fi 12189 12190done 12191 12192 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12194$as_echo_n "checking for inline... " >&6; } 12195if test "${ac_cv_c_inline+set}" = set; then : 12196 $as_echo_n "(cached) " >&6 12197else 12198 ac_cv_c_inline=no 12199for ac_kw in inline __inline__ __inline; do 12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12201/* end confdefs.h. */ 12202#ifndef __cplusplus 12203typedef int foo_t; 12204static $ac_kw foo_t static_foo () {return 0; } 12205$ac_kw foo_t foo () {return 0; } 12206#endif 12207 12208_ACEOF 12209if ac_fn_c_try_compile "$LINENO"; then : 12210 ac_cv_c_inline=$ac_kw 12211fi 12212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12213 test "$ac_cv_c_inline" != no && break 12214done 12215 12216fi 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12218$as_echo "$ac_cv_c_inline" >&6; } 12219 12220case $ac_cv_c_inline in 12221 inline | yes) ;; 12222 *) 12223 case $ac_cv_c_inline in 12224 no) ac_val=;; 12225 *) ac_val=$ac_cv_c_inline;; 12226 esac 12227 cat >>confdefs.h <<_ACEOF 12228#ifndef __cplusplus 12229#define inline $ac_val 12230#endif 12231_ACEOF 12232 ;; 12233esac 12234 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12236$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12237if test "${ac_cv_header_time+set}" = set; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242#include <sys/types.h> 12243#include <sys/time.h> 12244#include <time.h> 12245 12246int 12247main () 12248{ 12249if ((struct tm *) 0) 12250return 0; 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255if ac_fn_c_try_compile "$LINENO"; then : 12256 ac_cv_header_time=yes 12257else 12258 ac_cv_header_time=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12263$as_echo "$ac_cv_header_time" >&6; } 12264if test $ac_cv_header_time = yes; then 12265 12266$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12267 12268fi 12269 12270 12271 12272 12273 12274 for ac_header in $ac_header_list 12275do : 12276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12277ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12278" 12279eval as_val=\$$as_ac_Header 12280 if test "x$as_val" = x""yes; then : 12281 cat >>confdefs.h <<_ACEOF 12282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12283_ACEOF 12284 12285fi 12286 12287done 12288 12289 12290 12291 12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 12293$as_echo_n "checking whether utime accepts a null argument... " >&6; } 12294if test "${ac_cv_func_utime_null+set}" = set; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 rm -f conftest.data; >conftest.data 12298# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 12299if test "$cross_compiling" = yes; then : 12300 ac_cv_func_utime_null='guessing yes' 12301else 12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12303/* end confdefs.h. */ 12304$ac_includes_default 12305 #ifdef HAVE_UTIME_H 12306 # include <utime.h> 12307 #endif 12308int 12309main () 12310{ 12311struct stat s, t; 12312 return ! (stat ("conftest.data", &s) == 0 12313 && utime ("conftest.data", 0) == 0 12314 && stat ("conftest.data", &t) == 0 12315 && t.st_mtime >= s.st_mtime 12316 && t.st_mtime - s.st_mtime < 120); 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321if ac_fn_c_try_run "$LINENO"; then : 12322 ac_cv_func_utime_null=yes 12323else 12324 ac_cv_func_utime_null=no 12325fi 12326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12327 conftest.$ac_objext conftest.beam conftest.$ac_ext 12328fi 12329 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 12332$as_echo "$ac_cv_func_utime_null" >&6; } 12333if test "x$ac_cv_func_utime_null" != xno; then 12334 ac_cv_func_utime_null=yes 12335 12336$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h 12337 12338fi 12339rm -f conftest.data 12340 12341for ac_func in gettimeofday mkdir strdup strstr 12342do : 12343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12345eval as_val=\$$as_ac_var 12346 if test "x$as_val" = x""yes; then : 12347 cat >>confdefs.h <<_ACEOF 12348#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12349_ACEOF 12350 12351fi 12352done 12353 12354 12355opt_gd= 12356 12357# Check whether --with-z was given. 12358if test "${with_z+set}" = set; then : 12359 withval=$with_z; opt_z=$withval 12360fi 12361 12362 12363# Check whether --with-png was given. 12364if test "${with_png+set}" = set; then : 12365 withval=$with_png; opt_png=$withval 12366fi 12367 12368 12369case "$with_z" in 12370 yes|no) as_fn_error " 12371*** Directory must be specified for --with-z" "$LINENO" 5 12372 ;; 12373 "") 12374 Z_CFLAGS= 12375 Z_LIBS=-lz 12376 ;; 12377 *) 12378 if test -f $with_z/include/z.h 12379 then 12380 Z_CFLAGS=-I$with_z/include 12381 else 12382 Z_CFLAGS=-I$with_z 12383 fi 12384 if test -f $with_z/lib/libz.a 12385 then 12386 Z_LIBS=$with_z/lib/libz.a 12387 else 12388 Z_LIBS=$with_z/libz.a 12389 fi 12390 ;; 12391esac 12392 12393case "$with_png" in 12394 yes|no) as_fn_error " 12395*** Directory must be specified for --with-png" "$LINENO" 5 12396 ;; 12397 "") 12398 PNG_CFLAGS= 12399 PNG_LIBS= 12400 ;; 12401 *) 12402 if test -f $with_png/lib/png.h 12403 then 12404 PNG_CFLAGS=-I$with_png/lib 12405 else 12406 PNG_CFLAGS=-I$with_png/include/X11 12407 fi 12408 if test -f $with_png/lib/libPng.a 12409 then 12410 PNG_LIBS="-L$with_png/lib" 12411 else 12412 PNG_LIBS="-L$with_png" 12413 fi 12414 ;; 12415esac 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425ac_config_files="$ac_config_files Makefile lib/Makefile games/Makefile tests/Makefile" 12426 12427cat >confcache <<\_ACEOF 12428# This file is a shell script that caches the results of configure 12429# tests run on this system so they can be shared between configure 12430# scripts and configure runs, see configure's option --config-cache. 12431# It is not useful on other systems. If it contains results you don't 12432# want to keep, you may remove or edit it. 12433# 12434# config.status only pays attention to the cache file if you give it 12435# the --recheck option to rerun configure. 12436# 12437# `ac_cv_env_foo' variables (set or unset) will be overridden when 12438# loading this file, other *unset* `ac_cv_foo' will be assigned the 12439# following values. 12440 12441_ACEOF 12442 12443# The following way of writing the cache mishandles newlines in values, 12444# but we know of no workaround that is simple, portable, and efficient. 12445# So, we kill variables containing newlines. 12446# Ultrix sh set writes to stderr and can't be redirected directly, 12447# and sets the high bit in the cache file unless we assign to the vars. 12448( 12449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12450 eval ac_val=\$$ac_var 12451 case $ac_val in #( 12452 *${as_nl}*) 12453 case $ac_var in #( 12454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12456 esac 12457 case $ac_var in #( 12458 _ | IFS | as_nl) ;; #( 12459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12460 *) { eval $ac_var=; unset $ac_var;} ;; 12461 esac ;; 12462 esac 12463 done 12464 12465 (set) 2>&1 | 12466 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12467 *${as_nl}ac_space=\ *) 12468 # `set' does not quote correctly, so add quotes: double-quote 12469 # substitution turns \\\\ into \\, and sed turns \\ into \. 12470 sed -n \ 12471 "s/'/'\\\\''/g; 12472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12473 ;; #( 12474 *) 12475 # `set' quotes correctly as required by POSIX, so do not add quotes. 12476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12477 ;; 12478 esac | 12479 sort 12480) | 12481 sed ' 12482 /^ac_cv_env_/b end 12483 t clear 12484 :clear 12485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12486 t end 12487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12488 :end' >>confcache 12489if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12490 if test -w "$cache_file"; then 12491 test "x$cache_file" != "x/dev/null" && 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12493$as_echo "$as_me: updating cache $cache_file" >&6;} 12494 cat confcache >$cache_file 12495 else 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12497$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12498 fi 12499fi 12500rm -f confcache 12501 12502test "x$prefix" = xNONE && prefix=$ac_default_prefix 12503# Let make expand exec_prefix. 12504test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12505 12506# Transform confdefs.h into DEFS. 12507# Protect against shell expansion while executing Makefile rules. 12508# Protect against Makefile macro expansion. 12509# 12510# If the first sed substitution is executed (which looks for macros that 12511# take arguments), then branch to the quote section. Otherwise, 12512# look for a macro that doesn't take arguments. 12513ac_script=' 12514:mline 12515/\\$/{ 12516 N 12517 s,\\\n,, 12518 b mline 12519} 12520t clear 12521:clear 12522s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12523t quote 12524s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12525t quote 12526b any 12527:quote 12528s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12529s/\[/\\&/g 12530s/\]/\\&/g 12531s/\$/$$/g 12532H 12533:any 12534${ 12535 g 12536 s/^\n// 12537 s/\n/ /g 12538 p 12539} 12540' 12541DEFS=`sed -n "$ac_script" confdefs.h` 12542 12543 12544ac_libobjs= 12545ac_ltlibobjs= 12546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12547 # 1. Remove the extension, and $U if already installed. 12548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12551 # will be set to the directory where LIBOBJS objects are built. 12552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12554done 12555LIBOBJS=$ac_libobjs 12556 12557LTLIBOBJS=$ac_ltlibobjs 12558 12559 12560 if test -n "$EXEEXT"; then 12561 am__EXEEXT_TRUE= 12562 am__EXEEXT_FALSE='#' 12563else 12564 am__EXEEXT_TRUE='#' 12565 am__EXEEXT_FALSE= 12566fi 12567 12568if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12569 as_fn_error "conditional \"AMDEP\" was never defined. 12570Usually this means the macro was only invoked conditionally." "$LINENO" 5 12571fi 12572if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12573 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12574Usually this means the macro was only invoked conditionally." "$LINENO" 5 12575fi 12576if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12577 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12578Usually this means the macro was only invoked conditionally." "$LINENO" 5 12579fi 12580 12581: ${CONFIG_STATUS=./config.status} 12582ac_write_fail=0 12583ac_clean_files_save=$ac_clean_files 12584ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12585{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12586$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12587as_write_fail=0 12588cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12589#! $SHELL 12590# Generated by $as_me. 12591# Run this file to recreate the current configuration. 12592# Compiler output produced by configure, useful for debugging 12593# configure, is in config.log if it exists. 12594 12595debug=false 12596ac_cs_recheck=false 12597ac_cs_silent=false 12598 12599SHELL=\${CONFIG_SHELL-$SHELL} 12600export SHELL 12601_ASEOF 12602cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12603## -------------------- ## 12604## M4sh Initialization. ## 12605## -------------------- ## 12606 12607# Be more Bourne compatible 12608DUALCASE=1; export DUALCASE # for MKS sh 12609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12610 emulate sh 12611 NULLCMD=: 12612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12613 # is contrary to our usage. Disable this feature. 12614 alias -g '${1+"$@"}'='"$@"' 12615 setopt NO_GLOB_SUBST 12616else 12617 case `(set -o) 2>/dev/null` in #( 12618 *posix*) : 12619 set -o posix ;; #( 12620 *) : 12621 ;; 12622esac 12623fi 12624 12625 12626as_nl=' 12627' 12628export as_nl 12629# Printing a long string crashes Solaris 7 /usr/bin/printf. 12630as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12631as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12633# Prefer a ksh shell builtin over an external printf program on Solaris, 12634# but without wasting forks for bash or zsh. 12635if test -z "$BASH_VERSION$ZSH_VERSION" \ 12636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12637 as_echo='print -r --' 12638 as_echo_n='print -rn --' 12639elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12640 as_echo='printf %s\n' 12641 as_echo_n='printf %s' 12642else 12643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12645 as_echo_n='/usr/ucb/echo -n' 12646 else 12647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12648 as_echo_n_body='eval 12649 arg=$1; 12650 case $arg in #( 12651 *"$as_nl"*) 12652 expr "X$arg" : "X\\(.*\\)$as_nl"; 12653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12654 esac; 12655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12656 ' 12657 export as_echo_n_body 12658 as_echo_n='sh -c $as_echo_n_body as_echo' 12659 fi 12660 export as_echo_body 12661 as_echo='sh -c $as_echo_body as_echo' 12662fi 12663 12664# The user is always right. 12665if test "${PATH_SEPARATOR+set}" != set; then 12666 PATH_SEPARATOR=: 12667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12669 PATH_SEPARATOR=';' 12670 } 12671fi 12672 12673 12674# IFS 12675# We need space, tab and new line, in precisely that order. Quoting is 12676# there to prevent editors from complaining about space-tab. 12677# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12678# splitting by setting IFS to empty value.) 12679IFS=" "" $as_nl" 12680 12681# Find who we are. Look in the path if we contain no directory separator. 12682case $0 in #(( 12683 *[\\/]* ) as_myself=$0 ;; 12684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12685for as_dir in $PATH 12686do 12687 IFS=$as_save_IFS 12688 test -z "$as_dir" && as_dir=. 12689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12690 done 12691IFS=$as_save_IFS 12692 12693 ;; 12694esac 12695# We did not find ourselves, most probably we were run as `sh COMMAND' 12696# in which case we are not to be found in the path. 12697if test "x$as_myself" = x; then 12698 as_myself=$0 12699fi 12700if test ! -f "$as_myself"; then 12701 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12702 exit 1 12703fi 12704 12705# Unset variables that we do not need and which cause bugs (e.g. in 12706# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12707# suppresses any "Segmentation fault" message there. '((' could 12708# trigger a bug in pdksh 5.2.14. 12709for as_var in BASH_ENV ENV MAIL MAILPATH 12710do eval test x\${$as_var+set} = xset \ 12711 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12712done 12713PS1='$ ' 12714PS2='> ' 12715PS4='+ ' 12716 12717# NLS nuisances. 12718LC_ALL=C 12719export LC_ALL 12720LANGUAGE=C 12721export LANGUAGE 12722 12723# CDPATH. 12724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12725 12726 12727# as_fn_error ERROR [LINENO LOG_FD] 12728# --------------------------------- 12729# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12730# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12731# script with status $?, using 1 if that was 0. 12732as_fn_error () 12733{ 12734 as_status=$?; test $as_status -eq 0 && as_status=1 12735 if test "$3"; then 12736 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12737 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12738 fi 12739 $as_echo "$as_me: error: $1" >&2 12740 as_fn_exit $as_status 12741} # as_fn_error 12742 12743 12744# as_fn_set_status STATUS 12745# ----------------------- 12746# Set $? to STATUS, without forking. 12747as_fn_set_status () 12748{ 12749 return $1 12750} # as_fn_set_status 12751 12752# as_fn_exit STATUS 12753# ----------------- 12754# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12755as_fn_exit () 12756{ 12757 set +e 12758 as_fn_set_status $1 12759 exit $1 12760} # as_fn_exit 12761 12762# as_fn_unset VAR 12763# --------------- 12764# Portably unset VAR. 12765as_fn_unset () 12766{ 12767 { eval $1=; unset $1;} 12768} 12769as_unset=as_fn_unset 12770# as_fn_append VAR VALUE 12771# ---------------------- 12772# Append the text in VALUE to the end of the definition contained in VAR. Take 12773# advantage of any shell optimizations that allow amortized linear growth over 12774# repeated appends, instead of the typical quadratic growth present in naive 12775# implementations. 12776if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12777 eval 'as_fn_append () 12778 { 12779 eval $1+=\$2 12780 }' 12781else 12782 as_fn_append () 12783 { 12784 eval $1=\$$1\$2 12785 } 12786fi # as_fn_append 12787 12788# as_fn_arith ARG... 12789# ------------------ 12790# Perform arithmetic evaluation on the ARGs, and store the result in the 12791# global $as_val. Take advantage of shells that can avoid forks. The arguments 12792# must be portable across $(()) and expr. 12793if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12794 eval 'as_fn_arith () 12795 { 12796 as_val=$(( $* )) 12797 }' 12798else 12799 as_fn_arith () 12800 { 12801 as_val=`expr "$@" || test $? -eq 1` 12802 } 12803fi # as_fn_arith 12804 12805 12806if expr a : '\(a\)' >/dev/null 2>&1 && 12807 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12808 as_expr=expr 12809else 12810 as_expr=false 12811fi 12812 12813if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12814 as_basename=basename 12815else 12816 as_basename=false 12817fi 12818 12819if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12820 as_dirname=dirname 12821else 12822 as_dirname=false 12823fi 12824 12825as_me=`$as_basename -- "$0" || 12826$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12827 X"$0" : 'X\(//\)$' \| \ 12828 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12829$as_echo X/"$0" | 12830 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12831 s//\1/ 12832 q 12833 } 12834 /^X\/\(\/\/\)$/{ 12835 s//\1/ 12836 q 12837 } 12838 /^X\/\(\/\).*/{ 12839 s//\1/ 12840 q 12841 } 12842 s/.*/./; q'` 12843 12844# Avoid depending upon Character Ranges. 12845as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12847as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12848as_cr_digits='0123456789' 12849as_cr_alnum=$as_cr_Letters$as_cr_digits 12850 12851ECHO_C= ECHO_N= ECHO_T= 12852case `echo -n x` in #((((( 12853-n*) 12854 case `echo 'xy\c'` in 12855 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12856 xy) ECHO_C='\c';; 12857 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12858 ECHO_T=' ';; 12859 esac;; 12860*) 12861 ECHO_N='-n';; 12862esac 12863 12864rm -f conf$$ conf$$.exe conf$$.file 12865if test -d conf$$.dir; then 12866 rm -f conf$$.dir/conf$$.file 12867else 12868 rm -f conf$$.dir 12869 mkdir conf$$.dir 2>/dev/null 12870fi 12871if (echo >conf$$.file) 2>/dev/null; then 12872 if ln -s conf$$.file conf$$ 2>/dev/null; then 12873 as_ln_s='ln -s' 12874 # ... but there are two gotchas: 12875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12877 # In both cases, we have to default to `cp -p'. 12878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12879 as_ln_s='cp -p' 12880 elif ln conf$$.file conf$$ 2>/dev/null; then 12881 as_ln_s=ln 12882 else 12883 as_ln_s='cp -p' 12884 fi 12885else 12886 as_ln_s='cp -p' 12887fi 12888rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12889rmdir conf$$.dir 2>/dev/null 12890 12891 12892# as_fn_mkdir_p 12893# ------------- 12894# Create "$as_dir" as a directory, including parents if necessary. 12895as_fn_mkdir_p () 12896{ 12897 12898 case $as_dir in #( 12899 -*) as_dir=./$as_dir;; 12900 esac 12901 test -d "$as_dir" || eval $as_mkdir_p || { 12902 as_dirs= 12903 while :; do 12904 case $as_dir in #( 12905 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12906 *) as_qdir=$as_dir;; 12907 esac 12908 as_dirs="'$as_qdir' $as_dirs" 12909 as_dir=`$as_dirname -- "$as_dir" || 12910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12911 X"$as_dir" : 'X\(//\)[^/]' \| \ 12912 X"$as_dir" : 'X\(//\)$' \| \ 12913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12914$as_echo X"$as_dir" | 12915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12916 s//\1/ 12917 q 12918 } 12919 /^X\(\/\/\)[^/].*/{ 12920 s//\1/ 12921 q 12922 } 12923 /^X\(\/\/\)$/{ 12924 s//\1/ 12925 q 12926 } 12927 /^X\(\/\).*/{ 12928 s//\1/ 12929 q 12930 } 12931 s/.*/./; q'` 12932 test -d "$as_dir" && break 12933 done 12934 test -z "$as_dirs" || eval "mkdir $as_dirs" 12935 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12936 12937 12938} # as_fn_mkdir_p 12939if mkdir -p . 2>/dev/null; then 12940 as_mkdir_p='mkdir -p "$as_dir"' 12941else 12942 test -d ./-p && rmdir ./-p 12943 as_mkdir_p=false 12944fi 12945 12946if test -x / >/dev/null 2>&1; then 12947 as_test_x='test -x' 12948else 12949 if ls -dL / >/dev/null 2>&1; then 12950 as_ls_L_option=L 12951 else 12952 as_ls_L_option= 12953 fi 12954 as_test_x=' 12955 eval sh -c '\'' 12956 if test -d "$1"; then 12957 test -d "$1/."; 12958 else 12959 case $1 in #( 12960 -*)set "./$1";; 12961 esac; 12962 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12963 ???[sx]*):;;*)false;;esac;fi 12964 '\'' sh 12965 ' 12966fi 12967as_executable_p=$as_test_x 12968 12969# Sed expression to map a string onto a valid CPP name. 12970as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12971 12972# Sed expression to map a string onto a valid variable name. 12973as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12974 12975 12976exec 6>&1 12977## ----------------------------------- ## 12978## Main body of $CONFIG_STATUS script. ## 12979## ----------------------------------- ## 12980_ASEOF 12981test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12982 12983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12984# Save the log message, to keep $0 and so on meaningful, and to 12985# report actual input values of CONFIG_FILES etc. instead of their 12986# values after options handling. 12987ac_log=" 12988This file was extended by ace $as_me 1.4, which was 12989generated by GNU Autoconf 2.65. Invocation command line was 12990 12991 CONFIG_FILES = $CONFIG_FILES 12992 CONFIG_HEADERS = $CONFIG_HEADERS 12993 CONFIG_LINKS = $CONFIG_LINKS 12994 CONFIG_COMMANDS = $CONFIG_COMMANDS 12995 $ $0 $@ 12996 12997on `(hostname || uname -n) 2>/dev/null | sed 1q` 12998" 12999 13000_ACEOF 13001 13002case $ac_config_files in *" 13003"*) set x $ac_config_files; shift; ac_config_files=$*;; 13004esac 13005 13006 13007 13008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13009# Files that config.status was made for. 13010config_files="$ac_config_files" 13011config_commands="$ac_config_commands" 13012 13013_ACEOF 13014 13015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13016ac_cs_usage="\ 13017\`$as_me' instantiates files and other configuration actions 13018from templates according to the current configuration. Unless the files 13019and actions are specified as TAGs, all are instantiated by default. 13020 13021Usage: $0 [OPTION]... [TAG]... 13022 13023 -h, --help print this help, then exit 13024 -V, --version print version number and configuration settings, then exit 13025 --config print configuration, then exit 13026 -q, --quiet, --silent 13027 do not print progress messages 13028 -d, --debug don't remove temporary files 13029 --recheck update $as_me by reconfiguring in the same conditions 13030 --file=FILE[:TEMPLATE] 13031 instantiate the configuration file FILE 13032 13033Configuration files: 13034$config_files 13035 13036Configuration commands: 13037$config_commands 13038 13039Report bugs to the package provider." 13040 13041_ACEOF 13042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13043ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13044ac_cs_version="\\ 13045ace config.status 1.4 13046configured by $0, generated by GNU Autoconf 2.65, 13047 with options \\"\$ac_cs_config\\" 13048 13049Copyright (C) 2009 Free Software Foundation, Inc. 13050This config.status script is free software; the Free Software Foundation 13051gives unlimited permission to copy, distribute and modify it." 13052 13053ac_pwd='$ac_pwd' 13054srcdir='$srcdir' 13055INSTALL='$INSTALL' 13056MKDIR_P='$MKDIR_P' 13057AWK='$AWK' 13058test -n "\$AWK" || AWK=awk 13059_ACEOF 13060 13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13062# The default lists apply if the user does not specify any file. 13063ac_need_defaults=: 13064while test $# != 0 13065do 13066 case $1 in 13067 --*=*) 13068 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13070 ac_shift=: 13071 ;; 13072 *) 13073 ac_option=$1 13074 ac_optarg=$2 13075 ac_shift=shift 13076 ;; 13077 esac 13078 13079 case $ac_option in 13080 # Handling of the options. 13081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13082 ac_cs_recheck=: ;; 13083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13084 $as_echo "$ac_cs_version"; exit ;; 13085 --config | --confi | --conf | --con | --co | --c ) 13086 $as_echo "$ac_cs_config"; exit ;; 13087 --debug | --debu | --deb | --de | --d | -d ) 13088 debug=: ;; 13089 --file | --fil | --fi | --f ) 13090 $ac_shift 13091 case $ac_optarg in 13092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13093 esac 13094 as_fn_append CONFIG_FILES " '$ac_optarg'" 13095 ac_need_defaults=false;; 13096 --he | --h | --help | --hel | -h ) 13097 $as_echo "$ac_cs_usage"; exit ;; 13098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13099 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13100 ac_cs_silent=: ;; 13101 13102 # This is an error. 13103 -*) as_fn_error "unrecognized option: \`$1' 13104Try \`$0 --help' for more information." ;; 13105 13106 *) as_fn_append ac_config_targets " $1" 13107 ac_need_defaults=false ;; 13108 13109 esac 13110 shift 13111done 13112 13113ac_configure_extra_args= 13114 13115if $ac_cs_silent; then 13116 exec 6>/dev/null 13117 ac_configure_extra_args="$ac_configure_extra_args --silent" 13118fi 13119 13120_ACEOF 13121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13122if \$ac_cs_recheck; then 13123 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13124 shift 13125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13126 CONFIG_SHELL='$SHELL' 13127 export CONFIG_SHELL 13128 exec "\$@" 13129fi 13130 13131_ACEOF 13132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13133exec 5>>config.log 13134{ 13135 echo 13136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13137## Running $as_me. ## 13138_ASBOX 13139 $as_echo "$ac_log" 13140} >&5 13141 13142_ACEOF 13143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13144# 13145# INIT-COMMANDS 13146# 13147AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13148 13149 13150# The HP-UX ksh and POSIX shell print the target directory to stdout 13151# if CDPATH is set. 13152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13153 13154sed_quote_subst='$sed_quote_subst' 13155double_quote_subst='$double_quote_subst' 13156delay_variable_subst='$delay_variable_subst' 13157macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13158macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13159enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13160enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13161pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13162enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13163host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13164host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13165host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13166build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13167build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13168build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13169SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13170Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13171GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13172EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13173FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13174LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13175NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13176LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13177max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13178ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13179exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13180lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13181lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13182lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13183reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13184reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13185OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13186deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13187file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13188AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13189AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13190STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13191RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13192old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13193old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13194old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13195CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13196CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13197compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13198GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13199lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13200lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13201lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13202lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13203objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13204SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13205ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13206MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13207lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13208lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13209lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13210lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13211lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13212need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13213DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13214NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13215LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13216OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13217OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13218libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13219shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13220extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13221archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13222enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13223export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13224whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13225compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13226old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13227old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13228archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13229archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13230module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13231module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13232with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13233allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13234no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13235hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13236hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13237hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13238hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13239hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13240hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13241hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13242hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13243inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13244link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13245fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13246always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13247export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13248exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13249include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13250prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13251file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13252variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13253need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13254need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13255version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13256runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13257shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13258shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13259libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13260library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13261soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13262postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13263postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13264finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13265finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13266hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13267sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13268sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13269hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13270enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13271enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13272enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13273old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13274striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13275 13276LTCC='$LTCC' 13277LTCFLAGS='$LTCFLAGS' 13278compiler='$compiler_DEFAULT' 13279 13280# Quote evaled strings. 13281for var in SED \ 13282GREP \ 13283EGREP \ 13284FGREP \ 13285LD \ 13286NM \ 13287LN_S \ 13288lt_SP2NL \ 13289lt_NL2SP \ 13290reload_flag \ 13291OBJDUMP \ 13292deplibs_check_method \ 13293file_magic_cmd \ 13294AR \ 13295AR_FLAGS \ 13296STRIP \ 13297RANLIB \ 13298CC \ 13299CFLAGS \ 13300compiler \ 13301lt_cv_sys_global_symbol_pipe \ 13302lt_cv_sys_global_symbol_to_cdecl \ 13303lt_cv_sys_global_symbol_to_c_name_address \ 13304lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13305SHELL \ 13306ECHO \ 13307lt_prog_compiler_no_builtin_flag \ 13308lt_prog_compiler_wl \ 13309lt_prog_compiler_pic \ 13310lt_prog_compiler_static \ 13311lt_cv_prog_compiler_c_o \ 13312need_locks \ 13313DSYMUTIL \ 13314NMEDIT \ 13315LIPO \ 13316OTOOL \ 13317OTOOL64 \ 13318shrext_cmds \ 13319export_dynamic_flag_spec \ 13320whole_archive_flag_spec \ 13321compiler_needs_object \ 13322with_gnu_ld \ 13323allow_undefined_flag \ 13324no_undefined_flag \ 13325hardcode_libdir_flag_spec \ 13326hardcode_libdir_flag_spec_ld \ 13327hardcode_libdir_separator \ 13328fix_srcfile_path \ 13329exclude_expsyms \ 13330include_expsyms \ 13331file_list_spec \ 13332variables_saved_for_relink \ 13333libname_spec \ 13334library_names_spec \ 13335soname_spec \ 13336finish_eval \ 13337old_striplib \ 13338striplib; do 13339 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13340 *[\\\\\\\`\\"\\\$]*) 13341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13342 ;; 13343 *) 13344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13345 ;; 13346 esac 13347done 13348 13349# Double-quote double-evaled strings. 13350for var in reload_cmds \ 13351old_postinstall_cmds \ 13352old_postuninstall_cmds \ 13353old_archive_cmds \ 13354extract_expsyms_cmds \ 13355old_archive_from_new_cmds \ 13356old_archive_from_expsyms_cmds \ 13357archive_cmds \ 13358archive_expsym_cmds \ 13359module_cmds \ 13360module_expsym_cmds \ 13361export_symbols_cmds \ 13362prelink_cmds \ 13363postinstall_cmds \ 13364postuninstall_cmds \ 13365finish_cmds \ 13366sys_lib_search_path_spec \ 13367sys_lib_dlsearch_path_spec; do 13368 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13369 *[\\\\\\\`\\"\\\$]*) 13370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13371 ;; 13372 *) 13373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13374 ;; 13375 esac 13376done 13377 13378# Fix-up fallback echo if it was mangled by the above quoting rules. 13379case \$lt_ECHO in 13380*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13381 ;; 13382esac 13383 13384ac_aux_dir='$ac_aux_dir' 13385xsi_shell='$xsi_shell' 13386lt_shell_append='$lt_shell_append' 13387 13388# See if we are running on zsh, and set the options which allow our 13389# commands through without removal of \ escapes INIT. 13390if test -n "\${ZSH_VERSION+set}" ; then 13391 setopt NO_GLOB_SUBST 13392fi 13393 13394 13395 PACKAGE='$PACKAGE' 13396 VERSION='$VERSION' 13397 TIMESTAMP='$TIMESTAMP' 13398 RM='$RM' 13399 ofile='$ofile' 13400 13401 13402 13403 13404_ACEOF 13405 13406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13407 13408# Handling of arguments. 13409for ac_config_target in $ac_config_targets 13410do 13411 case $ac_config_target in 13412 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13413 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13414 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13415 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13416 "games/Makefile") CONFIG_FILES="$CONFIG_FILES games/Makefile" ;; 13417 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13418 13419 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13420 esac 13421done 13422 13423 13424# If the user did not use the arguments to specify the items to instantiate, 13425# then the envvar interface is used. Set only those that are not. 13426# We use the long form for the default assignment because of an extremely 13427# bizarre bug on SunOS 4.1.3. 13428if $ac_need_defaults; then 13429 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13430 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13431fi 13432 13433# Have a temporary directory for convenience. Make it in the build tree 13434# simply because there is no reason against having it here, and in addition, 13435# creating and moving files from /tmp can sometimes cause problems. 13436# Hook for its removal unless debugging. 13437# Note that there is a small window in which the directory will not be cleaned: 13438# after its creation but before its name has been assigned to `$tmp'. 13439$debug || 13440{ 13441 tmp= 13442 trap 'exit_status=$? 13443 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13444' 0 13445 trap 'as_fn_exit 1' 1 2 13 15 13446} 13447# Create a (secure) tmp directory for tmp files. 13448 13449{ 13450 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13451 test -n "$tmp" && test -d "$tmp" 13452} || 13453{ 13454 tmp=./conf$$-$RANDOM 13455 (umask 077 && mkdir "$tmp") 13456} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13457 13458# Set up the scripts for CONFIG_FILES section. 13459# No need to generate them if there are no CONFIG_FILES. 13460# This happens for instance with `./config.status config.h'. 13461if test -n "$CONFIG_FILES"; then 13462 13463 13464ac_cr=`echo X | tr X '\015'` 13465# On cygwin, bash can eat \r inside `` if the user requested igncr. 13466# But we know of no other shell where ac_cr would be empty at this 13467# point, so we can use a bashism as a fallback. 13468if test "x$ac_cr" = x; then 13469 eval ac_cr=\$\'\\r\' 13470fi 13471ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13472if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13473 ac_cs_awk_cr='\r' 13474else 13475 ac_cs_awk_cr=$ac_cr 13476fi 13477 13478echo 'BEGIN {' >"$tmp/subs1.awk" && 13479_ACEOF 13480 13481 13482{ 13483 echo "cat >conf$$subs.awk <<_ACEOF" && 13484 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13485 echo "_ACEOF" 13486} >conf$$subs.sh || 13487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13488ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13489ac_delim='%!_!# ' 13490for ac_last_try in false false false false false :; do 13491 . ./conf$$subs.sh || 13492 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13493 13494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13495 if test $ac_delim_n = $ac_delim_num; then 13496 break 13497 elif $ac_last_try; then 13498 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13499 else 13500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13501 fi 13502done 13503rm -f conf$$subs.sh 13504 13505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13506cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13507_ACEOF 13508sed -n ' 13509h 13510s/^/S["/; s/!.*/"]=/ 13511p 13512g 13513s/^[^!]*!// 13514:repl 13515t repl 13516s/'"$ac_delim"'$// 13517t delim 13518:nl 13519h 13520s/\(.\{148\}\)..*/\1/ 13521t more1 13522s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13523p 13524n 13525b repl 13526:more1 13527s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13528p 13529g 13530s/.\{148\}// 13531t nl 13532:delim 13533h 13534s/\(.\{148\}\)..*/\1/ 13535t more2 13536s/["\\]/\\&/g; s/^/"/; s/$/"/ 13537p 13538b 13539:more2 13540s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13541p 13542g 13543s/.\{148\}// 13544t delim 13545' <conf$$subs.awk | sed ' 13546/^[^""]/{ 13547 N 13548 s/\n// 13549} 13550' >>$CONFIG_STATUS || ac_write_fail=1 13551rm -f conf$$subs.awk 13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13553_ACAWK 13554cat >>"\$tmp/subs1.awk" <<_ACAWK && 13555 for (key in S) S_is_set[key] = 1 13556 FS = "" 13557 13558} 13559{ 13560 line = $ 0 13561 nfields = split(line, field, "@") 13562 substed = 0 13563 len = length(field[1]) 13564 for (i = 2; i < nfields; i++) { 13565 key = field[i] 13566 keylen = length(key) 13567 if (S_is_set[key]) { 13568 value = S[key] 13569 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13570 len += length(value) + length(field[++i]) 13571 substed = 1 13572 } else 13573 len += 1 + keylen 13574 } 13575 13576 print line 13577} 13578 13579_ACAWK 13580_ACEOF 13581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13582if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13583 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13584else 13585 cat 13586fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13587 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13588_ACEOF 13589 13590# VPATH may cause trouble with some makes, so we remove $(srcdir), 13591# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13592# trailing colons and then remove the whole line if VPATH becomes empty 13593# (actually we leave an empty line to preserve line numbers). 13594if test "x$srcdir" = x.; then 13595 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13596s/:*\$(srcdir):*/:/ 13597s/:*\${srcdir}:*/:/ 13598s/:*@srcdir@:*/:/ 13599s/^\([^=]*=[ ]*\):*/\1/ 13600s/:*$// 13601s/^[^=]*=[ ]*$// 13602}' 13603fi 13604 13605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13606fi # test -n "$CONFIG_FILES" 13607 13608 13609eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13610shift 13611for ac_tag 13612do 13613 case $ac_tag in 13614 :[FHLC]) ac_mode=$ac_tag; continue;; 13615 esac 13616 case $ac_mode$ac_tag in 13617 :[FHL]*:*);; 13618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13619 :[FH]-) ac_tag=-:-;; 13620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13621 esac 13622 ac_save_IFS=$IFS 13623 IFS=: 13624 set x $ac_tag 13625 IFS=$ac_save_IFS 13626 shift 13627 ac_file=$1 13628 shift 13629 13630 case $ac_mode in 13631 :L) ac_source=$1;; 13632 :[FH]) 13633 ac_file_inputs= 13634 for ac_f 13635 do 13636 case $ac_f in 13637 -) ac_f="$tmp/stdin";; 13638 *) # Look for the file first in the build tree, then in the source tree 13639 # (if the path is not absolute). The absolute path cannot be DOS-style, 13640 # because $ac_f cannot contain `:'. 13641 test -f "$ac_f" || 13642 case $ac_f in 13643 [\\/$]*) false;; 13644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13645 esac || 13646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13647 esac 13648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13649 as_fn_append ac_file_inputs " '$ac_f'" 13650 done 13651 13652 # Let's still pretend it is `configure' which instantiates (i.e., don't 13653 # use $as_me), people would be surprised to read: 13654 # /* config.h. Generated by config.status. */ 13655 configure_input='Generated from '` 13656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13657 `' by configure.' 13658 if test x"$ac_file" != x-; then 13659 configure_input="$ac_file. $configure_input" 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13661$as_echo "$as_me: creating $ac_file" >&6;} 13662 fi 13663 # Neutralize special characters interpreted by sed in replacement strings. 13664 case $configure_input in #( 13665 *\&* | *\|* | *\\* ) 13666 ac_sed_conf_input=`$as_echo "$configure_input" | 13667 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13668 *) ac_sed_conf_input=$configure_input;; 13669 esac 13670 13671 case $ac_tag in 13672 *:-:* | *:-) cat >"$tmp/stdin" \ 13673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13674 esac 13675 ;; 13676 esac 13677 13678 ac_dir=`$as_dirname -- "$ac_file" || 13679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13680 X"$ac_file" : 'X\(//\)[^/]' \| \ 13681 X"$ac_file" : 'X\(//\)$' \| \ 13682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13683$as_echo X"$ac_file" | 13684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13685 s//\1/ 13686 q 13687 } 13688 /^X\(\/\/\)[^/].*/{ 13689 s//\1/ 13690 q 13691 } 13692 /^X\(\/\/\)$/{ 13693 s//\1/ 13694 q 13695 } 13696 /^X\(\/\).*/{ 13697 s//\1/ 13698 q 13699 } 13700 s/.*/./; q'` 13701 as_dir="$ac_dir"; as_fn_mkdir_p 13702 ac_builddir=. 13703 13704case "$ac_dir" in 13705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13706*) 13707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13708 # A ".." for each directory in $ac_dir_suffix. 13709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13710 case $ac_top_builddir_sub in 13711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13713 esac ;; 13714esac 13715ac_abs_top_builddir=$ac_pwd 13716ac_abs_builddir=$ac_pwd$ac_dir_suffix 13717# for backward compatibility: 13718ac_top_builddir=$ac_top_build_prefix 13719 13720case $srcdir in 13721 .) # We are building in place. 13722 ac_srcdir=. 13723 ac_top_srcdir=$ac_top_builddir_sub 13724 ac_abs_top_srcdir=$ac_pwd ;; 13725 [\\/]* | ?:[\\/]* ) # Absolute name. 13726 ac_srcdir=$srcdir$ac_dir_suffix; 13727 ac_top_srcdir=$srcdir 13728 ac_abs_top_srcdir=$srcdir ;; 13729 *) # Relative name. 13730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13731 ac_top_srcdir=$ac_top_build_prefix$srcdir 13732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13733esac 13734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13735 13736 13737 case $ac_mode in 13738 :F) 13739 # 13740 # CONFIG_FILE 13741 # 13742 13743 case $INSTALL in 13744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13746 esac 13747 ac_MKDIR_P=$MKDIR_P 13748 case $MKDIR_P in 13749 [\\/$]* | ?:[\\/]* ) ;; 13750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13751 esac 13752_ACEOF 13753 13754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13755# If the template does not know about datarootdir, expand it. 13756# FIXME: This hack should be removed a few years after 2.60. 13757ac_datarootdir_hack=; ac_datarootdir_seen= 13758ac_sed_dataroot=' 13759/datarootdir/ { 13760 p 13761 q 13762} 13763/@datadir@/p 13764/@docdir@/p 13765/@infodir@/p 13766/@localedir@/p 13767/@mandir@/p' 13768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13769*datarootdir*) ac_datarootdir_seen=yes;; 13770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13773_ACEOF 13774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13775 ac_datarootdir_hack=' 13776 s&@datadir@&$datadir&g 13777 s&@docdir@&$docdir&g 13778 s&@infodir@&$infodir&g 13779 s&@localedir@&$localedir&g 13780 s&@mandir@&$mandir&g 13781 s&\\\${datarootdir}&$datarootdir&g' ;; 13782esac 13783_ACEOF 13784 13785# Neutralize VPATH when `$srcdir' = `.'. 13786# Shell code in configure.ac might set extrasub. 13787# FIXME: do we really want to maintain this feature? 13788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13789ac_sed_extra="$ac_vpsub 13790$extrasub 13791_ACEOF 13792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13793:t 13794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13795s|@configure_input@|$ac_sed_conf_input|;t t 13796s&@top_builddir@&$ac_top_builddir_sub&;t t 13797s&@top_build_prefix@&$ac_top_build_prefix&;t t 13798s&@srcdir@&$ac_srcdir&;t t 13799s&@abs_srcdir@&$ac_abs_srcdir&;t t 13800s&@top_srcdir@&$ac_top_srcdir&;t t 13801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13802s&@builddir@&$ac_builddir&;t t 13803s&@abs_builddir@&$ac_abs_builddir&;t t 13804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13805s&@INSTALL@&$ac_INSTALL&;t t 13806s&@MKDIR_P@&$ac_MKDIR_P&;t t 13807$ac_datarootdir_hack 13808" 13809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13810 || as_fn_error "could not create $ac_file" "$LINENO" 5 13811 13812test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13816which seems to be undefined. Please make sure it is defined." >&5 13817$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13818which seems to be undefined. Please make sure it is defined." >&2;} 13819 13820 rm -f "$tmp/stdin" 13821 case $ac_file in 13822 -) cat "$tmp/out" && rm -f "$tmp/out";; 13823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13824 esac \ 13825 || as_fn_error "could not create $ac_file" "$LINENO" 5 13826 ;; 13827 13828 13829 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13830$as_echo "$as_me: executing $ac_file commands" >&6;} 13831 ;; 13832 esac 13833 13834 13835 case $ac_file$ac_mode in 13836 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13837 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13838 # are listed without --file. Let's play safe and only enable the eval 13839 # if we detect the quoting. 13840 case $CONFIG_FILES in 13841 *\'*) eval set x "$CONFIG_FILES" ;; 13842 *) set x $CONFIG_FILES ;; 13843 esac 13844 shift 13845 for mf 13846 do 13847 # Strip MF so we end up with the name of the file. 13848 mf=`echo "$mf" | sed -e 's/:.*$//'` 13849 # Check whether this is an Automake generated Makefile or not. 13850 # We used to match only the files named `Makefile.in', but 13851 # some people rename them; so instead we look at the file content. 13852 # Grep'ing the first line is not enough: some people post-process 13853 # each Makefile.in and add a new line on top of each file to say so. 13854 # Grep'ing the whole file is not good either: AIX grep has a line 13855 # limit of 2048, but all sed's we know have understand at least 4000. 13856 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13857 dirpart=`$as_dirname -- "$mf" || 13858$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13859 X"$mf" : 'X\(//\)[^/]' \| \ 13860 X"$mf" : 'X\(//\)$' \| \ 13861 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13862$as_echo X"$mf" | 13863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13864 s//\1/ 13865 q 13866 } 13867 /^X\(\/\/\)[^/].*/{ 13868 s//\1/ 13869 q 13870 } 13871 /^X\(\/\/\)$/{ 13872 s//\1/ 13873 q 13874 } 13875 /^X\(\/\).*/{ 13876 s//\1/ 13877 q 13878 } 13879 s/.*/./; q'` 13880 else 13881 continue 13882 fi 13883 # Extract the definition of DEPDIR, am__include, and am__quote 13884 # from the Makefile without running `make'. 13885 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13886 test -z "$DEPDIR" && continue 13887 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13888 test -z "am__include" && continue 13889 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13890 # When using ansi2knr, U may be empty or an underscore; expand it 13891 U=`sed -n 's/^U = //p' < "$mf"` 13892 # Find all dependency output files, they are included files with 13893 # $(DEPDIR) in their names. We invoke sed twice because it is the 13894 # simplest approach to changing $(DEPDIR) to its actual value in the 13895 # expansion. 13896 for file in `sed -n " 13897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13899 # Make sure the directory exists. 13900 test -f "$dirpart/$file" && continue 13901 fdir=`$as_dirname -- "$file" || 13902$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13903 X"$file" : 'X\(//\)[^/]' \| \ 13904 X"$file" : 'X\(//\)$' \| \ 13905 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13906$as_echo X"$file" | 13907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13908 s//\1/ 13909 q 13910 } 13911 /^X\(\/\/\)[^/].*/{ 13912 s//\1/ 13913 q 13914 } 13915 /^X\(\/\/\)$/{ 13916 s//\1/ 13917 q 13918 } 13919 /^X\(\/\).*/{ 13920 s//\1/ 13921 q 13922 } 13923 s/.*/./; q'` 13924 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13925 # echo "creating $dirpart/$file" 13926 echo '# dummy' > "$dirpart/$file" 13927 done 13928 done 13929} 13930 ;; 13931 "libtool":C) 13932 13933 # See if we are running on zsh, and set the options which allow our 13934 # commands through without removal of \ escapes. 13935 if test -n "${ZSH_VERSION+set}" ; then 13936 setopt NO_GLOB_SUBST 13937 fi 13938 13939 cfgfile="${ofile}T" 13940 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13941 $RM "$cfgfile" 13942 13943 cat <<_LT_EOF >> "$cfgfile" 13944#! $SHELL 13945 13946# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13947# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13948# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13949# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13950# 13951# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13952# 2006, 2007, 2008 Free Software Foundation, Inc. 13953# Written by Gordon Matzigkeit, 1996 13954# 13955# This file is part of GNU Libtool. 13956# 13957# GNU Libtool is free software; you can redistribute it and/or 13958# modify it under the terms of the GNU General Public License as 13959# published by the Free Software Foundation; either version 2 of 13960# the License, or (at your option) any later version. 13961# 13962# As a special exception to the GNU General Public License, 13963# if you distribute this file as part of a program or library that 13964# is built using GNU Libtool, you may include this file under the 13965# same distribution terms that you use for the rest of that program. 13966# 13967# GNU Libtool is distributed in the hope that it will be useful, 13968# but WITHOUT ANY WARRANTY; without even the implied warranty of 13969# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13970# GNU General Public License for more details. 13971# 13972# You should have received a copy of the GNU General Public License 13973# along with GNU Libtool; see the file COPYING. If not, a copy 13974# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13975# obtained by writing to the Free Software Foundation, Inc., 13976# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13977 13978 13979# The names of the tagged configurations supported by this script. 13980available_tags="" 13981 13982# ### BEGIN LIBTOOL CONFIG 13983 13984# Which release of libtool.m4 was used? 13985macro_version=$macro_version 13986macro_revision=$macro_revision 13987 13988# Whether or not to build shared libraries. 13989build_libtool_libs=$enable_shared 13990 13991# Whether or not to build static libraries. 13992build_old_libs=$enable_static 13993 13994# What type of objects to build. 13995pic_mode=$pic_mode 13996 13997# Whether or not to optimize for fast installation. 13998fast_install=$enable_fast_install 13999 14000# The host system. 14001host_alias=$host_alias 14002host=$host 14003host_os=$host_os 14004 14005# The build system. 14006build_alias=$build_alias 14007build=$build 14008build_os=$build_os 14009 14010# A sed program that does not truncate output. 14011SED=$lt_SED 14012 14013# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14014Xsed="\$SED -e 1s/^X//" 14015 14016# A grep program that handles long lines. 14017GREP=$lt_GREP 14018 14019# An ERE matcher. 14020EGREP=$lt_EGREP 14021 14022# A literal string matcher. 14023FGREP=$lt_FGREP 14024 14025# A BSD- or MS-compatible name lister. 14026NM=$lt_NM 14027 14028# Whether we need soft or hard links. 14029LN_S=$lt_LN_S 14030 14031# What is the maximum length of a command? 14032max_cmd_len=$max_cmd_len 14033 14034# Object file suffix (normally "o"). 14035objext=$ac_objext 14036 14037# Executable file suffix (normally ""). 14038exeext=$exeext 14039 14040# whether the shell understands "unset". 14041lt_unset=$lt_unset 14042 14043# turn spaces into newlines. 14044SP2NL=$lt_lt_SP2NL 14045 14046# turn newlines into spaces. 14047NL2SP=$lt_lt_NL2SP 14048 14049# How to create reloadable object files. 14050reload_flag=$lt_reload_flag 14051reload_cmds=$lt_reload_cmds 14052 14053# An object symbol dumper. 14054OBJDUMP=$lt_OBJDUMP 14055 14056# Method to check whether dependent libraries are shared objects. 14057deplibs_check_method=$lt_deplibs_check_method 14058 14059# Command to use when deplibs_check_method == "file_magic". 14060file_magic_cmd=$lt_file_magic_cmd 14061 14062# The archiver. 14063AR=$lt_AR 14064AR_FLAGS=$lt_AR_FLAGS 14065 14066# A symbol stripping program. 14067STRIP=$lt_STRIP 14068 14069# Commands used to install an old-style archive. 14070RANLIB=$lt_RANLIB 14071old_postinstall_cmds=$lt_old_postinstall_cmds 14072old_postuninstall_cmds=$lt_old_postuninstall_cmds 14073 14074# A C compiler. 14075LTCC=$lt_CC 14076 14077# LTCC compiler flags. 14078LTCFLAGS=$lt_CFLAGS 14079 14080# Take the output of nm and produce a listing of raw symbols and C names. 14081global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14082 14083# Transform the output of nm in a proper C declaration. 14084global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14085 14086# Transform the output of nm in a C name address pair. 14087global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14088 14089# Transform the output of nm in a C name address pair when lib prefix is needed. 14090global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14091 14092# The name of the directory that contains temporary libtool files. 14093objdir=$objdir 14094 14095# Shell to use when invoking shell scripts. 14096SHELL=$lt_SHELL 14097 14098# An echo program that does not interpret backslashes. 14099ECHO=$lt_ECHO 14100 14101# Used to examine libraries when file_magic_cmd begins with "file". 14102MAGIC_CMD=$MAGIC_CMD 14103 14104# Must we lock files when doing compilation? 14105need_locks=$lt_need_locks 14106 14107# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14108DSYMUTIL=$lt_DSYMUTIL 14109 14110# Tool to change global to local symbols on Mac OS X. 14111NMEDIT=$lt_NMEDIT 14112 14113# Tool to manipulate fat objects and archives on Mac OS X. 14114LIPO=$lt_LIPO 14115 14116# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14117OTOOL=$lt_OTOOL 14118 14119# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14120OTOOL64=$lt_OTOOL64 14121 14122# Old archive suffix (normally "a"). 14123libext=$libext 14124 14125# Shared library suffix (normally ".so"). 14126shrext_cmds=$lt_shrext_cmds 14127 14128# The commands to extract the exported symbol list from a shared archive. 14129extract_expsyms_cmds=$lt_extract_expsyms_cmds 14130 14131# Variables whose values should be saved in libtool wrapper scripts and 14132# restored at link time. 14133variables_saved_for_relink=$lt_variables_saved_for_relink 14134 14135# Do we need the "lib" prefix for modules? 14136need_lib_prefix=$need_lib_prefix 14137 14138# Do we need a version for libraries? 14139need_version=$need_version 14140 14141# Library versioning type. 14142version_type=$version_type 14143 14144# Shared library runtime path variable. 14145runpath_var=$runpath_var 14146 14147# Shared library path variable. 14148shlibpath_var=$shlibpath_var 14149 14150# Is shlibpath searched before the hard-coded library search path? 14151shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14152 14153# Format of library name prefix. 14154libname_spec=$lt_libname_spec 14155 14156# List of archive names. First name is the real one, the rest are links. 14157# The last name is the one that the linker finds with -lNAME 14158library_names_spec=$lt_library_names_spec 14159 14160# The coded name of the library, if different from the real name. 14161soname_spec=$lt_soname_spec 14162 14163# Command to use after installation of a shared archive. 14164postinstall_cmds=$lt_postinstall_cmds 14165 14166# Command to use after uninstallation of a shared archive. 14167postuninstall_cmds=$lt_postuninstall_cmds 14168 14169# Commands used to finish a libtool library installation in a directory. 14170finish_cmds=$lt_finish_cmds 14171 14172# As "finish_cmds", except a single script fragment to be evaled but 14173# not shown. 14174finish_eval=$lt_finish_eval 14175 14176# Whether we should hardcode library paths into libraries. 14177hardcode_into_libs=$hardcode_into_libs 14178 14179# Compile-time system search path for libraries. 14180sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14181 14182# Run-time system search path for libraries. 14183sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14184 14185# Whether dlopen is supported. 14186dlopen_support=$enable_dlopen 14187 14188# Whether dlopen of programs is supported. 14189dlopen_self=$enable_dlopen_self 14190 14191# Whether dlopen of statically linked programs is supported. 14192dlopen_self_static=$enable_dlopen_self_static 14193 14194# Commands to strip libraries. 14195old_striplib=$lt_old_striplib 14196striplib=$lt_striplib 14197 14198 14199# The linker used to build libraries. 14200LD=$lt_LD 14201 14202# Commands used to build an old-style archive. 14203old_archive_cmds=$lt_old_archive_cmds 14204 14205# A language specific compiler. 14206CC=$lt_compiler 14207 14208# Is the compiler the GNU compiler? 14209with_gcc=$GCC 14210 14211# Compiler flag to turn off builtin functions. 14212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14213 14214# How to pass a linker flag through the compiler. 14215wl=$lt_lt_prog_compiler_wl 14216 14217# Additional compiler flags for building library objects. 14218pic_flag=$lt_lt_prog_compiler_pic 14219 14220# Compiler flag to prevent dynamic linking. 14221link_static_flag=$lt_lt_prog_compiler_static 14222 14223# Does compiler simultaneously support -c and -o options? 14224compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14225 14226# Whether or not to add -lc for building shared libraries. 14227build_libtool_need_lc=$archive_cmds_need_lc 14228 14229# Whether or not to disallow shared libs when runtime libs are static. 14230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14231 14232# Compiler flag to allow reflexive dlopens. 14233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14234 14235# Compiler flag to generate shared objects directly from archives. 14236whole_archive_flag_spec=$lt_whole_archive_flag_spec 14237 14238# Whether the compiler copes with passing no objects directly. 14239compiler_needs_object=$lt_compiler_needs_object 14240 14241# Create an old-style archive from a shared archive. 14242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14243 14244# Create a temporary old-style archive to link instead of a shared archive. 14245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14246 14247# Commands used to build a shared archive. 14248archive_cmds=$lt_archive_cmds 14249archive_expsym_cmds=$lt_archive_expsym_cmds 14250 14251# Commands used to build a loadable module if different from building 14252# a shared archive. 14253module_cmds=$lt_module_cmds 14254module_expsym_cmds=$lt_module_expsym_cmds 14255 14256# Whether we are building with GNU ld or not. 14257with_gnu_ld=$lt_with_gnu_ld 14258 14259# Flag that allows shared libraries with undefined symbols to be built. 14260allow_undefined_flag=$lt_allow_undefined_flag 14261 14262# Flag that enforces no undefined symbols. 14263no_undefined_flag=$lt_no_undefined_flag 14264 14265# Flag to hardcode \$libdir into a binary during linking. 14266# This must work even if \$libdir does not exist 14267hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14268 14269# If ld is used when linking, flag to hardcode \$libdir into a binary 14270# during linking. This must work even if \$libdir does not exist. 14271hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14272 14273# Whether we need a single "-rpath" flag with a separated argument. 14274hardcode_libdir_separator=$lt_hardcode_libdir_separator 14275 14276# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14277# DIR into the resulting binary. 14278hardcode_direct=$hardcode_direct 14279 14280# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14281# DIR into the resulting binary and the resulting library dependency is 14282# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14283# library is relocated. 14284hardcode_direct_absolute=$hardcode_direct_absolute 14285 14286# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14287# into the resulting binary. 14288hardcode_minus_L=$hardcode_minus_L 14289 14290# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14291# into the resulting binary. 14292hardcode_shlibpath_var=$hardcode_shlibpath_var 14293 14294# Set to "yes" if building a shared library automatically hardcodes DIR 14295# into the library and all subsequent libraries and executables linked 14296# against it. 14297hardcode_automatic=$hardcode_automatic 14298 14299# Set to yes if linker adds runtime paths of dependent libraries 14300# to runtime path list. 14301inherit_rpath=$inherit_rpath 14302 14303# Whether libtool must link a program against all its dependency libraries. 14304link_all_deplibs=$link_all_deplibs 14305 14306# Fix the shell variable \$srcfile for the compiler. 14307fix_srcfile_path=$lt_fix_srcfile_path 14308 14309# Set to "yes" if exported symbols are required. 14310always_export_symbols=$always_export_symbols 14311 14312# The commands to list exported symbols. 14313export_symbols_cmds=$lt_export_symbols_cmds 14314 14315# Symbols that should not be listed in the preloaded symbols. 14316exclude_expsyms=$lt_exclude_expsyms 14317 14318# Symbols that must always be exported. 14319include_expsyms=$lt_include_expsyms 14320 14321# Commands necessary for linking programs (against libraries) with templates. 14322prelink_cmds=$lt_prelink_cmds 14323 14324# Specify filename containing input files. 14325file_list_spec=$lt_file_list_spec 14326 14327# How to hardcode a shared library path into an executable. 14328hardcode_action=$hardcode_action 14329 14330# ### END LIBTOOL CONFIG 14331 14332_LT_EOF 14333 14334 case $host_os in 14335 aix3*) 14336 cat <<\_LT_EOF >> "$cfgfile" 14337# AIX sometimes has problems with the GCC collect2 program. For some 14338# reason, if we set the COLLECT_NAMES environment variable, the problems 14339# vanish in a puff of smoke. 14340if test "X${COLLECT_NAMES+set}" != Xset; then 14341 COLLECT_NAMES= 14342 export COLLECT_NAMES 14343fi 14344_LT_EOF 14345 ;; 14346 esac 14347 14348 14349ltmain="$ac_aux_dir/ltmain.sh" 14350 14351 14352 # We use sed instead of cat because bash on DJGPP gets confused if 14353 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14354 # text mode, it properly converts lines to CR/LF. This bash problem 14355 # is reportedly fixed, but why not run on old versions too? 14356 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14357 || (rm -f "$cfgfile"; exit 1) 14358 14359 case $xsi_shell in 14360 yes) 14361 cat << \_LT_EOF >> "$cfgfile" 14362 14363# func_dirname file append nondir_replacement 14364# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14365# otherwise set result to NONDIR_REPLACEMENT. 14366func_dirname () 14367{ 14368 case ${1} in 14369 */*) func_dirname_result="${1%/*}${2}" ;; 14370 * ) func_dirname_result="${3}" ;; 14371 esac 14372} 14373 14374# func_basename file 14375func_basename () 14376{ 14377 func_basename_result="${1##*/}" 14378} 14379 14380# func_dirname_and_basename file append nondir_replacement 14381# perform func_basename and func_dirname in a single function 14382# call: 14383# dirname: Compute the dirname of FILE. If nonempty, 14384# add APPEND to the result, otherwise set result 14385# to NONDIR_REPLACEMENT. 14386# value returned in "$func_dirname_result" 14387# basename: Compute filename of FILE. 14388# value retuned in "$func_basename_result" 14389# Implementation must be kept synchronized with func_dirname 14390# and func_basename. For efficiency, we do not delegate to 14391# those functions but instead duplicate the functionality here. 14392func_dirname_and_basename () 14393{ 14394 case ${1} in 14395 */*) func_dirname_result="${1%/*}${2}" ;; 14396 * ) func_dirname_result="${3}" ;; 14397 esac 14398 func_basename_result="${1##*/}" 14399} 14400 14401# func_stripname prefix suffix name 14402# strip PREFIX and SUFFIX off of NAME. 14403# PREFIX and SUFFIX must not contain globbing or regex special 14404# characters, hashes, percent signs, but SUFFIX may contain a leading 14405# dot (in which case that matches only a dot). 14406func_stripname () 14407{ 14408 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14409 # positional parameters, so assign one to ordinary parameter first. 14410 func_stripname_result=${3} 14411 func_stripname_result=${func_stripname_result#"${1}"} 14412 func_stripname_result=${func_stripname_result%"${2}"} 14413} 14414 14415# func_opt_split 14416func_opt_split () 14417{ 14418 func_opt_split_opt=${1%%=*} 14419 func_opt_split_arg=${1#*=} 14420} 14421 14422# func_lo2o object 14423func_lo2o () 14424{ 14425 case ${1} in 14426 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14427 *) func_lo2o_result=${1} ;; 14428 esac 14429} 14430 14431# func_xform libobj-or-source 14432func_xform () 14433{ 14434 func_xform_result=${1%.*}.lo 14435} 14436 14437# func_arith arithmetic-term... 14438func_arith () 14439{ 14440 func_arith_result=$(( $* )) 14441} 14442 14443# func_len string 14444# STRING may not start with a hyphen. 14445func_len () 14446{ 14447 func_len_result=${#1} 14448} 14449 14450_LT_EOF 14451 ;; 14452 *) # Bourne compatible functions. 14453 cat << \_LT_EOF >> "$cfgfile" 14454 14455# func_dirname file append nondir_replacement 14456# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14457# otherwise set result to NONDIR_REPLACEMENT. 14458func_dirname () 14459{ 14460 # Extract subdirectory from the argument. 14461 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14462 if test "X$func_dirname_result" = "X${1}"; then 14463 func_dirname_result="${3}" 14464 else 14465 func_dirname_result="$func_dirname_result${2}" 14466 fi 14467} 14468 14469# func_basename file 14470func_basename () 14471{ 14472 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14473} 14474 14475 14476# func_stripname prefix suffix name 14477# strip PREFIX and SUFFIX off of NAME. 14478# PREFIX and SUFFIX must not contain globbing or regex special 14479# characters, hashes, percent signs, but SUFFIX may contain a leading 14480# dot (in which case that matches only a dot). 14481# func_strip_suffix prefix name 14482func_stripname () 14483{ 14484 case ${2} in 14485 .*) func_stripname_result=`$ECHO "X${3}" \ 14486 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14487 *) func_stripname_result=`$ECHO "X${3}" \ 14488 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14489 esac 14490} 14491 14492# sed scripts: 14493my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14494my_sed_long_arg='1s/^-[^=]*=//' 14495 14496# func_opt_split 14497func_opt_split () 14498{ 14499 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14500 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14501} 14502 14503# func_lo2o object 14504func_lo2o () 14505{ 14506 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14507} 14508 14509# func_xform libobj-or-source 14510func_xform () 14511{ 14512 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14513} 14514 14515# func_arith arithmetic-term... 14516func_arith () 14517{ 14518 func_arith_result=`expr "$@"` 14519} 14520 14521# func_len string 14522# STRING may not start with a hyphen. 14523func_len () 14524{ 14525 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14526} 14527 14528_LT_EOF 14529esac 14530 14531case $lt_shell_append in 14532 yes) 14533 cat << \_LT_EOF >> "$cfgfile" 14534 14535# func_append var value 14536# Append VALUE to the end of shell variable VAR. 14537func_append () 14538{ 14539 eval "$1+=\$2" 14540} 14541_LT_EOF 14542 ;; 14543 *) 14544 cat << \_LT_EOF >> "$cfgfile" 14545 14546# func_append var value 14547# Append VALUE to the end of shell variable VAR. 14548func_append () 14549{ 14550 eval "$1=\$$1\$2" 14551} 14552 14553_LT_EOF 14554 ;; 14555 esac 14556 14557 14558 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14559 || (rm -f "$cfgfile"; exit 1) 14560 14561 mv -f "$cfgfile" "$ofile" || 14562 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14563 chmod +x "$ofile" 14564 14565 ;; 14566 14567 esac 14568done # for ac_tag 14569 14570 14571as_fn_exit 0 14572_ACEOF 14573ac_clean_files=$ac_clean_files_save 14574 14575test $ac_write_fail = 0 || 14576 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14577 14578 14579# configure is writing to config.log, and then calls config.status. 14580# config.status does its own redirection, appending to config.log. 14581# Unfortunately, on DOS this fails, as config.log is still kept open 14582# by configure, so config.status won't be able to write to it; its 14583# output is simply discarded. So we exec the FD to /dev/null, 14584# effectively closing config.log, so it can be properly (re)opened and 14585# appended to by config.status. When coming back to configure, we 14586# need to make the FD available again. 14587if test "$no_create" != yes; then 14588 ac_cs_success=: 14589 ac_config_status_args= 14590 test "$silent" = yes && 14591 ac_config_status_args="$ac_config_status_args --quiet" 14592 exec 5>/dev/null 14593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14594 exec 5>>config.log 14595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14596 # would make configure fail if this is the last instruction. 14597 $ac_cs_success || as_fn_exit $? 14598fi 14599if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14601$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14602fi 14603 14604