|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.5 ! root 3: # Generated by GNU Autoconf 2.61.
1.1 root 4: #
1.1.1.5 ! root 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.1.1.5 ! root 13: # Be more Bourne compatible
! 14: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.1.1.5 ! root 21: setopt NO_GLOB_SUBST
! 22: else
! 23: case `(set -o) 2>/dev/null` in
! 24: *posix*) set -o posix ;;
! 25: esac
! 26:
! 27: fi
! 28:
! 29:
! 30:
! 31:
! 32: # PATH needs CR
! 33: # Avoid depending upon Character Ranges.
! 34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 37: as_cr_digits='0123456789'
! 38: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 39:
! 40: # The user is always right.
! 41: if test "${PATH_SEPARATOR+set}" != set; then
! 42: echo "#! /bin/sh" >conf$$.sh
! 43: echo "exit 0" >>conf$$.sh
! 44: chmod +x conf$$.sh
! 45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 46: PATH_SEPARATOR=';'
! 47: else
! 48: PATH_SEPARATOR=:
! 49: fi
! 50: rm -f conf$$.sh
1.1 root 51: fi
52:
53: # Support unset when possible.
1.1.1.5 ! root 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
60:
1.1.1.5 ! root 61: # IFS
! 62: # We need space, tab and new line, in precisely that order. Quoting is
! 63: # there to prevent editors from complaining about space-tab.
! 64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 65: # splitting by setting IFS to empty value.)
! 66: as_nl='
! 67: '
! 68: IFS=" "" $as_nl"
! 69:
! 70: # Find who we are. Look in the path if we contain no directory separator.
! 71: case $0 in
! 72: *[\\/]* ) as_myself=$0 ;;
! 73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 74: for as_dir in $PATH
! 75: do
! 76: IFS=$as_save_IFS
! 77: test -z "$as_dir" && as_dir=.
! 78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 79: done
! 80: IFS=$as_save_IFS
! 81:
! 82: ;;
! 83: esac
! 84: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 85: # in which case we are not to be found in the path.
! 86: if test "x$as_myself" = x; then
! 87: as_myself=$0
! 88: fi
! 89: if test ! -f "$as_myself"; then
! 90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 91: { (exit 1); exit 1; }
! 92: fi
! 93:
1.1 root 94: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.5 ! root 95: for as_var in ENV MAIL MAILPATH
! 96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 97: done
1.1 root 98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
103: for as_var in \
104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106: LC_TELEPHONE LC_TIME
107: do
1.1.1.5 ! root 108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.1 root 109: eval $as_var=C; export $as_var
110: else
1.1.1.5 ! root 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 root 112: fi
113: done
114:
115: # Required to use basename.
1.1.1.5 ! root 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.1.1.5 ! root 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 root 124: as_basename=basename
125: else
126: as_basename=false
127: fi
128:
129:
130: # Name of the executable.
1.1.1.5 ! root 131: as_me=`$as_basename -- "$0" ||
1.1 root 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.1.1.5 ! root 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 135: echo X/"$0" |
1.1.1.5 ! root 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 137: s//\1/
! 138: q
! 139: }
! 140: /^X\/\(\/\/\)$/{
! 141: s//\1/
! 142: q
! 143: }
! 144: /^X\/\(\/\).*/{
! 145: s//\1/
! 146: q
! 147: }
! 148: s/.*/./; q'`
1.1 root 149:
1.1.1.5 ! root 150: # CDPATH.
! 151: $as_unset CDPATH
1.1 root 152:
153:
1.1.1.5 ! root 154: if test "x$CONFIG_SHELL" = x; then
! 155: if (eval ":") 2>/dev/null; then
! 156: as_have_required=yes
! 157: else
! 158: as_have_required=no
! 159: fi
! 160:
! 161: if test $as_have_required = yes && (eval ":
! 162: (as_func_return () {
! 163: (exit \$1)
! 164: }
! 165: as_func_success () {
! 166: as_func_return 0
! 167: }
! 168: as_func_failure () {
! 169: as_func_return 1
! 170: }
! 171: as_func_ret_success () {
! 172: return 0
! 173: }
! 174: as_func_ret_failure () {
! 175: return 1
! 176: }
! 177:
! 178: exitcode=0
! 179: if as_func_success; then
! 180: :
! 181: else
! 182: exitcode=1
! 183: echo as_func_success failed.
1.1 root 184: fi
185:
1.1.1.5 ! root 186: if as_func_failure; then
! 187: exitcode=1
! 188: echo as_func_failure succeeded.
! 189: fi
1.1 root 190:
1.1.1.5 ! root 191: if as_func_ret_success; then
! 192: :
! 193: else
! 194: exitcode=1
! 195: echo as_func_ret_success failed.
! 196: fi
1.1 root 197:
1.1.1.5 ! root 198: if as_func_ret_failure; then
! 199: exitcode=1
! 200: echo as_func_ret_failure succeeded.
! 201: fi
! 202:
! 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 204: :
! 205: else
! 206: exitcode=1
! 207: echo positional parameters were not saved.
! 208: fi
! 209:
! 210: test \$exitcode = 0) || { (exit 1); exit 1; }
! 211:
! 212: (
! 213: as_lineno_1=\$LINENO
! 214: as_lineno_2=\$LINENO
! 215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 217: ") 2> /dev/null; then
! 218: :
! 219: else
! 220: as_candidate_shells=
1.1 root 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.5 ! root 226: case $as_dir in
1.1 root 227: /*)
1.1.1.5 ! root 228: for as_base in sh bash ksh sh5; do
! 229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
! 230: done;;
! 231: esac
! 232: done
! 233: IFS=$as_save_IFS
! 234:
! 235:
! 236: for as_shell in $as_candidate_shells $SHELL; do
! 237: # Try only shells that exist, to save several forks.
! 238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 239: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 241: emulate sh
! 242: NULLCMD=:
! 243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 244: # is contrary to our usage. Disable this feature.
! 245: alias -g '${1+"$@"}'='"$@"'
! 246: setopt NO_GLOB_SUBST
! 247: else
! 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
! 252: fi
! 253:
! 254:
! 255: :
! 256: _ASEOF
! 257: }; then
! 258: CONFIG_SHELL=$as_shell
! 259: as_have_required=yes
! 260: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 262: emulate sh
! 263: NULLCMD=:
! 264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 265: # is contrary to our usage. Disable this feature.
! 266: alias -g '${1+"$@"}'='"$@"'
! 267: setopt NO_GLOB_SUBST
! 268: else
! 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
! 273: fi
! 274:
! 275:
! 276: :
! 277: (as_func_return () {
! 278: (exit $1)
! 279: }
! 280: as_func_success () {
! 281: as_func_return 0
! 282: }
! 283: as_func_failure () {
! 284: as_func_return 1
! 285: }
! 286: as_func_ret_success () {
! 287: return 0
! 288: }
! 289: as_func_ret_failure () {
! 290: return 1
! 291: }
! 292:
! 293: exitcode=0
! 294: if as_func_success; then
! 295: :
! 296: else
! 297: exitcode=1
! 298: echo as_func_success failed.
! 299: fi
! 300:
! 301: if as_func_failure; then
! 302: exitcode=1
! 303: echo as_func_failure succeeded.
! 304: fi
! 305:
! 306: if as_func_ret_success; then
! 307: :
! 308: else
! 309: exitcode=1
! 310: echo as_func_ret_success failed.
! 311: fi
! 312:
! 313: if as_func_ret_failure; then
! 314: exitcode=1
! 315: echo as_func_ret_failure succeeded.
! 316: fi
! 317:
! 318: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 319: :
! 320: else
! 321: exitcode=1
! 322: echo positional parameters were not saved.
! 323: fi
! 324:
! 325: test $exitcode = 0) || { (exit 1); exit 1; }
! 326:
! 327: (
1.1 root 328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.5 ! root 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
! 332:
! 333: _ASEOF
! 334: }; then
! 335: break
! 336: fi
! 337:
! 338: fi
! 339:
! 340: done
! 341:
! 342: if test "x$CONFIG_SHELL" != x; then
! 343: for as_var in BASH_ENV ENV
! 344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 345: done
! 346: export CONFIG_SHELL
! 347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 348: fi
! 349:
! 350:
! 351: if test $as_have_required = no; then
! 352: echo This script requires a shell more modern than all the
! 353: echo shells that I found on your system. Please install a
! 354: echo modern shell, or manually run the script under such a
! 355: echo shell if you do have one.
! 356: { (exit 1); exit 1; }
! 357: fi
! 358:
! 359:
! 360: fi
! 361:
! 362: fi
! 363:
! 364:
! 365:
! 366: (eval "as_func_return () {
! 367: (exit \$1)
! 368: }
! 369: as_func_success () {
! 370: as_func_return 0
! 371: }
! 372: as_func_failure () {
! 373: as_func_return 1
! 374: }
! 375: as_func_ret_success () {
! 376: return 0
! 377: }
! 378: as_func_ret_failure () {
! 379: return 1
! 380: }
! 381:
! 382: exitcode=0
! 383: if as_func_success; then
! 384: :
! 385: else
! 386: exitcode=1
! 387: echo as_func_success failed.
! 388: fi
! 389:
! 390: if as_func_failure; then
! 391: exitcode=1
! 392: echo as_func_failure succeeded.
! 393: fi
! 394:
! 395: if as_func_ret_success; then
! 396: :
! 397: else
! 398: exitcode=1
! 399: echo as_func_ret_success failed.
! 400: fi
! 401:
! 402: if as_func_ret_failure; then
! 403: exitcode=1
! 404: echo as_func_ret_failure succeeded.
! 405: fi
! 406:
! 407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 408: :
! 409: else
! 410: exitcode=1
! 411: echo positional parameters were not saved.
! 412: fi
! 413:
! 414: test \$exitcode = 0") || {
! 415: echo No shell found that supports shell functions.
! 416: echo Please tell [email protected] about your system,
! 417: echo including any error possibly output before this
! 418: echo message
! 419: }
! 420:
! 421:
! 422:
! 423: as_lineno_1=$LINENO
! 424: as_lineno_2=$LINENO
! 425: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 427:
428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.5 ! root 430: # line-number line after each line using $LINENO; the second 'sed'
! 431: # does the real work. The second script uses 'N' to pair each
! 432: # line-number line with the line containing $LINENO, and appends
! 433: # trailing '-' during substitution so that $LINENO is not a special
! 434: # case at line end.
1.1 root 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.5 ! root 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 437: # E. McMahon (1931-1989) for sed's syntax. :-)
! 438: sed -n '
! 439: p
! 440: /[$]LINENO/=
! 441: ' <$as_myself |
1.1 root 442: sed '
1.1.1.5 ! root 443: s/[$]LINENO.*/&-/
! 444: t lineno
! 445: b
! 446: :lineno
1.1 root 447: N
1.1.1.5 ! root 448: :loop
! 449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 450: t loop
1.1.1.5 ! root 451: s/-\n.*//
1.1 root 452: ' >$as_me.lineno &&
1.1.1.5 ! root 453: chmod +x "$as_me.lineno" ||
1.1 root 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.1.1.5 ! root 459: # original and so on. Autoconf is especially sensitive to this).
! 460: . "./$as_me.lineno"
1.1 root 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.1.1.5 ! root 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 467: as_dirname=dirname
! 468: else
! 469: as_dirname=false
! 470: fi
! 471:
! 472: ECHO_C= ECHO_N= ECHO_T=
! 473: case `echo -n x` in
! 474: -n*)
! 475: case `echo 'x\c'` in
! 476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 477: *) ECHO_C='\c';;
! 478: esac;;
! 479: *)
! 480: ECHO_N='-n';;
1.1 root 481: esac
482:
1.1.1.5 ! root 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.5 ! root 491: if test -d conf$$.dir; then
! 492: rm -f conf$$.dir/conf$$.file
! 493: else
! 494: rm -f conf$$.dir
! 495: mkdir conf$$.dir
! 496: fi
1.1 root 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.5 ! root 499: as_ln_s='ln -s'
! 500: # ... but there are two gotchas:
! 501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 503: # In both cases, we have to default to `cp -p'.
! 504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.1.1.5 ! root 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 512: rmdir conf$$.dir 2>/dev/null
1.1 root 513:
514: if mkdir -p . 2>/dev/null; then
515: as_mkdir_p=:
516: else
1.1.1.5 ! root 517: test -d ./-p && rmdir ./-p
1.1 root 518: as_mkdir_p=false
519: fi
520:
1.1.1.5 ! root 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
! 523: else
! 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
! 541: fi
! 542: as_executable_p=$as_test_x
1.1 root 543:
544: # Sed expression to map a string onto a valid CPP name.
1.1.1.5 ! root 545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 546:
547: # Sed expression to map a string onto a valid variable name.
1.1.1.5 ! root 548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 549:
550:
551:
552:
553: # Check that we are running under the correct shell.
554: SHELL=${CONFIG_SHELL-/bin/sh}
555:
556: case X$ECHO in
557: X*--fallback-echo)
558: # Remove one level of quotation (which was required for Make).
559: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560: ;;
561: esac
562:
563: echo=${ECHO-echo}
564: if test "X$1" = X--no-reexec; then
565: # Discard the --no-reexec flag, and continue.
566: shift
567: elif test "X$1" = X--fallback-echo; then
568: # Avoid inline document here, it may be left over
569: :
570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571: # Yippee, $echo works!
572: :
573: else
574: # Restart under the correct shell.
575: exec $SHELL "$0" --no-reexec ${1+"$@"}
576: fi
577:
578: if test "X$1" = X--fallback-echo; then
579: # used as fallback echo
580: shift
581: cat <<EOF
582: $*
583: EOF
584: exit 0
585: fi
586:
587: # The HP-UX ksh and POSIX shell print the target directory to stdout
588: # if CDPATH is set.
1.1.1.5 ! root 589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 root 590:
591: if test -z "$ECHO"; then
592: if test "X${echo_test_string+set}" != Xset; then
593: # find a string as large as possible, as long as the shell can cope with it
594: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1.1.1.5 ! root 596: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
! 597: echo_test_string=`eval $cmd` &&
1.1 root 598: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599: then
600: break
601: fi
602: done
603: fi
604:
605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607: test "X$echo_testing_string" = "X$echo_test_string"; then
608: :
609: else
610: # The Solaris, AIX, and Digital Unix default echo programs unquote
611: # backslashes. This makes it impossible to quote backslashes using
612: # echo "$something" | sed 's/\\/\\\\/g'
613: #
614: # So, first we look for a working echo in the user's PATH.
615:
616: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617: for dir in $PATH /usr/ucb; do
618: IFS="$lt_save_ifs"
619: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622: test "X$echo_testing_string" = "X$echo_test_string"; then
623: echo="$dir/echo"
624: break
625: fi
626: done
627: IFS="$lt_save_ifs"
628:
629: if test "X$echo" = Xecho; then
630: # We didn't find a better echo, so look for alternatives.
631: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633: test "X$echo_testing_string" = "X$echo_test_string"; then
634: # This shell has a builtin print -r that does the trick.
635: echo='print -r'
636: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637: test "X$CONFIG_SHELL" != X/bin/ksh; then
638: # If we have ksh, try running configure again with it.
639: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640: export ORIGINAL_CONFIG_SHELL
641: CONFIG_SHELL=/bin/ksh
642: export CONFIG_SHELL
643: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644: else
645: # Try using printf.
646: echo='printf %s\n'
647: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649: test "X$echo_testing_string" = "X$echo_test_string"; then
650: # Cool, printf works
651: :
652: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653: test "X$echo_testing_string" = 'X\t' &&
654: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655: test "X$echo_testing_string" = "X$echo_test_string"; then
656: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657: export CONFIG_SHELL
658: SHELL="$CONFIG_SHELL"
659: export SHELL
660: echo="$CONFIG_SHELL $0 --fallback-echo"
661: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662: test "X$echo_testing_string" = 'X\t' &&
663: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664: test "X$echo_testing_string" = "X$echo_test_string"; then
665: echo="$CONFIG_SHELL $0 --fallback-echo"
666: else
667: # maybe with a smaller string...
668: prev=:
669:
670: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672: then
673: break
674: fi
675: prev="$cmd"
676: done
677:
678: if test "$prev" != 'sed 50q "$0"'; then
679: echo_test_string=`eval $prev`
680: export echo_test_string
681: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682: else
683: # Oops. We lost completely, so just stick with echo.
684: echo=echo
685: fi
686: fi
687: fi
688: fi
689: fi
690: fi
691:
692: # Copy echo and quote the copy suitably for passing to libtool from
693: # the Makefile, instead of quoting the original, which is used later.
694: ECHO=$echo
695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697: fi
698:
699:
700:
701:
1.1.1.5 ! root 702: tagnames=${tagnames+${tagnames},}CXX
1.1 root 703:
1.1.1.5 ! root 704: tagnames=${tagnames+${tagnames},}F77
! 705:
! 706: exec 7<&0 </dev/null 6>&1
1.1 root 707:
708: # Name of the host.
709: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710: # so uname gets run too.
711: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712:
713: #
714: # Initializations.
715: #
716: ac_default_prefix=/usr/local
1.1.1.5 ! root 717: ac_clean_files=
1.1 root 718: ac_config_libobj_dir=.
1.1.1.5 ! root 719: LIBOBJS=
1.1 root 720: cross_compiling=no
721: subdirs=
722: MFLAGS=
723: MAKEFLAGS=
724: SHELL=${CONFIG_SHELL-/bin/sh}
725:
726: # Identity of this package.
727: PACKAGE_NAME=
728: PACKAGE_TARNAME=
729: PACKAGE_VERSION=
730: PACKAGE_STRING=
731: PACKAGE_BUGREPORT=
732:
733: ac_unique_file="ic/m68k/m68k-impl.h"
734: # Factoring default headers for most tests.
735: ac_includes_default="\
736: #include <stdio.h>
1.1.1.5 ! root 737: #ifdef HAVE_SYS_TYPES_H
1.1 root 738: # include <sys/types.h>
739: #endif
1.1.1.5 ! root 740: #ifdef HAVE_SYS_STAT_H
1.1 root 741: # include <sys/stat.h>
742: #endif
1.1.1.5 ! root 743: #ifdef STDC_HEADERS
1.1 root 744: # include <stdlib.h>
745: # include <stddef.h>
746: #else
1.1.1.5 ! root 747: # ifdef HAVE_STDLIB_H
1.1 root 748: # include <stdlib.h>
749: # endif
750: #endif
1.1.1.5 ! root 751: #ifdef HAVE_STRING_H
! 752: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 root 753: # include <memory.h>
754: # endif
755: # include <string.h>
756: #endif
1.1.1.5 ! root 757: #ifdef HAVE_STRINGS_H
1.1 root 758: # include <strings.h>
759: #endif
1.1.1.5 ! root 760: #ifdef HAVE_INTTYPES_H
1.1 root 761: # include <inttypes.h>
762: #endif
1.1.1.5 ! root 763: #ifdef HAVE_STDINT_H
! 764: # include <stdint.h>
! 765: #endif
! 766: #ifdef HAVE_UNISTD_H
1.1 root 767: # include <unistd.h>
768: #endif"
769:
1.1.1.5 ! root 770: ac_subst_vars='SHELL
! 771: PATH_SEPARATOR
! 772: PACKAGE_NAME
! 773: PACKAGE_TARNAME
! 774: PACKAGE_VERSION
! 775: PACKAGE_STRING
! 776: PACKAGE_BUGREPORT
! 777: exec_prefix
! 778: prefix
! 779: program_transform_name
! 780: bindir
! 781: sbindir
! 782: libexecdir
! 783: datarootdir
! 784: datadir
! 785: sysconfdir
! 786: sharedstatedir
! 787: localstatedir
! 788: includedir
! 789: oldincludedir
! 790: docdir
! 791: infodir
! 792: htmldir
! 793: dvidir
! 794: pdfdir
! 795: psdir
! 796: libdir
! 797: localedir
! 798: mandir
! 799: DEFS
! 800: ECHO_C
! 801: ECHO_N
! 802: ECHO_T
! 803: LIBS
! 804: build_alias
! 805: host_alias
! 806: target_alias
! 807: build
! 808: build_cpu
! 809: build_vendor
! 810: build_os
! 811: host
! 812: host_cpu
! 813: host_vendor
! 814: host_os
! 815: target
! 816: target_cpu
! 817: target_vendor
! 818: target_os
! 819: INSTALL_PROGRAM
! 820: INSTALL_SCRIPT
! 821: INSTALL_DATA
! 822: am__isrc
! 823: CYGPATH_W
! 824: PACKAGE
! 825: VERSION
! 826: ACLOCAL
! 827: AUTOCONF
! 828: AUTOMAKE
! 829: AUTOHEADER
! 830: MAKEINFO
! 831: install_sh
! 832: STRIP
! 833: INSTALL_STRIP_PROGRAM
! 834: mkdir_p
! 835: AWK
! 836: SET_MAKE
! 837: am__leading_dot
! 838: AMTAR
! 839: am__tar
! 840: am__untar
! 841: CC
! 842: CFLAGS
! 843: LDFLAGS
! 844: CPPFLAGS
! 845: ac_ct_CC
! 846: EXEEXT
! 847: OBJEXT
! 848: DEPDIR
! 849: am__include
! 850: am__quote
! 851: AMDEP_TRUE
! 852: AMDEP_FALSE
! 853: AMDEPBACKSLASH
! 854: CCDEPMODE
! 855: am__fastdepCC_TRUE
! 856: am__fastdepCC_FALSE
! 857: CPP
! 858: YACC
! 859: YFLAGS
! 860: GREP
! 861: EGREP
! 862: LIBOBJS
! 863: PERL
! 864: XMKMF
! 865: X_CFLAGS
! 866: X_PRE_LIBS
! 867: X_LIBS
! 868: X_EXTRA_LIBS
! 869: PKG_CONFIG
! 870: GTK_CFLAGS
! 871: GTK_LIBS
! 872: TME_FB_XLAT_DST
! 873: TME_MACHINE_SUBDIRS
! 874: TME_IC_SUBDIRS
! 875: TME_ICS
! 876: TME_SERIAL_SUBDIRS
! 877: TME_SERIALS
! 878: TME_BUS_SUBDIRS
! 879: TME_FB_XLAT_SRC
! 880: TME_HOSTS
! 881: INCLTDL
! 882: LIBLTDL
! 883: SED
! 884: LN_S
! 885: ECHO
! 886: AR
! 887: RANLIB
! 888: CXX
! 889: CXXFLAGS
! 890: ac_ct_CXX
! 891: CXXDEPMODE
! 892: am__fastdepCXX_TRUE
! 893: am__fastdepCXX_FALSE
! 894: CXXCPP
! 895: F77
! 896: FFLAGS
! 897: ac_ct_F77
! 898: LIBTOOL
! 899: LTLIBOBJS
! 900: subdirs
! 901: TME_PREOPEN
! 902: CFLAGS_NO_STRICT_ALIASING'
1.1 root 903: ac_subst_files=''
1.1.1.5 ! root 904: ac_precious_vars='build_alias
! 905: host_alias
! 906: target_alias
! 907: CC
! 908: CFLAGS
! 909: LDFLAGS
! 910: LIBS
! 911: CPPFLAGS
! 912: CPP
! 913: YACC
! 914: YFLAGS
! 915: XMKMF
! 916: CXX
! 917: CXXFLAGS
! 918: CCC
! 919: CXXCPP
! 920: F77
! 921: FFLAGS'
! 922: ac_subdirs_all='libltdl'
1.1 root 923:
924: # Initialize some variables set by options.
925: ac_init_help=
926: ac_init_version=false
927: # The variables have the same names as the options, with
928: # dashes changed to underlines.
929: cache_file=/dev/null
930: exec_prefix=NONE
931: no_create=
932: no_recursion=
933: prefix=NONE
934: program_prefix=NONE
935: program_suffix=NONE
936: program_transform_name=s,x,x,
937: silent=
938: site=
939: srcdir=
940: verbose=
941: x_includes=NONE
942: x_libraries=NONE
943:
944: # Installation directory options.
945: # These are left unexpanded so users can "make install exec_prefix=/foo"
946: # and all the variables that are supposed to be based on exec_prefix
947: # by default will actually change.
948: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.5 ! root 949: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 950: bindir='${exec_prefix}/bin'
951: sbindir='${exec_prefix}/sbin'
952: libexecdir='${exec_prefix}/libexec'
1.1.1.5 ! root 953: datarootdir='${prefix}/share'
! 954: datadir='${datarootdir}'
1.1 root 955: sysconfdir='${prefix}/etc'
956: sharedstatedir='${prefix}/com'
957: localstatedir='${prefix}/var'
958: includedir='${prefix}/include'
959: oldincludedir='/usr/include'
1.1.1.5 ! root 960: docdir='${datarootdir}/doc/${PACKAGE}'
! 961: infodir='${datarootdir}/info'
! 962: htmldir='${docdir}'
! 963: dvidir='${docdir}'
! 964: pdfdir='${docdir}'
! 965: psdir='${docdir}'
! 966: libdir='${exec_prefix}/lib'
! 967: localedir='${datarootdir}/locale'
! 968: mandir='${datarootdir}/man'
1.1 root 969:
970: ac_prev=
1.1.1.5 ! root 971: ac_dashdash=
1.1 root 972: for ac_option
973: do
974: # If the previous option needs an argument, assign it.
975: if test -n "$ac_prev"; then
1.1.1.5 ! root 976: eval $ac_prev=\$ac_option
1.1 root 977: ac_prev=
978: continue
979: fi
980:
1.1.1.5 ! root 981: case $ac_option in
! 982: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 983: *) ac_optarg=yes ;;
! 984: esac
1.1 root 985:
986: # Accept the important Cygnus configure options, so we can diagnose typos.
987:
1.1.1.5 ! root 988: case $ac_dashdash$ac_option in
! 989: --)
! 990: ac_dashdash=yes ;;
1.1 root 991:
992: -bindir | --bindir | --bindi | --bind | --bin | --bi)
993: ac_prev=bindir ;;
994: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995: bindir=$ac_optarg ;;
996:
997: -build | --build | --buil | --bui | --bu)
998: ac_prev=build_alias ;;
999: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000: build_alias=$ac_optarg ;;
1001:
1002: -cache-file | --cache-file | --cache-fil | --cache-fi \
1003: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004: ac_prev=cache_file ;;
1005: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007: cache_file=$ac_optarg ;;
1008:
1009: --config-cache | -C)
1010: cache_file=config.cache ;;
1011:
1.1.1.5 ! root 1012: -datadir | --datadir | --datadi | --datad)
1.1 root 1013: ac_prev=datadir ;;
1.1.1.5 ! root 1014: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 root 1015: datadir=$ac_optarg ;;
1016:
1.1.1.5 ! root 1017: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 1018: | --dataroo | --dataro | --datar)
! 1019: ac_prev=datarootdir ;;
! 1020: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 1021: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 1022: datarootdir=$ac_optarg ;;
! 1023:
1.1 root 1024: -disable-* | --disable-*)
1025: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026: # Reject names that are not valid shell variable names.
1.1.1.5 ! root 1027: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1028: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1030: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1031: eval enable_$ac_feature=no ;;
! 1032:
! 1033: -docdir | --docdir | --docdi | --doc | --do)
! 1034: ac_prev=docdir ;;
! 1035: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 1036: docdir=$ac_optarg ;;
! 1037:
! 1038: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 1039: ac_prev=dvidir ;;
! 1040: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 1041: dvidir=$ac_optarg ;;
1.1 root 1042:
1043: -enable-* | --enable-*)
1044: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045: # Reject names that are not valid shell variable names.
1.1.1.5 ! root 1046: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1047: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1049: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1050: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 1051:
1052: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054: | --exec | --exe | --ex)
1055: ac_prev=exec_prefix ;;
1056: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058: | --exec=* | --exe=* | --ex=*)
1059: exec_prefix=$ac_optarg ;;
1060:
1061: -gas | --gas | --ga | --g)
1062: # Obsolete; use --with-gas.
1063: with_gas=yes ;;
1064:
1065: -help | --help | --hel | --he | -h)
1066: ac_init_help=long ;;
1067: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068: ac_init_help=recursive ;;
1069: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070: ac_init_help=short ;;
1071:
1072: -host | --host | --hos | --ho)
1073: ac_prev=host_alias ;;
1074: -host=* | --host=* | --hos=* | --ho=*)
1075: host_alias=$ac_optarg ;;
1076:
1.1.1.5 ! root 1077: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 1078: ac_prev=htmldir ;;
! 1079: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 1080: | --ht=*)
! 1081: htmldir=$ac_optarg ;;
! 1082:
1.1 root 1083: -includedir | --includedir | --includedi | --included | --include \
1084: | --includ | --inclu | --incl | --inc)
1085: ac_prev=includedir ;;
1086: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087: | --includ=* | --inclu=* | --incl=* | --inc=*)
1088: includedir=$ac_optarg ;;
1089:
1090: -infodir | --infodir | --infodi | --infod | --info | --inf)
1091: ac_prev=infodir ;;
1092: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093: infodir=$ac_optarg ;;
1094:
1095: -libdir | --libdir | --libdi | --libd)
1096: ac_prev=libdir ;;
1097: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098: libdir=$ac_optarg ;;
1099:
1100: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101: | --libexe | --libex | --libe)
1102: ac_prev=libexecdir ;;
1103: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104: | --libexe=* | --libex=* | --libe=*)
1105: libexecdir=$ac_optarg ;;
1106:
1.1.1.5 ! root 1107: -localedir | --localedir | --localedi | --localed | --locale)
! 1108: ac_prev=localedir ;;
! 1109: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 1110: localedir=$ac_optarg ;;
! 1111:
1.1 root 1112: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.5 ! root 1113: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 1114: ac_prev=localstatedir ;;
1115: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.5 ! root 1116: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 root 1117: localstatedir=$ac_optarg ;;
1118:
1119: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120: ac_prev=mandir ;;
1121: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122: mandir=$ac_optarg ;;
1123:
1124: -nfp | --nfp | --nf)
1125: # Obsolete; use --without-fp.
1126: with_fp=no ;;
1127:
1128: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129: | --no-cr | --no-c | -n)
1130: no_create=yes ;;
1131:
1132: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134: no_recursion=yes ;;
1135:
1136: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138: | --oldin | --oldi | --old | --ol | --o)
1139: ac_prev=oldincludedir ;;
1140: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143: oldincludedir=$ac_optarg ;;
1144:
1145: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146: ac_prev=prefix ;;
1147: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148: prefix=$ac_optarg ;;
1149:
1150: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151: | --program-pre | --program-pr | --program-p)
1152: ac_prev=program_prefix ;;
1153: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155: program_prefix=$ac_optarg ;;
1156:
1157: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158: | --program-suf | --program-su | --program-s)
1159: ac_prev=program_suffix ;;
1160: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162: program_suffix=$ac_optarg ;;
1163:
1164: -program-transform-name | --program-transform-name \
1165: | --program-transform-nam | --program-transform-na \
1166: | --program-transform-n | --program-transform- \
1167: | --program-transform | --program-transfor \
1168: | --program-transfo | --program-transf \
1169: | --program-trans | --program-tran \
1170: | --progr-tra | --program-tr | --program-t)
1171: ac_prev=program_transform_name ;;
1172: -program-transform-name=* | --program-transform-name=* \
1173: | --program-transform-nam=* | --program-transform-na=* \
1174: | --program-transform-n=* | --program-transform-=* \
1175: | --program-transform=* | --program-transfor=* \
1176: | --program-transfo=* | --program-transf=* \
1177: | --program-trans=* | --program-tran=* \
1178: | --progr-tra=* | --program-tr=* | --program-t=*)
1179: program_transform_name=$ac_optarg ;;
1180:
1.1.1.5 ! root 1181: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1182: ac_prev=pdfdir ;;
! 1183: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1184: pdfdir=$ac_optarg ;;
! 1185:
! 1186: -psdir | --psdir | --psdi | --psd | --ps)
! 1187: ac_prev=psdir ;;
! 1188: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1189: psdir=$ac_optarg ;;
! 1190:
1.1 root 1191: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192: | -silent | --silent | --silen | --sile | --sil)
1193: silent=yes ;;
1194:
1195: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196: ac_prev=sbindir ;;
1197: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198: | --sbi=* | --sb=*)
1199: sbindir=$ac_optarg ;;
1200:
1201: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203: | --sharedst | --shareds | --shared | --share | --shar \
1204: | --sha | --sh)
1205: ac_prev=sharedstatedir ;;
1206: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209: | --sha=* | --sh=*)
1210: sharedstatedir=$ac_optarg ;;
1211:
1212: -site | --site | --sit)
1213: ac_prev=site ;;
1214: -site=* | --site=* | --sit=*)
1215: site=$ac_optarg ;;
1216:
1217: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218: ac_prev=srcdir ;;
1219: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220: srcdir=$ac_optarg ;;
1221:
1222: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223: | --syscon | --sysco | --sysc | --sys | --sy)
1224: ac_prev=sysconfdir ;;
1225: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227: sysconfdir=$ac_optarg ;;
1228:
1229: -target | --target | --targe | --targ | --tar | --ta | --t)
1230: ac_prev=target_alias ;;
1231: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232: target_alias=$ac_optarg ;;
1233:
1234: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235: verbose=yes ;;
1236:
1237: -version | --version | --versio | --versi | --vers | -V)
1238: ac_init_version=: ;;
1239:
1240: -with-* | --with-*)
1241: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242: # Reject names that are not valid shell variable names.
1.1.1.5 ! root 1243: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1244: { echo "$as_me: error: invalid package name: $ac_package" >&2
1245: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1246: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1247: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1248:
1249: -without-* | --without-*)
1250: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251: # Reject names that are not valid shell variable names.
1.1.1.5 ! root 1252: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1253: { echo "$as_me: error: invalid package name: $ac_package" >&2
1254: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1255: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1256: eval with_$ac_package=no ;;
1.1 root 1257:
1258: --x)
1259: # Obsolete; use --with-x.
1260: with_x=yes ;;
1261:
1262: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263: | --x-incl | --x-inc | --x-in | --x-i)
1264: ac_prev=x_includes ;;
1265: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267: x_includes=$ac_optarg ;;
1268:
1269: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271: ac_prev=x_libraries ;;
1272: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274: x_libraries=$ac_optarg ;;
1275:
1276: -*) { echo "$as_me: error: unrecognized option: $ac_option
1277: Try \`$0 --help' for more information." >&2
1278: { (exit 1); exit 1; }; }
1279: ;;
1280:
1281: *=*)
1282: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283: # Reject names that are not valid shell variable names.
1284: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1287: eval $ac_envvar=\$ac_optarg
1.1 root 1288: export $ac_envvar ;;
1289:
1290: *)
1291: # FIXME: should be removed in autoconf 3.0.
1292: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296: ;;
1297:
1298: esac
1299: done
1300:
1301: if test -n "$ac_prev"; then
1302: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303: { echo "$as_me: error: missing argument to $ac_option" >&2
1304: { (exit 1); exit 1; }; }
1305: fi
1306:
1.1.1.5 ! root 1307: # Be sure to have absolute directory names.
! 1308: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1309: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1310: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1311: libdir localedir mandir
1.1 root 1312: do
1.1.1.5 ! root 1313: eval ac_val=\$$ac_var
1.1 root 1314: case $ac_val in
1.1.1.5 ! root 1315: [\\/$]* | ?:[\\/]* ) continue;;
! 1316: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1317: esac
1.1.1.5 ! root 1318: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1319: { (exit 1); exit 1; }; }
1.1 root 1320: done
1321:
1322: # There might be people who depend on the old broken behavior: `$host'
1323: # used to hold the argument of --host etc.
1324: # FIXME: To remove some day.
1325: build=$build_alias
1326: host=$host_alias
1327: target=$target_alias
1328:
1329: # FIXME: To remove some day.
1330: if test "x$host_alias" != x; then
1331: if test "x$build_alias" = x; then
1332: cross_compiling=maybe
1333: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334: If a cross compiler is detected then cross compile mode will be used." >&2
1335: elif test "x$build_alias" != "x$host_alias"; then
1336: cross_compiling=yes
1337: fi
1338: fi
1339:
1340: ac_tool_prefix=
1341: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342:
1343: test "$silent" = yes && exec 6>/dev/null
1344:
1345:
1.1.1.5 ! root 1346: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1347: ac_ls_di=`ls -di .` &&
! 1348: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1349: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1350: { (exit 1); exit 1; }; }
! 1351: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1352: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1353: { (exit 1); exit 1; }; }
! 1354:
! 1355:
! 1356: # Find the source files, if location was not specified.
! 1357: if test -z "$srcdir"; then
! 1358: ac_srcdir_defaulted=yes
! 1359: # Try the directory containing this script, then the parent directory.
! 1360: ac_confdir=`$as_dirname -- "$0" ||
1.1 root 1361: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 1362: X"$0" : 'X\(//\)[^/]' \| \
! 1363: X"$0" : 'X\(//\)$' \| \
! 1364: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 1365: echo X"$0" |
1.1.1.5 ! root 1366: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1367: s//\1/
! 1368: q
! 1369: }
! 1370: /^X\(\/\/\)[^/].*/{
! 1371: s//\1/
! 1372: q
! 1373: }
! 1374: /^X\(\/\/\)$/{
! 1375: s//\1/
! 1376: q
! 1377: }
! 1378: /^X\(\/\).*/{
! 1379: s//\1/
! 1380: q
! 1381: }
! 1382: s/.*/./; q'`
1.1 root 1383: srcdir=$ac_confdir
1.1.1.5 ! root 1384: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1385: srcdir=..
1386: fi
1387: else
1388: ac_srcdir_defaulted=no
1389: fi
1.1.1.5 ! root 1390: if test ! -r "$srcdir/$ac_unique_file"; then
! 1391: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1392: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 root 1393: { (exit 1); exit 1; }; }
1394: fi
1.1.1.5 ! root 1395: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1396: ac_abs_confdir=`(
! 1397: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1.1 root 1398: { (exit 1); exit 1; }; }
1.1.1.5 ! root 1399: pwd)`
! 1400: # When building in place, set srcdir=.
! 1401: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1402: srcdir=.
! 1403: fi
! 1404: # Remove unnecessary trailing slashes from srcdir.
! 1405: # Double slashes in file names in object file debugging info
! 1406: # mess up M-x gdb in Emacs.
! 1407: case $srcdir in
! 1408: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1409: esac
! 1410: for ac_var in $ac_precious_vars; do
! 1411: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1412: eval ac_env_${ac_var}_value=\$${ac_var}
! 1413: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1414: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1415: done
1.1 root 1416:
1417: #
1418: # Report the --help message.
1419: #
1420: if test "$ac_init_help" = "long"; then
1421: # Omit some internal or obsolete options to make the list less imposing.
1422: # This message is too long to be a string in the A/UX 3.1 sh.
1423: cat <<_ACEOF
1424: \`configure' configures this package to adapt to many kinds of systems.
1425:
1426: Usage: $0 [OPTION]... [VAR=VALUE]...
1427:
1428: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429: VAR=VALUE. See below for descriptions of some of the useful variables.
1430:
1431: Defaults for the options are specified in brackets.
1432:
1433: Configuration:
1434: -h, --help display this help and exit
1435: --help=short display options specific to this package
1436: --help=recursive display the short help of all the included packages
1437: -V, --version display version information and exit
1438: -q, --quiet, --silent do not print \`checking...' messages
1439: --cache-file=FILE cache test results in FILE [disabled]
1440: -C, --config-cache alias for \`--cache-file=config.cache'
1441: -n, --no-create do not create output files
1442: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443:
1444: Installation directories:
1445: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.5 ! root 1446: [$ac_default_prefix]
1.1 root 1447: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.5 ! root 1448: [PREFIX]
1.1 root 1449:
1450: By default, \`make install' will install all the files in
1451: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453: for instance \`--prefix=\$HOME'.
1454:
1455: For better control, use the options below.
1456:
1457: Fine tuning of the installation directories:
1458: --bindir=DIR user executables [EPREFIX/bin]
1459: --sbindir=DIR system admin executables [EPREFIX/sbin]
1460: --libexecdir=DIR program executables [EPREFIX/libexec]
1461: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464: --libdir=DIR object code libraries [EPREFIX/lib]
1465: --includedir=DIR C header files [PREFIX/include]
1466: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.5 ! root 1467: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1468: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1469: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1470: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1471: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1472: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
! 1473: --htmldir=DIR html documentation [DOCDIR]
! 1474: --dvidir=DIR dvi documentation [DOCDIR]
! 1475: --pdfdir=DIR pdf documentation [DOCDIR]
! 1476: --psdir=DIR ps documentation [DOCDIR]
1.1 root 1477: _ACEOF
1478:
1479: cat <<\_ACEOF
1480:
1481: Program names:
1482: --program-prefix=PREFIX prepend PREFIX to installed program names
1483: --program-suffix=SUFFIX append SUFFIX to installed program names
1484: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485:
1.1.1.2 root 1486: X features:
1487: --x-includes=DIR X include files are in DIR
1488: --x-libraries=DIR X library files are in DIR
1489:
1.1 root 1490: System types:
1491: --build=BUILD configure for building on BUILD [guessed]
1492: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493: --target=TARGET configure for building compilers for TARGET [HOST]
1494: _ACEOF
1495: fi
1496:
1497: if test -n "$ac_init_help"; then
1498:
1499: cat <<\_ACEOF
1500:
1501: Optional Features:
1502: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.5 ! root 1504: --disable-dependency-tracking speeds up one-time build
! 1505: --enable-dependency-tracking do not reject slow dependency extractors
! 1506: --disable-gtktest do not try to compile and run a test GTK+ program
! 1507: --enable-recode enable recode (dynamic binary translation) (default=if target supports)
! 1508: --enable-shared[=PKGS] build shared libraries [default=yes]
! 1509: --enable-static[=PKGS] build static libraries [default=yes]
1.1 root 1510: --enable-fast-install[=PKGS]
1511: optimize for fast installation [default=yes]
1512: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.4 root 1513: --enable-debug compile debuggable libraries and programs (default=don't)
1.1 root 1514: --disable-warnings don't compile with warnings turned on (default=do)
1515:
1516: Optional Packages:
1517: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 root 1519: --with-x use the X Window System
1.1.1.3 root 1520: --with-tme-host-displays=DISPLAYS support host displays with these display formats
1.1 root 1521: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522: --with-pic try to use only PIC/non-PIC objects [default=use
1523: both]
1.1.1.5 ! root 1524: --with-tags[=TAGS] include additional configurations [automatic]
1.1 root 1525:
1526: Some influential environment variables:
1527: CC C compiler command
1528: CFLAGS C compiler flags
1529: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530: nonstandard directory <lib dir>
1.1.1.5 ! root 1531: LIBS libraries to pass to the linker, e.g. -l<library>
! 1532: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1533: you have headers in a nonstandard directory <include dir>
1.1 root 1534: CPP C preprocessor
1.1.1.5 ! root 1535: YACC The `Yet Another C Compiler' implementation to use. Defaults to
! 1536: the first program found out of: `bison -y', `byacc', `yacc'.
! 1537: YFLAGS The list of arguments that will be passed by default to $YACC.
! 1538: This script will default YFLAGS to the empty string to avoid a
! 1539: default value of `-d' given by some make applications.
! 1540: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1 root 1541: CXX C++ compiler command
1542: CXXFLAGS C++ compiler flags
1543: CXXCPP C++ preprocessor
1544: F77 Fortran 77 compiler command
1545: FFLAGS Fortran 77 compiler flags
1546:
1547: Use these variables to override the choices made by `configure' or to help
1548: it to find libraries and programs with nonstandard names/locations.
1549:
1550: _ACEOF
1.1.1.5 ! root 1551: ac_status=$?
1.1 root 1552: fi
1553:
1554: if test "$ac_init_help" = "recursive"; then
1555: # If there are subdirs, report their specific --help.
1556: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.5 ! root 1557: test -d "$ac_dir" || continue
1.1 root 1558: ac_builddir=.
1559:
1.1.1.5 ! root 1560: case "$ac_dir" in
! 1561: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1562: *)
1.1 root 1563: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.5 ! root 1564: # A ".." for each directory in $ac_dir_suffix.
! 1565: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1566: case $ac_top_builddir_sub in
! 1567: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1568: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1569: esac ;;
! 1570: esac
! 1571: ac_abs_top_builddir=$ac_pwd
! 1572: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1573: # for backward compatibility:
! 1574: ac_top_builddir=$ac_top_build_prefix
1.1 root 1575:
1576: case $srcdir in
1.1.1.5 ! root 1577: .) # We are building in place.
1.1 root 1578: ac_srcdir=.
1.1.1.5 ! root 1579: ac_top_srcdir=$ac_top_builddir_sub
! 1580: ac_abs_top_srcdir=$ac_pwd ;;
! 1581: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 1582: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.5 ! root 1583: ac_top_srcdir=$srcdir
! 1584: ac_abs_top_srcdir=$srcdir ;;
! 1585: *) # Relative name.
! 1586: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1587: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1588: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 1589: esac
! 1590: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 1591:
1.1.1.5 ! root 1592: cd "$ac_dir" || { ac_status=$?; continue; }
! 1593: # Check for guested configure.
! 1594: if test -f "$ac_srcdir/configure.gnu"; then
! 1595: echo &&
! 1596: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1597: elif test -f "$ac_srcdir/configure"; then
! 1598: echo &&
! 1599: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 root 1600: else
1601: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.5 ! root 1602: fi || ac_status=$?
! 1603: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 root 1604: done
1605: fi
1606:
1.1.1.5 ! root 1607: test -n "$ac_init_help" && exit $ac_status
1.1 root 1608: if $ac_init_version; then
1609: cat <<\_ACEOF
1.1.1.5 ! root 1610: configure
! 1611: generated by GNU Autoconf 2.61
1.1 root 1612:
1.1.1.5 ! root 1613: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1614: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 1615: This configure script is free software; the Free Software Foundation
1616: gives unlimited permission to copy, distribute and modify it.
1617: _ACEOF
1.1.1.5 ! root 1618: exit
1.1 root 1619: fi
1.1.1.5 ! root 1620: cat >config.log <<_ACEOF
1.1 root 1621: This file contains any messages produced by compilers while
1622: running configure, to aid debugging if configure makes a mistake.
1623:
1624: It was created by $as_me, which was
1.1.1.5 ! root 1625: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 1626:
1627: $ $0 $@
1628:
1629: _ACEOF
1.1.1.5 ! root 1630: exec 5>>config.log
1.1 root 1631: {
1632: cat <<_ASUNAME
1633: ## --------- ##
1634: ## Platform. ##
1635: ## --------- ##
1636:
1637: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1638: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1639: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1640: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1641: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642:
1643: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1644: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1645:
1646: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1647: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1648: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.5 ! root 1649: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 root 1650: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1651: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1652: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653:
1654: _ASUNAME
1655:
1656: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657: for as_dir in $PATH
1658: do
1659: IFS=$as_save_IFS
1660: test -z "$as_dir" && as_dir=.
1661: echo "PATH: $as_dir"
1662: done
1.1.1.5 ! root 1663: IFS=$as_save_IFS
1.1 root 1664:
1665: } >&5
1666:
1667: cat >&5 <<_ACEOF
1668:
1669:
1670: ## ----------- ##
1671: ## Core tests. ##
1672: ## ----------- ##
1673:
1674: _ACEOF
1675:
1676:
1677: # Keep a trace of the command line.
1678: # Strip out --no-create and --no-recursion so they do not pile up.
1679: # Strip out --silent because we don't want to record it for future runs.
1680: # Also quote any args containing shell meta-characters.
1681: # Make two passes to allow for proper duplicate-argument suppression.
1682: ac_configure_args=
1683: ac_configure_args0=
1684: ac_configure_args1=
1685: ac_must_keep_next=false
1686: for ac_pass in 1 2
1687: do
1688: for ac_arg
1689: do
1690: case $ac_arg in
1691: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1692: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693: | -silent | --silent | --silen | --sile | --sil)
1694: continue ;;
1.1.1.5 ! root 1695: *\'*)
1.1 root 1696: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1697: esac
1698: case $ac_pass in
1699: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700: 2)
1701: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1702: if test $ac_must_keep_next = true; then
1.1.1.5 ! root 1703: ac_must_keep_next=false # Got value, back to normal.
1.1 root 1704: else
1.1.1.5 ! root 1705: case $ac_arg in
! 1706: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1707: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1708: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1709: | -with-* | --with-* | -without-* | --without-* | --x)
! 1710: case "$ac_configure_args0 " in
! 1711: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1712: esac
! 1713: ;;
! 1714: -* ) ac_must_keep_next=true ;;
! 1715: esac
1.1 root 1716: fi
1.1.1.5 ! root 1717: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1 root 1718: ;;
1719: esac
1720: done
1721: done
1722: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1723: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724:
1725: # When interrupted or exit'd, cleanup temporary files, and complete
1726: # config.log. We remove comments because anyway the quotes in there
1727: # would cause problems or look ugly.
1.1.1.5 ! root 1728: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1729: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 root 1730: trap 'exit_status=$?
1731: # Save into config.log some information that might help in debugging.
1732: {
1733: echo
1734:
1735: cat <<\_ASBOX
1736: ## ---------------- ##
1737: ## Cache variables. ##
1738: ## ---------------- ##
1739: _ASBOX
1740: echo
1741: # The following way of writing the cache mishandles newlines in values,
1.1.1.5 ! root 1742: (
! 1743: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1744: eval ac_val=\$$ac_var
! 1745: case $ac_val in #(
! 1746: *${as_nl}*)
! 1747: case $ac_var in #(
! 1748: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1749: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1750: esac
! 1751: case $ac_var in #(
! 1752: _ | IFS | as_nl) ;; #(
! 1753: *) $as_unset $ac_var ;;
! 1754: esac ;;
! 1755: esac
! 1756: done
1.1 root 1757: (set) 2>&1 |
1.1.1.5 ! root 1758: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1759: *${as_nl}ac_space=\ *)
1.1 root 1760: sed -n \
1.1.1.5 ! root 1761: "s/'\''/'\''\\\\'\'''\''/g;
! 1762: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1763: ;; #(
1.1 root 1764: *)
1.1.1.5 ! root 1765: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 1766: ;;
1.1.1.5 ! root 1767: esac |
! 1768: sort
! 1769: )
1.1 root 1770: echo
1771:
1772: cat <<\_ASBOX
1773: ## ----------------- ##
1774: ## Output variables. ##
1775: ## ----------------- ##
1776: _ASBOX
1777: echo
1778: for ac_var in $ac_subst_vars
1779: do
1.1.1.5 ! root 1780: eval ac_val=\$$ac_var
! 1781: case $ac_val in
! 1782: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1783: esac
! 1784: echo "$ac_var='\''$ac_val'\''"
1.1 root 1785: done | sort
1786: echo
1787:
1788: if test -n "$ac_subst_files"; then
1789: cat <<\_ASBOX
1.1.1.5 ! root 1790: ## ------------------- ##
! 1791: ## File substitutions. ##
! 1792: ## ------------------- ##
1.1 root 1793: _ASBOX
1794: echo
1795: for ac_var in $ac_subst_files
1796: do
1.1.1.5 ! root 1797: eval ac_val=\$$ac_var
! 1798: case $ac_val in
! 1799: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1800: esac
! 1801: echo "$ac_var='\''$ac_val'\''"
1.1 root 1802: done | sort
1803: echo
1804: fi
1805:
1806: if test -s confdefs.h; then
1807: cat <<\_ASBOX
1808: ## ----------- ##
1809: ## confdefs.h. ##
1810: ## ----------- ##
1811: _ASBOX
1812: echo
1.1.1.5 ! root 1813: cat confdefs.h
1.1 root 1814: echo
1815: fi
1816: test "$ac_signal" != 0 &&
1817: echo "$as_me: caught signal $ac_signal"
1818: echo "$as_me: exit $exit_status"
1819: } >&5
1.1.1.5 ! root 1820: rm -f core *.core core.conftest.* &&
! 1821: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 root 1822: exit $exit_status
1.1.1.5 ! root 1823: ' 0
1.1 root 1824: for ac_signal in 1 2 13 15; do
1825: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1826: done
1827: ac_signal=0
1828:
1829: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.5 ! root 1830: rm -f -r conftest* confdefs.h
1.1 root 1831:
1832: # Predefined preprocessor variables.
1833:
1834: cat >>confdefs.h <<_ACEOF
1835: #define PACKAGE_NAME "$PACKAGE_NAME"
1836: _ACEOF
1837:
1838:
1839: cat >>confdefs.h <<_ACEOF
1840: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1841: _ACEOF
1842:
1843:
1844: cat >>confdefs.h <<_ACEOF
1845: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1846: _ACEOF
1847:
1848:
1849: cat >>confdefs.h <<_ACEOF
1850: #define PACKAGE_STRING "$PACKAGE_STRING"
1851: _ACEOF
1852:
1853:
1854: cat >>confdefs.h <<_ACEOF
1855: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1856: _ACEOF
1857:
1858:
1859: # Let the site file select an alternate cache file if it wants to.
1860: # Prefer explicitly selected file to automatically selected ones.
1.1.1.5 ! root 1861: if test -n "$CONFIG_SITE"; then
! 1862: set x "$CONFIG_SITE"
! 1863: elif test "x$prefix" != xNONE; then
! 1864: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1865: else
! 1866: set x "$ac_default_prefix/share/config.site" \
! 1867: "$ac_default_prefix/etc/config.site"
1.1 root 1868: fi
1.1.1.5 ! root 1869: shift
! 1870: for ac_site_file
! 1871: do
1.1 root 1872: if test -r "$ac_site_file"; then
1873: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874: echo "$as_me: loading site script $ac_site_file" >&6;}
1875: sed 's/^/| /' "$ac_site_file" >&5
1876: . "$ac_site_file"
1877: fi
1878: done
1879:
1880: if test -r "$cache_file"; then
1881: # Some versions of bash will fail to source /dev/null (special
1882: # files actually), so we avoid doing that.
1883: if test -f "$cache_file"; then
1884: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885: echo "$as_me: loading cache $cache_file" >&6;}
1886: case $cache_file in
1.1.1.5 ! root 1887: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1888: *) . "./$cache_file";;
1.1 root 1889: esac
1890: fi
1891: else
1892: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893: echo "$as_me: creating cache $cache_file" >&6;}
1894: >$cache_file
1895: fi
1896:
1897: # Check that the precious variables saved in the cache have kept the same
1898: # value.
1899: ac_cache_corrupted=false
1.1.1.5 ! root 1900: for ac_var in $ac_precious_vars; do
1.1 root 1901: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.5 ! root 1903: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1904: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 root 1905: case $ac_old_set,$ac_new_set in
1906: set,)
1907: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909: ac_cache_corrupted=: ;;
1910: ,set)
1911: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913: ac_cache_corrupted=: ;;
1914: ,);;
1915: *)
1916: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.5 ! root 1917: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1 root 1918: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1.1.5 ! root 1919: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1 root 1920: echo "$as_me: former value: $ac_old_val" >&2;}
1.1.1.5 ! root 1921: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1 root 1922: echo "$as_me: current value: $ac_new_val" >&2;}
1.1.1.5 ! root 1923: ac_cache_corrupted=:
1.1 root 1924: fi;;
1925: esac
1926: # Pass precious variables to config.status.
1927: if test "$ac_new_set" = set; then
1928: case $ac_new_val in
1.1.1.5 ! root 1929: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1930: *) ac_arg=$ac_var=$ac_new_val ;;
1931: esac
1932: case " $ac_configure_args " in
1933: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935: esac
1936: fi
1937: done
1938: if $ac_cache_corrupted; then
1939: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1943: { (exit 1); exit 1; }; }
1944: fi
1945:
1946:
1947:
1948:
1949:
1950:
1951:
1952:
1953:
1954:
1955:
1956:
1957:
1958:
1959:
1960:
1961:
1.1.1.5 ! root 1962: ac_ext=c
! 1963: ac_cpp='$CPP $CPPFLAGS'
! 1964: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1965: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1966: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 1967:
1968:
1969: ac_aux_dir=
1.1.1.5 ! root 1970: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 1971: if test -f "$ac_dir/install-sh"; then
1.1 root 1972: ac_aux_dir=$ac_dir
1973: ac_install_sh="$ac_aux_dir/install-sh -c"
1974: break
1.1.1.5 ! root 1975: elif test -f "$ac_dir/install.sh"; then
1.1 root 1976: ac_aux_dir=$ac_dir
1977: ac_install_sh="$ac_aux_dir/install.sh -c"
1978: break
1.1.1.5 ! root 1979: elif test -f "$ac_dir/shtool"; then
1.1 root 1980: ac_aux_dir=$ac_dir
1981: ac_install_sh="$ac_aux_dir/shtool install -c"
1982: break
1983: fi
1984: done
1985: if test -z "$ac_aux_dir"; then
1.1.1.5 ! root 1986: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 1987: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1 root 1988: { (exit 1); exit 1; }; }
1989: fi
1.1.1.5 ! root 1990:
! 1991: # These three variables are undocumented and unsupported,
! 1992: # and are intended to be withdrawn in a future Autoconf release.
! 1993: # They can cause serious problems if a builder's source tree is in a directory
! 1994: # whose full name contains unusual characters.
! 1995: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 1996: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 1997: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 1998:
1.1 root 1999:
2000: # Make sure we can run config.sub.
1.1.1.5 ! root 2001: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 2002: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 2003: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1 root 2004: { (exit 1); exit 1; }; }
2005:
1.1.1.5 ! root 2006: { echo "$as_me:$LINENO: checking build system type" >&5
! 2007: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1 root 2008: if test "${ac_cv_build+set}" = set; then
2009: echo $ECHO_N "(cached) $ECHO_C" >&6
2010: else
1.1.1.5 ! root 2011: ac_build_alias=$build_alias
! 2012: test "x$ac_build_alias" = x &&
! 2013: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 2014: test "x$ac_build_alias" = x &&
1.1 root 2015: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017: { (exit 1); exit 1; }; }
1.1.1.5 ! root 2018: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 2019: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 2020: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1 root 2021: { (exit 1); exit 1; }; }
2022:
2023: fi
1.1.1.5 ! root 2024: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 2025: echo "${ECHO_T}$ac_cv_build" >&6; }
! 2026: case $ac_cv_build in
! 2027: *-*-*) ;;
! 2028: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 2029: echo "$as_me: error: invalid value of canonical build" >&2;}
! 2030: { (exit 1); exit 1; }; };;
! 2031: esac
1.1 root 2032: build=$ac_cv_build
1.1.1.5 ! root 2033: ac_save_IFS=$IFS; IFS='-'
! 2034: set x $ac_cv_build
! 2035: shift
! 2036: build_cpu=$1
! 2037: build_vendor=$2
! 2038: shift; shift
! 2039: # Remember, the first character of IFS is used to create $*,
! 2040: # except with old shells:
! 2041: build_os=$*
! 2042: IFS=$ac_save_IFS
! 2043: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 2044:
2045:
1.1.1.5 ! root 2046: { echo "$as_me:$LINENO: checking host system type" >&5
! 2047: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1 root 2048: if test "${ac_cv_host+set}" = set; then
2049: echo $ECHO_N "(cached) $ECHO_C" >&6
2050: else
1.1.1.5 ! root 2051: if test "x$host_alias" = x; then
! 2052: ac_cv_host=$ac_cv_build
! 2053: else
! 2054: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 2055: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 2056: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1 root 2057: { (exit 1); exit 1; }; }
1.1.1.5 ! root 2058: fi
1.1 root 2059:
2060: fi
1.1.1.5 ! root 2061: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 2062: echo "${ECHO_T}$ac_cv_host" >&6; }
! 2063: case $ac_cv_host in
! 2064: *-*-*) ;;
! 2065: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 2066: echo "$as_me: error: invalid value of canonical host" >&2;}
! 2067: { (exit 1); exit 1; }; };;
! 2068: esac
1.1 root 2069: host=$ac_cv_host
1.1.1.5 ! root 2070: ac_save_IFS=$IFS; IFS='-'
! 2071: set x $ac_cv_host
! 2072: shift
! 2073: host_cpu=$1
! 2074: host_vendor=$2
! 2075: shift; shift
! 2076: # Remember, the first character of IFS is used to create $*,
! 2077: # except with old shells:
! 2078: host_os=$*
! 2079: IFS=$ac_save_IFS
! 2080: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 2081:
2082:
1.1.1.5 ! root 2083: { echo "$as_me:$LINENO: checking target system type" >&5
! 2084: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.1 root 2085: if test "${ac_cv_target+set}" = set; then
2086: echo $ECHO_N "(cached) $ECHO_C" >&6
2087: else
1.1.1.5 ! root 2088: if test "x$target_alias" = x; then
! 2089: ac_cv_target=$ac_cv_host
! 2090: else
! 2091: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
! 2092: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 2093: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.1 root 2094: { (exit 1); exit 1; }; }
1.1.1.5 ! root 2095: fi
1.1 root 2096:
2097: fi
1.1.1.5 ! root 2098: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 2099: echo "${ECHO_T}$ac_cv_target" >&6; }
! 2100: case $ac_cv_target in
! 2101: *-*-*) ;;
! 2102: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 2103: echo "$as_me: error: invalid value of canonical target" >&2;}
! 2104: { (exit 1); exit 1; }; };;
! 2105: esac
1.1 root 2106: target=$ac_cv_target
1.1.1.5 ! root 2107: ac_save_IFS=$IFS; IFS='-'
! 2108: set x $ac_cv_target
! 2109: shift
! 2110: target_cpu=$1
! 2111: target_vendor=$2
! 2112: shift; shift
! 2113: # Remember, the first character of IFS is used to create $*,
! 2114: # except with old shells:
! 2115: target_os=$*
! 2116: IFS=$ac_save_IFS
! 2117: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.1 root 2118:
2119:
2120: # The aliases save the names the user supplied, while $host etc.
2121: # will get canonicalized.
2122: test -n "$target_alias" &&
2123: test "$program_prefix$program_suffix$program_transform_name" = \
2124: NONENONEs,x,x, &&
2125: program_prefix=${target_alias}-
1.1.1.5 ! root 2126: am__api_version='1.10'
! 2127:
1.1 root 2128: # Find a good install program. We prefer a C program (faster),
2129: # so one script is as good as another. But avoid the broken or
2130: # incompatible versions:
2131: # SysV /etc/install, /usr/sbin/install
2132: # SunOS /usr/etc/install
2133: # IRIX /sbin/install
2134: # AIX /bin/install
2135: # AmigaOS /C/install, which installs bootblocks on floppy discs
2136: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.5 ! root 2139: # OS/2's system install, which has a completely different semantic
1.1 root 2140: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.5 ! root 2141: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 2142: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1 root 2143: if test -z "$INSTALL"; then
2144: if test "${ac_cv_path_install+set}" = set; then
2145: echo $ECHO_N "(cached) $ECHO_C" >&6
2146: else
2147: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148: for as_dir in $PATH
2149: do
2150: IFS=$as_save_IFS
2151: test -z "$as_dir" && as_dir=.
2152: # Account for people who put trailing slashes in PATH elements.
2153: case $as_dir/ in
2154: ./ | .// | /cC/* | \
2155: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.5 ! root 2156: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 2157: /usr/ucb/* ) ;;
2158: *)
2159: # OSF1 and SCO ODT 3.0 have their own names for install.
2160: # Don't use installbsd from OSF since it installs stuff as root
2161: # by default.
2162: for ac_prog in ginstall scoinst install; do
2163: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2164: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
! 2165: if test $ac_prog = install &&
! 2166: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2167: # AIX install. It has an incompatible calling convention.
! 2168: :
! 2169: elif test $ac_prog = install &&
! 2170: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2171: # program-specific install script used by HP pwplus--don't use.
! 2172: :
! 2173: else
! 2174: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 2175: break 3
! 2176: fi
! 2177: fi
1.1 root 2178: done
2179: done
2180: ;;
2181: esac
2182: done
1.1.1.5 ! root 2183: IFS=$as_save_IFS
1.1 root 2184:
2185:
2186: fi
2187: if test "${ac_cv_path_install+set}" = set; then
2188: INSTALL=$ac_cv_path_install
2189: else
1.1.1.5 ! root 2190: # As a last resort, use the slow shell script. Don't cache a
! 2191: # value for INSTALL within a source directory, because that will
1.1 root 2192: # break other packages using the cache if that directory is
1.1.1.5 ! root 2193: # removed, or if the value is a relative name.
1.1 root 2194: INSTALL=$ac_install_sh
2195: fi
2196: fi
1.1.1.5 ! root 2197: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 2198: echo "${ECHO_T}$INSTALL" >&6; }
1.1 root 2199:
2200: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201: # It thinks the first close brace ends the variable substitution.
2202: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203:
2204: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205:
2206: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207:
1.1.1.5 ! root 2208: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 2209: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1.1 root 2210: # Just in case
2211: sleep 1
2212: echo timestamp > conftest.file
2213: # Do `set' in a subshell so we don't clobber the current shell's
2214: # arguments. Must try -L first in case configure is actually a
2215: # symlink; some systems play weird games with the mod time of symlinks
2216: # (eg FreeBSD returns the mod time of the symlink's containing
2217: # directory).
2218: if (
2219: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2220: if test "$*" = "X"; then
2221: # -L didn't work.
2222: set X `ls -t $srcdir/configure conftest.file`
2223: fi
2224: rm -f conftest.file
2225: if test "$*" != "X $srcdir/configure conftest.file" \
2226: && test "$*" != "X conftest.file $srcdir/configure"; then
2227:
2228: # If neither matched, then we have a broken ls. This can happen
2229: # if, for instance, CONFIG_SHELL is bash and it inherits a
2230: # broken ls alias from the environment. This has actually
2231: # happened. Such a system could not be considered "sane".
2232: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2233: alias in your environment" >&5
2234: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2235: alias in your environment" >&2;}
2236: { (exit 1); exit 1; }; }
2237: fi
2238:
2239: test "$2" = conftest.file
2240: )
2241: then
2242: # Ok.
2243: :
2244: else
2245: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2246: Check your system clock" >&5
2247: echo "$as_me: error: newly created file is older than distributed files!
2248: Check your system clock" >&2;}
2249: { (exit 1); exit 1; }; }
2250: fi
1.1.1.5 ! root 2251: { echo "$as_me:$LINENO: result: yes" >&5
! 2252: echo "${ECHO_T}yes" >&6; }
1.1 root 2253: test "$program_prefix" != NONE &&
1.1.1.5 ! root 2254: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 root 2255: # Use a double $ so make ignores it.
2256: test "$program_suffix" != NONE &&
1.1.1.5 ! root 2257: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.1 root 2258: # Double any \ or $. echo might interpret backslashes.
2259: # By default was `s,x,x', remove it if useless.
2260: cat <<\_ACEOF >conftest.sed
2261: s/[\\$]/&&/g;s/;s,x,x,$//
2262: _ACEOF
2263: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1.1.1.5 ! root 2264: rm -f conftest.sed
1.1 root 2265:
2266: # expand $ac_aux_dir to an absolute path
2267: am_aux_dir=`cd $ac_aux_dir && pwd`
2268:
2269: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2270: # Use eval to expand $SHELL
2271: if eval "$MISSING --run true"; then
2272: am_missing_run="$MISSING --run "
2273: else
2274: am_missing_run=
2275: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2276: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2277: fi
2278:
1.1.1.5 ! root 2279: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
! 2280: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
! 2281: if test -z "$MKDIR_P"; then
! 2282: if test "${ac_cv_path_mkdir+set}" = set; then
! 2283: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2284: else
! 2285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2286: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
! 2287: do
! 2288: IFS=$as_save_IFS
! 2289: test -z "$as_dir" && as_dir=.
! 2290: for ac_prog in mkdir gmkdir; do
! 2291: for ac_exec_ext in '' $ac_executable_extensions; do
! 2292: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
! 2293: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 2294: 'mkdir (GNU coreutils) '* | \
! 2295: 'mkdir (coreutils) '* | \
! 2296: 'mkdir (fileutils) '4.1*)
! 2297: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
! 2298: break 3;;
! 2299: esac
! 2300: done
! 2301: done
! 2302: done
! 2303: IFS=$as_save_IFS
! 2304:
! 2305: fi
! 2306:
! 2307: if test "${ac_cv_path_mkdir+set}" = set; then
! 2308: MKDIR_P="$ac_cv_path_mkdir -p"
! 2309: else
! 2310: # As a last resort, use the slow shell script. Don't cache a
! 2311: # value for MKDIR_P within a source directory, because that will
! 2312: # break other packages using the cache if that directory is
! 2313: # removed, or if the value is a relative name.
! 2314: test -d ./--version && rmdir ./--version
! 2315: MKDIR_P="$ac_install_sh -d"
! 2316: fi
! 2317: fi
! 2318: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
! 2319: echo "${ECHO_T}$MKDIR_P" >&6; }
! 2320:
! 2321: mkdir_p="$MKDIR_P"
! 2322: case $mkdir_p in
! 2323: [\\/$]* | ?:[\\/]*) ;;
! 2324: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
! 2325: esac
! 2326:
1.1 root 2327: for ac_prog in gawk mawk nawk awk
2328: do
2329: # Extract the first word of "$ac_prog", so it can be a program name with args.
2330: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 2331: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2332: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2333: if test "${ac_cv_prog_AWK+set}" = set; then
2334: echo $ECHO_N "(cached) $ECHO_C" >&6
2335: else
2336: if test -n "$AWK"; then
2337: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2338: else
2339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340: for as_dir in $PATH
2341: do
2342: IFS=$as_save_IFS
2343: test -z "$as_dir" && as_dir=.
2344: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2345: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2346: ac_cv_prog_AWK="$ac_prog"
2347: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348: break 2
2349: fi
2350: done
2351: done
1.1.1.5 ! root 2352: IFS=$as_save_IFS
1.1 root 2353:
2354: fi
2355: fi
2356: AWK=$ac_cv_prog_AWK
2357: if test -n "$AWK"; then
1.1.1.5 ! root 2358: { echo "$as_me:$LINENO: result: $AWK" >&5
! 2359: echo "${ECHO_T}$AWK" >&6; }
1.1 root 2360: else
1.1.1.5 ! root 2361: { echo "$as_me:$LINENO: result: no" >&5
! 2362: echo "${ECHO_T}no" >&6; }
1.1 root 2363: fi
2364:
1.1.1.5 ! root 2365:
1.1 root 2366: test -n "$AWK" && break
2367: done
2368:
1.1.1.5 ! root 2369: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2370: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
! 2371: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2372: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 2373: echo $ECHO_N "(cached) $ECHO_C" >&6
2374: else
2375: cat >conftest.make <<\_ACEOF
1.1.1.5 ! root 2376: SHELL = /bin/sh
1.1 root 2377: all:
1.1.1.5 ! root 2378: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 root 2379: _ACEOF
2380: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.5 ! root 2381: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2382: *@@@%%%=?*=@@@%%%*)
! 2383: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2384: *)
! 2385: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2386: esac
1.1 root 2387: rm -f conftest.make
2388: fi
1.1.1.5 ! root 2389: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2390: { echo "$as_me:$LINENO: result: yes" >&5
! 2391: echo "${ECHO_T}yes" >&6; }
1.1 root 2392: SET_MAKE=
2393: else
1.1.1.5 ! root 2394: { echo "$as_me:$LINENO: result: no" >&5
! 2395: echo "${ECHO_T}no" >&6; }
1.1 root 2396: SET_MAKE="MAKE=${MAKE-make}"
2397: fi
2398:
1.1.1.5 ! root 2399: rm -rf .tst 2>/dev/null
! 2400: mkdir .tst 2>/dev/null
! 2401: if test -d .tst; then
! 2402: am__leading_dot=.
! 2403: else
! 2404: am__leading_dot=_
! 2405: fi
! 2406: rmdir .tst 2>/dev/null
! 2407:
! 2408: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 2409: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 2410: # is not polluted with repeated "-I."
! 2411: am__isrc=' -I$(srcdir)'
! 2412: # test to see if srcdir already configured
! 2413: if test -f $srcdir/config.status; then
! 2414: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1.1 root 2415: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2416: { (exit 1); exit 1; }; }
1.1.1.5 ! root 2417: fi
1.1 root 2418: fi
2419:
2420: # test whether we have cygpath
2421: if test -z "$CYGPATH_W"; then
2422: if (cygpath --version) >/dev/null 2>/dev/null; then
2423: CYGPATH_W='cygpath -w'
2424: else
2425: CYGPATH_W=echo
2426: fi
2427: fi
2428:
2429:
2430: # Define the identity of the package.
2431: PACKAGE=tme
1.1.1.5 ! root 2432: VERSION=0.8
1.1 root 2433:
2434:
2435: cat >>confdefs.h <<_ACEOF
2436: #define PACKAGE "$PACKAGE"
2437: _ACEOF
2438:
2439:
2440: cat >>confdefs.h <<_ACEOF
2441: #define VERSION "$VERSION"
2442: _ACEOF
2443:
2444: # Some tools Automake needs.
2445:
2446: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2447:
2448:
2449: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2450:
2451:
2452: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2453:
2454:
2455: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2456:
2457:
2458: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2459:
1.1.1.5 ! root 2460: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1.1 root 2461:
2462: # Installed binaries are usually stripped using `strip' when the user
2463: # run `make install-strip'. However `strip' might not be the right
2464: # tool to use in cross-compilation environments, therefore Automake
2465: # will honor the `STRIP' environment variable to overrule this program.
2466: if test "$cross_compiling" != no; then
2467: if test -n "$ac_tool_prefix"; then
2468: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.5 ! root 2470: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2471: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2472: if test "${ac_cv_prog_STRIP+set}" = set; then
2473: echo $ECHO_N "(cached) $ECHO_C" >&6
2474: else
2475: if test -n "$STRIP"; then
2476: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477: else
2478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479: for as_dir in $PATH
2480: do
2481: IFS=$as_save_IFS
2482: test -z "$as_dir" && as_dir=.
2483: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2484: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2485: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487: break 2
2488: fi
2489: done
2490: done
1.1.1.5 ! root 2491: IFS=$as_save_IFS
1.1 root 2492:
2493: fi
2494: fi
2495: STRIP=$ac_cv_prog_STRIP
2496: if test -n "$STRIP"; then
1.1.1.5 ! root 2497: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 2498: echo "${ECHO_T}$STRIP" >&6; }
1.1 root 2499: else
1.1.1.5 ! root 2500: { echo "$as_me:$LINENO: result: no" >&5
! 2501: echo "${ECHO_T}no" >&6; }
1.1 root 2502: fi
2503:
1.1.1.5 ! root 2504:
1.1 root 2505: fi
2506: if test -z "$ac_cv_prog_STRIP"; then
2507: ac_ct_STRIP=$STRIP
2508: # Extract the first word of "strip", so it can be a program name with args.
2509: set dummy strip; ac_word=$2
1.1.1.5 ! root 2510: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2511: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2512: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2513: echo $ECHO_N "(cached) $ECHO_C" >&6
2514: else
2515: if test -n "$ac_ct_STRIP"; then
2516: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517: else
2518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519: for as_dir in $PATH
2520: do
2521: IFS=$as_save_IFS
2522: test -z "$as_dir" && as_dir=.
2523: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2524: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2525: ac_cv_prog_ac_ct_STRIP="strip"
2526: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527: break 2
2528: fi
2529: done
2530: done
1.1.1.5 ! root 2531: IFS=$as_save_IFS
1.1 root 2532:
2533: fi
2534: fi
2535: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536: if test -n "$ac_ct_STRIP"; then
1.1.1.5 ! root 2537: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 2538: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1.1 root 2539: else
1.1.1.5 ! root 2540: { echo "$as_me:$LINENO: result: no" >&5
! 2541: echo "${ECHO_T}no" >&6; }
1.1 root 2542: fi
2543:
1.1.1.5 ! root 2544: if test "x$ac_ct_STRIP" = x; then
! 2545: STRIP=":"
! 2546: else
! 2547: case $cross_compiling:$ac_tool_warned in
! 2548: yes:)
! 2549: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2550: whose name does not start with the host triplet. If you think this
! 2551: configuration is useful to you, please write to [email protected]." >&5
! 2552: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2553: whose name does not start with the host triplet. If you think this
! 2554: configuration is useful to you, please write to [email protected]." >&2;}
! 2555: ac_tool_warned=yes ;;
! 2556: esac
! 2557: STRIP=$ac_ct_STRIP
! 2558: fi
1.1 root 2559: else
2560: STRIP="$ac_cv_prog_STRIP"
2561: fi
2562:
2563: fi
1.1.1.5 ! root 2564: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 root 2565:
2566: # We need awk for the "check" target. The system "awk" is bad on
2567: # some platforms.
1.1.1.5 ! root 2568: # Always define AMTAR for backward compatibility.
! 2569:
! 2570: AMTAR=${AMTAR-"${am_missing_run}tar"}
! 2571:
! 2572: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
! 2573:
1.1 root 2574:
2575:
2576:
2577:
1.1.1.5 ! root 2578:
! 2579: ac_config_headers="$ac_config_headers config.h"
1.1 root 2580:
2581:
2582: ac_ext=c
2583: ac_cpp='$CPP $CPPFLAGS'
2584: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587: if test -n "$ac_tool_prefix"; then
2588: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.5 ! root 2590: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2591: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2592: if test "${ac_cv_prog_CC+set}" = set; then
2593: echo $ECHO_N "(cached) $ECHO_C" >&6
2594: else
2595: if test -n "$CC"; then
2596: ac_cv_prog_CC="$CC" # Let the user override the test.
2597: else
2598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599: for as_dir in $PATH
2600: do
2601: IFS=$as_save_IFS
2602: test -z "$as_dir" && as_dir=.
2603: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2604: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2605: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607: break 2
2608: fi
2609: done
2610: done
1.1.1.5 ! root 2611: IFS=$as_save_IFS
1.1 root 2612:
2613: fi
2614: fi
2615: CC=$ac_cv_prog_CC
2616: if test -n "$CC"; then
1.1.1.5 ! root 2617: { echo "$as_me:$LINENO: result: $CC" >&5
! 2618: echo "${ECHO_T}$CC" >&6; }
1.1 root 2619: else
1.1.1.5 ! root 2620: { echo "$as_me:$LINENO: result: no" >&5
! 2621: echo "${ECHO_T}no" >&6; }
1.1 root 2622: fi
2623:
1.1.1.5 ! root 2624:
1.1 root 2625: fi
2626: if test -z "$ac_cv_prog_CC"; then
2627: ac_ct_CC=$CC
2628: # Extract the first word of "gcc", so it can be a program name with args.
2629: set dummy gcc; ac_word=$2
1.1.1.5 ! root 2630: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2631: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2632: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2633: echo $ECHO_N "(cached) $ECHO_C" >&6
2634: else
2635: if test -n "$ac_ct_CC"; then
2636: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637: else
2638: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639: for as_dir in $PATH
2640: do
2641: IFS=$as_save_IFS
2642: test -z "$as_dir" && as_dir=.
2643: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2644: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2645: ac_cv_prog_ac_ct_CC="gcc"
2646: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647: break 2
2648: fi
2649: done
2650: done
1.1.1.5 ! root 2651: IFS=$as_save_IFS
1.1 root 2652:
2653: fi
2654: fi
2655: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656: if test -n "$ac_ct_CC"; then
1.1.1.5 ! root 2657: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2658: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2659: else
1.1.1.5 ! root 2660: { echo "$as_me:$LINENO: result: no" >&5
! 2661: echo "${ECHO_T}no" >&6; }
1.1 root 2662: fi
2663:
1.1.1.5 ! root 2664: if test "x$ac_ct_CC" = x; then
! 2665: CC=""
! 2666: else
! 2667: case $cross_compiling:$ac_tool_warned in
! 2668: yes:)
! 2669: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2670: whose name does not start with the host triplet. If you think this
! 2671: configuration is useful to you, please write to [email protected]." >&5
! 2672: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2673: whose name does not start with the host triplet. If you think this
! 2674: configuration is useful to you, please write to [email protected]." >&2;}
! 2675: ac_tool_warned=yes ;;
! 2676: esac
! 2677: CC=$ac_ct_CC
! 2678: fi
1.1 root 2679: else
2680: CC="$ac_cv_prog_CC"
2681: fi
2682:
2683: if test -z "$CC"; then
1.1.1.5 ! root 2684: if test -n "$ac_tool_prefix"; then
! 2685: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 root 2686: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.5 ! root 2687: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2689: if test "${ac_cv_prog_CC+set}" = set; then
2690: echo $ECHO_N "(cached) $ECHO_C" >&6
2691: else
2692: if test -n "$CC"; then
2693: ac_cv_prog_CC="$CC" # Let the user override the test.
2694: else
2695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696: for as_dir in $PATH
2697: do
2698: IFS=$as_save_IFS
2699: test -z "$as_dir" && as_dir=.
2700: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2701: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2702: ac_cv_prog_CC="${ac_tool_prefix}cc"
2703: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704: break 2
2705: fi
2706: done
2707: done
1.1.1.5 ! root 2708: IFS=$as_save_IFS
1.1 root 2709:
2710: fi
2711: fi
2712: CC=$ac_cv_prog_CC
2713: if test -n "$CC"; then
1.1.1.5 ! root 2714: { echo "$as_me:$LINENO: result: $CC" >&5
! 2715: echo "${ECHO_T}$CC" >&6; }
1.1 root 2716: else
1.1.1.5 ! root 2717: { echo "$as_me:$LINENO: result: no" >&5
! 2718: echo "${ECHO_T}no" >&6; }
1.1 root 2719: fi
2720:
2721:
1.1.1.5 ! root 2722: fi
1.1 root 2723: fi
2724: if test -z "$CC"; then
2725: # Extract the first word of "cc", so it can be a program name with args.
2726: set dummy cc; ac_word=$2
1.1.1.5 ! root 2727: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2728: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2729: if test "${ac_cv_prog_CC+set}" = set; then
2730: echo $ECHO_N "(cached) $ECHO_C" >&6
2731: else
2732: if test -n "$CC"; then
2733: ac_cv_prog_CC="$CC" # Let the user override the test.
2734: else
2735: ac_prog_rejected=no
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2742: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2743: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744: ac_prog_rejected=yes
2745: continue
2746: fi
2747: ac_cv_prog_CC="cc"
2748: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749: break 2
2750: fi
2751: done
2752: done
1.1.1.5 ! root 2753: IFS=$as_save_IFS
1.1 root 2754:
2755: if test $ac_prog_rejected = yes; then
2756: # We found a bogon in the path, so make sure we never use it.
2757: set dummy $ac_cv_prog_CC
2758: shift
2759: if test $# != 0; then
2760: # We chose a different compiler from the bogus one.
2761: # However, it has the same basename, so the bogon will be chosen
2762: # first if we set CC to just the basename; use the full file name.
2763: shift
2764: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765: fi
2766: fi
2767: fi
2768: fi
2769: CC=$ac_cv_prog_CC
2770: if test -n "$CC"; then
1.1.1.5 ! root 2771: { echo "$as_me:$LINENO: result: $CC" >&5
! 2772: echo "${ECHO_T}$CC" >&6; }
1.1 root 2773: else
1.1.1.5 ! root 2774: { echo "$as_me:$LINENO: result: no" >&5
! 2775: echo "${ECHO_T}no" >&6; }
1.1 root 2776: fi
2777:
1.1.1.5 ! root 2778:
1.1 root 2779: fi
2780: if test -z "$CC"; then
2781: if test -n "$ac_tool_prefix"; then
1.1.1.5 ! root 2782: for ac_prog in cl.exe
1.1 root 2783: do
2784: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.5 ! root 2786: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2787: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2788: if test "${ac_cv_prog_CC+set}" = set; then
2789: echo $ECHO_N "(cached) $ECHO_C" >&6
2790: else
2791: if test -n "$CC"; then
2792: ac_cv_prog_CC="$CC" # Let the user override the test.
2793: else
2794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795: for as_dir in $PATH
2796: do
2797: IFS=$as_save_IFS
2798: test -z "$as_dir" && as_dir=.
2799: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2800: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2801: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803: break 2
2804: fi
2805: done
2806: done
1.1.1.5 ! root 2807: IFS=$as_save_IFS
1.1 root 2808:
2809: fi
2810: fi
2811: CC=$ac_cv_prog_CC
2812: if test -n "$CC"; then
1.1.1.5 ! root 2813: { echo "$as_me:$LINENO: result: $CC" >&5
! 2814: echo "${ECHO_T}$CC" >&6; }
1.1 root 2815: else
1.1.1.5 ! root 2816: { echo "$as_me:$LINENO: result: no" >&5
! 2817: echo "${ECHO_T}no" >&6; }
1.1 root 2818: fi
2819:
1.1.1.5 ! root 2820:
1.1 root 2821: test -n "$CC" && break
2822: done
2823: fi
2824: if test -z "$CC"; then
2825: ac_ct_CC=$CC
1.1.1.5 ! root 2826: for ac_prog in cl.exe
1.1 root 2827: do
2828: # Extract the first word of "$ac_prog", so it can be a program name with args.
2829: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 2830: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2831: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2832: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833: echo $ECHO_N "(cached) $ECHO_C" >&6
2834: else
2835: if test -n "$ac_ct_CC"; then
2836: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837: else
2838: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839: for as_dir in $PATH
2840: do
2841: IFS=$as_save_IFS
2842: test -z "$as_dir" && as_dir=.
2843: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 2844: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2845: ac_cv_prog_ac_ct_CC="$ac_prog"
2846: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847: break 2
2848: fi
2849: done
2850: done
1.1.1.5 ! root 2851: IFS=$as_save_IFS
1.1 root 2852:
2853: fi
2854: fi
2855: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856: if test -n "$ac_ct_CC"; then
1.1.1.5 ! root 2857: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2858: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2859: else
1.1.1.5 ! root 2860: { echo "$as_me:$LINENO: result: no" >&5
! 2861: echo "${ECHO_T}no" >&6; }
1.1 root 2862: fi
2863:
1.1.1.5 ! root 2864:
1.1 root 2865: test -n "$ac_ct_CC" && break
2866: done
2867:
1.1.1.5 ! root 2868: if test "x$ac_ct_CC" = x; then
! 2869: CC=""
! 2870: else
! 2871: case $cross_compiling:$ac_tool_warned in
! 2872: yes:)
! 2873: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2874: whose name does not start with the host triplet. If you think this
! 2875: configuration is useful to you, please write to [email protected]." >&5
! 2876: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2877: whose name does not start with the host triplet. If you think this
! 2878: configuration is useful to you, please write to [email protected]." >&2;}
! 2879: ac_tool_warned=yes ;;
! 2880: esac
! 2881: CC=$ac_ct_CC
! 2882: fi
1.1 root 2883: fi
2884:
2885: fi
2886:
2887:
2888: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2889: See \`config.log' for more details." >&5
2890: echo "$as_me: error: no acceptable C compiler found in \$PATH
2891: See \`config.log' for more details." >&2;}
2892: { (exit 1); exit 1; }; }
2893:
2894: # Provide some information about the compiler.
1.1.1.5 ! root 2895: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1 root 2896: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.5 ! root 2897: { (ac_try="$ac_compiler --version >&5"
! 2898: case "(($ac_try" in
! 2899: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2900: *) ac_try_echo=$ac_try;;
! 2901: esac
! 2902: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2903: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 2904: ac_status=$?
2905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906: (exit $ac_status); }
1.1.1.5 ! root 2907: { (ac_try="$ac_compiler -v >&5"
! 2908: case "(($ac_try" in
! 2909: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2910: *) ac_try_echo=$ac_try;;
! 2911: esac
! 2912: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2913: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 2914: ac_status=$?
2915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916: (exit $ac_status); }
1.1.1.5 ! root 2917: { (ac_try="$ac_compiler -V >&5"
! 2918: case "(($ac_try" in
! 2919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2920: *) ac_try_echo=$ac_try;;
! 2921: esac
! 2922: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2923: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 2924: ac_status=$?
2925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926: (exit $ac_status); }
2927:
2928: cat >conftest.$ac_ext <<_ACEOF
2929: /* confdefs.h. */
2930: _ACEOF
2931: cat confdefs.h >>conftest.$ac_ext
2932: cat >>conftest.$ac_ext <<_ACEOF
2933: /* end confdefs.h. */
2934:
2935: int
2936: main ()
2937: {
2938:
2939: ;
2940: return 0;
2941: }
2942: _ACEOF
2943: ac_clean_files_save=$ac_clean_files
2944: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2945: # Try to create an executable without -o first, disregard a.out.
2946: # It will help us diagnose broken compilers, and finding out an intuition
2947: # of exeext.
1.1.1.5 ! root 2948: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2949: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1 root 2950: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.5 ! root 2951: #
! 2952: # List of possible output files, starting from the most likely.
! 2953: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2954: # only as a last resort. b.out is created by i960 compilers.
! 2955: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 2956: #
! 2957: # The IRIX 6 linker writes into existing files which may not be
! 2958: # executable, retaining their permissions. Remove them first so a
! 2959: # subsequent execution test works.
! 2960: ac_rmfiles=
! 2961: for ac_file in $ac_files
! 2962: do
! 2963: case $ac_file in
! 2964: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 2965: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2966: esac
! 2967: done
! 2968: rm -f $ac_rmfiles
! 2969:
! 2970: if { (ac_try="$ac_link_default"
! 2971: case "(($ac_try" in
! 2972: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2973: *) ac_try_echo=$ac_try;;
! 2974: esac
! 2975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2976: (eval "$ac_link_default") 2>&5
1.1 root 2977: ac_status=$?
2978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979: (exit $ac_status); }; then
1.1.1.5 ! root 2980: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2981: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2982: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2983: # so that the user can short-circuit this test for compilers unknown to
! 2984: # Autoconf.
! 2985: for ac_file in $ac_files ''
1.1 root 2986: do
2987: test -f "$ac_file" || continue
2988: case $ac_file in
1.1.1.5 ! root 2989: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
! 2990: ;;
1.1 root 2991: [ab].out )
1.1.1.5 ! root 2992: # We found the default executable, but exeext='' is most
! 2993: # certainly right.
! 2994: break;;
1.1 root 2995: *.* )
1.1.1.5 ! root 2996: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2997: then :; else
! 2998: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2999: fi
! 3000: # We set ac_cv_exeext here because the later test for it is not
! 3001: # safe: cross compilers may not add the suffix if given an `-o'
! 3002: # argument, so we may need to know it at that point already.
! 3003: # Even if this section looks crufty: it has the advantage of
! 3004: # actually working.
! 3005: break;;
1.1 root 3006: * )
1.1.1.5 ! root 3007: break;;
1.1 root 3008: esac
3009: done
1.1.1.5 ! root 3010: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 3011:
1.1 root 3012: else
1.1.1.5 ! root 3013: ac_file=''
! 3014: fi
! 3015:
! 3016: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 3017: echo "${ECHO_T}$ac_file" >&6; }
! 3018: if test -z "$ac_file"; then
1.1 root 3019: echo "$as_me: failed program was:" >&5
3020: sed 's/^/| /' conftest.$ac_ext >&5
3021:
3022: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3023: See \`config.log' for more details." >&5
3024: echo "$as_me: error: C compiler cannot create executables
3025: See \`config.log' for more details." >&2;}
3026: { (exit 77); exit 77; }; }
3027: fi
3028:
3029: ac_exeext=$ac_cv_exeext
3030:
1.1.1.5 ! root 3031: # Check that the compiler produces executables we can run. If not, either
1.1 root 3032: # the compiler is broken, or we cross compile.
1.1.1.5 ! root 3033: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 3034: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1 root 3035: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3036: # If not cross compiling, check that we can run a simple program.
3037: if test "$cross_compiling" != yes; then
3038: if { ac_try='./$ac_file'
1.1.1.5 ! root 3039: { (case "(($ac_try" in
! 3040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3041: *) ac_try_echo=$ac_try;;
! 3042: esac
! 3043: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3044: (eval "$ac_try") 2>&5
1.1 root 3045: ac_status=$?
3046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047: (exit $ac_status); }; }; then
3048: cross_compiling=no
3049: else
3050: if test "$cross_compiling" = maybe; then
3051: cross_compiling=yes
3052: else
3053: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3054: If you meant to cross compile, use \`--host'.
3055: See \`config.log' for more details." >&5
3056: echo "$as_me: error: cannot run C compiled programs.
3057: If you meant to cross compile, use \`--host'.
3058: See \`config.log' for more details." >&2;}
3059: { (exit 1); exit 1; }; }
3060: fi
3061: fi
3062: fi
1.1.1.5 ! root 3063: { echo "$as_me:$LINENO: result: yes" >&5
! 3064: echo "${ECHO_T}yes" >&6; }
1.1 root 3065:
3066: rm -f a.out a.exe conftest$ac_cv_exeext b.out
3067: ac_clean_files=$ac_clean_files_save
1.1.1.5 ! root 3068: # Check that the compiler produces executables we can run. If not, either
1.1 root 3069: # the compiler is broken, or we cross compile.
1.1.1.5 ! root 3070: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 3071: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 3072: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 3073: echo "${ECHO_T}$cross_compiling" >&6; }
! 3074:
! 3075: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 3076: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 3077: if { (ac_try="$ac_link"
! 3078: case "(($ac_try" in
! 3079: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3080: *) ac_try_echo=$ac_try;;
! 3081: esac
! 3082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3083: (eval "$ac_link") 2>&5
1.1 root 3084: ac_status=$?
3085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086: (exit $ac_status); }; then
3087: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3089: # work properly (i.e., refer to `conftest.exe'), while it won't with
3090: # `rm'.
3091: for ac_file in conftest.exe conftest conftest.*; do
3092: test -f "$ac_file" || continue
3093: case $ac_file in
1.1.1.5 ! root 3094: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 root 3095: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.5 ! root 3096: break;;
1.1 root 3097: * ) break;;
3098: esac
3099: done
3100: else
3101: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3102: See \`config.log' for more details." >&5
3103: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3104: See \`config.log' for more details." >&2;}
3105: { (exit 1); exit 1; }; }
3106: fi
3107:
3108: rm -f conftest$ac_cv_exeext
1.1.1.5 ! root 3109: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 3110: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 root 3111:
3112: rm -f conftest.$ac_ext
3113: EXEEXT=$ac_cv_exeext
3114: ac_exeext=$EXEEXT
1.1.1.5 ! root 3115: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 3116: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1 root 3117: if test "${ac_cv_objext+set}" = set; then
3118: echo $ECHO_N "(cached) $ECHO_C" >&6
3119: else
3120: cat >conftest.$ac_ext <<_ACEOF
3121: /* confdefs.h. */
3122: _ACEOF
3123: cat confdefs.h >>conftest.$ac_ext
3124: cat >>conftest.$ac_ext <<_ACEOF
3125: /* end confdefs.h. */
3126:
3127: int
3128: main ()
3129: {
3130:
3131: ;
3132: return 0;
3133: }
3134: _ACEOF
3135: rm -f conftest.o conftest.obj
1.1.1.5 ! root 3136: if { (ac_try="$ac_compile"
! 3137: case "(($ac_try" in
! 3138: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3139: *) ac_try_echo=$ac_try;;
! 3140: esac
! 3141: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3142: (eval "$ac_compile") 2>&5
1.1 root 3143: ac_status=$?
3144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145: (exit $ac_status); }; then
1.1.1.5 ! root 3146: for ac_file in conftest.o conftest.obj conftest.*; do
! 3147: test -f "$ac_file" || continue;
1.1 root 3148: case $ac_file in
1.1.1.5 ! root 3149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1 root 3150: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151: break;;
3152: esac
3153: done
3154: else
3155: echo "$as_me: failed program was:" >&5
3156: sed 's/^/| /' conftest.$ac_ext >&5
3157:
3158: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3159: See \`config.log' for more details." >&5
3160: echo "$as_me: error: cannot compute suffix of object files: cannot compile
3161: See \`config.log' for more details." >&2;}
3162: { (exit 1); exit 1; }; }
3163: fi
3164:
3165: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166: fi
1.1.1.5 ! root 3167: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 3168: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1 root 3169: OBJEXT=$ac_cv_objext
3170: ac_objext=$OBJEXT
1.1.1.5 ! root 3171: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3172: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1 root 3173: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3174: echo $ECHO_N "(cached) $ECHO_C" >&6
3175: else
3176: cat >conftest.$ac_ext <<_ACEOF
3177: /* confdefs.h. */
3178: _ACEOF
3179: cat confdefs.h >>conftest.$ac_ext
3180: cat >>conftest.$ac_ext <<_ACEOF
3181: /* end confdefs.h. */
3182:
3183: int
3184: main ()
3185: {
3186: #ifndef __GNUC__
3187: choke me
3188: #endif
3189:
3190: ;
3191: return 0;
3192: }
3193: _ACEOF
3194: rm -f conftest.$ac_objext
1.1.1.5 ! root 3195: if { (ac_try="$ac_compile"
! 3196: case "(($ac_try" in
! 3197: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3198: *) ac_try_echo=$ac_try;;
! 3199: esac
! 3200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3201: (eval "$ac_compile") 2>conftest.er1
1.1 root 3202: ac_status=$?
1.1.1.5 ! root 3203: grep -v '^ *+' conftest.er1 >conftest.err
! 3204: rm -f conftest.er1
! 3205: cat conftest.err >&5
1.1 root 3206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3207: (exit $ac_status); } && {
! 3208: test -z "$ac_c_werror_flag" ||
! 3209: test ! -s conftest.err
! 3210: } && test -s conftest.$ac_objext; then
1.1 root 3211: ac_compiler_gnu=yes
3212: else
3213: echo "$as_me: failed program was:" >&5
3214: sed 's/^/| /' conftest.$ac_ext >&5
3215:
1.1.1.5 ! root 3216: ac_compiler_gnu=no
1.1 root 3217: fi
1.1.1.5 ! root 3218:
! 3219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 3220: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221:
3222: fi
1.1.1.5 ! root 3223: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3224: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1 root 3225: GCC=`test $ac_compiler_gnu = yes && echo yes`
3226: ac_test_CFLAGS=${CFLAGS+set}
3227: ac_save_CFLAGS=$CFLAGS
1.1.1.5 ! root 3228: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3229: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1 root 3230: if test "${ac_cv_prog_cc_g+set}" = set; then
3231: echo $ECHO_N "(cached) $ECHO_C" >&6
3232: else
1.1.1.5 ! root 3233: ac_save_c_werror_flag=$ac_c_werror_flag
! 3234: ac_c_werror_flag=yes
! 3235: ac_cv_prog_cc_g=no
! 3236: CFLAGS="-g"
! 3237: cat >conftest.$ac_ext <<_ACEOF
1.1 root 3238: /* confdefs.h. */
3239: _ACEOF
3240: cat confdefs.h >>conftest.$ac_ext
3241: cat >>conftest.$ac_ext <<_ACEOF
3242: /* end confdefs.h. */
3243:
3244: int
3245: main ()
3246: {
3247:
3248: ;
3249: return 0;
3250: }
3251: _ACEOF
3252: rm -f conftest.$ac_objext
1.1.1.5 ! root 3253: if { (ac_try="$ac_compile"
! 3254: case "(($ac_try" in
! 3255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3256: *) ac_try_echo=$ac_try;;
! 3257: esac
! 3258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3259: (eval "$ac_compile") 2>conftest.er1
1.1 root 3260: ac_status=$?
1.1.1.5 ! root 3261: grep -v '^ *+' conftest.er1 >conftest.err
! 3262: rm -f conftest.er1
! 3263: cat conftest.err >&5
1.1 root 3264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3265: (exit $ac_status); } && {
! 3266: test -z "$ac_c_werror_flag" ||
! 3267: test ! -s conftest.err
! 3268: } && test -s conftest.$ac_objext; then
1.1 root 3269: ac_cv_prog_cc_g=yes
3270: else
3271: echo "$as_me: failed program was:" >&5
3272: sed 's/^/| /' conftest.$ac_ext >&5
3273:
1.1.1.5 ! root 3274: CFLAGS=""
! 3275: cat >conftest.$ac_ext <<_ACEOF
1.1 root 3276: /* confdefs.h. */
3277: _ACEOF
3278: cat confdefs.h >>conftest.$ac_ext
3279: cat >>conftest.$ac_ext <<_ACEOF
3280: /* end confdefs.h. */
1.1.1.5 ! root 3281:
1.1 root 3282: int
3283: main ()
3284: {
1.1.1.5 ! root 3285:
1.1 root 3286: ;
3287: return 0;
3288: }
3289: _ACEOF
1.1.1.5 ! root 3290: rm -f conftest.$ac_objext
! 3291: if { (ac_try="$ac_compile"
! 3292: case "(($ac_try" in
! 3293: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3294: *) ac_try_echo=$ac_try;;
! 3295: esac
! 3296: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3297: (eval "$ac_compile") 2>conftest.er1
1.1 root 3298: ac_status=$?
1.1.1.5 ! root 3299: grep -v '^ *+' conftest.er1 >conftest.err
! 3300: rm -f conftest.er1
! 3301: cat conftest.err >&5
1.1 root 3302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3303: (exit $ac_status); } && {
! 3304: test -z "$ac_c_werror_flag" ||
! 3305: test ! -s conftest.err
! 3306: } && test -s conftest.$ac_objext; then
! 3307: :
1.1 root 3308: else
3309: echo "$as_me: failed program was:" >&5
3310: sed 's/^/| /' conftest.$ac_ext >&5
3311:
1.1.1.5 ! root 3312: ac_c_werror_flag=$ac_save_c_werror_flag
! 3313: CFLAGS="-g"
! 3314: cat >conftest.$ac_ext <<_ACEOF
1.1 root 3315: /* confdefs.h. */
3316: _ACEOF
3317: cat confdefs.h >>conftest.$ac_ext
3318: cat >>conftest.$ac_ext <<_ACEOF
3319: /* end confdefs.h. */
1.1.1.5 ! root 3320:
1.1 root 3321: int
3322: main ()
3323: {
1.1.1.5 ! root 3324:
1.1 root 3325: ;
3326: return 0;
3327: }
3328: _ACEOF
3329: rm -f conftest.$ac_objext
1.1.1.5 ! root 3330: if { (ac_try="$ac_compile"
! 3331: case "(($ac_try" in
! 3332: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3333: *) ac_try_echo=$ac_try;;
! 3334: esac
! 3335: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3336: (eval "$ac_compile") 2>conftest.er1
1.1 root 3337: ac_status=$?
1.1.1.5 ! root 3338: grep -v '^ *+' conftest.er1 >conftest.err
! 3339: rm -f conftest.er1
! 3340: cat conftest.err >&5
1.1 root 3341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3342: (exit $ac_status); } && {
! 3343: test -z "$ac_c_werror_flag" ||
! 3344: test ! -s conftest.err
! 3345: } && test -s conftest.$ac_objext; then
! 3346: ac_cv_prog_cc_g=yes
1.1 root 3347: else
3348: echo "$as_me: failed program was:" >&5
3349: sed 's/^/| /' conftest.$ac_ext >&5
3350:
1.1.1.5 ! root 3351:
1.1 root 3352: fi
1.1.1.5 ! root 3353:
! 3354: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3355: fi
! 3356:
! 3357: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3358: fi
! 3359:
! 3360: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3361: ac_c_werror_flag=$ac_save_c_werror_flag
! 3362: fi
! 3363: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3364: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
! 3365: if test "$ac_test_CFLAGS" = set; then
! 3366: CFLAGS=$ac_save_CFLAGS
! 3367: elif test $ac_cv_prog_cc_g = yes; then
! 3368: if test "$GCC" = yes; then
! 3369: CFLAGS="-g -O2"
! 3370: else
! 3371: CFLAGS="-g"
! 3372: fi
! 3373: else
! 3374: if test "$GCC" = yes; then
! 3375: CFLAGS="-O2"
! 3376: else
! 3377: CFLAGS=
! 3378: fi
! 3379: fi
! 3380: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 3381: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 3382: if test "${ac_cv_prog_cc_c89+set}" = set; then
! 3383: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3384: else
! 3385: ac_cv_prog_cc_c89=no
! 3386: ac_save_CC=$CC
! 3387: cat >conftest.$ac_ext <<_ACEOF
1.1 root 3388: /* confdefs.h. */
3389: _ACEOF
3390: cat confdefs.h >>conftest.$ac_ext
3391: cat >>conftest.$ac_ext <<_ACEOF
3392: /* end confdefs.h. */
1.1.1.5 ! root 3393: #include <stdarg.h>
! 3394: #include <stdio.h>
! 3395: #include <sys/types.h>
! 3396: #include <sys/stat.h>
! 3397: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 3398: struct buf { int x; };
! 3399: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 3400: static char *e (p, i)
! 3401: char **p;
! 3402: int i;
! 3403: {
! 3404: return p[i];
! 3405: }
! 3406: static char *f (char * (*g) (char **, int), char **p, ...)
! 3407: {
! 3408: char *s;
! 3409: va_list v;
! 3410: va_start (v,p);
! 3411: s = g (p, va_arg (v,int));
! 3412: va_end (v);
! 3413: return s;
! 3414: }
! 3415:
! 3416: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 3417: function prototypes and stuff, but not '\xHH' hex character constants.
! 3418: These don't provoke an error unfortunately, instead are silently treated
! 3419: as 'x'. The following induces an error, until -std is added to get
! 3420: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
! 3421: array size at least. It's necessary to write '\x00'==0 to get something
! 3422: that's true only with -std. */
! 3423: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
! 3424:
! 3425: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 3426: inside strings and character constants. */
! 3427: #define FOO(x) 'x'
! 3428: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 3429:
! 3430: int test (int i, double x);
! 3431: struct s1 {int (*f) (int a);};
! 3432: struct s2 {int (*f) (double a);};
! 3433: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 3434: int argc;
! 3435: char **argv;
1.1 root 3436: int
3437: main ()
3438: {
1.1.1.5 ! root 3439: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.1 root 3440: ;
3441: return 0;
3442: }
3443: _ACEOF
1.1.1.5 ! root 3444: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 3445: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 3446: do
! 3447: CC="$ac_save_CC $ac_arg"
! 3448: rm -f conftest.$ac_objext
! 3449: if { (ac_try="$ac_compile"
! 3450: case "(($ac_try" in
! 3451: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3452: *) ac_try_echo=$ac_try;;
! 3453: esac
! 3454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3455: (eval "$ac_compile") 2>conftest.er1
1.1 root 3456: ac_status=$?
1.1.1.5 ! root 3457: grep -v '^ *+' conftest.er1 >conftest.err
! 3458: rm -f conftest.er1
! 3459: cat conftest.err >&5
1.1 root 3460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3461: (exit $ac_status); } && {
! 3462: test -z "$ac_c_werror_flag" ||
! 3463: test ! -s conftest.err
! 3464: } && test -s conftest.$ac_objext; then
! 3465: ac_cv_prog_cc_c89=$ac_arg
1.1 root 3466: else
3467: echo "$as_me: failed program was:" >&5
3468: sed 's/^/| /' conftest.$ac_ext >&5
3469:
1.1.1.5 ! root 3470:
1.1 root 3471: fi
1.1.1.5 ! root 3472:
! 3473: rm -f core conftest.err conftest.$ac_objext
! 3474: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1 root 3475: done
1.1.1.5 ! root 3476: rm -f conftest.$ac_ext
! 3477: CC=$ac_save_CC
! 3478:
1.1 root 3479: fi
1.1.1.5 ! root 3480: # AC_CACHE_VAL
! 3481: case "x$ac_cv_prog_cc_c89" in
! 3482: x)
! 3483: { echo "$as_me:$LINENO: result: none needed" >&5
! 3484: echo "${ECHO_T}none needed" >&6; } ;;
! 3485: xno)
! 3486: { echo "$as_me:$LINENO: result: unsupported" >&5
! 3487: echo "${ECHO_T}unsupported" >&6; } ;;
! 3488: *)
! 3489: CC="$CC $ac_cv_prog_cc_c89"
! 3490: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 3491: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
! 3492: esac
1.1 root 3493:
3494:
3495: ac_ext=c
3496: ac_cpp='$CPP $CPPFLAGS'
3497: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.5 ! root 3500: DEPDIR="${am__leading_dot}deps"
1.1 root 3501:
1.1.1.5 ! root 3502: ac_config_commands="$ac_config_commands depfiles"
1.1 root 3503:
3504:
3505: am_make=${MAKE-make}
3506: cat > confinc << 'END'
1.1.1.5 ! root 3507: am__doit:
1.1 root 3508: @echo done
1.1.1.5 ! root 3509: .PHONY: am__doit
1.1 root 3510: END
3511: # If we don't find an include directive, just comment out the code.
1.1.1.5 ! root 3512: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 3513: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.1 root 3514: am__include="#"
3515: am__quote=
3516: _am_result=none
3517: # First try GNU make style include.
3518: echo "include confinc" > confmf
3519: # We grep out `Entering directory' and `Leaving directory'
3520: # messages which can occur if `w' ends up in MAKEFLAGS.
3521: # In particular we don't look at `^make:' because GNU make might
3522: # be invoked under some other name (usually "gmake"), in which
3523: # case it prints its new name instead of `make'.
3524: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3525: am__include=include
3526: am__quote=
3527: _am_result=GNU
3528: fi
3529: # Now try BSD make style include.
3530: if test "$am__include" = "#"; then
3531: echo '.include "confinc"' > confmf
3532: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3533: am__include=.include
3534: am__quote="\""
3535: _am_result=BSD
3536: fi
3537: fi
3538:
3539:
1.1.1.5 ! root 3540: { echo "$as_me:$LINENO: result: $_am_result" >&5
! 3541: echo "${ECHO_T}$_am_result" >&6; }
1.1 root 3542: rm -f confinc confmf
3543:
1.1.1.5 ! root 3544: # Check whether --enable-dependency-tracking was given.
1.1 root 3545: if test "${enable_dependency_tracking+set}" = set; then
1.1.1.5 ! root 3546: enableval=$enable_dependency_tracking;
! 3547: fi
1.1 root 3548:
3549: if test "x$enable_dependency_tracking" != xno; then
3550: am_depcomp="$ac_aux_dir/depcomp"
3551: AMDEPBACKSLASH='\'
3552: fi
1.1.1.5 ! root 3553: if test "x$enable_dependency_tracking" != xno; then
1.1 root 3554: AMDEP_TRUE=
3555: AMDEP_FALSE='#'
3556: else
3557: AMDEP_TRUE='#'
3558: AMDEP_FALSE=
3559: fi
3560:
3561:
3562:
3563: depcc="$CC" am_compiler_list=
3564:
1.1.1.5 ! root 3565: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3566: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1 root 3567: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3568: echo $ECHO_N "(cached) $ECHO_C" >&6
3569: else
3570: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3571: # We make a subdir and do the tests there. Otherwise we can end up
3572: # making bogus files that we don't know about and never remove. For
3573: # instance it was reported that on HP-UX the gcc test will end up
3574: # making a dummy file named `D' -- because `-MD' means `put the output
3575: # in D'.
3576: mkdir conftest.dir
3577: # Copy depcomp to subdir because otherwise we won't find it if we're
3578: # using a relative directory.
3579: cp "$am_depcomp" conftest.dir
3580: cd conftest.dir
1.1.1.5 ! root 3581: # We will build objects and dependencies in a subdirectory because
! 3582: # it helps to detect inapplicable dependency modes. For instance
! 3583: # both Tru64's cc and ICC support -MD to output dependencies as a
! 3584: # side effect of compilation, but ICC will put the dependencies in
! 3585: # the current directory while Tru64 will put them in the object
! 3586: # directory.
! 3587: mkdir sub
1.1 root 3588:
3589: am_cv_CC_dependencies_compiler_type=none
3590: if test "$am_compiler_list" = ""; then
3591: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3592: fi
3593: for depmode in $am_compiler_list; do
1.1.1.5 ! root 3594: # Setup a source with many dependencies, because some compilers
! 3595: # like to wrap large dependency lists on column 80 (with \), and
! 3596: # we should not choose a depcomp mode which is confused by this.
! 3597: #
1.1 root 3598: # We need to recreate these files for each test, as the compiler may
3599: # overwrite some of them when testing with obscure command lines.
3600: # This happens at least with the AIX C compiler.
1.1.1.5 ! root 3601: : > sub/conftest.c
! 3602: for i in 1 2 3 4 5 6; do
! 3603: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 3604: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 3605: # Solaris 8's {/usr,}/bin/sh.
! 3606: touch sub/conftst$i.h
! 3607: done
! 3608: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1 root 3609:
3610: case $depmode in
3611: nosideeffect)
3612: # after this tag, mechanisms are not by side-effect, so they'll
3613: # only be used when explicitly requested
3614: if test "x$enable_dependency_tracking" = xyes; then
3615: continue
3616: else
3617: break
3618: fi
3619: ;;
3620: none) break ;;
3621: esac
3622: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3623: # mode. It turns out that the SunPro C++ compiler does not properly
3624: # handle `-M -o', and we need to detect this.
3625: if depmode=$depmode \
1.1.1.5 ! root 3626: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 3627: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 3628: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
! 3629: >/dev/null 2>conftest.err &&
! 3630: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 3631: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 3632: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1 root 3633: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1.1.5 ! root 3634: # icc doesn't choke on unknown options, it will just issue warnings
! 3635: # or remarks (even with -Werror). So we grep stderr for any message
! 3636: # that says an option was ignored or not supported.
! 3637: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 3638: # icc: Command line warning: ignoring option '-M'; no argument required
! 3639: # The diagnosis changed in icc 8.0:
! 3640: # icc: Command line remark: option '-MP' not supported
! 3641: if (grep 'ignoring option' conftest.err ||
! 3642: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 3643: am_cv_CC_dependencies_compiler_type=$depmode
! 3644: break
! 3645: fi
1.1 root 3646: fi
3647: done
3648:
3649: cd ..
3650: rm -rf conftest.dir
3651: else
3652: am_cv_CC_dependencies_compiler_type=none
3653: fi
3654:
3655: fi
1.1.1.5 ! root 3656: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3657: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 root 3658: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3659:
1.1.1.5 ! root 3660: if
1.1 root 3661: test "x$enable_dependency_tracking" != xno \
3662: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663: am__fastdepCC_TRUE=
3664: am__fastdepCC_FALSE='#'
3665: else
3666: am__fastdepCC_TRUE='#'
3667: am__fastdepCC_FALSE=
3668: fi
3669:
3670:
3671: ac_ext=c
3672: ac_cpp='$CPP $CPPFLAGS'
3673: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.5 ! root 3676: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3677: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 root 3678: # On Suns, sometimes $CPP names a directory.
3679: if test -n "$CPP" && test -d "$CPP"; then
3680: CPP=
3681: fi
3682: if test -z "$CPP"; then
3683: if test "${ac_cv_prog_CPP+set}" = set; then
3684: echo $ECHO_N "(cached) $ECHO_C" >&6
3685: else
3686: # Double quotes because CPP needs to be expanded
3687: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688: do
3689: ac_preproc_ok=false
3690: for ac_c_preproc_warn_flag in '' yes
3691: do
3692: # Use a header file that comes with gcc, so configuring glibc
3693: # with a fresh cross-compiler works.
3694: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3695: # <limits.h> exists even on freestanding compilers.
3696: # On the NeXT, cc -E runs the code through the compiler's parser,
3697: # not just through cpp. "Syntax error" is here to catch this case.
3698: cat >conftest.$ac_ext <<_ACEOF
3699: /* confdefs.h. */
3700: _ACEOF
3701: cat confdefs.h >>conftest.$ac_ext
3702: cat >>conftest.$ac_ext <<_ACEOF
3703: /* end confdefs.h. */
3704: #ifdef __STDC__
3705: # include <limits.h>
3706: #else
3707: # include <assert.h>
3708: #endif
1.1.1.5 ! root 3709: Syntax error
1.1 root 3710: _ACEOF
1.1.1.5 ! root 3711: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3712: case "(($ac_try" in
! 3713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3714: *) ac_try_echo=$ac_try;;
! 3715: esac
! 3716: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3717: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3718: ac_status=$?
3719: grep -v '^ *+' conftest.er1 >conftest.err
3720: rm -f conftest.er1
3721: cat conftest.err >&5
3722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3723: (exit $ac_status); } >/dev/null && {
! 3724: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3725: test ! -s conftest.err
! 3726: }; then
1.1 root 3727: :
3728: else
3729: echo "$as_me: failed program was:" >&5
3730: sed 's/^/| /' conftest.$ac_ext >&5
3731:
3732: # Broken: fails on valid input.
3733: continue
3734: fi
1.1.1.5 ! root 3735:
1.1 root 3736: rm -f conftest.err conftest.$ac_ext
3737:
1.1.1.5 ! root 3738: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 3739: # can be detected and how.
3740: cat >conftest.$ac_ext <<_ACEOF
3741: /* confdefs.h. */
3742: _ACEOF
3743: cat confdefs.h >>conftest.$ac_ext
3744: cat >>conftest.$ac_ext <<_ACEOF
3745: /* end confdefs.h. */
3746: #include <ac_nonexistent.h>
3747: _ACEOF
1.1.1.5 ! root 3748: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3749: case "(($ac_try" in
! 3750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3751: *) ac_try_echo=$ac_try;;
! 3752: esac
! 3753: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3754: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3755: ac_status=$?
3756: grep -v '^ *+' conftest.er1 >conftest.err
3757: rm -f conftest.er1
3758: cat conftest.err >&5
3759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3760: (exit $ac_status); } >/dev/null && {
! 3761: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3762: test ! -s conftest.err
! 3763: }; then
1.1 root 3764: # Broken: success on invalid input.
3765: continue
3766: else
3767: echo "$as_me: failed program was:" >&5
3768: sed 's/^/| /' conftest.$ac_ext >&5
3769:
3770: # Passes both tests.
3771: ac_preproc_ok=:
3772: break
3773: fi
1.1.1.5 ! root 3774:
1.1 root 3775: rm -f conftest.err conftest.$ac_ext
3776:
3777: done
3778: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779: rm -f conftest.err conftest.$ac_ext
3780: if $ac_preproc_ok; then
3781: break
3782: fi
3783:
3784: done
3785: ac_cv_prog_CPP=$CPP
3786:
3787: fi
3788: CPP=$ac_cv_prog_CPP
3789: else
3790: ac_cv_prog_CPP=$CPP
3791: fi
1.1.1.5 ! root 3792: { echo "$as_me:$LINENO: result: $CPP" >&5
! 3793: echo "${ECHO_T}$CPP" >&6; }
1.1 root 3794: ac_preproc_ok=false
3795: for ac_c_preproc_warn_flag in '' yes
3796: do
3797: # Use a header file that comes with gcc, so configuring glibc
3798: # with a fresh cross-compiler works.
3799: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3800: # <limits.h> exists even on freestanding compilers.
3801: # On the NeXT, cc -E runs the code through the compiler's parser,
3802: # not just through cpp. "Syntax error" is here to catch this case.
3803: cat >conftest.$ac_ext <<_ACEOF
3804: /* confdefs.h. */
3805: _ACEOF
3806: cat confdefs.h >>conftest.$ac_ext
3807: cat >>conftest.$ac_ext <<_ACEOF
3808: /* end confdefs.h. */
3809: #ifdef __STDC__
3810: # include <limits.h>
3811: #else
3812: # include <assert.h>
3813: #endif
1.1.1.5 ! root 3814: Syntax error
1.1 root 3815: _ACEOF
1.1.1.5 ! root 3816: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3817: case "(($ac_try" in
! 3818: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3819: *) ac_try_echo=$ac_try;;
! 3820: esac
! 3821: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3822: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3823: ac_status=$?
3824: grep -v '^ *+' conftest.er1 >conftest.err
3825: rm -f conftest.er1
3826: cat conftest.err >&5
3827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3828: (exit $ac_status); } >/dev/null && {
! 3829: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3830: test ! -s conftest.err
! 3831: }; then
1.1 root 3832: :
3833: else
3834: echo "$as_me: failed program was:" >&5
3835: sed 's/^/| /' conftest.$ac_ext >&5
3836:
3837: # Broken: fails on valid input.
3838: continue
3839: fi
1.1.1.5 ! root 3840:
1.1 root 3841: rm -f conftest.err conftest.$ac_ext
3842:
1.1.1.5 ! root 3843: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 3844: # can be detected and how.
3845: cat >conftest.$ac_ext <<_ACEOF
3846: /* confdefs.h. */
3847: _ACEOF
3848: cat confdefs.h >>conftest.$ac_ext
3849: cat >>conftest.$ac_ext <<_ACEOF
3850: /* end confdefs.h. */
3851: #include <ac_nonexistent.h>
3852: _ACEOF
1.1.1.5 ! root 3853: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3854: case "(($ac_try" in
! 3855: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3856: *) ac_try_echo=$ac_try;;
! 3857: esac
! 3858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3859: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3860: ac_status=$?
3861: grep -v '^ *+' conftest.er1 >conftest.err
3862: rm -f conftest.er1
3863: cat conftest.err >&5
3864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 3865: (exit $ac_status); } >/dev/null && {
! 3866: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3867: test ! -s conftest.err
! 3868: }; then
1.1 root 3869: # Broken: success on invalid input.
3870: continue
3871: else
3872: echo "$as_me: failed program was:" >&5
3873: sed 's/^/| /' conftest.$ac_ext >&5
3874:
3875: # Passes both tests.
3876: ac_preproc_ok=:
3877: break
3878: fi
1.1.1.5 ! root 3879:
1.1 root 3880: rm -f conftest.err conftest.$ac_ext
3881:
3882: done
3883: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884: rm -f conftest.err conftest.$ac_ext
3885: if $ac_preproc_ok; then
3886: :
3887: else
3888: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889: See \`config.log' for more details." >&5
3890: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891: See \`config.log' for more details." >&2;}
3892: { (exit 1); exit 1; }; }
3893: fi
3894:
3895: ac_ext=c
3896: ac_cpp='$CPP $CPPFLAGS'
3897: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900:
3901: for ac_prog in 'bison -y' byacc
3902: do
3903: # Extract the first word of "$ac_prog", so it can be a program name with args.
3904: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 3905: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3906: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 3907: if test "${ac_cv_prog_YACC+set}" = set; then
3908: echo $ECHO_N "(cached) $ECHO_C" >&6
3909: else
3910: if test -n "$YACC"; then
3911: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3912: else
3913: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914: for as_dir in $PATH
3915: do
3916: IFS=$as_save_IFS
3917: test -z "$as_dir" && as_dir=.
3918: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 3919: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 3920: ac_cv_prog_YACC="$ac_prog"
3921: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922: break 2
3923: fi
3924: done
3925: done
1.1.1.5 ! root 3926: IFS=$as_save_IFS
1.1 root 3927:
3928: fi
3929: fi
3930: YACC=$ac_cv_prog_YACC
3931: if test -n "$YACC"; then
1.1.1.5 ! root 3932: { echo "$as_me:$LINENO: result: $YACC" >&5
! 3933: echo "${ECHO_T}$YACC" >&6; }
1.1 root 3934: else
1.1.1.5 ! root 3935: { echo "$as_me:$LINENO: result: no" >&5
! 3936: echo "${ECHO_T}no" >&6; }
1.1 root 3937: fi
3938:
1.1.1.5 ! root 3939:
1.1 root 3940: test -n "$YACC" && break
3941: done
3942: test -n "$YACC" || YACC="yacc"
3943:
3944: # Find a good install program. We prefer a C program (faster),
3945: # so one script is as good as another. But avoid the broken or
3946: # incompatible versions:
3947: # SysV /etc/install, /usr/sbin/install
3948: # SunOS /usr/etc/install
3949: # IRIX /sbin/install
3950: # AIX /bin/install
3951: # AmigaOS /C/install, which installs bootblocks on floppy discs
3952: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.5 ! root 3955: # OS/2's system install, which has a completely different semantic
1.1 root 3956: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.5 ! root 3957: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 3958: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1 root 3959: if test -z "$INSTALL"; then
3960: if test "${ac_cv_path_install+set}" = set; then
3961: echo $ECHO_N "(cached) $ECHO_C" >&6
3962: else
3963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964: for as_dir in $PATH
3965: do
3966: IFS=$as_save_IFS
3967: test -z "$as_dir" && as_dir=.
3968: # Account for people who put trailing slashes in PATH elements.
3969: case $as_dir/ in
3970: ./ | .// | /cC/* | \
3971: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.5 ! root 3972: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 3973: /usr/ucb/* ) ;;
3974: *)
3975: # OSF1 and SCO ODT 3.0 have their own names for install.
3976: # Don't use installbsd from OSF since it installs stuff as root
3977: # by default.
3978: for ac_prog in ginstall scoinst install; do
3979: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 3980: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
! 3981: if test $ac_prog = install &&
! 3982: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3983: # AIX install. It has an incompatible calling convention.
! 3984: :
! 3985: elif test $ac_prog = install &&
! 3986: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3987: # program-specific install script used by HP pwplus--don't use.
! 3988: :
! 3989: else
! 3990: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 3991: break 3
! 3992: fi
! 3993: fi
1.1 root 3994: done
3995: done
3996: ;;
3997: esac
3998: done
1.1.1.5 ! root 3999: IFS=$as_save_IFS
1.1 root 4000:
4001:
4002: fi
4003: if test "${ac_cv_path_install+set}" = set; then
4004: INSTALL=$ac_cv_path_install
4005: else
1.1.1.5 ! root 4006: # As a last resort, use the slow shell script. Don't cache a
! 4007: # value for INSTALL within a source directory, because that will
1.1 root 4008: # break other packages using the cache if that directory is
1.1.1.5 ! root 4009: # removed, or if the value is a relative name.
1.1 root 4010: INSTALL=$ac_install_sh
4011: fi
4012: fi
1.1.1.5 ! root 4013: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 4014: echo "${ECHO_T}$INSTALL" >&6; }
1.1 root 4015:
4016: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4017: # It thinks the first close brace ends the variable substitution.
4018: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4019:
4020: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4021:
4022: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4023:
1.1.1.5 ! root 4024: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 4025: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
! 4026: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 4027: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4028: echo $ECHO_N "(cached) $ECHO_C" >&6
4029: else
4030: cat >conftest.make <<\_ACEOF
1.1.1.5 ! root 4031: SHELL = /bin/sh
1.1 root 4032: all:
1.1.1.5 ! root 4033: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 root 4034: _ACEOF
4035: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.5 ! root 4036: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 4037: *@@@%%%=?*=@@@%%%*)
! 4038: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 4039: *)
! 4040: eval ac_cv_prog_make_${ac_make}_set=no;;
! 4041: esac
1.1 root 4042: rm -f conftest.make
4043: fi
1.1.1.5 ! root 4044: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 4045: { echo "$as_me:$LINENO: result: yes" >&5
! 4046: echo "${ECHO_T}yes" >&6; }
1.1 root 4047: SET_MAKE=
4048: else
1.1.1.5 ! root 4049: { echo "$as_me:$LINENO: result: no" >&5
! 4050: echo "${ECHO_T}no" >&6; }
1.1 root 4051: SET_MAKE="MAKE=${MAKE-make}"
4052: fi
4053:
4054:
4055:
4056:
1.1.1.5 ! root 4057: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 4058: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 4059: if test "${ac_cv_path_GREP+set}" = set; then
1.1 root 4060: echo $ECHO_N "(cached) $ECHO_C" >&6
4061: else
1.1.1.5 ! root 4062: # Extract the first word of "grep ggrep" to use in msg output
! 4063: if test -z "$GREP"; then
! 4064: set dummy grep ggrep; ac_prog_name=$2
! 4065: if test "${ac_cv_path_GREP+set}" = set; then
! 4066: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4067: else
! 4068: ac_path_GREP_found=false
! 4069: # Loop through the user's path and test for each of PROGNAME-LIST
! 4070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4071: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4072: do
! 4073: IFS=$as_save_IFS
! 4074: test -z "$as_dir" && as_dir=.
! 4075: for ac_prog in grep ggrep; do
! 4076: for ac_exec_ext in '' $ac_executable_extensions; do
! 4077: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 4078: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 4079: # Check for GNU ac_path_GREP and select it if it is found.
! 4080: # Check for GNU $ac_path_GREP
! 4081: case `"$ac_path_GREP" --version 2>&1` in
! 4082: *GNU*)
! 4083: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 4084: *)
! 4085: ac_count=0
! 4086: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 4087: while :
! 4088: do
! 4089: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4090: mv "conftest.tmp" "conftest.in"
! 4091: cp "conftest.in" "conftest.nl"
! 4092: echo 'GREP' >> "conftest.nl"
! 4093: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4094: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4095: ac_count=`expr $ac_count + 1`
! 4096: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 4097: # Best one so far, save it but keep looking for a better one
! 4098: ac_cv_path_GREP="$ac_path_GREP"
! 4099: ac_path_GREP_max=$ac_count
! 4100: fi
! 4101: # 10*(2^10) chars as input seems more than enough
! 4102: test $ac_count -gt 10 && break
! 4103: done
! 4104: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4105: esac
! 4106:
! 4107:
! 4108: $ac_path_GREP_found && break 3
! 4109: done
! 4110: done
! 4111:
! 4112: done
! 4113: IFS=$as_save_IFS
! 4114:
! 4115:
! 4116: fi
! 4117:
! 4118: GREP="$ac_cv_path_GREP"
! 4119: if test -z "$GREP"; then
! 4120: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 4121: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 4122: { (exit 1); exit 1; }; }
! 4123: fi
! 4124:
! 4125: else
! 4126: ac_cv_path_GREP=$GREP
! 4127: fi
! 4128:
! 4129:
! 4130: fi
! 4131: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 4132: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 4133: GREP="$ac_cv_path_GREP"
! 4134:
! 4135:
! 4136: { echo "$as_me:$LINENO: checking for egrep" >&5
! 4137: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 4138: if test "${ac_cv_path_EGREP+set}" = set; then
! 4139: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4140: else
! 4141: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4142: then ac_cv_path_EGREP="$GREP -E"
! 4143: else
! 4144: # Extract the first word of "egrep" to use in msg output
! 4145: if test -z "$EGREP"; then
! 4146: set dummy egrep; ac_prog_name=$2
! 4147: if test "${ac_cv_path_EGREP+set}" = set; then
! 4148: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4149: else
! 4150: ac_path_EGREP_found=false
! 4151: # Loop through the user's path and test for each of PROGNAME-LIST
! 4152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4153: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4154: do
! 4155: IFS=$as_save_IFS
! 4156: test -z "$as_dir" && as_dir=.
! 4157: for ac_prog in egrep; do
! 4158: for ac_exec_ext in '' $ac_executable_extensions; do
! 4159: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4160: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 4161: # Check for GNU ac_path_EGREP and select it if it is found.
! 4162: # Check for GNU $ac_path_EGREP
! 4163: case `"$ac_path_EGREP" --version 2>&1` in
! 4164: *GNU*)
! 4165: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4166: *)
! 4167: ac_count=0
! 4168: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 4169: while :
! 4170: do
! 4171: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4172: mv "conftest.tmp" "conftest.in"
! 4173: cp "conftest.in" "conftest.nl"
! 4174: echo 'EGREP' >> "conftest.nl"
! 4175: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4176: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4177: ac_count=`expr $ac_count + 1`
! 4178: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4179: # Best one so far, save it but keep looking for a better one
! 4180: ac_cv_path_EGREP="$ac_path_EGREP"
! 4181: ac_path_EGREP_max=$ac_count
1.1 root 4182: fi
1.1.1.5 ! root 4183: # 10*(2^10) chars as input seems more than enough
! 4184: test $ac_count -gt 10 && break
! 4185: done
! 4186: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4187: esac
! 4188:
! 4189:
! 4190: $ac_path_EGREP_found && break 3
! 4191: done
! 4192: done
! 4193:
! 4194: done
! 4195: IFS=$as_save_IFS
! 4196:
! 4197:
! 4198: fi
! 4199:
! 4200: EGREP="$ac_cv_path_EGREP"
! 4201: if test -z "$EGREP"; then
! 4202: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 4203: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 4204: { (exit 1); exit 1; }; }
! 4205: fi
! 4206:
! 4207: else
! 4208: ac_cv_path_EGREP=$EGREP
! 4209: fi
! 4210:
! 4211:
! 4212: fi
1.1 root 4213: fi
1.1.1.5 ! root 4214: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 4215: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 4216: EGREP="$ac_cv_path_EGREP"
1.1 root 4217:
4218:
1.1.1.5 ! root 4219: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 4220: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1 root 4221: if test "${ac_cv_header_stdc+set}" = set; then
4222: echo $ECHO_N "(cached) $ECHO_C" >&6
4223: else
4224: cat >conftest.$ac_ext <<_ACEOF
4225: /* confdefs.h. */
4226: _ACEOF
4227: cat confdefs.h >>conftest.$ac_ext
4228: cat >>conftest.$ac_ext <<_ACEOF
4229: /* end confdefs.h. */
4230: #include <stdlib.h>
4231: #include <stdarg.h>
4232: #include <string.h>
4233: #include <float.h>
4234:
4235: int
4236: main ()
4237: {
4238:
4239: ;
4240: return 0;
4241: }
4242: _ACEOF
4243: rm -f conftest.$ac_objext
1.1.1.5 ! root 4244: if { (ac_try="$ac_compile"
! 4245: case "(($ac_try" in
! 4246: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4247: *) ac_try_echo=$ac_try;;
! 4248: esac
! 4249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4250: (eval "$ac_compile") 2>conftest.er1
1.1 root 4251: ac_status=$?
1.1.1.5 ! root 4252: grep -v '^ *+' conftest.er1 >conftest.err
! 4253: rm -f conftest.er1
! 4254: cat conftest.err >&5
1.1 root 4255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4256: (exit $ac_status); } && {
! 4257: test -z "$ac_c_werror_flag" ||
! 4258: test ! -s conftest.err
! 4259: } && test -s conftest.$ac_objext; then
1.1 root 4260: ac_cv_header_stdc=yes
4261: else
4262: echo "$as_me: failed program was:" >&5
4263: sed 's/^/| /' conftest.$ac_ext >&5
4264:
1.1.1.5 ! root 4265: ac_cv_header_stdc=no
1.1 root 4266: fi
1.1.1.5 ! root 4267:
! 4268: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 4269:
4270: if test $ac_cv_header_stdc = yes; then
4271: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4272: cat >conftest.$ac_ext <<_ACEOF
4273: /* confdefs.h. */
4274: _ACEOF
4275: cat confdefs.h >>conftest.$ac_ext
4276: cat >>conftest.$ac_ext <<_ACEOF
4277: /* end confdefs.h. */
4278: #include <string.h>
4279:
4280: _ACEOF
4281: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282: $EGREP "memchr" >/dev/null 2>&1; then
4283: :
4284: else
4285: ac_cv_header_stdc=no
4286: fi
4287: rm -f conftest*
4288:
4289: fi
4290:
4291: if test $ac_cv_header_stdc = yes; then
4292: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4293: cat >conftest.$ac_ext <<_ACEOF
4294: /* confdefs.h. */
4295: _ACEOF
4296: cat confdefs.h >>conftest.$ac_ext
4297: cat >>conftest.$ac_ext <<_ACEOF
4298: /* end confdefs.h. */
4299: #include <stdlib.h>
4300:
4301: _ACEOF
4302: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303: $EGREP "free" >/dev/null 2>&1; then
4304: :
4305: else
4306: ac_cv_header_stdc=no
4307: fi
4308: rm -f conftest*
4309:
4310: fi
4311:
4312: if test $ac_cv_header_stdc = yes; then
4313: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4314: if test "$cross_compiling" = yes; then
4315: :
4316: else
4317: cat >conftest.$ac_ext <<_ACEOF
4318: /* confdefs.h. */
4319: _ACEOF
4320: cat confdefs.h >>conftest.$ac_ext
4321: cat >>conftest.$ac_ext <<_ACEOF
4322: /* end confdefs.h. */
4323: #include <ctype.h>
1.1.1.5 ! root 4324: #include <stdlib.h>
1.1 root 4325: #if ((' ' & 0x0FF) == 0x020)
4326: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4328: #else
4329: # define ISLOWER(c) \
1.1.1.5 ! root 4330: (('a' <= (c) && (c) <= 'i') \
! 4331: || ('j' <= (c) && (c) <= 'r') \
! 4332: || ('s' <= (c) && (c) <= 'z'))
1.1 root 4333: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4334: #endif
4335:
4336: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4337: int
4338: main ()
4339: {
4340: int i;
4341: for (i = 0; i < 256; i++)
4342: if (XOR (islower (i), ISLOWER (i))
1.1.1.5 ! root 4343: || toupper (i) != TOUPPER (i))
! 4344: return 2;
! 4345: return 0;
1.1 root 4346: }
4347: _ACEOF
4348: rm -f conftest$ac_exeext
1.1.1.5 ! root 4349: if { (ac_try="$ac_link"
! 4350: case "(($ac_try" in
! 4351: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4352: *) ac_try_echo=$ac_try;;
! 4353: esac
! 4354: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4355: (eval "$ac_link") 2>&5
1.1 root 4356: ac_status=$?
4357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 4359: { (case "(($ac_try" in
! 4360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4361: *) ac_try_echo=$ac_try;;
! 4362: esac
! 4363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4364: (eval "$ac_try") 2>&5
1.1 root 4365: ac_status=$?
4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367: (exit $ac_status); }; }; then
4368: :
4369: else
4370: echo "$as_me: program exited with status $ac_status" >&5
4371: echo "$as_me: failed program was:" >&5
4372: sed 's/^/| /' conftest.$ac_ext >&5
4373:
4374: ( exit $ac_status )
4375: ac_cv_header_stdc=no
4376: fi
1.1.1.5 ! root 4377: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 4378: fi
1.1.1.5 ! root 4379:
! 4380:
1.1 root 4381: fi
4382: fi
1.1.1.5 ! root 4383: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 4384: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 root 4385: if test $ac_cv_header_stdc = yes; then
4386:
4387: cat >>confdefs.h <<\_ACEOF
4388: #define STDC_HEADERS 1
4389: _ACEOF
4390:
4391: fi
4392:
4393: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394:
4395:
4396:
4397:
4398:
4399:
4400:
4401:
4402:
4403: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.1.1.5 ! root 4404: inttypes.h stdint.h unistd.h
1.1 root 4405: do
4406: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 4407: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4408: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4409: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4410: echo $ECHO_N "(cached) $ECHO_C" >&6
4411: else
4412: cat >conftest.$ac_ext <<_ACEOF
4413: /* confdefs.h. */
4414: _ACEOF
4415: cat confdefs.h >>conftest.$ac_ext
4416: cat >>conftest.$ac_ext <<_ACEOF
4417: /* end confdefs.h. */
4418: $ac_includes_default
4419:
4420: #include <$ac_header>
4421: _ACEOF
4422: rm -f conftest.$ac_objext
1.1.1.5 ! root 4423: if { (ac_try="$ac_compile"
! 4424: case "(($ac_try" in
! 4425: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4426: *) ac_try_echo=$ac_try;;
! 4427: esac
! 4428: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4429: (eval "$ac_compile") 2>conftest.er1
1.1 root 4430: ac_status=$?
1.1.1.5 ! root 4431: grep -v '^ *+' conftest.er1 >conftest.err
! 4432: rm -f conftest.er1
! 4433: cat conftest.err >&5
1.1 root 4434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4435: (exit $ac_status); } && {
! 4436: test -z "$ac_c_werror_flag" ||
! 4437: test ! -s conftest.err
! 4438: } && test -s conftest.$ac_objext; then
1.1 root 4439: eval "$as_ac_Header=yes"
4440: else
4441: echo "$as_me: failed program was:" >&5
4442: sed 's/^/| /' conftest.$ac_ext >&5
4443:
1.1.1.5 ! root 4444: eval "$as_ac_Header=no"
1.1 root 4445: fi
1.1.1.5 ! root 4446:
! 4447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 4448: fi
1.1.1.5 ! root 4449: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4450: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4451: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 4452: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4453: cat >>confdefs.h <<_ACEOF
4454: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455: _ACEOF
4456:
4457: fi
4458:
4459: done
4460:
4461:
4462:
4463:
4464:
4465:
1.1.1.3 root 4466:
4467:
4468: for ac_header in unistd.h stdio.h memory.h stdarg.h limits.h float.h
1.1 root 4469: do
4470: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 4471: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4472: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4473: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4474: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4475: echo $ECHO_N "(cached) $ECHO_C" >&6
4476: fi
1.1.1.5 ! root 4477: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4478: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4479: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 4480: else
4481: # Is the header compilable?
1.1.1.5 ! root 4482: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4483: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 4484: cat >conftest.$ac_ext <<_ACEOF
4485: /* confdefs.h. */
4486: _ACEOF
4487: cat confdefs.h >>conftest.$ac_ext
4488: cat >>conftest.$ac_ext <<_ACEOF
4489: /* end confdefs.h. */
4490: $ac_includes_default
4491: #include <$ac_header>
4492: _ACEOF
4493: rm -f conftest.$ac_objext
1.1.1.5 ! root 4494: if { (ac_try="$ac_compile"
! 4495: case "(($ac_try" in
! 4496: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4497: *) ac_try_echo=$ac_try;;
! 4498: esac
! 4499: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4500: (eval "$ac_compile") 2>conftest.er1
1.1 root 4501: ac_status=$?
1.1.1.5 ! root 4502: grep -v '^ *+' conftest.er1 >conftest.err
! 4503: rm -f conftest.er1
! 4504: cat conftest.err >&5
1.1 root 4505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4506: (exit $ac_status); } && {
! 4507: test -z "$ac_c_werror_flag" ||
! 4508: test ! -s conftest.err
! 4509: } && test -s conftest.$ac_objext; then
1.1 root 4510: ac_header_compiler=yes
4511: else
4512: echo "$as_me: failed program was:" >&5
4513: sed 's/^/| /' conftest.$ac_ext >&5
4514:
1.1.1.5 ! root 4515: ac_header_compiler=no
1.1 root 4516: fi
1.1.1.5 ! root 4517:
! 4518: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4519: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4520: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 4521:
4522: # Is the header present?
1.1.1.5 ! root 4523: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4524: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 4525: cat >conftest.$ac_ext <<_ACEOF
4526: /* confdefs.h. */
4527: _ACEOF
4528: cat confdefs.h >>conftest.$ac_ext
4529: cat >>conftest.$ac_ext <<_ACEOF
4530: /* end confdefs.h. */
4531: #include <$ac_header>
4532: _ACEOF
1.1.1.5 ! root 4533: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4534: case "(($ac_try" in
! 4535: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4536: *) ac_try_echo=$ac_try;;
! 4537: esac
! 4538: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4539: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 4540: ac_status=$?
4541: grep -v '^ *+' conftest.er1 >conftest.err
4542: rm -f conftest.er1
4543: cat conftest.err >&5
4544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4545: (exit $ac_status); } >/dev/null && {
! 4546: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4547: test ! -s conftest.err
! 4548: }; then
1.1 root 4549: ac_header_preproc=yes
4550: else
4551: echo "$as_me: failed program was:" >&5
4552: sed 's/^/| /' conftest.$ac_ext >&5
4553:
4554: ac_header_preproc=no
4555: fi
1.1.1.5 ! root 4556:
1.1 root 4557: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 4558: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4559: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 4560:
4561: # So? What about this header?
1.1.1.5 ! root 4562: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 4563: yes:no: )
1.1 root 4564: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4565: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 4566: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4567: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 4568: ac_header_preproc=yes
1.1 root 4569: ;;
1.1.1.5 ! root 4570: no:yes:* )
1.1 root 4571: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4572: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.5 ! root 4573: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4574: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4575: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4576: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4577: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4578: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 4579: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 4581: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4582: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 4583:
1.1 root 4584: ;;
4585: esac
1.1.1.5 ! root 4586: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4587: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4588: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4589: echo $ECHO_N "(cached) $ECHO_C" >&6
4590: else
1.1.1.5 ! root 4591: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 4592: fi
1.1.1.5 ! root 4593: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4594: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4595: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 4596:
4597: fi
4598: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4599: cat >>confdefs.h <<_ACEOF
4600: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601: _ACEOF
4602:
4603: fi
4604:
4605: done
4606:
4607:
4608:
4609:
4610:
4611:
4612: for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h
4613: do
4614: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 4615: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4616: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4617: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4618: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4619: echo $ECHO_N "(cached) $ECHO_C" >&6
4620: fi
1.1.1.5 ! root 4621: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4622: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4623: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 4624: else
4625: # Is the header compilable?
1.1.1.5 ! root 4626: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4627: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 4628: cat >conftest.$ac_ext <<_ACEOF
4629: /* confdefs.h. */
4630: _ACEOF
4631: cat confdefs.h >>conftest.$ac_ext
4632: cat >>conftest.$ac_ext <<_ACEOF
4633: /* end confdefs.h. */
4634: $ac_includes_default
4635: #include <$ac_header>
4636: _ACEOF
4637: rm -f conftest.$ac_objext
1.1.1.5 ! root 4638: if { (ac_try="$ac_compile"
! 4639: case "(($ac_try" in
! 4640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4641: *) ac_try_echo=$ac_try;;
! 4642: esac
! 4643: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4644: (eval "$ac_compile") 2>conftest.er1
1.1 root 4645: ac_status=$?
1.1.1.5 ! root 4646: grep -v '^ *+' conftest.er1 >conftest.err
! 4647: rm -f conftest.er1
! 4648: cat conftest.err >&5
1.1 root 4649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4650: (exit $ac_status); } && {
! 4651: test -z "$ac_c_werror_flag" ||
! 4652: test ! -s conftest.err
! 4653: } && test -s conftest.$ac_objext; then
1.1 root 4654: ac_header_compiler=yes
4655: else
4656: echo "$as_me: failed program was:" >&5
4657: sed 's/^/| /' conftest.$ac_ext >&5
4658:
1.1.1.5 ! root 4659: ac_header_compiler=no
1.1 root 4660: fi
1.1.1.5 ! root 4661:
! 4662: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4663: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4664: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 4665:
4666: # Is the header present?
1.1.1.5 ! root 4667: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4668: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 4669: cat >conftest.$ac_ext <<_ACEOF
4670: /* confdefs.h. */
4671: _ACEOF
4672: cat confdefs.h >>conftest.$ac_ext
4673: cat >>conftest.$ac_ext <<_ACEOF
4674: /* end confdefs.h. */
4675: #include <$ac_header>
4676: _ACEOF
1.1.1.5 ! root 4677: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4678: case "(($ac_try" in
! 4679: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4680: *) ac_try_echo=$ac_try;;
! 4681: esac
! 4682: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4683: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 4684: ac_status=$?
4685: grep -v '^ *+' conftest.er1 >conftest.err
4686: rm -f conftest.er1
4687: cat conftest.err >&5
4688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4689: (exit $ac_status); } >/dev/null && {
! 4690: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4691: test ! -s conftest.err
! 4692: }; then
1.1 root 4693: ac_header_preproc=yes
4694: else
4695: echo "$as_me: failed program was:" >&5
4696: sed 's/^/| /' conftest.$ac_ext >&5
4697:
4698: ac_header_preproc=no
4699: fi
1.1.1.5 ! root 4700:
1.1 root 4701: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 4702: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4703: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 4704:
4705: # So? What about this header?
1.1.1.5 ! root 4706: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 4707: yes:no: )
1.1 root 4708: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 4710: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4711: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 4712: ac_header_preproc=yes
1.1 root 4713: ;;
1.1.1.5 ! root 4714: no:yes:* )
1.1 root 4715: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4716: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.5 ! root 4717: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4718: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4719: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4720: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4721: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4722: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 4723: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4724: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 4725: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4726: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 4727:
1.1 root 4728: ;;
4729: esac
1.1.1.5 ! root 4730: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4731: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4732: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
1.1.1.5 ! root 4735: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 4736: fi
1.1.1.5 ! root 4737: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4738: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4739: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 4740:
4741: fi
4742: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743: cat >>confdefs.h <<_ACEOF
4744: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745: _ACEOF
4746:
4747: fi
4748:
4749: done
4750:
4751:
1.1.1.3 root 4752: for ac_header in sys/bswap.h
4753: do
4754: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 4755: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4756: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4757: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4758: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.3 root 4759: echo $ECHO_N "(cached) $ECHO_C" >&6
4760: fi
1.1.1.5 ! root 4761: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4762: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4763: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.3 root 4764: else
4765: # Is the header compilable?
1.1.1.5 ! root 4766: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4767: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.3 root 4768: cat >conftest.$ac_ext <<_ACEOF
4769: /* confdefs.h. */
4770: _ACEOF
4771: cat confdefs.h >>conftest.$ac_ext
4772: cat >>conftest.$ac_ext <<_ACEOF
4773: /* end confdefs.h. */
4774: $ac_includes_default
4775: #include <$ac_header>
4776: _ACEOF
4777: rm -f conftest.$ac_objext
1.1.1.5 ! root 4778: if { (ac_try="$ac_compile"
! 4779: case "(($ac_try" in
! 4780: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4781: *) ac_try_echo=$ac_try;;
! 4782: esac
! 4783: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4784: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 4785: ac_status=$?
1.1.1.5 ! root 4786: grep -v '^ *+' conftest.er1 >conftest.err
! 4787: rm -f conftest.er1
! 4788: cat conftest.err >&5
1.1.1.3 root 4789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4790: (exit $ac_status); } && {
! 4791: test -z "$ac_c_werror_flag" ||
! 4792: test ! -s conftest.err
! 4793: } && test -s conftest.$ac_objext; then
1.1.1.3 root 4794: ac_header_compiler=yes
4795: else
4796: echo "$as_me: failed program was:" >&5
4797: sed 's/^/| /' conftest.$ac_ext >&5
4798:
1.1.1.5 ! root 4799: ac_header_compiler=no
1.1.1.3 root 4800: fi
1.1.1.5 ! root 4801:
! 4802: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4803: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4804: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.3 root 4805:
4806: # Is the header present?
1.1.1.5 ! root 4807: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4808: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.3 root 4809: cat >conftest.$ac_ext <<_ACEOF
4810: /* confdefs.h. */
4811: _ACEOF
4812: cat confdefs.h >>conftest.$ac_ext
4813: cat >>conftest.$ac_ext <<_ACEOF
4814: /* end confdefs.h. */
4815: #include <$ac_header>
4816: _ACEOF
1.1.1.5 ! root 4817: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4818: case "(($ac_try" in
! 4819: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4820: *) ac_try_echo=$ac_try;;
! 4821: esac
! 4822: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4823: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.3 root 4824: ac_status=$?
4825: grep -v '^ *+' conftest.er1 >conftest.err
4826: rm -f conftest.er1
4827: cat conftest.err >&5
4828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4829: (exit $ac_status); } >/dev/null && {
! 4830: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4831: test ! -s conftest.err
! 4832: }; then
1.1.1.3 root 4833: ac_header_preproc=yes
4834: else
4835: echo "$as_me: failed program was:" >&5
4836: sed 's/^/| /' conftest.$ac_ext >&5
4837:
4838: ac_header_preproc=no
4839: fi
1.1.1.5 ! root 4840:
1.1.1.3 root 4841: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 4842: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4843: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.3 root 4844:
4845: # So? What about this header?
1.1.1.5 ! root 4846: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 4847: yes:no: )
1.1.1.3 root 4848: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 4850: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4851: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 4852: ac_header_preproc=yes
1.1.1.3 root 4853: ;;
1.1.1.5 ! root 4854: no:yes:* )
1.1.1.3 root 4855: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.5 ! root 4857: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4858: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4859: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4860: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4861: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4862: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1.1.3 root 4863: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 4865: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4866: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 4867:
1.1.1.3 root 4868: ;;
4869: esac
1.1.1.5 ! root 4870: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4871: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4872: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.3 root 4873: echo $ECHO_N "(cached) $ECHO_C" >&6
4874: else
1.1.1.5 ! root 4875: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.3 root 4876: fi
1.1.1.5 ! root 4877: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4878: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4879: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.3 root 4880:
4881: fi
4882: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4883: cat >>confdefs.h <<_ACEOF
4884: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885: _ACEOF
4886:
4887: fi
4888:
4889: done
4890:
4891:
1.1.1.5 ! root 4892: { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
! 4893: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
1.1 root 4894: if test "${ac_cv_c_bigendian+set}" = set; then
4895: echo $ECHO_N "(cached) $ECHO_C" >&6
4896: else
4897: # See if sys/param.h defines the BYTE_ORDER macro.
4898: cat >conftest.$ac_ext <<_ACEOF
4899: /* confdefs.h. */
4900: _ACEOF
4901: cat confdefs.h >>conftest.$ac_ext
4902: cat >>conftest.$ac_ext <<_ACEOF
4903: /* end confdefs.h. */
4904: #include <sys/types.h>
4905: #include <sys/param.h>
4906:
4907: int
4908: main ()
4909: {
1.1.1.5 ! root 4910: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
! 4911: && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
1.1 root 4912: bogus endian macros
4913: #endif
4914:
4915: ;
4916: return 0;
4917: }
4918: _ACEOF
4919: rm -f conftest.$ac_objext
1.1.1.5 ! root 4920: if { (ac_try="$ac_compile"
! 4921: case "(($ac_try" in
! 4922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4923: *) ac_try_echo=$ac_try;;
! 4924: esac
! 4925: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4926: (eval "$ac_compile") 2>conftest.er1
1.1 root 4927: ac_status=$?
1.1.1.5 ! root 4928: grep -v '^ *+' conftest.er1 >conftest.err
! 4929: rm -f conftest.er1
! 4930: cat conftest.err >&5
1.1 root 4931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4932: (exit $ac_status); } && {
! 4933: test -z "$ac_c_werror_flag" ||
! 4934: test ! -s conftest.err
! 4935: } && test -s conftest.$ac_objext; then
1.1 root 4936: # It does; now see whether it defined to BIG_ENDIAN or not.
4937: cat >conftest.$ac_ext <<_ACEOF
4938: /* confdefs.h. */
4939: _ACEOF
4940: cat confdefs.h >>conftest.$ac_ext
4941: cat >>conftest.$ac_ext <<_ACEOF
4942: /* end confdefs.h. */
4943: #include <sys/types.h>
4944: #include <sys/param.h>
4945:
4946: int
4947: main ()
4948: {
4949: #if BYTE_ORDER != BIG_ENDIAN
4950: not big endian
4951: #endif
4952:
4953: ;
4954: return 0;
4955: }
4956: _ACEOF
4957: rm -f conftest.$ac_objext
1.1.1.5 ! root 4958: if { (ac_try="$ac_compile"
! 4959: case "(($ac_try" in
! 4960: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4961: *) ac_try_echo=$ac_try;;
! 4962: esac
! 4963: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4964: (eval "$ac_compile") 2>conftest.er1
1.1 root 4965: ac_status=$?
1.1.1.5 ! root 4966: grep -v '^ *+' conftest.er1 >conftest.err
! 4967: rm -f conftest.er1
! 4968: cat conftest.err >&5
1.1 root 4969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 4970: (exit $ac_status); } && {
! 4971: test -z "$ac_c_werror_flag" ||
! 4972: test ! -s conftest.err
! 4973: } && test -s conftest.$ac_objext; then
1.1 root 4974: ac_cv_c_bigendian=yes
4975: else
4976: echo "$as_me: failed program was:" >&5
4977: sed 's/^/| /' conftest.$ac_ext >&5
4978:
1.1.1.5 ! root 4979: ac_cv_c_bigendian=no
1.1 root 4980: fi
1.1.1.5 ! root 4981:
! 4982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 4983: else
4984: echo "$as_me: failed program was:" >&5
4985: sed 's/^/| /' conftest.$ac_ext >&5
4986:
1.1.1.5 ! root 4987: # It does not; compile a test program.
1.1 root 4988: if test "$cross_compiling" = yes; then
4989: # try to guess the endianness by grepping values into an object file
4990: ac_cv_c_bigendian=unknown
4991: cat >conftest.$ac_ext <<_ACEOF
4992: /* confdefs.h. */
4993: _ACEOF
4994: cat confdefs.h >>conftest.$ac_ext
4995: cat >>conftest.$ac_ext <<_ACEOF
4996: /* end confdefs.h. */
1.1.1.5 ! root 4997: short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
! 4998: short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
1.1 root 4999: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
1.1.1.5 ! root 5000: short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
! 5001: short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
1.1 root 5002: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5003: int
5004: main ()
5005: {
5006: _ascii (); _ebcdic ();
5007: ;
5008: return 0;
5009: }
5010: _ACEOF
5011: rm -f conftest.$ac_objext
1.1.1.5 ! root 5012: if { (ac_try="$ac_compile"
! 5013: case "(($ac_try" in
! 5014: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5015: *) ac_try_echo=$ac_try;;
! 5016: esac
! 5017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5018: (eval "$ac_compile") 2>conftest.er1
1.1 root 5019: ac_status=$?
1.1.1.5 ! root 5020: grep -v '^ *+' conftest.er1 >conftest.err
! 5021: rm -f conftest.er1
! 5022: cat conftest.err >&5
1.1 root 5023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5024: (exit $ac_status); } && {
! 5025: test -z "$ac_c_werror_flag" ||
! 5026: test ! -s conftest.err
! 5027: } && test -s conftest.$ac_objext; then
1.1 root 5028: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5029: ac_cv_c_bigendian=yes
5030: fi
5031: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5032: if test "$ac_cv_c_bigendian" = unknown; then
5033: ac_cv_c_bigendian=no
5034: else
5035: # finding both strings is unlikely to happen, but who knows?
5036: ac_cv_c_bigendian=unknown
5037: fi
5038: fi
5039: else
5040: echo "$as_me: failed program was:" >&5
5041: sed 's/^/| /' conftest.$ac_ext >&5
5042:
1.1.1.5 ! root 5043:
1.1 root 5044: fi
1.1.1.5 ! root 5045:
! 5046: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5047: else
5048: cat >conftest.$ac_ext <<_ACEOF
5049: /* confdefs.h. */
5050: _ACEOF
5051: cat confdefs.h >>conftest.$ac_ext
5052: cat >>conftest.$ac_ext <<_ACEOF
5053: /* end confdefs.h. */
1.1.1.5 ! root 5054: $ac_includes_default
1.1 root 5055: int
5056: main ()
5057: {
1.1.1.5 ! root 5058:
1.1 root 5059: /* Are we little or big endian? From Harbison&Steele. */
5060: union
5061: {
1.1.1.5 ! root 5062: long int l;
! 5063: char c[sizeof (long int)];
1.1 root 5064: } u;
5065: u.l = 1;
1.1.1.5 ! root 5066: return u.c[sizeof (long int) - 1] == 1;
! 5067:
! 5068: ;
! 5069: return 0;
1.1 root 5070: }
5071: _ACEOF
5072: rm -f conftest$ac_exeext
1.1.1.5 ! root 5073: if { (ac_try="$ac_link"
! 5074: case "(($ac_try" in
! 5075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5076: *) ac_try_echo=$ac_try;;
! 5077: esac
! 5078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5079: (eval "$ac_link") 2>&5
1.1 root 5080: ac_status=$?
5081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 5083: { (case "(($ac_try" in
! 5084: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5085: *) ac_try_echo=$ac_try;;
! 5086: esac
! 5087: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5088: (eval "$ac_try") 2>&5
1.1 root 5089: ac_status=$?
5090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091: (exit $ac_status); }; }; then
5092: ac_cv_c_bigendian=no
5093: else
5094: echo "$as_me: program exited with status $ac_status" >&5
5095: echo "$as_me: failed program was:" >&5
5096: sed 's/^/| /' conftest.$ac_ext >&5
5097:
5098: ( exit $ac_status )
5099: ac_cv_c_bigendian=yes
5100: fi
1.1.1.5 ! root 5101: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 5102: fi
1.1.1.5 ! root 5103:
! 5104:
1.1 root 5105: fi
1.1.1.5 ! root 5106:
! 5107: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5108: fi
1.1.1.5 ! root 5109: { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
! 5110: echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
1.1 root 5111: case $ac_cv_c_bigendian in
5112: yes)
5113:
5114: cat >>confdefs.h <<\_ACEOF
5115: #define WORDS_BIGENDIAN 1
5116: _ACEOF
5117: ;;
5118: no)
5119: ;;
5120: *)
5121: { { echo "$as_me:$LINENO: error: unknown endianness
5122: presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5123: echo "$as_me: error: unknown endianness
5124: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5125: { (exit 1); exit 1; }; } ;;
5126: esac
5127:
1.1.1.5 ! root 5128: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 5129: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1 root 5130: if test "${ac_cv_c_const+set}" = set; then
5131: echo $ECHO_N "(cached) $ECHO_C" >&6
5132: else
5133: cat >conftest.$ac_ext <<_ACEOF
5134: /* confdefs.h. */
5135: _ACEOF
5136: cat confdefs.h >>conftest.$ac_ext
5137: cat >>conftest.$ac_ext <<_ACEOF
5138: /* end confdefs.h. */
5139:
5140: int
5141: main ()
5142: {
5143: /* FIXME: Include the comments suggested by Paul. */
5144: #ifndef __cplusplus
5145: /* Ultrix mips cc rejects this. */
5146: typedef int charset[2];
1.1.1.5 ! root 5147: const charset cs;
1.1 root 5148: /* SunOS 4.1.1 cc rejects this. */
1.1.1.5 ! root 5149: char const *const *pcpcc;
! 5150: char **ppc;
1.1 root 5151: /* NEC SVR4.0.2 mips cc rejects this. */
5152: struct point {int x, y;};
5153: static struct point const zero = {0,0};
5154: /* AIX XL C 1.02.0.0 rejects this.
5155: It does not let you subtract one const X* pointer from another in
5156: an arm of an if-expression whose if-part is not a constant
5157: expression */
5158: const char *g = "string";
1.1.1.5 ! root 5159: pcpcc = &g + (g ? g-g : 0);
1.1 root 5160: /* HPUX 7.0 cc rejects these. */
1.1.1.5 ! root 5161: ++pcpcc;
! 5162: ppc = (char**) pcpcc;
! 5163: pcpcc = (char const *const *) ppc;
1.1 root 5164: { /* SCO 3.2v4 cc rejects this. */
5165: char *t;
5166: char const *s = 0 ? (char *) 0 : (char const *) 0;
5167:
5168: *t++ = 0;
1.1.1.5 ! root 5169: if (s) return 0;
1.1 root 5170: }
5171: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5172: int x[] = {25, 17};
5173: const int *foo = &x[0];
5174: ++foo;
5175: }
5176: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5177: typedef const int *iptr;
5178: iptr p = 0;
5179: ++p;
5180: }
5181: { /* AIX XL C 1.02.0.0 rejects this saying
5182: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5183: struct s { int j; const int *ap[3]; };
5184: struct s *b; b->j = 5;
5185: }
5186: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5187: const int foo = 10;
1.1.1.5 ! root 5188: if (!foo) return 0;
1.1 root 5189: }
1.1.1.5 ! root 5190: return !cs[0] && !zero.x;
1.1 root 5191: #endif
5192:
5193: ;
5194: return 0;
5195: }
5196: _ACEOF
5197: rm -f conftest.$ac_objext
1.1.1.5 ! root 5198: if { (ac_try="$ac_compile"
! 5199: case "(($ac_try" in
! 5200: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5201: *) ac_try_echo=$ac_try;;
! 5202: esac
! 5203: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5204: (eval "$ac_compile") 2>conftest.er1
1.1 root 5205: ac_status=$?
1.1.1.5 ! root 5206: grep -v '^ *+' conftest.er1 >conftest.err
! 5207: rm -f conftest.er1
! 5208: cat conftest.err >&5
1.1 root 5209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5210: (exit $ac_status); } && {
! 5211: test -z "$ac_c_werror_flag" ||
! 5212: test ! -s conftest.err
! 5213: } && test -s conftest.$ac_objext; then
1.1 root 5214: ac_cv_c_const=yes
5215: else
5216: echo "$as_me: failed program was:" >&5
5217: sed 's/^/| /' conftest.$ac_ext >&5
5218:
1.1.1.5 ! root 5219: ac_cv_c_const=no
1.1 root 5220: fi
1.1.1.5 ! root 5221:
! 5222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5223: fi
1.1.1.5 ! root 5224: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 5225: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 5226: if test $ac_cv_c_const = no; then
5227:
5228: cat >>confdefs.h <<\_ACEOF
5229: #define const
5230: _ACEOF
5231:
5232: fi
5233:
1.1.1.5 ! root 5234: { echo "$as_me:$LINENO: checking for inline" >&5
! 5235: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1 root 5236: if test "${ac_cv_c_inline+set}" = set; then
5237: echo $ECHO_N "(cached) $ECHO_C" >&6
5238: else
5239: ac_cv_c_inline=no
5240: for ac_kw in inline __inline__ __inline; do
5241: cat >conftest.$ac_ext <<_ACEOF
5242: /* confdefs.h. */
5243: _ACEOF
5244: cat confdefs.h >>conftest.$ac_ext
5245: cat >>conftest.$ac_ext <<_ACEOF
5246: /* end confdefs.h. */
5247: #ifndef __cplusplus
5248: typedef int foo_t;
5249: static $ac_kw foo_t static_foo () {return 0; }
5250: $ac_kw foo_t foo () {return 0; }
5251: #endif
5252:
5253: _ACEOF
5254: rm -f conftest.$ac_objext
1.1.1.5 ! root 5255: if { (ac_try="$ac_compile"
! 5256: case "(($ac_try" in
! 5257: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5258: *) ac_try_echo=$ac_try;;
! 5259: esac
! 5260: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5261: (eval "$ac_compile") 2>conftest.er1
1.1 root 5262: ac_status=$?
1.1.1.5 ! root 5263: grep -v '^ *+' conftest.er1 >conftest.err
! 5264: rm -f conftest.er1
! 5265: cat conftest.err >&5
1.1 root 5266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5267: (exit $ac_status); } && {
! 5268: test -z "$ac_c_werror_flag" ||
! 5269: test ! -s conftest.err
! 5270: } && test -s conftest.$ac_objext; then
! 5271: ac_cv_c_inline=$ac_kw
1.1 root 5272: else
5273: echo "$as_me: failed program was:" >&5
5274: sed 's/^/| /' conftest.$ac_ext >&5
5275:
1.1.1.5 ! root 5276:
1.1 root 5277: fi
1.1.1.5 ! root 5278:
! 5279: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5280: test "$ac_cv_c_inline" != no && break
1.1 root 5281: done
5282:
5283: fi
1.1.1.5 ! root 5284: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 5285: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
! 5286:
! 5287:
1.1 root 5288: case $ac_cv_c_inline in
5289: inline | yes) ;;
1.1.1.5 ! root 5290: *)
! 5291: case $ac_cv_c_inline in
! 5292: no) ac_val=;;
! 5293: *) ac_val=$ac_cv_c_inline;;
! 5294: esac
! 5295: cat >>confdefs.h <<_ACEOF
! 5296: #ifndef __cplusplus
! 5297: #define inline $ac_val
! 5298: #endif
1.1 root 5299: _ACEOF
1.1.1.5 ! root 5300: ;;
1.1 root 5301: esac
5302:
1.1.1.5 ! root 5303: { echo "$as_me:$LINENO: checking for working volatile" >&5
! 5304: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.1.1.3 root 5305: if test "${ac_cv_c_volatile+set}" = set; then
1.1.1.2 root 5306: echo $ECHO_N "(cached) $ECHO_C" >&6
5307: else
5308: cat >conftest.$ac_ext <<_ACEOF
5309: /* confdefs.h. */
5310: _ACEOF
5311: cat confdefs.h >>conftest.$ac_ext
5312: cat >>conftest.$ac_ext <<_ACEOF
5313: /* end confdefs.h. */
1.1.1.3 root 5314:
1.1.1.2 root 5315: int
5316: main ()
5317: {
1.1.1.3 root 5318:
5319: volatile int x;
1.1.1.5 ! root 5320: int * volatile y = (int *) 0;
! 5321: return !x && !y;
1.1.1.2 root 5322: ;
5323: return 0;
5324: }
5325: _ACEOF
5326: rm -f conftest.$ac_objext
1.1.1.5 ! root 5327: if { (ac_try="$ac_compile"
! 5328: case "(($ac_try" in
! 5329: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5330: *) ac_try_echo=$ac_try;;
! 5331: esac
! 5332: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5333: (eval "$ac_compile") 2>conftest.er1
1.1.1.2 root 5334: ac_status=$?
1.1.1.5 ! root 5335: grep -v '^ *+' conftest.er1 >conftest.err
! 5336: rm -f conftest.er1
! 5337: cat conftest.err >&5
1.1.1.2 root 5338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5339: (exit $ac_status); } && {
! 5340: test -z "$ac_c_werror_flag" ||
! 5341: test ! -s conftest.err
! 5342: } && test -s conftest.$ac_objext; then
1.1.1.3 root 5343: ac_cv_c_volatile=yes
1.1.1.2 root 5344: else
5345: echo "$as_me: failed program was:" >&5
5346: sed 's/^/| /' conftest.$ac_ext >&5
5347:
1.1.1.5 ! root 5348: ac_cv_c_volatile=no
1.1.1.2 root 5349: fi
1.1.1.5 ! root 5350:
! 5351: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 root 5352: fi
1.1.1.5 ! root 5353: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 5354: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.1.1.3 root 5355: if test $ac_cv_c_volatile = no; then
1.1.1.2 root 5356:
1.1.1.3 root 5357: cat >>confdefs.h <<\_ACEOF
5358: #define volatile
1.1.1.2 root 5359: _ACEOF
5360:
5361: fi
5362:
1.1.1.5 ! root 5363:
! 5364:
! 5365: { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
! 5366: echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
! 5367: if test "${ac_cv_type_long_double_wider+set}" = set; then
1.1 root 5368: echo $ECHO_N "(cached) $ECHO_C" >&6
5369: else
5370: cat >conftest.$ac_ext <<_ACEOF
5371: /* confdefs.h. */
5372: _ACEOF
5373: cat confdefs.h >>conftest.$ac_ext
5374: cat >>conftest.$ac_ext <<_ACEOF
5375: /* end confdefs.h. */
1.1.1.3 root 5376: #include <float.h>
1.1.1.5 ! root 5377: long double const a[] =
! 5378: {
! 5379: 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
! 5380: LDBL_MIN, LDBL_MAX, LDBL_EPSILON
! 5381: };
! 5382: long double
! 5383: f (long double x)
! 5384: {
! 5385: return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
! 5386: + (x ? f (x) : 'c'));
! 5387: }
! 5388:
1.1 root 5389: int
5390: main ()
5391: {
1.1.1.5 ! root 5392: static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
! 5393: + (DBL_MANT_DIG < LDBL_MANT_DIG)
! 5394: - (LDBL_MAX_EXP < DBL_MAX_EXP)
! 5395: - (LDBL_MANT_DIG < DBL_MANT_DIG)))
! 5396: && (int) LDBL_EPSILON == 0
! 5397: )];
1.1.1.3 root 5398: test_array [0] = 0
5399:
1.1 root 5400: ;
5401: return 0;
5402: }
5403: _ACEOF
5404: rm -f conftest.$ac_objext
1.1.1.5 ! root 5405: if { (ac_try="$ac_compile"
! 5406: case "(($ac_try" in
! 5407: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5408: *) ac_try_echo=$ac_try;;
! 5409: esac
! 5410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5411: (eval "$ac_compile") 2>conftest.er1
1.1 root 5412: ac_status=$?
1.1.1.5 ! root 5413: grep -v '^ *+' conftest.er1 >conftest.err
! 5414: rm -f conftest.er1
! 5415: cat conftest.err >&5
1.1 root 5416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5417: (exit $ac_status); } && {
! 5418: test -z "$ac_c_werror_flag" ||
! 5419: test ! -s conftest.err
! 5420: } && test -s conftest.$ac_objext; then
! 5421: ac_cv_type_long_double_wider=yes
1.1 root 5422: else
5423: echo "$as_me: failed program was:" >&5
5424: sed 's/^/| /' conftest.$ac_ext >&5
5425:
1.1.1.5 ! root 5426: ac_cv_type_long_double_wider=no
1.1 root 5427: fi
1.1.1.5 ! root 5428:
! 5429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5430: fi
1.1.1.5 ! root 5431: { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
! 5432: echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
! 5433: if test $ac_cv_type_long_double_wider = yes; then
! 5434:
! 5435: cat >>confdefs.h <<\_ACEOF
! 5436: #define HAVE_LONG_DOUBLE_WIDER 1
! 5437: _ACEOF
! 5438:
! 5439: fi
! 5440:
! 5441: ac_cv_c_long_double=$ac_cv_type_long_double_wider
! 5442: if test $ac_cv_c_long_double = yes; then
1.1 root 5443:
1.1.1.3 root 5444: cat >>confdefs.h <<\_ACEOF
5445: #define HAVE_LONG_DOUBLE 1
5446: _ACEOF
5447:
1.1.1.5 ! root 5448: fi
1.1.1.3 root 5449:
1.1.1.5 ! root 5450: { echo "$as_me:$LINENO: checking for size_t" >&5
! 5451: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.1.1.3 root 5452: if test "${ac_cv_type_size_t+set}" = set; then
1.1 root 5453: echo $ECHO_N "(cached) $ECHO_C" >&6
5454: else
1.1.1.3 root 5455: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5456: /* confdefs.h. */
5457: _ACEOF
5458: cat confdefs.h >>conftest.$ac_ext
5459: cat >>conftest.$ac_ext <<_ACEOF
5460: /* end confdefs.h. */
5461: $ac_includes_default
1.1.1.5 ! root 5462: typedef size_t ac__type_new_;
1.1 root 5463: int
5464: main ()
5465: {
1.1.1.5 ! root 5466: if ((ac__type_new_ *) 0)
1.1.1.3 root 5467: return 0;
1.1.1.5 ! root 5468: if (sizeof (ac__type_new_))
1.1.1.3 root 5469: return 0;
1.1 root 5470: ;
5471: return 0;
5472: }
5473: _ACEOF
5474: rm -f conftest.$ac_objext
1.1.1.5 ! root 5475: if { (ac_try="$ac_compile"
! 5476: case "(($ac_try" in
! 5477: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5478: *) ac_try_echo=$ac_try;;
! 5479: esac
! 5480: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5481: (eval "$ac_compile") 2>conftest.er1
1.1 root 5482: ac_status=$?
1.1.1.5 ! root 5483: grep -v '^ *+' conftest.er1 >conftest.err
! 5484: rm -f conftest.er1
! 5485: cat conftest.err >&5
1.1 root 5486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5487: (exit $ac_status); } && {
! 5488: test -z "$ac_c_werror_flag" ||
! 5489: test ! -s conftest.err
! 5490: } && test -s conftest.$ac_objext; then
1.1.1.3 root 5491: ac_cv_type_size_t=yes
5492: else
5493: echo "$as_me: failed program was:" >&5
5494: sed 's/^/| /' conftest.$ac_ext >&5
5495:
1.1.1.5 ! root 5496: ac_cv_type_size_t=no
1.1.1.3 root 5497: fi
1.1.1.5 ! root 5498:
! 5499: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 5500: fi
1.1.1.5 ! root 5501: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 5502: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
1.1.1.3 root 5503: if test $ac_cv_type_size_t = yes; then
5504: :
5505: else
5506:
5507: cat >>confdefs.h <<_ACEOF
1.1.1.5 ! root 5508: #define size_t unsigned int
1.1.1.3 root 5509: _ACEOF
5510:
5511: fi
5512:
1.1.1.5 ! root 5513: { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 5514: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
1.1.1.3 root 5515: if test "${ac_cv_type_signal+set}" = set; then
5516: echo $ECHO_N "(cached) $ECHO_C" >&6
5517: else
5518: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5519: /* confdefs.h. */
5520: _ACEOF
5521: cat confdefs.h >>conftest.$ac_ext
5522: cat >>conftest.$ac_ext <<_ACEOF
5523: /* end confdefs.h. */
1.1.1.3 root 5524: #include <sys/types.h>
5525: #include <signal.h>
5526:
1.1 root 5527: int
5528: main ()
5529: {
1.1.1.5 ! root 5530: return *(signal (0, 0)) (0) == 1;
1.1 root 5531: ;
5532: return 0;
5533: }
5534: _ACEOF
5535: rm -f conftest.$ac_objext
1.1.1.5 ! root 5536: if { (ac_try="$ac_compile"
! 5537: case "(($ac_try" in
! 5538: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5539: *) ac_try_echo=$ac_try;;
! 5540: esac
! 5541: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5542: (eval "$ac_compile") 2>conftest.er1
1.1 root 5543: ac_status=$?
1.1.1.5 ! root 5544: grep -v '^ *+' conftest.er1 >conftest.err
! 5545: rm -f conftest.er1
! 5546: cat conftest.err >&5
1.1 root 5547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5548: (exit $ac_status); } && {
! 5549: test -z "$ac_c_werror_flag" ||
! 5550: test ! -s conftest.err
! 5551: } && test -s conftest.$ac_objext; then
! 5552: ac_cv_type_signal=int
1.1 root 5553: else
5554: echo "$as_me: failed program was:" >&5
5555: sed 's/^/| /' conftest.$ac_ext >&5
5556:
1.1.1.5 ! root 5557: ac_cv_type_signal=void
1.1 root 5558: fi
1.1.1.5 ! root 5559:
! 5560: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 5561: fi
1.1.1.5 ! root 5562: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 5563: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
1.1 root 5564:
1.1.1.3 root 5565: cat >>confdefs.h <<_ACEOF
5566: #define RETSIGTYPE $ac_cv_type_signal
5567: _ACEOF
5568:
5569:
1.1.1.5 ! root 5570: { echo "$as_me:$LINENO: checking for long" >&5
! 5571: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
1.1.1.3 root 5572: if test "${ac_cv_type_long+set}" = set; then
5573: echo $ECHO_N "(cached) $ECHO_C" >&6
5574: else
5575: cat >conftest.$ac_ext <<_ACEOF
5576: /* confdefs.h. */
5577: _ACEOF
5578: cat confdefs.h >>conftest.$ac_ext
5579: cat >>conftest.$ac_ext <<_ACEOF
5580: /* end confdefs.h. */
5581: $ac_includes_default
1.1.1.5 ! root 5582: typedef long ac__type_new_;
1.1.1.3 root 5583: int
5584: main ()
5585: {
1.1.1.5 ! root 5586: if ((ac__type_new_ *) 0)
1.1.1.3 root 5587: return 0;
1.1.1.5 ! root 5588: if (sizeof (ac__type_new_))
1.1.1.3 root 5589: return 0;
5590: ;
5591: return 0;
5592: }
5593: _ACEOF
5594: rm -f conftest.$ac_objext
1.1.1.5 ! root 5595: if { (ac_try="$ac_compile"
! 5596: case "(($ac_try" in
! 5597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5598: *) ac_try_echo=$ac_try;;
! 5599: esac
! 5600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5601: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 5602: ac_status=$?
1.1.1.5 ! root 5603: grep -v '^ *+' conftest.er1 >conftest.err
! 5604: rm -f conftest.er1
! 5605: cat conftest.err >&5
1.1.1.3 root 5606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5607: (exit $ac_status); } && {
! 5608: test -z "$ac_c_werror_flag" ||
! 5609: test ! -s conftest.err
! 5610: } && test -s conftest.$ac_objext; then
1.1.1.3 root 5611: ac_cv_type_long=yes
5612: else
5613: echo "$as_me: failed program was:" >&5
5614: sed 's/^/| /' conftest.$ac_ext >&5
5615:
1.1.1.5 ! root 5616: ac_cv_type_long=no
1.1.1.3 root 5617: fi
1.1.1.5 ! root 5618:
! 5619: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 5620: fi
1.1.1.5 ! root 5621: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 5622: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1.1.3 root 5623:
1.1.1.5 ! root 5624: # The cast to long int works around a bug in the HP C Compiler
! 5625: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 5626: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 5627: # This bug is HP SR number 8606223364.
! 5628: { echo "$as_me:$LINENO: checking size of long" >&5
! 5629: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
1.1.1.3 root 5630: if test "${ac_cv_sizeof_long+set}" = set; then
5631: echo $ECHO_N "(cached) $ECHO_C" >&6
5632: else
5633: if test "$cross_compiling" = yes; then
5634: # Depending upon the size, compute the lo and hi bounds.
5635: cat >conftest.$ac_ext <<_ACEOF
5636: /* confdefs.h. */
5637: _ACEOF
5638: cat confdefs.h >>conftest.$ac_ext
5639: cat >>conftest.$ac_ext <<_ACEOF
5640: /* end confdefs.h. */
5641: $ac_includes_default
1.1.1.5 ! root 5642: typedef long ac__type_sizeof_;
1.1.1.3 root 5643: int
5644: main ()
5645: {
1.1.1.5 ! root 5646: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.3 root 5647: test_array [0] = 0
5648:
5649: ;
5650: return 0;
5651: }
5652: _ACEOF
5653: rm -f conftest.$ac_objext
1.1.1.5 ! root 5654: if { (ac_try="$ac_compile"
! 5655: case "(($ac_try" in
! 5656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5657: *) ac_try_echo=$ac_try;;
! 5658: esac
! 5659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5660: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 5661: ac_status=$?
1.1.1.5 ! root 5662: grep -v '^ *+' conftest.er1 >conftest.err
! 5663: rm -f conftest.er1
! 5664: cat conftest.err >&5
1.1.1.3 root 5665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5666: (exit $ac_status); } && {
! 5667: test -z "$ac_c_werror_flag" ||
! 5668: test ! -s conftest.err
! 5669: } && test -s conftest.$ac_objext; then
1.1.1.3 root 5670: ac_lo=0 ac_mid=0
5671: while :; do
5672: cat >conftest.$ac_ext <<_ACEOF
5673: /* confdefs.h. */
5674: _ACEOF
5675: cat confdefs.h >>conftest.$ac_ext
5676: cat >>conftest.$ac_ext <<_ACEOF
5677: /* end confdefs.h. */
5678: $ac_includes_default
1.1.1.5 ! root 5679: typedef long ac__type_sizeof_;
1.1.1.3 root 5680: int
5681: main ()
5682: {
1.1.1.5 ! root 5683: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 5684: test_array [0] = 0
5685:
5686: ;
5687: return 0;
5688: }
5689: _ACEOF
5690: rm -f conftest.$ac_objext
1.1.1.5 ! root 5691: if { (ac_try="$ac_compile"
! 5692: case "(($ac_try" in
! 5693: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5694: *) ac_try_echo=$ac_try;;
! 5695: esac
! 5696: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5697: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 5698: ac_status=$?
1.1.1.5 ! root 5699: grep -v '^ *+' conftest.er1 >conftest.err
! 5700: rm -f conftest.er1
! 5701: cat conftest.err >&5
1.1.1.3 root 5702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5703: (exit $ac_status); } && {
! 5704: test -z "$ac_c_werror_flag" ||
! 5705: test ! -s conftest.err
! 5706: } && test -s conftest.$ac_objext; then
1.1.1.3 root 5707: ac_hi=$ac_mid; break
5708: else
5709: echo "$as_me: failed program was:" >&5
5710: sed 's/^/| /' conftest.$ac_ext >&5
5711:
1.1.1.5 ! root 5712: ac_lo=`expr $ac_mid + 1`
! 5713: if test $ac_lo -le $ac_mid; then
! 5714: ac_lo= ac_hi=
! 5715: break
! 5716: fi
! 5717: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.3 root 5718: fi
1.1.1.5 ! root 5719:
! 5720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 5721: done
5722: else
5723: echo "$as_me: failed program was:" >&5
5724: sed 's/^/| /' conftest.$ac_ext >&5
5725:
1.1.1.5 ! root 5726: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5727: /* confdefs.h. */
5728: _ACEOF
5729: cat confdefs.h >>conftest.$ac_ext
5730: cat >>conftest.$ac_ext <<_ACEOF
5731: /* end confdefs.h. */
5732: $ac_includes_default
1.1.1.5 ! root 5733: typedef long ac__type_sizeof_;
1.1 root 5734: int
5735: main ()
5736: {
1.1.1.5 ! root 5737: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1 root 5738: test_array [0] = 0
5739:
5740: ;
5741: return 0;
5742: }
5743: _ACEOF
5744: rm -f conftest.$ac_objext
1.1.1.5 ! root 5745: if { (ac_try="$ac_compile"
! 5746: case "(($ac_try" in
! 5747: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5748: *) ac_try_echo=$ac_try;;
! 5749: esac
! 5750: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5751: (eval "$ac_compile") 2>conftest.er1
1.1 root 5752: ac_status=$?
1.1.1.5 ! root 5753: grep -v '^ *+' conftest.er1 >conftest.err
! 5754: rm -f conftest.er1
! 5755: cat conftest.err >&5
1.1 root 5756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5757: (exit $ac_status); } && {
! 5758: test -z "$ac_c_werror_flag" ||
! 5759: test ! -s conftest.err
! 5760: } && test -s conftest.$ac_objext; then
1.1 root 5761: ac_hi=-1 ac_mid=-1
5762: while :; do
5763: cat >conftest.$ac_ext <<_ACEOF
5764: /* confdefs.h. */
5765: _ACEOF
5766: cat confdefs.h >>conftest.$ac_ext
5767: cat >>conftest.$ac_ext <<_ACEOF
5768: /* end confdefs.h. */
5769: $ac_includes_default
1.1.1.5 ! root 5770: typedef long ac__type_sizeof_;
1.1 root 5771: int
5772: main ()
5773: {
1.1.1.5 ! root 5774: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1 root 5775: test_array [0] = 0
5776:
5777: ;
5778: return 0;
5779: }
5780: _ACEOF
5781: rm -f conftest.$ac_objext
1.1.1.5 ! root 5782: if { (ac_try="$ac_compile"
! 5783: case "(($ac_try" in
! 5784: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5785: *) ac_try_echo=$ac_try;;
! 5786: esac
! 5787: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5788: (eval "$ac_compile") 2>conftest.er1
1.1 root 5789: ac_status=$?
1.1.1.5 ! root 5790: grep -v '^ *+' conftest.er1 >conftest.err
! 5791: rm -f conftest.er1
! 5792: cat conftest.err >&5
1.1 root 5793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5794: (exit $ac_status); } && {
! 5795: test -z "$ac_c_werror_flag" ||
! 5796: test ! -s conftest.err
! 5797: } && test -s conftest.$ac_objext; then
1.1 root 5798: ac_lo=$ac_mid; break
5799: else
5800: echo "$as_me: failed program was:" >&5
5801: sed 's/^/| /' conftest.$ac_ext >&5
5802:
1.1.1.5 ! root 5803: ac_hi=`expr '(' $ac_mid ')' - 1`
! 5804: if test $ac_mid -le $ac_hi; then
! 5805: ac_lo= ac_hi=
! 5806: break
! 5807: fi
! 5808: ac_mid=`expr 2 '*' $ac_mid`
1.1 root 5809: fi
1.1.1.5 ! root 5810:
! 5811: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5812: done
5813: else
5814: echo "$as_me: failed program was:" >&5
5815: sed 's/^/| /' conftest.$ac_ext >&5
5816:
1.1.1.5 ! root 5817: ac_lo= ac_hi=
1.1 root 5818: fi
1.1.1.5 ! root 5819:
! 5820: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5821: fi
1.1.1.5 ! root 5822:
! 5823: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5824: # Binary search between lo and hi bounds.
5825: while test "x$ac_lo" != "x$ac_hi"; do
5826: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5827: cat >conftest.$ac_ext <<_ACEOF
5828: /* confdefs.h. */
5829: _ACEOF
5830: cat confdefs.h >>conftest.$ac_ext
5831: cat >>conftest.$ac_ext <<_ACEOF
5832: /* end confdefs.h. */
5833: $ac_includes_default
1.1.1.5 ! root 5834: typedef long ac__type_sizeof_;
1.1 root 5835: int
5836: main ()
5837: {
1.1.1.5 ! root 5838: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1 root 5839: test_array [0] = 0
5840:
5841: ;
5842: return 0;
5843: }
5844: _ACEOF
5845: rm -f conftest.$ac_objext
1.1.1.5 ! root 5846: if { (ac_try="$ac_compile"
! 5847: case "(($ac_try" in
! 5848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5849: *) ac_try_echo=$ac_try;;
! 5850: esac
! 5851: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5852: (eval "$ac_compile") 2>conftest.er1
1.1 root 5853: ac_status=$?
1.1.1.5 ! root 5854: grep -v '^ *+' conftest.er1 >conftest.err
! 5855: rm -f conftest.er1
! 5856: cat conftest.err >&5
1.1 root 5857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 5858: (exit $ac_status); } && {
! 5859: test -z "$ac_c_werror_flag" ||
! 5860: test ! -s conftest.err
! 5861: } && test -s conftest.$ac_objext; then
1.1 root 5862: ac_hi=$ac_mid
5863: else
5864: echo "$as_me: failed program was:" >&5
5865: sed 's/^/| /' conftest.$ac_ext >&5
5866:
1.1.1.5 ! root 5867: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 root 5868: fi
1.1.1.5 ! root 5869:
! 5870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5871: done
5872: case $ac_lo in
5873: ?*) ac_cv_sizeof_long=$ac_lo;;
1.1.1.5 ! root 5874: '') if test "$ac_cv_type_long" = yes; then
! 5875: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1 root 5876: See \`config.log' for more details." >&5
1.1.1.5 ! root 5877: echo "$as_me: error: cannot compute sizeof (long)
1.1 root 5878: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 5879: { (exit 77); exit 77; }; }
! 5880: else
! 5881: ac_cv_sizeof_long=0
! 5882: fi ;;
1.1 root 5883: esac
5884: else
5885: cat >conftest.$ac_ext <<_ACEOF
5886: /* confdefs.h. */
5887: _ACEOF
5888: cat confdefs.h >>conftest.$ac_ext
5889: cat >>conftest.$ac_ext <<_ACEOF
5890: /* end confdefs.h. */
5891: $ac_includes_default
1.1.1.5 ! root 5892: typedef long ac__type_sizeof_;
! 5893: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 5894: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 5895: #include <stdio.h>
5896: #include <stdlib.h>
5897: int
5898: main ()
5899: {
5900:
5901: FILE *f = fopen ("conftest.val", "w");
5902: if (! f)
1.1.1.5 ! root 5903: return 1;
! 5904: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1 root 5905: {
1.1.1.5 ! root 5906: long int i = longval ();
! 5907: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 5908: return 1;
1.1 root 5909: fprintf (f, "%ld\n", i);
5910: }
5911: else
5912: {
1.1.1.5 ! root 5913: unsigned long int i = ulongval ();
! 5914: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 5915: return 1;
1.1 root 5916: fprintf (f, "%lu\n", i);
5917: }
1.1.1.5 ! root 5918: return ferror (f) || fclose (f) != 0;
1.1 root 5919:
5920: ;
5921: return 0;
5922: }
5923: _ACEOF
5924: rm -f conftest$ac_exeext
1.1.1.5 ! root 5925: if { (ac_try="$ac_link"
! 5926: case "(($ac_try" in
! 5927: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5928: *) ac_try_echo=$ac_try;;
! 5929: esac
! 5930: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5931: (eval "$ac_link") 2>&5
1.1 root 5932: ac_status=$?
5933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 5935: { (case "(($ac_try" in
! 5936: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5937: *) ac_try_echo=$ac_try;;
! 5938: esac
! 5939: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5940: (eval "$ac_try") 2>&5
1.1 root 5941: ac_status=$?
5942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943: (exit $ac_status); }; }; then
5944: ac_cv_sizeof_long=`cat conftest.val`
5945: else
5946: echo "$as_me: program exited with status $ac_status" >&5
5947: echo "$as_me: failed program was:" >&5
5948: sed 's/^/| /' conftest.$ac_ext >&5
5949:
5950: ( exit $ac_status )
1.1.1.5 ! root 5951: if test "$ac_cv_type_long" = yes; then
! 5952: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1 root 5953: See \`config.log' for more details." >&5
1.1.1.5 ! root 5954: echo "$as_me: error: cannot compute sizeof (long)
1.1 root 5955: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 5956: { (exit 77); exit 77; }; }
! 5957: else
! 5958: ac_cv_sizeof_long=0
! 5959: fi
1.1 root 5960: fi
1.1.1.5 ! root 5961: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 5962: fi
5963: rm -f conftest.val
5964: fi
1.1.1.5 ! root 5965: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 5966: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
! 5967:
! 5968:
! 5969:
1.1 root 5970: cat >>confdefs.h <<_ACEOF
5971: #define SIZEOF_LONG $ac_cv_sizeof_long
5972: _ACEOF
5973:
5974:
1.1.1.5 ! root 5975: { echo "$as_me:$LINENO: checking for int" >&5
! 5976: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
1.1 root 5977: if test "${ac_cv_type_int+set}" = set; then
5978: echo $ECHO_N "(cached) $ECHO_C" >&6
5979: else
5980: cat >conftest.$ac_ext <<_ACEOF
5981: /* confdefs.h. */
5982: _ACEOF
5983: cat confdefs.h >>conftest.$ac_ext
5984: cat >>conftest.$ac_ext <<_ACEOF
5985: /* end confdefs.h. */
5986: $ac_includes_default
1.1.1.5 ! root 5987: typedef int ac__type_new_;
1.1 root 5988: int
5989: main ()
5990: {
1.1.1.5 ! root 5991: if ((ac__type_new_ *) 0)
1.1 root 5992: return 0;
1.1.1.5 ! root 5993: if (sizeof (ac__type_new_))
1.1 root 5994: return 0;
5995: ;
5996: return 0;
5997: }
5998: _ACEOF
5999: rm -f conftest.$ac_objext
1.1.1.5 ! root 6000: if { (ac_try="$ac_compile"
! 6001: case "(($ac_try" in
! 6002: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6003: *) ac_try_echo=$ac_try;;
! 6004: esac
! 6005: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6006: (eval "$ac_compile") 2>conftest.er1
1.1 root 6007: ac_status=$?
1.1.1.5 ! root 6008: grep -v '^ *+' conftest.er1 >conftest.err
! 6009: rm -f conftest.er1
! 6010: cat conftest.err >&5
1.1 root 6011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6012: (exit $ac_status); } && {
! 6013: test -z "$ac_c_werror_flag" ||
! 6014: test ! -s conftest.err
! 6015: } && test -s conftest.$ac_objext; then
1.1 root 6016: ac_cv_type_int=yes
6017: else
6018: echo "$as_me: failed program was:" >&5
6019: sed 's/^/| /' conftest.$ac_ext >&5
6020:
1.1.1.5 ! root 6021: ac_cv_type_int=no
1.1 root 6022: fi
1.1.1.5 ! root 6023:
! 6024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6025: fi
1.1.1.5 ! root 6026: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 6027: echo "${ECHO_T}$ac_cv_type_int" >&6; }
1.1 root 6028:
1.1.1.5 ! root 6029: # The cast to long int works around a bug in the HP C Compiler
! 6030: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 6031: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 6032: # This bug is HP SR number 8606223364.
! 6033: { echo "$as_me:$LINENO: checking size of int" >&5
! 6034: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
1.1 root 6035: if test "${ac_cv_sizeof_int+set}" = set; then
6036: echo $ECHO_N "(cached) $ECHO_C" >&6
6037: else
6038: if test "$cross_compiling" = yes; then
6039: # Depending upon the size, compute the lo and hi bounds.
6040: cat >conftest.$ac_ext <<_ACEOF
6041: /* confdefs.h. */
6042: _ACEOF
6043: cat confdefs.h >>conftest.$ac_ext
6044: cat >>conftest.$ac_ext <<_ACEOF
6045: /* end confdefs.h. */
6046: $ac_includes_default
1.1.1.5 ! root 6047: typedef int ac__type_sizeof_;
1.1 root 6048: int
6049: main ()
6050: {
1.1.1.5 ! root 6051: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1 root 6052: test_array [0] = 0
6053:
6054: ;
6055: return 0;
6056: }
6057: _ACEOF
6058: rm -f conftest.$ac_objext
1.1.1.5 ! root 6059: if { (ac_try="$ac_compile"
! 6060: case "(($ac_try" in
! 6061: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6062: *) ac_try_echo=$ac_try;;
! 6063: esac
! 6064: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6065: (eval "$ac_compile") 2>conftest.er1
1.1 root 6066: ac_status=$?
1.1.1.5 ! root 6067: grep -v '^ *+' conftest.er1 >conftest.err
! 6068: rm -f conftest.er1
! 6069: cat conftest.err >&5
1.1 root 6070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6071: (exit $ac_status); } && {
! 6072: test -z "$ac_c_werror_flag" ||
! 6073: test ! -s conftest.err
! 6074: } && test -s conftest.$ac_objext; then
1.1 root 6075: ac_lo=0 ac_mid=0
6076: while :; do
6077: cat >conftest.$ac_ext <<_ACEOF
6078: /* confdefs.h. */
6079: _ACEOF
6080: cat confdefs.h >>conftest.$ac_ext
6081: cat >>conftest.$ac_ext <<_ACEOF
6082: /* end confdefs.h. */
6083: $ac_includes_default
1.1.1.5 ! root 6084: typedef int ac__type_sizeof_;
1.1 root 6085: int
6086: main ()
6087: {
1.1.1.5 ! root 6088: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1 root 6089: test_array [0] = 0
6090:
6091: ;
6092: return 0;
6093: }
6094: _ACEOF
6095: rm -f conftest.$ac_objext
1.1.1.5 ! root 6096: if { (ac_try="$ac_compile"
! 6097: case "(($ac_try" in
! 6098: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6099: *) ac_try_echo=$ac_try;;
! 6100: esac
! 6101: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6102: (eval "$ac_compile") 2>conftest.er1
1.1 root 6103: ac_status=$?
1.1.1.5 ! root 6104: grep -v '^ *+' conftest.er1 >conftest.err
! 6105: rm -f conftest.er1
! 6106: cat conftest.err >&5
1.1 root 6107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6108: (exit $ac_status); } && {
! 6109: test -z "$ac_c_werror_flag" ||
! 6110: test ! -s conftest.err
! 6111: } && test -s conftest.$ac_objext; then
1.1 root 6112: ac_hi=$ac_mid; break
6113: else
6114: echo "$as_me: failed program was:" >&5
6115: sed 's/^/| /' conftest.$ac_ext >&5
6116:
1.1.1.5 ! root 6117: ac_lo=`expr $ac_mid + 1`
! 6118: if test $ac_lo -le $ac_mid; then
! 6119: ac_lo= ac_hi=
! 6120: break
! 6121: fi
! 6122: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 root 6123: fi
1.1.1.5 ! root 6124:
! 6125: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6126: done
6127: else
6128: echo "$as_me: failed program was:" >&5
6129: sed 's/^/| /' conftest.$ac_ext >&5
6130:
1.1.1.5 ! root 6131: cat >conftest.$ac_ext <<_ACEOF
1.1 root 6132: /* confdefs.h. */
6133: _ACEOF
6134: cat confdefs.h >>conftest.$ac_ext
6135: cat >>conftest.$ac_ext <<_ACEOF
6136: /* end confdefs.h. */
6137: $ac_includes_default
1.1.1.5 ! root 6138: typedef int ac__type_sizeof_;
1.1 root 6139: int
6140: main ()
6141: {
1.1.1.5 ! root 6142: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1 root 6143: test_array [0] = 0
6144:
6145: ;
6146: return 0;
6147: }
6148: _ACEOF
6149: rm -f conftest.$ac_objext
1.1.1.5 ! root 6150: if { (ac_try="$ac_compile"
! 6151: case "(($ac_try" in
! 6152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6153: *) ac_try_echo=$ac_try;;
! 6154: esac
! 6155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6156: (eval "$ac_compile") 2>conftest.er1
1.1 root 6157: ac_status=$?
1.1.1.5 ! root 6158: grep -v '^ *+' conftest.er1 >conftest.err
! 6159: rm -f conftest.er1
! 6160: cat conftest.err >&5
1.1 root 6161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6162: (exit $ac_status); } && {
! 6163: test -z "$ac_c_werror_flag" ||
! 6164: test ! -s conftest.err
! 6165: } && test -s conftest.$ac_objext; then
1.1 root 6166: ac_hi=-1 ac_mid=-1
6167: while :; do
6168: cat >conftest.$ac_ext <<_ACEOF
6169: /* confdefs.h. */
6170: _ACEOF
6171: cat confdefs.h >>conftest.$ac_ext
6172: cat >>conftest.$ac_ext <<_ACEOF
6173: /* end confdefs.h. */
6174: $ac_includes_default
1.1.1.5 ! root 6175: typedef int ac__type_sizeof_;
1.1 root 6176: int
6177: main ()
6178: {
1.1.1.5 ! root 6179: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1 root 6180: test_array [0] = 0
6181:
6182: ;
6183: return 0;
6184: }
6185: _ACEOF
6186: rm -f conftest.$ac_objext
1.1.1.5 ! root 6187: if { (ac_try="$ac_compile"
! 6188: case "(($ac_try" in
! 6189: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6190: *) ac_try_echo=$ac_try;;
! 6191: esac
! 6192: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6193: (eval "$ac_compile") 2>conftest.er1
1.1 root 6194: ac_status=$?
1.1.1.5 ! root 6195: grep -v '^ *+' conftest.er1 >conftest.err
! 6196: rm -f conftest.er1
! 6197: cat conftest.err >&5
1.1 root 6198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6199: (exit $ac_status); } && {
! 6200: test -z "$ac_c_werror_flag" ||
! 6201: test ! -s conftest.err
! 6202: } && test -s conftest.$ac_objext; then
1.1 root 6203: ac_lo=$ac_mid; break
6204: else
6205: echo "$as_me: failed program was:" >&5
6206: sed 's/^/| /' conftest.$ac_ext >&5
6207:
1.1.1.5 ! root 6208: ac_hi=`expr '(' $ac_mid ')' - 1`
! 6209: if test $ac_mid -le $ac_hi; then
! 6210: ac_lo= ac_hi=
! 6211: break
! 6212: fi
! 6213: ac_mid=`expr 2 '*' $ac_mid`
1.1 root 6214: fi
1.1.1.5 ! root 6215:
! 6216: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6217: done
6218: else
6219: echo "$as_me: failed program was:" >&5
6220: sed 's/^/| /' conftest.$ac_ext >&5
6221:
1.1.1.5 ! root 6222: ac_lo= ac_hi=
1.1 root 6223: fi
1.1.1.5 ! root 6224:
! 6225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6226: fi
1.1.1.5 ! root 6227:
! 6228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6229: # Binary search between lo and hi bounds.
6230: while test "x$ac_lo" != "x$ac_hi"; do
6231: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6232: cat >conftest.$ac_ext <<_ACEOF
6233: /* confdefs.h. */
6234: _ACEOF
6235: cat confdefs.h >>conftest.$ac_ext
6236: cat >>conftest.$ac_ext <<_ACEOF
6237: /* end confdefs.h. */
6238: $ac_includes_default
1.1.1.5 ! root 6239: typedef int ac__type_sizeof_;
1.1 root 6240: int
6241: main ()
6242: {
1.1.1.5 ! root 6243: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1 root 6244: test_array [0] = 0
6245:
6246: ;
6247: return 0;
6248: }
6249: _ACEOF
6250: rm -f conftest.$ac_objext
1.1.1.5 ! root 6251: if { (ac_try="$ac_compile"
! 6252: case "(($ac_try" in
! 6253: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6254: *) ac_try_echo=$ac_try;;
! 6255: esac
! 6256: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6257: (eval "$ac_compile") 2>conftest.er1
1.1 root 6258: ac_status=$?
1.1.1.5 ! root 6259: grep -v '^ *+' conftest.er1 >conftest.err
! 6260: rm -f conftest.er1
! 6261: cat conftest.err >&5
1.1 root 6262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6263: (exit $ac_status); } && {
! 6264: test -z "$ac_c_werror_flag" ||
! 6265: test ! -s conftest.err
! 6266: } && test -s conftest.$ac_objext; then
1.1 root 6267: ac_hi=$ac_mid
6268: else
6269: echo "$as_me: failed program was:" >&5
6270: sed 's/^/| /' conftest.$ac_ext >&5
6271:
1.1.1.5 ! root 6272: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 root 6273: fi
1.1.1.5 ! root 6274:
! 6275: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6276: done
6277: case $ac_lo in
6278: ?*) ac_cv_sizeof_int=$ac_lo;;
1.1.1.5 ! root 6279: '') if test "$ac_cv_type_int" = yes; then
! 6280: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1 root 6281: See \`config.log' for more details." >&5
1.1.1.5 ! root 6282: echo "$as_me: error: cannot compute sizeof (int)
1.1 root 6283: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 6284: { (exit 77); exit 77; }; }
! 6285: else
! 6286: ac_cv_sizeof_int=0
! 6287: fi ;;
1.1 root 6288: esac
6289: else
6290: cat >conftest.$ac_ext <<_ACEOF
6291: /* confdefs.h. */
6292: _ACEOF
6293: cat confdefs.h >>conftest.$ac_ext
6294: cat >>conftest.$ac_ext <<_ACEOF
6295: /* end confdefs.h. */
6296: $ac_includes_default
1.1.1.5 ! root 6297: typedef int ac__type_sizeof_;
! 6298: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 6299: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 6300: #include <stdio.h>
6301: #include <stdlib.h>
6302: int
6303: main ()
6304: {
6305:
6306: FILE *f = fopen ("conftest.val", "w");
6307: if (! f)
1.1.1.5 ! root 6308: return 1;
! 6309: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1 root 6310: {
1.1.1.5 ! root 6311: long int i = longval ();
! 6312: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 6313: return 1;
1.1 root 6314: fprintf (f, "%ld\n", i);
6315: }
6316: else
6317: {
1.1.1.5 ! root 6318: unsigned long int i = ulongval ();
! 6319: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 6320: return 1;
1.1 root 6321: fprintf (f, "%lu\n", i);
6322: }
1.1.1.5 ! root 6323: return ferror (f) || fclose (f) != 0;
1.1 root 6324:
6325: ;
6326: return 0;
6327: }
6328: _ACEOF
6329: rm -f conftest$ac_exeext
1.1.1.5 ! root 6330: if { (ac_try="$ac_link"
! 6331: case "(($ac_try" in
! 6332: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6333: *) ac_try_echo=$ac_try;;
! 6334: esac
! 6335: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6336: (eval "$ac_link") 2>&5
1.1 root 6337: ac_status=$?
6338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 6340: { (case "(($ac_try" in
! 6341: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6342: *) ac_try_echo=$ac_try;;
! 6343: esac
! 6344: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6345: (eval "$ac_try") 2>&5
1.1 root 6346: ac_status=$?
6347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348: (exit $ac_status); }; }; then
6349: ac_cv_sizeof_int=`cat conftest.val`
6350: else
6351: echo "$as_me: program exited with status $ac_status" >&5
6352: echo "$as_me: failed program was:" >&5
6353: sed 's/^/| /' conftest.$ac_ext >&5
6354:
6355: ( exit $ac_status )
1.1.1.5 ! root 6356: if test "$ac_cv_type_int" = yes; then
! 6357: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1 root 6358: See \`config.log' for more details." >&5
1.1.1.5 ! root 6359: echo "$as_me: error: cannot compute sizeof (int)
1.1 root 6360: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 6361: { (exit 77); exit 77; }; }
! 6362: else
! 6363: ac_cv_sizeof_int=0
! 6364: fi
1.1 root 6365: fi
1.1.1.5 ! root 6366: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 6367: fi
6368: rm -f conftest.val
6369: fi
1.1.1.5 ! root 6370: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 6371: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
! 6372:
! 6373:
! 6374:
1.1 root 6375: cat >>confdefs.h <<_ACEOF
6376: #define SIZEOF_INT $ac_cv_sizeof_int
6377: _ACEOF
6378:
6379:
1.1.1.5 ! root 6380: { echo "$as_me:$LINENO: checking for short" >&5
! 6381: echo $ECHO_N "checking for short... $ECHO_C" >&6; }
1.1 root 6382: if test "${ac_cv_type_short+set}" = set; then
6383: echo $ECHO_N "(cached) $ECHO_C" >&6
6384: else
6385: cat >conftest.$ac_ext <<_ACEOF
6386: /* confdefs.h. */
6387: _ACEOF
6388: cat confdefs.h >>conftest.$ac_ext
6389: cat >>conftest.$ac_ext <<_ACEOF
6390: /* end confdefs.h. */
6391: $ac_includes_default
1.1.1.5 ! root 6392: typedef short ac__type_new_;
1.1 root 6393: int
6394: main ()
6395: {
1.1.1.5 ! root 6396: if ((ac__type_new_ *) 0)
1.1 root 6397: return 0;
1.1.1.5 ! root 6398: if (sizeof (ac__type_new_))
1.1 root 6399: return 0;
6400: ;
6401: return 0;
6402: }
6403: _ACEOF
6404: rm -f conftest.$ac_objext
1.1.1.5 ! root 6405: if { (ac_try="$ac_compile"
! 6406: case "(($ac_try" in
! 6407: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6408: *) ac_try_echo=$ac_try;;
! 6409: esac
! 6410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6411: (eval "$ac_compile") 2>conftest.er1
1.1 root 6412: ac_status=$?
1.1.1.5 ! root 6413: grep -v '^ *+' conftest.er1 >conftest.err
! 6414: rm -f conftest.er1
! 6415: cat conftest.err >&5
1.1 root 6416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6417: (exit $ac_status); } && {
! 6418: test -z "$ac_c_werror_flag" ||
! 6419: test ! -s conftest.err
! 6420: } && test -s conftest.$ac_objext; then
1.1 root 6421: ac_cv_type_short=yes
6422: else
6423: echo "$as_me: failed program was:" >&5
6424: sed 's/^/| /' conftest.$ac_ext >&5
6425:
1.1.1.5 ! root 6426: ac_cv_type_short=no
1.1 root 6427: fi
1.1.1.5 ! root 6428:
! 6429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6430: fi
1.1.1.5 ! root 6431: { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
! 6432: echo "${ECHO_T}$ac_cv_type_short" >&6; }
1.1 root 6433:
1.1.1.5 ! root 6434: # The cast to long int works around a bug in the HP C Compiler
! 6435: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 6436: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 6437: # This bug is HP SR number 8606223364.
! 6438: { echo "$as_me:$LINENO: checking size of short" >&5
! 6439: echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
1.1 root 6440: if test "${ac_cv_sizeof_short+set}" = set; then
6441: echo $ECHO_N "(cached) $ECHO_C" >&6
6442: else
6443: if test "$cross_compiling" = yes; then
6444: # Depending upon the size, compute the lo and hi bounds.
6445: cat >conftest.$ac_ext <<_ACEOF
6446: /* confdefs.h. */
6447: _ACEOF
6448: cat confdefs.h >>conftest.$ac_ext
6449: cat >>conftest.$ac_ext <<_ACEOF
6450: /* end confdefs.h. */
6451: $ac_includes_default
1.1.1.5 ! root 6452: typedef short ac__type_sizeof_;
1.1 root 6453: int
6454: main ()
6455: {
1.1.1.5 ! root 6456: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1 root 6457: test_array [0] = 0
6458:
6459: ;
6460: return 0;
6461: }
6462: _ACEOF
6463: rm -f conftest.$ac_objext
1.1.1.5 ! root 6464: if { (ac_try="$ac_compile"
! 6465: case "(($ac_try" in
! 6466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6467: *) ac_try_echo=$ac_try;;
! 6468: esac
! 6469: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6470: (eval "$ac_compile") 2>conftest.er1
1.1 root 6471: ac_status=$?
1.1.1.5 ! root 6472: grep -v '^ *+' conftest.er1 >conftest.err
! 6473: rm -f conftest.er1
! 6474: cat conftest.err >&5
1.1 root 6475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6476: (exit $ac_status); } && {
! 6477: test -z "$ac_c_werror_flag" ||
! 6478: test ! -s conftest.err
! 6479: } && test -s conftest.$ac_objext; then
1.1 root 6480: ac_lo=0 ac_mid=0
6481: while :; do
6482: cat >conftest.$ac_ext <<_ACEOF
6483: /* confdefs.h. */
6484: _ACEOF
6485: cat confdefs.h >>conftest.$ac_ext
6486: cat >>conftest.$ac_ext <<_ACEOF
6487: /* end confdefs.h. */
6488: $ac_includes_default
1.1.1.5 ! root 6489: typedef short ac__type_sizeof_;
1.1 root 6490: int
6491: main ()
6492: {
1.1.1.5 ! root 6493: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1 root 6494: test_array [0] = 0
6495:
6496: ;
6497: return 0;
6498: }
6499: _ACEOF
6500: rm -f conftest.$ac_objext
1.1.1.5 ! root 6501: if { (ac_try="$ac_compile"
! 6502: case "(($ac_try" in
! 6503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6504: *) ac_try_echo=$ac_try;;
! 6505: esac
! 6506: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6507: (eval "$ac_compile") 2>conftest.er1
1.1 root 6508: ac_status=$?
1.1.1.5 ! root 6509: grep -v '^ *+' conftest.er1 >conftest.err
! 6510: rm -f conftest.er1
! 6511: cat conftest.err >&5
1.1 root 6512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6513: (exit $ac_status); } && {
! 6514: test -z "$ac_c_werror_flag" ||
! 6515: test ! -s conftest.err
! 6516: } && test -s conftest.$ac_objext; then
1.1 root 6517: ac_hi=$ac_mid; break
6518: else
6519: echo "$as_me: failed program was:" >&5
6520: sed 's/^/| /' conftest.$ac_ext >&5
6521:
1.1.1.5 ! root 6522: ac_lo=`expr $ac_mid + 1`
! 6523: if test $ac_lo -le $ac_mid; then
! 6524: ac_lo= ac_hi=
! 6525: break
! 6526: fi
! 6527: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 root 6528: fi
1.1.1.5 ! root 6529:
! 6530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6531: done
6532: else
6533: echo "$as_me: failed program was:" >&5
6534: sed 's/^/| /' conftest.$ac_ext >&5
6535:
1.1.1.5 ! root 6536: cat >conftest.$ac_ext <<_ACEOF
1.1 root 6537: /* confdefs.h. */
6538: _ACEOF
6539: cat confdefs.h >>conftest.$ac_ext
6540: cat >>conftest.$ac_ext <<_ACEOF
6541: /* end confdefs.h. */
6542: $ac_includes_default
1.1.1.5 ! root 6543: typedef short ac__type_sizeof_;
1.1 root 6544: int
6545: main ()
6546: {
1.1.1.5 ! root 6547: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1 root 6548: test_array [0] = 0
6549:
6550: ;
6551: return 0;
6552: }
6553: _ACEOF
6554: rm -f conftest.$ac_objext
1.1.1.5 ! root 6555: if { (ac_try="$ac_compile"
! 6556: case "(($ac_try" in
! 6557: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6558: *) ac_try_echo=$ac_try;;
! 6559: esac
! 6560: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6561: (eval "$ac_compile") 2>conftest.er1
1.1 root 6562: ac_status=$?
1.1.1.5 ! root 6563: grep -v '^ *+' conftest.er1 >conftest.err
! 6564: rm -f conftest.er1
! 6565: cat conftest.err >&5
1.1 root 6566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6567: (exit $ac_status); } && {
! 6568: test -z "$ac_c_werror_flag" ||
! 6569: test ! -s conftest.err
! 6570: } && test -s conftest.$ac_objext; then
1.1 root 6571: ac_hi=-1 ac_mid=-1
6572: while :; do
6573: cat >conftest.$ac_ext <<_ACEOF
6574: /* confdefs.h. */
6575: _ACEOF
6576: cat confdefs.h >>conftest.$ac_ext
6577: cat >>conftest.$ac_ext <<_ACEOF
6578: /* end confdefs.h. */
6579: $ac_includes_default
1.1.1.5 ! root 6580: typedef short ac__type_sizeof_;
1.1 root 6581: int
6582: main ()
6583: {
1.1.1.5 ! root 6584: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1 root 6585: test_array [0] = 0
6586:
6587: ;
6588: return 0;
6589: }
6590: _ACEOF
6591: rm -f conftest.$ac_objext
1.1.1.5 ! root 6592: if { (ac_try="$ac_compile"
! 6593: case "(($ac_try" in
! 6594: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6595: *) ac_try_echo=$ac_try;;
! 6596: esac
! 6597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6598: (eval "$ac_compile") 2>conftest.er1
1.1 root 6599: ac_status=$?
1.1.1.5 ! root 6600: grep -v '^ *+' conftest.er1 >conftest.err
! 6601: rm -f conftest.er1
! 6602: cat conftest.err >&5
1.1 root 6603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6604: (exit $ac_status); } && {
! 6605: test -z "$ac_c_werror_flag" ||
! 6606: test ! -s conftest.err
! 6607: } && test -s conftest.$ac_objext; then
1.1 root 6608: ac_lo=$ac_mid; break
6609: else
6610: echo "$as_me: failed program was:" >&5
6611: sed 's/^/| /' conftest.$ac_ext >&5
6612:
1.1.1.5 ! root 6613: ac_hi=`expr '(' $ac_mid ')' - 1`
! 6614: if test $ac_mid -le $ac_hi; then
! 6615: ac_lo= ac_hi=
! 6616: break
! 6617: fi
! 6618: ac_mid=`expr 2 '*' $ac_mid`
1.1 root 6619: fi
1.1.1.5 ! root 6620:
! 6621: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6622: done
6623: else
6624: echo "$as_me: failed program was:" >&5
6625: sed 's/^/| /' conftest.$ac_ext >&5
6626:
1.1.1.5 ! root 6627: ac_lo= ac_hi=
1.1 root 6628: fi
1.1.1.5 ! root 6629:
! 6630: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6631: fi
1.1.1.5 ! root 6632:
! 6633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6634: # Binary search between lo and hi bounds.
6635: while test "x$ac_lo" != "x$ac_hi"; do
6636: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6637: cat >conftest.$ac_ext <<_ACEOF
6638: /* confdefs.h. */
6639: _ACEOF
6640: cat confdefs.h >>conftest.$ac_ext
6641: cat >>conftest.$ac_ext <<_ACEOF
6642: /* end confdefs.h. */
6643: $ac_includes_default
1.1.1.5 ! root 6644: typedef short ac__type_sizeof_;
1.1 root 6645: int
6646: main ()
6647: {
1.1.1.5 ! root 6648: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1 root 6649: test_array [0] = 0
6650:
6651: ;
6652: return 0;
6653: }
6654: _ACEOF
6655: rm -f conftest.$ac_objext
1.1.1.5 ! root 6656: if { (ac_try="$ac_compile"
! 6657: case "(($ac_try" in
! 6658: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6659: *) ac_try_echo=$ac_try;;
! 6660: esac
! 6661: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6662: (eval "$ac_compile") 2>conftest.er1
1.1 root 6663: ac_status=$?
1.1.1.5 ! root 6664: grep -v '^ *+' conftest.er1 >conftest.err
! 6665: rm -f conftest.er1
! 6666: cat conftest.err >&5
1.1 root 6667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6668: (exit $ac_status); } && {
! 6669: test -z "$ac_c_werror_flag" ||
! 6670: test ! -s conftest.err
! 6671: } && test -s conftest.$ac_objext; then
1.1 root 6672: ac_hi=$ac_mid
6673: else
6674: echo "$as_me: failed program was:" >&5
6675: sed 's/^/| /' conftest.$ac_ext >&5
6676:
1.1.1.5 ! root 6677: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 root 6678: fi
1.1.1.5 ! root 6679:
! 6680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6681: done
6682: case $ac_lo in
6683: ?*) ac_cv_sizeof_short=$ac_lo;;
1.1.1.5 ! root 6684: '') if test "$ac_cv_type_short" = yes; then
! 6685: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1 root 6686: See \`config.log' for more details." >&5
1.1.1.5 ! root 6687: echo "$as_me: error: cannot compute sizeof (short)
1.1 root 6688: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 6689: { (exit 77); exit 77; }; }
! 6690: else
! 6691: ac_cv_sizeof_short=0
! 6692: fi ;;
1.1 root 6693: esac
6694: else
6695: cat >conftest.$ac_ext <<_ACEOF
6696: /* confdefs.h. */
6697: _ACEOF
6698: cat confdefs.h >>conftest.$ac_ext
6699: cat >>conftest.$ac_ext <<_ACEOF
6700: /* end confdefs.h. */
6701: $ac_includes_default
1.1.1.5 ! root 6702: typedef short ac__type_sizeof_;
! 6703: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 6704: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 6705: #include <stdio.h>
6706: #include <stdlib.h>
6707: int
6708: main ()
6709: {
6710:
6711: FILE *f = fopen ("conftest.val", "w");
6712: if (! f)
1.1.1.5 ! root 6713: return 1;
! 6714: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1 root 6715: {
1.1.1.5 ! root 6716: long int i = longval ();
! 6717: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 6718: return 1;
1.1 root 6719: fprintf (f, "%ld\n", i);
6720: }
6721: else
6722: {
1.1.1.5 ! root 6723: unsigned long int i = ulongval ();
! 6724: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 6725: return 1;
1.1 root 6726: fprintf (f, "%lu\n", i);
6727: }
1.1.1.5 ! root 6728: return ferror (f) || fclose (f) != 0;
1.1 root 6729:
6730: ;
6731: return 0;
6732: }
6733: _ACEOF
6734: rm -f conftest$ac_exeext
1.1.1.5 ! root 6735: if { (ac_try="$ac_link"
! 6736: case "(($ac_try" in
! 6737: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6738: *) ac_try_echo=$ac_try;;
! 6739: esac
! 6740: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6741: (eval "$ac_link") 2>&5
1.1 root 6742: ac_status=$?
6743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 6745: { (case "(($ac_try" in
! 6746: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6747: *) ac_try_echo=$ac_try;;
! 6748: esac
! 6749: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6750: (eval "$ac_try") 2>&5
1.1 root 6751: ac_status=$?
6752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753: (exit $ac_status); }; }; then
6754: ac_cv_sizeof_short=`cat conftest.val`
6755: else
6756: echo "$as_me: program exited with status $ac_status" >&5
6757: echo "$as_me: failed program was:" >&5
6758: sed 's/^/| /' conftest.$ac_ext >&5
6759:
6760: ( exit $ac_status )
1.1.1.5 ! root 6761: if test "$ac_cv_type_short" = yes; then
! 6762: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1 root 6763: See \`config.log' for more details." >&5
1.1.1.5 ! root 6764: echo "$as_me: error: cannot compute sizeof (short)
1.1 root 6765: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 6766: { (exit 77); exit 77; }; }
! 6767: else
! 6768: ac_cv_sizeof_short=0
! 6769: fi
1.1 root 6770: fi
1.1.1.5 ! root 6771: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 6772: fi
6773: rm -f conftest.val
6774: fi
1.1.1.5 ! root 6775: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
! 6776: echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
! 6777:
! 6778:
! 6779:
1.1 root 6780: cat >>confdefs.h <<_ACEOF
6781: #define SIZEOF_SHORT $ac_cv_sizeof_short
6782: _ACEOF
6783:
6784:
1.1.1.5 ! root 6785: { echo "$as_me:$LINENO: checking for float" >&5
! 6786: echo $ECHO_N "checking for float... $ECHO_C" >&6; }
1.1.1.3 root 6787: if test "${ac_cv_type_float+set}" = set; then
1.1 root 6788: echo $ECHO_N "(cached) $ECHO_C" >&6
6789: else
6790: cat >conftest.$ac_ext <<_ACEOF
6791: /* confdefs.h. */
6792: _ACEOF
6793: cat confdefs.h >>conftest.$ac_ext
6794: cat >>conftest.$ac_ext <<_ACEOF
6795: /* end confdefs.h. */
1.1.1.3 root 6796: $ac_includes_default
1.1.1.5 ! root 6797: typedef float ac__type_new_;
1.1.1.3 root 6798: int
6799: main ()
1.1 root 6800: {
1.1.1.5 ! root 6801: if ((ac__type_new_ *) 0)
1.1.1.3 root 6802: return 0;
1.1.1.5 ! root 6803: if (sizeof (ac__type_new_))
1.1.1.3 root 6804: return 0;
6805: ;
6806: return 0;
1.1 root 6807: }
6808: _ACEOF
1.1.1.3 root 6809: rm -f conftest.$ac_objext
1.1.1.5 ! root 6810: if { (ac_try="$ac_compile"
! 6811: case "(($ac_try" in
! 6812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6813: *) ac_try_echo=$ac_try;;
! 6814: esac
! 6815: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6816: (eval "$ac_compile") 2>conftest.er1
1.1 root 6817: ac_status=$?
1.1.1.5 ! root 6818: grep -v '^ *+' conftest.er1 >conftest.err
! 6819: rm -f conftest.er1
! 6820: cat conftest.err >&5
1.1 root 6821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6822: (exit $ac_status); } && {
! 6823: test -z "$ac_c_werror_flag" ||
! 6824: test ! -s conftest.err
! 6825: } && test -s conftest.$ac_objext; then
1.1.1.3 root 6826: ac_cv_type_float=yes
1.1 root 6827: else
1.1.1.3 root 6828: echo "$as_me: failed program was:" >&5
1.1 root 6829: sed 's/^/| /' conftest.$ac_ext >&5
6830:
1.1.1.5 ! root 6831: ac_cv_type_float=no
1.1 root 6832: fi
1.1.1.5 ! root 6833:
! 6834: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6835: fi
1.1.1.5 ! root 6836: { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
! 6837: echo "${ECHO_T}$ac_cv_type_float" >&6; }
1.1 root 6838:
1.1.1.5 ! root 6839: # The cast to long int works around a bug in the HP C Compiler
! 6840: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 6841: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 6842: # This bug is HP SR number 8606223364.
! 6843: { echo "$as_me:$LINENO: checking size of float" >&5
! 6844: echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
1.1.1.3 root 6845: if test "${ac_cv_sizeof_float+set}" = set; then
1.1 root 6846: echo $ECHO_N "(cached) $ECHO_C" >&6
6847: else
6848: if test "$cross_compiling" = yes; then
1.1.1.3 root 6849: # Depending upon the size, compute the lo and hi bounds.
6850: cat >conftest.$ac_ext <<_ACEOF
1.1 root 6851: /* confdefs.h. */
6852: _ACEOF
6853: cat confdefs.h >>conftest.$ac_ext
6854: cat >>conftest.$ac_ext <<_ACEOF
6855: /* end confdefs.h. */
1.1.1.3 root 6856: $ac_includes_default
1.1.1.5 ! root 6857: typedef float ac__type_sizeof_;
1.1.1.3 root 6858: int
6859: main ()
1.1 root 6860: {
1.1.1.5 ! root 6861: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.3 root 6862: test_array [0] = 0
6863:
6864: ;
6865: return 0;
6866: }
6867: _ACEOF
6868: rm -f conftest.$ac_objext
1.1.1.5 ! root 6869: if { (ac_try="$ac_compile"
! 6870: case "(($ac_try" in
! 6871: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6872: *) ac_try_echo=$ac_try;;
! 6873: esac
! 6874: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6875: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 6876: ac_status=$?
1.1.1.5 ! root 6877: grep -v '^ *+' conftest.er1 >conftest.err
! 6878: rm -f conftest.er1
! 6879: cat conftest.err >&5
1.1.1.3 root 6880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6881: (exit $ac_status); } && {
! 6882: test -z "$ac_c_werror_flag" ||
! 6883: test ! -s conftest.err
! 6884: } && test -s conftest.$ac_objext; then
1.1.1.3 root 6885: ac_lo=0 ac_mid=0
6886: while :; do
6887: cat >conftest.$ac_ext <<_ACEOF
6888: /* confdefs.h. */
6889: _ACEOF
6890: cat confdefs.h >>conftest.$ac_ext
6891: cat >>conftest.$ac_ext <<_ACEOF
6892: /* end confdefs.h. */
6893: $ac_includes_default
1.1.1.5 ! root 6894: typedef float ac__type_sizeof_;
1.1.1.3 root 6895: int
6896: main ()
6897: {
1.1.1.5 ! root 6898: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 6899: test_array [0] = 0
6900:
6901: ;
6902: return 0;
6903: }
6904: _ACEOF
6905: rm -f conftest.$ac_objext
1.1.1.5 ! root 6906: if { (ac_try="$ac_compile"
! 6907: case "(($ac_try" in
! 6908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6909: *) ac_try_echo=$ac_try;;
! 6910: esac
! 6911: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6912: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 6913: ac_status=$?
1.1.1.5 ! root 6914: grep -v '^ *+' conftest.er1 >conftest.err
! 6915: rm -f conftest.er1
! 6916: cat conftest.err >&5
1.1.1.3 root 6917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6918: (exit $ac_status); } && {
! 6919: test -z "$ac_c_werror_flag" ||
! 6920: test ! -s conftest.err
! 6921: } && test -s conftest.$ac_objext; then
1.1.1.3 root 6922: ac_hi=$ac_mid; break
6923: else
6924: echo "$as_me: failed program was:" >&5
6925: sed 's/^/| /' conftest.$ac_ext >&5
6926:
1.1.1.5 ! root 6927: ac_lo=`expr $ac_mid + 1`
! 6928: if test $ac_lo -le $ac_mid; then
! 6929: ac_lo= ac_hi=
! 6930: break
! 6931: fi
! 6932: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.3 root 6933: fi
1.1.1.5 ! root 6934:
! 6935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 6936: done
6937: else
6938: echo "$as_me: failed program was:" >&5
6939: sed 's/^/| /' conftest.$ac_ext >&5
6940:
1.1.1.5 ! root 6941: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6942: /* confdefs.h. */
6943: _ACEOF
6944: cat confdefs.h >>conftest.$ac_ext
6945: cat >>conftest.$ac_ext <<_ACEOF
6946: /* end confdefs.h. */
6947: $ac_includes_default
1.1.1.5 ! root 6948: typedef float ac__type_sizeof_;
1.1.1.3 root 6949: int
6950: main ()
6951: {
1.1.1.5 ! root 6952: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.3 root 6953: test_array [0] = 0
6954:
6955: ;
6956: return 0;
6957: }
6958: _ACEOF
6959: rm -f conftest.$ac_objext
1.1.1.5 ! root 6960: if { (ac_try="$ac_compile"
! 6961: case "(($ac_try" in
! 6962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6963: *) ac_try_echo=$ac_try;;
! 6964: esac
! 6965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6966: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 6967: ac_status=$?
1.1.1.5 ! root 6968: grep -v '^ *+' conftest.er1 >conftest.err
! 6969: rm -f conftest.er1
! 6970: cat conftest.err >&5
1.1.1.3 root 6971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 6972: (exit $ac_status); } && {
! 6973: test -z "$ac_c_werror_flag" ||
! 6974: test ! -s conftest.err
! 6975: } && test -s conftest.$ac_objext; then
1.1.1.3 root 6976: ac_hi=-1 ac_mid=-1
6977: while :; do
6978: cat >conftest.$ac_ext <<_ACEOF
6979: /* confdefs.h. */
6980: _ACEOF
6981: cat confdefs.h >>conftest.$ac_ext
6982: cat >>conftest.$ac_ext <<_ACEOF
6983: /* end confdefs.h. */
6984: $ac_includes_default
1.1.1.5 ! root 6985: typedef float ac__type_sizeof_;
1.1.1.3 root 6986: int
6987: main ()
6988: {
1.1.1.5 ! root 6989: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.3 root 6990: test_array [0] = 0
6991:
6992: ;
6993: return 0;
6994: }
6995: _ACEOF
6996: rm -f conftest.$ac_objext
1.1.1.5 ! root 6997: if { (ac_try="$ac_compile"
! 6998: case "(($ac_try" in
! 6999: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7000: *) ac_try_echo=$ac_try;;
! 7001: esac
! 7002: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7003: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7004: ac_status=$?
1.1.1.5 ! root 7005: grep -v '^ *+' conftest.er1 >conftest.err
! 7006: rm -f conftest.er1
! 7007: cat conftest.err >&5
1.1.1.3 root 7008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7009: (exit $ac_status); } && {
! 7010: test -z "$ac_c_werror_flag" ||
! 7011: test ! -s conftest.err
! 7012: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7013: ac_lo=$ac_mid; break
7014: else
7015: echo "$as_me: failed program was:" >&5
7016: sed 's/^/| /' conftest.$ac_ext >&5
7017:
1.1.1.5 ! root 7018: ac_hi=`expr '(' $ac_mid ')' - 1`
! 7019: if test $ac_mid -le $ac_hi; then
! 7020: ac_lo= ac_hi=
! 7021: break
! 7022: fi
! 7023: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.3 root 7024: fi
1.1.1.5 ! root 7025:
! 7026: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7027: done
7028: else
7029: echo "$as_me: failed program was:" >&5
7030: sed 's/^/| /' conftest.$ac_ext >&5
7031:
1.1.1.5 ! root 7032: ac_lo= ac_hi=
1.1.1.3 root 7033: fi
1.1.1.5 ! root 7034:
! 7035: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7036: fi
1.1.1.5 ! root 7037:
! 7038: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7039: # Binary search between lo and hi bounds.
7040: while test "x$ac_lo" != "x$ac_hi"; do
7041: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042: cat >conftest.$ac_ext <<_ACEOF
7043: /* confdefs.h. */
7044: _ACEOF
7045: cat confdefs.h >>conftest.$ac_ext
7046: cat >>conftest.$ac_ext <<_ACEOF
7047: /* end confdefs.h. */
7048: $ac_includes_default
1.1.1.5 ! root 7049: typedef float ac__type_sizeof_;
1.1.1.3 root 7050: int
7051: main ()
7052: {
1.1.1.5 ! root 7053: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 7054: test_array [0] = 0
7055:
7056: ;
7057: return 0;
7058: }
7059: _ACEOF
7060: rm -f conftest.$ac_objext
1.1.1.5 ! root 7061: if { (ac_try="$ac_compile"
! 7062: case "(($ac_try" in
! 7063: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7064: *) ac_try_echo=$ac_try;;
! 7065: esac
! 7066: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7067: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7068: ac_status=$?
1.1.1.5 ! root 7069: grep -v '^ *+' conftest.er1 >conftest.err
! 7070: rm -f conftest.er1
! 7071: cat conftest.err >&5
1.1.1.3 root 7072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7073: (exit $ac_status); } && {
! 7074: test -z "$ac_c_werror_flag" ||
! 7075: test ! -s conftest.err
! 7076: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7077: ac_hi=$ac_mid
7078: else
7079: echo "$as_me: failed program was:" >&5
7080: sed 's/^/| /' conftest.$ac_ext >&5
7081:
1.1.1.5 ! root 7082: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.3 root 7083: fi
1.1.1.5 ! root 7084:
! 7085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7086: done
7087: case $ac_lo in
7088: ?*) ac_cv_sizeof_float=$ac_lo;;
1.1.1.5 ! root 7089: '') if test "$ac_cv_type_float" = yes; then
! 7090: { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
1.1.1.3 root 7091: See \`config.log' for more details." >&5
1.1.1.5 ! root 7092: echo "$as_me: error: cannot compute sizeof (float)
1.1.1.3 root 7093: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7094: { (exit 77); exit 77; }; }
! 7095: else
! 7096: ac_cv_sizeof_float=0
! 7097: fi ;;
1.1.1.3 root 7098: esac
7099: else
7100: cat >conftest.$ac_ext <<_ACEOF
7101: /* confdefs.h. */
7102: _ACEOF
7103: cat confdefs.h >>conftest.$ac_ext
7104: cat >>conftest.$ac_ext <<_ACEOF
7105: /* end confdefs.h. */
7106: $ac_includes_default
1.1.1.5 ! root 7107: typedef float ac__type_sizeof_;
! 7108: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 7109: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.3 root 7110: #include <stdio.h>
7111: #include <stdlib.h>
7112: int
7113: main ()
7114: {
7115:
7116: FILE *f = fopen ("conftest.val", "w");
7117: if (! f)
1.1.1.5 ! root 7118: return 1;
! 7119: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.3 root 7120: {
1.1.1.5 ! root 7121: long int i = longval ();
! 7122: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7123: return 1;
1.1.1.3 root 7124: fprintf (f, "%ld\n", i);
7125: }
7126: else
7127: {
1.1.1.5 ! root 7128: unsigned long int i = ulongval ();
! 7129: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7130: return 1;
1.1.1.3 root 7131: fprintf (f, "%lu\n", i);
7132: }
1.1.1.5 ! root 7133: return ferror (f) || fclose (f) != 0;
1.1.1.3 root 7134:
7135: ;
7136: return 0;
7137: }
7138: _ACEOF
7139: rm -f conftest$ac_exeext
1.1.1.5 ! root 7140: if { (ac_try="$ac_link"
! 7141: case "(($ac_try" in
! 7142: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7143: *) ac_try_echo=$ac_try;;
! 7144: esac
! 7145: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7146: (eval "$ac_link") 2>&5
1.1.1.3 root 7147: ac_status=$?
7148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 7150: { (case "(($ac_try" in
! 7151: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7152: *) ac_try_echo=$ac_try;;
! 7153: esac
! 7154: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7155: (eval "$ac_try") 2>&5
1.1.1.3 root 7156: ac_status=$?
7157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158: (exit $ac_status); }; }; then
7159: ac_cv_sizeof_float=`cat conftest.val`
7160: else
7161: echo "$as_me: program exited with status $ac_status" >&5
7162: echo "$as_me: failed program was:" >&5
7163: sed 's/^/| /' conftest.$ac_ext >&5
7164:
7165: ( exit $ac_status )
1.1.1.5 ! root 7166: if test "$ac_cv_type_float" = yes; then
! 7167: { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
1.1.1.3 root 7168: See \`config.log' for more details." >&5
1.1.1.5 ! root 7169: echo "$as_me: error: cannot compute sizeof (float)
1.1.1.3 root 7170: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7171: { (exit 77); exit 77; }; }
! 7172: else
! 7173: ac_cv_sizeof_float=0
! 7174: fi
1.1.1.3 root 7175: fi
1.1.1.5 ! root 7176: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7177: fi
7178: rm -f conftest.val
7179: fi
1.1.1.5 ! root 7180: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
! 7181: echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
! 7182:
! 7183:
! 7184:
1.1.1.3 root 7185: cat >>confdefs.h <<_ACEOF
7186: #define SIZEOF_FLOAT $ac_cv_sizeof_float
7187: _ACEOF
7188:
7189:
1.1.1.5 ! root 7190: { echo "$as_me:$LINENO: checking for double" >&5
! 7191: echo $ECHO_N "checking for double... $ECHO_C" >&6; }
1.1.1.3 root 7192: if test "${ac_cv_type_double+set}" = set; then
7193: echo $ECHO_N "(cached) $ECHO_C" >&6
7194: else
7195: cat >conftest.$ac_ext <<_ACEOF
7196: /* confdefs.h. */
7197: _ACEOF
7198: cat confdefs.h >>conftest.$ac_ext
7199: cat >>conftest.$ac_ext <<_ACEOF
7200: /* end confdefs.h. */
7201: $ac_includes_default
1.1.1.5 ! root 7202: typedef double ac__type_new_;
1.1.1.3 root 7203: int
7204: main ()
7205: {
1.1.1.5 ! root 7206: if ((ac__type_new_ *) 0)
1.1.1.3 root 7207: return 0;
1.1.1.5 ! root 7208: if (sizeof (ac__type_new_))
1.1.1.3 root 7209: return 0;
7210: ;
7211: return 0;
7212: }
7213: _ACEOF
7214: rm -f conftest.$ac_objext
1.1.1.5 ! root 7215: if { (ac_try="$ac_compile"
! 7216: case "(($ac_try" in
! 7217: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7218: *) ac_try_echo=$ac_try;;
! 7219: esac
! 7220: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7221: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7222: ac_status=$?
1.1.1.5 ! root 7223: grep -v '^ *+' conftest.er1 >conftest.err
! 7224: rm -f conftest.er1
! 7225: cat conftest.err >&5
1.1.1.3 root 7226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7227: (exit $ac_status); } && {
! 7228: test -z "$ac_c_werror_flag" ||
! 7229: test ! -s conftest.err
! 7230: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7231: ac_cv_type_double=yes
7232: else
7233: echo "$as_me: failed program was:" >&5
7234: sed 's/^/| /' conftest.$ac_ext >&5
7235:
1.1.1.5 ! root 7236: ac_cv_type_double=no
1.1.1.3 root 7237: fi
1.1.1.5 ! root 7238:
! 7239: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7240: fi
1.1.1.5 ! root 7241: { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
! 7242: echo "${ECHO_T}$ac_cv_type_double" >&6; }
1.1.1.3 root 7243:
1.1.1.5 ! root 7244: # The cast to long int works around a bug in the HP C Compiler
! 7245: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 7246: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 7247: # This bug is HP SR number 8606223364.
! 7248: { echo "$as_me:$LINENO: checking size of double" >&5
! 7249: echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
1.1.1.3 root 7250: if test "${ac_cv_sizeof_double+set}" = set; then
7251: echo $ECHO_N "(cached) $ECHO_C" >&6
7252: else
7253: if test "$cross_compiling" = yes; then
7254: # Depending upon the size, compute the lo and hi bounds.
7255: cat >conftest.$ac_ext <<_ACEOF
7256: /* confdefs.h. */
7257: _ACEOF
7258: cat confdefs.h >>conftest.$ac_ext
7259: cat >>conftest.$ac_ext <<_ACEOF
7260: /* end confdefs.h. */
7261: $ac_includes_default
1.1.1.5 ! root 7262: typedef double ac__type_sizeof_;
1.1.1.3 root 7263: int
7264: main ()
7265: {
1.1.1.5 ! root 7266: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.3 root 7267: test_array [0] = 0
7268:
7269: ;
7270: return 0;
7271: }
7272: _ACEOF
7273: rm -f conftest.$ac_objext
1.1.1.5 ! root 7274: if { (ac_try="$ac_compile"
! 7275: case "(($ac_try" in
! 7276: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7277: *) ac_try_echo=$ac_try;;
! 7278: esac
! 7279: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7280: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7281: ac_status=$?
1.1.1.5 ! root 7282: grep -v '^ *+' conftest.er1 >conftest.err
! 7283: rm -f conftest.er1
! 7284: cat conftest.err >&5
1.1.1.3 root 7285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7286: (exit $ac_status); } && {
! 7287: test -z "$ac_c_werror_flag" ||
! 7288: test ! -s conftest.err
! 7289: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7290: ac_lo=0 ac_mid=0
7291: while :; do
7292: cat >conftest.$ac_ext <<_ACEOF
7293: /* confdefs.h. */
7294: _ACEOF
7295: cat confdefs.h >>conftest.$ac_ext
7296: cat >>conftest.$ac_ext <<_ACEOF
7297: /* end confdefs.h. */
7298: $ac_includes_default
1.1.1.5 ! root 7299: typedef double ac__type_sizeof_;
1.1.1.3 root 7300: int
7301: main ()
7302: {
1.1.1.5 ! root 7303: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 7304: test_array [0] = 0
7305:
7306: ;
7307: return 0;
7308: }
7309: _ACEOF
7310: rm -f conftest.$ac_objext
1.1.1.5 ! root 7311: if { (ac_try="$ac_compile"
! 7312: case "(($ac_try" in
! 7313: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7314: *) ac_try_echo=$ac_try;;
! 7315: esac
! 7316: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7317: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7318: ac_status=$?
1.1.1.5 ! root 7319: grep -v '^ *+' conftest.er1 >conftest.err
! 7320: rm -f conftest.er1
! 7321: cat conftest.err >&5
1.1.1.3 root 7322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7323: (exit $ac_status); } && {
! 7324: test -z "$ac_c_werror_flag" ||
! 7325: test ! -s conftest.err
! 7326: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7327: ac_hi=$ac_mid; break
7328: else
7329: echo "$as_me: failed program was:" >&5
7330: sed 's/^/| /' conftest.$ac_ext >&5
7331:
1.1.1.5 ! root 7332: ac_lo=`expr $ac_mid + 1`
! 7333: if test $ac_lo -le $ac_mid; then
! 7334: ac_lo= ac_hi=
! 7335: break
! 7336: fi
! 7337: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.3 root 7338: fi
1.1.1.5 ! root 7339:
! 7340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7341: done
7342: else
7343: echo "$as_me: failed program was:" >&5
7344: sed 's/^/| /' conftest.$ac_ext >&5
7345:
1.1.1.5 ! root 7346: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7347: /* confdefs.h. */
7348: _ACEOF
7349: cat confdefs.h >>conftest.$ac_ext
7350: cat >>conftest.$ac_ext <<_ACEOF
7351: /* end confdefs.h. */
7352: $ac_includes_default
1.1.1.5 ! root 7353: typedef double ac__type_sizeof_;
1.1.1.3 root 7354: int
7355: main ()
7356: {
1.1.1.5 ! root 7357: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.3 root 7358: test_array [0] = 0
7359:
7360: ;
7361: return 0;
7362: }
7363: _ACEOF
7364: rm -f conftest.$ac_objext
1.1.1.5 ! root 7365: if { (ac_try="$ac_compile"
! 7366: case "(($ac_try" in
! 7367: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7368: *) ac_try_echo=$ac_try;;
! 7369: esac
! 7370: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7371: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7372: ac_status=$?
1.1.1.5 ! root 7373: grep -v '^ *+' conftest.er1 >conftest.err
! 7374: rm -f conftest.er1
! 7375: cat conftest.err >&5
1.1.1.3 root 7376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7377: (exit $ac_status); } && {
! 7378: test -z "$ac_c_werror_flag" ||
! 7379: test ! -s conftest.err
! 7380: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7381: ac_hi=-1 ac_mid=-1
7382: while :; do
7383: cat >conftest.$ac_ext <<_ACEOF
7384: /* confdefs.h. */
7385: _ACEOF
7386: cat confdefs.h >>conftest.$ac_ext
7387: cat >>conftest.$ac_ext <<_ACEOF
7388: /* end confdefs.h. */
7389: $ac_includes_default
1.1.1.5 ! root 7390: typedef double ac__type_sizeof_;
1.1.1.3 root 7391: int
7392: main ()
7393: {
1.1.1.5 ! root 7394: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.3 root 7395: test_array [0] = 0
7396:
7397: ;
7398: return 0;
7399: }
7400: _ACEOF
7401: rm -f conftest.$ac_objext
1.1.1.5 ! root 7402: if { (ac_try="$ac_compile"
! 7403: case "(($ac_try" in
! 7404: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7405: *) ac_try_echo=$ac_try;;
! 7406: esac
! 7407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7408: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7409: ac_status=$?
1.1.1.5 ! root 7410: grep -v '^ *+' conftest.er1 >conftest.err
! 7411: rm -f conftest.er1
! 7412: cat conftest.err >&5
1.1.1.3 root 7413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7414: (exit $ac_status); } && {
! 7415: test -z "$ac_c_werror_flag" ||
! 7416: test ! -s conftest.err
! 7417: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7418: ac_lo=$ac_mid; break
7419: else
7420: echo "$as_me: failed program was:" >&5
7421: sed 's/^/| /' conftest.$ac_ext >&5
7422:
1.1.1.5 ! root 7423: ac_hi=`expr '(' $ac_mid ')' - 1`
! 7424: if test $ac_mid -le $ac_hi; then
! 7425: ac_lo= ac_hi=
! 7426: break
! 7427: fi
! 7428: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.3 root 7429: fi
1.1.1.5 ! root 7430:
! 7431: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7432: done
7433: else
7434: echo "$as_me: failed program was:" >&5
7435: sed 's/^/| /' conftest.$ac_ext >&5
7436:
1.1.1.5 ! root 7437: ac_lo= ac_hi=
1.1.1.3 root 7438: fi
1.1.1.5 ! root 7439:
! 7440: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7441: fi
1.1.1.5 ! root 7442:
! 7443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7444: # Binary search between lo and hi bounds.
7445: while test "x$ac_lo" != "x$ac_hi"; do
7446: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7447: cat >conftest.$ac_ext <<_ACEOF
7448: /* confdefs.h. */
7449: _ACEOF
7450: cat confdefs.h >>conftest.$ac_ext
7451: cat >>conftest.$ac_ext <<_ACEOF
7452: /* end confdefs.h. */
7453: $ac_includes_default
1.1.1.5 ! root 7454: typedef double ac__type_sizeof_;
1.1.1.3 root 7455: int
7456: main ()
7457: {
1.1.1.5 ! root 7458: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 7459: test_array [0] = 0
7460:
7461: ;
7462: return 0;
7463: }
7464: _ACEOF
7465: rm -f conftest.$ac_objext
1.1.1.5 ! root 7466: if { (ac_try="$ac_compile"
! 7467: case "(($ac_try" in
! 7468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7469: *) ac_try_echo=$ac_try;;
! 7470: esac
! 7471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7472: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7473: ac_status=$?
1.1.1.5 ! root 7474: grep -v '^ *+' conftest.er1 >conftest.err
! 7475: rm -f conftest.er1
! 7476: cat conftest.err >&5
1.1.1.3 root 7477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7478: (exit $ac_status); } && {
! 7479: test -z "$ac_c_werror_flag" ||
! 7480: test ! -s conftest.err
! 7481: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7482: ac_hi=$ac_mid
7483: else
7484: echo "$as_me: failed program was:" >&5
7485: sed 's/^/| /' conftest.$ac_ext >&5
7486:
1.1.1.5 ! root 7487: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.3 root 7488: fi
1.1.1.5 ! root 7489:
! 7490: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7491: done
7492: case $ac_lo in
7493: ?*) ac_cv_sizeof_double=$ac_lo;;
1.1.1.5 ! root 7494: '') if test "$ac_cv_type_double" = yes; then
! 7495: { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
1.1.1.3 root 7496: See \`config.log' for more details." >&5
1.1.1.5 ! root 7497: echo "$as_me: error: cannot compute sizeof (double)
1.1.1.3 root 7498: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7499: { (exit 77); exit 77; }; }
! 7500: else
! 7501: ac_cv_sizeof_double=0
! 7502: fi ;;
1.1.1.3 root 7503: esac
7504: else
7505: cat >conftest.$ac_ext <<_ACEOF
7506: /* confdefs.h. */
7507: _ACEOF
7508: cat confdefs.h >>conftest.$ac_ext
7509: cat >>conftest.$ac_ext <<_ACEOF
7510: /* end confdefs.h. */
7511: $ac_includes_default
1.1.1.5 ! root 7512: typedef double ac__type_sizeof_;
! 7513: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 7514: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.3 root 7515: #include <stdio.h>
7516: #include <stdlib.h>
7517: int
7518: main ()
7519: {
7520:
7521: FILE *f = fopen ("conftest.val", "w");
7522: if (! f)
1.1.1.5 ! root 7523: return 1;
! 7524: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.3 root 7525: {
1.1.1.5 ! root 7526: long int i = longval ();
! 7527: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7528: return 1;
1.1.1.3 root 7529: fprintf (f, "%ld\n", i);
7530: }
7531: else
7532: {
1.1.1.5 ! root 7533: unsigned long int i = ulongval ();
! 7534: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7535: return 1;
1.1.1.3 root 7536: fprintf (f, "%lu\n", i);
7537: }
1.1.1.5 ! root 7538: return ferror (f) || fclose (f) != 0;
1.1.1.3 root 7539:
7540: ;
7541: return 0;
7542: }
7543: _ACEOF
7544: rm -f conftest$ac_exeext
1.1.1.5 ! root 7545: if { (ac_try="$ac_link"
! 7546: case "(($ac_try" in
! 7547: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7548: *) ac_try_echo=$ac_try;;
! 7549: esac
! 7550: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7551: (eval "$ac_link") 2>&5
1.1.1.3 root 7552: ac_status=$?
7553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 7555: { (case "(($ac_try" in
! 7556: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7557: *) ac_try_echo=$ac_try;;
! 7558: esac
! 7559: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7560: (eval "$ac_try") 2>&5
1.1.1.3 root 7561: ac_status=$?
7562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563: (exit $ac_status); }; }; then
7564: ac_cv_sizeof_double=`cat conftest.val`
7565: else
7566: echo "$as_me: program exited with status $ac_status" >&5
7567: echo "$as_me: failed program was:" >&5
7568: sed 's/^/| /' conftest.$ac_ext >&5
7569:
7570: ( exit $ac_status )
1.1.1.5 ! root 7571: if test "$ac_cv_type_double" = yes; then
! 7572: { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
1.1.1.3 root 7573: See \`config.log' for more details." >&5
1.1.1.5 ! root 7574: echo "$as_me: error: cannot compute sizeof (double)
1.1.1.3 root 7575: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7576: { (exit 77); exit 77; }; }
! 7577: else
! 7578: ac_cv_sizeof_double=0
! 7579: fi
1.1.1.3 root 7580: fi
1.1.1.5 ! root 7581: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7582: fi
7583: rm -f conftest.val
7584: fi
1.1.1.5 ! root 7585: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
! 7586: echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
! 7587:
! 7588:
! 7589:
1.1.1.3 root 7590: cat >>confdefs.h <<_ACEOF
7591: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7592: _ACEOF
7593:
7594:
7595: if test $ac_cv_c_long_double = yes; then
1.1.1.5 ! root 7596: { echo "$as_me:$LINENO: checking for long double" >&5
! 7597: echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
1.1.1.3 root 7598: if test "${ac_cv_type_long_double+set}" = set; then
7599: echo $ECHO_N "(cached) $ECHO_C" >&6
7600: else
7601: cat >conftest.$ac_ext <<_ACEOF
7602: /* confdefs.h. */
7603: _ACEOF
7604: cat confdefs.h >>conftest.$ac_ext
7605: cat >>conftest.$ac_ext <<_ACEOF
7606: /* end confdefs.h. */
7607: $ac_includes_default
1.1.1.5 ! root 7608: typedef long double ac__type_new_;
1.1.1.3 root 7609: int
7610: main ()
7611: {
1.1.1.5 ! root 7612: if ((ac__type_new_ *) 0)
1.1.1.3 root 7613: return 0;
1.1.1.5 ! root 7614: if (sizeof (ac__type_new_))
1.1.1.3 root 7615: return 0;
7616: ;
7617: return 0;
7618: }
7619: _ACEOF
7620: rm -f conftest.$ac_objext
1.1.1.5 ! root 7621: if { (ac_try="$ac_compile"
! 7622: case "(($ac_try" in
! 7623: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7624: *) ac_try_echo=$ac_try;;
! 7625: esac
! 7626: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7627: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7628: ac_status=$?
1.1.1.5 ! root 7629: grep -v '^ *+' conftest.er1 >conftest.err
! 7630: rm -f conftest.er1
! 7631: cat conftest.err >&5
1.1.1.3 root 7632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7633: (exit $ac_status); } && {
! 7634: test -z "$ac_c_werror_flag" ||
! 7635: test ! -s conftest.err
! 7636: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7637: ac_cv_type_long_double=yes
7638: else
7639: echo "$as_me: failed program was:" >&5
7640: sed 's/^/| /' conftest.$ac_ext >&5
7641:
1.1.1.5 ! root 7642: ac_cv_type_long_double=no
1.1.1.3 root 7643: fi
1.1.1.5 ! root 7644:
! 7645: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7646: fi
1.1.1.5 ! root 7647: { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
! 7648: echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
1.1.1.3 root 7649:
1.1.1.5 ! root 7650: # The cast to long int works around a bug in the HP C Compiler
! 7651: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 7652: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 7653: # This bug is HP SR number 8606223364.
! 7654: { echo "$as_me:$LINENO: checking size of long double" >&5
! 7655: echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
1.1.1.3 root 7656: if test "${ac_cv_sizeof_long_double+set}" = set; then
7657: echo $ECHO_N "(cached) $ECHO_C" >&6
7658: else
7659: if test "$cross_compiling" = yes; then
7660: # Depending upon the size, compute the lo and hi bounds.
7661: cat >conftest.$ac_ext <<_ACEOF
7662: /* confdefs.h. */
7663: _ACEOF
7664: cat confdefs.h >>conftest.$ac_ext
7665: cat >>conftest.$ac_ext <<_ACEOF
7666: /* end confdefs.h. */
7667: $ac_includes_default
1.1.1.5 ! root 7668: typedef long double ac__type_sizeof_;
1.1.1.3 root 7669: int
7670: main ()
7671: {
1.1.1.5 ! root 7672: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.3 root 7673: test_array [0] = 0
7674:
7675: ;
7676: return 0;
7677: }
7678: _ACEOF
7679: rm -f conftest.$ac_objext
1.1.1.5 ! root 7680: if { (ac_try="$ac_compile"
! 7681: case "(($ac_try" in
! 7682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7683: *) ac_try_echo=$ac_try;;
! 7684: esac
! 7685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7686: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7687: ac_status=$?
1.1.1.5 ! root 7688: grep -v '^ *+' conftest.er1 >conftest.err
! 7689: rm -f conftest.er1
! 7690: cat conftest.err >&5
1.1.1.3 root 7691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7692: (exit $ac_status); } && {
! 7693: test -z "$ac_c_werror_flag" ||
! 7694: test ! -s conftest.err
! 7695: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7696: ac_lo=0 ac_mid=0
7697: while :; do
7698: cat >conftest.$ac_ext <<_ACEOF
7699: /* confdefs.h. */
7700: _ACEOF
7701: cat confdefs.h >>conftest.$ac_ext
7702: cat >>conftest.$ac_ext <<_ACEOF
7703: /* end confdefs.h. */
7704: $ac_includes_default
1.1.1.5 ! root 7705: typedef long double ac__type_sizeof_;
1.1.1.3 root 7706: int
7707: main ()
7708: {
1.1.1.5 ! root 7709: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 7710: test_array [0] = 0
7711:
7712: ;
7713: return 0;
7714: }
7715: _ACEOF
7716: rm -f conftest.$ac_objext
1.1.1.5 ! root 7717: if { (ac_try="$ac_compile"
! 7718: case "(($ac_try" in
! 7719: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7720: *) ac_try_echo=$ac_try;;
! 7721: esac
! 7722: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7723: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7724: ac_status=$?
1.1.1.5 ! root 7725: grep -v '^ *+' conftest.er1 >conftest.err
! 7726: rm -f conftest.er1
! 7727: cat conftest.err >&5
1.1.1.3 root 7728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7729: (exit $ac_status); } && {
! 7730: test -z "$ac_c_werror_flag" ||
! 7731: test ! -s conftest.err
! 7732: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7733: ac_hi=$ac_mid; break
7734: else
7735: echo "$as_me: failed program was:" >&5
7736: sed 's/^/| /' conftest.$ac_ext >&5
7737:
1.1.1.5 ! root 7738: ac_lo=`expr $ac_mid + 1`
! 7739: if test $ac_lo -le $ac_mid; then
! 7740: ac_lo= ac_hi=
! 7741: break
! 7742: fi
! 7743: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.3 root 7744: fi
1.1.1.5 ! root 7745:
! 7746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7747: done
7748: else
7749: echo "$as_me: failed program was:" >&5
7750: sed 's/^/| /' conftest.$ac_ext >&5
7751:
1.1.1.5 ! root 7752: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7753: /* confdefs.h. */
7754: _ACEOF
7755: cat confdefs.h >>conftest.$ac_ext
7756: cat >>conftest.$ac_ext <<_ACEOF
7757: /* end confdefs.h. */
7758: $ac_includes_default
1.1.1.5 ! root 7759: typedef long double ac__type_sizeof_;
1.1.1.3 root 7760: int
7761: main ()
7762: {
1.1.1.5 ! root 7763: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.3 root 7764: test_array [0] = 0
7765:
7766: ;
7767: return 0;
7768: }
7769: _ACEOF
7770: rm -f conftest.$ac_objext
1.1.1.5 ! root 7771: if { (ac_try="$ac_compile"
! 7772: case "(($ac_try" in
! 7773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7774: *) ac_try_echo=$ac_try;;
! 7775: esac
! 7776: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7777: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7778: ac_status=$?
1.1.1.5 ! root 7779: grep -v '^ *+' conftest.er1 >conftest.err
! 7780: rm -f conftest.er1
! 7781: cat conftest.err >&5
1.1.1.3 root 7782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7783: (exit $ac_status); } && {
! 7784: test -z "$ac_c_werror_flag" ||
! 7785: test ! -s conftest.err
! 7786: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7787: ac_hi=-1 ac_mid=-1
7788: while :; do
7789: cat >conftest.$ac_ext <<_ACEOF
7790: /* confdefs.h. */
7791: _ACEOF
7792: cat confdefs.h >>conftest.$ac_ext
7793: cat >>conftest.$ac_ext <<_ACEOF
7794: /* end confdefs.h. */
7795: $ac_includes_default
1.1.1.5 ! root 7796: typedef long double ac__type_sizeof_;
1.1.1.3 root 7797: int
7798: main ()
7799: {
1.1.1.5 ! root 7800: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.3 root 7801: test_array [0] = 0
7802:
7803: ;
7804: return 0;
7805: }
7806: _ACEOF
7807: rm -f conftest.$ac_objext
1.1.1.5 ! root 7808: if { (ac_try="$ac_compile"
! 7809: case "(($ac_try" in
! 7810: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7811: *) ac_try_echo=$ac_try;;
! 7812: esac
! 7813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7814: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7815: ac_status=$?
1.1.1.5 ! root 7816: grep -v '^ *+' conftest.er1 >conftest.err
! 7817: rm -f conftest.er1
! 7818: cat conftest.err >&5
1.1.1.3 root 7819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7820: (exit $ac_status); } && {
! 7821: test -z "$ac_c_werror_flag" ||
! 7822: test ! -s conftest.err
! 7823: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7824: ac_lo=$ac_mid; break
7825: else
7826: echo "$as_me: failed program was:" >&5
7827: sed 's/^/| /' conftest.$ac_ext >&5
7828:
1.1.1.5 ! root 7829: ac_hi=`expr '(' $ac_mid ')' - 1`
! 7830: if test $ac_mid -le $ac_hi; then
! 7831: ac_lo= ac_hi=
! 7832: break
! 7833: fi
! 7834: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.3 root 7835: fi
1.1.1.5 ! root 7836:
! 7837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7838: done
7839: else
7840: echo "$as_me: failed program was:" >&5
7841: sed 's/^/| /' conftest.$ac_ext >&5
7842:
1.1.1.5 ! root 7843: ac_lo= ac_hi=
1.1.1.3 root 7844: fi
1.1.1.5 ! root 7845:
! 7846: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7847: fi
1.1.1.5 ! root 7848:
! 7849: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7850: # Binary search between lo and hi bounds.
7851: while test "x$ac_lo" != "x$ac_hi"; do
7852: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7853: cat >conftest.$ac_ext <<_ACEOF
7854: /* confdefs.h. */
7855: _ACEOF
7856: cat confdefs.h >>conftest.$ac_ext
7857: cat >>conftest.$ac_ext <<_ACEOF
7858: /* end confdefs.h. */
7859: $ac_includes_default
1.1.1.5 ! root 7860: typedef long double ac__type_sizeof_;
1.1.1.3 root 7861: int
7862: main ()
7863: {
1.1.1.5 ! root 7864: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.3 root 7865: test_array [0] = 0
7866:
7867: ;
7868: return 0;
7869: }
7870: _ACEOF
7871: rm -f conftest.$ac_objext
1.1.1.5 ! root 7872: if { (ac_try="$ac_compile"
! 7873: case "(($ac_try" in
! 7874: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7875: *) ac_try_echo=$ac_try;;
! 7876: esac
! 7877: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7878: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 7879: ac_status=$?
1.1.1.5 ! root 7880: grep -v '^ *+' conftest.er1 >conftest.err
! 7881: rm -f conftest.er1
! 7882: cat conftest.err >&5
1.1.1.3 root 7883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 7884: (exit $ac_status); } && {
! 7885: test -z "$ac_c_werror_flag" ||
! 7886: test ! -s conftest.err
! 7887: } && test -s conftest.$ac_objext; then
1.1.1.3 root 7888: ac_hi=$ac_mid
7889: else
7890: echo "$as_me: failed program was:" >&5
7891: sed 's/^/| /' conftest.$ac_ext >&5
7892:
1.1.1.5 ! root 7893: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.3 root 7894: fi
1.1.1.5 ! root 7895:
! 7896: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7897: done
7898: case $ac_lo in
7899: ?*) ac_cv_sizeof_long_double=$ac_lo;;
1.1.1.5 ! root 7900: '') if test "$ac_cv_type_long_double" = yes; then
! 7901: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
1.1.1.3 root 7902: See \`config.log' for more details." >&5
1.1.1.5 ! root 7903: echo "$as_me: error: cannot compute sizeof (long double)
1.1.1.3 root 7904: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7905: { (exit 77); exit 77; }; }
! 7906: else
! 7907: ac_cv_sizeof_long_double=0
! 7908: fi ;;
1.1.1.3 root 7909: esac
7910: else
7911: cat >conftest.$ac_ext <<_ACEOF
7912: /* confdefs.h. */
7913: _ACEOF
7914: cat confdefs.h >>conftest.$ac_ext
7915: cat >>conftest.$ac_ext <<_ACEOF
7916: /* end confdefs.h. */
7917: $ac_includes_default
1.1.1.5 ! root 7918: typedef long double ac__type_sizeof_;
! 7919: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 7920: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.3 root 7921: #include <stdio.h>
7922: #include <stdlib.h>
7923: int
7924: main ()
7925: {
7926:
7927: FILE *f = fopen ("conftest.val", "w");
7928: if (! f)
1.1.1.5 ! root 7929: return 1;
! 7930: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.3 root 7931: {
1.1.1.5 ! root 7932: long int i = longval ();
! 7933: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7934: return 1;
1.1.1.3 root 7935: fprintf (f, "%ld\n", i);
7936: }
7937: else
7938: {
1.1.1.5 ! root 7939: unsigned long int i = ulongval ();
! 7940: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7941: return 1;
1.1.1.3 root 7942: fprintf (f, "%lu\n", i);
7943: }
1.1.1.5 ! root 7944: return ferror (f) || fclose (f) != 0;
1.1.1.3 root 7945:
7946: ;
7947: return 0;
7948: }
7949: _ACEOF
7950: rm -f conftest$ac_exeext
1.1.1.5 ! root 7951: if { (ac_try="$ac_link"
! 7952: case "(($ac_try" in
! 7953: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7954: *) ac_try_echo=$ac_try;;
! 7955: esac
! 7956: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7957: (eval "$ac_link") 2>&5
1.1.1.3 root 7958: ac_status=$?
7959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 7961: { (case "(($ac_try" in
! 7962: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7963: *) ac_try_echo=$ac_try;;
! 7964: esac
! 7965: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7966: (eval "$ac_try") 2>&5
1.1.1.3 root 7967: ac_status=$?
7968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969: (exit $ac_status); }; }; then
7970: ac_cv_sizeof_long_double=`cat conftest.val`
7971: else
7972: echo "$as_me: program exited with status $ac_status" >&5
7973: echo "$as_me: failed program was:" >&5
7974: sed 's/^/| /' conftest.$ac_ext >&5
7975:
7976: ( exit $ac_status )
1.1.1.5 ! root 7977: if test "$ac_cv_type_long_double" = yes; then
! 7978: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
1.1.1.3 root 7979: See \`config.log' for more details." >&5
1.1.1.5 ! root 7980: echo "$as_me: error: cannot compute sizeof (long double)
1.1.1.3 root 7981: See \`config.log' for more details." >&2;}
1.1.1.5 ! root 7982: { (exit 77); exit 77; }; }
! 7983: else
! 7984: ac_cv_sizeof_long_double=0
! 7985: fi
1.1.1.3 root 7986: fi
1.1.1.5 ! root 7987: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 7988: fi
7989: rm -f conftest.val
7990: fi
1.1.1.5 ! root 7991: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
! 7992: echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
! 7993:
! 7994:
! 7995:
1.1.1.3 root 7996: cat >>confdefs.h <<_ACEOF
7997: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7998: _ACEOF
7999:
8000:
8001: fi
8002: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
8003: { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5
8004: echo "$as_me: error: can't find a 32-bit type" >&2;}
8005: { (exit 1); exit 1; }; }
8006: fi
8007: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
8008: { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5
8009: echo "$as_me: error: can't find a 16-bit type" >&2;}
8010: { (exit 1); exit 1; }; }
8011: fi
1.1.1.4 root 8012: if test $ac_cv_sizeof_long = 8; then
1.1.1.5 ! root 8013: { echo "$as_me:$LINENO: checking minimum alignment of int64_t" >&5
! 8014: echo $ECHO_N "checking minimum alignment of int64_t... $ECHO_C" >&6; }
1.1.1.4 root 8015: if test "${ac_cv_alignof_int64_t+set}" = set; then
8016: echo $ECHO_N "(cached) $ECHO_C" >&6
8017: else
8018: if test "$cross_compiling" = yes; then
8019: ac_cv_alignof_int64_t=64
8020: else
8021: cat >conftest.$ac_ext <<_ACEOF
8022: /* confdefs.h. */
8023: _ACEOF
8024: cat confdefs.h >>conftest.$ac_ext
8025: cat >>conftest.$ac_ext <<_ACEOF
8026: /* end confdefs.h. */
8027: #include <stdio.h>
8028: #include <sys/types.h>
8029: main()
8030: {
8031: #if (SIZEOF_SHORT * 8) == 64
8032: #define _type short
8033: #elif (SIZEOF_INT * 8) == 64
8034: #define _type int
8035: #else
8036: #define _type long
8037: #endif
8038: char try_align_buffer[sizeof(_type) * 2];
8039: int min_align, try_align, status;
8040: _type value;
8041: FILE *f=fopen("conftestval", "w");
8042: if (!f) exit(1);
8043: min_align = sizeof(_type);
8044: for(try_align = sizeof(_type); try_align-- > 1;) {
8045: switch(fork()) {
8046: case -1: exit(1);
8047: case 0: value = *((_type *) &try_align_buffer[try_align]);
8048: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
8049: default: break;
8050: }
8051: wait(&status);
8052: if (!status && try_align < min_align) {
8053: min_align = try_align;
8054: }
8055: }
8056: fprintf(f, "%d\n", min_align * 8);
8057: exit(0);
8058: }
8059: _ACEOF
8060: rm -f conftest$ac_exeext
1.1.1.5 ! root 8061: if { (ac_try="$ac_link"
! 8062: case "(($ac_try" in
! 8063: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8064: *) ac_try_echo=$ac_try;;
! 8065: esac
! 8066: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8067: (eval "$ac_link") 2>&5
1.1.1.4 root 8068: ac_status=$?
8069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8071: { (case "(($ac_try" in
! 8072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8073: *) ac_try_echo=$ac_try;;
! 8074: esac
! 8075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8076: (eval "$ac_try") 2>&5
1.1.1.4 root 8077: ac_status=$?
8078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079: (exit $ac_status); }; }; then
8080: ac_cv_alignof_int64_t=`cat conftestval`
8081: else
8082: echo "$as_me: program exited with status $ac_status" >&5
8083: echo "$as_me: failed program was:" >&5
8084: sed 's/^/| /' conftest.$ac_ext >&5
8085:
8086: ( exit $ac_status )
8087: ac_cv_alignof_int64_t=64
8088: fi
1.1.1.5 ! root 8089: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 8090: fi
1.1.1.5 ! root 8091:
! 8092:
1.1.1.4 root 8093: fi
8094: ac_cv_alignof_int64_t=`expr $ac_cv_alignof_int64_t / 8`
1.1.1.5 ! root 8095: { echo "$as_me:$LINENO: result: $ac_cv_alignof_int64_t" >&5
! 8096: echo "${ECHO_T}$ac_cv_alignof_int64_t" >&6; }
1.1.1.4 root 8097:
8098: cat >>confdefs.h <<_ACEOF
8099: #define ALIGNOF_INT64_T $ac_cv_alignof_int64_t
8100: _ACEOF
8101:
8102:
1.1.1.5 ! root 8103: { echo "$as_me:$LINENO: checking maximum shift count for int64_t" >&5
! 8104: echo $ECHO_N "checking maximum shift count for int64_t... $ECHO_C" >&6; }
! 8105: if test "${ac_cv_shiftmax_int64_t+set}" = set; then
1.1.1.3 root 8106: echo $ECHO_N "(cached) $ECHO_C" >&6
8107: else
8108: if test "$cross_compiling" = yes; then
1.1.1.5 ! root 8109: ac_cv_shiftmax_int64_t=64
1.1.1.3 root 8110: else
8111: cat >conftest.$ac_ext <<_ACEOF
8112: /* confdefs.h. */
8113: _ACEOF
8114: cat confdefs.h >>conftest.$ac_ext
8115: cat >>conftest.$ac_ext <<_ACEOF
8116: /* end confdefs.h. */
8117: #include <stdio.h>
8118: #include <sys/types.h>
8119: main()
8120: {
1.1.1.5 ! root 8121: #if 8 == 64
! 8122: #define _type char
! 8123: #elif (SIZEOF_SHORT * 8) == 64
1.1.1.3 root 8124: #define _type short
1.1.1.5 ! root 8125: #elif (SIZEOF_INT * 8) == 64
1.1.1.3 root 8126: #define _type int
1.1.1.5 ! root 8127: #elif (SIZEOF_LONG * 8) == 64
1.1.1.3 root 8128: #define _type long
8129: #endif
1.1.1.5 ! root 8130: _type center, right, left;
! 8131: unsigned int shift, max_shift;
1.1.1.3 root 8132: FILE *f=fopen("conftestval", "w");
8133: if (!f) exit(1);
1.1.1.5 ! root 8134: center = 3;
! 8135: center <<= ((sizeof(center) * 4) - 1);
! 8136: max_shift = 2047;
! 8137: sscanf("0", "%d", &shift);
! 8138: for (shift += (sizeof(center) * 8);
! 8139: shift < 2048;
! 8140: shift <<= 1) {
! 8141: right = (center >> shift);
! 8142: left = (center << shift);
! 8143: if (right != 0
! 8144: || left != 0) {
! 8145: right = (center >> (shift | 1));
! 8146: left = (center << (shift | 1));
! 8147: max_shift = ((right == (center >> 1)
! 8148: && left == (center << 1))
! 8149: ? shift - 1
! 8150: : (sizeof(center) * 8) - 1);
! 8151: break;
! 8152: }
! 8153: }
! 8154: fprintf(f, "%d\n", max_shift + 1);
! 8155: exit(0);
! 8156: }
! 8157: _ACEOF
! 8158: rm -f conftest$ac_exeext
! 8159: if { (ac_try="$ac_link"
! 8160: case "(($ac_try" in
! 8161: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8162: *) ac_try_echo=$ac_try;;
! 8163: esac
! 8164: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8165: (eval "$ac_link") 2>&5
! 8166: ac_status=$?
! 8167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8168: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8169: { (case "(($ac_try" in
! 8170: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8171: *) ac_try_echo=$ac_try;;
! 8172: esac
! 8173: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8174: (eval "$ac_try") 2>&5
! 8175: ac_status=$?
! 8176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8177: (exit $ac_status); }; }; then
! 8178: ac_cv_shiftmax_int64_t=`cat conftestval`
! 8179: else
! 8180: echo "$as_me: program exited with status $ac_status" >&5
! 8181: echo "$as_me: failed program was:" >&5
! 8182: sed 's/^/| /' conftest.$ac_ext >&5
! 8183:
! 8184: ( exit $ac_status )
! 8185: ac_cv_shiftmax_int64_t=64
! 8186: fi
! 8187: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 8188: fi
! 8189:
! 8190:
! 8191: fi
! 8192: ac_cv_shiftmax_int64_t=`expr $ac_cv_shiftmax_int64_t - 1`
! 8193: { echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int64_t" >&5
! 8194: echo "${ECHO_T}$ac_cv_shiftmax_int64_t" >&6; }
! 8195:
! 8196: cat >>confdefs.h <<_ACEOF
! 8197: #define SHIFTMAX_INT64_T $ac_cv_shiftmax_int64_t
! 8198: _ACEOF
! 8199:
! 8200:
! 8201: { echo "$as_me:$LINENO: checking for arithmetic right shifts of int64_t" >&5
! 8202: echo $ECHO_N "checking for arithmetic right shifts of int64_t... $ECHO_C" >&6; }
! 8203: if test "${ac_cv_shiftsigned_int64_t+set}" = set; then
! 8204: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8205: else
! 8206: if test "$cross_compiling" = yes; then
! 8207: ac_cv_shiftsigned_int64_t=0
! 8208: else
! 8209: cat >conftest.$ac_ext <<_ACEOF
! 8210: /* confdefs.h. */
! 8211: _ACEOF
! 8212: cat confdefs.h >>conftest.$ac_ext
! 8213: cat >>conftest.$ac_ext <<_ACEOF
! 8214: /* end confdefs.h. */
! 8215: #include <stdio.h>
! 8216: #include <sys/types.h>
! 8217: main()
! 8218: {
! 8219: #if 8 == 64
! 8220: #define _type signed char
! 8221: #elif (SIZEOF_SHORT * 8) == 64
! 8222: #define _type signed short
! 8223: #elif (SIZEOF_INT * 8) == 64
! 8224: #define _type signed int
! 8225: #elif (SIZEOF_LONG * 8) == 64
! 8226: #define _type signed long
! 8227: #endif
! 8228: _type prime, shifted, dividend;
! 8229: unsigned int shift, divides;
! 8230: FILE *f;
! 8231:
! 8232: f=fopen("conftestval", "w");
! 8233: if (!f) exit(1);
! 8234:
! 8235: /* set value to the largest magnitude negative prime that it
! 8236: will hold: */
! 8237: #if 64 == 8
! 8238: prime = -127;
! 8239: #elif 64 == 16
! 8240: prime = -32749;
! 8241: #elif 64 == 32
! 8242: prime = -2147483647;
! 8243: #elif 64 == 64
! 8244: /* this is a crafty way of constructing -9223372036854775783,
! 8245: which is 0x8000000000000000 - 0x19, without having to know
! 8246: any compiler suffix for 64-bit literals: */
! 8247: prime = 1;
! 8248: prime <<= (64 - 2);
! 8249: prime = -prime;
! 8250: prime *= 2;
! 8251: prime -= 0x19;
! 8252: #else
! 8253: #error "need another prime"
! 8254: #endif
! 8255:
! 8256: /* all right shifts from a single bit up to SHIFTMAX_INT64_T
! 8257: must be arithmetic, otherwise shifts aren't arithmetic: */
! 8258: for (shift = 1;
! 8259: shift <= SHIFTMAX_INT64_T;
! 8260: shift++) {
! 8261: shifted = prime >> shift;
! 8262: dividend = prime;
! 8263: divides = 0;
! 8264: do {
! 8265: dividend &= ~((_type) 1); /* guarantee no remainder */
! 8266: dividend /= 2;
! 8267: } while (++divides < shift);
! 8268: if (shifted != dividend) {
! 8269: break;
! 8270: }
! 8271: }
! 8272:
! 8273: fprintf(f, "%d\n", (shift > SHIFTMAX_INT64_T ? 1 : 0));
! 8274: exit(0);
! 8275: }
! 8276: _ACEOF
! 8277: rm -f conftest$ac_exeext
! 8278: if { (ac_try="$ac_link"
! 8279: case "(($ac_try" in
! 8280: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8281: *) ac_try_echo=$ac_try;;
! 8282: esac
! 8283: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8284: (eval "$ac_link") 2>&5
! 8285: ac_status=$?
! 8286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8287: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8288: { (case "(($ac_try" in
! 8289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8290: *) ac_try_echo=$ac_try;;
! 8291: esac
! 8292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8293: (eval "$ac_try") 2>&5
! 8294: ac_status=$?
! 8295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8296: (exit $ac_status); }; }; then
! 8297: ac_cv_shiftsigned_int64_t=`cat conftestval`
! 8298: else
! 8299: echo "$as_me: program exited with status $ac_status" >&5
! 8300: echo "$as_me: failed program was:" >&5
! 8301: sed 's/^/| /' conftest.$ac_ext >&5
! 8302:
! 8303: ( exit $ac_status )
! 8304: ac_cv_shiftsigned_int64_t=0
! 8305: fi
! 8306: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 8307: fi
! 8308:
! 8309:
! 8310: fi
! 8311: if test $ac_cv_shiftsigned_int64_t = 1; then
! 8312: { echo "$as_me:$LINENO: result: yes" >&5
! 8313: echo "${ECHO_T}yes" >&6; }
! 8314:
! 8315: cat >>confdefs.h <<_ACEOF
! 8316: #define SHIFTSIGNED_INT64_T
! 8317: _ACEOF
! 8318:
! 8319: else
! 8320: { echo "$as_me:$LINENO: result: no" >&5
! 8321: echo "${ECHO_T}no" >&6; }
! 8322: fi
! 8323:
! 8324: fi
! 8325: { echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5
! 8326: echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6; }
! 8327: if test "${ac_cv_alignof_int32_t+set}" = set; then
! 8328: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8329: else
! 8330: if test "$cross_compiling" = yes; then
! 8331: ac_cv_alignof_int32_t=32
! 8332: else
! 8333: cat >conftest.$ac_ext <<_ACEOF
! 8334: /* confdefs.h. */
! 8335: _ACEOF
! 8336: cat confdefs.h >>conftest.$ac_ext
! 8337: cat >>conftest.$ac_ext <<_ACEOF
! 8338: /* end confdefs.h. */
! 8339: #include <stdio.h>
! 8340: #include <sys/types.h>
! 8341: main()
! 8342: {
! 8343: #if (SIZEOF_SHORT * 8) == 32
! 8344: #define _type short
! 8345: #elif (SIZEOF_INT * 8) == 32
! 8346: #define _type int
! 8347: #else
! 8348: #define _type long
! 8349: #endif
! 8350: char try_align_buffer[sizeof(_type) * 2];
! 8351: int min_align, try_align, status;
! 8352: _type value;
! 8353: FILE *f=fopen("conftestval", "w");
! 8354: if (!f) exit(1);
! 8355: min_align = sizeof(_type);
! 8356: for(try_align = sizeof(_type); try_align-- > 1;) {
! 8357: switch(fork()) {
! 8358: case -1: exit(1);
! 8359: case 0: value = *((_type *) &try_align_buffer[try_align]);
! 8360: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
! 8361: default: break;
! 8362: }
! 8363: wait(&status);
! 8364: if (!status && try_align < min_align) {
! 8365: min_align = try_align;
! 8366: }
! 8367: }
! 8368: fprintf(f, "%d\n", min_align * 8);
! 8369: exit(0);
! 8370: }
! 8371: _ACEOF
! 8372: rm -f conftest$ac_exeext
! 8373: if { (ac_try="$ac_link"
! 8374: case "(($ac_try" in
! 8375: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8376: *) ac_try_echo=$ac_try;;
! 8377: esac
! 8378: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8379: (eval "$ac_link") 2>&5
! 8380: ac_status=$?
! 8381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8382: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8383: { (case "(($ac_try" in
! 8384: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8385: *) ac_try_echo=$ac_try;;
! 8386: esac
! 8387: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8388: (eval "$ac_try") 2>&5
! 8389: ac_status=$?
! 8390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.3 root 8391: (exit $ac_status); }; }; then
8392: ac_cv_alignof_int32_t=`cat conftestval`
8393: else
8394: echo "$as_me: program exited with status $ac_status" >&5
8395: echo "$as_me: failed program was:" >&5
8396: sed 's/^/| /' conftest.$ac_ext >&5
8397:
8398: ( exit $ac_status )
8399: ac_cv_alignof_int32_t=32
8400: fi
1.1.1.5 ! root 8401: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8402: fi
1.1.1.5 ! root 8403:
! 8404:
1.1.1.3 root 8405: fi
8406: ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8`
1.1.1.5 ! root 8407: { echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5
! 8408: echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6; }
1.1.1.3 root 8409:
8410: cat >>confdefs.h <<_ACEOF
8411: #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
8412: _ACEOF
8413:
8414:
1.1.1.5 ! root 8415: { echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5
! 8416: echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6; }
1.1.1.3 root 8417: if test "${ac_cv_alignof_int16_t+set}" = set; then
8418: echo $ECHO_N "(cached) $ECHO_C" >&6
8419: else
8420: if test "$cross_compiling" = yes; then
8421: ac_cv_alignof_int16_t=16
8422: else
8423: cat >conftest.$ac_ext <<_ACEOF
8424: /* confdefs.h. */
8425: _ACEOF
8426: cat confdefs.h >>conftest.$ac_ext
8427: cat >>conftest.$ac_ext <<_ACEOF
8428: /* end confdefs.h. */
8429: #include <stdio.h>
8430: #include <sys/types.h>
8431: main()
8432: {
8433: #if (SIZEOF_SHORT * 8) == 16
8434: #define _type short
8435: #elif (SIZEOF_INT * 8) == 16
8436: #define _type int
8437: #else
8438: #define _type long
8439: #endif
8440: char try_align_buffer[sizeof(_type) * 2];
8441: int min_align, try_align, status;
8442: _type value;
8443: FILE *f=fopen("conftestval", "w");
8444: if (!f) exit(1);
8445: min_align = sizeof(_type);
1.1 root 8446: for(try_align = sizeof(_type); try_align-- > 1;) {
8447: switch(fork()) {
8448: case -1: exit(1);
8449: case 0: value = *((_type *) &try_align_buffer[try_align]);
1.1.1.4 root 8450: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
1.1 root 8451: default: break;
8452: }
1.1.1.3 root 8453: wait(&status);
8454: if (!status && try_align < min_align) {
8455: min_align = try_align;
8456: }
8457: }
8458: fprintf(f, "%d\n", min_align * 8);
8459: exit(0);
8460: }
8461: _ACEOF
8462: rm -f conftest$ac_exeext
1.1.1.5 ! root 8463: if { (ac_try="$ac_link"
! 8464: case "(($ac_try" in
! 8465: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8466: *) ac_try_echo=$ac_try;;
! 8467: esac
! 8468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8469: (eval "$ac_link") 2>&5
1.1.1.3 root 8470: ac_status=$?
8471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8473: { (case "(($ac_try" in
! 8474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8475: *) ac_try_echo=$ac_try;;
! 8476: esac
! 8477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8478: (eval "$ac_try") 2>&5
1.1.1.3 root 8479: ac_status=$?
8480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481: (exit $ac_status); }; }; then
8482: ac_cv_alignof_int16_t=`cat conftestval`
8483: else
8484: echo "$as_me: program exited with status $ac_status" >&5
8485: echo "$as_me: failed program was:" >&5
8486: sed 's/^/| /' conftest.$ac_ext >&5
8487:
8488: ( exit $ac_status )
8489: ac_cv_alignof_int16_t=16
8490: fi
1.1.1.5 ! root 8491: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8492: fi
1.1.1.5 ! root 8493:
! 8494:
1.1.1.3 root 8495: fi
8496: ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8`
1.1.1.5 ! root 8497: { echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5
! 8498: echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6; }
1.1.1.3 root 8499:
8500: cat >>confdefs.h <<_ACEOF
8501: #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
8502: _ACEOF
8503:
8504:
1.1.1.5 ! root 8505: { echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5
! 8506: echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6; }
1.1.1.3 root 8507: if test "${ac_cv_shiftmax_int8_t+set}" = set; then
8508: echo $ECHO_N "(cached) $ECHO_C" >&6
8509: else
8510: if test "$cross_compiling" = yes; then
8511: ac_cv_shiftmax_int8_t=8
8512: else
8513: cat >conftest.$ac_ext <<_ACEOF
8514: /* confdefs.h. */
8515: _ACEOF
8516: cat confdefs.h >>conftest.$ac_ext
8517: cat >>conftest.$ac_ext <<_ACEOF
8518: /* end confdefs.h. */
8519: #include <stdio.h>
8520: #include <sys/types.h>
8521: main()
8522: {
8523: #if 8 == 8
8524: #define _type char
8525: #elif (SIZEOF_SHORT * 8) == 8
8526: #define _type short
8527: #elif (SIZEOF_INT * 8) == 8
8528: #define _type int
8529: #elif (SIZEOF_LONG * 8) == 8
8530: #define _type long
8531: #endif
8532: _type center, right, left;
8533: unsigned int shift, max_shift;
8534: FILE *f=fopen("conftestval", "w");
8535: if (!f) exit(1);
1.1.1.4 root 8536: center = 3;
8537: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 8538: max_shift = 2047;
1.1.1.4 root 8539: sscanf("0", "%d", &shift);
8540: for (shift += (sizeof(center) * 8);
1.1.1.3 root 8541: shift < 2048;
8542: shift <<= 1) {
8543: right = (center >> shift);
8544: left = (center << shift);
8545: if (right != 0
8546: || left != 0) {
8547: right = (center >> (shift | 1));
8548: left = (center << (shift | 1));
8549: max_shift = ((right == (center >> 1)
8550: && left == (center << 1))
8551: ? shift - 1
8552: : (sizeof(center) * 8) - 1);
8553: break;
8554: }
8555: }
8556: fprintf(f, "%d\n", max_shift + 1);
8557: exit(0);
8558: }
8559: _ACEOF
8560: rm -f conftest$ac_exeext
1.1.1.5 ! root 8561: if { (ac_try="$ac_link"
! 8562: case "(($ac_try" in
! 8563: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8564: *) ac_try_echo=$ac_try;;
! 8565: esac
! 8566: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8567: (eval "$ac_link") 2>&5
1.1.1.3 root 8568: ac_status=$?
8569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8571: { (case "(($ac_try" in
! 8572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8573: *) ac_try_echo=$ac_try;;
! 8574: esac
! 8575: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8576: (eval "$ac_try") 2>&5
1.1.1.3 root 8577: ac_status=$?
8578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579: (exit $ac_status); }; }; then
8580: ac_cv_shiftmax_int8_t=`cat conftestval`
8581: else
8582: echo "$as_me: program exited with status $ac_status" >&5
8583: echo "$as_me: failed program was:" >&5
8584: sed 's/^/| /' conftest.$ac_ext >&5
8585:
8586: ( exit $ac_status )
8587: ac_cv_shiftmax_int8_t=8
8588: fi
1.1.1.5 ! root 8589: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8590: fi
1.1.1.5 ! root 8591:
! 8592:
1.1.1.3 root 8593: fi
8594: ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1`
1.1.1.5 ! root 8595: { echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5
! 8596: echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6; }
1.1.1.3 root 8597:
8598: cat >>confdefs.h <<_ACEOF
8599: #define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t
8600: _ACEOF
8601:
8602:
1.1.1.5 ! root 8603: { echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5
! 8604: echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6; }
1.1.1.3 root 8605: if test "${ac_cv_shiftmax_int16_t+set}" = set; then
8606: echo $ECHO_N "(cached) $ECHO_C" >&6
8607: else
8608: if test "$cross_compiling" = yes; then
8609: ac_cv_shiftmax_int16_t=16
8610: else
8611: cat >conftest.$ac_ext <<_ACEOF
8612: /* confdefs.h. */
8613: _ACEOF
8614: cat confdefs.h >>conftest.$ac_ext
8615: cat >>conftest.$ac_ext <<_ACEOF
8616: /* end confdefs.h. */
8617: #include <stdio.h>
8618: #include <sys/types.h>
8619: main()
8620: {
8621: #if 8 == 16
8622: #define _type char
8623: #elif (SIZEOF_SHORT * 8) == 16
8624: #define _type short
8625: #elif (SIZEOF_INT * 8) == 16
8626: #define _type int
8627: #elif (SIZEOF_LONG * 8) == 16
8628: #define _type long
8629: #endif
8630: _type center, right, left;
8631: unsigned int shift, max_shift;
8632: FILE *f=fopen("conftestval", "w");
8633: if (!f) exit(1);
1.1.1.4 root 8634: center = 3;
8635: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 8636: max_shift = 2047;
1.1.1.4 root 8637: sscanf("0", "%d", &shift);
8638: for (shift += (sizeof(center) * 8);
1.1.1.3 root 8639: shift < 2048;
8640: shift <<= 1) {
8641: right = (center >> shift);
8642: left = (center << shift);
8643: if (right != 0
8644: || left != 0) {
8645: right = (center >> (shift | 1));
8646: left = (center << (shift | 1));
8647: max_shift = ((right == (center >> 1)
8648: && left == (center << 1))
8649: ? shift - 1
8650: : (sizeof(center) * 8) - 1);
8651: break;
8652: }
8653: }
8654: fprintf(f, "%d\n", max_shift + 1);
8655: exit(0);
8656: }
8657: _ACEOF
8658: rm -f conftest$ac_exeext
1.1.1.5 ! root 8659: if { (ac_try="$ac_link"
! 8660: case "(($ac_try" in
! 8661: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8662: *) ac_try_echo=$ac_try;;
! 8663: esac
! 8664: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8665: (eval "$ac_link") 2>&5
1.1.1.3 root 8666: ac_status=$?
8667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8669: { (case "(($ac_try" in
! 8670: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8671: *) ac_try_echo=$ac_try;;
! 8672: esac
! 8673: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8674: (eval "$ac_try") 2>&5
1.1.1.3 root 8675: ac_status=$?
8676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677: (exit $ac_status); }; }; then
8678: ac_cv_shiftmax_int16_t=`cat conftestval`
8679: else
8680: echo "$as_me: program exited with status $ac_status" >&5
8681: echo "$as_me: failed program was:" >&5
8682: sed 's/^/| /' conftest.$ac_ext >&5
8683:
8684: ( exit $ac_status )
8685: ac_cv_shiftmax_int16_t=16
8686: fi
1.1.1.5 ! root 8687: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8688: fi
1.1.1.5 ! root 8689:
! 8690:
1.1.1.3 root 8691: fi
8692: ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1`
1.1.1.5 ! root 8693: { echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5
! 8694: echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6; }
1.1.1.3 root 8695:
8696: cat >>confdefs.h <<_ACEOF
8697: #define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t
8698: _ACEOF
8699:
8700:
1.1.1.5 ! root 8701: { echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5
! 8702: echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6; }
1.1.1.3 root 8703: if test "${ac_cv_shiftmax_int32_t+set}" = set; then
8704: echo $ECHO_N "(cached) $ECHO_C" >&6
8705: else
8706: if test "$cross_compiling" = yes; then
8707: ac_cv_shiftmax_int32_t=32
8708: else
8709: cat >conftest.$ac_ext <<_ACEOF
8710: /* confdefs.h. */
8711: _ACEOF
8712: cat confdefs.h >>conftest.$ac_ext
8713: cat >>conftest.$ac_ext <<_ACEOF
8714: /* end confdefs.h. */
8715: #include <stdio.h>
8716: #include <sys/types.h>
8717: main()
8718: {
8719: #if 8 == 32
8720: #define _type char
8721: #elif (SIZEOF_SHORT * 8) == 32
8722: #define _type short
8723: #elif (SIZEOF_INT * 8) == 32
8724: #define _type int
8725: #elif (SIZEOF_LONG * 8) == 32
8726: #define _type long
8727: #endif
8728: _type center, right, left;
8729: unsigned int shift, max_shift;
8730: FILE *f=fopen("conftestval", "w");
8731: if (!f) exit(1);
1.1.1.4 root 8732: center = 3;
8733: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 8734: max_shift = 2047;
1.1.1.4 root 8735: sscanf("0", "%d", &shift);
8736: for (shift += (sizeof(center) * 8);
1.1.1.3 root 8737: shift < 2048;
8738: shift <<= 1) {
8739: right = (center >> shift);
8740: left = (center << shift);
8741: if (right != 0
8742: || left != 0) {
8743: right = (center >> (shift | 1));
8744: left = (center << (shift | 1));
8745: max_shift = ((right == (center >> 1)
8746: && left == (center << 1))
8747: ? shift - 1
8748: : (sizeof(center) * 8) - 1);
8749: break;
8750: }
8751: }
8752: fprintf(f, "%d\n", max_shift + 1);
8753: exit(0);
8754: }
8755: _ACEOF
8756: rm -f conftest$ac_exeext
1.1.1.5 ! root 8757: if { (ac_try="$ac_link"
! 8758: case "(($ac_try" in
! 8759: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8760: *) ac_try_echo=$ac_try;;
! 8761: esac
! 8762: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8763: (eval "$ac_link") 2>&5
1.1.1.3 root 8764: ac_status=$?
8765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8767: { (case "(($ac_try" in
! 8768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8769: *) ac_try_echo=$ac_try;;
! 8770: esac
! 8771: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8772: (eval "$ac_try") 2>&5
1.1.1.3 root 8773: ac_status=$?
8774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775: (exit $ac_status); }; }; then
8776: ac_cv_shiftmax_int32_t=`cat conftestval`
8777: else
8778: echo "$as_me: program exited with status $ac_status" >&5
8779: echo "$as_me: failed program was:" >&5
8780: sed 's/^/| /' conftest.$ac_ext >&5
8781:
8782: ( exit $ac_status )
8783: ac_cv_shiftmax_int32_t=32
8784: fi
1.1.1.5 ! root 8785: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8786: fi
1.1.1.5 ! root 8787:
! 8788:
1.1.1.3 root 8789: fi
8790: ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1`
1.1.1.5 ! root 8791: { echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5
! 8792: echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6; }
1.1.1.3 root 8793:
8794: cat >>confdefs.h <<_ACEOF
8795: #define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t
8796: _ACEOF
8797:
8798:
1.1.1.5 ! root 8799: { echo "$as_me:$LINENO: checking for arithmetic right shifts of int8_t" >&5
! 8800: echo $ECHO_N "checking for arithmetic right shifts of int8_t... $ECHO_C" >&6; }
1.1.1.3 root 8801: if test "${ac_cv_shiftsigned_int8_t+set}" = set; then
8802: echo $ECHO_N "(cached) $ECHO_C" >&6
8803: else
8804: if test "$cross_compiling" = yes; then
8805: ac_cv_shiftsigned_int8_t=0
8806: else
8807: cat >conftest.$ac_ext <<_ACEOF
8808: /* confdefs.h. */
8809: _ACEOF
8810: cat confdefs.h >>conftest.$ac_ext
8811: cat >>conftest.$ac_ext <<_ACEOF
8812: /* end confdefs.h. */
8813: #include <stdio.h>
8814: #include <sys/types.h>
8815: main()
8816: {
8817: #if 8 == 8
8818: #define _type signed char
8819: #elif (SIZEOF_SHORT * 8) == 8
8820: #define _type signed short
8821: #elif (SIZEOF_INT * 8) == 8
8822: #define _type signed int
8823: #elif (SIZEOF_LONG * 8) == 8
8824: #define _type signed long
8825: #endif
8826: _type prime, shifted, dividend;
8827: unsigned int shift, divides;
8828: FILE *f;
8829:
8830: f=fopen("conftestval", "w");
8831: if (!f) exit(1);
8832:
8833: /* set value to the largest magnitude negative prime that it
8834: will hold: */
8835: #if 8 == 8
8836: prime = -127;
8837: #elif 8 == 16
8838: prime = -32749;
8839: #elif 8 == 32
8840: prime = -2147483647;
8841: #elif 8 == 64
8842: /* this is a crafty way of constructing -9223372036854775783,
8843: which is 0x8000000000000000 - 0x19, without having to know
8844: any compiler suffix for 64-bit literals: */
8845: prime = 1;
8846: prime <<= (8 - 2);
8847: prime = -prime;
8848: prime *= 2;
8849: prime -= 0x19;
8850: #else
8851: #error "need another prime"
8852: #endif
8853:
8854: /* all right shifts from a single bit up to SHIFTMAX_INT8_T
8855: must be arithmetic, otherwise shifts aren't arithmetic: */
8856: for (shift = 1;
8857: shift <= SHIFTMAX_INT8_T;
8858: shift++) {
8859: shifted = prime >> shift;
8860: dividend = prime;
8861: divides = 0;
8862: do {
8863: dividend &= ~((_type) 1); /* guarantee no remainder */
8864: dividend /= 2;
8865: } while (++divides < shift);
8866: if (shifted != dividend) {
8867: break;
8868: }
8869: }
8870:
8871: fprintf(f, "%d\n", (shift > SHIFTMAX_INT8_T ? 1 : 0));
8872: exit(0);
8873: }
8874: _ACEOF
8875: rm -f conftest$ac_exeext
1.1.1.5 ! root 8876: if { (ac_try="$ac_link"
! 8877: case "(($ac_try" in
! 8878: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8879: *) ac_try_echo=$ac_try;;
! 8880: esac
! 8881: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8882: (eval "$ac_link") 2>&5
1.1.1.3 root 8883: ac_status=$?
8884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 8886: { (case "(($ac_try" in
! 8887: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8888: *) ac_try_echo=$ac_try;;
! 8889: esac
! 8890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8891: (eval "$ac_try") 2>&5
1.1.1.3 root 8892: ac_status=$?
8893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894: (exit $ac_status); }; }; then
8895: ac_cv_shiftsigned_int8_t=`cat conftestval`
8896: else
8897: echo "$as_me: program exited with status $ac_status" >&5
8898: echo "$as_me: failed program was:" >&5
8899: sed 's/^/| /' conftest.$ac_ext >&5
8900:
8901: ( exit $ac_status )
8902: ac_cv_shiftsigned_int8_t=0
8903: fi
1.1.1.5 ! root 8904: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 8905: fi
1.1.1.5 ! root 8906:
! 8907:
1.1.1.3 root 8908: fi
8909: if test $ac_cv_shiftsigned_int8_t = 1; then
1.1.1.5 ! root 8910: { echo "$as_me:$LINENO: result: yes" >&5
! 8911: echo "${ECHO_T}yes" >&6; }
1.1.1.3 root 8912:
8913: cat >>confdefs.h <<_ACEOF
8914: #define SHIFTSIGNED_INT8_T
8915: _ACEOF
8916:
8917: else
1.1.1.5 ! root 8918: { echo "$as_me:$LINENO: result: no" >&5
! 8919: echo "${ECHO_T}no" >&6; }
1.1.1.3 root 8920: fi
8921:
1.1.1.5 ! root 8922: { echo "$as_me:$LINENO: checking for arithmetic right shifts of int16_t" >&5
! 8923: echo $ECHO_N "checking for arithmetic right shifts of int16_t... $ECHO_C" >&6; }
1.1.1.3 root 8924: if test "${ac_cv_shiftsigned_int16_t+set}" = set; then
8925: echo $ECHO_N "(cached) $ECHO_C" >&6
8926: else
8927: if test "$cross_compiling" = yes; then
8928: ac_cv_shiftsigned_int16_t=0
8929: else
8930: cat >conftest.$ac_ext <<_ACEOF
8931: /* confdefs.h. */
8932: _ACEOF
8933: cat confdefs.h >>conftest.$ac_ext
8934: cat >>conftest.$ac_ext <<_ACEOF
8935: /* end confdefs.h. */
8936: #include <stdio.h>
8937: #include <sys/types.h>
8938: main()
8939: {
8940: #if 8 == 16
8941: #define _type signed char
8942: #elif (SIZEOF_SHORT * 8) == 16
8943: #define _type signed short
8944: #elif (SIZEOF_INT * 8) == 16
8945: #define _type signed int
8946: #elif (SIZEOF_LONG * 8) == 16
8947: #define _type signed long
8948: #endif
8949: _type prime, shifted, dividend;
8950: unsigned int shift, divides;
8951: FILE *f;
8952:
8953: f=fopen("conftestval", "w");
8954: if (!f) exit(1);
8955:
8956: /* set value to the largest magnitude negative prime that it
8957: will hold: */
8958: #if 16 == 8
8959: prime = -127;
8960: #elif 16 == 16
8961: prime = -32749;
8962: #elif 16 == 32
8963: prime = -2147483647;
8964: #elif 16 == 64
8965: /* this is a crafty way of constructing -9223372036854775783,
8966: which is 0x8000000000000000 - 0x19, without having to know
8967: any compiler suffix for 64-bit literals: */
8968: prime = 1;
8969: prime <<= (16 - 2);
8970: prime = -prime;
8971: prime *= 2;
8972: prime -= 0x19;
8973: #else
8974: #error "need another prime"
8975: #endif
8976:
8977: /* all right shifts from a single bit up to SHIFTMAX_INT16_T
8978: must be arithmetic, otherwise shifts aren't arithmetic: */
8979: for (shift = 1;
8980: shift <= SHIFTMAX_INT16_T;
8981: shift++) {
8982: shifted = prime >> shift;
8983: dividend = prime;
8984: divides = 0;
8985: do {
8986: dividend &= ~((_type) 1); /* guarantee no remainder */
8987: dividend /= 2;
8988: } while (++divides < shift);
8989: if (shifted != dividend) {
8990: break;
8991: }
8992: }
8993:
8994: fprintf(f, "%d\n", (shift > SHIFTMAX_INT16_T ? 1 : 0));
8995: exit(0);
8996: }
8997: _ACEOF
8998: rm -f conftest$ac_exeext
1.1.1.5 ! root 8999: if { (ac_try="$ac_link"
! 9000: case "(($ac_try" in
! 9001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9002: *) ac_try_echo=$ac_try;;
! 9003: esac
! 9004: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9005: (eval "$ac_link") 2>&5
1.1.1.3 root 9006: ac_status=$?
9007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9009: { (case "(($ac_try" in
! 9010: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9011: *) ac_try_echo=$ac_try;;
! 9012: esac
! 9013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9014: (eval "$ac_try") 2>&5
1.1.1.3 root 9015: ac_status=$?
9016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017: (exit $ac_status); }; }; then
9018: ac_cv_shiftsigned_int16_t=`cat conftestval`
9019: else
9020: echo "$as_me: program exited with status $ac_status" >&5
9021: echo "$as_me: failed program was:" >&5
9022: sed 's/^/| /' conftest.$ac_ext >&5
9023:
9024: ( exit $ac_status )
9025: ac_cv_shiftsigned_int16_t=0
9026: fi
1.1.1.5 ! root 9027: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 9028: fi
1.1.1.5 ! root 9029:
! 9030:
1.1.1.3 root 9031: fi
9032: if test $ac_cv_shiftsigned_int16_t = 1; then
1.1.1.5 ! root 9033: { echo "$as_me:$LINENO: result: yes" >&5
! 9034: echo "${ECHO_T}yes" >&6; }
1.1.1.3 root 9035:
9036: cat >>confdefs.h <<_ACEOF
9037: #define SHIFTSIGNED_INT16_T
9038: _ACEOF
9039:
9040: else
1.1.1.5 ! root 9041: { echo "$as_me:$LINENO: result: no" >&5
! 9042: echo "${ECHO_T}no" >&6; }
1.1.1.3 root 9043: fi
9044:
1.1.1.5 ! root 9045: { echo "$as_me:$LINENO: checking for arithmetic right shifts of int32_t" >&5
! 9046: echo $ECHO_N "checking for arithmetic right shifts of int32_t... $ECHO_C" >&6; }
1.1.1.3 root 9047: if test "${ac_cv_shiftsigned_int32_t+set}" = set; then
9048: echo $ECHO_N "(cached) $ECHO_C" >&6
9049: else
9050: if test "$cross_compiling" = yes; then
9051: ac_cv_shiftsigned_int32_t=0
9052: else
9053: cat >conftest.$ac_ext <<_ACEOF
9054: /* confdefs.h. */
9055: _ACEOF
9056: cat confdefs.h >>conftest.$ac_ext
9057: cat >>conftest.$ac_ext <<_ACEOF
9058: /* end confdefs.h. */
9059: #include <stdio.h>
9060: #include <sys/types.h>
9061: main()
9062: {
9063: #if 8 == 32
9064: #define _type signed char
9065: #elif (SIZEOF_SHORT * 8) == 32
9066: #define _type signed short
9067: #elif (SIZEOF_INT * 8) == 32
9068: #define _type signed int
9069: #elif (SIZEOF_LONG * 8) == 32
9070: #define _type signed long
9071: #endif
9072: _type prime, shifted, dividend;
9073: unsigned int shift, divides;
9074: FILE *f;
9075:
9076: f=fopen("conftestval", "w");
9077: if (!f) exit(1);
9078:
9079: /* set value to the largest magnitude negative prime that it
9080: will hold: */
9081: #if 32 == 8
9082: prime = -127;
9083: #elif 32 == 16
9084: prime = -32749;
9085: #elif 32 == 32
9086: prime = -2147483647;
9087: #elif 32 == 64
9088: /* this is a crafty way of constructing -9223372036854775783,
9089: which is 0x8000000000000000 - 0x19, without having to know
9090: any compiler suffix for 64-bit literals: */
9091: prime = 1;
9092: prime <<= (32 - 2);
9093: prime = -prime;
9094: prime *= 2;
9095: prime -= 0x19;
9096: #else
9097: #error "need another prime"
9098: #endif
9099:
9100: /* all right shifts from a single bit up to SHIFTMAX_INT32_T
9101: must be arithmetic, otherwise shifts aren't arithmetic: */
9102: for (shift = 1;
9103: shift <= SHIFTMAX_INT32_T;
9104: shift++) {
9105: shifted = prime >> shift;
9106: dividend = prime;
9107: divides = 0;
9108: do {
9109: dividend &= ~((_type) 1); /* guarantee no remainder */
9110: dividend /= 2;
9111: } while (++divides < shift);
9112: if (shifted != dividend) {
9113: break;
9114: }
9115: }
9116:
9117: fprintf(f, "%d\n", (shift > SHIFTMAX_INT32_T ? 1 : 0));
9118: exit(0);
9119: }
9120: _ACEOF
9121: rm -f conftest$ac_exeext
1.1.1.5 ! root 9122: if { (ac_try="$ac_link"
! 9123: case "(($ac_try" in
! 9124: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9125: *) ac_try_echo=$ac_try;;
! 9126: esac
! 9127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9128: (eval "$ac_link") 2>&5
1.1.1.3 root 9129: ac_status=$?
9130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9132: { (case "(($ac_try" in
! 9133: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9134: *) ac_try_echo=$ac_try;;
! 9135: esac
! 9136: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9137: (eval "$ac_try") 2>&5
1.1.1.3 root 9138: ac_status=$?
9139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140: (exit $ac_status); }; }; then
9141: ac_cv_shiftsigned_int32_t=`cat conftestval`
9142: else
9143: echo "$as_me: program exited with status $ac_status" >&5
9144: echo "$as_me: failed program was:" >&5
9145: sed 's/^/| /' conftest.$ac_ext >&5
9146:
9147: ( exit $ac_status )
9148: ac_cv_shiftsigned_int32_t=0
9149: fi
1.1.1.5 ! root 9150: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 9151: fi
1.1.1.5 ! root 9152:
! 9153:
1.1.1.3 root 9154: fi
9155: if test $ac_cv_shiftsigned_int32_t = 1; then
1.1.1.5 ! root 9156: { echo "$as_me:$LINENO: result: yes" >&5
! 9157: echo "${ECHO_T}yes" >&6; }
1.1.1.3 root 9158:
9159: cat >>confdefs.h <<_ACEOF
9160: #define SHIFTSIGNED_INT32_T
9161: _ACEOF
9162:
9163: else
1.1.1.5 ! root 9164: { echo "$as_me:$LINENO: result: no" >&5
! 9165: echo "${ECHO_T}no" >&6; }
1.1.1.3 root 9166: fi
9167:
1.1.1.5 ! root 9168: { echo "$as_me:$LINENO: checking the floating point format of float" >&5
! 9169: echo $ECHO_N "checking the floating point format of float... $ECHO_C" >&6; }
1.1.1.3 root 9170: if test "${ac_cv_float_format_float+set}" = set; then
9171: echo $ECHO_N "(cached) $ECHO_C" >&6
9172: else
9173: if test "$cross_compiling" = yes; then
9174: ac_cv_float_format_float=NATIVE
9175: else
9176: cat >conftest.$ac_ext <<_ACEOF
9177: /* confdefs.h. */
9178: _ACEOF
9179: cat confdefs.h >>conftest.$ac_ext
9180: cat >>conftest.$ac_ext <<_ACEOF
9181: /* end confdefs.h. */
9182: #include <stdio.h>
9183: #include <sys/types.h>
9184: main()
9185: {
9186: float value;
9187: unsigned short value_buffer[16];
9188: #ifdef WORDS_BIGENDIAN
9189: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9190: #else
9191: #define UINT16_PART(v, i) (value_buffer[(i)])
9192: #endif
9193:
9194: FILE *f=fopen("conftestval", "w");
9195: if (!f) exit(1);
9196:
9197: /* see if this type is IEEE754 single precision: */
9198: value = 3.4793309169e-05;
9199: memcpy(value_buffer, &value, sizeof(value));
9200: if (sizeof(value) == 4
9201: && UINT16_PART(value, 1) == 0x3811
9202: && UINT16_PART(value, 0) == 0xef08) {
9203: fprintf(f, "IEEE754_SINGLE\n");
9204: exit (0);
9205: }
9206:
9207: /* see if this type is IEEE754 double precision: */
9208: value = 7.91534994289814532176e-04;
9209: memcpy(value_buffer, &value, sizeof(value));
9210: if (sizeof(value) == 8
9211: && UINT16_PART(value, 3) == 0x3f49
9212: && UINT16_PART(value, 2) == 0xefe0
9213: && UINT16_PART(value, 1) == 0x7501
9214: && UINT16_PART(value, 0) == 0xb288) {
9215: fprintf(f, "IEEE754_DOUBLE\n");
9216: exit (0);
9217: }
9218:
9219: /* see if this type might be IEEE754 extended 80-bit precision: */
9220: value = 1.1356523406294143949491931077970765006170e+04;
9221: memcpy(value_buffer, &value, sizeof(value));
9222: if (sizeof(value) >= 12
9223: && UINT16_PART(value, 0) == 0x7800
9224: && UINT16_PART(value, 1) == 0xd1cf
9225: && UINT16_PART(value, 2) == 0x17f7
9226: && UINT16_PART(value, 3) == 0xb172) {
9227:
9228: /* check for i387-style IEEE754 extended precision: */
9229: if (sizeof(value) == 12
9230: && UINT16_PART(value, 4) == 0x400c) {
9231: fprintf(f, "IEEE754_EXTENDED80_I387\n");
9232: exit (0);
9233: }
9234:
9235: /* check for m68881-style IEEE754 extended precision: */
9236: if (sizeof(value) == 12
9237: && UINT16_PART(value, 5) == 0x400c) {
9238: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9239: exit (0);
1.1 root 9240: }
9241: }
1.1.1.3 root 9242:
9243: /* otherwise, this is some native type: */
9244: fprintf(f, "NATIVE\n");
9245: exit (0);
1.1 root 9246: }
9247: _ACEOF
9248: rm -f conftest$ac_exeext
1.1.1.5 ! root 9249: if { (ac_try="$ac_link"
! 9250: case "(($ac_try" in
! 9251: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9252: *) ac_try_echo=$ac_try;;
! 9253: esac
! 9254: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9255: (eval "$ac_link") 2>&5
1.1 root 9256: ac_status=$?
9257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9259: { (case "(($ac_try" in
! 9260: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9261: *) ac_try_echo=$ac_try;;
! 9262: esac
! 9263: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9264: (eval "$ac_try") 2>&5
1.1 root 9265: ac_status=$?
9266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267: (exit $ac_status); }; }; then
1.1.1.3 root 9268: ac_cv_float_format_float=`cat conftestval`
1.1 root 9269: else
9270: echo "$as_me: program exited with status $ac_status" >&5
9271: echo "$as_me: failed program was:" >&5
9272: sed 's/^/| /' conftest.$ac_ext >&5
9273:
9274: ( exit $ac_status )
1.1.1.3 root 9275: ac_cv_float_format_float=NATIVE
1.1 root 9276: fi
1.1.1.5 ! root 9277: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 9278: fi
1.1.1.5 ! root 9279:
! 9280:
1.1 root 9281: fi
1.1.1.5 ! root 9282: { echo "$as_me:$LINENO: result: $ac_cv_float_format_float" >&5
! 9283: echo "${ECHO_T}$ac_cv_float_format_float" >&6; }
1.1.1.3 root 9284: if test $ac_cv_float_format_float != NATIVE; then
1.1 root 9285:
9286: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 9287: #define FLOAT_FORMAT_FLOAT $ac_cv_float_format_float
1.1 root 9288: _ACEOF
9289:
1.1.1.3 root 9290: fi
1.1 root 9291:
1.1.1.5 ! root 9292: { echo "$as_me:$LINENO: checking the limits of float" >&5
! 9293: echo $ECHO_N "checking the limits of float... $ECHO_C" >&6; }
1.1.1.3 root 9294: if test "${ac_cv_float_limits_float+set}" = set; then
9295: echo $ECHO_N "(cached) $ECHO_C" >&6
9296: else
9297: for limits in FLT_MAX/FLT_MIN; do
9298: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9299: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9300: cat >conftest.$ac_ext <<_ACEOF
9301: /* confdefs.h. */
9302: _ACEOF
9303: cat confdefs.h >>conftest.$ac_ext
9304: cat >>conftest.$ac_ext <<_ACEOF
9305: /* end confdefs.h. */
9306: #include <sys/types.h>
9307: #ifdef HAVE_FLOAT_H
9308: #include <float.h>
9309: #endif
9310: #ifdef HAVE_LIMITS_H
9311: #include <limits.h>
9312: #endif
9313: int
9314: main ()
9315: {
9316: float x; x = $max - $min;
9317: ;
9318: return 0;
9319: }
9320: _ACEOF
9321: rm -f conftest.$ac_objext
1.1.1.5 ! root 9322: if { (ac_try="$ac_compile"
! 9323: case "(($ac_try" in
! 9324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9325: *) ac_try_echo=$ac_try;;
! 9326: esac
! 9327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9328: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 9329: ac_status=$?
1.1.1.5 ! root 9330: grep -v '^ *+' conftest.er1 >conftest.err
! 9331: rm -f conftest.er1
! 9332: cat conftest.err >&5
1.1.1.3 root 9333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 9334: (exit $ac_status); } && {
! 9335: test -z "$ac_c_werror_flag" ||
! 9336: test ! -s conftest.err
! 9337: } && test -s conftest.$ac_objext; then
1.1.1.3 root 9338: ac_cv_float_limits_float=$limits ; break
9339: else
9340: echo "$as_me: failed program was:" >&5
9341: sed 's/^/| /' conftest.$ac_ext >&5
9342:
1.1.1.5 ! root 9343: ac_cv_float_limits_float=
1.1.1.3 root 9344: fi
1.1.1.5 ! root 9345:
! 9346: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 9347: done
9348: fi
9349:
9350: if test "x$ac_cv_float_limits_float" = x; then
9351: { { echo "$as_me:$LINENO: error: can't determine the limits of float" >&5
9352: echo "$as_me: error: can't determine the limits of float" >&2;}
9353: { (exit 1); exit 1; }; }
9354: fi
1.1.1.5 ! root 9355: { echo "$as_me:$LINENO: result: $ac_cv_float_limits_float" >&5
! 9356: echo "${ECHO_T}$ac_cv_float_limits_float" >&6; }
1.1.1.3 root 9357: max=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9358: min=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9359:
9360: cat >>confdefs.h <<_ACEOF
9361: #define FLOAT_MAX_FLOAT ($max)
9362: _ACEOF
9363:
9364:
9365: cat >>confdefs.h <<_ACEOF
9366: #define FLOAT_MIN_FLOAT ($min)
9367: _ACEOF
9368:
9369:
1.1.1.5 ! root 9370: { echo "$as_me:$LINENO: checking the floating point format of double" >&5
! 9371: echo $ECHO_N "checking the floating point format of double... $ECHO_C" >&6; }
1.1.1.3 root 9372: if test "${ac_cv_float_format_double+set}" = set; then
1.1 root 9373: echo $ECHO_N "(cached) $ECHO_C" >&6
9374: else
9375: if test "$cross_compiling" = yes; then
1.1.1.3 root 9376: ac_cv_float_format_double=NATIVE
1.1 root 9377: else
9378: cat >conftest.$ac_ext <<_ACEOF
9379: /* confdefs.h. */
9380: _ACEOF
9381: cat confdefs.h >>conftest.$ac_ext
9382: cat >>conftest.$ac_ext <<_ACEOF
9383: /* end confdefs.h. */
9384: #include <stdio.h>
9385: #include <sys/types.h>
9386: main()
9387: {
1.1.1.3 root 9388: double value;
9389: unsigned short value_buffer[16];
9390: #ifdef WORDS_BIGENDIAN
9391: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9392: #else
9393: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 9394: #endif
1.1.1.3 root 9395:
1.1 root 9396: FILE *f=fopen("conftestval", "w");
9397: if (!f) exit(1);
1.1.1.3 root 9398:
9399: /* see if this type is IEEE754 single precision: */
9400: value = 3.4793309169e-05;
9401: memcpy(value_buffer, &value, sizeof(value));
9402: if (sizeof(value) == 4
9403: && UINT16_PART(value, 1) == 0x3811
9404: && UINT16_PART(value, 0) == 0xef08) {
9405: fprintf(f, "IEEE754_SINGLE\n");
9406: exit (0);
9407: }
9408:
9409: /* see if this type is IEEE754 double precision: */
9410: value = 7.91534994289814532176e-04;
9411: memcpy(value_buffer, &value, sizeof(value));
9412: if (sizeof(value) == 8
9413: && UINT16_PART(value, 3) == 0x3f49
9414: && UINT16_PART(value, 2) == 0xefe0
9415: && UINT16_PART(value, 1) == 0x7501
9416: && UINT16_PART(value, 0) == 0xb288) {
9417: fprintf(f, "IEEE754_DOUBLE\n");
9418: exit (0);
9419: }
9420:
9421: /* see if this type might be IEEE754 extended 80-bit precision: */
9422: value = 1.1356523406294143949491931077970765006170e+04;
9423: memcpy(value_buffer, &value, sizeof(value));
9424: if (sizeof(value) >= 12
9425: && UINT16_PART(value, 0) == 0x7800
9426: && UINT16_PART(value, 1) == 0xd1cf
9427: && UINT16_PART(value, 2) == 0x17f7
9428: && UINT16_PART(value, 3) == 0xb172) {
9429:
9430: /* check for i387-style IEEE754 extended precision: */
9431: if (sizeof(value) == 12
9432: && UINT16_PART(value, 4) == 0x400c) {
9433: fprintf(f, "IEEE754_EXTENDED80_I387\n");
9434: exit (0);
9435: }
9436:
9437: /* check for m68881-style IEEE754 extended precision: */
9438: if (sizeof(value) == 12
9439: && UINT16_PART(value, 5) == 0x400c) {
9440: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9441: exit (0);
1.1 root 9442: }
9443: }
1.1.1.3 root 9444:
9445: /* otherwise, this is some native type: */
9446: fprintf(f, "NATIVE\n");
9447: exit (0);
1.1 root 9448: }
9449: _ACEOF
9450: rm -f conftest$ac_exeext
1.1.1.5 ! root 9451: if { (ac_try="$ac_link"
! 9452: case "(($ac_try" in
! 9453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9454: *) ac_try_echo=$ac_try;;
! 9455: esac
! 9456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9457: (eval "$ac_link") 2>&5
1.1 root 9458: ac_status=$?
9459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9461: { (case "(($ac_try" in
! 9462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9463: *) ac_try_echo=$ac_try;;
! 9464: esac
! 9465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9466: (eval "$ac_try") 2>&5
1.1 root 9467: ac_status=$?
9468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469: (exit $ac_status); }; }; then
1.1.1.3 root 9470: ac_cv_float_format_double=`cat conftestval`
1.1 root 9471: else
9472: echo "$as_me: program exited with status $ac_status" >&5
9473: echo "$as_me: failed program was:" >&5
9474: sed 's/^/| /' conftest.$ac_ext >&5
9475:
9476: ( exit $ac_status )
1.1.1.3 root 9477: ac_cv_float_format_double=NATIVE
1.1 root 9478: fi
1.1.1.5 ! root 9479: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 9480: fi
1.1.1.5 ! root 9481:
! 9482:
1.1 root 9483: fi
1.1.1.5 ! root 9484: { echo "$as_me:$LINENO: result: $ac_cv_float_format_double" >&5
! 9485: echo "${ECHO_T}$ac_cv_float_format_double" >&6; }
1.1.1.3 root 9486: if test $ac_cv_float_format_double != NATIVE; then
1.1 root 9487:
9488: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 9489: #define FLOAT_FORMAT_DOUBLE $ac_cv_float_format_double
1.1 root 9490: _ACEOF
9491:
1.1.1.3 root 9492: fi
1.1 root 9493:
1.1.1.5 ! root 9494: { echo "$as_me:$LINENO: checking the limits of double" >&5
! 9495: echo $ECHO_N "checking the limits of double... $ECHO_C" >&6; }
1.1.1.3 root 9496: if test "${ac_cv_float_limits_double+set}" = set; then
9497: echo $ECHO_N "(cached) $ECHO_C" >&6
9498: else
9499: for limits in DBL_MAX/DBL_MIN; do
9500: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9501: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9502: cat >conftest.$ac_ext <<_ACEOF
9503: /* confdefs.h. */
9504: _ACEOF
9505: cat confdefs.h >>conftest.$ac_ext
9506: cat >>conftest.$ac_ext <<_ACEOF
9507: /* end confdefs.h. */
9508: #include <sys/types.h>
9509: #ifdef HAVE_FLOAT_H
9510: #include <float.h>
9511: #endif
9512: #ifdef HAVE_LIMITS_H
9513: #include <limits.h>
9514: #endif
9515: int
9516: main ()
9517: {
9518: double x; x = $max - $min;
9519: ;
9520: return 0;
9521: }
9522: _ACEOF
9523: rm -f conftest.$ac_objext
1.1.1.5 ! root 9524: if { (ac_try="$ac_compile"
! 9525: case "(($ac_try" in
! 9526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9527: *) ac_try_echo=$ac_try;;
! 9528: esac
! 9529: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9530: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 9531: ac_status=$?
1.1.1.5 ! root 9532: grep -v '^ *+' conftest.er1 >conftest.err
! 9533: rm -f conftest.er1
! 9534: cat conftest.err >&5
1.1.1.3 root 9535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 9536: (exit $ac_status); } && {
! 9537: test -z "$ac_c_werror_flag" ||
! 9538: test ! -s conftest.err
! 9539: } && test -s conftest.$ac_objext; then
1.1.1.3 root 9540: ac_cv_float_limits_double=$limits ; break
9541: else
9542: echo "$as_me: failed program was:" >&5
9543: sed 's/^/| /' conftest.$ac_ext >&5
9544:
1.1.1.5 ! root 9545: ac_cv_float_limits_double=
1.1.1.3 root 9546: fi
1.1.1.5 ! root 9547:
! 9548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 9549: done
9550: fi
9551:
9552: if test "x$ac_cv_float_limits_double" = x; then
9553: { { echo "$as_me:$LINENO: error: can't determine the limits of double" >&5
9554: echo "$as_me: error: can't determine the limits of double" >&2;}
9555: { (exit 1); exit 1; }; }
9556: fi
1.1.1.5 ! root 9557: { echo "$as_me:$LINENO: result: $ac_cv_float_limits_double" >&5
! 9558: echo "${ECHO_T}$ac_cv_float_limits_double" >&6; }
1.1.1.3 root 9559: max=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9560: min=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9561:
9562: cat >>confdefs.h <<_ACEOF
9563: #define FLOAT_MAX_DOUBLE ($max)
9564: _ACEOF
9565:
9566:
9567: cat >>confdefs.h <<_ACEOF
9568: #define FLOAT_MIN_DOUBLE ($min)
9569: _ACEOF
9570:
9571:
9572: if test $ac_cv_c_long_double = yes; then
1.1.1.5 ! root 9573: { echo "$as_me:$LINENO: checking the floating point format of long double" >&5
! 9574: echo $ECHO_N "checking the floating point format of long double... $ECHO_C" >&6; }
1.1.1.3 root 9575: if test "${ac_cv_float_format_long_double+set}" = set; then
1.1 root 9576: echo $ECHO_N "(cached) $ECHO_C" >&6
9577: else
9578: if test "$cross_compiling" = yes; then
1.1.1.3 root 9579: ac_cv_float_format_long_double=NATIVE
1.1 root 9580: else
9581: cat >conftest.$ac_ext <<_ACEOF
9582: /* confdefs.h. */
9583: _ACEOF
9584: cat confdefs.h >>conftest.$ac_ext
9585: cat >>conftest.$ac_ext <<_ACEOF
9586: /* end confdefs.h. */
9587: #include <stdio.h>
9588: #include <sys/types.h>
9589: main()
9590: {
1.1.1.3 root 9591: long double value;
9592: unsigned short value_buffer[16];
9593: #ifdef WORDS_BIGENDIAN
9594: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9595: #else
9596: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 9597: #endif
1.1.1.3 root 9598:
1.1 root 9599: FILE *f=fopen("conftestval", "w");
9600: if (!f) exit(1);
1.1.1.3 root 9601:
9602: /* see if this type is IEEE754 single precision: */
9603: value = 3.4793309169e-05;
9604: memcpy(value_buffer, &value, sizeof(value));
9605: if (sizeof(value) == 4
9606: && UINT16_PART(value, 1) == 0x3811
9607: && UINT16_PART(value, 0) == 0xef08) {
9608: fprintf(f, "IEEE754_SINGLE\n");
9609: exit (0);
9610: }
9611:
9612: /* see if this type is IEEE754 double precision: */
9613: value = 7.91534994289814532176e-04;
9614: memcpy(value_buffer, &value, sizeof(value));
9615: if (sizeof(value) == 8
9616: && UINT16_PART(value, 3) == 0x3f49
9617: && UINT16_PART(value, 2) == 0xefe0
9618: && UINT16_PART(value, 1) == 0x7501
9619: && UINT16_PART(value, 0) == 0xb288) {
9620: fprintf(f, "IEEE754_DOUBLE\n");
9621: exit (0);
9622: }
9623:
9624: /* see if this type might be IEEE754 extended 80-bit precision: */
9625: value = 1.1356523406294143949491931077970765006170e+04;
9626: memcpy(value_buffer, &value, sizeof(value));
9627: if (sizeof(value) >= 12
9628: && UINT16_PART(value, 0) == 0x7800
9629: && UINT16_PART(value, 1) == 0xd1cf
9630: && UINT16_PART(value, 2) == 0x17f7
9631: && UINT16_PART(value, 3) == 0xb172) {
9632:
9633: /* check for i387-style IEEE754 extended precision: */
9634: if (sizeof(value) == 12
9635: && UINT16_PART(value, 4) == 0x400c) {
9636: fprintf(f, "IEEE754_EXTENDED80_I387\n");
9637: exit (0);
9638: }
9639:
9640: /* check for m68881-style IEEE754 extended precision: */
9641: if (sizeof(value) == 12
9642: && UINT16_PART(value, 5) == 0x400c) {
9643: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9644: exit (0);
1.1 root 9645: }
9646: }
1.1.1.3 root 9647:
9648: /* otherwise, this is some native type: */
9649: fprintf(f, "NATIVE\n");
9650: exit (0);
1.1 root 9651: }
9652: _ACEOF
9653: rm -f conftest$ac_exeext
1.1.1.5 ! root 9654: if { (ac_try="$ac_link"
! 9655: case "(($ac_try" in
! 9656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9657: *) ac_try_echo=$ac_try;;
! 9658: esac
! 9659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9660: (eval "$ac_link") 2>&5
1.1 root 9661: ac_status=$?
9662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9664: { (case "(($ac_try" in
! 9665: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9666: *) ac_try_echo=$ac_try;;
! 9667: esac
! 9668: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9669: (eval "$ac_try") 2>&5
1.1 root 9670: ac_status=$?
9671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672: (exit $ac_status); }; }; then
1.1.1.3 root 9673: ac_cv_float_format_long_double=`cat conftestval`
1.1 root 9674: else
9675: echo "$as_me: program exited with status $ac_status" >&5
9676: echo "$as_me: failed program was:" >&5
9677: sed 's/^/| /' conftest.$ac_ext >&5
9678:
9679: ( exit $ac_status )
1.1.1.3 root 9680: ac_cv_float_format_long_double=NATIVE
1.1 root 9681: fi
1.1.1.5 ! root 9682: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 9683: fi
1.1.1.5 ! root 9684:
! 9685:
1.1 root 9686: fi
1.1.1.5 ! root 9687: { echo "$as_me:$LINENO: result: $ac_cv_float_format_long_double" >&5
! 9688: echo "${ECHO_T}$ac_cv_float_format_long_double" >&6; }
1.1.1.3 root 9689: if test $ac_cv_float_format_long_double != NATIVE; then
1.1 root 9690:
9691: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 9692: #define FLOAT_FORMAT_LONG_DOUBLE $ac_cv_float_format_long_double
1.1 root 9693: _ACEOF
9694:
1.1.1.3 root 9695: fi
1.1 root 9696:
1.1.1.5 ! root 9697: { echo "$as_me:$LINENO: checking the limits of long double" >&5
! 9698: echo $ECHO_N "checking the limits of long double... $ECHO_C" >&6; }
1.1.1.3 root 9699: if test "${ac_cv_float_limits_long_double+set}" = set; then
1.1 root 9700: echo $ECHO_N "(cached) $ECHO_C" >&6
9701: else
1.1.1.3 root 9702: for limits in LDBL_MAX/LDBL_MIN; do
9703: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9704: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 9705: cat >conftest.$ac_ext <<_ACEOF
9706: /* confdefs.h. */
9707: _ACEOF
9708: cat confdefs.h >>conftest.$ac_ext
9709: cat >>conftest.$ac_ext <<_ACEOF
9710: /* end confdefs.h. */
9711: #include <sys/types.h>
1.1.1.3 root 9712: #ifdef HAVE_FLOAT_H
9713: #include <float.h>
1.1 root 9714: #endif
1.1.1.3 root 9715: #ifdef HAVE_LIMITS_H
9716: #include <limits.h>
9717: #endif
9718: int
9719: main ()
9720: {
9721: long double x; x = $max - $min;
9722: ;
9723: return 0;
1.1 root 9724: }
9725: _ACEOF
1.1.1.3 root 9726: rm -f conftest.$ac_objext
1.1.1.5 ! root 9727: if { (ac_try="$ac_compile"
! 9728: case "(($ac_try" in
! 9729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9730: *) ac_try_echo=$ac_try;;
! 9731: esac
! 9732: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9733: (eval "$ac_compile") 2>conftest.er1
1.1 root 9734: ac_status=$?
1.1.1.5 ! root 9735: grep -v '^ *+' conftest.er1 >conftest.err
! 9736: rm -f conftest.er1
! 9737: cat conftest.err >&5
1.1 root 9738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 9739: (exit $ac_status); } && {
! 9740: test -z "$ac_c_werror_flag" ||
! 9741: test ! -s conftest.err
! 9742: } && test -s conftest.$ac_objext; then
1.1.1.3 root 9743: ac_cv_float_limits_long_double=$limits ; break
1.1 root 9744: else
1.1.1.3 root 9745: echo "$as_me: failed program was:" >&5
1.1 root 9746: sed 's/^/| /' conftest.$ac_ext >&5
9747:
1.1.1.5 ! root 9748: ac_cv_float_limits_long_double=
1.1 root 9749: fi
1.1.1.5 ! root 9750:
! 9751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 9752: done
1.1 root 9753: fi
1.1.1.3 root 9754:
9755: if test "x$ac_cv_float_limits_long_double" = x; then
9756: { { echo "$as_me:$LINENO: error: can't determine the limits of long double" >&5
9757: echo "$as_me: error: can't determine the limits of long double" >&2;}
9758: { (exit 1); exit 1; }; }
1.1 root 9759: fi
1.1.1.5 ! root 9760: { echo "$as_me:$LINENO: result: $ac_cv_float_limits_long_double" >&5
! 9761: echo "${ECHO_T}$ac_cv_float_limits_long_double" >&6; }
1.1.1.3 root 9762: max=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9763: min=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 9764:
9765: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 9766: #define FLOAT_MAX_LONG_DOUBLE ($max)
9767: _ACEOF
9768:
9769:
9770: cat >>confdefs.h <<_ACEOF
9771: #define FLOAT_MIN_LONG_DOUBLE ($min)
1.1 root 9772: _ACEOF
9773:
9774:
1.1.1.3 root 9775: fi
1.1.1.5 ! root 9776: { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
! 9777: echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
1.1 root 9778: if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then
9779: echo $ECHO_N "(cached) $ECHO_C" >&6
9780: else
9781: cat >conftest.$ac_ext <<_ACEOF
9782: /* confdefs.h. */
9783: _ACEOF
9784: cat confdefs.h >>conftest.$ac_ext
9785: cat >>conftest.$ac_ext <<_ACEOF
9786: /* end confdefs.h. */
9787:
9788: #include <sys/types.h>
9789: #include <sys/socket.h>
9790:
9791: int
9792: main ()
9793: {
9794:
9795: int length;
9796: struct sockaddr sock;
9797: length = sock.sa_len;
9798:
9799: ;
9800: return 0;
9801: }
9802: _ACEOF
9803: rm -f conftest.$ac_objext
1.1.1.5 ! root 9804: if { (ac_try="$ac_compile"
! 9805: case "(($ac_try" in
! 9806: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9807: *) ac_try_echo=$ac_try;;
! 9808: esac
! 9809: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9810: (eval "$ac_compile") 2>conftest.er1
1.1 root 9811: ac_status=$?
1.1.1.5 ! root 9812: grep -v '^ *+' conftest.er1 >conftest.err
! 9813: rm -f conftest.er1
! 9814: cat conftest.err >&5
1.1 root 9815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 9816: (exit $ac_status); } && {
! 9817: test -z "$ac_c_werror_flag" ||
! 9818: test ! -s conftest.err
! 9819: } && test -s conftest.$ac_objext; then
1.1 root 9820: ac_cv_sys_sockaddr_sa_len=yes
9821: else
9822: echo "$as_me: failed program was:" >&5
9823: sed 's/^/| /' conftest.$ac_ext >&5
9824:
1.1.1.5 ! root 9825: ac_cv_sys_sockaddr_sa_len=no
1.1 root 9826: fi
1.1.1.5 ! root 9827:
! 9828: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 9829: fi
9830: if test $ac_cv_sys_sockaddr_sa_len = yes; then
1.1.1.5 ! root 9831: { echo "$as_me:$LINENO: result: yes" >&5
! 9832: echo "${ECHO_T}yes" >&6; }
1.1 root 9833:
9834: cat >>confdefs.h <<_ACEOF
9835: #define HAVE_SOCKADDR_SA_LEN
9836: _ACEOF
9837:
9838: else
1.1.1.5 ! root 9839: { echo "$as_me:$LINENO: result: no" >&5
! 9840: echo "${ECHO_T}no" >&6; }
1.1 root 9841: fi
9842:
9843:
9844: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.5 ! root 9845: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
! 9846: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.1 root 9847: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9848: echo $ECHO_N "(cached) $ECHO_C" >&6
9849: else
9850: ac_pattern="Autoconf.*'x'"
9851: cat >conftest.$ac_ext <<_ACEOF
9852: /* confdefs.h. */
9853: _ACEOF
9854: cat confdefs.h >>conftest.$ac_ext
9855: cat >>conftest.$ac_ext <<_ACEOF
9856: /* end confdefs.h. */
9857: #include <sgtty.h>
9858: Autoconf TIOCGETP
9859: _ACEOF
9860: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861: $EGREP "$ac_pattern" >/dev/null 2>&1; then
9862: ac_cv_prog_gcc_traditional=yes
9863: else
9864: ac_cv_prog_gcc_traditional=no
9865: fi
9866: rm -f conftest*
9867:
9868:
9869: if test $ac_cv_prog_gcc_traditional = no; then
9870: cat >conftest.$ac_ext <<_ACEOF
9871: /* confdefs.h. */
9872: _ACEOF
9873: cat confdefs.h >>conftest.$ac_ext
9874: cat >>conftest.$ac_ext <<_ACEOF
9875: /* end confdefs.h. */
9876: #include <termio.h>
9877: Autoconf TCGETA
9878: _ACEOF
9879: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880: $EGREP "$ac_pattern" >/dev/null 2>&1; then
9881: ac_cv_prog_gcc_traditional=yes
9882: fi
9883: rm -f conftest*
9884:
9885: fi
9886: fi
1.1.1.5 ! root 9887: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
! 9888: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.1 root 9889: if test $ac_cv_prog_gcc_traditional = yes; then
9890: CC="$CC -traditional"
9891: fi
9892: fi
9893:
1.1.1.5 ! root 9894: { echo "$as_me:$LINENO: checking for working memcmp" >&5
! 9895: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1 root 9896: if test "${ac_cv_func_memcmp_working+set}" = set; then
9897: echo $ECHO_N "(cached) $ECHO_C" >&6
9898: else
9899: if test "$cross_compiling" = yes; then
9900: ac_cv_func_memcmp_working=no
9901: else
9902: cat >conftest.$ac_ext <<_ACEOF
9903: /* confdefs.h. */
9904: _ACEOF
9905: cat confdefs.h >>conftest.$ac_ext
9906: cat >>conftest.$ac_ext <<_ACEOF
9907: /* end confdefs.h. */
1.1.1.5 ! root 9908: $ac_includes_default
1.1 root 9909: int
9910: main ()
9911: {
9912:
9913: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.5 ! root 9914: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1 root 9915: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.5 ! root 9916: return 1;
1.1 root 9917:
9918: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9919: or more and with at least one buffer not starting on a 4-byte boundary.
9920: William Lewis provided this test program. */
9921: {
9922: char foo[21];
9923: char bar[21];
9924: int i;
9925: for (i = 0; i < 4; i++)
9926: {
1.1.1.5 ! root 9927: char *a = foo + i;
! 9928: char *b = bar + i;
! 9929: strcpy (a, "--------01111111");
! 9930: strcpy (b, "--------10000000");
! 9931: if (memcmp (a, b, 16) >= 0)
! 9932: return 1;
1.1 root 9933: }
1.1.1.5 ! root 9934: return 0;
1.1 root 9935: }
9936:
9937: ;
9938: return 0;
9939: }
9940: _ACEOF
9941: rm -f conftest$ac_exeext
1.1.1.5 ! root 9942: if { (ac_try="$ac_link"
! 9943: case "(($ac_try" in
! 9944: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9945: *) ac_try_echo=$ac_try;;
! 9946: esac
! 9947: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9948: (eval "$ac_link") 2>&5
1.1 root 9949: ac_status=$?
9950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 9952: { (case "(($ac_try" in
! 9953: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9954: *) ac_try_echo=$ac_try;;
! 9955: esac
! 9956: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9957: (eval "$ac_try") 2>&5
1.1 root 9958: ac_status=$?
9959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960: (exit $ac_status); }; }; then
9961: ac_cv_func_memcmp_working=yes
9962: else
9963: echo "$as_me: program exited with status $ac_status" >&5
9964: echo "$as_me: failed program was:" >&5
9965: sed 's/^/| /' conftest.$ac_ext >&5
9966:
9967: ( exit $ac_status )
9968: ac_cv_func_memcmp_working=no
9969: fi
1.1.1.5 ! root 9970: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 9971: fi
1.1.1.5 ! root 9972:
! 9973:
1.1 root 9974: fi
1.1.1.5 ! root 9975: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 9976: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
! 9977: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
! 9978: *" memcmp.$ac_objext "* ) ;;
! 9979: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
! 9980: ;;
! 9981: esac
! 9982:
1.1 root 9983:
9984:
9985:
9986: for ac_header in stdlib.h unistd.h
9987: do
9988: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 9989: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 9990: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 9991: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 9992: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 9993: echo $ECHO_N "(cached) $ECHO_C" >&6
9994: fi
1.1.1.5 ! root 9995: ac_res=`eval echo '${'$as_ac_Header'}'`
! 9996: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 9997: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 9998: else
9999: # Is the header compilable?
1.1.1.5 ! root 10000: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 10001: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 10002: cat >conftest.$ac_ext <<_ACEOF
10003: /* confdefs.h. */
10004: _ACEOF
10005: cat confdefs.h >>conftest.$ac_ext
10006: cat >>conftest.$ac_ext <<_ACEOF
10007: /* end confdefs.h. */
10008: $ac_includes_default
10009: #include <$ac_header>
10010: _ACEOF
10011: rm -f conftest.$ac_objext
1.1.1.5 ! root 10012: if { (ac_try="$ac_compile"
! 10013: case "(($ac_try" in
! 10014: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10015: *) ac_try_echo=$ac_try;;
! 10016: esac
! 10017: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10018: (eval "$ac_compile") 2>conftest.er1
1.1 root 10019: ac_status=$?
1.1.1.5 ! root 10020: grep -v '^ *+' conftest.er1 >conftest.err
! 10021: rm -f conftest.er1
! 10022: cat conftest.err >&5
1.1 root 10023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10024: (exit $ac_status); } && {
! 10025: test -z "$ac_c_werror_flag" ||
! 10026: test ! -s conftest.err
! 10027: } && test -s conftest.$ac_objext; then
1.1 root 10028: ac_header_compiler=yes
10029: else
10030: echo "$as_me: failed program was:" >&5
10031: sed 's/^/| /' conftest.$ac_ext >&5
10032:
1.1.1.5 ! root 10033: ac_header_compiler=no
1.1 root 10034: fi
1.1.1.5 ! root 10035:
! 10036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 10037: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 10038: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 10039:
10040: # Is the header present?
1.1.1.5 ! root 10041: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 10042: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 10043: cat >conftest.$ac_ext <<_ACEOF
10044: /* confdefs.h. */
10045: _ACEOF
10046: cat confdefs.h >>conftest.$ac_ext
10047: cat >>conftest.$ac_ext <<_ACEOF
10048: /* end confdefs.h. */
10049: #include <$ac_header>
10050: _ACEOF
1.1.1.5 ! root 10051: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 10052: case "(($ac_try" in
! 10053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10054: *) ac_try_echo=$ac_try;;
! 10055: esac
! 10056: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10057: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 10058: ac_status=$?
10059: grep -v '^ *+' conftest.er1 >conftest.err
10060: rm -f conftest.er1
10061: cat conftest.err >&5
10062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10063: (exit $ac_status); } >/dev/null && {
! 10064: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 10065: test ! -s conftest.err
! 10066: }; then
1.1 root 10067: ac_header_preproc=yes
10068: else
10069: echo "$as_me: failed program was:" >&5
10070: sed 's/^/| /' conftest.$ac_ext >&5
10071:
10072: ac_header_preproc=no
10073: fi
1.1.1.5 ! root 10074:
1.1 root 10075: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 10076: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 10077: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 10078:
10079: # So? What about this header?
1.1.1.5 ! root 10080: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 10081: yes:no: )
1.1 root 10082: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10083: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 10084: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 10085: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 10086: ac_header_preproc=yes
1.1 root 10087: ;;
1.1.1.5 ! root 10088: no:yes:* )
1.1 root 10089: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10090: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.5 ! root 10091: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 10092: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 10093: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 10094: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 10095: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 10096: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 10097: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10098: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 10099: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 10100: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 10101:
1.1 root 10102: ;;
10103: esac
1.1.1.5 ! root 10104: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 10105: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 10106: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 10107: echo $ECHO_N "(cached) $ECHO_C" >&6
10108: else
1.1.1.5 ! root 10109: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 10110: fi
1.1.1.5 ! root 10111: ac_res=`eval echo '${'$as_ac_Header'}'`
! 10112: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 10113: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 10114:
10115: fi
10116: if test `eval echo '${'$as_ac_Header'}'` = yes; then
10117: cat >>confdefs.h <<_ACEOF
10118: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10119: _ACEOF
10120:
10121: fi
10122:
10123: done
10124:
10125:
10126: for ac_func in getpagesize
10127: do
10128: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.5 ! root 10129: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 10130: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 10131: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 10132: echo $ECHO_N "(cached) $ECHO_C" >&6
10133: else
10134: cat >conftest.$ac_ext <<_ACEOF
10135: /* confdefs.h. */
10136: _ACEOF
10137: cat confdefs.h >>conftest.$ac_ext
10138: cat >>conftest.$ac_ext <<_ACEOF
10139: /* end confdefs.h. */
1.1.1.5 ! root 10140: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 10141: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10142: #define $ac_func innocuous_$ac_func
! 10143:
1.1 root 10144: /* System header to define __stub macros and hopefully few prototypes,
10145: which can conflict with char $ac_func (); below.
10146: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 10148:
1.1 root 10149: #ifdef __STDC__
10150: # include <limits.h>
10151: #else
10152: # include <assert.h>
10153: #endif
1.1.1.5 ! root 10154:
! 10155: #undef $ac_func
! 10156:
! 10157: /* Override any GCC internal prototype to avoid an error.
! 10158: Use char because int might match the return type of a GCC
! 10159: builtin and then its argument prototype would still apply. */
1.1 root 10160: #ifdef __cplusplus
10161: extern "C"
10162: #endif
10163: char $ac_func ();
10164: /* The GNU C library defines this for functions which it implements
10165: to always fail with ENOSYS. Some functions are actually named
10166: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 10167: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 10168: choke me
10169: #endif
10170:
10171: int
10172: main ()
10173: {
1.1.1.5 ! root 10174: return $ac_func ();
1.1 root 10175: ;
10176: return 0;
10177: }
10178: _ACEOF
10179: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 10180: if { (ac_try="$ac_link"
! 10181: case "(($ac_try" in
! 10182: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10183: *) ac_try_echo=$ac_try;;
! 10184: esac
! 10185: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10186: (eval "$ac_link") 2>conftest.er1
1.1 root 10187: ac_status=$?
1.1.1.5 ! root 10188: grep -v '^ *+' conftest.er1 >conftest.err
! 10189: rm -f conftest.er1
! 10190: cat conftest.err >&5
1.1 root 10191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10192: (exit $ac_status); } && {
! 10193: test -z "$ac_c_werror_flag" ||
! 10194: test ! -s conftest.err
! 10195: } && test -s conftest$ac_exeext &&
! 10196: $as_test_x conftest$ac_exeext; then
1.1 root 10197: eval "$as_ac_var=yes"
10198: else
10199: echo "$as_me: failed program was:" >&5
10200: sed 's/^/| /' conftest.$ac_ext >&5
10201:
1.1.1.5 ! root 10202: eval "$as_ac_var=no"
1.1 root 10203: fi
1.1.1.5 ! root 10204:
! 10205: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10206: conftest$ac_exeext conftest.$ac_ext
1.1 root 10207: fi
1.1.1.5 ! root 10208: ac_res=`eval echo '${'$as_ac_var'}'`
! 10209: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 10210: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 10211: if test `eval echo '${'$as_ac_var'}'` = yes; then
10212: cat >>confdefs.h <<_ACEOF
10213: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10214: _ACEOF
10215:
10216: fi
10217: done
10218:
1.1.1.5 ! root 10219: { echo "$as_me:$LINENO: checking for working mmap" >&5
! 10220: echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
1.1 root 10221: if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10222: echo $ECHO_N "(cached) $ECHO_C" >&6
10223: else
10224: if test "$cross_compiling" = yes; then
10225: ac_cv_func_mmap_fixed_mapped=no
10226: else
10227: cat >conftest.$ac_ext <<_ACEOF
10228: /* confdefs.h. */
10229: _ACEOF
10230: cat confdefs.h >>conftest.$ac_ext
10231: cat >>conftest.$ac_ext <<_ACEOF
10232: /* end confdefs.h. */
10233: $ac_includes_default
10234: /* malloc might have been renamed as rpl_malloc. */
10235: #undef malloc
10236:
10237: /* Thanks to Mike Haertel and Jim Avera for this test.
10238: Here is a matrix of mmap possibilities:
10239: mmap private not fixed
10240: mmap private fixed at somewhere currently unmapped
10241: mmap private fixed at somewhere already mapped
10242: mmap shared not fixed
10243: mmap shared fixed at somewhere currently unmapped
10244: mmap shared fixed at somewhere already mapped
10245: For private mappings, we should verify that changes cannot be read()
10246: back from the file, nor mmap's back from the file at a different
10247: address. (There have been systems where private was not correctly
10248: implemented like the infamous i386 svr4.0, and systems where the
10249: VM page cache was not coherent with the file system buffer cache
10250: like early versions of FreeBSD and possibly contemporary NetBSD.)
10251: For shared mappings, we should conversely verify that changes get
10252: propagated back to all the places they're supposed to be.
10253:
10254: Grep wants private fixed already mapped.
10255: The main things grep needs to know about mmap are:
10256: * does it exist and is it safe to write into the mmap'd area
10257: * how to use it (BSD variants) */
10258:
10259: #include <fcntl.h>
10260: #include <sys/mman.h>
10261:
1.1.1.5 ! root 10262: #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
1.1 root 10263: char *malloc ();
10264: #endif
10265:
10266: /* This mess was copied from the GNU getpagesize.h. */
1.1.1.5 ! root 10267: #ifndef HAVE_GETPAGESIZE
1.1 root 10268: /* Assume that all systems that can run configure have sys/param.h. */
1.1.1.5 ! root 10269: # ifndef HAVE_SYS_PARAM_H
1.1 root 10270: # define HAVE_SYS_PARAM_H 1
10271: # endif
10272:
10273: # ifdef _SC_PAGESIZE
10274: # define getpagesize() sysconf(_SC_PAGESIZE)
10275: # else /* no _SC_PAGESIZE */
1.1.1.5 ! root 10276: # ifdef HAVE_SYS_PARAM_H
1.1 root 10277: # include <sys/param.h>
10278: # ifdef EXEC_PAGESIZE
10279: # define getpagesize() EXEC_PAGESIZE
10280: # else /* no EXEC_PAGESIZE */
10281: # ifdef NBPG
10282: # define getpagesize() NBPG * CLSIZE
10283: # ifndef CLSIZE
10284: # define CLSIZE 1
10285: # endif /* no CLSIZE */
10286: # else /* no NBPG */
10287: # ifdef NBPC
10288: # define getpagesize() NBPC
10289: # else /* no NBPC */
10290: # ifdef PAGESIZE
10291: # define getpagesize() PAGESIZE
10292: # endif /* PAGESIZE */
10293: # endif /* no NBPC */
10294: # endif /* no NBPG */
10295: # endif /* no EXEC_PAGESIZE */
10296: # else /* no HAVE_SYS_PARAM_H */
10297: # define getpagesize() 8192 /* punt totally */
10298: # endif /* no HAVE_SYS_PARAM_H */
10299: # endif /* no _SC_PAGESIZE */
10300:
10301: #endif /* no HAVE_GETPAGESIZE */
10302:
10303: int
10304: main ()
10305: {
10306: char *data, *data2, *data3;
10307: int i, pagesize;
10308: int fd;
10309:
10310: pagesize = getpagesize ();
10311:
10312: /* First, make a file with some known garbage in it. */
10313: data = (char *) malloc (pagesize);
10314: if (!data)
1.1.1.5 ! root 10315: return 1;
1.1 root 10316: for (i = 0; i < pagesize; ++i)
10317: *(data + i) = rand ();
10318: umask (0);
10319: fd = creat ("conftest.mmap", 0600);
10320: if (fd < 0)
1.1.1.5 ! root 10321: return 1;
1.1 root 10322: if (write (fd, data, pagesize) != pagesize)
1.1.1.5 ! root 10323: return 1;
1.1 root 10324: close (fd);
10325:
10326: /* Next, try to mmap the file at a fixed address which already has
10327: something else allocated at it. If we can, also make sure that
10328: we see the same garbage. */
10329: fd = open ("conftest.mmap", O_RDWR);
10330: if (fd < 0)
1.1.1.5 ! root 10331: return 1;
1.1 root 10332: data2 = (char *) malloc (2 * pagesize);
10333: if (!data2)
1.1.1.5 ! root 10334: return 1;
! 10335: data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
1.1 root 10336: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
1.1.1.5 ! root 10337: MAP_PRIVATE | MAP_FIXED, fd, 0L))
! 10338: return 1;
1.1 root 10339: for (i = 0; i < pagesize; ++i)
10340: if (*(data + i) != *(data2 + i))
1.1.1.5 ! root 10341: return 1;
1.1 root 10342:
10343: /* Finally, make sure that changes to the mapped area do not
10344: percolate back to the file as seen by read(). (This is a bug on
10345: some variants of i386 svr4.0.) */
10346: for (i = 0; i < pagesize; ++i)
10347: *(data2 + i) = *(data2 + i) + 1;
10348: data3 = (char *) malloc (pagesize);
10349: if (!data3)
1.1.1.5 ! root 10350: return 1;
1.1 root 10351: if (read (fd, data3, pagesize) != pagesize)
1.1.1.5 ! root 10352: return 1;
1.1 root 10353: for (i = 0; i < pagesize; ++i)
10354: if (*(data + i) != *(data3 + i))
1.1.1.5 ! root 10355: return 1;
1.1 root 10356: close (fd);
1.1.1.5 ! root 10357: return 0;
1.1 root 10358: }
10359: _ACEOF
10360: rm -f conftest$ac_exeext
1.1.1.5 ! root 10361: if { (ac_try="$ac_link"
! 10362: case "(($ac_try" in
! 10363: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10364: *) ac_try_echo=$ac_try;;
! 10365: esac
! 10366: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10367: (eval "$ac_link") 2>&5
1.1 root 10368: ac_status=$?
10369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 10371: { (case "(($ac_try" in
! 10372: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10373: *) ac_try_echo=$ac_try;;
! 10374: esac
! 10375: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10376: (eval "$ac_try") 2>&5
1.1 root 10377: ac_status=$?
10378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379: (exit $ac_status); }; }; then
10380: ac_cv_func_mmap_fixed_mapped=yes
10381: else
10382: echo "$as_me: program exited with status $ac_status" >&5
10383: echo "$as_me: failed program was:" >&5
10384: sed 's/^/| /' conftest.$ac_ext >&5
10385:
10386: ( exit $ac_status )
10387: ac_cv_func_mmap_fixed_mapped=no
10388: fi
1.1.1.5 ! root 10389: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 10390: fi
1.1.1.5 ! root 10391:
! 10392:
1.1 root 10393: fi
1.1.1.5 ! root 10394: { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
! 10395: echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
1.1 root 10396: if test $ac_cv_func_mmap_fixed_mapped = yes; then
10397:
10398: cat >>confdefs.h <<\_ACEOF
10399: #define HAVE_MMAP 1
10400: _ACEOF
10401:
10402: fi
10403: rm -f conftest.mmap
10404:
1.1.1.5 ! root 10405: { echo "$as_me:$LINENO: checking for bswap16" >&5
! 10406: echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
1.1.1.3 root 10407: if test "${ac_cv_have_bswap16+set}" = set; then
10408: echo $ECHO_N "(cached) $ECHO_C" >&6
10409: else
10410: ac_func_long_LIBS=$LIBS
10411: LIBS="${LIBS-} "
10412: cat >conftest.$ac_ext <<_ACEOF
10413: /* confdefs.h. */
10414: _ACEOF
10415: cat confdefs.h >>conftest.$ac_ext
10416: cat >>conftest.$ac_ext <<_ACEOF
10417: /* end confdefs.h. */
10418:
10419:
10420: #ifdef HAVE_SYS_BSWAP_H
10421: #include <sys/bswap.h>
10422: #endif
10423:
10424:
10425: int
10426: main ()
10427: {
10428:
10429:
10430: unsigned int x;
10431:
10432: x = bswap16(0x1122);
10433:
10434:
10435: ;
10436: return 0;
10437: }
10438: _ACEOF
10439: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 10440: if { (ac_try="$ac_link"
! 10441: case "(($ac_try" in
! 10442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10443: *) ac_try_echo=$ac_try;;
! 10444: esac
! 10445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10446: (eval "$ac_link") 2>conftest.er1
1.1.1.3 root 10447: ac_status=$?
1.1.1.5 ! root 10448: grep -v '^ *+' conftest.er1 >conftest.err
! 10449: rm -f conftest.er1
! 10450: cat conftest.err >&5
1.1.1.3 root 10451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10452: (exit $ac_status); } && {
! 10453: test -z "$ac_c_werror_flag" ||
! 10454: test ! -s conftest.err
! 10455: } && test -s conftest$ac_exeext &&
! 10456: $as_test_x conftest$ac_exeext; then
1.1.1.3 root 10457: ac_cv_have_bswap16=yes
10458: else
10459: echo "$as_me: failed program was:" >&5
10460: sed 's/^/| /' conftest.$ac_ext >&5
10461:
1.1.1.5 ! root 10462: ac_cv_have_bswap16=no
1.1.1.3 root 10463: fi
1.1.1.5 ! root 10464:
! 10465: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10466: conftest$ac_exeext conftest.$ac_ext
1.1.1.3 root 10467: LIBS=$ac_func_long_LIBS
10468: fi
1.1.1.5 ! root 10469: { echo "$as_me:$LINENO: result: $ac_cv_have_bswap16" >&5
! 10470: echo "${ECHO_T}$ac_cv_have_bswap16" >&6; }
1.1.1.3 root 10471: if test $ac_cv_have_bswap16 = yes; then
10472:
10473: cat >>confdefs.h <<_ACEOF
10474: #define HAVE_BSWAP16
10475: _ACEOF
10476:
10477: fi
10478:
1.1.1.5 ! root 10479: { echo "$as_me:$LINENO: checking for bswap32" >&5
! 10480: echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
1.1.1.3 root 10481: if test "${ac_cv_have_bswap32+set}" = set; then
10482: echo $ECHO_N "(cached) $ECHO_C" >&6
10483: else
10484: ac_func_long_LIBS=$LIBS
10485: LIBS="${LIBS-} "
10486: cat >conftest.$ac_ext <<_ACEOF
10487: /* confdefs.h. */
10488: _ACEOF
10489: cat confdefs.h >>conftest.$ac_ext
10490: cat >>conftest.$ac_ext <<_ACEOF
10491: /* end confdefs.h. */
10492:
10493:
10494: #ifdef HAVE_SYS_BSWAP_H
10495: #include <sys/bswap.h>
10496: #endif
10497:
10498:
10499: int
10500: main ()
10501: {
10502:
10503:
10504: unsigned int x;
10505:
10506: x = bswap32(0x11223344);
10507:
10508:
10509: ;
10510: return 0;
10511: }
10512: _ACEOF
10513: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 10514: if { (ac_try="$ac_link"
! 10515: case "(($ac_try" in
! 10516: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10517: *) ac_try_echo=$ac_try;;
! 10518: esac
! 10519: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10520: (eval "$ac_link") 2>conftest.er1
1.1.1.3 root 10521: ac_status=$?
1.1.1.5 ! root 10522: grep -v '^ *+' conftest.er1 >conftest.err
! 10523: rm -f conftest.er1
! 10524: cat conftest.err >&5
1.1.1.3 root 10525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10526: (exit $ac_status); } && {
! 10527: test -z "$ac_c_werror_flag" ||
! 10528: test ! -s conftest.err
! 10529: } && test -s conftest$ac_exeext &&
! 10530: $as_test_x conftest$ac_exeext; then
1.1.1.3 root 10531: ac_cv_have_bswap32=yes
10532: else
10533: echo "$as_me: failed program was:" >&5
10534: sed 's/^/| /' conftest.$ac_ext >&5
10535:
1.1.1.5 ! root 10536: ac_cv_have_bswap32=no
1.1.1.3 root 10537: fi
1.1.1.5 ! root 10538:
! 10539: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10540: conftest$ac_exeext conftest.$ac_ext
1.1.1.3 root 10541: LIBS=$ac_func_long_LIBS
10542: fi
1.1.1.5 ! root 10543: { echo "$as_me:$LINENO: result: $ac_cv_have_bswap32" >&5
! 10544: echo "${ECHO_T}$ac_cv_have_bswap32" >&6; }
1.1.1.3 root 10545: if test $ac_cv_have_bswap32 = yes; then
10546:
10547: cat >>confdefs.h <<_ACEOF
10548: #define HAVE_BSWAP32
10549: _ACEOF
10550:
10551: fi
10552:
1.1.1.5 ! root 10553: if test $ac_cv_sizeof_long = 8; then
! 10554: { echo "$as_me:$LINENO: checking for bswap64" >&5
! 10555: echo $ECHO_N "checking for bswap64... $ECHO_C" >&6; }
! 10556: if test "${ac_cv_have_bswap64+set}" = set; then
! 10557: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10558: else
! 10559: ac_func_long_LIBS=$LIBS
! 10560: LIBS="${LIBS-} "
! 10561: cat >conftest.$ac_ext <<_ACEOF
! 10562: /* confdefs.h. */
! 10563: _ACEOF
! 10564: cat confdefs.h >>conftest.$ac_ext
! 10565: cat >>conftest.$ac_ext <<_ACEOF
! 10566: /* end confdefs.h. */
! 10567:
! 10568:
! 10569: #ifdef HAVE_SYS_BSWAP_H
! 10570: #include <sys/bswap.h>
! 10571: #endif
! 10572:
! 10573:
! 10574: int
! 10575: main ()
! 10576: {
! 10577:
! 10578:
! 10579: unsigned long x;
! 10580:
! 10581: x = bswap64(0x11223344);
! 10582:
! 10583:
! 10584: ;
! 10585: return 0;
! 10586: }
! 10587: _ACEOF
! 10588: rm -f conftest.$ac_objext conftest$ac_exeext
! 10589: if { (ac_try="$ac_link"
! 10590: case "(($ac_try" in
! 10591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10592: *) ac_try_echo=$ac_try;;
! 10593: esac
! 10594: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10595: (eval "$ac_link") 2>conftest.er1
! 10596: ac_status=$?
! 10597: grep -v '^ *+' conftest.er1 >conftest.err
! 10598: rm -f conftest.er1
! 10599: cat conftest.err >&5
! 10600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10601: (exit $ac_status); } && {
! 10602: test -z "$ac_c_werror_flag" ||
! 10603: test ! -s conftest.err
! 10604: } && test -s conftest$ac_exeext &&
! 10605: $as_test_x conftest$ac_exeext; then
! 10606: ac_cv_have_bswap64=yes
! 10607: else
! 10608: echo "$as_me: failed program was:" >&5
! 10609: sed 's/^/| /' conftest.$ac_ext >&5
! 10610:
! 10611: ac_cv_have_bswap64=no
! 10612: fi
! 10613:
! 10614: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10615: conftest$ac_exeext conftest.$ac_ext
! 10616: LIBS=$ac_func_long_LIBS
! 10617: fi
! 10618: { echo "$as_me:$LINENO: result: $ac_cv_have_bswap64" >&5
! 10619: echo "${ECHO_T}$ac_cv_have_bswap64" >&6; }
! 10620: if test $ac_cv_have_bswap64 = yes; then
! 10621:
! 10622: cat >>confdefs.h <<_ACEOF
! 10623: #define HAVE_BSWAP64
! 10624: _ACEOF
! 10625:
! 10626: fi
! 10627:
! 10628: fi
! 10629: { echo "$as_me:$LINENO: checking for isinff" >&5
! 10630: echo $ECHO_N "checking for isinff... $ECHO_C" >&6; }
1.1.1.3 root 10631: if test "${ac_cv_have_isinff+set}" = set; then
10632: echo $ECHO_N "(cached) $ECHO_C" >&6
10633: else
10634: ac_func_long_LIBS=$LIBS
10635: LIBS="${LIBS-} -lm"
10636: cat >conftest.$ac_ext <<_ACEOF
10637: /* confdefs.h. */
10638: _ACEOF
10639: cat confdefs.h >>conftest.$ac_ext
10640: cat >>conftest.$ac_ext <<_ACEOF
10641: /* end confdefs.h. */
10642:
10643:
10644: #include <math.h>
10645:
10646:
10647: int
10648: main ()
10649: {
10650:
10651:
10652: float x;
10653: int y;
10654:
10655: x = 1;
10656: y = isinff(x);
10657:
10658:
10659: ;
10660: return 0;
10661: }
10662: _ACEOF
10663: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 10664: if { (ac_try="$ac_link"
! 10665: case "(($ac_try" in
! 10666: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10667: *) ac_try_echo=$ac_try;;
! 10668: esac
! 10669: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10670: (eval "$ac_link") 2>conftest.er1
1.1.1.3 root 10671: ac_status=$?
1.1.1.5 ! root 10672: grep -v '^ *+' conftest.er1 >conftest.err
! 10673: rm -f conftest.er1
! 10674: cat conftest.err >&5
1.1.1.3 root 10675: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10676: (exit $ac_status); } && {
! 10677: test -z "$ac_c_werror_flag" ||
! 10678: test ! -s conftest.err
! 10679: } && test -s conftest$ac_exeext &&
! 10680: $as_test_x conftest$ac_exeext; then
1.1.1.3 root 10681: ac_cv_have_isinff=yes
10682: else
10683: echo "$as_me: failed program was:" >&5
10684: sed 's/^/| /' conftest.$ac_ext >&5
10685:
1.1.1.5 ! root 10686: ac_cv_have_isinff=no
1.1.1.3 root 10687: fi
1.1.1.5 ! root 10688:
! 10689: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10690: conftest$ac_exeext conftest.$ac_ext
1.1.1.3 root 10691: LIBS=$ac_func_long_LIBS
10692: fi
1.1.1.5 ! root 10693: { echo "$as_me:$LINENO: result: $ac_cv_have_isinff" >&5
! 10694: echo "${ECHO_T}$ac_cv_have_isinff" >&6; }
1.1.1.3 root 10695: if test $ac_cv_have_isinff = yes; then
10696:
10697: cat >>confdefs.h <<_ACEOF
10698: #define HAVE_ISINFF
10699: _ACEOF
10700:
10701: fi
10702:
1.1 root 10703:
10704: for ac_prog in perl4.036 perl4 perl perl5
10705: do
10706: # Extract the first word of "$ac_prog", so it can be a program name with args.
10707: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 10708: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 10709: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 10710: if test "${ac_cv_path_PERL+set}" = set; then
10711: echo $ECHO_N "(cached) $ECHO_C" >&6
10712: else
10713: case $PERL in
10714: [\\/]* | ?:[\\/]*)
10715: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10716: ;;
10717: *)
10718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719: for as_dir in $PATH
10720: do
10721: IFS=$as_save_IFS
10722: test -z "$as_dir" && as_dir=.
10723: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 10724: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 10725: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10726: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727: break 2
10728: fi
10729: done
10730: done
1.1.1.5 ! root 10731: IFS=$as_save_IFS
1.1 root 10732:
10733: ;;
10734: esac
10735: fi
10736: PERL=$ac_cv_path_PERL
10737: if test -n "$PERL"; then
1.1.1.5 ! root 10738: { echo "$as_me:$LINENO: result: $PERL" >&5
! 10739: echo "${ECHO_T}$PERL" >&6; }
1.1 root 10740: else
1.1.1.5 ! root 10741: { echo "$as_me:$LINENO: result: no" >&5
! 10742: echo "${ECHO_T}no" >&6; }
1.1 root 10743: fi
10744:
1.1.1.5 ! root 10745:
1.1.1.2 root 10746: test -n "$PERL" && break
10747: done
10748: test -n "$PERL" || PERL="no"
10749:
10750:
10751:
10752: TME_HOSTS="posix"
10753:
1.1.1.5 ! root 10754: { echo "$as_me:$LINENO: checking for AF_LINK support" >&5
! 10755: echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6; }
1.1.1.2 root 10756: cat >conftest.$ac_ext <<_ACEOF
10757: /* confdefs.h. */
10758: _ACEOF
10759: cat confdefs.h >>conftest.$ac_ext
10760: cat >>conftest.$ac_ext <<_ACEOF
10761: /* end confdefs.h. */
10762:
10763: #include <sys/socket.h>
10764: #ifdef AF_LINK
10765: _tme_has_af_link
10766: #endif
10767:
10768: _ACEOF
10769: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10770: $EGREP "_tme_has_af_link" >/dev/null 2>&1; then
10771:
1.1.1.5 ! root 10772: { echo "$as_me:$LINENO: result: yes" >&5
! 10773: echo "${ECHO_T}yes" >&6; }
1.1.1.2 root 10774:
10775: cat >>confdefs.h <<\_ACEOF
10776: #define HAVE_AF_LINK
10777: _ACEOF
10778:
10779:
10780: else
10781:
1.1.1.5 ! root 10782: { echo "$as_me:$LINENO: result: no" >&5
! 10783: echo "${ECHO_T}no" >&6; }
1.1.1.2 root 10784:
10785: fi
10786: rm -f conftest*
10787:
10788:
10789: tme_raw_type=
10790: if test "${ac_cv_header_net_bpf_h+set}" = set; then
1.1.1.5 ! root 10791: { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
! 10792: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
1.1.1.2 root 10793: if test "${ac_cv_header_net_bpf_h+set}" = set; then
10794: echo $ECHO_N "(cached) $ECHO_C" >&6
10795: fi
1.1.1.5 ! root 10796: { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
! 10797: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
1.1.1.2 root 10798: else
10799: # Is the header compilable?
1.1.1.5 ! root 10800: { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
! 10801: echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
1.1.1.2 root 10802: cat >conftest.$ac_ext <<_ACEOF
10803: /* confdefs.h. */
10804: _ACEOF
10805: cat confdefs.h >>conftest.$ac_ext
10806: cat >>conftest.$ac_ext <<_ACEOF
10807: /* end confdefs.h. */
10808: $ac_includes_default
10809: #include <net/bpf.h>
10810: _ACEOF
10811: rm -f conftest.$ac_objext
1.1.1.5 ! root 10812: if { (ac_try="$ac_compile"
! 10813: case "(($ac_try" in
! 10814: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10815: *) ac_try_echo=$ac_try;;
! 10816: esac
! 10817: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10818: (eval "$ac_compile") 2>conftest.er1
1.1.1.2 root 10819: ac_status=$?
1.1.1.5 ! root 10820: grep -v '^ *+' conftest.er1 >conftest.err
! 10821: rm -f conftest.er1
! 10822: cat conftest.err >&5
1.1.1.2 root 10823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10824: (exit $ac_status); } && {
! 10825: test -z "$ac_c_werror_flag" ||
! 10826: test ! -s conftest.err
! 10827: } && test -s conftest.$ac_objext; then
1.1.1.2 root 10828: ac_header_compiler=yes
10829: else
10830: echo "$as_me: failed program was:" >&5
10831: sed 's/^/| /' conftest.$ac_ext >&5
10832:
1.1.1.5 ! root 10833: ac_header_compiler=no
1.1.1.2 root 10834: fi
1.1.1.5 ! root 10835:
! 10836: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 10837: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 10838: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.2 root 10839:
10840: # Is the header present?
1.1.1.5 ! root 10841: { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
! 10842: echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
1.1.1.2 root 10843: cat >conftest.$ac_ext <<_ACEOF
10844: /* confdefs.h. */
10845: _ACEOF
10846: cat confdefs.h >>conftest.$ac_ext
10847: cat >>conftest.$ac_ext <<_ACEOF
10848: /* end confdefs.h. */
10849: #include <net/bpf.h>
10850: _ACEOF
1.1.1.5 ! root 10851: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 10852: case "(($ac_try" in
! 10853: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10854: *) ac_try_echo=$ac_try;;
! 10855: esac
! 10856: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10857: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.2 root 10858: ac_status=$?
10859: grep -v '^ *+' conftest.er1 >conftest.err
10860: rm -f conftest.er1
10861: cat conftest.err >&5
10862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 10863: (exit $ac_status); } >/dev/null && {
! 10864: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 10865: test ! -s conftest.err
! 10866: }; then
1.1.1.2 root 10867: ac_header_preproc=yes
10868: else
10869: echo "$as_me: failed program was:" >&5
10870: sed 's/^/| /' conftest.$ac_ext >&5
10871:
10872: ac_header_preproc=no
10873: fi
1.1.1.5 ! root 10874:
1.1.1.2 root 10875: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 10876: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 10877: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.2 root 10878:
10879: # So? What about this header?
1.1.1.5 ! root 10880: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 10881: yes:no: )
1.1.1.2 root 10882: { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10883: echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 10884: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
! 10885: echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
! 10886: ac_header_preproc=yes
1.1.1.2 root 10887: ;;
1.1.1.5 ! root 10888: no:yes:* )
1.1.1.2 root 10889: { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
10890: echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
1.1.1.5 ! root 10891: { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
! 10892: echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
! 10893: { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
! 10894: echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
! 10895: { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
! 10896: echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
1.1.1.2 root 10897: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
10898: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 10899: { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
! 10900: echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
! 10901:
1.1.1.2 root 10902: ;;
10903: esac
1.1.1.5 ! root 10904: { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
! 10905: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
1.1.1.2 root 10906: if test "${ac_cv_header_net_bpf_h+set}" = set; then
10907: echo $ECHO_N "(cached) $ECHO_C" >&6
10908: else
10909: ac_cv_header_net_bpf_h=$ac_header_preproc
10910: fi
1.1.1.5 ! root 10911: { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
! 10912: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
1.1.1.2 root 10913:
10914: fi
10915: if test $ac_cv_header_net_bpf_h = yes; then
10916: cat >conftest.$ac_ext <<_ACEOF
10917: /* confdefs.h. */
10918: _ACEOF
10919: cat confdefs.h >>conftest.$ac_ext
10920: cat >>conftest.$ac_ext <<_ACEOF
10921: /* end confdefs.h. */
10922: #include <net/bpf.h>
10923: #ifdef BIOCSHDRCMPLT
10924: found_BIOCSHDRCMPLT
10925: #endif
10926:
10927: _ACEOF
10928: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10929: $EGREP "found_BIOCSHDRCMPLT" >/dev/null 2>&1; then
10930: tme_raw_type=bpf
10931: fi
10932: rm -f conftest*
10933:
10934: fi
10935:
10936:
1.1.1.5 ! root 10937: { echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5
! 10938: echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6; }
1.1.1.2 root 10939: case "x$tme_raw_type" in
10940: xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
10941: x) tme_raw_type=none ;;
10942: esac
1.1.1.5 ! root 10943: { echo "$as_me:$LINENO: result: $tme_raw_type" >&5
! 10944: echo "${ECHO_T}$tme_raw_type" >&6; }
1.1.1.2 root 10945:
1.1.1.5 ! root 10946: { echo "$as_me:$LINENO: checking for X" >&5
! 10947: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
1.1.1.2 root 10948:
10949:
1.1.1.5 ! root 10950: # Check whether --with-x was given.
1.1.1.2 root 10951: if test "${with_x+set}" = set; then
1.1.1.5 ! root 10952: withval=$with_x;
! 10953: fi
1.1.1.2 root 10954:
10955: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10956: if test "x$with_x" = xno; then
10957: # The user explicitly disabled X.
10958: have_x=disabled
10959: else
1.1.1.5 ! root 10960: case $x_includes,$x_libraries in #(
! 10961: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
! 10962: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
! 10963: { (exit 1); exit 1; }; };; #(
! 10964: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.1.1.2 root 10965: echo $ECHO_N "(cached) $ECHO_C" >&6
10966: else
10967: # One or both of the vars are not set, and there is no cached value.
10968: ac_x_includes=no ac_x_libraries=no
1.1.1.5 ! root 10969: rm -f -r conftest.dir
1.1.1.2 root 10970: if mkdir conftest.dir; then
10971: cd conftest.dir
10972: cat >Imakefile <<'_ACEOF'
1.1.1.5 ! root 10973: incroot:
! 10974: @echo incroot='${INCROOT}'
! 10975: usrlibdir:
! 10976: @echo usrlibdir='${USRLIBDIR}'
! 10977: libdir:
! 10978: @echo libdir='${LIBDIR}'
1.1.1.2 root 10979: _ACEOF
1.1.1.5 ! root 10980: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.1.1.2 root 10981: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.5 ! root 10982: for ac_var in incroot usrlibdir libdir; do
! 10983: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
! 10984: done
1.1.1.2 root 10985: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10986: for ac_extension in a so sl; do
1.1.1.5 ! root 10987: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
! 10988: test -f "$ac_im_libdir/libX11.$ac_extension"; then
! 10989: ac_im_usrlibdir=$ac_im_libdir; break
1.1.1.2 root 10990: fi
10991: done
10992: # Screen out bogus values from the imake configuration. They are
10993: # bogus both because they are the default anyway, and because
10994: # using them would break gcc on systems where it needs fixed includes.
10995: case $ac_im_incroot in
1.1.1.5 ! root 10996: /usr/include) ac_x_includes= ;;
1.1.1.2 root 10997: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10998: esac
10999: case $ac_im_usrlibdir in
11000: /usr/lib | /lib) ;;
11001: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11002: esac
11003: fi
11004: cd ..
1.1.1.5 ! root 11005: rm -f -r conftest.dir
1.1.1.2 root 11006: fi
11007:
11008: # Standard set of common directories for X headers.
11009: # Check X11 before X11Rn because it is often a symlink to the current release.
11010: ac_x_header_dirs='
11011: /usr/X11/include
11012: /usr/X11R6/include
11013: /usr/X11R5/include
11014: /usr/X11R4/include
11015:
11016: /usr/include/X11
11017: /usr/include/X11R6
11018: /usr/include/X11R5
11019: /usr/include/X11R4
11020:
11021: /usr/local/X11/include
11022: /usr/local/X11R6/include
11023: /usr/local/X11R5/include
11024: /usr/local/X11R4/include
11025:
11026: /usr/local/include/X11
11027: /usr/local/include/X11R6
11028: /usr/local/include/X11R5
11029: /usr/local/include/X11R4
11030:
11031: /usr/X386/include
11032: /usr/x386/include
11033: /usr/XFree86/include/X11
11034:
11035: /usr/include
11036: /usr/local/include
11037: /usr/unsupported/include
11038: /usr/athena/include
11039: /usr/local/x11r5/include
11040: /usr/lpp/Xamples/include
11041:
11042: /usr/openwin/include
11043: /usr/openwin/share/include'
11044:
11045: if test "$ac_x_includes" = no; then
1.1.1.5 ! root 11046: # Guess where to find include files, by looking for Xlib.h.
1.1.1.2 root 11047: # First, try using that file with no special directory specified.
11048: cat >conftest.$ac_ext <<_ACEOF
11049: /* confdefs.h. */
11050: _ACEOF
11051: cat confdefs.h >>conftest.$ac_ext
11052: cat >>conftest.$ac_ext <<_ACEOF
11053: /* end confdefs.h. */
1.1.1.5 ! root 11054: #include <X11/Xlib.h>
1.1.1.2 root 11055: _ACEOF
1.1.1.5 ! root 11056: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11057: case "(($ac_try" in
! 11058: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11059: *) ac_try_echo=$ac_try;;
! 11060: esac
! 11061: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11062: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.2 root 11063: ac_status=$?
11064: grep -v '^ *+' conftest.er1 >conftest.err
11065: rm -f conftest.er1
11066: cat conftest.err >&5
11067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11068: (exit $ac_status); } >/dev/null && {
! 11069: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11070: test ! -s conftest.err
! 11071: }; then
1.1.1.2 root 11072: # We can compile using X headers with no special include directory.
11073: ac_x_includes=
11074: else
11075: echo "$as_me: failed program was:" >&5
11076: sed 's/^/| /' conftest.$ac_ext >&5
11077:
11078: for ac_dir in $ac_x_header_dirs; do
1.1.1.5 ! root 11079: if test -r "$ac_dir/X11/Xlib.h"; then
1.1.1.2 root 11080: ac_x_includes=$ac_dir
11081: break
11082: fi
11083: done
11084: fi
1.1.1.5 ! root 11085:
1.1.1.2 root 11086: rm -f conftest.err conftest.$ac_ext
11087: fi # $ac_x_includes = no
11088:
11089: if test "$ac_x_libraries" = no; then
11090: # Check for the libraries.
11091: # See if we find them without any special options.
11092: # Don't add to $LIBS permanently.
11093: ac_save_LIBS=$LIBS
1.1.1.5 ! root 11094: LIBS="-lX11 $LIBS"
1.1.1.2 root 11095: cat >conftest.$ac_ext <<_ACEOF
11096: /* confdefs.h. */
11097: _ACEOF
11098: cat confdefs.h >>conftest.$ac_ext
11099: cat >>conftest.$ac_ext <<_ACEOF
11100: /* end confdefs.h. */
1.1.1.5 ! root 11101: #include <X11/Xlib.h>
1.1.1.2 root 11102: int
11103: main ()
11104: {
1.1.1.5 ! root 11105: XrmInitialize ()
1.1.1.2 root 11106: ;
11107: return 0;
11108: }
11109: _ACEOF
11110: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11111: if { (ac_try="$ac_link"
! 11112: case "(($ac_try" in
! 11113: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11114: *) ac_try_echo=$ac_try;;
! 11115: esac
! 11116: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11117: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11118: ac_status=$?
1.1.1.5 ! root 11119: grep -v '^ *+' conftest.er1 >conftest.err
! 11120: rm -f conftest.er1
! 11121: cat conftest.err >&5
1.1.1.2 root 11122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11123: (exit $ac_status); } && {
! 11124: test -z "$ac_c_werror_flag" ||
! 11125: test ! -s conftest.err
! 11126: } && test -s conftest$ac_exeext &&
! 11127: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11128: LIBS=$ac_save_LIBS
11129: # We can link X programs with no special library path.
11130: ac_x_libraries=
11131: else
11132: echo "$as_me: failed program was:" >&5
11133: sed 's/^/| /' conftest.$ac_ext >&5
11134:
1.1.1.5 ! root 11135: LIBS=$ac_save_LIBS
1.1.1.2 root 11136: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11137: do
11138: # Don't even attempt the hair of trying to link an X program!
11139: for ac_extension in a so sl; do
1.1.1.5 ! root 11140: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1.1.2 root 11141: ac_x_libraries=$ac_dir
11142: break 2
11143: fi
11144: done
11145: done
11146: fi
1.1.1.5 ! root 11147:
! 11148: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11149: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11150: fi # $ac_x_libraries = no
11151:
1.1.1.5 ! root 11152: case $ac_x_includes,$ac_x_libraries in #(
! 11153: no,* | *,no | *\'*)
! 11154: # Didn't find X, or a directory has "'" in its name.
! 11155: ac_cv_have_x="have_x=no";; #(
! 11156: *)
! 11157: # Record where we found X for the cache.
! 11158: ac_cv_have_x="have_x=yes\
! 11159: ac_x_includes='$ac_x_includes'\
! 11160: ac_x_libraries='$ac_x_libraries'"
! 11161: esac
1.1.1.2 root 11162: fi
1.1.1.5 ! root 11163: ;; #(
! 11164: *) have_x=yes;;
! 11165: esac
1.1.1.2 root 11166: eval "$ac_cv_have_x"
11167: fi # $with_x != no
11168:
11169: if test "$have_x" != yes; then
1.1.1.5 ! root 11170: { echo "$as_me:$LINENO: result: $have_x" >&5
! 11171: echo "${ECHO_T}$have_x" >&6; }
1.1.1.2 root 11172: no_x=yes
11173: else
11174: # If each of the values was on the command line, it overrides each guess.
11175: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11176: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11177: # Update the cache value to reflect the command line values.
1.1.1.5 ! root 11178: ac_cv_have_x="have_x=yes\
! 11179: ac_x_includes='$x_includes'\
! 11180: ac_x_libraries='$x_libraries'"
! 11181: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 11182: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
1.1.1.2 root 11183: fi
11184:
11185: if test "$no_x" = yes; then
11186: # Not all programs may use this symbol, but it does not hurt to define it.
11187:
11188: cat >>confdefs.h <<\_ACEOF
11189: #define X_DISPLAY_MISSING 1
11190: _ACEOF
11191:
11192: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11193: else
11194: if test -n "$x_includes"; then
11195: X_CFLAGS="$X_CFLAGS -I$x_includes"
11196: fi
11197:
11198: # It would also be nice to do this for all -L options, not just this one.
11199: if test -n "$x_libraries"; then
11200: X_LIBS="$X_LIBS -L$x_libraries"
11201: # For Solaris; some versions of Sun CC require a space after -R and
11202: # others require no space. Words are not sufficient . . . .
1.1.1.5 ! root 11203: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 11204: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
! 11205: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 11206: ac_xsave_c_werror_flag=$ac_c_werror_flag
! 11207: ac_c_werror_flag=yes
! 11208: cat >conftest.$ac_ext <<_ACEOF
1.1.1.2 root 11209: /* confdefs.h. */
11210: _ACEOF
11211: cat confdefs.h >>conftest.$ac_ext
11212: cat >>conftest.$ac_ext <<_ACEOF
11213: /* end confdefs.h. */
11214:
11215: int
11216: main ()
11217: {
11218:
11219: ;
11220: return 0;
11221: }
11222: _ACEOF
11223: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11224: if { (ac_try="$ac_link"
! 11225: case "(($ac_try" in
! 11226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11227: *) ac_try_echo=$ac_try;;
! 11228: esac
! 11229: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11230: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11231: ac_status=$?
1.1.1.5 ! root 11232: grep -v '^ *+' conftest.er1 >conftest.err
! 11233: rm -f conftest.er1
! 11234: cat conftest.err >&5
1.1.1.2 root 11235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11236: (exit $ac_status); } && {
! 11237: test -z "$ac_c_werror_flag" ||
! 11238: test ! -s conftest.err
! 11239: } && test -s conftest$ac_exeext &&
! 11240: $as_test_x conftest$ac_exeext; then
! 11241: { echo "$as_me:$LINENO: result: no" >&5
! 11242: echo "${ECHO_T}no" >&6; }
! 11243: X_LIBS="$X_LIBS -R$x_libraries"
1.1.1.2 root 11244: else
11245: echo "$as_me: failed program was:" >&5
11246: sed 's/^/| /' conftest.$ac_ext >&5
11247:
11248: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.5 ! root 11249: cat >conftest.$ac_ext <<_ACEOF
1.1.1.2 root 11250: /* confdefs.h. */
11251: _ACEOF
11252: cat confdefs.h >>conftest.$ac_ext
11253: cat >>conftest.$ac_ext <<_ACEOF
11254: /* end confdefs.h. */
11255:
11256: int
11257: main ()
11258: {
11259:
11260: ;
11261: return 0;
11262: }
11263: _ACEOF
11264: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11265: if { (ac_try="$ac_link"
! 11266: case "(($ac_try" in
! 11267: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11268: *) ac_try_echo=$ac_try;;
! 11269: esac
! 11270: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11271: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11272: ac_status=$?
1.1.1.5 ! root 11273: grep -v '^ *+' conftest.er1 >conftest.err
! 11274: rm -f conftest.er1
! 11275: cat conftest.err >&5
1.1.1.2 root 11276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11277: (exit $ac_status); } && {
! 11278: test -z "$ac_c_werror_flag" ||
! 11279: test ! -s conftest.err
! 11280: } && test -s conftest$ac_exeext &&
! 11281: $as_test_x conftest$ac_exeext; then
! 11282: { echo "$as_me:$LINENO: result: yes" >&5
! 11283: echo "${ECHO_T}yes" >&6; }
! 11284: X_LIBS="$X_LIBS -R $x_libraries"
1.1.1.2 root 11285: else
11286: echo "$as_me: failed program was:" >&5
11287: sed 's/^/| /' conftest.$ac_ext >&5
11288:
1.1.1.5 ! root 11289: { echo "$as_me:$LINENO: result: neither works" >&5
! 11290: echo "${ECHO_T}neither works" >&6; }
1.1.1.2 root 11291: fi
1.1.1.5 ! root 11292:
! 11293: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11294: conftest$ac_exeext conftest.$ac_ext
! 11295: fi
! 11296:
! 11297: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11298: conftest$ac_exeext conftest.$ac_ext
! 11299: ac_c_werror_flag=$ac_xsave_c_werror_flag
! 11300: LIBS=$ac_xsave_LIBS
1.1.1.2 root 11301: fi
11302:
11303: # Check for system-dependent libraries X programs must link with.
11304: # Do this before checking for the system-independent R6 libraries
11305: # (-lICE), since we may need -lsocket or whatever for X linking.
11306:
11307: if test "$ISC" = yes; then
11308: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11309: else
11310: # Martyn Johnson says this is needed for Ultrix, if the X
11311: # libraries were built with DECnet support. And Karl Berry says
11312: # the Alpha needs dnet_stub (dnet does not exist).
11313: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11314: cat >conftest.$ac_ext <<_ACEOF
11315: /* confdefs.h. */
11316: _ACEOF
11317: cat confdefs.h >>conftest.$ac_ext
11318: cat >>conftest.$ac_ext <<_ACEOF
11319: /* end confdefs.h. */
11320:
1.1.1.5 ! root 11321: /* Override any GCC internal prototype to avoid an error.
! 11322: Use char because int might match the return type of a GCC
! 11323: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11324: #ifdef __cplusplus
11325: extern "C"
11326: #endif
11327: char XOpenDisplay ();
11328: int
11329: main ()
11330: {
1.1.1.5 ! root 11331: return XOpenDisplay ();
1.1.1.2 root 11332: ;
11333: return 0;
11334: }
11335: _ACEOF
11336: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11337: if { (ac_try="$ac_link"
! 11338: case "(($ac_try" in
! 11339: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11340: *) ac_try_echo=$ac_try;;
! 11341: esac
! 11342: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11343: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11344: ac_status=$?
1.1.1.5 ! root 11345: grep -v '^ *+' conftest.er1 >conftest.err
! 11346: rm -f conftest.er1
! 11347: cat conftest.err >&5
1.1.1.2 root 11348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11349: (exit $ac_status); } && {
! 11350: test -z "$ac_c_werror_flag" ||
! 11351: test ! -s conftest.err
! 11352: } && test -s conftest$ac_exeext &&
! 11353: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11354: :
11355: else
11356: echo "$as_me: failed program was:" >&5
11357: sed 's/^/| /' conftest.$ac_ext >&5
11358:
1.1.1.5 ! root 11359: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 11360: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
1.1.1.2 root 11361: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11362: echo $ECHO_N "(cached) $ECHO_C" >&6
11363: else
11364: ac_check_lib_save_LIBS=$LIBS
11365: LIBS="-ldnet $LIBS"
11366: cat >conftest.$ac_ext <<_ACEOF
11367: /* confdefs.h. */
11368: _ACEOF
11369: cat confdefs.h >>conftest.$ac_ext
11370: cat >>conftest.$ac_ext <<_ACEOF
11371: /* end confdefs.h. */
11372:
1.1.1.5 ! root 11373: /* Override any GCC internal prototype to avoid an error.
! 11374: Use char because int might match the return type of a GCC
! 11375: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11376: #ifdef __cplusplus
11377: extern "C"
11378: #endif
11379: char dnet_ntoa ();
11380: int
11381: main ()
11382: {
1.1.1.5 ! root 11383: return dnet_ntoa ();
1.1.1.2 root 11384: ;
11385: return 0;
11386: }
11387: _ACEOF
11388: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11389: if { (ac_try="$ac_link"
! 11390: case "(($ac_try" in
! 11391: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11392: *) ac_try_echo=$ac_try;;
! 11393: esac
! 11394: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11395: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11396: ac_status=$?
1.1.1.5 ! root 11397: grep -v '^ *+' conftest.er1 >conftest.err
! 11398: rm -f conftest.er1
! 11399: cat conftest.err >&5
1.1.1.2 root 11400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11401: (exit $ac_status); } && {
! 11402: test -z "$ac_c_werror_flag" ||
! 11403: test ! -s conftest.err
! 11404: } && test -s conftest$ac_exeext &&
! 11405: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11406: ac_cv_lib_dnet_dnet_ntoa=yes
11407: else
11408: echo "$as_me: failed program was:" >&5
11409: sed 's/^/| /' conftest.$ac_ext >&5
11410:
1.1.1.5 ! root 11411: ac_cv_lib_dnet_dnet_ntoa=no
1.1.1.2 root 11412: fi
1.1.1.5 ! root 11413:
! 11414: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11415: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11416: LIBS=$ac_check_lib_save_LIBS
11417: fi
1.1.1.5 ! root 11418: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 11419: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.1.1.2 root 11420: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11421: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11422: fi
11423:
11424: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.5 ! root 11425: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 11426: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
1.1.1.2 root 11427: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11428: echo $ECHO_N "(cached) $ECHO_C" >&6
11429: else
11430: ac_check_lib_save_LIBS=$LIBS
11431: LIBS="-ldnet_stub $LIBS"
11432: cat >conftest.$ac_ext <<_ACEOF
11433: /* confdefs.h. */
11434: _ACEOF
11435: cat confdefs.h >>conftest.$ac_ext
11436: cat >>conftest.$ac_ext <<_ACEOF
11437: /* end confdefs.h. */
11438:
1.1.1.5 ! root 11439: /* Override any GCC internal prototype to avoid an error.
! 11440: Use char because int might match the return type of a GCC
! 11441: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11442: #ifdef __cplusplus
11443: extern "C"
11444: #endif
11445: char dnet_ntoa ();
11446: int
11447: main ()
11448: {
1.1.1.5 ! root 11449: return dnet_ntoa ();
1.1.1.2 root 11450: ;
11451: return 0;
11452: }
11453: _ACEOF
11454: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11455: if { (ac_try="$ac_link"
! 11456: case "(($ac_try" in
! 11457: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11458: *) ac_try_echo=$ac_try;;
! 11459: esac
! 11460: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11461: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11462: ac_status=$?
1.1.1.5 ! root 11463: grep -v '^ *+' conftest.er1 >conftest.err
! 11464: rm -f conftest.er1
! 11465: cat conftest.err >&5
1.1.1.2 root 11466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11467: (exit $ac_status); } && {
! 11468: test -z "$ac_c_werror_flag" ||
! 11469: test ! -s conftest.err
! 11470: } && test -s conftest$ac_exeext &&
! 11471: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11472: ac_cv_lib_dnet_stub_dnet_ntoa=yes
11473: else
11474: echo "$as_me: failed program was:" >&5
11475: sed 's/^/| /' conftest.$ac_ext >&5
11476:
1.1.1.5 ! root 11477: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.1.1.2 root 11478: fi
1.1.1.5 ! root 11479:
! 11480: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11481: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11482: LIBS=$ac_check_lib_save_LIBS
11483: fi
1.1.1.5 ! root 11484: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 11485: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.1.1.2 root 11486: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11487: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11488: fi
11489:
11490: fi
11491: fi
1.1.1.5 ! root 11492:
! 11493: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11494: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11495: LIBS="$ac_xsave_LIBS"
11496:
11497: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
11498: # to get the SysV transport functions.
11499: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11500: # needs -lnsl.
11501: # The nsl library prevents programs from opening the X display
11502: # on Irix 5.2, according to T.E. Dickey.
11503: # The functions gethostbyname, getservbyname, and inet_addr are
11504: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.1.1.5 ! root 11505: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 11506: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
1.1.1.2 root 11507: if test "${ac_cv_func_gethostbyname+set}" = set; then
11508: echo $ECHO_N "(cached) $ECHO_C" >&6
11509: else
11510: cat >conftest.$ac_ext <<_ACEOF
11511: /* confdefs.h. */
11512: _ACEOF
11513: cat confdefs.h >>conftest.$ac_ext
11514: cat >>conftest.$ac_ext <<_ACEOF
11515: /* end confdefs.h. */
1.1.1.5 ! root 11516: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
! 11517: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 11518: #define gethostbyname innocuous_gethostbyname
! 11519:
1.1.1.2 root 11520: /* System header to define __stub macros and hopefully few prototypes,
11521: which can conflict with char gethostbyname (); below.
11522: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 11524:
1.1.1.2 root 11525: #ifdef __STDC__
11526: # include <limits.h>
11527: #else
11528: # include <assert.h>
11529: #endif
1.1.1.5 ! root 11530:
! 11531: #undef gethostbyname
! 11532:
! 11533: /* Override any GCC internal prototype to avoid an error.
! 11534: Use char because int might match the return type of a GCC
! 11535: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11536: #ifdef __cplusplus
11537: extern "C"
11538: #endif
11539: char gethostbyname ();
11540: /* The GNU C library defines this for functions which it implements
11541: to always fail with ENOSYS. Some functions are actually named
11542: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 11543: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.1.1.2 root 11544: choke me
11545: #endif
11546:
11547: int
11548: main ()
11549: {
1.1.1.5 ! root 11550: return gethostbyname ();
1.1.1.2 root 11551: ;
11552: return 0;
11553: }
11554: _ACEOF
11555: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11556: if { (ac_try="$ac_link"
! 11557: case "(($ac_try" in
! 11558: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11559: *) ac_try_echo=$ac_try;;
! 11560: esac
! 11561: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11562: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11563: ac_status=$?
1.1.1.5 ! root 11564: grep -v '^ *+' conftest.er1 >conftest.err
! 11565: rm -f conftest.er1
! 11566: cat conftest.err >&5
1.1.1.2 root 11567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11568: (exit $ac_status); } && {
! 11569: test -z "$ac_c_werror_flag" ||
! 11570: test ! -s conftest.err
! 11571: } && test -s conftest$ac_exeext &&
! 11572: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11573: ac_cv_func_gethostbyname=yes
11574: else
11575: echo "$as_me: failed program was:" >&5
11576: sed 's/^/| /' conftest.$ac_ext >&5
11577:
1.1.1.5 ! root 11578: ac_cv_func_gethostbyname=no
1.1.1.2 root 11579: fi
1.1.1.5 ! root 11580:
! 11581: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11582: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11583: fi
1.1.1.5 ! root 11584: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 11585: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1.1.1.2 root 11586:
11587: if test $ac_cv_func_gethostbyname = no; then
1.1.1.5 ! root 11588: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 11589: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
1.1.1.2 root 11590: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11591: echo $ECHO_N "(cached) $ECHO_C" >&6
11592: else
11593: ac_check_lib_save_LIBS=$LIBS
11594: LIBS="-lnsl $LIBS"
11595: cat >conftest.$ac_ext <<_ACEOF
11596: /* confdefs.h. */
11597: _ACEOF
11598: cat confdefs.h >>conftest.$ac_ext
11599: cat >>conftest.$ac_ext <<_ACEOF
11600: /* end confdefs.h. */
11601:
1.1.1.5 ! root 11602: /* Override any GCC internal prototype to avoid an error.
! 11603: Use char because int might match the return type of a GCC
! 11604: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11605: #ifdef __cplusplus
11606: extern "C"
11607: #endif
11608: char gethostbyname ();
11609: int
11610: main ()
11611: {
1.1.1.5 ! root 11612: return gethostbyname ();
1.1.1.2 root 11613: ;
11614: return 0;
11615: }
11616: _ACEOF
11617: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11618: if { (ac_try="$ac_link"
! 11619: case "(($ac_try" in
! 11620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11621: *) ac_try_echo=$ac_try;;
! 11622: esac
! 11623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11624: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11625: ac_status=$?
1.1.1.5 ! root 11626: grep -v '^ *+' conftest.er1 >conftest.err
! 11627: rm -f conftest.er1
! 11628: cat conftest.err >&5
1.1.1.2 root 11629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11630: (exit $ac_status); } && {
! 11631: test -z "$ac_c_werror_flag" ||
! 11632: test ! -s conftest.err
! 11633: } && test -s conftest$ac_exeext &&
! 11634: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11635: ac_cv_lib_nsl_gethostbyname=yes
11636: else
11637: echo "$as_me: failed program was:" >&5
11638: sed 's/^/| /' conftest.$ac_ext >&5
11639:
1.1.1.5 ! root 11640: ac_cv_lib_nsl_gethostbyname=no
1.1.1.2 root 11641: fi
1.1.1.5 ! root 11642:
! 11643: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11644: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11645: LIBS=$ac_check_lib_save_LIBS
11646: fi
1.1.1.5 ! root 11647: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 11648: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
1.1.1.2 root 11649: if test $ac_cv_lib_nsl_gethostbyname = yes; then
11650: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11651: fi
11652:
11653: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.1.1.5 ! root 11654: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 11655: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
1.1.1.2 root 11656: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11657: echo $ECHO_N "(cached) $ECHO_C" >&6
11658: else
11659: ac_check_lib_save_LIBS=$LIBS
11660: LIBS="-lbsd $LIBS"
11661: cat >conftest.$ac_ext <<_ACEOF
11662: /* confdefs.h. */
11663: _ACEOF
11664: cat confdefs.h >>conftest.$ac_ext
11665: cat >>conftest.$ac_ext <<_ACEOF
11666: /* end confdefs.h. */
11667:
1.1.1.5 ! root 11668: /* Override any GCC internal prototype to avoid an error.
! 11669: Use char because int might match the return type of a GCC
! 11670: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11671: #ifdef __cplusplus
11672: extern "C"
11673: #endif
11674: char gethostbyname ();
11675: int
11676: main ()
11677: {
1.1.1.5 ! root 11678: return gethostbyname ();
1.1.1.2 root 11679: ;
11680: return 0;
11681: }
11682: _ACEOF
11683: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11684: if { (ac_try="$ac_link"
! 11685: case "(($ac_try" in
! 11686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11687: *) ac_try_echo=$ac_try;;
! 11688: esac
! 11689: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11690: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11691: ac_status=$?
1.1.1.5 ! root 11692: grep -v '^ *+' conftest.er1 >conftest.err
! 11693: rm -f conftest.er1
! 11694: cat conftest.err >&5
1.1.1.2 root 11695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11696: (exit $ac_status); } && {
! 11697: test -z "$ac_c_werror_flag" ||
! 11698: test ! -s conftest.err
! 11699: } && test -s conftest$ac_exeext &&
! 11700: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11701: ac_cv_lib_bsd_gethostbyname=yes
11702: else
11703: echo "$as_me: failed program was:" >&5
11704: sed 's/^/| /' conftest.$ac_ext >&5
11705:
1.1.1.5 ! root 11706: ac_cv_lib_bsd_gethostbyname=no
1.1.1.2 root 11707: fi
1.1.1.5 ! root 11708:
! 11709: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11710: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11711: LIBS=$ac_check_lib_save_LIBS
11712: fi
1.1.1.5 ! root 11713: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 11714: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
1.1.1.2 root 11715: if test $ac_cv_lib_bsd_gethostbyname = yes; then
11716: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11717: fi
11718:
11719: fi
11720: fi
11721:
11722: # [email protected] says without -lsocket,
11723: # socket/setsockopt and other routines are undefined under SCO ODT
11724: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11725: # on later versions), says Simon Leinen: it contains gethostby*
11726: # variants that don't use the name server (or something). -lsocket
11727: # must be given before -lnsl if both are needed. We assume that
11728: # if connect needs -lnsl, so does gethostbyname.
1.1.1.5 ! root 11729: { echo "$as_me:$LINENO: checking for connect" >&5
! 11730: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
1.1.1.2 root 11731: if test "${ac_cv_func_connect+set}" = set; then
11732: echo $ECHO_N "(cached) $ECHO_C" >&6
11733: else
11734: cat >conftest.$ac_ext <<_ACEOF
11735: /* confdefs.h. */
11736: _ACEOF
11737: cat confdefs.h >>conftest.$ac_ext
11738: cat >>conftest.$ac_ext <<_ACEOF
11739: /* end confdefs.h. */
1.1.1.5 ! root 11740: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
! 11741: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 11742: #define connect innocuous_connect
! 11743:
1.1.1.2 root 11744: /* System header to define __stub macros and hopefully few prototypes,
11745: which can conflict with char connect (); below.
11746: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 11748:
1.1.1.2 root 11749: #ifdef __STDC__
11750: # include <limits.h>
11751: #else
11752: # include <assert.h>
11753: #endif
1.1.1.5 ! root 11754:
! 11755: #undef connect
! 11756:
! 11757: /* Override any GCC internal prototype to avoid an error.
! 11758: Use char because int might match the return type of a GCC
! 11759: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11760: #ifdef __cplusplus
11761: extern "C"
11762: #endif
11763: char connect ();
11764: /* The GNU C library defines this for functions which it implements
11765: to always fail with ENOSYS. Some functions are actually named
11766: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 11767: #if defined __stub_connect || defined __stub___connect
1.1.1.2 root 11768: choke me
11769: #endif
11770:
11771: int
11772: main ()
11773: {
1.1.1.5 ! root 11774: return connect ();
1.1.1.2 root 11775: ;
11776: return 0;
11777: }
11778: _ACEOF
11779: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11780: if { (ac_try="$ac_link"
! 11781: case "(($ac_try" in
! 11782: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11783: *) ac_try_echo=$ac_try;;
! 11784: esac
! 11785: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11786: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11787: ac_status=$?
1.1.1.5 ! root 11788: grep -v '^ *+' conftest.er1 >conftest.err
! 11789: rm -f conftest.er1
! 11790: cat conftest.err >&5
1.1.1.2 root 11791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11792: (exit $ac_status); } && {
! 11793: test -z "$ac_c_werror_flag" ||
! 11794: test ! -s conftest.err
! 11795: } && test -s conftest$ac_exeext &&
! 11796: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11797: ac_cv_func_connect=yes
11798: else
11799: echo "$as_me: failed program was:" >&5
11800: sed 's/^/| /' conftest.$ac_ext >&5
11801:
1.1.1.5 ! root 11802: ac_cv_func_connect=no
1.1.1.2 root 11803: fi
1.1.1.5 ! root 11804:
! 11805: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11806: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11807: fi
1.1.1.5 ! root 11808: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 11809: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
1.1.1.2 root 11810:
11811: if test $ac_cv_func_connect = no; then
1.1.1.5 ! root 11812: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 11813: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
1.1.1.2 root 11814: if test "${ac_cv_lib_socket_connect+set}" = set; then
11815: echo $ECHO_N "(cached) $ECHO_C" >&6
11816: else
11817: ac_check_lib_save_LIBS=$LIBS
11818: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11819: cat >conftest.$ac_ext <<_ACEOF
11820: /* confdefs.h. */
11821: _ACEOF
11822: cat confdefs.h >>conftest.$ac_ext
11823: cat >>conftest.$ac_ext <<_ACEOF
11824: /* end confdefs.h. */
11825:
1.1.1.5 ! root 11826: /* Override any GCC internal prototype to avoid an error.
! 11827: Use char because int might match the return type of a GCC
! 11828: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11829: #ifdef __cplusplus
11830: extern "C"
11831: #endif
11832: char connect ();
11833: int
11834: main ()
11835: {
1.1.1.5 ! root 11836: return connect ();
1.1.1.2 root 11837: ;
11838: return 0;
11839: }
11840: _ACEOF
11841: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11842: if { (ac_try="$ac_link"
! 11843: case "(($ac_try" in
! 11844: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11845: *) ac_try_echo=$ac_try;;
! 11846: esac
! 11847: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11848: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11849: ac_status=$?
1.1.1.5 ! root 11850: grep -v '^ *+' conftest.er1 >conftest.err
! 11851: rm -f conftest.er1
! 11852: cat conftest.err >&5
1.1.1.2 root 11853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11854: (exit $ac_status); } && {
! 11855: test -z "$ac_c_werror_flag" ||
! 11856: test ! -s conftest.err
! 11857: } && test -s conftest$ac_exeext &&
! 11858: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11859: ac_cv_lib_socket_connect=yes
11860: else
11861: echo "$as_me: failed program was:" >&5
11862: sed 's/^/| /' conftest.$ac_ext >&5
11863:
1.1.1.5 ! root 11864: ac_cv_lib_socket_connect=no
1.1.1.2 root 11865: fi
1.1.1.5 ! root 11866:
! 11867: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11868: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11869: LIBS=$ac_check_lib_save_LIBS
11870: fi
1.1.1.5 ! root 11871: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 11872: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
1.1.1.2 root 11873: if test $ac_cv_lib_socket_connect = yes; then
11874: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11875: fi
11876:
11877: fi
11878:
11879: # Guillermo Gomez says -lposix is necessary on A/UX.
1.1.1.5 ! root 11880: { echo "$as_me:$LINENO: checking for remove" >&5
! 11881: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
1.1.1.2 root 11882: if test "${ac_cv_func_remove+set}" = set; then
11883: echo $ECHO_N "(cached) $ECHO_C" >&6
11884: else
11885: cat >conftest.$ac_ext <<_ACEOF
11886: /* confdefs.h. */
11887: _ACEOF
11888: cat confdefs.h >>conftest.$ac_ext
11889: cat >>conftest.$ac_ext <<_ACEOF
11890: /* end confdefs.h. */
1.1.1.5 ! root 11891: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
! 11892: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 11893: #define remove innocuous_remove
! 11894:
1.1.1.2 root 11895: /* System header to define __stub macros and hopefully few prototypes,
11896: which can conflict with char remove (); below.
11897: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11898: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 11899:
1.1.1.2 root 11900: #ifdef __STDC__
11901: # include <limits.h>
11902: #else
11903: # include <assert.h>
11904: #endif
1.1.1.5 ! root 11905:
! 11906: #undef remove
! 11907:
! 11908: /* Override any GCC internal prototype to avoid an error.
! 11909: Use char because int might match the return type of a GCC
! 11910: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11911: #ifdef __cplusplus
11912: extern "C"
11913: #endif
11914: char remove ();
11915: /* The GNU C library defines this for functions which it implements
11916: to always fail with ENOSYS. Some functions are actually named
11917: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 11918: #if defined __stub_remove || defined __stub___remove
1.1.1.2 root 11919: choke me
11920: #endif
11921:
11922: int
11923: main ()
11924: {
1.1.1.5 ! root 11925: return remove ();
1.1.1.2 root 11926: ;
11927: return 0;
11928: }
11929: _ACEOF
11930: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11931: if { (ac_try="$ac_link"
! 11932: case "(($ac_try" in
! 11933: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11934: *) ac_try_echo=$ac_try;;
! 11935: esac
! 11936: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11937: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 11938: ac_status=$?
1.1.1.5 ! root 11939: grep -v '^ *+' conftest.er1 >conftest.err
! 11940: rm -f conftest.er1
! 11941: cat conftest.err >&5
1.1.1.2 root 11942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 11943: (exit $ac_status); } && {
! 11944: test -z "$ac_c_werror_flag" ||
! 11945: test ! -s conftest.err
! 11946: } && test -s conftest$ac_exeext &&
! 11947: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 11948: ac_cv_func_remove=yes
11949: else
11950: echo "$as_me: failed program was:" >&5
11951: sed 's/^/| /' conftest.$ac_ext >&5
11952:
1.1.1.5 ! root 11953: ac_cv_func_remove=no
1.1.1.2 root 11954: fi
1.1.1.5 ! root 11955:
! 11956: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11957: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 11958: fi
1.1.1.5 ! root 11959: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 11960: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
1.1.1.2 root 11961:
11962: if test $ac_cv_func_remove = no; then
1.1.1.5 ! root 11963: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 11964: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
1.1.1.2 root 11965: if test "${ac_cv_lib_posix_remove+set}" = set; then
11966: echo $ECHO_N "(cached) $ECHO_C" >&6
11967: else
11968: ac_check_lib_save_LIBS=$LIBS
11969: LIBS="-lposix $LIBS"
11970: cat >conftest.$ac_ext <<_ACEOF
11971: /* confdefs.h. */
11972: _ACEOF
11973: cat confdefs.h >>conftest.$ac_ext
11974: cat >>conftest.$ac_ext <<_ACEOF
11975: /* end confdefs.h. */
11976:
1.1.1.5 ! root 11977: /* Override any GCC internal prototype to avoid an error.
! 11978: Use char because int might match the return type of a GCC
! 11979: builtin and then its argument prototype would still apply. */
1.1.1.2 root 11980: #ifdef __cplusplus
11981: extern "C"
11982: #endif
11983: char remove ();
11984: int
11985: main ()
11986: {
1.1.1.5 ! root 11987: return remove ();
1.1.1.2 root 11988: ;
11989: return 0;
11990: }
11991: _ACEOF
11992: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 11993: if { (ac_try="$ac_link"
! 11994: case "(($ac_try" in
! 11995: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11996: *) ac_try_echo=$ac_try;;
! 11997: esac
! 11998: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11999: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 12000: ac_status=$?
1.1.1.5 ! root 12001: grep -v '^ *+' conftest.er1 >conftest.err
! 12002: rm -f conftest.er1
! 12003: cat conftest.err >&5
1.1.1.2 root 12004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 12005: (exit $ac_status); } && {
! 12006: test -z "$ac_c_werror_flag" ||
! 12007: test ! -s conftest.err
! 12008: } && test -s conftest$ac_exeext &&
! 12009: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 12010: ac_cv_lib_posix_remove=yes
12011: else
12012: echo "$as_me: failed program was:" >&5
12013: sed 's/^/| /' conftest.$ac_ext >&5
12014:
1.1.1.5 ! root 12015: ac_cv_lib_posix_remove=no
1.1.1.2 root 12016: fi
1.1.1.5 ! root 12017:
! 12018: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12019: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 12020: LIBS=$ac_check_lib_save_LIBS
12021: fi
1.1.1.5 ! root 12022: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 12023: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
1.1.1.2 root 12024: if test $ac_cv_lib_posix_remove = yes; then
12025: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12026: fi
12027:
12028: fi
12029:
12030: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.1.1.5 ! root 12031: { echo "$as_me:$LINENO: checking for shmat" >&5
! 12032: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
1.1.1.2 root 12033: if test "${ac_cv_func_shmat+set}" = set; then
12034: echo $ECHO_N "(cached) $ECHO_C" >&6
12035: else
12036: cat >conftest.$ac_ext <<_ACEOF
12037: /* confdefs.h. */
12038: _ACEOF
12039: cat confdefs.h >>conftest.$ac_ext
12040: cat >>conftest.$ac_ext <<_ACEOF
12041: /* end confdefs.h. */
1.1.1.5 ! root 12042: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
! 12043: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 12044: #define shmat innocuous_shmat
! 12045:
1.1.1.2 root 12046: /* System header to define __stub macros and hopefully few prototypes,
12047: which can conflict with char shmat (); below.
12048: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 12050:
1.1.1.2 root 12051: #ifdef __STDC__
12052: # include <limits.h>
12053: #else
12054: # include <assert.h>
12055: #endif
1.1.1.5 ! root 12056:
! 12057: #undef shmat
! 12058:
! 12059: /* Override any GCC internal prototype to avoid an error.
! 12060: Use char because int might match the return type of a GCC
! 12061: builtin and then its argument prototype would still apply. */
1.1.1.2 root 12062: #ifdef __cplusplus
12063: extern "C"
12064: #endif
12065: char shmat ();
12066: /* The GNU C library defines this for functions which it implements
12067: to always fail with ENOSYS. Some functions are actually named
12068: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 12069: #if defined __stub_shmat || defined __stub___shmat
1.1.1.2 root 12070: choke me
12071: #endif
12072:
12073: int
12074: main ()
12075: {
1.1.1.5 ! root 12076: return shmat ();
1.1.1.2 root 12077: ;
12078: return 0;
12079: }
12080: _ACEOF
12081: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 12082: if { (ac_try="$ac_link"
! 12083: case "(($ac_try" in
! 12084: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12085: *) ac_try_echo=$ac_try;;
! 12086: esac
! 12087: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12088: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 12089: ac_status=$?
1.1.1.5 ! root 12090: grep -v '^ *+' conftest.er1 >conftest.err
! 12091: rm -f conftest.er1
! 12092: cat conftest.err >&5
1.1.1.2 root 12093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 12094: (exit $ac_status); } && {
! 12095: test -z "$ac_c_werror_flag" ||
! 12096: test ! -s conftest.err
! 12097: } && test -s conftest$ac_exeext &&
! 12098: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 12099: ac_cv_func_shmat=yes
12100: else
12101: echo "$as_me: failed program was:" >&5
12102: sed 's/^/| /' conftest.$ac_ext >&5
12103:
1.1.1.5 ! root 12104: ac_cv_func_shmat=no
1.1.1.2 root 12105: fi
1.1.1.5 ! root 12106:
! 12107: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12108: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 12109: fi
1.1.1.5 ! root 12110: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 12111: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
1.1.1.2 root 12112:
12113: if test $ac_cv_func_shmat = no; then
1.1.1.5 ! root 12114: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 12115: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
1.1.1.2 root 12116: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12117: echo $ECHO_N "(cached) $ECHO_C" >&6
12118: else
12119: ac_check_lib_save_LIBS=$LIBS
12120: LIBS="-lipc $LIBS"
12121: cat >conftest.$ac_ext <<_ACEOF
12122: /* confdefs.h. */
12123: _ACEOF
12124: cat confdefs.h >>conftest.$ac_ext
12125: cat >>conftest.$ac_ext <<_ACEOF
12126: /* end confdefs.h. */
12127:
1.1.1.5 ! root 12128: /* Override any GCC internal prototype to avoid an error.
! 12129: Use char because int might match the return type of a GCC
! 12130: builtin and then its argument prototype would still apply. */
1.1.1.2 root 12131: #ifdef __cplusplus
12132: extern "C"
12133: #endif
12134: char shmat ();
12135: int
12136: main ()
12137: {
1.1.1.5 ! root 12138: return shmat ();
1.1.1.2 root 12139: ;
12140: return 0;
12141: }
12142: _ACEOF
12143: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 12144: if { (ac_try="$ac_link"
! 12145: case "(($ac_try" in
! 12146: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12147: *) ac_try_echo=$ac_try;;
! 12148: esac
! 12149: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12150: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 12151: ac_status=$?
1.1.1.5 ! root 12152: grep -v '^ *+' conftest.er1 >conftest.err
! 12153: rm -f conftest.er1
! 12154: cat conftest.err >&5
1.1.1.2 root 12155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 12156: (exit $ac_status); } && {
! 12157: test -z "$ac_c_werror_flag" ||
! 12158: test ! -s conftest.err
! 12159: } && test -s conftest$ac_exeext &&
! 12160: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 12161: ac_cv_lib_ipc_shmat=yes
12162: else
12163: echo "$as_me: failed program was:" >&5
12164: sed 's/^/| /' conftest.$ac_ext >&5
12165:
1.1.1.5 ! root 12166: ac_cv_lib_ipc_shmat=no
1.1.1.2 root 12167: fi
1.1.1.5 ! root 12168:
! 12169: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12170: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 12171: LIBS=$ac_check_lib_save_LIBS
12172: fi
1.1.1.5 ! root 12173: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 12174: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
1.1.1.2 root 12175: if test $ac_cv_lib_ipc_shmat = yes; then
12176: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12177: fi
12178:
12179: fi
12180: fi
12181:
12182: # Check for libraries that X11R6 Xt/Xaw programs need.
12183: ac_save_LDFLAGS=$LDFLAGS
12184: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12185: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12186: # check for ICE first), but we must link in the order -lSM -lICE or
12187: # we get undefined symbols. So assume we have SM if we have ICE.
12188: # These have to be linked with before -lX11, unlike the other
12189: # libraries we check for below, so use a different variable.
12190: # John Interrante, Karl Berry
1.1.1.5 ! root 12191: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 12192: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
1.1.1.2 root 12193: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12194: echo $ECHO_N "(cached) $ECHO_C" >&6
12195: else
12196: ac_check_lib_save_LIBS=$LIBS
12197: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12198: cat >conftest.$ac_ext <<_ACEOF
12199: /* confdefs.h. */
12200: _ACEOF
12201: cat confdefs.h >>conftest.$ac_ext
12202: cat >>conftest.$ac_ext <<_ACEOF
12203: /* end confdefs.h. */
12204:
1.1.1.5 ! root 12205: /* Override any GCC internal prototype to avoid an error.
! 12206: Use char because int might match the return type of a GCC
! 12207: builtin and then its argument prototype would still apply. */
1.1.1.2 root 12208: #ifdef __cplusplus
12209: extern "C"
12210: #endif
12211: char IceConnectionNumber ();
12212: int
12213: main ()
12214: {
1.1.1.5 ! root 12215: return IceConnectionNumber ();
1.1.1.2 root 12216: ;
12217: return 0;
12218: }
12219: _ACEOF
12220: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 12221: if { (ac_try="$ac_link"
! 12222: case "(($ac_try" in
! 12223: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12224: *) ac_try_echo=$ac_try;;
! 12225: esac
! 12226: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12227: (eval "$ac_link") 2>conftest.er1
1.1.1.2 root 12228: ac_status=$?
1.1.1.5 ! root 12229: grep -v '^ *+' conftest.er1 >conftest.err
! 12230: rm -f conftest.er1
! 12231: cat conftest.err >&5
1.1.1.2 root 12232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 12233: (exit $ac_status); } && {
! 12234: test -z "$ac_c_werror_flag" ||
! 12235: test ! -s conftest.err
! 12236: } && test -s conftest$ac_exeext &&
! 12237: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 12238: ac_cv_lib_ICE_IceConnectionNumber=yes
12239: else
12240: echo "$as_me: failed program was:" >&5
12241: sed 's/^/| /' conftest.$ac_ext >&5
12242:
1.1.1.5 ! root 12243: ac_cv_lib_ICE_IceConnectionNumber=no
1.1.1.2 root 12244: fi
1.1.1.5 ! root 12245:
! 12246: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12247: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 12248: LIBS=$ac_check_lib_save_LIBS
12249: fi
1.1.1.5 ! root 12250: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 12251: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.1.1.2 root 12252: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12253: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12254: fi
12255:
12256: LDFLAGS=$ac_save_LDFLAGS
12257:
12258: fi
12259:
12260:
1.1.1.5 ! root 12261: # Check whether --enable-gtktest was given.
1.1.1.2 root 12262: if test "${enable_gtktest+set}" = set; then
1.1.1.5 ! root 12263: enableval=$enable_gtktest;
1.1.1.2 root 12264: else
12265: enable_gtktest=yes
1.1.1.5 ! root 12266: fi
! 12267:
1.1.1.2 root 12268:
1.1.1.5 ! root 12269: pkg_config_args=gtk+-2.0
1.1.1.2 root 12270: for module in .
12271: do
12272: case "$module" in
12273: gthread)
1.1.1.5 ! root 12274: pkg_config_args="$pkg_config_args gthread-2.0"
1.1.1.2 root 12275: ;;
12276: esac
12277: done
12278:
1.1.1.5 ! root 12279: no_gtk=""
1.1.1.2 root 12280:
1.1.1.5 ! root 12281: # Extract the first word of "pkg-config", so it can be a program name with args.
! 12282: set dummy pkg-config; ac_word=$2
! 12283: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 12284: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 12285: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.1.1.2 root 12286: echo $ECHO_N "(cached) $ECHO_C" >&6
12287: else
1.1.1.5 ! root 12288: case $PKG_CONFIG in
1.1.1.2 root 12289: [\\/]* | ?:[\\/]*)
1.1.1.5 ! root 12290: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.1.1.2 root 12291: ;;
12292: *)
12293: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294: for as_dir in $PATH
12295: do
12296: IFS=$as_save_IFS
12297: test -z "$as_dir" && as_dir=.
12298: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 12299: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 12300: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.2 root 12301: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302: break 2
12303: fi
12304: done
12305: done
1.1.1.5 ! root 12306: IFS=$as_save_IFS
1.1.1.2 root 12307:
1.1.1.5 ! root 12308: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.1.1.2 root 12309: ;;
12310: esac
12311: fi
1.1.1.5 ! root 12312: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
! 12313: if test -n "$PKG_CONFIG"; then
! 12314: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 12315: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1.1.2 root 12316: else
1.1.1.5 ! root 12317: { echo "$as_me:$LINENO: result: no" >&5
! 12318: echo "${ECHO_T}no" >&6; }
1.1.1.2 root 12319: fi
12320:
1.1.1.5 ! root 12321:
! 12322:
! 12323: if test x$PKG_CONFIG != xno ; then
! 12324: if pkg-config --atleast-pkgconfig-version 0.7 ; then
! 12325: :
! 12326: else
! 12327: echo "*** pkg-config too old; version 0.7 or better required."
! 12328: no_gtk=yes
! 12329: PKG_CONFIG=no
! 12330: fi
1.1.1.2 root 12331: else
1.1.1.5 ! root 12332: no_gtk=yes
! 12333: fi
! 12334:
! 12335: min_gtk_version=2.0.0
! 12336: { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
! 12337: echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
! 12338:
! 12339: if test x$PKG_CONFIG != xno ; then
! 12340: ## don't try to run the test against uninstalled libtool libs
! 12341: if $PKG_CONFIG --uninstalled $pkg_config_args; then
! 12342: echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
! 12343: enable_gtktest=no
! 12344: fi
! 12345:
! 12346: if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
! 12347: :
! 12348: else
! 12349: no_gtk=yes
! 12350: fi
! 12351: fi
! 12352:
! 12353: if test x"$no_gtk" = x ; then
! 12354: GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
! 12355: GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
! 12356: gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.2 root 12357: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1.1.1.5 ! root 12358: gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.2 root 12359: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1.1.1.5 ! root 12360: gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.2 root 12361: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12362: if test "x$enable_gtktest" = "xyes" ; then
12363: ac_save_CFLAGS="$CFLAGS"
12364: ac_save_LIBS="$LIBS"
12365: CFLAGS="$CFLAGS $GTK_CFLAGS"
12366: LIBS="$GTK_LIBS $LIBS"
12367: rm -f conf.gtktest
12368: if test "$cross_compiling" = yes; then
12369: echo $ac_n "cross compiling; assumed OK... $ac_c"
12370: else
12371: cat >conftest.$ac_ext <<_ACEOF
1.1 root 12372: /* confdefs.h. */
12373: _ACEOF
12374: cat confdefs.h >>conftest.$ac_ext
12375: cat >>conftest.$ac_ext <<_ACEOF
12376: /* end confdefs.h. */
12377:
1.1.1.2 root 12378: #include <gtk/gtk.h>
12379: #include <stdio.h>
12380: #include <stdlib.h>
1.1 root 12381:
1.1.1.2 root 12382: int
12383: main ()
12384: {
12385: int major, minor, micro;
12386: char *tmp_version;
1.1 root 12387:
1.1.1.2 root 12388: system ("touch conf.gtktest");
1.1 root 12389:
1.1.1.2 root 12390: /* HP/UX 9 (%@#!) writes to sscanf strings */
12391: tmp_version = g_strdup("$min_gtk_version");
12392: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12393: printf("%s, bad version string\n", "$min_gtk_version");
12394: exit(1);
12395: }
12396:
12397: if ((gtk_major_version != $gtk_config_major_version) ||
12398: (gtk_minor_version != $gtk_config_minor_version) ||
12399: (gtk_micro_version != $gtk_config_micro_version))
12400: {
1.1.1.5 ! root 12401: printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1.1.1.2 root 12402: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12403: gtk_major_version, gtk_minor_version, gtk_micro_version);
1.1.1.5 ! root 12404: printf ("*** was found! If pkg-config was correct, then it is best\n");
1.1.1.2 root 12405: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12406: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12407: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12408: printf("*** required on your system.\n");
1.1.1.5 ! root 12409: printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
! 12410: printf("*** to point to the correct configuration files\n");
1.1.1.2 root 12411: }
12412: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12413: (gtk_minor_version != GTK_MINOR_VERSION) ||
12414: (gtk_micro_version != GTK_MICRO_VERSION))
12415: {
12416: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12417: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12418: printf("*** library (version %d.%d.%d)\n",
12419: gtk_major_version, gtk_minor_version, gtk_micro_version);
12420: }
12421: else
12422: {
12423: if ((gtk_major_version > major) ||
12424: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12425: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12426: {
12427: return 0;
12428: }
12429: else
12430: {
12431: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12432: gtk_major_version, gtk_minor_version, gtk_micro_version);
12433: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12434: major, minor, micro);
12435: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12436: printf("***\n");
12437: printf("*** If you have already installed a sufficiently new version, this error\n");
1.1.1.5 ! root 12438: printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1.1.1.2 root 12439: printf("*** being found. The easiest way to fix this is to remove the old version\n");
1.1.1.5 ! root 12440: printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
! 12441: printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1.1.1.2 root 12442: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12443: printf("*** so that the correct libraries are found at run-time))\n");
12444: }
12445: }
12446: return 1;
12447: }
1.1 root 12448:
1.1.1.2 root 12449: _ACEOF
12450: rm -f conftest$ac_exeext
1.1.1.5 ! root 12451: if { (ac_try="$ac_link"
! 12452: case "(($ac_try" in
! 12453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12454: *) ac_try_echo=$ac_try;;
! 12455: esac
! 12456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12457: (eval "$ac_link") 2>&5
1.1.1.2 root 12458: ac_status=$?
12459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.5 ! root 12461: { (case "(($ac_try" in
! 12462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12463: *) ac_try_echo=$ac_try;;
! 12464: esac
! 12465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12466: (eval "$ac_try") 2>&5
1.1.1.2 root 12467: ac_status=$?
12468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469: (exit $ac_status); }; }; then
12470: :
1.1 root 12471: else
1.1.1.2 root 12472: echo "$as_me: program exited with status $ac_status" >&5
12473: echo "$as_me: failed program was:" >&5
12474: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 12475:
1.1.1.2 root 12476: ( exit $ac_status )
12477: no_gtk=yes
1.1 root 12478: fi
1.1.1.5 ! root 12479: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 12480: fi
1.1.1.5 ! root 12481:
! 12482:
1.1.1.2 root 12483: CFLAGS="$ac_save_CFLAGS"
12484: LIBS="$ac_save_LIBS"
12485: fi
12486: fi
12487: if test "x$no_gtk" = x ; then
1.1.1.5 ! root 12488: { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
! 12489: echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
1.1.1.2 root 12490: have_gtk=true
12491: else
1.1.1.5 ! root 12492: { echo "$as_me:$LINENO: result: no" >&5
! 12493: echo "${ECHO_T}no" >&6; }
! 12494: if test "$PKG_CONFIG" = "no" ; then
! 12495: echo "*** A new enough version of pkg-config was not found."
! 12496: echo "*** See http://pkgconfig.sourceforge.net"
1.1.1.2 root 12497: else
12498: if test -f conf.gtktest ; then
12499: :
12500: else
1.1.1.5 ! root 12501: echo "*** Could not run GTK+ test program, checking why..."
! 12502: ac_save_CFLAGS="$CFLAGS"
! 12503: ac_save_LIBS="$LIBS"
1.1.1.2 root 12504: CFLAGS="$CFLAGS $GTK_CFLAGS"
12505: LIBS="$LIBS $GTK_LIBS"
12506: cat >conftest.$ac_ext <<_ACEOF
1.1 root 12507: /* confdefs.h. */
12508: _ACEOF
12509: cat confdefs.h >>conftest.$ac_ext
12510: cat >>conftest.$ac_ext <<_ACEOF
12511: /* end confdefs.h. */
1.1.1.2 root 12512:
12513: #include <gtk/gtk.h>
12514: #include <stdio.h>
12515:
12516: int
12517: main ()
12518: {
12519: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12520: ;
12521: return 0;
12522: }
1.1 root 12523: _ACEOF
1.1.1.2 root 12524: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 12525: if { (ac_try="$ac_link"
! 12526: case "(($ac_try" in
! 12527: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12528: *) ac_try_echo=$ac_try;;
! 12529: esac
! 12530: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12531: (eval "$ac_link") 2>conftest.er1
1.1 root 12532: ac_status=$?
1.1.1.5 ! root 12533: grep -v '^ *+' conftest.er1 >conftest.err
! 12534: rm -f conftest.er1
! 12535: cat conftest.err >&5
1.1 root 12536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 12537: (exit $ac_status); } && {
! 12538: test -z "$ac_c_werror_flag" ||
! 12539: test ! -s conftest.err
! 12540: } && test -s conftest$ac_exeext &&
! 12541: $as_test_x conftest$ac_exeext; then
1.1.1.2 root 12542: echo "*** The test program compiled, but did not run. This usually means"
1.1.1.5 ! root 12543: echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
! 12544: echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
1.1.1.2 root 12545: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12546: echo "*** to the installed location Also, make sure you have run ldconfig if that"
12547: echo "*** is required on your system"
12548: echo "***"
12549: echo "*** If you have an old version installed, it is best to remove it, although"
12550: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1.1 root 12551: else
12552: echo "$as_me: failed program was:" >&5
12553: sed 's/^/| /' conftest.$ac_ext >&5
12554:
1.1.1.5 ! root 12555: echo "*** The test program failed to compile or link. See the file config.log for the"
! 12556: echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
1.1 root 12557: fi
1.1.1.5 ! root 12558:
! 12559: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 12560: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 root 12561: CFLAGS="$ac_save_CFLAGS"
12562: LIBS="$ac_save_LIBS"
12563: fi
12564: fi
12565: GTK_CFLAGS=""
12566: GTK_LIBS=""
12567: have_gtk=false
12568: fi
1.1 root 12569:
1.1.1.2 root 12570:
12571: rm -f conf.gtktest
12572:
12573: if $have_gtk; then
12574:
12575: cat >>confdefs.h <<\_ACEOF
12576: #define HAVE_GTK
1.1 root 12577: _ACEOF
12578:
1.1.1.2 root 12579: TME_HOSTS="${TME_HOSTS} gtk"
1.1 root 12580: fi
12581:
1.1.1.2 root 12582: TME_FB_XLAT_DST=
12583: area_smallest=0
12584: area_largest=0
1.1 root 12585:
1.1.1.3 root 12586: # if --with-tme-host-displays is given, characterize those given displays:
12587:
1.1.1.5 ! root 12588: # Check whether --with-tme-host-displays was given.
1.1.1.3 root 12589: if test "${with_tme_host_displays+set}" = set; then
1.1.1.5 ! root 12590: withval=$with_tme_host_displays;
! 12591: fi
1.1.1.3 root 12592:
12593: for dst_key in ${with_tme_host_displays}; do
1.1 root 12594:
12595:
1.1.1.2 root 12596: this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
12597: this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
12598: dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
12599: this_area=`expr ${this_width} \* ${this_height}`
12600:
12601: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
12602: area_smallest=${this_area}
12603: fi
12604: if test `expr ${this_area} \> ${area_largest}` = 1; then
12605: area_largest=${this_area}
12606: fi
12607:
12608: # add in this destination display key:
12609: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
12610: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
12611: fi
12612:
12613: done
12614:
12615: # if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
12616: if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
1.1.1.5 ! root 12617: { echo "$as_me:$LINENO: checking characteristics of X display ${DISPLAY}" >&5
! 12618: echo $ECHO_N "checking characteristics of X display ${DISPLAY}... $ECHO_C" >&6; }
1.1.1.2 root 12619:
12620:
12621: # get the format this display uses for bitmaps:
12622: bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
12623: bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
12624: bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
12625: bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
12626:
1.1.1.3 root 12627: # get the format this display uses for images at its default depth. we
12628: # assume that the root window is at the default depth:
1.1.1.2 root 12629: pixmap_order=`xdpyinfo | grep 'image byte order'`
12630: pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
1.1.1.3 root 12631: pixmap_depth=`xwininfo -root | grep 'Depth:'`
12632: pixmap_depth=`echo ${pixmap_depth} | sed -e 's/.*Depth: *\([0-9][0-9]*\).*/\1/'`
1.1.1.2 root 12633: pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
12634: save_IFS=$IFS
12635: IFS=%
12636: for pixmap_info in $pixmap_infos; do
12637: IFS=$save_IFS
12638: if test "x$pixmap_info" = x; then continue; fi
12639: this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
12640: this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
12641: this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
1.1.1.3 root 12642: if test "x${this_pixmap_depth}" = "x${pixmap_depth}"; then
1.1.1.2 root 12643: pixmap_bipp=${this_pixmap_bipp}
12644: pixmap_pad=${this_pixmap_pad}
1.1.1.3 root 12645: break
1.1.1.2 root 12646: fi
12647: done
12648: IFS=$save_IFS
12649:
12650: # if this display's greatest depth is one, we use its
12651: # bitmap format:
1.1.1.3 root 12652: if test "x${pixmap_bipp}" = x; then
1.1.1.2 root 12653: pixmap_bipp=1
12654: pixmap_pad=${bitmap_pad}
12655:
12656: # our translation functions can't handle the case when the bitmap
12657: # bit order is different from the image byte order - doing so
12658: # requires dealing with the bitmap unit size. since this
12659: # situation is rare, just bail:
12660: if test ${bitmap_order} != ${pixmap_order}; then
12661: { echo "$as_me:$LINENO: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&5
12662: echo "$as_me: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&2;}
1.1.1.3 root 12663: pixmap_bipp=
1.1.1.2 root 12664: fi
12665: fi
12666:
12667: # if this display seems usable:
1.1.1.3 root 12668: if test "x${pixmap_bipp}" != x; then
1.1.1.2 root 12669:
12670: # check the dimensions of all screens on this display:
12671: dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
12672: save_IFS=$IFS
12673: IFS=%
12674: for dimension in $dimensions; do
12675: IFS=$save_IFS
12676: if test "x$dimension" = x; then continue; fi
12677: this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
12678: this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
12679: this_area=`expr ${this_width} \* ${this_height}`
12680: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
12681: area_smallest=${this_area}
12682: fi
12683: if test `expr ${this_area} \> ${area_largest}` = 1; then
12684: area_largest=${this_area}
12685: fi
12686: done
12687: IFS=$save_IFS
12688:
1.1.1.3 root 12689: # assume an unknown set of masks and an unknown mapping type:
12690: dst_masks=_r0x0_g0x0_b0x0
12691: dst_map=
12692: value_visual=", unknown visual"
12693:
12694: # if the depth is greater than one:
12695: if test "x${pixmap_depth}" != 1; then
12696:
12697: # we assume that the root window uses the default visual:
12698: visual=`xwininfo -root | grep 'Visual Class:' | sed -e 's/^ *Visual Class: *\([A-Za-z][A-Za-z]*\).*$/\1/'`
12699:
12700: # get any primary masks for this visual:
12701: case "x${visual}" in
12702: xDirectColor | xTrueColor)
12703: dst_masks=`xdpyinfo | $EGREP '(visual id|class|blue masks):' | $EGREP -C1 $visual | grep 'blue masks' | head -1`
12704: dst_masks=`echo ${dst_masks} | sed -e 's/^.*blue masks: *\(.*\)/\1/'`
12705: value_visual=", rgb masks ${dst_masks}"
12706: dst_masks=`echo ${dst_masks} | sed -e 's/^/_r/' -e 's/, /_g/' -e 's/, /_b/'`
12707: ;;
12708: xStaticGray | xGrayScale | xStaticColor | xPseudoColor)
12709: dst_masks=
12710: value_visual=", no subfields"
12711: ;;
12712: *) ;;
12713: esac
12714:
12715: # get the mapping type for this visual:
12716: case "x${visual}" in
12717: xStaticGray | xStaticColor | xPseudoColor)
12718: dst_map="ml"
12719: ;;
12720: xDirectColor)
12721: dst_map="mi"
12722: value_visual="${value_visual}, indexed"
12723: ;;
12724: xGrayScale | xTrueColor)
12725: dst_map="ml"
12726: value_visual="${value_visual}, linear"
12727: ;;
12728: *) ;;
12729: esac
12730: fi
12731:
1.1.1.2 root 12732:
12733: # finish the characterization:
1.1.1.3 root 12734: if test "x${pixmap_bipp}" = "x${pixmap_depth}"; then
1.1.1.2 root 12735: value=
12736: else
12737: value=" (${pixmap_bipp} bits per pixel)"
12738: fi
1.1.1.5 ! root 12739: { echo "$as_me:$LINENO: result: ${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&5
! 12740: echo "${ECHO_T}${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&6; }
1.1.1.3 root 12741: dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}${dst_map}${dst_masks}"
1.1.1.2 root 12742:
12743: # add in this destination display key:
12744: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
12745: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
12746: fi
12747: fi
1.1 root 12748: fi
1.1.1.2 root 12749:
1.1 root 12750:
12751: systems=all
12752: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
1.1.1.4 root 12753: systems="sun2 sun3 sun4"
1.1.1.5 ! root 12754: if test $ac_cv_sizeof_long = 8 || test "x${GCC}" = "xyes"; then
! 12755: systems="${systems} sunultra1"
! 12756: fi
1.1 root 12757: fi
12758: TME_MACHINE_SUBDIRS=
12759: TME_IC_SUBDIRS=
12760: TME_ICS=
1.1.1.2 root 12761: TME_SERIAL_SUBDIRS=
12762: TME_SERIALS=
1.1 root 12763: TME_BUS_SUBDIRS=
1.1.1.2 root 12764: TME_FB_XLAT_SRC=
1.1.1.5 ! root 12765: bus_size_max=32
! 12766: recode_size_guest_max=0
1.1 root 12767: for system in $systems; do
12768:
12769: # dispatch on the machine type to get more machines, ICs, and
12770: # buses to compile:
12771: case ${system} in
12772:
12773: # the sun2:
12774: sun2)
12775: machines="sun sun2"
1.1.1.3 root 12776: ics="m68k am9513 mm58167 z8530 i825x6"
1.1 root 12777: buses="multibus"
1.1.1.2 root 12778: fb_xlats="1152x900d1b1s0p32om"
1.1.1.5 ! root 12779: bus_size=32
! 12780: recode_size_guest=0
1.1 root 12781: ;;
12782:
1.1.1.3 root 12783: # the sun3:
12784: sun3)
12785: machines="sun sun3"
12786: ics="m68k isil7170 z8530 i825x6 ieee754 ncr5380"
12787: buses="multibus"
12788: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
1.1.1.5 ! root 12789: bus_size=32
! 12790: recode_size_guest=0
1.1.1.3 root 12791: ;;
12792:
1.1.1.4 root 12793: # the sun4:
12794: sun4)
12795: machines="sun sun4"
12796: ics="sparc isil7170 z8530 am7930 am7990 ieee754 ncr53c9x mk48txx lsi64854 nec765"
12797: buses="sbus"
12798: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
1.1.1.5 ! root 12799: bus_size=32
! 12800: recode_size_guest=32
! 12801: ;;
! 12802:
! 12803: # the sun Ultra-1:
! 12804: sunultra1)
! 12805: machines="sun sun4u"
! 12806: ics="sparc stp22xx z8530 am7990 ieee754 ncr53c9x ncr89c105 mk48txx lsi64854 nec765 stp2024 ad184x"
! 12807: buses="sbus"
! 12808: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
! 12809: bus_size=64
! 12810: recode_size_guest=64
1.1.1.4 root 12811: ;;
12812:
1.1 root 12813: *)
12814: { { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5
12815: echo "$as_me: error: don't know how to emulate ${machine}" >&2;}
12816: { (exit 1); exit 1; }; }
12817: ;;
12818: esac
12819:
1.1.1.5 ! root 12820: # update the maximum bus size:
! 12821: if test `expr ${bus_size_max} \< ${bus_size}` = 1; then
! 12822: bus_size_max=$bus_size
! 12823: fi
! 12824:
! 12825: # update the maximum recode guest size:
! 12826: if test `expr ${recode_size_guest_max} \< ${recode_size_guest}` = 1; then
! 12827: recode_size_guest_max=$recode_size_guest
! 12828: fi
! 12829:
1.1.1.2 root 12830: # add in the new machines, ICs, serials, and buses to compile:
1.1 root 12831: for machine in $machines; do
12832: if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
12833: TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
12834: fi
12835: done
12836: for ic in $ics; do
1.1.1.5 ! root 12837: if test -d $srcdir/ic/$ic; then
1.1 root 12838: if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
12839: TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
12840: fi
12841: else
12842: ic="tme_ic_${ic}.la"
12843: if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
12844: TME_ICS="${TME_ICS} ${ic}"
12845: fi
12846: fi
12847: done
1.1.1.2 root 12848: for serial in $serials; do
1.1.1.5 ! root 12849: if test -d $srcdir/serial/$serial; then
1.1.1.2 root 12850: if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
12851: TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
12852: fi
12853: else
12854: serial="tme_serial_${serial}.la"
12855: if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
12856: TME_SERIALS="${TME_SERIALS} ${serial}"
12857: fi
12858: fi
12859: done
1.1 root 12860: for bus in $buses; do
12861: if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
12862: TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
12863: fi
12864: done
1.1.1.2 root 12865:
12866: # add in the new frame buffer translations to compile:
12867: for fb_xlat in $fb_xlats; do
12868: if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
12869: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
12870: fi
12871:
12872:
12873: # calculate the area of this frame buffer multiplied by 100:
12874: this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
12875: this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
12876: this_area=`expr ${this_width} \* ${this_height} \* 100`
12877:
12878:
12879: # if this frame buffer would consume at least 70 percent of
12880: # the smallest destination screen, make an xlat function that
12881: # scales this frame buffer down by two:
12882: if test ${area_smallest} = 0; then
12883: percentage=100
12884: else
12885: percentage=`expr ${this_area} / ${area_smallest}`
12886: fi
12887: if test `expr ${percentage} \> 70` = 1; then
12888: src_key="${fb_xlat}_h"
12889: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
12890: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
12891: fi
12892: fi
12893:
12894: # if this frame buffer would consume less than 30 percent of
12895: # the largest destination screen, make an xlat function that
12896: # scales this frame buffer up by two:
12897: if test ${area_largest} = 0; then
12898: percentage=0
12899: else
12900: percentage=`expr ${this_area} / ${area_largest}`
12901: fi
12902: if test `expr ${percentage} \< 30` = 1; then
12903: src_key="${fb_xlat}_d"
12904: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
12905: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
12906: fi
12907: fi
12908: done
1.1 root 12909: done
1.1.1.2 root 12910:
12911:
12912:
12913:
1.1 root 12914:
12915:
12916:
12917:
12918:
12919:
1.1.1.5 ! root 12920: # Check whether --enable-recode was given.
! 12921: if test "${enable_recode+set}" = set; then
! 12922: enableval=$enable_recode;
! 12923: else
! 12924: enable_recode=
! 12925: fi
! 12926:
! 12927: if test "${recode_size_guest_max}" = 0; then
! 12928: enable_recode=no
! 12929: recode_size_guest_max=1
! 12930: fi
! 12931: if test "x${enable_recode}" = no; then
! 12932: recode_hosts=
! 12933: else
! 12934: { echo "$as_me:$LINENO: checking for target recode support" >&5
! 12935: echo $ECHO_N "checking for target recode support... $ECHO_C" >&6; }
! 12936:
! 12937:
! 12938: # get the host maximum guest size:
! 12939: case "${target_cpu}" in
! 12940: i[3456789]86)
! 12941: recode_size_guest_max_host=64
! 12942: ;;
! 12943: x86_64)
! 12944: recode_size_guest_max_host=128
! 12945: ;;
! 12946: *) recode_size_guest_max_host= ;;
! 12947: esac
! 12948:
! 12949: # get the host recode parts:
! 12950: case "${target}" in
! 12951: i[3456789]86-*-netbsd* | x86_64-*-netbsd* | i[3456789]86-*-linux*)
! 12952: recode_hosts="mmap x86"
! 12953: ;;
! 12954: *) recode_hosts= ;;
! 12955: esac
! 12956:
! 12957:
! 12958: if test "x${recode_hosts}" = x; then
! 12959: { echo "$as_me:$LINENO: result: no" >&5
! 12960: echo "${ECHO_T}no" >&6; }
! 12961: if test "x${enable_recode}" = xrequired; then
! 12962: { { echo "$as_me:$LINENO: error: recode required but not supported on ${target}" >&5
! 12963: echo "$as_me: error: recode required but not supported on ${target}" >&2;}
! 12964: { (exit 1); exit 1; }; }
! 12965: fi
! 12966: else
! 12967: if test "x${recode_size_guest_max_host}" = x; then
! 12968: { { echo "$as_me:$LINENO: error: internal error - no maximum recode guest size for ${target_cpu}" >&5
! 12969: echo "$as_me: error: internal error - no maximum recode guest size for ${target_cpu}" >&2;}
! 12970: { (exit 1); exit 1; }; }
! 12971: fi
! 12972: if test `expr ${recode_size_guest_max} \> ${recode_size_guest_max_host}` = 1; then
! 12973: recode_size_guest_max=$recode_size_guest_max_host
! 12974: fi
! 12975: { echo "$as_me:$LINENO: result: up to ${recode_size_guest_max}-bit guests using ${recode_hosts}" >&5
! 12976: echo "${ECHO_T}up to ${recode_size_guest_max}-bit guests using ${recode_hosts}" >&6; }
! 12977: fi
! 12978: fi
! 12979:
! 12980: { echo "$as_me:$LINENO: checking for target miscellaneous support" >&5
! 12981: echo $ECHO_N "checking for target miscellaneous support... $ECHO_C" >&6; }
! 12982: case "${target}" in
! 12983: i[3456789]86-* | x86_64-*) misc_hosts="x86" ;;
! 12984: *) misc_hosts=no ;;
! 12985: esac
! 12986: { echo "$as_me:$LINENO: result: ${misc_hosts}" >&5
! 12987: echo "${ECHO_T}${misc_hosts}" >&6; }
! 12988: if test "x${misc_hosts}" = no; then
! 12989: misc_hosts=
! 12990: fi
! 12991:
! 12992: { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
! 12993: echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
1.1 root 12994: if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12995: echo $ECHO_N "(cached) $ECHO_C" >&6
12996: else
12997: ac_check_lib_save_LIBS=$LIBS
12998: LIBS="-lltdl $LIBS"
12999: cat >conftest.$ac_ext <<_ACEOF
13000: /* confdefs.h. */
13001: _ACEOF
13002: cat confdefs.h >>conftest.$ac_ext
13003: cat >>conftest.$ac_ext <<_ACEOF
13004: /* end confdefs.h. */
13005:
1.1.1.5 ! root 13006: /* Override any GCC internal prototype to avoid an error.
! 13007: Use char because int might match the return type of a GCC
! 13008: builtin and then its argument prototype would still apply. */
1.1 root 13009: #ifdef __cplusplus
13010: extern "C"
13011: #endif
13012: char lt_dlinit ();
13013: int
13014: main ()
13015: {
1.1.1.5 ! root 13016: return lt_dlinit ();
1.1 root 13017: ;
13018: return 0;
13019: }
13020: _ACEOF
13021: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 13022: if { (ac_try="$ac_link"
! 13023: case "(($ac_try" in
! 13024: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13025: *) ac_try_echo=$ac_try;;
! 13026: esac
! 13027: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13028: (eval "$ac_link") 2>conftest.er1
1.1 root 13029: ac_status=$?
1.1.1.5 ! root 13030: grep -v '^ *+' conftest.er1 >conftest.err
! 13031: rm -f conftest.er1
! 13032: cat conftest.err >&5
1.1 root 13033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 13034: (exit $ac_status); } && {
! 13035: test -z "$ac_c_werror_flag" ||
! 13036: test ! -s conftest.err
! 13037: } && test -s conftest$ac_exeext &&
! 13038: $as_test_x conftest$ac_exeext; then
1.1 root 13039: ac_cv_lib_ltdl_lt_dlinit=yes
13040: else
13041: echo "$as_me: failed program was:" >&5
13042: sed 's/^/| /' conftest.$ac_ext >&5
13043:
1.1.1.5 ! root 13044: ac_cv_lib_ltdl_lt_dlinit=no
1.1 root 13045: fi
1.1.1.5 ! root 13046:
! 13047: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 13048: conftest$ac_exeext conftest.$ac_ext
1.1 root 13049: LIBS=$ac_check_lib_save_LIBS
13050: fi
1.1.1.5 ! root 13051: { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
! 13052: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
1.1 root 13053: if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13054: test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
13055: else
13056: if test x"$enable_ltdl_install" = xno; then
13057: { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
13058: echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
13059: else
13060: enable_ltdl_install=yes
13061: fi
13062:
13063: fi
13064:
13065: if test x"$enable_ltdl_install" = x"yes"; then
13066: ac_configure_args="$ac_configure_args --enable-ltdl-install"
13067: LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
13068: LTDLINCL='-I${top_srcdir}/''libltdl'
13069: else
13070: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
13071: LIBLTDL="-lltdl"
13072: LTDLINCL=
13073: fi
13074: # For backwards non-gettext consistent compatibility...
13075: INCLTDL="$LTDLINCL"
13076:
13077:
13078:
13079:
13080:
1.1.1.5 ! root 13081: # Check whether --enable-shared was given.
1.1 root 13082: if test "${enable_shared+set}" = set; then
1.1.1.5 ! root 13083: enableval=$enable_shared; p=${PACKAGE-default}
1.1 root 13084: case $enableval in
13085: yes) enable_shared=yes ;;
13086: no) enable_shared=no ;;
13087: *)
13088: enable_shared=no
13089: # Look at the argument we got. We use all the common list separators.
13090: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13091: for pkg in $enableval; do
13092: IFS="$lt_save_ifs"
13093: if test "X$pkg" = "X$p"; then
13094: enable_shared=yes
13095: fi
13096: done
13097: IFS="$lt_save_ifs"
13098: ;;
13099: esac
13100: else
13101: enable_shared=yes
1.1.1.5 ! root 13102: fi
1.1 root 13103:
1.1.1.5 ! root 13104:
! 13105: # Check whether --enable-static was given.
1.1 root 13106: if test "${enable_static+set}" = set; then
1.1.1.5 ! root 13107: enableval=$enable_static; p=${PACKAGE-default}
1.1 root 13108: case $enableval in
13109: yes) enable_static=yes ;;
13110: no) enable_static=no ;;
13111: *)
13112: enable_static=no
13113: # Look at the argument we got. We use all the common list separators.
13114: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13115: for pkg in $enableval; do
13116: IFS="$lt_save_ifs"
13117: if test "X$pkg" = "X$p"; then
13118: enable_static=yes
13119: fi
13120: done
13121: IFS="$lt_save_ifs"
13122: ;;
13123: esac
13124: else
13125: enable_static=yes
1.1.1.5 ! root 13126: fi
1.1 root 13127:
1.1.1.5 ! root 13128:
! 13129: # Check whether --enable-fast-install was given.
1.1 root 13130: if test "${enable_fast_install+set}" = set; then
1.1.1.5 ! root 13131: enableval=$enable_fast_install; p=${PACKAGE-default}
1.1 root 13132: case $enableval in
13133: yes) enable_fast_install=yes ;;
13134: no) enable_fast_install=no ;;
13135: *)
13136: enable_fast_install=no
13137: # Look at the argument we got. We use all the common list separators.
13138: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13139: for pkg in $enableval; do
13140: IFS="$lt_save_ifs"
13141: if test "X$pkg" = "X$p"; then
13142: enable_fast_install=yes
13143: fi
13144: done
13145: IFS="$lt_save_ifs"
13146: ;;
13147: esac
13148: else
13149: enable_fast_install=yes
1.1.1.5 ! root 13150: fi
1.1 root 13151:
1.1.1.5 ! root 13152:
! 13153: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 13154: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.1 root 13155: if test "${lt_cv_path_SED+set}" = set; then
13156: echo $ECHO_N "(cached) $ECHO_C" >&6
13157: else
13158: # Loop through the user's path and test for sed and gsed.
13159: # Then use that list of sed's as ones to test for truncation.
13160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161: for as_dir in $PATH
13162: do
13163: IFS=$as_save_IFS
13164: test -z "$as_dir" && as_dir=.
13165: for lt_ac_prog in sed gsed; do
13166: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 13167: if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.1 root 13168: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13169: fi
13170: done
13171: done
13172: done
1.1.1.5 ! root 13173: IFS=$as_save_IFS
1.1 root 13174: lt_ac_max=0
13175: lt_ac_count=0
13176: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13177: # along with /bin/sed that truncates output.
13178: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.1.1.5 ! root 13179: test ! -f $lt_ac_sed && continue
1.1 root 13180: cat /dev/null > conftest.in
13181: lt_ac_count=0
13182: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13183: # Check for GNU sed and select it if it is found.
13184: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13185: lt_cv_path_SED=$lt_ac_sed
13186: break
13187: fi
13188: while true; do
13189: cat conftest.in conftest.in >conftest.tmp
13190: mv conftest.tmp conftest.in
13191: cp conftest.in conftest.nl
13192: echo >>conftest.nl
13193: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13194: cmp -s conftest.out conftest.nl || break
13195: # 10000 chars as input seems more than enough
13196: test $lt_ac_count -gt 10 && break
13197: lt_ac_count=`expr $lt_ac_count + 1`
13198: if test $lt_ac_count -gt $lt_ac_max; then
13199: lt_ac_max=$lt_ac_count
13200: lt_cv_path_SED=$lt_ac_sed
13201: fi
13202: done
13203: done
13204:
13205: fi
13206:
1.1.1.5 ! root 13207: SED=$lt_cv_path_SED
! 13208:
! 13209: { echo "$as_me:$LINENO: result: $SED" >&5
! 13210: echo "${ECHO_T}$SED" >&6; }
1.1 root 13211:
13212:
1.1.1.5 ! root 13213: # Check whether --with-gnu-ld was given.
1.1 root 13214: if test "${with_gnu_ld+set}" = set; then
1.1.1.5 ! root 13215: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 root 13216: else
13217: with_gnu_ld=no
1.1.1.5 ! root 13218: fi
! 13219:
1.1 root 13220: ac_prog=ld
13221: if test "$GCC" = yes; then
13222: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.5 ! root 13223: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 13224: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 root 13225: case $host in
13226: *-*-mingw*)
13227: # gcc leaves a trailing carriage return which upsets mingw
13228: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13229: *)
13230: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13231: esac
13232: case $ac_prog in
13233: # Accept absolute paths.
13234: [\\/]* | ?:[\\/]*)
13235: re_direlt='/[^/][^/]*/\.\./'
1.1.1.5 ! root 13236: # Canonicalize the pathname of ld
1.1 root 13237: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13238: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13239: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13240: done
13241: test -z "$LD" && LD="$ac_prog"
13242: ;;
13243: "")
13244: # If it fails, then pretend we aren't using GCC.
13245: ac_prog=ld
13246: ;;
13247: *)
13248: # If it is relative, then search for the first ld in PATH.
13249: with_gnu_ld=unknown
13250: ;;
13251: esac
13252: elif test "$with_gnu_ld" = yes; then
1.1.1.5 ! root 13253: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 13254: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 root 13255: else
1.1.1.5 ! root 13256: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 13257: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 root 13258: fi
13259: if test "${lt_cv_path_LD+set}" = set; then
13260: echo $ECHO_N "(cached) $ECHO_C" >&6
13261: else
13262: if test -z "$LD"; then
13263: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13264: for ac_dir in $PATH; do
13265: IFS="$lt_save_ifs"
13266: test -z "$ac_dir" && ac_dir=.
13267: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13268: lt_cv_path_LD="$ac_dir/$ac_prog"
13269: # Check to see if the program is GNU ld. I'd rather use --version,
1.1.1.5 ! root 13270: # but apparently some variants of GNU ld only accept -v.
1.1 root 13271: # Break only if it was the GNU/non-GNU ld that we prefer.
13272: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13273: *GNU* | *'with BFD'*)
13274: test "$with_gnu_ld" != no && break
13275: ;;
13276: *)
13277: test "$with_gnu_ld" != yes && break
13278: ;;
13279: esac
13280: fi
13281: done
13282: IFS="$lt_save_ifs"
13283: else
13284: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13285: fi
13286: fi
13287:
13288: LD="$lt_cv_path_LD"
13289: if test -n "$LD"; then
1.1.1.5 ! root 13290: { echo "$as_me:$LINENO: result: $LD" >&5
! 13291: echo "${ECHO_T}$LD" >&6; }
1.1 root 13292: else
1.1.1.5 ! root 13293: { echo "$as_me:$LINENO: result: no" >&5
! 13294: echo "${ECHO_T}no" >&6; }
1.1 root 13295: fi
13296: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13297: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13298: { (exit 1); exit 1; }; }
1.1.1.5 ! root 13299: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 13300: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.1 root 13301: if test "${lt_cv_prog_gnu_ld+set}" = set; then
13302: echo $ECHO_N "(cached) $ECHO_C" >&6
13303: else
1.1.1.5 ! root 13304: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 13305: case `$LD -v 2>&1 </dev/null` in
1.1 root 13306: *GNU* | *'with BFD'*)
13307: lt_cv_prog_gnu_ld=yes
13308: ;;
13309: *)
13310: lt_cv_prog_gnu_ld=no
13311: ;;
13312: esac
13313: fi
1.1.1.5 ! root 13314: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 13315: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 root 13316: with_gnu_ld=$lt_cv_prog_gnu_ld
13317:
13318:
1.1.1.5 ! root 13319: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 13320: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
1.1 root 13321: if test "${lt_cv_ld_reload_flag+set}" = set; then
13322: echo $ECHO_N "(cached) $ECHO_C" >&6
13323: else
13324: lt_cv_ld_reload_flag='-r'
13325: fi
1.1.1.5 ! root 13326: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 13327: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
1.1 root 13328: reload_flag=$lt_cv_ld_reload_flag
13329: case $reload_flag in
13330: "" | " "*) ;;
13331: *) reload_flag=" $reload_flag" ;;
13332: esac
13333: reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.1.1.5 ! root 13334: case $host_os in
! 13335: darwin*)
! 13336: if test "$GCC" = yes; then
! 13337: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
! 13338: else
! 13339: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 13340: fi
! 13341: ;;
! 13342: esac
1.1 root 13343:
1.1.1.5 ! root 13344: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 13345: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.1 root 13346: if test "${lt_cv_path_NM+set}" = set; then
13347: echo $ECHO_N "(cached) $ECHO_C" >&6
13348: else
13349: if test -n "$NM"; then
13350: # Let the user override the test.
13351: lt_cv_path_NM="$NM"
13352: else
1.1.1.5 ! root 13353: lt_nm_to_check="${ac_tool_prefix}nm"
! 13354: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
! 13355: lt_nm_to_check="$lt_nm_to_check nm"
! 13356: fi
! 13357: for lt_tmp_nm in $lt_nm_to_check; do
! 13358: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 13359: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
! 13360: IFS="$lt_save_ifs"
! 13361: test -z "$ac_dir" && ac_dir=.
! 13362: tmp_nm="$ac_dir/$lt_tmp_nm"
! 13363: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 13364: # Check to see if the nm accepts a BSD-compat flag.
! 13365: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 13366: # nm: unknown option "B" ignored
! 13367: # Tru64's nm complains that /dev/null is an invalid object file
! 13368: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
! 13369: */dev/null* | *'Invalid file or object type'*)
! 13370: lt_cv_path_NM="$tmp_nm -B"
1.1 root 13371: break
13372: ;;
13373: *)
1.1.1.5 ! root 13374: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
! 13375: */dev/null*)
! 13376: lt_cv_path_NM="$tmp_nm -p"
! 13377: break
! 13378: ;;
! 13379: *)
! 13380: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 13381: continue # so that we can try to find one that supports BSD flags
! 13382: ;;
! 13383: esac
1.1 root 13384: ;;
13385: esac
1.1.1.5 ! root 13386: fi
! 13387: done
! 13388: IFS="$lt_save_ifs"
1.1 root 13389: done
13390: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13391: fi
13392: fi
1.1.1.5 ! root 13393: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 13394: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.1 root 13395: NM="$lt_cv_path_NM"
13396:
1.1.1.5 ! root 13397: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 13398: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.1 root 13399: LN_S=$as_ln_s
13400: if test "$LN_S" = "ln -s"; then
1.1.1.5 ! root 13401: { echo "$as_me:$LINENO: result: yes" >&5
! 13402: echo "${ECHO_T}yes" >&6; }
1.1 root 13403: else
1.1.1.5 ! root 13404: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 13405: echo "${ECHO_T}no, using $LN_S" >&6; }
1.1 root 13406: fi
13407:
1.1.1.5 ! root 13408: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
! 13409: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.1 root 13410: if test "${lt_cv_deplibs_check_method+set}" = set; then
13411: echo $ECHO_N "(cached) $ECHO_C" >&6
13412: else
13413: lt_cv_file_magic_cmd='$MAGIC_CMD'
13414: lt_cv_file_magic_test_file=
13415: lt_cv_deplibs_check_method='unknown'
13416: # Need to set the preceding variable on all platforms that support
13417: # interlibrary dependencies.
13418: # 'none' -- dependencies not supported.
13419: # `unknown' -- same as none, but documents that we really don't know.
13420: # 'pass_all' -- all dependencies passed with no checks.
13421: # 'test_compile' -- check by making test program.
13422: # 'file_magic [[regex]]' -- check by looking for files in library path
13423: # which responds to the $file_magic_cmd with a given extended regex.
13424: # If you have `file' or equivalent on your system and you're not sure
13425: # whether `pass_all' will *always* work, you probably want this one.
13426:
13427: case $host_os in
13428: aix4* | aix5*)
13429: lt_cv_deplibs_check_method=pass_all
13430: ;;
13431:
13432: beos*)
13433: lt_cv_deplibs_check_method=pass_all
13434: ;;
13435:
1.1.1.5 ! root 13436: bsdi[45]*)
1.1 root 13437: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13438: lt_cv_file_magic_cmd='/usr/bin/file -L'
13439: lt_cv_file_magic_test_file=/shlib/libc.so
13440: ;;
13441:
1.1.1.5 ! root 13442: cygwin*)
! 13443: # func_win32_libid is a shell function defined in ltmain.sh
1.1 root 13444: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.1.1.5 ! root 13445: lt_cv_file_magic_cmd='func_win32_libid'
! 13446: ;;
! 13447:
! 13448: mingw* | pw32*)
! 13449: # Base MSYS/MinGW do not provide the 'file' command needed by
! 13450: # func_win32_libid shell function, so use a weaker test based on 'objdump',
! 13451: # unless we find 'file', for example because we are cross-compiling.
! 13452: if ( file / ) >/dev/null 2>&1; then
! 13453: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
! 13454: lt_cv_file_magic_cmd='func_win32_libid'
! 13455: else
! 13456: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 13457: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 13458: fi
1.1 root 13459: ;;
13460:
13461: darwin* | rhapsody*)
13462: lt_cv_deplibs_check_method=pass_all
13463: ;;
13464:
1.1.1.5 ! root 13465: freebsd* | dragonfly*)
1.1 root 13466: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13467: case $host_cpu in
13468: i*86 )
13469: # Not sure whether the presence of OpenBSD here was a mistake.
13470: # Let's accept both of them until this is cleared up.
1.1.1.5 ! root 13471: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 root 13472: lt_cv_file_magic_cmd=/usr/bin/file
13473: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13474: ;;
13475: esac
13476: else
13477: lt_cv_deplibs_check_method=pass_all
13478: fi
13479: ;;
13480:
13481: gnu*)
13482: lt_cv_deplibs_check_method=pass_all
13483: ;;
13484:
13485: hpux10.20* | hpux11*)
13486: lt_cv_file_magic_cmd=/usr/bin/file
1.1.1.5 ! root 13487: case $host_cpu in
1.1 root 13488: ia64*)
13489: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13490: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13491: ;;
13492: hppa*64*)
13493: 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]'
13494: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13495: ;;
13496: *)
13497: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13498: lt_cv_file_magic_test_file=/usr/lib/libc.sl
13499: ;;
13500: esac
13501: ;;
13502:
1.1.1.5 ! root 13503: interix[3-9]*)
! 13504: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
! 13505: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
! 13506: ;;
! 13507:
1.1 root 13508: irix5* | irix6* | nonstopux*)
1.1.1.5 ! root 13509: case $LD in
! 13510: *-32|*"-32 ") libmagic=32-bit;;
! 13511: *-n32|*"-n32 ") libmagic=N32;;
! 13512: *-64|*"-64 ") libmagic=64-bit;;
! 13513: *) libmagic=never-match;;
1.1 root 13514: esac
13515: lt_cv_deplibs_check_method=pass_all
13516: ;;
13517:
13518: # This must be Linux ELF.
1.1.1.5 ! root 13519: linux* | k*bsd*-gnu)
! 13520: lt_cv_deplibs_check_method=pass_all
1.1 root 13521: ;;
13522:
13523: netbsd*)
13524: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13525: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13526: else
13527: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13528: fi
13529: ;;
13530:
13531: newos6*)
13532: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13533: lt_cv_file_magic_cmd=/usr/bin/file
13534: lt_cv_file_magic_test_file=/usr/lib/libnls.so
13535: ;;
13536:
1.1.1.5 ! root 13537: nto-qnx*)
1.1 root 13538: lt_cv_deplibs_check_method=unknown
13539: ;;
13540:
13541: openbsd*)
13542: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1.1.5 ! root 13543: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 root 13544: else
1.1.1.5 ! root 13545: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 root 13546: fi
13547: ;;
13548:
13549: osf3* | osf4* | osf5*)
13550: lt_cv_deplibs_check_method=pass_all
13551: ;;
13552:
1.1.1.5 ! root 13553: rdos*)
1.1 root 13554: lt_cv_deplibs_check_method=pass_all
13555: ;;
13556:
13557: solaris*)
13558: lt_cv_deplibs_check_method=pass_all
13559: ;;
13560:
1.1.1.5 ! root 13561: sysv4 | sysv4.3*)
1.1 root 13562: case $host_vendor in
13563: motorola)
13564: 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]'
13565: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13566: ;;
13567: ncr)
13568: lt_cv_deplibs_check_method=pass_all
13569: ;;
13570: sequent)
13571: lt_cv_file_magic_cmd='/bin/file'
13572: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13573: ;;
13574: sni)
13575: lt_cv_file_magic_cmd='/bin/file'
13576: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13577: lt_cv_file_magic_test_file=/lib/libc.so
13578: ;;
13579: siemens)
13580: lt_cv_deplibs_check_method=pass_all
13581: ;;
1.1.1.5 ! root 13582: pc)
! 13583: lt_cv_deplibs_check_method=pass_all
! 13584: ;;
1.1 root 13585: esac
13586: ;;
13587:
1.1.1.5 ! root 13588: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 root 13589: lt_cv_deplibs_check_method=pass_all
13590: ;;
13591: esac
13592:
13593: fi
1.1.1.5 ! root 13594: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 13595: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.1 root 13596: file_magic_cmd=$lt_cv_file_magic_cmd
13597: deplibs_check_method=$lt_cv_deplibs_check_method
13598: test -z "$deplibs_check_method" && deplibs_check_method=unknown
13599:
13600:
13601:
13602:
13603: # If no C compiler was specified, use CC.
13604: LTCC=${LTCC-"$CC"}
13605:
1.1.1.5 ! root 13606: # If no C compiler flags were specified, use CFLAGS.
! 13607: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 13608:
1.1 root 13609: # Allow CC to be a program name with arguments.
13610: compiler=$CC
13611:
1.1.1.5 ! root 13612: # Check whether --enable-libtool-lock was given.
1.1 root 13613: if test "${enable_libtool_lock+set}" = set; then
1.1.1.5 ! root 13614: enableval=$enable_libtool_lock;
! 13615: fi
1.1 root 13616:
13617: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13618:
13619: # Some flags need to be propagated to the compiler or linker for good
13620: # libtool support.
13621: case $host in
13622: ia64-*-hpux*)
13623: # Find out which ABI we are using.
13624: echo 'int i;' > conftest.$ac_ext
13625: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626: (eval $ac_compile) 2>&5
13627: ac_status=$?
13628: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629: (exit $ac_status); }; then
13630: case `/usr/bin/file conftest.$ac_objext` in
13631: *ELF-32*)
13632: HPUX_IA64_MODE="32"
13633: ;;
13634: *ELF-64*)
13635: HPUX_IA64_MODE="64"
13636: ;;
13637: esac
13638: fi
13639: rm -rf conftest*
13640: ;;
13641: *-*-irix6*)
13642: # Find out which ABI we are using.
1.1.1.5 ! root 13643: echo '#line 13643 "configure"' > conftest.$ac_ext
1.1 root 13644: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645: (eval $ac_compile) 2>&5
13646: ac_status=$?
13647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648: (exit $ac_status); }; then
13649: if test "$lt_cv_prog_gnu_ld" = yes; then
13650: case `/usr/bin/file conftest.$ac_objext` in
13651: *32-bit*)
13652: LD="${LD-ld} -melf32bsmip"
13653: ;;
13654: *N32*)
13655: LD="${LD-ld} -melf32bmipn32"
13656: ;;
13657: *64-bit*)
13658: LD="${LD-ld} -melf64bmip"
13659: ;;
13660: esac
13661: else
13662: case `/usr/bin/file conftest.$ac_objext` in
13663: *32-bit*)
13664: LD="${LD-ld} -32"
13665: ;;
13666: *N32*)
13667: LD="${LD-ld} -n32"
13668: ;;
13669: *64-bit*)
13670: LD="${LD-ld} -64"
13671: ;;
13672: esac
13673: fi
13674: fi
13675: rm -rf conftest*
13676: ;;
13677:
1.1.1.5 ! root 13678: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
! 13679: s390*-*linux*|sparc*-*linux*)
1.1 root 13680: # Find out which ABI we are using.
13681: echo 'int i;' > conftest.$ac_ext
13682: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683: (eval $ac_compile) 2>&5
13684: ac_status=$?
13685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686: (exit $ac_status); }; then
1.1.1.5 ! root 13687: case `/usr/bin/file conftest.o` in
1.1 root 13688: *32-bit*)
13689: case $host in
1.1.1.5 ! root 13690: x86_64-*kfreebsd*-gnu)
! 13691: LD="${LD-ld} -m elf_i386_fbsd"
! 13692: ;;
1.1 root 13693: x86_64-*linux*)
13694: LD="${LD-ld} -m elf_i386"
13695: ;;
1.1.1.5 ! root 13696: ppc64-*linux*|powerpc64-*linux*)
1.1 root 13697: LD="${LD-ld} -m elf32ppclinux"
13698: ;;
13699: s390x-*linux*)
13700: LD="${LD-ld} -m elf_s390"
13701: ;;
13702: sparc64-*linux*)
13703: LD="${LD-ld} -m elf32_sparc"
13704: ;;
13705: esac
13706: ;;
13707: *64-bit*)
13708: case $host in
1.1.1.5 ! root 13709: x86_64-*kfreebsd*-gnu)
! 13710: LD="${LD-ld} -m elf_x86_64_fbsd"
! 13711: ;;
1.1 root 13712: x86_64-*linux*)
13713: LD="${LD-ld} -m elf_x86_64"
13714: ;;
13715: ppc*-*linux*|powerpc*-*linux*)
13716: LD="${LD-ld} -m elf64ppc"
13717: ;;
13718: s390*-*linux*)
13719: LD="${LD-ld} -m elf64_s390"
13720: ;;
13721: sparc*-*linux*)
13722: LD="${LD-ld} -m elf64_sparc"
13723: ;;
13724: esac
13725: ;;
13726: esac
13727: fi
13728: rm -rf conftest*
13729: ;;
13730:
13731: *-*-sco3.2v5*)
13732: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13733: SAVE_CFLAGS="$CFLAGS"
13734: CFLAGS="$CFLAGS -belf"
1.1.1.5 ! root 13735: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 13736: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
1.1 root 13737: if test "${lt_cv_cc_needs_belf+set}" = set; then
13738: echo $ECHO_N "(cached) $ECHO_C" >&6
13739: else
13740: ac_ext=c
13741: ac_cpp='$CPP $CPPFLAGS'
13742: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13743: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13744: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13745:
13746: cat >conftest.$ac_ext <<_ACEOF
13747: /* confdefs.h. */
13748: _ACEOF
13749: cat confdefs.h >>conftest.$ac_ext
13750: cat >>conftest.$ac_ext <<_ACEOF
13751: /* end confdefs.h. */
13752:
13753: int
13754: main ()
13755: {
13756:
13757: ;
13758: return 0;
13759: }
13760: _ACEOF
13761: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 13762: if { (ac_try="$ac_link"
! 13763: case "(($ac_try" in
! 13764: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13765: *) ac_try_echo=$ac_try;;
! 13766: esac
! 13767: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13768: (eval "$ac_link") 2>conftest.er1
1.1 root 13769: ac_status=$?
1.1.1.5 ! root 13770: grep -v '^ *+' conftest.er1 >conftest.err
! 13771: rm -f conftest.er1
! 13772: cat conftest.err >&5
1.1 root 13773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 13774: (exit $ac_status); } && {
! 13775: test -z "$ac_c_werror_flag" ||
! 13776: test ! -s conftest.err
! 13777: } && test -s conftest$ac_exeext &&
! 13778: $as_test_x conftest$ac_exeext; then
1.1 root 13779: lt_cv_cc_needs_belf=yes
13780: else
13781: echo "$as_me: failed program was:" >&5
13782: sed 's/^/| /' conftest.$ac_ext >&5
13783:
1.1.1.5 ! root 13784: lt_cv_cc_needs_belf=no
1.1 root 13785: fi
1.1.1.5 ! root 13786:
! 13787: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 13788: conftest$ac_exeext conftest.$ac_ext
1.1 root 13789: ac_ext=c
13790: ac_cpp='$CPP $CPPFLAGS'
13791: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13792: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13793: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13794:
13795: fi
1.1.1.5 ! root 13796: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 13797: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
1.1 root 13798: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13799: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13800: CFLAGS="$SAVE_CFLAGS"
13801: fi
13802: ;;
1.1.1.5 ! root 13803: sparc*-*solaris*)
! 13804: # Find out which ABI we are using.
! 13805: echo 'int i;' > conftest.$ac_ext
! 13806: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13807: (eval $ac_compile) 2>&5
! 13808: ac_status=$?
! 13809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13810: (exit $ac_status); }; then
! 13811: case `/usr/bin/file conftest.o` in
! 13812: *64-bit*)
! 13813: case $lt_cv_prog_gnu_ld in
! 13814: yes*) LD="${LD-ld} -m elf64_sparc" ;;
! 13815: *) LD="${LD-ld} -64" ;;
! 13816: esac
! 13817: ;;
! 13818: esac
! 13819: fi
! 13820: rm -rf conftest*
! 13821: ;;
! 13822:
1.1 root 13823:
13824: esac
13825:
13826: need_locks="$enable_libtool_lock"
13827:
13828:
13829:
13830: for ac_header in dlfcn.h
13831: do
13832: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.5 ! root 13833: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 13834: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13835: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13836: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 13837: echo $ECHO_N "(cached) $ECHO_C" >&6
13838: fi
1.1.1.5 ! root 13839: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13840: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13841: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 13842: else
13843: # Is the header compilable?
1.1.1.5 ! root 13844: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13845: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 13846: cat >conftest.$ac_ext <<_ACEOF
13847: /* confdefs.h. */
13848: _ACEOF
13849: cat confdefs.h >>conftest.$ac_ext
13850: cat >>conftest.$ac_ext <<_ACEOF
13851: /* end confdefs.h. */
13852: $ac_includes_default
13853: #include <$ac_header>
13854: _ACEOF
13855: rm -f conftest.$ac_objext
1.1.1.5 ! root 13856: if { (ac_try="$ac_compile"
! 13857: case "(($ac_try" in
! 13858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13859: *) ac_try_echo=$ac_try;;
! 13860: esac
! 13861: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13862: (eval "$ac_compile") 2>conftest.er1
1.1 root 13863: ac_status=$?
1.1.1.5 ! root 13864: grep -v '^ *+' conftest.er1 >conftest.err
! 13865: rm -f conftest.er1
! 13866: cat conftest.err >&5
1.1 root 13867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 13868: (exit $ac_status); } && {
! 13869: test -z "$ac_c_werror_flag" ||
! 13870: test ! -s conftest.err
! 13871: } && test -s conftest.$ac_objext; then
1.1 root 13872: ac_header_compiler=yes
13873: else
13874: echo "$as_me: failed program was:" >&5
13875: sed 's/^/| /' conftest.$ac_ext >&5
13876:
1.1.1.5 ! root 13877: ac_header_compiler=no
1.1 root 13878: fi
1.1.1.5 ! root 13879:
! 13880: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 13881: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13882: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 13883:
13884: # Is the header present?
1.1.1.5 ! root 13885: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13886: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 13887: cat >conftest.$ac_ext <<_ACEOF
13888: /* confdefs.h. */
13889: _ACEOF
13890: cat confdefs.h >>conftest.$ac_ext
13891: cat >>conftest.$ac_ext <<_ACEOF
13892: /* end confdefs.h. */
13893: #include <$ac_header>
13894: _ACEOF
1.1.1.5 ! root 13895: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 13896: case "(($ac_try" in
! 13897: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13898: *) ac_try_echo=$ac_try;;
! 13899: esac
! 13900: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13901: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 13902: ac_status=$?
13903: grep -v '^ *+' conftest.er1 >conftest.err
13904: rm -f conftest.er1
13905: cat conftest.err >&5
13906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 13907: (exit $ac_status); } >/dev/null && {
! 13908: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 13909: test ! -s conftest.err
! 13910: }; then
1.1 root 13911: ac_header_preproc=yes
13912: else
13913: echo "$as_me: failed program was:" >&5
13914: sed 's/^/| /' conftest.$ac_ext >&5
13915:
13916: ac_header_preproc=no
13917: fi
1.1.1.5 ! root 13918:
1.1 root 13919: rm -f conftest.err conftest.$ac_ext
1.1.1.5 ! root 13920: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13921: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 13922:
13923: # So? What about this header?
1.1.1.5 ! root 13924: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 13925: yes:no: )
1.1 root 13926: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13927: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.5 ! root 13928: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 13929: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 13930: ac_header_preproc=yes
1.1 root 13931: ;;
1.1.1.5 ! root 13932: no:yes:* )
1.1 root 13933: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13934: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.5 ! root 13935: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 13936: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 13937: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 13938: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 13939: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 13940: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 13941: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13942: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.5 ! root 13943: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 13944: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 13945:
1.1 root 13946: ;;
13947: esac
1.1.1.5 ! root 13948: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13949: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 13950: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 13951: echo $ECHO_N "(cached) $ECHO_C" >&6
13952: else
1.1.1.5 ! root 13953: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 13954: fi
1.1.1.5 ! root 13955: ac_res=`eval echo '${'$as_ac_Header'}'`
! 13956: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 13957: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 13958:
13959: fi
13960: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961: cat >>confdefs.h <<_ACEOF
13962: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13963: _ACEOF
13964:
13965: fi
13966:
13967: done
13968:
1.1.1.5 ! root 13969: ac_ext=cpp
1.1 root 13970: ac_cpp='$CXXCPP $CPPFLAGS'
13971: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13972: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13973: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.5 ! root 13974: if test -z "$CXX"; then
! 13975: if test -n "$CCC"; then
! 13976: CXX=$CCC
! 13977: else
! 13978: if test -n "$ac_tool_prefix"; then
! 13979: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 root 13980: do
13981: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13982: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.5 ! root 13983: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 13984: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 13985: if test "${ac_cv_prog_CXX+set}" = set; then
13986: echo $ECHO_N "(cached) $ECHO_C" >&6
13987: else
13988: if test -n "$CXX"; then
13989: ac_cv_prog_CXX="$CXX" # Let the user override the test.
13990: else
13991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992: for as_dir in $PATH
13993: do
13994: IFS=$as_save_IFS
13995: test -z "$as_dir" && as_dir=.
13996: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 13997: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 13998: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13999: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000: break 2
14001: fi
14002: done
14003: done
1.1.1.5 ! root 14004: IFS=$as_save_IFS
1.1 root 14005:
14006: fi
14007: fi
14008: CXX=$ac_cv_prog_CXX
14009: if test -n "$CXX"; then
1.1.1.5 ! root 14010: { echo "$as_me:$LINENO: result: $CXX" >&5
! 14011: echo "${ECHO_T}$CXX" >&6; }
1.1 root 14012: else
1.1.1.5 ! root 14013: { echo "$as_me:$LINENO: result: no" >&5
! 14014: echo "${ECHO_T}no" >&6; }
1.1 root 14015: fi
14016:
1.1.1.5 ! root 14017:
1.1 root 14018: test -n "$CXX" && break
14019: done
14020: fi
14021: if test -z "$CXX"; then
14022: ac_ct_CXX=$CXX
1.1.1.5 ! root 14023: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 root 14024: do
14025: # Extract the first word of "$ac_prog", so it can be a program name with args.
14026: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 14027: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 14028: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 14029: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14030: echo $ECHO_N "(cached) $ECHO_C" >&6
14031: else
14032: if test -n "$ac_ct_CXX"; then
14033: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14034: else
14035: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036: for as_dir in $PATH
14037: do
14038: IFS=$as_save_IFS
14039: test -z "$as_dir" && as_dir=.
14040: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 14041: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 14042: ac_cv_prog_ac_ct_CXX="$ac_prog"
14043: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14044: break 2
14045: fi
14046: done
14047: done
1.1.1.5 ! root 14048: IFS=$as_save_IFS
1.1 root 14049:
14050: fi
14051: fi
14052: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14053: if test -n "$ac_ct_CXX"; then
1.1.1.5 ! root 14054: { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 14055: echo "${ECHO_T}$ac_ct_CXX" >&6; }
1.1 root 14056: else
1.1.1.5 ! root 14057: { echo "$as_me:$LINENO: result: no" >&5
! 14058: echo "${ECHO_T}no" >&6; }
1.1 root 14059: fi
14060:
1.1.1.5 ! root 14061:
1.1 root 14062: test -n "$ac_ct_CXX" && break
14063: done
14064:
1.1.1.5 ! root 14065: if test "x$ac_ct_CXX" = x; then
! 14066: CXX="g++"
! 14067: else
! 14068: case $cross_compiling:$ac_tool_warned in
! 14069: yes:)
! 14070: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 14071: whose name does not start with the host triplet. If you think this
! 14072: configuration is useful to you, please write to [email protected]." >&5
! 14073: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 14074: whose name does not start with the host triplet. If you think this
! 14075: configuration is useful to you, please write to [email protected]." >&2;}
! 14076: ac_tool_warned=yes ;;
! 14077: esac
! 14078: CXX=$ac_ct_CXX
! 14079: fi
1.1 root 14080: fi
14081:
1.1.1.5 ! root 14082: fi
! 14083: fi
1.1 root 14084: # Provide some information about the compiler.
1.1.1.5 ! root 14085: echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1.1 root 14086: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.5 ! root 14087: { (ac_try="$ac_compiler --version >&5"
! 14088: case "(($ac_try" in
! 14089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14090: *) ac_try_echo=$ac_try;;
! 14091: esac
! 14092: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14093: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 14094: ac_status=$?
14095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096: (exit $ac_status); }
1.1.1.5 ! root 14097: { (ac_try="$ac_compiler -v >&5"
! 14098: case "(($ac_try" in
! 14099: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14100: *) ac_try_echo=$ac_try;;
! 14101: esac
! 14102: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14103: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 14104: ac_status=$?
14105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106: (exit $ac_status); }
1.1.1.5 ! root 14107: { (ac_try="$ac_compiler -V >&5"
! 14108: case "(($ac_try" in
! 14109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14110: *) ac_try_echo=$ac_try;;
! 14111: esac
! 14112: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14113: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 14114: ac_status=$?
14115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116: (exit $ac_status); }
14117:
1.1.1.5 ! root 14118: { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 14119: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
1.1 root 14120: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14121: echo $ECHO_N "(cached) $ECHO_C" >&6
14122: else
14123: cat >conftest.$ac_ext <<_ACEOF
14124: /* confdefs.h. */
14125: _ACEOF
14126: cat confdefs.h >>conftest.$ac_ext
14127: cat >>conftest.$ac_ext <<_ACEOF
14128: /* end confdefs.h. */
14129:
14130: int
14131: main ()
14132: {
14133: #ifndef __GNUC__
14134: choke me
14135: #endif
14136:
14137: ;
14138: return 0;
14139: }
14140: _ACEOF
14141: rm -f conftest.$ac_objext
1.1.1.5 ! root 14142: if { (ac_try="$ac_compile"
! 14143: case "(($ac_try" in
! 14144: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14145: *) ac_try_echo=$ac_try;;
! 14146: esac
! 14147: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14148: (eval "$ac_compile") 2>conftest.er1
1.1 root 14149: ac_status=$?
1.1.1.5 ! root 14150: grep -v '^ *+' conftest.er1 >conftest.err
! 14151: rm -f conftest.er1
! 14152: cat conftest.err >&5
1.1 root 14153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14154: (exit $ac_status); } && {
! 14155: test -z "$ac_cxx_werror_flag" ||
! 14156: test ! -s conftest.err
! 14157: } && test -s conftest.$ac_objext; then
1.1 root 14158: ac_compiler_gnu=yes
14159: else
14160: echo "$as_me: failed program was:" >&5
14161: sed 's/^/| /' conftest.$ac_ext >&5
14162:
1.1.1.5 ! root 14163: ac_compiler_gnu=no
1.1 root 14164: fi
1.1.1.5 ! root 14165:
! 14166: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 14167: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14168:
14169: fi
1.1.1.5 ! root 14170: { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 14171: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
1.1 root 14172: GXX=`test $ac_compiler_gnu = yes && echo yes`
14173: ac_test_CXXFLAGS=${CXXFLAGS+set}
14174: ac_save_CXXFLAGS=$CXXFLAGS
1.1.1.5 ! root 14175: { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 14176: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
1.1 root 14177: if test "${ac_cv_prog_cxx_g+set}" = set; then
14178: echo $ECHO_N "(cached) $ECHO_C" >&6
14179: else
1.1.1.5 ! root 14180: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 14181: ac_cxx_werror_flag=yes
! 14182: ac_cv_prog_cxx_g=no
! 14183: CXXFLAGS="-g"
! 14184: cat >conftest.$ac_ext <<_ACEOF
1.1 root 14185: /* confdefs.h. */
14186: _ACEOF
14187: cat confdefs.h >>conftest.$ac_ext
14188: cat >>conftest.$ac_ext <<_ACEOF
14189: /* end confdefs.h. */
14190:
14191: int
14192: main ()
14193: {
14194:
14195: ;
14196: return 0;
14197: }
14198: _ACEOF
14199: rm -f conftest.$ac_objext
1.1.1.5 ! root 14200: if { (ac_try="$ac_compile"
! 14201: case "(($ac_try" in
! 14202: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14203: *) ac_try_echo=$ac_try;;
! 14204: esac
! 14205: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14206: (eval "$ac_compile") 2>conftest.er1
1.1 root 14207: ac_status=$?
1.1.1.5 ! root 14208: grep -v '^ *+' conftest.er1 >conftest.err
! 14209: rm -f conftest.er1
! 14210: cat conftest.err >&5
1.1 root 14211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14212: (exit $ac_status); } && {
! 14213: test -z "$ac_cxx_werror_flag" ||
! 14214: test ! -s conftest.err
! 14215: } && test -s conftest.$ac_objext; then
1.1 root 14216: ac_cv_prog_cxx_g=yes
14217: else
14218: echo "$as_me: failed program was:" >&5
14219: sed 's/^/| /' conftest.$ac_ext >&5
14220:
1.1.1.5 ! root 14221: CXXFLAGS=""
! 14222: cat >conftest.$ac_ext <<_ACEOF
1.1 root 14223: /* confdefs.h. */
14224: _ACEOF
14225: cat confdefs.h >>conftest.$ac_ext
14226: cat >>conftest.$ac_ext <<_ACEOF
14227: /* end confdefs.h. */
1.1.1.5 ! root 14228:
1.1 root 14229: int
14230: main ()
14231: {
1.1.1.5 ! root 14232:
1.1 root 14233: ;
14234: return 0;
14235: }
14236: _ACEOF
14237: rm -f conftest.$ac_objext
1.1.1.5 ! root 14238: if { (ac_try="$ac_compile"
! 14239: case "(($ac_try" in
! 14240: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14241: *) ac_try_echo=$ac_try;;
! 14242: esac
! 14243: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14244: (eval "$ac_compile") 2>conftest.er1
1.1 root 14245: ac_status=$?
1.1.1.5 ! root 14246: grep -v '^ *+' conftest.er1 >conftest.err
! 14247: rm -f conftest.er1
! 14248: cat conftest.err >&5
1.1 root 14249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14250: (exit $ac_status); } && {
! 14251: test -z "$ac_cxx_werror_flag" ||
! 14252: test ! -s conftest.err
! 14253: } && test -s conftest.$ac_objext; then
1.1 root 14254: :
14255: else
14256: echo "$as_me: failed program was:" >&5
14257: sed 's/^/| /' conftest.$ac_ext >&5
14258:
1.1.1.5 ! root 14259: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 14260: CXXFLAGS="-g"
! 14261: cat >conftest.$ac_ext <<_ACEOF
1.1 root 14262: /* confdefs.h. */
14263: _ACEOF
14264: cat confdefs.h >>conftest.$ac_ext
14265: cat >>conftest.$ac_ext <<_ACEOF
14266: /* end confdefs.h. */
1.1.1.5 ! root 14267:
1.1 root 14268: int
14269: main ()
14270: {
1.1.1.5 ! root 14271:
1.1 root 14272: ;
14273: return 0;
14274: }
14275: _ACEOF
14276: rm -f conftest.$ac_objext
1.1.1.5 ! root 14277: if { (ac_try="$ac_compile"
! 14278: case "(($ac_try" in
! 14279: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14280: *) ac_try_echo=$ac_try;;
! 14281: esac
! 14282: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14283: (eval "$ac_compile") 2>conftest.er1
1.1 root 14284: ac_status=$?
1.1.1.5 ! root 14285: grep -v '^ *+' conftest.er1 >conftest.err
! 14286: rm -f conftest.er1
! 14287: cat conftest.err >&5
1.1 root 14288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14289: (exit $ac_status); } && {
! 14290: test -z "$ac_cxx_werror_flag" ||
! 14291: test ! -s conftest.err
! 14292: } && test -s conftest.$ac_objext; then
! 14293: ac_cv_prog_cxx_g=yes
1.1 root 14294: else
14295: echo "$as_me: failed program was:" >&5
14296: sed 's/^/| /' conftest.$ac_ext >&5
14297:
1.1.1.5 ! root 14298:
1.1 root 14299: fi
1.1.1.5 ! root 14300:
! 14301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 14302: fi
! 14303:
! 14304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 14305: fi
14306:
1.1.1.5 ! root 14307: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 14308: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 14309: fi
! 14310: { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 14311: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
! 14312: if test "$ac_test_CXXFLAGS" = set; then
! 14313: CXXFLAGS=$ac_save_CXXFLAGS
! 14314: elif test $ac_cv_prog_cxx_g = yes; then
! 14315: if test "$GXX" = yes; then
! 14316: CXXFLAGS="-g -O2"
! 14317: else
! 14318: CXXFLAGS="-g"
! 14319: fi
! 14320: else
! 14321: if test "$GXX" = yes; then
! 14322: CXXFLAGS="-O2"
! 14323: else
! 14324: CXXFLAGS=
! 14325: fi
! 14326: fi
! 14327: ac_ext=cpp
1.1 root 14328: ac_cpp='$CXXCPP $CPPFLAGS'
14329: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14332:
14333: depcc="$CXX" am_compiler_list=
14334:
1.1.1.5 ! root 14335: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 14336: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1 root 14337: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
14338: echo $ECHO_N "(cached) $ECHO_C" >&6
14339: else
14340: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14341: # We make a subdir and do the tests there. Otherwise we can end up
14342: # making bogus files that we don't know about and never remove. For
14343: # instance it was reported that on HP-UX the gcc test will end up
14344: # making a dummy file named `D' -- because `-MD' means `put the output
14345: # in D'.
14346: mkdir conftest.dir
14347: # Copy depcomp to subdir because otherwise we won't find it if we're
14348: # using a relative directory.
14349: cp "$am_depcomp" conftest.dir
14350: cd conftest.dir
1.1.1.5 ! root 14351: # We will build objects and dependencies in a subdirectory because
! 14352: # it helps to detect inapplicable dependency modes. For instance
! 14353: # both Tru64's cc and ICC support -MD to output dependencies as a
! 14354: # side effect of compilation, but ICC will put the dependencies in
! 14355: # the current directory while Tru64 will put them in the object
! 14356: # directory.
! 14357: mkdir sub
1.1 root 14358:
14359: am_cv_CXX_dependencies_compiler_type=none
14360: if test "$am_compiler_list" = ""; then
14361: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14362: fi
14363: for depmode in $am_compiler_list; do
1.1.1.5 ! root 14364: # Setup a source with many dependencies, because some compilers
! 14365: # like to wrap large dependency lists on column 80 (with \), and
! 14366: # we should not choose a depcomp mode which is confused by this.
! 14367: #
1.1 root 14368: # We need to recreate these files for each test, as the compiler may
14369: # overwrite some of them when testing with obscure command lines.
14370: # This happens at least with the AIX C compiler.
1.1.1.5 ! root 14371: : > sub/conftest.c
! 14372: for i in 1 2 3 4 5 6; do
! 14373: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 14374: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 14375: # Solaris 8's {/usr,}/bin/sh.
! 14376: touch sub/conftst$i.h
! 14377: done
! 14378: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1 root 14379:
14380: case $depmode in
14381: nosideeffect)
14382: # after this tag, mechanisms are not by side-effect, so they'll
14383: # only be used when explicitly requested
14384: if test "x$enable_dependency_tracking" = xyes; then
14385: continue
14386: else
14387: break
14388: fi
14389: ;;
14390: none) break ;;
14391: esac
14392: # We check with `-c' and `-o' for the sake of the "dashmstdout"
14393: # mode. It turns out that the SunPro C++ compiler does not properly
14394: # handle `-M -o', and we need to detect this.
14395: if depmode=$depmode \
1.1.1.5 ! root 14396: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 14397: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 14398: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
! 14399: >/dev/null 2>conftest.err &&
! 14400: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 14401: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 14402: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1 root 14403: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1.1.5 ! root 14404: # icc doesn't choke on unknown options, it will just issue warnings
! 14405: # or remarks (even with -Werror). So we grep stderr for any message
! 14406: # that says an option was ignored or not supported.
! 14407: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 14408: # icc: Command line warning: ignoring option '-M'; no argument required
! 14409: # The diagnosis changed in icc 8.0:
! 14410: # icc: Command line remark: option '-MP' not supported
! 14411: if (grep 'ignoring option' conftest.err ||
! 14412: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 14413: am_cv_CXX_dependencies_compiler_type=$depmode
! 14414: break
! 14415: fi
1.1 root 14416: fi
14417: done
14418:
14419: cd ..
14420: rm -rf conftest.dir
14421: else
14422: am_cv_CXX_dependencies_compiler_type=none
14423: fi
14424:
14425: fi
1.1.1.5 ! root 14426: { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 14427: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1 root 14428: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14429:
1.1.1.5 ! root 14430: if
1.1 root 14431: test "x$enable_dependency_tracking" != xno \
14432: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14433: am__fastdepCXX_TRUE=
14434: am__fastdepCXX_FALSE='#'
14435: else
14436: am__fastdepCXX_TRUE='#'
14437: am__fastdepCXX_FALSE=
14438: fi
14439:
14440:
1.1.1.5 ! root 14441:
! 14442:
! 14443: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
! 14444: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
! 14445: (test "X$CXX" != "Xg++"))) ; then
! 14446: ac_ext=cpp
1.1 root 14447: ac_cpp='$CXXCPP $CPPFLAGS'
14448: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.5 ! root 14451: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 14452: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
1.1 root 14453: if test -z "$CXXCPP"; then
14454: if test "${ac_cv_prog_CXXCPP+set}" = set; then
14455: echo $ECHO_N "(cached) $ECHO_C" >&6
14456: else
14457: # Double quotes because CXXCPP needs to be expanded
14458: for CXXCPP in "$CXX -E" "/lib/cpp"
14459: do
14460: ac_preproc_ok=false
14461: for ac_cxx_preproc_warn_flag in '' yes
14462: do
14463: # Use a header file that comes with gcc, so configuring glibc
14464: # with a fresh cross-compiler works.
14465: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14466: # <limits.h> exists even on freestanding compilers.
14467: # On the NeXT, cc -E runs the code through the compiler's parser,
14468: # not just through cpp. "Syntax error" is here to catch this case.
14469: cat >conftest.$ac_ext <<_ACEOF
14470: /* confdefs.h. */
14471: _ACEOF
14472: cat confdefs.h >>conftest.$ac_ext
14473: cat >>conftest.$ac_ext <<_ACEOF
14474: /* end confdefs.h. */
14475: #ifdef __STDC__
14476: # include <limits.h>
14477: #else
14478: # include <assert.h>
14479: #endif
1.1.1.5 ! root 14480: Syntax error
1.1 root 14481: _ACEOF
1.1.1.5 ! root 14482: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 14483: case "(($ac_try" in
! 14484: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14485: *) ac_try_echo=$ac_try;;
! 14486: esac
! 14487: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14488: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 14489: ac_status=$?
14490: grep -v '^ *+' conftest.er1 >conftest.err
14491: rm -f conftest.er1
14492: cat conftest.err >&5
14493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14494: (exit $ac_status); } >/dev/null && {
! 14495: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 14496: test ! -s conftest.err
! 14497: }; then
1.1 root 14498: :
14499: else
14500: echo "$as_me: failed program was:" >&5
14501: sed 's/^/| /' conftest.$ac_ext >&5
14502:
14503: # Broken: fails on valid input.
14504: continue
14505: fi
1.1.1.5 ! root 14506:
1.1 root 14507: rm -f conftest.err conftest.$ac_ext
14508:
1.1.1.5 ! root 14509: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 14510: # can be detected and how.
14511: cat >conftest.$ac_ext <<_ACEOF
14512: /* confdefs.h. */
14513: _ACEOF
14514: cat confdefs.h >>conftest.$ac_ext
14515: cat >>conftest.$ac_ext <<_ACEOF
14516: /* end confdefs.h. */
14517: #include <ac_nonexistent.h>
14518: _ACEOF
1.1.1.5 ! root 14519: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 14520: case "(($ac_try" in
! 14521: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14522: *) ac_try_echo=$ac_try;;
! 14523: esac
! 14524: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14525: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 14526: ac_status=$?
14527: grep -v '^ *+' conftest.er1 >conftest.err
14528: rm -f conftest.er1
14529: cat conftest.err >&5
14530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14531: (exit $ac_status); } >/dev/null && {
! 14532: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 14533: test ! -s conftest.err
! 14534: }; then
1.1 root 14535: # Broken: success on invalid input.
14536: continue
14537: else
14538: echo "$as_me: failed program was:" >&5
14539: sed 's/^/| /' conftest.$ac_ext >&5
14540:
14541: # Passes both tests.
14542: ac_preproc_ok=:
14543: break
14544: fi
1.1.1.5 ! root 14545:
1.1 root 14546: rm -f conftest.err conftest.$ac_ext
14547:
14548: done
14549: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14550: rm -f conftest.err conftest.$ac_ext
14551: if $ac_preproc_ok; then
14552: break
14553: fi
14554:
14555: done
14556: ac_cv_prog_CXXCPP=$CXXCPP
14557:
14558: fi
14559: CXXCPP=$ac_cv_prog_CXXCPP
14560: else
14561: ac_cv_prog_CXXCPP=$CXXCPP
14562: fi
1.1.1.5 ! root 14563: { echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 14564: echo "${ECHO_T}$CXXCPP" >&6; }
1.1 root 14565: ac_preproc_ok=false
14566: for ac_cxx_preproc_warn_flag in '' yes
14567: do
14568: # Use a header file that comes with gcc, so configuring glibc
14569: # with a fresh cross-compiler works.
14570: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14571: # <limits.h> exists even on freestanding compilers.
14572: # On the NeXT, cc -E runs the code through the compiler's parser,
14573: # not just through cpp. "Syntax error" is here to catch this case.
14574: cat >conftest.$ac_ext <<_ACEOF
14575: /* confdefs.h. */
14576: _ACEOF
14577: cat confdefs.h >>conftest.$ac_ext
14578: cat >>conftest.$ac_ext <<_ACEOF
14579: /* end confdefs.h. */
14580: #ifdef __STDC__
14581: # include <limits.h>
14582: #else
14583: # include <assert.h>
14584: #endif
1.1.1.5 ! root 14585: Syntax error
1.1 root 14586: _ACEOF
1.1.1.5 ! root 14587: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 14588: case "(($ac_try" in
! 14589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14590: *) ac_try_echo=$ac_try;;
! 14591: esac
! 14592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14593: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 14594: ac_status=$?
14595: grep -v '^ *+' conftest.er1 >conftest.err
14596: rm -f conftest.er1
14597: cat conftest.err >&5
14598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14599: (exit $ac_status); } >/dev/null && {
! 14600: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 14601: test ! -s conftest.err
! 14602: }; then
1.1 root 14603: :
14604: else
14605: echo "$as_me: failed program was:" >&5
14606: sed 's/^/| /' conftest.$ac_ext >&5
14607:
14608: # Broken: fails on valid input.
14609: continue
14610: fi
1.1.1.5 ! root 14611:
1.1 root 14612: rm -f conftest.err conftest.$ac_ext
14613:
1.1.1.5 ! root 14614: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 14615: # can be detected and how.
14616: cat >conftest.$ac_ext <<_ACEOF
14617: /* confdefs.h. */
14618: _ACEOF
14619: cat confdefs.h >>conftest.$ac_ext
14620: cat >>conftest.$ac_ext <<_ACEOF
14621: /* end confdefs.h. */
14622: #include <ac_nonexistent.h>
14623: _ACEOF
1.1.1.5 ! root 14624: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 14625: case "(($ac_try" in
! 14626: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14627: *) ac_try_echo=$ac_try;;
! 14628: esac
! 14629: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14630: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 14631: ac_status=$?
14632: grep -v '^ *+' conftest.er1 >conftest.err
14633: rm -f conftest.er1
14634: cat conftest.err >&5
14635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14636: (exit $ac_status); } >/dev/null && {
! 14637: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 14638: test ! -s conftest.err
! 14639: }; then
1.1 root 14640: # Broken: success on invalid input.
14641: continue
14642: else
14643: echo "$as_me: failed program was:" >&5
14644: sed 's/^/| /' conftest.$ac_ext >&5
14645:
14646: # Passes both tests.
14647: ac_preproc_ok=:
14648: break
14649: fi
1.1.1.5 ! root 14650:
1.1 root 14651: rm -f conftest.err conftest.$ac_ext
14652:
14653: done
14654: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14655: rm -f conftest.err conftest.$ac_ext
14656: if $ac_preproc_ok; then
14657: :
14658: else
14659: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14660: See \`config.log' for more details." >&5
14661: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14662: See \`config.log' for more details." >&2;}
14663: { (exit 1); exit 1; }; }
14664: fi
14665:
1.1.1.5 ! root 14666: ac_ext=cpp
1.1 root 14667: ac_cpp='$CXXCPP $CPPFLAGS'
14668: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14669: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14670: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14671:
1.1.1.5 ! root 14672: fi
! 14673:
1.1 root 14674:
14675: ac_ext=f
14676: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14677: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14679: if test -n "$ac_tool_prefix"; then
1.1.1.5 ! root 14680: for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1.1 root 14681: do
14682: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14683: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.5 ! root 14684: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 14685: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 14686: if test "${ac_cv_prog_F77+set}" = set; then
14687: echo $ECHO_N "(cached) $ECHO_C" >&6
14688: else
14689: if test -n "$F77"; then
14690: ac_cv_prog_F77="$F77" # Let the user override the test.
14691: else
14692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14693: for as_dir in $PATH
14694: do
14695: IFS=$as_save_IFS
14696: test -z "$as_dir" && as_dir=.
14697: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 14698: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 14699: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14700: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14701: break 2
14702: fi
14703: done
14704: done
1.1.1.5 ! root 14705: IFS=$as_save_IFS
1.1 root 14706:
14707: fi
14708: fi
14709: F77=$ac_cv_prog_F77
14710: if test -n "$F77"; then
1.1.1.5 ! root 14711: { echo "$as_me:$LINENO: result: $F77" >&5
! 14712: echo "${ECHO_T}$F77" >&6; }
1.1 root 14713: else
1.1.1.5 ! root 14714: { echo "$as_me:$LINENO: result: no" >&5
! 14715: echo "${ECHO_T}no" >&6; }
1.1 root 14716: fi
14717:
1.1.1.5 ! root 14718:
1.1 root 14719: test -n "$F77" && break
14720: done
14721: fi
14722: if test -z "$F77"; then
14723: ac_ct_F77=$F77
1.1.1.5 ! root 14724: for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1.1 root 14725: do
14726: # Extract the first word of "$ac_prog", so it can be a program name with args.
14727: set dummy $ac_prog; ac_word=$2
1.1.1.5 ! root 14728: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 14729: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 14730: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14731: echo $ECHO_N "(cached) $ECHO_C" >&6
14732: else
14733: if test -n "$ac_ct_F77"; then
14734: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14735: else
14736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737: for as_dir in $PATH
14738: do
14739: IFS=$as_save_IFS
14740: test -z "$as_dir" && as_dir=.
14741: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 14742: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 14743: ac_cv_prog_ac_ct_F77="$ac_prog"
14744: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14745: break 2
14746: fi
14747: done
14748: done
1.1.1.5 ! root 14749: IFS=$as_save_IFS
1.1 root 14750:
14751: fi
14752: fi
14753: ac_ct_F77=$ac_cv_prog_ac_ct_F77
14754: if test -n "$ac_ct_F77"; then
1.1.1.5 ! root 14755: { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
! 14756: echo "${ECHO_T}$ac_ct_F77" >&6; }
1.1 root 14757: else
1.1.1.5 ! root 14758: { echo "$as_me:$LINENO: result: no" >&5
! 14759: echo "${ECHO_T}no" >&6; }
1.1 root 14760: fi
14761:
1.1.1.5 ! root 14762:
1.1 root 14763: test -n "$ac_ct_F77" && break
14764: done
14765:
1.1.1.5 ! root 14766: if test "x$ac_ct_F77" = x; then
! 14767: F77=""
! 14768: else
! 14769: case $cross_compiling:$ac_tool_warned in
! 14770: yes:)
! 14771: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 14772: whose name does not start with the host triplet. If you think this
! 14773: configuration is useful to you, please write to [email protected]." >&5
! 14774: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 14775: whose name does not start with the host triplet. If you think this
! 14776: configuration is useful to you, please write to [email protected]." >&2;}
! 14777: ac_tool_warned=yes ;;
! 14778: esac
! 14779: F77=$ac_ct_F77
! 14780: fi
1.1 root 14781: fi
14782:
14783:
14784: # Provide some information about the compiler.
1.1.1.5 ! root 14785: echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
1.1 root 14786: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.5 ! root 14787: { (ac_try="$ac_compiler --version >&5"
! 14788: case "(($ac_try" in
! 14789: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14790: *) ac_try_echo=$ac_try;;
! 14791: esac
! 14792: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14793: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 14794: ac_status=$?
14795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796: (exit $ac_status); }
1.1.1.5 ! root 14797: { (ac_try="$ac_compiler -v >&5"
! 14798: case "(($ac_try" in
! 14799: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14800: *) ac_try_echo=$ac_try;;
! 14801: esac
! 14802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14803: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 14804: ac_status=$?
14805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806: (exit $ac_status); }
1.1.1.5 ! root 14807: { (ac_try="$ac_compiler -V >&5"
! 14808: case "(($ac_try" in
! 14809: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14810: *) ac_try_echo=$ac_try;;
! 14811: esac
! 14812: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14813: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 14814: ac_status=$?
14815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816: (exit $ac_status); }
1.1.1.5 ! root 14817: rm -f a.out
1.1 root 14818:
14819: # If we don't use `.F' as extension, the preprocessor is not run on the
1.1.1.5 ! root 14820: # input file. (Note that this only needs to work for GNU compilers.)
1.1 root 14821: ac_save_ext=$ac_ext
14822: ac_ext=F
1.1.1.5 ! root 14823: { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
! 14824: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
1.1 root 14825: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14826: echo $ECHO_N "(cached) $ECHO_C" >&6
14827: else
14828: cat >conftest.$ac_ext <<_ACEOF
14829: program main
14830: #ifndef __GNUC__
14831: choke me
14832: #endif
14833:
14834: end
14835: _ACEOF
14836: rm -f conftest.$ac_objext
1.1.1.5 ! root 14837: if { (ac_try="$ac_compile"
! 14838: case "(($ac_try" in
! 14839: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14840: *) ac_try_echo=$ac_try;;
! 14841: esac
! 14842: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14843: (eval "$ac_compile") 2>conftest.er1
1.1 root 14844: ac_status=$?
1.1.1.5 ! root 14845: grep -v '^ *+' conftest.er1 >conftest.err
! 14846: rm -f conftest.er1
! 14847: cat conftest.err >&5
1.1 root 14848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14849: (exit $ac_status); } && {
! 14850: test -z "$ac_f77_werror_flag" ||
! 14851: test ! -s conftest.err
! 14852: } && test -s conftest.$ac_objext; then
1.1 root 14853: ac_compiler_gnu=yes
14854: else
14855: echo "$as_me: failed program was:" >&5
14856: sed 's/^/| /' conftest.$ac_ext >&5
14857:
1.1.1.5 ! root 14858: ac_compiler_gnu=no
1.1 root 14859: fi
1.1.1.5 ! root 14860:
! 14861: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 14862: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14863:
14864: fi
1.1.1.5 ! root 14865: { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
! 14866: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
1.1 root 14867: ac_ext=$ac_save_ext
14868: ac_test_FFLAGS=${FFLAGS+set}
14869: ac_save_FFLAGS=$FFLAGS
14870: FFLAGS=
1.1.1.5 ! root 14871: { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
! 14872: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
1.1 root 14873: if test "${ac_cv_prog_f77_g+set}" = set; then
14874: echo $ECHO_N "(cached) $ECHO_C" >&6
14875: else
14876: FFLAGS=-g
14877: cat >conftest.$ac_ext <<_ACEOF
14878: program main
14879:
14880: end
14881: _ACEOF
14882: rm -f conftest.$ac_objext
1.1.1.5 ! root 14883: if { (ac_try="$ac_compile"
! 14884: case "(($ac_try" in
! 14885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14886: *) ac_try_echo=$ac_try;;
! 14887: esac
! 14888: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14889: (eval "$ac_compile") 2>conftest.er1
1.1 root 14890: ac_status=$?
1.1.1.5 ! root 14891: grep -v '^ *+' conftest.er1 >conftest.err
! 14892: rm -f conftest.er1
! 14893: cat conftest.err >&5
1.1 root 14894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 14895: (exit $ac_status); } && {
! 14896: test -z "$ac_f77_werror_flag" ||
! 14897: test ! -s conftest.err
! 14898: } && test -s conftest.$ac_objext; then
1.1 root 14899: ac_cv_prog_f77_g=yes
14900: else
14901: echo "$as_me: failed program was:" >&5
14902: sed 's/^/| /' conftest.$ac_ext >&5
14903:
1.1.1.5 ! root 14904: ac_cv_prog_f77_g=no
1.1 root 14905: fi
1.1.1.5 ! root 14906:
! 14907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 14908:
14909: fi
1.1.1.5 ! root 14910: { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
! 14911: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
1.1 root 14912: if test "$ac_test_FFLAGS" = set; then
14913: FFLAGS=$ac_save_FFLAGS
14914: elif test $ac_cv_prog_f77_g = yes; then
1.1.1.5 ! root 14915: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.1 root 14916: FFLAGS="-g -O2"
14917: else
14918: FFLAGS="-g"
14919: fi
14920: else
1.1.1.5 ! root 14921: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.1 root 14922: FFLAGS="-O2"
14923: else
14924: FFLAGS=
14925: fi
14926: fi
1.1.1.5 ! root 14927:
! 14928: G77=`test $ac_compiler_gnu = yes && echo yes`
1.1 root 14929: ac_ext=c
14930: ac_cpp='$CPP $CPPFLAGS'
14931: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14934:
14935:
14936:
14937: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14938:
14939: # find the maximum length of command line arguments
1.1.1.5 ! root 14940: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 14941: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
1.1 root 14942: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14943: echo $ECHO_N "(cached) $ECHO_C" >&6
14944: else
14945: i=0
1.1.1.5 ! root 14946: teststring="ABCD"
1.1 root 14947:
14948: case $build_os in
14949: msdosdjgpp*)
14950: # On DJGPP, this test can blow up pretty badly due to problems in libc
14951: # (any single argument exceeding 2000 bytes causes a buffer overrun
14952: # during glob expansion). Even if it were fixed, the result of this
14953: # check would be larger than it should be.
14954: lt_cv_sys_max_cmd_len=12288; # 12K is about right
14955: ;;
14956:
14957: gnu*)
14958: # Under GNU Hurd, this test is not required because there is
14959: # no limit to the length of command line arguments.
14960: # Libtool will interpret -1 as no limit whatsoever
14961: lt_cv_sys_max_cmd_len=-1;
14962: ;;
14963:
14964: cygwin* | mingw*)
14965: # On Win9x/ME, this test blows up -- it succeeds, but takes
14966: # about 5 minutes as the teststring grows exponentially.
14967: # Worse, since 9x/ME are not pre-emptively multitasking,
14968: # you end up with a "frozen" computer, even though with patience
14969: # the test eventually succeeds (with a max line length of 256k).
14970: # Instead, let's just punt: use the minimum linelength reported by
14971: # all of the supported platforms: 8192 (on NT/2K/XP).
14972: lt_cv_sys_max_cmd_len=8192;
14973: ;;
14974:
1.1.1.5 ! root 14975: amigaos*)
! 14976: # On AmigaOS with pdksh, this test takes hours, literally.
! 14977: # So we just punt and use a minimum line length of 8192.
! 14978: lt_cv_sys_max_cmd_len=8192;
! 14979: ;;
! 14980:
! 14981: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
! 14982: # This has been around since 386BSD, at least. Likely further.
! 14983: if test -x /sbin/sysctl; then
! 14984: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
! 14985: elif test -x /usr/sbin/sysctl; then
! 14986: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
! 14987: else
! 14988: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
! 14989: fi
! 14990: # And add a safety zone
! 14991: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 14992: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 14993: ;;
! 14994:
! 14995: interix*)
! 14996: # We know the value 262144 and hardcode it with a safety zone (like BSD)
! 14997: lt_cv_sys_max_cmd_len=196608
! 14998: ;;
! 14999:
! 15000: osf*)
! 15001: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
! 15002: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
! 15003: # nice to cause kernel panics so lets avoid the loop below.
! 15004: # First set a reasonable default.
! 15005: lt_cv_sys_max_cmd_len=16384
! 15006: #
! 15007: if test -x /sbin/sysconfig; then
! 15008: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
! 15009: *1*) lt_cv_sys_max_cmd_len=-1 ;;
! 15010: esac
! 15011: fi
! 15012: ;;
! 15013: sco3.2v5*)
! 15014: lt_cv_sys_max_cmd_len=102400
! 15015: ;;
! 15016: sysv5* | sco5v6* | sysv4.2uw2*)
! 15017: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
! 15018: if test -n "$kargmax"; then
! 15019: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
! 15020: else
! 15021: lt_cv_sys_max_cmd_len=32768
! 15022: fi
! 15023: ;;
! 15024: *)
! 15025: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
! 15026: if test -n "$lt_cv_sys_max_cmd_len"; then
! 15027: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 15028: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 15029: else
! 15030: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
! 15031: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
! 15032: = "XX$teststring") >/dev/null 2>&1 &&
! 15033: new_result=`expr "X$teststring" : ".*" 2>&1` &&
! 15034: lt_cv_sys_max_cmd_len=$new_result &&
! 15035: test $i != 17 # 1/2 MB should be enough
! 15036: do
! 15037: i=`expr $i + 1`
! 15038: teststring=$teststring$teststring
! 15039: done
! 15040: teststring=
! 15041: # Add a significant safety factor because C++ compilers can tack on massive
! 15042: # amounts of additional arguments before passing them to the linker.
! 15043: # It appears as though 1/2 is a usable value.
! 15044: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 15045: fi
1.1 root 15046: ;;
15047: esac
15048:
15049: fi
15050:
15051: if test -n $lt_cv_sys_max_cmd_len ; then
1.1.1.5 ! root 15052: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 15053: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
1.1 root 15054: else
1.1.1.5 ! root 15055: { echo "$as_me:$LINENO: result: none" >&5
! 15056: echo "${ECHO_T}none" >&6; }
1.1 root 15057: fi
15058:
15059:
15060:
15061:
1.1.1.5 ! root 15062:
1.1 root 15063: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.5 ! root 15064: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 15065: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
1.1 root 15066: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15067: echo $ECHO_N "(cached) $ECHO_C" >&6
15068: else
15069:
15070: # These are sane defaults that work on at least a few old systems.
15071: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15072:
15073: # Character class describing NM global symbol codes.
15074: symcode='[BCDEGRST]'
15075:
15076: # Regexp to match symbols that can be accessed directly from C.
15077: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15078:
15079: # Transform an extracted symbol line into a proper C declaration
15080: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
15081:
15082: # Transform an extracted symbol line into symbol name and symbol address
15083: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15084:
15085: # Define system-specific variables.
15086: case $host_os in
15087: aix*)
15088: symcode='[BCDT]'
15089: ;;
15090: cygwin* | mingw* | pw32*)
15091: symcode='[ABCDGISTW]'
15092: ;;
15093: hpux*) # Its linker distinguishes data from code symbols
15094: if test "$host_cpu" = ia64; then
15095: symcode='[ABCDEGRST]'
15096: fi
15097: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15098: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15099: ;;
1.1.1.5 ! root 15100: linux* | k*bsd*-gnu)
! 15101: if test "$host_cpu" = ia64; then
! 15102: symcode='[ABCDGIRSTW]'
! 15103: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 15104: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
! 15105: fi
! 15106: ;;
1.1 root 15107: irix* | nonstopux*)
15108: symcode='[BCDEGRST]'
15109: ;;
15110: osf*)
15111: symcode='[BCDEGQRST]'
15112: ;;
1.1.1.5 ! root 15113: solaris*)
! 15114: symcode='[BDRT]'
! 15115: ;;
! 15116: sco3.2v5*)
! 15117: symcode='[DT]'
! 15118: ;;
! 15119: sysv4.2uw2*)
! 15120: symcode='[DT]'
! 15121: ;;
! 15122: sysv5* | sco5v6* | unixware* | OpenUNIX*)
! 15123: symcode='[ABDT]'
1.1 root 15124: ;;
15125: sysv4)
15126: symcode='[DFNSTU]'
15127: ;;
15128: esac
15129:
15130: # Handle CRLF in mingw tool chain
15131: opt_cr=
15132: case $build_os in
15133: mingw*)
15134: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15135: ;;
15136: esac
15137:
15138: # If we're using GNU nm, then use its standard symbol codes.
15139: case `$NM -V 2>&1` in
15140: *GNU* | *'with BFD'*)
1.1.1.5 ! root 15141: symcode='[ABCDGIRSTW]' ;;
1.1 root 15142: esac
15143:
15144: # Try without a prefix undercore, then with it.
15145: for ac_symprfx in "" "_"; do
15146:
1.1.1.5 ! root 15147: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
! 15148: symxfrm="\\1 $ac_symprfx\\2 \\2"
! 15149:
1.1 root 15150: # Write the raw and C identifiers.
1.1.1.5 ! root 15151: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.1 root 15152:
15153: # Check to see that the pipe works correctly.
15154: pipe_works=no
15155:
15156: rm -f conftest*
15157: cat > conftest.$ac_ext <<EOF
15158: #ifdef __cplusplus
15159: extern "C" {
15160: #endif
15161: char nm_test_var;
15162: void nm_test_func(){}
15163: #ifdef __cplusplus
15164: }
15165: #endif
15166: int main(){nm_test_var='a';nm_test_func();return(0);}
15167: EOF
15168:
15169: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170: (eval $ac_compile) 2>&5
15171: ac_status=$?
15172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173: (exit $ac_status); }; then
15174: # Now try to grab the symbols.
15175: nlist=conftest.nm
15176: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15177: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15178: ac_status=$?
15179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180: (exit $ac_status); } && test -s "$nlist"; then
15181: # Try sorting and uniquifying the output.
15182: if sort "$nlist" | uniq > "$nlist"T; then
15183: mv -f "$nlist"T "$nlist"
15184: else
15185: rm -f "$nlist"T
15186: fi
15187:
15188: # Make sure that we snagged all the symbols we need.
15189: if grep ' nm_test_var$' "$nlist" >/dev/null; then
15190: if grep ' nm_test_func$' "$nlist" >/dev/null; then
15191: cat <<EOF > conftest.$ac_ext
15192: #ifdef __cplusplus
15193: extern "C" {
15194: #endif
15195:
15196: EOF
15197: # Now generate the symbol file.
15198: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15199:
15200: cat <<EOF >> conftest.$ac_ext
15201: #if defined (__STDC__) && __STDC__
15202: # define lt_ptr_t void *
15203: #else
15204: # define lt_ptr_t char *
15205: # define const
15206: #endif
15207:
15208: /* The mapping between symbol names and symbols. */
15209: const struct {
15210: const char *name;
15211: lt_ptr_t address;
15212: }
15213: lt_preloaded_symbols[] =
15214: {
15215: EOF
15216: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15217: cat <<\EOF >> conftest.$ac_ext
15218: {0, (lt_ptr_t) 0}
15219: };
15220:
15221: #ifdef __cplusplus
15222: }
15223: #endif
15224: EOF
15225: # Now try linking the two files.
15226: mv conftest.$ac_objext conftstm.$ac_objext
15227: lt_save_LIBS="$LIBS"
15228: lt_save_CFLAGS="$CFLAGS"
15229: LIBS="conftstm.$ac_objext"
15230: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15231: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232: (eval $ac_link) 2>&5
15233: ac_status=$?
15234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235: (exit $ac_status); } && test -s conftest${ac_exeext}; then
15236: pipe_works=yes
15237: fi
15238: LIBS="$lt_save_LIBS"
15239: CFLAGS="$lt_save_CFLAGS"
15240: else
15241: echo "cannot find nm_test_func in $nlist" >&5
15242: fi
15243: else
15244: echo "cannot find nm_test_var in $nlist" >&5
15245: fi
15246: else
15247: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15248: fi
15249: else
15250: echo "$progname: failed program was:" >&5
15251: cat conftest.$ac_ext >&5
15252: fi
15253: rm -f conftest* conftst*
15254:
15255: # Do not use the global_symbol_pipe unless it works.
15256: if test "$pipe_works" = yes; then
15257: break
15258: else
15259: lt_cv_sys_global_symbol_pipe=
15260: fi
15261: done
15262:
15263: fi
15264:
15265: if test -z "$lt_cv_sys_global_symbol_pipe"; then
15266: lt_cv_sys_global_symbol_to_cdecl=
15267: fi
15268: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.5 ! root 15269: { echo "$as_me:$LINENO: result: failed" >&5
! 15270: echo "${ECHO_T}failed" >&6; }
1.1 root 15271: else
1.1.1.5 ! root 15272: { echo "$as_me:$LINENO: result: ok" >&5
! 15273: echo "${ECHO_T}ok" >&6; }
1.1 root 15274: fi
15275:
1.1.1.5 ! root 15276: { echo "$as_me:$LINENO: checking for objdir" >&5
! 15277: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
1.1 root 15278: if test "${lt_cv_objdir+set}" = set; then
15279: echo $ECHO_N "(cached) $ECHO_C" >&6
15280: else
15281: rm -f .libs 2>/dev/null
15282: mkdir .libs 2>/dev/null
15283: if test -d .libs; then
15284: lt_cv_objdir=.libs
15285: else
15286: # MS-DOS does not allow filenames that begin with a dot.
15287: lt_cv_objdir=_libs
15288: fi
15289: rmdir .libs 2>/dev/null
15290: fi
1.1.1.5 ! root 15291: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 15292: echo "${ECHO_T}$lt_cv_objdir" >&6; }
1.1 root 15293: objdir=$lt_cv_objdir
15294:
15295:
15296:
15297:
15298:
15299: case $host_os in
15300: aix3*)
15301: # AIX sometimes has problems with the GCC collect2 program. For some
15302: # reason, if we set the COLLECT_NAMES environment variable, the problems
15303: # vanish in a puff of smoke.
15304: if test "X${COLLECT_NAMES+set}" != Xset; then
15305: COLLECT_NAMES=
15306: export COLLECT_NAMES
15307: fi
15308: ;;
15309: esac
15310:
15311: # Sed substitution that helps us do robust quoting. It backslashifies
15312: # metacharacters that are still active within double-quoted strings.
1.1.1.5 ! root 15313: Xsed='sed -e 1s/^X//'
1.1 root 15314: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15315:
15316: # Same as above, but do not quote variable references.
15317: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15318:
15319: # Sed substitution to delay expansion of an escaped shell variable in a
15320: # double_quote_subst'ed string.
15321: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15322:
15323: # Sed substitution to avoid accidental globbing in evaled expressions
15324: no_glob_subst='s/\*/\\\*/g'
15325:
15326: # Constants:
15327: rm="rm -f"
15328:
15329: # Global variables:
15330: default_ofile=libtool
15331: can_build_shared=yes
15332:
1.1.1.5 ! root 15333: # All known linkers require a `.a' archive for static linking (except MSVC,
1.1 root 15334: # which needs '.lib').
15335: libext=a
15336: ltmain="$ac_aux_dir/ltmain.sh"
15337: ofile="$default_ofile"
15338: with_gnu_ld="$lt_cv_prog_gnu_ld"
15339:
15340: if test -n "$ac_tool_prefix"; then
15341: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15342: set dummy ${ac_tool_prefix}ar; ac_word=$2
1.1.1.5 ! root 15343: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15344: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15345: if test "${ac_cv_prog_AR+set}" = set; then
15346: echo $ECHO_N "(cached) $ECHO_C" >&6
15347: else
15348: if test -n "$AR"; then
15349: ac_cv_prog_AR="$AR" # Let the user override the test.
15350: else
15351: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15352: for as_dir in $PATH
15353: do
15354: IFS=$as_save_IFS
15355: test -z "$as_dir" && as_dir=.
15356: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15357: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15358: ac_cv_prog_AR="${ac_tool_prefix}ar"
15359: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15360: break 2
15361: fi
15362: done
15363: done
1.1.1.5 ! root 15364: IFS=$as_save_IFS
1.1 root 15365:
15366: fi
15367: fi
15368: AR=$ac_cv_prog_AR
15369: if test -n "$AR"; then
1.1.1.5 ! root 15370: { echo "$as_me:$LINENO: result: $AR" >&5
! 15371: echo "${ECHO_T}$AR" >&6; }
1.1 root 15372: else
1.1.1.5 ! root 15373: { echo "$as_me:$LINENO: result: no" >&5
! 15374: echo "${ECHO_T}no" >&6; }
1.1 root 15375: fi
15376:
1.1.1.5 ! root 15377:
1.1 root 15378: fi
15379: if test -z "$ac_cv_prog_AR"; then
15380: ac_ct_AR=$AR
15381: # Extract the first word of "ar", so it can be a program name with args.
15382: set dummy ar; ac_word=$2
1.1.1.5 ! root 15383: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15384: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15385: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15386: echo $ECHO_N "(cached) $ECHO_C" >&6
15387: else
15388: if test -n "$ac_ct_AR"; then
15389: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15390: else
15391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392: for as_dir in $PATH
15393: do
15394: IFS=$as_save_IFS
15395: test -z "$as_dir" && as_dir=.
15396: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15397: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15398: ac_cv_prog_ac_ct_AR="ar"
15399: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15400: break 2
15401: fi
15402: done
15403: done
1.1.1.5 ! root 15404: IFS=$as_save_IFS
1.1 root 15405:
15406: fi
15407: fi
15408: ac_ct_AR=$ac_cv_prog_ac_ct_AR
15409: if test -n "$ac_ct_AR"; then
1.1.1.5 ! root 15410: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 15411: echo "${ECHO_T}$ac_ct_AR" >&6; }
1.1 root 15412: else
1.1.1.5 ! root 15413: { echo "$as_me:$LINENO: result: no" >&5
! 15414: echo "${ECHO_T}no" >&6; }
1.1 root 15415: fi
15416:
1.1.1.5 ! root 15417: if test "x$ac_ct_AR" = x; then
! 15418: AR="false"
! 15419: else
! 15420: case $cross_compiling:$ac_tool_warned in
! 15421: yes:)
! 15422: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 15423: whose name does not start with the host triplet. If you think this
! 15424: configuration is useful to you, please write to [email protected]." >&5
! 15425: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 15426: whose name does not start with the host triplet. If you think this
! 15427: configuration is useful to you, please write to [email protected]." >&2;}
! 15428: ac_tool_warned=yes ;;
! 15429: esac
! 15430: AR=$ac_ct_AR
! 15431: fi
1.1 root 15432: else
15433: AR="$ac_cv_prog_AR"
15434: fi
15435:
15436: if test -n "$ac_tool_prefix"; then
15437: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15438: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.5 ! root 15439: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15440: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15441: if test "${ac_cv_prog_RANLIB+set}" = set; then
15442: echo $ECHO_N "(cached) $ECHO_C" >&6
15443: else
15444: if test -n "$RANLIB"; then
15445: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15446: else
15447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448: for as_dir in $PATH
15449: do
15450: IFS=$as_save_IFS
15451: test -z "$as_dir" && as_dir=.
15452: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15453: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15454: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15455: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15456: break 2
15457: fi
15458: done
15459: done
1.1.1.5 ! root 15460: IFS=$as_save_IFS
1.1 root 15461:
15462: fi
15463: fi
15464: RANLIB=$ac_cv_prog_RANLIB
15465: if test -n "$RANLIB"; then
1.1.1.5 ! root 15466: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 15467: echo "${ECHO_T}$RANLIB" >&6; }
1.1 root 15468: else
1.1.1.5 ! root 15469: { echo "$as_me:$LINENO: result: no" >&5
! 15470: echo "${ECHO_T}no" >&6; }
1.1 root 15471: fi
15472:
1.1.1.5 ! root 15473:
1.1 root 15474: fi
15475: if test -z "$ac_cv_prog_RANLIB"; then
15476: ac_ct_RANLIB=$RANLIB
15477: # Extract the first word of "ranlib", so it can be a program name with args.
15478: set dummy ranlib; ac_word=$2
1.1.1.5 ! root 15479: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15480: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15481: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15482: echo $ECHO_N "(cached) $ECHO_C" >&6
15483: else
15484: if test -n "$ac_ct_RANLIB"; then
15485: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15486: else
15487: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488: for as_dir in $PATH
15489: do
15490: IFS=$as_save_IFS
15491: test -z "$as_dir" && as_dir=.
15492: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15493: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15494: ac_cv_prog_ac_ct_RANLIB="ranlib"
15495: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15496: break 2
15497: fi
15498: done
15499: done
1.1.1.5 ! root 15500: IFS=$as_save_IFS
1.1 root 15501:
15502: fi
15503: fi
15504: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15505: if test -n "$ac_ct_RANLIB"; then
1.1.1.5 ! root 15506: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 15507: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.1 root 15508: else
1.1.1.5 ! root 15509: { echo "$as_me:$LINENO: result: no" >&5
! 15510: echo "${ECHO_T}no" >&6; }
1.1 root 15511: fi
15512:
1.1.1.5 ! root 15513: if test "x$ac_ct_RANLIB" = x; then
! 15514: RANLIB=":"
! 15515: else
! 15516: case $cross_compiling:$ac_tool_warned in
! 15517: yes:)
! 15518: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 15519: whose name does not start with the host triplet. If you think this
! 15520: configuration is useful to you, please write to [email protected]." >&5
! 15521: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 15522: whose name does not start with the host triplet. If you think this
! 15523: configuration is useful to you, please write to [email protected]." >&2;}
! 15524: ac_tool_warned=yes ;;
! 15525: esac
! 15526: RANLIB=$ac_ct_RANLIB
! 15527: fi
1.1 root 15528: else
15529: RANLIB="$ac_cv_prog_RANLIB"
15530: fi
15531:
15532: if test -n "$ac_tool_prefix"; then
15533: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15534: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.5 ! root 15535: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15536: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15537: if test "${ac_cv_prog_STRIP+set}" = set; then
15538: echo $ECHO_N "(cached) $ECHO_C" >&6
15539: else
15540: if test -n "$STRIP"; then
15541: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15542: else
15543: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15544: for as_dir in $PATH
15545: do
15546: IFS=$as_save_IFS
15547: test -z "$as_dir" && as_dir=.
15548: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15549: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15550: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15551: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15552: break 2
15553: fi
15554: done
15555: done
1.1.1.5 ! root 15556: IFS=$as_save_IFS
1.1 root 15557:
15558: fi
15559: fi
15560: STRIP=$ac_cv_prog_STRIP
15561: if test -n "$STRIP"; then
1.1.1.5 ! root 15562: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 15563: echo "${ECHO_T}$STRIP" >&6; }
1.1 root 15564: else
1.1.1.5 ! root 15565: { echo "$as_me:$LINENO: result: no" >&5
! 15566: echo "${ECHO_T}no" >&6; }
1.1 root 15567: fi
15568:
1.1.1.5 ! root 15569:
1.1 root 15570: fi
15571: if test -z "$ac_cv_prog_STRIP"; then
15572: ac_ct_STRIP=$STRIP
15573: # Extract the first word of "strip", so it can be a program name with args.
15574: set dummy strip; ac_word=$2
1.1.1.5 ! root 15575: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15576: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 15577: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15578: echo $ECHO_N "(cached) $ECHO_C" >&6
15579: else
15580: if test -n "$ac_ct_STRIP"; then
15581: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15582: else
15583: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584: for as_dir in $PATH
15585: do
15586: IFS=$as_save_IFS
15587: test -z "$as_dir" && as_dir=.
15588: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.5 ! root 15589: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 15590: ac_cv_prog_ac_ct_STRIP="strip"
15591: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15592: break 2
15593: fi
15594: done
15595: done
1.1.1.5 ! root 15596: IFS=$as_save_IFS
1.1 root 15597:
15598: fi
15599: fi
15600: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15601: if test -n "$ac_ct_STRIP"; then
1.1.1.5 ! root 15602: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 15603: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1.1 root 15604: else
1.1.1.5 ! root 15605: { echo "$as_me:$LINENO: result: no" >&5
! 15606: echo "${ECHO_T}no" >&6; }
1.1 root 15607: fi
15608:
1.1.1.5 ! root 15609: if test "x$ac_ct_STRIP" = x; then
! 15610: STRIP=":"
! 15611: else
! 15612: case $cross_compiling:$ac_tool_warned in
! 15613: yes:)
! 15614: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 15615: whose name does not start with the host triplet. If you think this
! 15616: configuration is useful to you, please write to [email protected]." >&5
! 15617: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 15618: whose name does not start with the host triplet. If you think this
! 15619: configuration is useful to you, please write to [email protected]." >&2;}
! 15620: ac_tool_warned=yes ;;
! 15621: esac
! 15622: STRIP=$ac_ct_STRIP
! 15623: fi
1.1 root 15624: else
15625: STRIP="$ac_cv_prog_STRIP"
15626: fi
15627:
15628:
15629: old_CC="$CC"
15630: old_CFLAGS="$CFLAGS"
15631:
15632: # Set sane defaults for various variables
15633: test -z "$AR" && AR=ar
15634: test -z "$AR_FLAGS" && AR_FLAGS=cru
15635: test -z "$AS" && AS=as
15636: test -z "$CC" && CC=cc
15637: test -z "$LTCC" && LTCC=$CC
1.1.1.5 ! root 15638: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.1 root 15639: test -z "$DLLTOOL" && DLLTOOL=dlltool
15640: test -z "$LD" && LD=ld
15641: test -z "$LN_S" && LN_S="ln -s"
15642: test -z "$MAGIC_CMD" && MAGIC_CMD=file
15643: test -z "$NM" && NM=nm
15644: test -z "$SED" && SED=sed
15645: test -z "$OBJDUMP" && OBJDUMP=objdump
15646: test -z "$RANLIB" && RANLIB=:
15647: test -z "$STRIP" && STRIP=:
15648: test -z "$ac_objext" && ac_objext=o
15649:
15650: # Determine commands to create old-style static archives.
1.1.1.5 ! root 15651: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1.1 root 15652: old_postinstall_cmds='chmod 644 $oldlib'
15653: old_postuninstall_cmds=
15654:
15655: if test -n "$RANLIB"; then
15656: case $host_os in
15657: openbsd*)
1.1.1.5 ! root 15658: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1.1 root 15659: ;;
15660: *)
1.1.1.5 ! root 15661: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1.1 root 15662: ;;
15663: esac
15664: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15665: fi
15666:
1.1.1.5 ! root 15667: for cc_temp in $compiler""; do
! 15668: case $cc_temp in
! 15669: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 15670: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 15671: \-*) ;;
! 15672: *) break;;
! 15673: esac
! 15674: done
! 15675: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 15676:
! 15677:
1.1 root 15678: # Only perform the check for file, if the check method requires it
15679: case $deplibs_check_method in
15680: file_magic*)
15681: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.5 ! root 15682: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 15683: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
1.1 root 15684: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15685: echo $ECHO_N "(cached) $ECHO_C" >&6
15686: else
15687: case $MAGIC_CMD in
15688: [\\/*] | ?:[\\/]*)
15689: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15690: ;;
15691: *)
15692: lt_save_MAGIC_CMD="$MAGIC_CMD"
15693: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15694: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15695: for ac_dir in $ac_dummy; do
15696: IFS="$lt_save_ifs"
15697: test -z "$ac_dir" && ac_dir=.
15698: if test -f $ac_dir/${ac_tool_prefix}file; then
15699: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15700: if test -n "$file_magic_test_file"; then
15701: case $deplibs_check_method in
15702: "file_magic "*)
1.1.1.5 ! root 15703: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1 root 15704: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15705: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15706: $EGREP "$file_magic_regex" > /dev/null; then
15707: :
15708: else
15709: cat <<EOF 1>&2
15710:
15711: *** Warning: the command libtool uses to detect shared libraries,
15712: *** $file_magic_cmd, produces output that libtool cannot recognize.
15713: *** The result is that libtool may fail to recognize shared libraries
15714: *** as such. This will affect the creation of libtool libraries that
15715: *** depend on shared libraries, but programs linked with such libtool
15716: *** libraries will work regardless of this problem. Nevertheless, you
15717: *** may want to report the problem to your system manager and/or to
15718: *** [email protected]
15719:
15720: EOF
15721: fi ;;
15722: esac
15723: fi
15724: break
15725: fi
15726: done
15727: IFS="$lt_save_ifs"
15728: MAGIC_CMD="$lt_save_MAGIC_CMD"
15729: ;;
15730: esac
15731: fi
15732:
15733: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15734: if test -n "$MAGIC_CMD"; then
1.1.1.5 ! root 15735: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 15736: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 root 15737: else
1.1.1.5 ! root 15738: { echo "$as_me:$LINENO: result: no" >&5
! 15739: echo "${ECHO_T}no" >&6; }
1.1 root 15740: fi
15741:
15742: if test -z "$lt_cv_path_MAGIC_CMD"; then
15743: if test -n "$ac_tool_prefix"; then
1.1.1.5 ! root 15744: { echo "$as_me:$LINENO: checking for file" >&5
! 15745: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
1.1 root 15746: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15747: echo $ECHO_N "(cached) $ECHO_C" >&6
15748: else
15749: case $MAGIC_CMD in
15750: [\\/*] | ?:[\\/]*)
15751: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15752: ;;
15753: *)
15754: lt_save_MAGIC_CMD="$MAGIC_CMD"
15755: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15756: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15757: for ac_dir in $ac_dummy; do
15758: IFS="$lt_save_ifs"
15759: test -z "$ac_dir" && ac_dir=.
15760: if test -f $ac_dir/file; then
15761: lt_cv_path_MAGIC_CMD="$ac_dir/file"
15762: if test -n "$file_magic_test_file"; then
15763: case $deplibs_check_method in
15764: "file_magic "*)
1.1.1.5 ! root 15765: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1 root 15766: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15767: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15768: $EGREP "$file_magic_regex" > /dev/null; then
15769: :
15770: else
15771: cat <<EOF 1>&2
15772:
15773: *** Warning: the command libtool uses to detect shared libraries,
15774: *** $file_magic_cmd, produces output that libtool cannot recognize.
15775: *** The result is that libtool may fail to recognize shared libraries
15776: *** as such. This will affect the creation of libtool libraries that
15777: *** depend on shared libraries, but programs linked with such libtool
15778: *** libraries will work regardless of this problem. Nevertheless, you
15779: *** may want to report the problem to your system manager and/or to
15780: *** [email protected]
15781:
15782: EOF
15783: fi ;;
15784: esac
15785: fi
15786: break
15787: fi
15788: done
15789: IFS="$lt_save_ifs"
15790: MAGIC_CMD="$lt_save_MAGIC_CMD"
15791: ;;
15792: esac
15793: fi
15794:
15795: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15796: if test -n "$MAGIC_CMD"; then
1.1.1.5 ! root 15797: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 15798: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 root 15799: else
1.1.1.5 ! root 15800: { echo "$as_me:$LINENO: result: no" >&5
! 15801: echo "${ECHO_T}no" >&6; }
1.1 root 15802: fi
15803:
15804: else
15805: MAGIC_CMD=:
15806: fi
15807: fi
15808:
15809: fi
15810: ;;
15811: esac
15812:
15813: enable_dlopen=yes
15814: enable_win32_dll=no
15815:
1.1.1.5 ! root 15816: # Check whether --enable-libtool-lock was given.
1.1 root 15817: if test "${enable_libtool_lock+set}" = set; then
1.1.1.5 ! root 15818: enableval=$enable_libtool_lock;
! 15819: fi
1.1 root 15820:
15821: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15822:
15823:
1.1.1.5 ! root 15824: # Check whether --with-pic was given.
1.1 root 15825: if test "${with_pic+set}" = set; then
1.1.1.5 ! root 15826: withval=$with_pic; pic_mode="$withval"
1.1 root 15827: else
15828: pic_mode=default
1.1.1.5 ! root 15829: fi
! 15830:
1.1 root 15831: test -z "$pic_mode" && pic_mode=default
15832:
15833: # Use C for the default configuration in the libtool script
15834: tagname=
15835: lt_save_CC="$CC"
15836: ac_ext=c
15837: ac_cpp='$CPP $CPPFLAGS'
15838: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841:
15842:
15843: # Source file extension for C test sources.
15844: ac_ext=c
15845:
15846: # Object file extension for compiled C test sources.
15847: objext=o
15848: objext=$objext
15849:
15850: # Code to be used in simple compile tests
1.1.1.5 ! root 15851: lt_simple_compile_test_code="int some_variable = 0;"
1.1 root 15852:
15853: # Code to be used in simple link tests
1.1.1.5 ! root 15854: lt_simple_link_test_code='int main(){return(0);}'
1.1 root 15855:
15856:
15857: # If no C compiler was specified, use CC.
15858: LTCC=${LTCC-"$CC"}
15859:
1.1.1.5 ! root 15860: # If no C compiler flags were specified, use CFLAGS.
! 15861: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 15862:
1.1 root 15863: # Allow CC to be a program name with arguments.
15864: compiler=$CC
15865:
15866:
1.1.1.5 ! root 15867: # save warnings/boilerplate of simple test code
! 15868: ac_outfile=conftest.$ac_objext
! 15869: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 15870: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 15871: _lt_compiler_boilerplate=`cat conftest.err`
! 15872: $rm conftest*
! 15873:
! 15874: ac_outfile=conftest.$ac_objext
! 15875: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 15876: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 15877: _lt_linker_boilerplate=`cat conftest.err`
! 15878: $rm conftest*
1.1 root 15879:
15880:
15881:
15882: lt_prog_compiler_no_builtin_flag=
15883:
15884: if test "$GCC" = yes; then
15885: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15886:
1.1.1.5 ! root 15887:
! 15888: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 15889: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
1.1 root 15890: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15891: echo $ECHO_N "(cached) $ECHO_C" >&6
15892: else
15893: lt_cv_prog_compiler_rtti_exceptions=no
15894: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 15895: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 15896: lt_compiler_flag="-fno-rtti -fno-exceptions"
15897: # Insert the option either (1) after the last *FLAGS variable, or
15898: # (2) before a word containing "conftest.", or (3) at the end.
15899: # Note that $ac_compile itself does not contain backslashes and begins
15900: # with a dollar sign (not a hyphen), so the echo should work correctly.
15901: # The option is referenced via a variable to avoid confusing sed.
15902: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 15903: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 15904: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15905: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 15906: (eval echo "\"\$as_me:15906: $lt_compile\"" >&5)
1.1 root 15907: (eval "$lt_compile" 2>conftest.err)
15908: ac_status=$?
15909: cat conftest.err >&5
1.1.1.5 ! root 15910: echo "$as_me:15910: \$? = $ac_status" >&5
1.1 root 15911: if (exit $ac_status) && test -s "$ac_outfile"; then
15912: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 15913: # So say no if there are warnings other than the usual output.
! 15914: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 15915: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 15916: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 15917: lt_cv_prog_compiler_rtti_exceptions=yes
15918: fi
15919: fi
15920: $rm conftest*
15921:
15922: fi
1.1.1.5 ! root 15923: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 15924: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 root 15925:
15926: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15927: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15928: else
15929: :
15930: fi
15931:
15932: fi
15933:
15934: lt_prog_compiler_wl=
15935: lt_prog_compiler_pic=
15936: lt_prog_compiler_static=
15937:
1.1.1.5 ! root 15938: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 15939: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 15940:
15941: if test "$GCC" = yes; then
15942: lt_prog_compiler_wl='-Wl,'
15943: lt_prog_compiler_static='-static'
15944:
15945: case $host_os in
15946: aix*)
15947: # All AIX code is PIC.
15948: if test "$host_cpu" = ia64; then
15949: # AIX 5 now supports IA64 processor
15950: lt_prog_compiler_static='-Bstatic'
15951: fi
15952: ;;
15953:
15954: amigaos*)
15955: # FIXME: we need at least 68020 code to build shared libraries, but
15956: # adding the `-m68020' flag to GCC prevents building anything better,
15957: # like `-m68040'.
15958: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15959: ;;
15960:
1.1.1.5 ! root 15961: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 15962: # PIC is the default for these OSes.
15963: ;;
15964:
1.1.1.5 ! root 15965: mingw* | cygwin* | pw32* | os2*)
1.1 root 15966: # This hack is so that the source file can tell whether it is being
15967: # built for inclusion in a dll (and should export symbols for example).
1.1.1.5 ! root 15968: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 15969: # (--disable-auto-import) libraries
1.1 root 15970: lt_prog_compiler_pic='-DDLL_EXPORT'
15971: ;;
15972:
15973: darwin* | rhapsody*)
15974: # PIC is the default on this platform
15975: # Common symbols not allowed in MH_DYLIB files
15976: lt_prog_compiler_pic='-fno-common'
15977: ;;
15978:
1.1.1.5 ! root 15979: interix[3-9]*)
! 15980: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 15981: # Instead, we relocate shared libraries at runtime.
! 15982: ;;
! 15983:
1.1 root 15984: msdosdjgpp*)
15985: # Just because we use GCC doesn't mean we suddenly get shared libraries
15986: # on systems that don't support them.
15987: lt_prog_compiler_can_build_shared=no
15988: enable_shared=no
15989: ;;
15990:
15991: sysv4*MP*)
15992: if test -d /usr/nec; then
15993: lt_prog_compiler_pic=-Kconform_pic
15994: fi
15995: ;;
15996:
15997: hpux*)
15998: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15999: # not for PA HP-UX.
1.1.1.5 ! root 16000: case $host_cpu in
1.1 root 16001: hppa*64*|ia64*)
16002: # +Z the default
16003: ;;
16004: *)
16005: lt_prog_compiler_pic='-fPIC'
16006: ;;
16007: esac
16008: ;;
16009:
16010: *)
16011: lt_prog_compiler_pic='-fPIC'
16012: ;;
16013: esac
16014: else
16015: # PORTME Check for flag to pass linker flags through the system compiler.
16016: case $host_os in
16017: aix*)
16018: lt_prog_compiler_wl='-Wl,'
16019: if test "$host_cpu" = ia64; then
16020: # AIX 5 now supports IA64 processor
16021: lt_prog_compiler_static='-Bstatic'
16022: else
16023: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16024: fi
16025: ;;
1.1.1.5 ! root 16026: darwin*)
! 16027: # PIC is the default on this platform
! 16028: # Common symbols not allowed in MH_DYLIB files
! 16029: case $cc_basename in
! 16030: xlc*)
! 16031: lt_prog_compiler_pic='-qnocommon'
! 16032: lt_prog_compiler_wl='-Wl,'
! 16033: ;;
! 16034: esac
! 16035: ;;
1.1 root 16036:
1.1.1.5 ! root 16037: mingw* | cygwin* | pw32* | os2*)
1.1 root 16038: # This hack is so that the source file can tell whether it is being
16039: # built for inclusion in a dll (and should export symbols for example).
16040: lt_prog_compiler_pic='-DDLL_EXPORT'
16041: ;;
16042:
16043: hpux9* | hpux10* | hpux11*)
16044: lt_prog_compiler_wl='-Wl,'
16045: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16046: # not for PA HP-UX.
1.1.1.5 ! root 16047: case $host_cpu in
1.1 root 16048: hppa*64*|ia64*)
16049: # +Z the default
16050: ;;
16051: *)
16052: lt_prog_compiler_pic='+Z'
16053: ;;
16054: esac
16055: # Is there a better lt_prog_compiler_static that works with the bundled CC?
16056: lt_prog_compiler_static='${wl}-a ${wl}archive'
16057: ;;
16058:
16059: irix5* | irix6* | nonstopux*)
16060: lt_prog_compiler_wl='-Wl,'
16061: # PIC (with -KPIC) is the default.
16062: lt_prog_compiler_static='-non_shared'
16063: ;;
16064:
16065: newsos6)
16066: lt_prog_compiler_pic='-KPIC'
16067: lt_prog_compiler_static='-Bstatic'
16068: ;;
16069:
1.1.1.5 ! root 16070: linux* | k*bsd*-gnu)
! 16071: case $cc_basename in
! 16072: icc* | ecc*)
1.1 root 16073: lt_prog_compiler_wl='-Wl,'
16074: lt_prog_compiler_pic='-KPIC'
16075: lt_prog_compiler_static='-static'
16076: ;;
1.1.1.5 ! root 16077: pgcc* | pgf77* | pgf90* | pgf95*)
! 16078: # Portland Group compilers (*not* the Pentium gcc compiler,
! 16079: # which looks to be a dead project)
! 16080: lt_prog_compiler_wl='-Wl,'
! 16081: lt_prog_compiler_pic='-fpic'
! 16082: lt_prog_compiler_static='-Bstatic'
! 16083: ;;
! 16084: ccc*)
1.1 root 16085: lt_prog_compiler_wl='-Wl,'
16086: # All Alpha code is PIC.
16087: lt_prog_compiler_static='-non_shared'
16088: ;;
1.1.1.5 ! root 16089: *)
! 16090: case `$CC -V 2>&1 | sed 5q` in
! 16091: *Sun\ C*)
! 16092: # Sun C 5.9
! 16093: lt_prog_compiler_pic='-KPIC'
! 16094: lt_prog_compiler_static='-Bstatic'
! 16095: lt_prog_compiler_wl='-Wl,'
! 16096: ;;
! 16097: *Sun\ F*)
! 16098: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 16099: lt_prog_compiler_pic='-KPIC'
! 16100: lt_prog_compiler_static='-Bstatic'
! 16101: lt_prog_compiler_wl=''
! 16102: ;;
! 16103: esac
! 16104: ;;
1.1 root 16105: esac
16106: ;;
16107:
16108: osf3* | osf4* | osf5*)
16109: lt_prog_compiler_wl='-Wl,'
16110: # All OSF/1 code is PIC.
16111: lt_prog_compiler_static='-non_shared'
16112: ;;
16113:
1.1.1.5 ! root 16114: rdos*)
! 16115: lt_prog_compiler_static='-non_shared'
1.1 root 16116: ;;
16117:
16118: solaris*)
16119: lt_prog_compiler_pic='-KPIC'
16120: lt_prog_compiler_static='-Bstatic'
1.1.1.5 ! root 16121: case $cc_basename in
! 16122: f77* | f90* | f95*)
! 16123: lt_prog_compiler_wl='-Qoption ld ';;
! 16124: *)
! 16125: lt_prog_compiler_wl='-Wl,';;
! 16126: esac
1.1 root 16127: ;;
16128:
16129: sunos4*)
16130: lt_prog_compiler_wl='-Qoption ld '
16131: lt_prog_compiler_pic='-PIC'
16132: lt_prog_compiler_static='-Bstatic'
16133: ;;
16134:
1.1.1.5 ! root 16135: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 16136: lt_prog_compiler_wl='-Wl,'
16137: lt_prog_compiler_pic='-KPIC'
16138: lt_prog_compiler_static='-Bstatic'
16139: ;;
16140:
16141: sysv4*MP*)
16142: if test -d /usr/nec ;then
16143: lt_prog_compiler_pic='-Kconform_pic'
16144: lt_prog_compiler_static='-Bstatic'
16145: fi
16146: ;;
16147:
1.1.1.5 ! root 16148: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 16149: lt_prog_compiler_wl='-Wl,'
! 16150: lt_prog_compiler_pic='-KPIC'
! 16151: lt_prog_compiler_static='-Bstatic'
! 16152: ;;
! 16153:
! 16154: unicos*)
! 16155: lt_prog_compiler_wl='-Wl,'
! 16156: lt_prog_compiler_can_build_shared=no
! 16157: ;;
! 16158:
1.1 root 16159: uts4*)
16160: lt_prog_compiler_pic='-pic'
16161: lt_prog_compiler_static='-Bstatic'
16162: ;;
16163:
16164: *)
16165: lt_prog_compiler_can_build_shared=no
16166: ;;
16167: esac
16168: fi
16169:
1.1.1.5 ! root 16170: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 16171: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.1 root 16172:
16173: #
16174: # Check to make sure the PIC flag actually works.
16175: #
16176: if test -n "$lt_prog_compiler_pic"; then
1.1.1.5 ! root 16177:
! 16178: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 16179: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.1 root 16180: if test "${lt_prog_compiler_pic_works+set}" = set; then
16181: echo $ECHO_N "(cached) $ECHO_C" >&6
16182: else
16183: lt_prog_compiler_pic_works=no
16184: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 16185: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 16186: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16187: # Insert the option either (1) after the last *FLAGS variable, or
16188: # (2) before a word containing "conftest.", or (3) at the end.
16189: # Note that $ac_compile itself does not contain backslashes and begins
16190: # with a dollar sign (not a hyphen), so the echo should work correctly.
16191: # The option is referenced via a variable to avoid confusing sed.
16192: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 16193: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 16194: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16195: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 16196: (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
1.1 root 16197: (eval "$lt_compile" 2>conftest.err)
16198: ac_status=$?
16199: cat conftest.err >&5
1.1.1.5 ! root 16200: echo "$as_me:16200: \$? = $ac_status" >&5
1.1 root 16201: if (exit $ac_status) && test -s "$ac_outfile"; then
16202: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 16203: # So say no if there are warnings other than the usual output.
! 16204: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 16205: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 16206: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 16207: lt_prog_compiler_pic_works=yes
16208: fi
16209: fi
16210: $rm conftest*
16211:
16212: fi
1.1.1.5 ! root 16213: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 16214: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
1.1 root 16215:
16216: if test x"$lt_prog_compiler_pic_works" = xyes; then
16217: case $lt_prog_compiler_pic in
16218: "" | " "*) ;;
16219: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16220: esac
16221: else
16222: lt_prog_compiler_pic=
16223: lt_prog_compiler_can_build_shared=no
16224: fi
16225:
16226: fi
1.1.1.5 ! root 16227: case $host_os in
1.1 root 16228: # For platforms which do not support PIC, -DPIC is meaningless:
16229: *djgpp*)
16230: lt_prog_compiler_pic=
16231: ;;
16232: *)
16233: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16234: ;;
16235: esac
16236:
1.1.1.5 ! root 16237: #
! 16238: # Check to make sure the static flag actually works.
! 16239: #
! 16240: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
! 16241: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 16242: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 16243: if test "${lt_prog_compiler_static_works+set}" = set; then
! 16244: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16245: else
! 16246: lt_prog_compiler_static_works=no
! 16247: save_LDFLAGS="$LDFLAGS"
! 16248: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 16249: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 16250: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 16251: # The linker can only warn and ignore the option if not recognized
! 16252: # So say no if there are warnings
! 16253: if test -s conftest.err; then
! 16254: # Append any errors to the config.log.
! 16255: cat conftest.err 1>&5
! 16256: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 16257: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 16258: if diff conftest.exp conftest.er2 >/dev/null; then
! 16259: lt_prog_compiler_static_works=yes
! 16260: fi
! 16261: else
! 16262: lt_prog_compiler_static_works=yes
! 16263: fi
! 16264: fi
! 16265: $rm conftest*
! 16266: LDFLAGS="$save_LDFLAGS"
! 16267:
! 16268: fi
! 16269: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 16270: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
! 16271:
! 16272: if test x"$lt_prog_compiler_static_works" = xyes; then
! 16273: :
! 16274: else
! 16275: lt_prog_compiler_static=
! 16276: fi
! 16277:
! 16278:
! 16279: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 16280: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 16281: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16282: echo $ECHO_N "(cached) $ECHO_C" >&6
16283: else
16284: lt_cv_prog_compiler_c_o=no
16285: $rm -r conftest 2>/dev/null
16286: mkdir conftest
16287: cd conftest
16288: mkdir out
1.1.1.5 ! root 16289: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 16290:
16291: lt_compiler_flag="-o out/conftest2.$ac_objext"
16292: # Insert the option either (1) after the last *FLAGS variable, or
16293: # (2) before a word containing "conftest.", or (3) at the end.
16294: # Note that $ac_compile itself does not contain backslashes and begins
16295: # with a dollar sign (not a hyphen), so the echo should work correctly.
16296: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 16297: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 16298: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16299: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 16300: (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
1.1 root 16301: (eval "$lt_compile" 2>out/conftest.err)
16302: ac_status=$?
16303: cat out/conftest.err >&5
1.1.1.5 ! root 16304: echo "$as_me:16304: \$? = $ac_status" >&5
1.1 root 16305: if (exit $ac_status) && test -s out/conftest2.$ac_objext
16306: then
16307: # The compiler can only warn and ignore the option if not recognized
16308: # So say no if there are warnings
1.1.1.5 ! root 16309: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 16310: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 16311: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 16312: lt_cv_prog_compiler_c_o=yes
16313: fi
16314: fi
1.1.1.5 ! root 16315: chmod u+w . 2>&5
! 16316: $rm conftest*
! 16317: # SGI C++ compiler will create directory out/ii_files/ for
! 16318: # template instantiation
! 16319: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 16320: $rm out/* && rmdir out
1.1 root 16321: cd ..
16322: rmdir conftest
16323: $rm conftest*
16324:
16325: fi
1.1.1.5 ! root 16326: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 16327: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
1.1 root 16328:
16329:
16330: hard_links="nottested"
16331: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16332: # do not overwrite the value of need_locks provided by the user
1.1.1.5 ! root 16333: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 16334: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 16335: hard_links=yes
16336: $rm conftest*
16337: ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338: touch conftest.a
16339: ln conftest.a conftest.b 2>&5 || hard_links=no
16340: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.5 ! root 16341: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 16342: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 16343: if test "$hard_links" = no; then
16344: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16345: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16346: need_locks=warn
16347: fi
16348: else
16349: need_locks=no
16350: fi
16351:
1.1.1.5 ! root 16352: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 16353: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 16354:
16355: runpath_var=
16356: allow_undefined_flag=
16357: enable_shared_with_static_runtimes=no
16358: archive_cmds=
16359: archive_expsym_cmds=
16360: old_archive_From_new_cmds=
16361: old_archive_from_expsyms_cmds=
16362: export_dynamic_flag_spec=
16363: whole_archive_flag_spec=
16364: thread_safe_flag_spec=
16365: hardcode_libdir_flag_spec=
16366: hardcode_libdir_flag_spec_ld=
16367: hardcode_libdir_separator=
16368: hardcode_direct=no
16369: hardcode_minus_L=no
16370: hardcode_shlibpath_var=unsupported
16371: link_all_deplibs=unknown
16372: hardcode_automatic=no
16373: module_cmds=
16374: module_expsym_cmds=
16375: always_export_symbols=no
16376: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377: # include_expsyms should be a list of space-separated symbols to be *always*
16378: # included in the symbol list
16379: include_expsyms=
16380: # exclude_expsyms can be an extended regexp of symbols to exclude
16381: # it will be wrapped by ` (' and `)$', so one must not match beginning or
16382: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16383: # as well as any symbol that contains `d'.
16384: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16385: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16386: # platforms (ab)use it in PIC code, but their linkers get confused if
16387: # the symbol is explicitly referenced. Since portable code cannot
16388: # rely on this symbol name, it's probably fine to never include it in
16389: # preloaded symbol tables.
16390: extract_expsyms_cmds=
1.1.1.5 ! root 16391: # Just being paranoid about ensuring that cc_basename is set.
! 16392: for cc_temp in $compiler""; do
! 16393: case $cc_temp in
! 16394: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 16395: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 16396: \-*) ;;
! 16397: *) break;;
! 16398: esac
! 16399: done
! 16400: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 16401:
16402: case $host_os in
16403: cygwin* | mingw* | pw32*)
16404: # FIXME: the MSVC++ port hasn't been tested in a loooong time
16405: # When not using gcc, we currently assume that we are using
16406: # Microsoft Visual C++.
16407: if test "$GCC" != yes; then
16408: with_gnu_ld=no
16409: fi
16410: ;;
1.1.1.5 ! root 16411: interix*)
! 16412: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 16413: with_gnu_ld=yes
! 16414: ;;
1.1 root 16415: openbsd*)
16416: with_gnu_ld=no
16417: ;;
16418: esac
16419:
16420: ld_shlibs=yes
16421: if test "$with_gnu_ld" = yes; then
16422: # If archive_cmds runs LD, not CC, wlarc should be empty
16423: wlarc='${wl}'
16424:
1.1.1.5 ! root 16425: # Set some defaults for GNU ld with shared library support. These
! 16426: # are reset later if shared libraries are not supported. Putting them
! 16427: # here allows them to be overridden if necessary.
! 16428: runpath_var=LD_RUN_PATH
! 16429: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 16430: export_dynamic_flag_spec='${wl}--export-dynamic'
! 16431: # ancient GNU ld didn't support --whole-archive et. al.
! 16432: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 16433: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 16434: else
! 16435: whole_archive_flag_spec=
! 16436: fi
! 16437: supports_anon_versioning=no
! 16438: case `$LD -v 2>/dev/null` in
! 16439: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 16440: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 16441: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 16442: *\ 2.11.*) ;; # other 2.11 versions
! 16443: *) supports_anon_versioning=yes ;;
! 16444: esac
! 16445:
1.1 root 16446: # See if GNU ld supports shared libraries.
16447: case $host_os in
16448: aix3* | aix4* | aix5*)
16449: # On AIX/PPC, the GNU linker is very broken
16450: if test "$host_cpu" != ia64; then
16451: ld_shlibs=no
16452: cat <<EOF 1>&2
16453:
16454: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16455: *** to be unable to reliably create shared libraries on AIX.
16456: *** Therefore, libtool is disabling shared libraries support. If you
16457: *** really care for shared libraries, you may want to modify your PATH
16458: *** so that a non-GNU linker is found, and then restart.
16459:
16460: EOF
16461: fi
16462: ;;
16463:
16464: amigaos*)
16465: 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)'
16466: hardcode_libdir_flag_spec='-L$libdir'
16467: hardcode_minus_L=yes
16468:
16469: # Samuel A. Falvo II <[email protected]> reports
16470: # that the semantics of dynamic libraries on AmigaOS, at least up
16471: # to version 4, is to share data among multiple programs linked
16472: # with the same dynamic library. Since this doesn't match the
16473: # behavior of shared libraries on other platforms, we can't use
16474: # them.
16475: ld_shlibs=no
16476: ;;
16477:
16478: beos*)
16479: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480: allow_undefined_flag=unsupported
16481: # Joseph Beckenbach <[email protected]> says some releases of gcc
16482: # support --undefined. This deserves some investigation. FIXME
16483: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484: else
16485: ld_shlibs=no
16486: fi
16487: ;;
16488:
16489: cygwin* | mingw* | pw32*)
16490: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16491: # as there is no search path for DLLs.
16492: hardcode_libdir_flag_spec='-L$libdir'
16493: allow_undefined_flag=unsupported
16494: always_export_symbols=no
16495: enable_shared_with_static_runtimes=yes
1.1.1.5 ! root 16496: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 16497:
16498: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.5 ! root 16499: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 16500: # If the export-symbols file already is a .def file (1st line
16501: # is EXPORTS), use it as is; otherwise, prepend...
16502: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16503: cp $export_symbols $output_objdir/$soname.def;
16504: else
16505: echo EXPORTS > $output_objdir/$soname.def;
16506: cat $export_symbols >> $output_objdir/$soname.def;
16507: fi~
1.1.1.5 ! root 16508: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 16509: else
! 16510: ld_shlibs=no
! 16511: fi
! 16512: ;;
! 16513:
! 16514: interix[3-9]*)
! 16515: hardcode_direct=no
! 16516: hardcode_shlibpath_var=no
! 16517: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 16518: export_dynamic_flag_spec='${wl}-E'
! 16519: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 16520: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 16521: # default) and relocated if they conflict, which is a slow very memory
! 16522: # consuming and fragmenting process. To avoid this, we pick a random,
! 16523: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 16524: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 16525: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 16526: 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'
! 16527: ;;
! 16528:
! 16529: gnu* | linux* | k*bsd*-gnu)
! 16530: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16531: tmp_addflag=
! 16532: case $cc_basename,$host_cpu in
! 16533: pgcc*) # Portland Group C compiler
! 16534: 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'
! 16535: tmp_addflag=' $pic_flag'
! 16536: ;;
! 16537: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 16538: 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'
! 16539: tmp_addflag=' $pic_flag -Mnomain' ;;
! 16540: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 16541: tmp_addflag=' -i_dynamic' ;;
! 16542: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 16543: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 16544: ifc* | ifort*) # Intel Fortran compiler
! 16545: tmp_addflag=' -nofor_main' ;;
! 16546: esac
! 16547: case `$CC -V 2>&1 | sed 5q` in
! 16548: *Sun\ C*) # Sun C 5.9
! 16549: 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'
! 16550: tmp_sharedflag='-G' ;;
! 16551: *Sun\ F*) # Sun Fortran 8.3
! 16552: tmp_sharedflag='-G' ;;
! 16553: *)
! 16554: tmp_sharedflag='-shared' ;;
! 16555: esac
! 16556: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16557:
! 16558: if test $supports_anon_versioning = yes; then
! 16559: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
! 16560: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 16561: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 16562: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 16563: fi
1.1 root 16564: else
16565: ld_shlibs=no
16566: fi
16567: ;;
16568:
16569: netbsd*)
16570: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16571: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16572: wlarc=
16573: else
16574: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16575: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16576: fi
16577: ;;
16578:
1.1.1.5 ! root 16579: solaris*)
1.1 root 16580: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16581: ld_shlibs=no
16582: cat <<EOF 1>&2
16583:
16584: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16585: *** create shared libraries on Solaris systems. Therefore, libtool
16586: *** is disabling shared libraries support. We urge you to upgrade GNU
16587: *** binutils to release 2.9.1 or newer. Another option is to modify
16588: *** your PATH or compiler configuration so that the native linker is
16589: *** used, and then restart.
16590:
16591: EOF
16592: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16593: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16595: else
16596: ld_shlibs=no
16597: fi
16598: ;;
16599:
1.1.1.5 ! root 16600: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 16601: case `$LD -v 2>&1` in
! 16602: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 16603: ld_shlibs=no
! 16604: cat <<_LT_EOF 1>&2
! 16605:
! 16606: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 16607: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 16608: *** is disabling shared libraries support. We urge you to upgrade GNU
! 16609: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 16610: *** your PATH or compiler configuration so that the native linker is
! 16611: *** used, and then restart.
! 16612:
! 16613: _LT_EOF
! 16614: ;;
! 16615: *)
! 16616: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16617: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 16618: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 16619: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 16620: else
! 16621: ld_shlibs=no
! 16622: fi
! 16623: ;;
! 16624: esac
! 16625: ;;
! 16626:
1.1 root 16627: sunos4*)
16628: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16629: wlarc=
16630: hardcode_direct=yes
16631: hardcode_shlibpath_var=no
16632: ;;
16633:
16634: *)
16635: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16636: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16637: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16638: else
16639: ld_shlibs=no
16640: fi
16641: ;;
16642: esac
16643:
1.1.1.5 ! root 16644: if test "$ld_shlibs" = no; then
! 16645: runpath_var=
! 16646: hardcode_libdir_flag_spec=
! 16647: export_dynamic_flag_spec=
! 16648: whole_archive_flag_spec=
1.1 root 16649: fi
16650: else
16651: # PORTME fill in a description of your system's linker (not GNU ld)
16652: case $host_os in
16653: aix3*)
16654: allow_undefined_flag=unsupported
16655: always_export_symbols=yes
16656: 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'
16657: # Note: this linker hardcodes the directories in LIBPATH if there
16658: # are no directories specified by -L.
16659: hardcode_minus_L=yes
1.1.1.5 ! root 16660: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 16661: # Neither direct hardcoding nor static linking is supported with a
16662: # broken collect2.
16663: hardcode_direct=unsupported
16664: fi
16665: ;;
16666:
16667: aix4* | aix5*)
16668: if test "$host_cpu" = ia64; then
16669: # On IA64, the linker does run time linking by default, so we don't
16670: # have to do anything special.
16671: aix_use_runtimelinking=no
16672: exp_sym_flag='-Bexport'
16673: no_entry_flag=""
16674: else
16675: # If we're using GNU nm, then we don't want the "-C" option.
16676: # -C means demangle to AIX nm, but means don't demangle with GNU nm
16677: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16678: 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'
16679: else
16680: 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'
16681: fi
16682: aix_use_runtimelinking=no
16683:
16684: # Test if we are trying to use run time linking or normal
16685: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16686: # need to do runtime linking.
16687: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16688: for ld_flag in $LDFLAGS; do
16689: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16690: aix_use_runtimelinking=yes
16691: break
16692: fi
16693: done
1.1.1.5 ! root 16694: ;;
1.1 root 16695: esac
16696:
16697: exp_sym_flag='-bexport'
16698: no_entry_flag='-bnoentry'
16699: fi
16700:
16701: # When large executables or shared objects are built, AIX ld can
16702: # have problems creating the table of contents. If linking a library
16703: # or program results in "error TOC overflow" add -mminimal-toc to
16704: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16705: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16706:
16707: archive_cmds=''
16708: hardcode_direct=yes
16709: hardcode_libdir_separator=':'
16710: link_all_deplibs=yes
16711:
16712: if test "$GCC" = yes; then
1.1.1.5 ! root 16713: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 16714: # We only want to do this on AIX 4.2 and lower, the check
16715: # below for broken collect2 doesn't work under 4.3+
16716: collect2name=`${CC} -print-prog-name=collect2`
16717: if test -f "$collect2name" && \
16718: strings "$collect2name" | grep resolve_lib_name >/dev/null
16719: then
16720: # We have reworked collect2
1.1.1.5 ! root 16721: :
1.1 root 16722: else
16723: # We have old collect2
16724: hardcode_direct=unsupported
16725: # It fails to find uninstalled libraries when the uninstalled
16726: # path is not listed in the libpath. Setting hardcode_minus_L
16727: # to unsupported forces relinking
16728: hardcode_minus_L=yes
16729: hardcode_libdir_flag_spec='-L$libdir'
16730: hardcode_libdir_separator=
16731: fi
1.1.1.5 ! root 16732: ;;
1.1 root 16733: esac
16734: shared_flag='-shared'
1.1.1.5 ! root 16735: if test "$aix_use_runtimelinking" = yes; then
! 16736: shared_flag="$shared_flag "'${wl}-G'
! 16737: fi
1.1 root 16738: else
16739: # not using gcc
16740: if test "$host_cpu" = ia64; then
16741: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16742: # chokes on -Wl,-G. The following line is correct:
16743: shared_flag='-G'
16744: else
1.1.1.5 ! root 16745: if test "$aix_use_runtimelinking" = yes; then
1.1 root 16746: shared_flag='${wl}-G'
16747: else
16748: shared_flag='${wl}-bM:SRE'
1.1.1.5 ! root 16749: fi
1.1 root 16750: fi
16751: fi
16752:
16753: # It seems that -bexpall does not export symbols beginning with
16754: # underscore (_), so it is better to generate a list of symbols to export.
16755: always_export_symbols=yes
16756: if test "$aix_use_runtimelinking" = yes; then
16757: # Warning - without using the other runtime loading flags (-brtl),
16758: # -berok will link without error, but may produce a broken library.
16759: allow_undefined_flag='-berok'
16760: # Determine the default libpath from the value encoded in an empty executable.
16761: cat >conftest.$ac_ext <<_ACEOF
16762: /* confdefs.h. */
16763: _ACEOF
16764: cat confdefs.h >>conftest.$ac_ext
16765: cat >>conftest.$ac_ext <<_ACEOF
16766: /* end confdefs.h. */
16767:
16768: int
16769: main ()
16770: {
16771:
16772: ;
16773: return 0;
16774: }
16775: _ACEOF
16776: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 16777: if { (ac_try="$ac_link"
! 16778: case "(($ac_try" in
! 16779: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16780: *) ac_try_echo=$ac_try;;
! 16781: esac
! 16782: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16783: (eval "$ac_link") 2>conftest.er1
1.1 root 16784: ac_status=$?
1.1.1.5 ! root 16785: grep -v '^ *+' conftest.er1 >conftest.err
! 16786: rm -f conftest.er1
! 16787: cat conftest.err >&5
1.1 root 16788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 16789: (exit $ac_status); } && {
! 16790: test -z "$ac_c_werror_flag" ||
! 16791: test ! -s conftest.err
! 16792: } && test -s conftest$ac_exeext &&
! 16793: $as_test_x conftest$ac_exeext; then
! 16794:
! 16795: lt_aix_libpath_sed='
! 16796: /Import File Strings/,/^$/ {
! 16797: /^0/ {
! 16798: s/^0 *\(.*\)$/\1/
! 16799: p
! 16800: }
! 16801: }'
! 16802: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 16803: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 16804: if test -z "$aix_libpath"; then
! 16805: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 16806: fi
1.1 root 16807: else
16808: echo "$as_me: failed program was:" >&5
16809: sed 's/^/| /' conftest.$ac_ext >&5
16810:
1.1.1.5 ! root 16811:
1.1 root 16812: fi
1.1.1.5 ! root 16813:
! 16814: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 16815: conftest$ac_exeext conftest.$ac_ext
1.1 root 16816: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16817:
16818: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.5 ! root 16819: 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1 root 16820: else
16821: if test "$host_cpu" = ia64; then
16822: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16823: allow_undefined_flag="-z nodefs"
1.1.1.5 ! root 16824: 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"
1.1 root 16825: else
16826: # Determine the default libpath from the value encoded in an empty executable.
16827: cat >conftest.$ac_ext <<_ACEOF
16828: /* confdefs.h. */
16829: _ACEOF
16830: cat confdefs.h >>conftest.$ac_ext
16831: cat >>conftest.$ac_ext <<_ACEOF
16832: /* end confdefs.h. */
16833:
16834: int
16835: main ()
16836: {
16837:
16838: ;
16839: return 0;
16840: }
16841: _ACEOF
16842: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 16843: if { (ac_try="$ac_link"
! 16844: case "(($ac_try" in
! 16845: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16846: *) ac_try_echo=$ac_try;;
! 16847: esac
! 16848: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16849: (eval "$ac_link") 2>conftest.er1
1.1 root 16850: ac_status=$?
1.1.1.5 ! root 16851: grep -v '^ *+' conftest.er1 >conftest.err
! 16852: rm -f conftest.er1
! 16853: cat conftest.err >&5
1.1 root 16854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 16855: (exit $ac_status); } && {
! 16856: test -z "$ac_c_werror_flag" ||
! 16857: test ! -s conftest.err
! 16858: } && test -s conftest$ac_exeext &&
! 16859: $as_test_x conftest$ac_exeext; then
! 16860:
! 16861: lt_aix_libpath_sed='
! 16862: /Import File Strings/,/^$/ {
! 16863: /^0/ {
! 16864: s/^0 *\(.*\)$/\1/
! 16865: p
! 16866: }
! 16867: }'
! 16868: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 16869: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 16870: if test -z "$aix_libpath"; then
! 16871: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 16872: fi
1.1 root 16873: else
16874: echo "$as_me: failed program was:" >&5
16875: sed 's/^/| /' conftest.$ac_ext >&5
16876:
1.1.1.5 ! root 16877:
1.1 root 16878: fi
1.1.1.5 ! root 16879:
! 16880: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 16881: conftest$ac_exeext conftest.$ac_ext
1.1 root 16882: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16883:
16884: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16885: # Warning - without using the other run time loading flags,
16886: # -berok will link without error, but may produce a broken library.
16887: no_undefined_flag=' ${wl}-bernotok'
16888: allow_undefined_flag=' ${wl}-berok'
16889: # Exported symbols can be pulled into shared objects from archives
1.1.1.5 ! root 16890: whole_archive_flag_spec='$convenience'
1.1 root 16891: archive_cmds_need_lc=yes
1.1.1.5 ! root 16892: # This is similar to how AIX traditionally builds its shared libraries.
! 16893: 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'
1.1 root 16894: fi
16895: fi
16896: ;;
16897:
16898: amigaos*)
16899: 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)'
16900: hardcode_libdir_flag_spec='-L$libdir'
16901: hardcode_minus_L=yes
16902: # see comment about different semantics on the GNU ld section
16903: ld_shlibs=no
16904: ;;
16905:
1.1.1.5 ! root 16906: bsdi[45]*)
1.1 root 16907: export_dynamic_flag_spec=-rdynamic
16908: ;;
16909:
16910: cygwin* | mingw* | pw32*)
16911: # When not using gcc, we currently assume that we are using
16912: # Microsoft Visual C++.
16913: # hardcode_libdir_flag_spec is actually meaningless, as there is
16914: # no search path for DLLs.
16915: hardcode_libdir_flag_spec=' '
16916: allow_undefined_flag=unsupported
16917: # Tell ltmain to make .lib files, not .a files.
16918: libext=lib
16919: # Tell ltmain to make .dll files, not .so files.
1.1.1.5 ! root 16920: shrext_cmds=".dll"
1.1 root 16921: # FIXME: Setting linknames here is a bad hack.
16922: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16923: # The linker will automatically build a .lib file if we build a DLL.
16924: old_archive_From_new_cmds='true'
16925: # FIXME: Should let the user specify the lib program.
1.1.1.5 ! root 16926: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.1 root 16927: fix_srcfile_path='`cygpath -w "$srcfile"`'
16928: enable_shared_with_static_runtimes=yes
16929: ;;
16930:
16931: darwin* | rhapsody*)
1.1.1.5 ! root 16932: case $host_os in
! 16933: rhapsody* | darwin1.[012])
! 16934: allow_undefined_flag='${wl}-undefined ${wl}suppress'
! 16935: ;;
! 16936: *) # Darwin 1.3 on
! 16937: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 16938: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 16939: else
! 16940: case ${MACOSX_DEPLOYMENT_TARGET} in
! 16941: 10.[012])
! 16942: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 16943: ;;
! 16944: 10.*)
! 16945: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
! 16946: ;;
! 16947: esac
! 16948: fi
! 16949: ;;
1.1 root 16950: esac
1.1.1.5 ! root 16951: archive_cmds_need_lc=no
1.1 root 16952: hardcode_direct=no
16953: hardcode_automatic=yes
16954: hardcode_shlibpath_var=unsupported
1.1.1.5 ! root 16955: whole_archive_flag_spec=''
1.1 root 16956: link_all_deplibs=yes
1.1.1.5 ! root 16957: if test "$GCC" = yes ; then
! 16958: output_verbose_link_cmd='echo'
! 16959: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 16960: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 16961: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 16962: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 16963: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 16964: else
! 16965: case $cc_basename in
! 16966: xlc*)
! 16967: output_verbose_link_cmd='echo'
! 16968: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 16969: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 16970: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 16971: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 16972: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 16973: ;;
! 16974: *)
! 16975: ld_shlibs=no
! 16976: ;;
! 16977: esac
1.1 root 16978: fi
16979: ;;
16980:
16981: dgux*)
16982: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983: hardcode_libdir_flag_spec='-L$libdir'
16984: hardcode_shlibpath_var=no
16985: ;;
16986:
16987: freebsd1*)
16988: ld_shlibs=no
16989: ;;
16990:
16991: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16992: # support. Future versions do this automatically, but an explicit c++rt0.o
16993: # does not break anything, and helps significantly (at the cost of a little
16994: # extra space).
16995: freebsd2.2*)
16996: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16997: hardcode_libdir_flag_spec='-R$libdir'
16998: hardcode_direct=yes
16999: hardcode_shlibpath_var=no
17000: ;;
17001:
17002: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17003: freebsd2*)
17004: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17005: hardcode_direct=yes
17006: hardcode_minus_L=yes
17007: hardcode_shlibpath_var=no
17008: ;;
17009:
17010: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.5 ! root 17011: freebsd* | dragonfly*)
1.1 root 17012: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17013: hardcode_libdir_flag_spec='-R$libdir'
17014: hardcode_direct=yes
17015: hardcode_shlibpath_var=no
17016: ;;
17017:
17018: hpux9*)
17019: if test "$GCC" = yes; then
17020: 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'
17021: else
17022: 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'
17023: fi
17024: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17025: hardcode_libdir_separator=:
17026: hardcode_direct=yes
17027:
17028: # hardcode_minus_L: Not really in the search PATH,
17029: # but as the default location of the library.
17030: hardcode_minus_L=yes
17031: export_dynamic_flag_spec='${wl}-E'
17032: ;;
17033:
1.1.1.5 ! root 17034: hpux10*)
1.1 root 17035: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.5 ! root 17036: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 17037: else
! 17038: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 17039: fi
! 17040: if test "$with_gnu_ld" = no; then
! 17041: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 17042: hardcode_libdir_separator=:
! 17043:
! 17044: hardcode_direct=yes
! 17045: export_dynamic_flag_spec='${wl}-E'
! 17046:
! 17047: # hardcode_minus_L: Not really in the search PATH,
! 17048: # but as the default location of the library.
! 17049: hardcode_minus_L=yes
! 17050: fi
! 17051: ;;
! 17052:
! 17053: hpux11*)
! 17054: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 17055: case $host_cpu in
! 17056: hppa*64*)
1.1 root 17057: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058: ;;
1.1.1.5 ! root 17059: ia64*)
! 17060: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 17061: ;;
1.1 root 17062: *)
17063: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17064: ;;
17065: esac
17066: else
1.1.1.5 ! root 17067: case $host_cpu in
! 17068: hppa*64*)
! 17069: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17070: ;;
! 17071: ia64*)
! 17072: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 17073: ;;
17074: *)
1.1.1.5 ! root 17075: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 17076: ;;
17077: esac
17078: fi
17079: if test "$with_gnu_ld" = no; then
1.1.1.5 ! root 17080: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 17081: hardcode_libdir_separator=:
! 17082:
! 17083: case $host_cpu in
! 17084: hppa*64*|ia64*)
1.1 root 17085: hardcode_libdir_flag_spec_ld='+b $libdir'
17086: hardcode_direct=no
17087: hardcode_shlibpath_var=no
17088: ;;
17089: *)
17090: hardcode_direct=yes
17091: export_dynamic_flag_spec='${wl}-E'
17092:
17093: # hardcode_minus_L: Not really in the search PATH,
17094: # but as the default location of the library.
17095: hardcode_minus_L=yes
17096: ;;
17097: esac
17098: fi
17099: ;;
17100:
17101: irix5* | irix6* | nonstopux*)
17102: if test "$GCC" = yes; then
17103: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17104: else
17105: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17106: hardcode_libdir_flag_spec_ld='-rpath $libdir'
17107: fi
17108: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17109: hardcode_libdir_separator=:
17110: link_all_deplibs=yes
17111: ;;
17112:
17113: netbsd*)
17114: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17115: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17116: else
17117: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17118: fi
17119: hardcode_libdir_flag_spec='-R$libdir'
17120: hardcode_direct=yes
17121: hardcode_shlibpath_var=no
17122: ;;
17123:
17124: newsos6)
17125: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126: hardcode_direct=yes
17127: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17128: hardcode_libdir_separator=:
17129: hardcode_shlibpath_var=no
17130: ;;
17131:
17132: openbsd*)
1.1.1.5 ! root 17133: if test -f /usr/libexec/ld.so; then
! 17134: hardcode_direct=yes
! 17135: hardcode_shlibpath_var=no
! 17136: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 17137: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17138: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 17139: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 17140: export_dynamic_flag_spec='${wl}-E'
! 17141: else
! 17142: case $host_os in
! 17143: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 17144: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 17145: hardcode_libdir_flag_spec='-R$libdir'
! 17146: ;;
! 17147: *)
! 17148: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17149: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 17150: ;;
! 17151: esac
! 17152: fi
1.1 root 17153: else
1.1.1.5 ! root 17154: ld_shlibs=no
1.1 root 17155: fi
17156: ;;
17157:
17158: os2*)
17159: hardcode_libdir_flag_spec='-L$libdir'
17160: hardcode_minus_L=yes
17161: allow_undefined_flag=unsupported
17162: 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'
17163: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17164: ;;
17165:
17166: osf3*)
17167: if test "$GCC" = yes; then
17168: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17169: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17170: else
17171: allow_undefined_flag=' -expect_unresolved \*'
17172: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17173: fi
17174: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17175: hardcode_libdir_separator=:
17176: ;;
17177:
17178: osf4* | osf5*) # as osf3* with the addition of -msym flag
17179: if test "$GCC" = yes; then
17180: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17181: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17182: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17183: else
17184: allow_undefined_flag=' -expect_unresolved \*'
17185: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17186: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.1.1.5 ! root 17187: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.1 root 17188:
17189: # Both c and cxx compiler support -rpath directly
17190: hardcode_libdir_flag_spec='-rpath $libdir'
17191: fi
17192: hardcode_libdir_separator=:
17193: ;;
17194:
17195: solaris*)
17196: no_undefined_flag=' -z text'
17197: if test "$GCC" = yes; then
1.1.1.5 ! root 17198: wlarc='${wl}'
1.1 root 17199: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17200: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17201: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17202: else
1.1.1.5 ! root 17203: wlarc=''
1.1 root 17204: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17205: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17206: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17207: fi
17208: hardcode_libdir_flag_spec='-R$libdir'
17209: hardcode_shlibpath_var=no
17210: case $host_os in
17211: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.5 ! root 17212: *)
! 17213: # The compiler driver will combine and reorder linker options,
! 17214: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 17215: # but is careful enough not to reorder.
! 17216: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 17217: if test "$GCC" = yes; then
! 17218: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 17219: else
! 17220: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
! 17221: fi
! 17222: ;;
1.1 root 17223: esac
17224: link_all_deplibs=yes
17225: ;;
17226:
17227: sunos4*)
17228: if test "x$host_vendor" = xsequent; then
17229: # Use $CC to link under sequent, because it throws in some extra .o
17230: # files that make .init and .fini sections work.
17231: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17232: else
17233: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17234: fi
17235: hardcode_libdir_flag_spec='-L$libdir'
17236: hardcode_direct=yes
17237: hardcode_minus_L=yes
17238: hardcode_shlibpath_var=no
17239: ;;
17240:
17241: sysv4)
17242: case $host_vendor in
17243: sni)
17244: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17245: hardcode_direct=yes # is this really true???
17246: ;;
17247: siemens)
17248: ## LD is ld it makes a PLAMLIB
17249: ## CC just makes a GrossModule.
17250: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17251: reload_cmds='$CC -r -o $output$reload_objs'
17252: hardcode_direct=no
17253: ;;
17254: motorola)
17255: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17257: ;;
17258: esac
17259: runpath_var='LD_RUN_PATH'
17260: hardcode_shlibpath_var=no
17261: ;;
17262:
17263: sysv4.3*)
17264: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17265: hardcode_shlibpath_var=no
17266: export_dynamic_flag_spec='-Bexport'
17267: ;;
17268:
17269: sysv4*MP*)
17270: if test -d /usr/nec; then
17271: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17272: hardcode_shlibpath_var=no
17273: runpath_var=LD_RUN_PATH
17274: hardcode_runpath_var=yes
17275: ld_shlibs=yes
17276: fi
17277: ;;
17278:
1.1.1.5 ! root 17279: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 17280: no_undefined_flag='${wl}-z,text'
! 17281: archive_cmds_need_lc=no
1.1 root 17282: hardcode_shlibpath_var=no
1.1.1.5 ! root 17283: runpath_var='LD_RUN_PATH'
1.1 root 17284:
17285: if test "$GCC" = yes; then
1.1.1.5 ! root 17286: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17287: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 17288: else
1.1.1.5 ! root 17289: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17290: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 17291: fi
17292: ;;
17293:
1.1.1.5 ! root 17294: sysv5* | sco3.2v5* | sco5v6*)
! 17295: # Note: We can NOT use -z defs as we might desire, because we do not
! 17296: # link with -lc, and that would cause any symbols used from libc to
! 17297: # always be unresolved, which means just about no library would
! 17298: # ever link correctly. If we're not using GNU ld we use -z text
! 17299: # though, which does catch some bad symbols but isn't as heavy-handed
! 17300: # as -z defs.
! 17301: no_undefined_flag='${wl}-z,text'
! 17302: allow_undefined_flag='${wl}-z,nodefs'
! 17303: archive_cmds_need_lc=no
1.1 root 17304: hardcode_shlibpath_var=no
1.1.1.5 ! root 17305: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 17306: hardcode_libdir_separator=':'
! 17307: link_all_deplibs=yes
! 17308: export_dynamic_flag_spec='${wl}-Bexport'
1.1 root 17309: runpath_var='LD_RUN_PATH'
1.1.1.5 ! root 17310:
! 17311: if test "$GCC" = yes; then
! 17312: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17313: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17314: else
! 17315: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17316: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17317: fi
1.1 root 17318: ;;
17319:
17320: uts4*)
17321: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322: hardcode_libdir_flag_spec='-L$libdir'
17323: hardcode_shlibpath_var=no
17324: ;;
17325:
17326: *)
17327: ld_shlibs=no
17328: ;;
17329: esac
17330: fi
17331:
1.1.1.5 ! root 17332: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 17333: echo "${ECHO_T}$ld_shlibs" >&6; }
1.1 root 17334: test "$ld_shlibs" = no && can_build_shared=no
17335:
17336: #
17337: # Do we need to explicitly link libc?
17338: #
17339: case "x$archive_cmds_need_lc" in
17340: x|xyes)
17341: # Assume -lc should be added
17342: archive_cmds_need_lc=yes
17343:
17344: if test "$enable_shared" = yes && test "$GCC" = yes; then
17345: case $archive_cmds in
17346: *'~'*)
17347: # FIXME: we may have to deal with multi-command sequences.
17348: ;;
17349: '$CC '*)
17350: # Test whether the compiler implicitly links with -lc since on some
17351: # systems, -lgcc has to come before -lc. If gcc already passes -lc
17352: # to ld, don't add -lc before -lgcc.
1.1.1.5 ! root 17353: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 17354: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 17355: $rm conftest*
1.1.1.5 ! root 17356: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 17357:
17358: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359: (eval $ac_compile) 2>&5
17360: ac_status=$?
17361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362: (exit $ac_status); } 2>conftest.err; then
17363: soname=conftest
17364: lib=conftest
17365: libobjs=conftest.$ac_objext
17366: deplibs=
17367: wl=$lt_prog_compiler_wl
1.1.1.5 ! root 17368: pic_flag=$lt_prog_compiler_pic
1.1 root 17369: compiler_flags=-v
17370: linker_flags=-v
17371: verstring=
17372: output_objdir=.
17373: libname=conftest
17374: lt_save_allow_undefined_flag=$allow_undefined_flag
17375: allow_undefined_flag=
17376: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17377: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17378: ac_status=$?
17379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380: (exit $ac_status); }
17381: then
17382: archive_cmds_need_lc=no
17383: else
17384: archive_cmds_need_lc=yes
17385: fi
17386: allow_undefined_flag=$lt_save_allow_undefined_flag
17387: else
17388: cat conftest.err 1>&5
17389: fi
17390: $rm conftest*
1.1.1.5 ! root 17391: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 17392: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
1.1 root 17393: ;;
17394: esac
17395: fi
17396: ;;
17397: esac
17398:
1.1.1.5 ! root 17399: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 17400: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 root 17401: library_names_spec=
17402: libname_spec='lib$name'
17403: soname_spec=
1.1.1.5 ! root 17404: shrext_cmds=".so"
1.1 root 17405: postinstall_cmds=
17406: postuninstall_cmds=
17407: finish_cmds=
17408: finish_eval=
17409: shlibpath_var=
17410: shlibpath_overrides_runpath=unknown
17411: version_type=none
17412: dynamic_linker="$host_os ld.so"
17413: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1.5 ! root 17414:
1.1 root 17415: if test "$GCC" = yes; then
1.1.1.5 ! root 17416: case $host_os in
! 17417: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
! 17418: *) lt_awk_arg="/^libraries:/" ;;
! 17419: esac
! 17420: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 17421: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1.1 root 17422: # if the path contains ";" then we assume it to be the separator
17423: # otherwise default to the standard path separator (i.e. ":") - it is
17424: # assumed that no part of a normal pathname contains ";" but that should
17425: # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1.5 ! root 17426: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1.1 root 17427: else
1.1.1.5 ! root 17428: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.1 root 17429: fi
1.1.1.5 ! root 17430: # Ok, now we have the path, separated by spaces, we can step through it
! 17431: # and add multilib dir if necessary.
! 17432: lt_tmp_lt_search_path_spec=
! 17433: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
! 17434: for lt_sys_path in $lt_search_path_spec; do
! 17435: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
! 17436: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
! 17437: else
! 17438: test -d "$lt_sys_path" && \
! 17439: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
! 17440: fi
! 17441: done
! 17442: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
! 17443: BEGIN {RS=" "; FS="/|\n";} {
! 17444: lt_foo="";
! 17445: lt_count=0;
! 17446: for (lt_i = NF; lt_i > 0; lt_i--) {
! 17447: if ($lt_i != "" && $lt_i != ".") {
! 17448: if ($lt_i == "..") {
! 17449: lt_count++;
! 17450: } else {
! 17451: if (lt_count == 0) {
! 17452: lt_foo="/" $lt_i lt_foo;
! 17453: } else {
! 17454: lt_count--;
! 17455: }
! 17456: }
! 17457: }
! 17458: }
! 17459: if (lt_foo != "") { lt_freq[lt_foo]++; }
! 17460: if (lt_freq[lt_foo] == 1) { print lt_foo; }
! 17461: }'`
! 17462: sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.1 root 17463: else
17464: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17465: fi
17466: need_lib_prefix=unknown
17467: hardcode_into_libs=no
17468:
17469: # when you set need_version to no, make sure it does not cause -set_version
17470: # flags to be left without arguments
17471: need_version=unknown
17472:
17473: case $host_os in
17474: aix3*)
17475: version_type=linux
17476: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17477: shlibpath_var=LIBPATH
17478:
17479: # AIX 3 has no versioning support, so we append a major version to the name.
17480: soname_spec='${libname}${release}${shared_ext}$major'
17481: ;;
17482:
17483: aix4* | aix5*)
17484: version_type=linux
17485: need_lib_prefix=no
17486: need_version=no
17487: hardcode_into_libs=yes
17488: if test "$host_cpu" = ia64; then
17489: # AIX 5 supports IA64
17490: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17491: shlibpath_var=LD_LIBRARY_PATH
17492: else
17493: # With GCC up to 2.95.x, collect2 would create an import file
17494: # for dependence libraries. The import file would start with
17495: # the line `#! .'. This would cause the generated library to
17496: # depend on `.', always an invalid library. This was fixed in
17497: # development snapshots of GCC prior to 3.0.
17498: case $host_os in
17499: aix4 | aix4.[01] | aix4.[01].*)
17500: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17501: echo ' yes '
17502: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17503: :
17504: else
17505: can_build_shared=no
17506: fi
17507: ;;
17508: esac
17509: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17510: # soname into executable. Probably we can add versioning support to
17511: # collect2, so additional links can be useful in future.
17512: if test "$aix_use_runtimelinking" = yes; then
17513: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17514: # instead of lib<name>.a to let people know that these are not
17515: # typical AIX shared libraries.
17516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517: else
17518: # We preserve .a as extension for shared libraries through AIX4.2
17519: # and later when we are not doing run time linking.
17520: library_names_spec='${libname}${release}.a $libname.a'
17521: soname_spec='${libname}${release}${shared_ext}$major'
17522: fi
17523: shlibpath_var=LIBPATH
17524: fi
17525: ;;
17526:
17527: amigaos*)
17528: library_names_spec='$libname.ixlibrary $libname.a'
17529: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.5 ! root 17530: 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'
1.1 root 17531: ;;
17532:
17533: beos*)
17534: library_names_spec='${libname}${shared_ext}'
17535: dynamic_linker="$host_os ld.so"
17536: shlibpath_var=LIBRARY_PATH
17537: ;;
17538:
1.1.1.5 ! root 17539: bsdi[45]*)
1.1 root 17540: version_type=linux
17541: need_version=no
17542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543: soname_spec='${libname}${release}${shared_ext}$major'
17544: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17545: shlibpath_var=LD_LIBRARY_PATH
17546: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17547: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17548: # the default ld.so.conf also contains /usr/contrib/lib and
17549: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17550: # libtool to hard-code these into programs
17551: ;;
17552:
17553: cygwin* | mingw* | pw32*)
17554: version_type=windows
1.1.1.5 ! root 17555: shrext_cmds=".dll"
1.1 root 17556: need_version=no
17557: need_lib_prefix=no
17558:
17559: case $GCC,$host_os in
17560: yes,cygwin* | yes,mingw* | yes,pw32*)
17561: library_names_spec='$libname.dll.a'
17562: # DLL is installed to $(libdir)/../bin by postinstall_cmds
17563: postinstall_cmds='base_file=`basename \${file}`~
17564: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17565: dldir=$destdir/`dirname \$dlpath`~
17566: test -d \$dldir || mkdir -p \$dldir~
1.1.1.5 ! root 17567: $install_prog $dir/$dlname \$dldir/$dlname~
! 17568: chmod a+x \$dldir/$dlname'
1.1 root 17569: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17570: dlpath=$dir/\$dldll~
17571: $rm \$dlpath'
17572: shlibpath_overrides_runpath=yes
17573:
17574: case $host_os in
17575: cygwin*)
17576: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17577: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.5 ! root 17578: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 17579: ;;
17580: mingw*)
17581: # MinGW DLLs use traditional 'lib' prefix
17582: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17583: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17584: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17585: # It is most probably a Windows format PATH printed by
17586: # mingw gcc, but we are running on Cygwin. Gcc prints its search
17587: # path with ; separators, and with drive letters. We can handle the
17588: # drive letters (cygwin fileutils understands them), so leave them,
17589: # especially as we might pass files found there to a mingw objdump,
17590: # which wouldn't understand a cygwinified path. Ahh.
17591: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17592: else
17593: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17594: fi
17595: ;;
17596: pw32*)
17597: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.5 ! root 17598: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 17599: ;;
17600: esac
17601: ;;
17602:
17603: *)
17604: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17605: ;;
17606: esac
17607: dynamic_linker='Win32 ld.exe'
17608: # FIXME: first we should search . and the directory the executable is in
17609: shlibpath_var=PATH
17610: ;;
17611:
17612: darwin* | rhapsody*)
17613: dynamic_linker="$host_os dyld"
17614: version_type=darwin
17615: need_lib_prefix=no
17616: need_version=no
17617: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17618: soname_spec='${libname}${release}${major}$shared_ext'
17619: shlibpath_overrides_runpath=yes
17620: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.5 ! root 17621: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 17622:
! 17623: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1.1 root 17624: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17625: ;;
17626:
17627: dgux*)
17628: version_type=linux
17629: need_lib_prefix=no
17630: need_version=no
17631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17632: soname_spec='${libname}${release}${shared_ext}$major'
17633: shlibpath_var=LD_LIBRARY_PATH
17634: ;;
17635:
17636: freebsd1*)
17637: dynamic_linker=no
17638: ;;
17639:
1.1.1.5 ! root 17640: freebsd* | dragonfly*)
! 17641: # DragonFly does not have aout. When/if they implement a new
! 17642: # versioning mechanism, adjust this.
! 17643: if test -x /usr/bin/objformat; then
! 17644: objformat=`/usr/bin/objformat`
! 17645: else
! 17646: case $host_os in
! 17647: freebsd[123]*) objformat=aout ;;
! 17648: *) objformat=elf ;;
! 17649: esac
! 17650: fi
1.1 root 17651: version_type=freebsd-$objformat
17652: case $version_type in
17653: freebsd-elf*)
17654: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17655: need_version=no
17656: need_lib_prefix=no
17657: ;;
17658: freebsd-*)
17659: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17660: need_version=yes
17661: ;;
17662: esac
17663: shlibpath_var=LD_LIBRARY_PATH
17664: case $host_os in
17665: freebsd2*)
17666: shlibpath_overrides_runpath=yes
17667: ;;
1.1.1.5 ! root 17668: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 17669: shlibpath_overrides_runpath=yes
17670: hardcode_into_libs=yes
17671: ;;
1.1.1.5 ! root 17672: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 17673: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 17674: shlibpath_overrides_runpath=no
17675: hardcode_into_libs=yes
17676: ;;
1.1.1.5 ! root 17677: *) # from 4.6 on, and DragonFly
! 17678: shlibpath_overrides_runpath=yes
! 17679: hardcode_into_libs=yes
! 17680: ;;
1.1 root 17681: esac
17682: ;;
17683:
17684: gnu*)
17685: version_type=linux
17686: need_lib_prefix=no
17687: need_version=no
17688: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17689: soname_spec='${libname}${release}${shared_ext}$major'
17690: shlibpath_var=LD_LIBRARY_PATH
17691: hardcode_into_libs=yes
17692: ;;
17693:
17694: hpux9* | hpux10* | hpux11*)
17695: # Give a soname corresponding to the major version so that dld.sl refuses to
17696: # link against other versions.
17697: version_type=sunos
17698: need_lib_prefix=no
17699: need_version=no
1.1.1.5 ! root 17700: case $host_cpu in
1.1 root 17701: ia64*)
1.1.1.5 ! root 17702: shrext_cmds='.so'
1.1 root 17703: hardcode_into_libs=yes
17704: dynamic_linker="$host_os dld.so"
17705: shlibpath_var=LD_LIBRARY_PATH
17706: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17707: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708: soname_spec='${libname}${release}${shared_ext}$major'
17709: if test "X$HPUX_IA64_MODE" = X32; then
17710: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17711: else
17712: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17713: fi
17714: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17715: ;;
17716: hppa*64*)
1.1.1.5 ! root 17717: shrext_cmds='.sl'
1.1 root 17718: hardcode_into_libs=yes
17719: dynamic_linker="$host_os dld.sl"
17720: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17721: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17722: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723: soname_spec='${libname}${release}${shared_ext}$major'
17724: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17725: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17726: ;;
17727: *)
1.1.1.5 ! root 17728: shrext_cmds='.sl'
1.1 root 17729: dynamic_linker="$host_os dld.sl"
17730: shlibpath_var=SHLIB_PATH
17731: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17732: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733: soname_spec='${libname}${release}${shared_ext}$major'
17734: ;;
17735: esac
17736: # HP-UX runs *really* slowly unless shared libraries are mode 555.
17737: postinstall_cmds='chmod 555 $lib'
17738: ;;
17739:
1.1.1.5 ! root 17740: interix[3-9]*)
! 17741: version_type=linux
! 17742: need_lib_prefix=no
! 17743: need_version=no
! 17744: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 17745: soname_spec='${libname}${release}${shared_ext}$major'
! 17746: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 17747: shlibpath_var=LD_LIBRARY_PATH
! 17748: shlibpath_overrides_runpath=no
! 17749: hardcode_into_libs=yes
! 17750: ;;
! 17751:
1.1 root 17752: irix5* | irix6* | nonstopux*)
17753: case $host_os in
17754: nonstopux*) version_type=nonstopux ;;
17755: *)
17756: if test "$lt_cv_prog_gnu_ld" = yes; then
17757: version_type=linux
17758: else
17759: version_type=irix
17760: fi ;;
17761: esac
17762: need_lib_prefix=no
17763: need_version=no
17764: soname_spec='${libname}${release}${shared_ext}$major'
17765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17766: case $host_os in
17767: irix5* | nonstopux*)
17768: libsuff= shlibsuff=
17769: ;;
17770: *)
17771: case $LD in # libtool.m4 will add one of these switches to LD
17772: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773: libsuff= shlibsuff= libmagic=32-bit;;
17774: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775: libsuff=32 shlibsuff=N32 libmagic=N32;;
17776: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777: libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778: *) libsuff= shlibsuff= libmagic=never-match;;
17779: esac
17780: ;;
17781: esac
17782: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783: shlibpath_overrides_runpath=no
17784: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786: hardcode_into_libs=yes
17787: ;;
17788:
17789: # No shared lib support for Linux oldld, aout, or coff.
17790: linux*oldld* | linux*aout* | linux*coff*)
17791: dynamic_linker=no
17792: ;;
17793:
17794: # This must be Linux ELF.
1.1.1.5 ! root 17795: linux* | k*bsd*-gnu)
1.1 root 17796: version_type=linux
17797: need_lib_prefix=no
17798: need_version=no
17799: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800: soname_spec='${libname}${release}${shared_ext}$major'
17801: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802: shlibpath_var=LD_LIBRARY_PATH
17803: shlibpath_overrides_runpath=no
17804: # This implies no fast_install, which is unacceptable.
17805: # Some rework will be needed to allow for fast_install
17806: # before this can be enabled.
17807: hardcode_into_libs=yes
17808:
1.1.1.5 ! root 17809: # Append ld.so.conf contents to the search path
! 17810: if test -f /etc/ld.so.conf; then
! 17811: 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' ' '`
! 17812: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 17813: fi
! 17814:
1.1 root 17815: # We used to test for /lib/ld.so.1 and disable shared libraries on
17816: # powerpc, because MkLinux only supported shared libraries with the
17817: # GNU dynamic linker. Since this was broken with cross compilers,
17818: # most powerpc-linux boxes support dynamic linking these days and
17819: # people can always --disable-shared, the test was removed, and we
17820: # assume the GNU/Linux dynamic linker is in use.
17821: dynamic_linker='GNU/Linux ld.so'
17822: ;;
17823:
17824: netbsd*)
17825: version_type=sunos
17826: need_lib_prefix=no
17827: need_version=no
17828: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17829: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17830: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17831: dynamic_linker='NetBSD (a.out) ld.so'
17832: else
1.1.1.5 ! root 17833: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 17834: soname_spec='${libname}${release}${shared_ext}$major'
17835: dynamic_linker='NetBSD ld.elf_so'
17836: fi
17837: shlibpath_var=LD_LIBRARY_PATH
17838: shlibpath_overrides_runpath=yes
17839: hardcode_into_libs=yes
17840: ;;
17841:
17842: newsos6)
17843: version_type=linux
17844: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845: shlibpath_var=LD_LIBRARY_PATH
17846: shlibpath_overrides_runpath=yes
17847: ;;
17848:
1.1.1.5 ! root 17849: nto-qnx*)
1.1 root 17850: version_type=linux
17851: need_lib_prefix=no
17852: need_version=no
17853: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854: soname_spec='${libname}${release}${shared_ext}$major'
17855: shlibpath_var=LD_LIBRARY_PATH
17856: shlibpath_overrides_runpath=yes
17857: ;;
17858:
17859: openbsd*)
17860: version_type=sunos
1.1.1.5 ! root 17861: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 17862: need_lib_prefix=no
1.1.1.5 ! root 17863: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 17864: case $host_os in
! 17865: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 17866: *) need_version=no ;;
! 17867: esac
1.1 root 17868: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17869: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17870: shlibpath_var=LD_LIBRARY_PATH
17871: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17872: case $host_os in
17873: openbsd2.[89] | openbsd2.[89].*)
17874: shlibpath_overrides_runpath=no
17875: ;;
17876: *)
17877: shlibpath_overrides_runpath=yes
17878: ;;
17879: esac
17880: else
17881: shlibpath_overrides_runpath=yes
17882: fi
17883: ;;
17884:
17885: os2*)
17886: libname_spec='$name'
1.1.1.5 ! root 17887: shrext_cmds=".dll"
1.1 root 17888: need_lib_prefix=no
17889: library_names_spec='$libname${shared_ext} $libname.a'
17890: dynamic_linker='OS/2 ld.exe'
17891: shlibpath_var=LIBPATH
17892: ;;
17893:
17894: osf3* | osf4* | osf5*)
17895: version_type=osf
17896: need_lib_prefix=no
17897: need_version=no
17898: soname_spec='${libname}${release}${shared_ext}$major'
17899: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900: shlibpath_var=LD_LIBRARY_PATH
17901: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17902: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17903: ;;
17904:
1.1.1.5 ! root 17905: rdos*)
! 17906: dynamic_linker=no
1.1 root 17907: ;;
17908:
17909: solaris*)
17910: version_type=linux
17911: need_lib_prefix=no
17912: need_version=no
17913: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17914: soname_spec='${libname}${release}${shared_ext}$major'
17915: shlibpath_var=LD_LIBRARY_PATH
17916: shlibpath_overrides_runpath=yes
17917: hardcode_into_libs=yes
17918: # ldd complains unless libraries are executable
17919: postinstall_cmds='chmod +x $lib'
17920: ;;
17921:
17922: sunos4*)
17923: version_type=sunos
17924: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17925: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17926: shlibpath_var=LD_LIBRARY_PATH
17927: shlibpath_overrides_runpath=yes
17928: if test "$with_gnu_ld" = yes; then
17929: need_lib_prefix=no
17930: fi
17931: need_version=yes
17932: ;;
17933:
1.1.1.5 ! root 17934: sysv4 | sysv4.3*)
1.1 root 17935: version_type=linux
17936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937: soname_spec='${libname}${release}${shared_ext}$major'
17938: shlibpath_var=LD_LIBRARY_PATH
17939: case $host_vendor in
17940: sni)
17941: shlibpath_overrides_runpath=no
17942: need_lib_prefix=no
17943: export_dynamic_flag_spec='${wl}-Blargedynsym'
17944: runpath_var=LD_RUN_PATH
17945: ;;
17946: siemens)
17947: need_lib_prefix=no
17948: ;;
17949: motorola)
17950: need_lib_prefix=no
17951: need_version=no
17952: shlibpath_overrides_runpath=no
17953: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17954: ;;
17955: esac
17956: ;;
17957:
17958: sysv4*MP*)
17959: if test -d /usr/nec ;then
17960: version_type=linux
17961: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17962: soname_spec='$libname${shared_ext}.$major'
17963: shlibpath_var=LD_LIBRARY_PATH
17964: fi
17965: ;;
17966:
1.1.1.5 ! root 17967: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 17968: version_type=freebsd-elf
! 17969: need_lib_prefix=no
! 17970: need_version=no
! 17971: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 17972: soname_spec='${libname}${release}${shared_ext}$major'
! 17973: shlibpath_var=LD_LIBRARY_PATH
! 17974: hardcode_into_libs=yes
! 17975: if test "$with_gnu_ld" = yes; then
! 17976: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 17977: shlibpath_overrides_runpath=no
! 17978: else
! 17979: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 17980: shlibpath_overrides_runpath=yes
! 17981: case $host_os in
! 17982: sco3.2v5*)
! 17983: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 17984: ;;
! 17985: esac
! 17986: fi
! 17987: sys_lib_dlsearch_path_spec='/usr/lib'
! 17988: ;;
! 17989:
1.1 root 17990: uts4*)
17991: version_type=linux
17992: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993: soname_spec='${libname}${release}${shared_ext}$major'
17994: shlibpath_var=LD_LIBRARY_PATH
17995: ;;
17996:
17997: *)
17998: dynamic_linker=no
17999: ;;
18000: esac
1.1.1.5 ! root 18001: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 18002: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 18003: test "$dynamic_linker" = no && can_build_shared=no
18004:
1.1.1.5 ! root 18005: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 18006: if test "$GCC" = yes; then
! 18007: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 18008: fi
! 18009:
! 18010: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 18011: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 18012: hardcode_action=
! 18013: if test -n "$hardcode_libdir_flag_spec" || \
! 18014: test -n "$runpath_var" || \
! 18015: test "X$hardcode_automatic" = "Xyes" ; then
! 18016:
! 18017: # We can hardcode non-existant directories.
! 18018: if test "$hardcode_direct" != no &&
! 18019: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 18020: # have to relink, otherwise we might link with an installed library
! 18021: # when we should be linking with a yet-to-be-installed one
! 18022: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 18023: test "$hardcode_minus_L" != no; then
! 18024: # Linking always hardcodes the temporary library directory.
! 18025: hardcode_action=relink
! 18026: else
! 18027: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 18028: hardcode_action=immediate
! 18029: fi
! 18030: else
! 18031: # We cannot hardcode anything, or else we can only hardcode existing
! 18032: # directories.
! 18033: hardcode_action=unsupported
! 18034: fi
! 18035: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 18036: echo "${ECHO_T}$hardcode_action" >&6; }
! 18037:
! 18038: if test "$hardcode_action" = relink; then
! 18039: # Fast installation is not supported
! 18040: enable_fast_install=no
! 18041: elif test "$shlibpath_overrides_runpath" = yes ||
! 18042: test "$enable_shared" = no; then
! 18043: # Fast installation is not necessary
! 18044: enable_fast_install=needless
! 18045: fi
! 18046:
! 18047: striplib=
! 18048: old_striplib=
! 18049: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 18050: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
! 18051: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 18052: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 18053: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 18054: { echo "$as_me:$LINENO: result: yes" >&5
! 18055: echo "${ECHO_T}yes" >&6; }
! 18056: else
! 18057: # FIXME - insert some real tests, host_os isn't really good enough
! 18058: case $host_os in
! 18059: darwin*)
! 18060: if test -n "$STRIP" ; then
! 18061: striplib="$STRIP -x"
! 18062: old_striplib="$STRIP -S"
! 18063: { echo "$as_me:$LINENO: result: yes" >&5
! 18064: echo "${ECHO_T}yes" >&6; }
! 18065: else
! 18066: { echo "$as_me:$LINENO: result: no" >&5
! 18067: echo "${ECHO_T}no" >&6; }
! 18068: fi
! 18069: ;;
! 18070: *)
! 18071: { echo "$as_me:$LINENO: result: no" >&5
! 18072: echo "${ECHO_T}no" >&6; }
! 18073: ;;
! 18074: esac
! 18075: fi
! 18076:
1.1 root 18077: if test "x$enable_dlopen" != xyes; then
18078: enable_dlopen=unknown
18079: enable_dlopen_self=unknown
18080: enable_dlopen_self_static=unknown
18081: else
18082: lt_cv_dlopen=no
18083: lt_cv_dlopen_libs=
18084:
18085: case $host_os in
18086: beos*)
18087: lt_cv_dlopen="load_add_on"
18088: lt_cv_dlopen_libs=
18089: lt_cv_dlopen_self=yes
18090: ;;
18091:
18092: mingw* | pw32*)
18093: lt_cv_dlopen="LoadLibrary"
18094: lt_cv_dlopen_libs=
18095: ;;
18096:
18097: cygwin*)
18098: lt_cv_dlopen="dlopen"
18099: lt_cv_dlopen_libs=
18100: ;;
18101:
18102: darwin*)
18103: # if libdl is installed we need to link against it
1.1.1.5 ! root 18104: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 18105: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.1 root 18106: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18107: echo $ECHO_N "(cached) $ECHO_C" >&6
18108: else
18109: ac_check_lib_save_LIBS=$LIBS
18110: LIBS="-ldl $LIBS"
18111: cat >conftest.$ac_ext <<_ACEOF
18112: /* confdefs.h. */
18113: _ACEOF
18114: cat confdefs.h >>conftest.$ac_ext
18115: cat >>conftest.$ac_ext <<_ACEOF
18116: /* end confdefs.h. */
18117:
1.1.1.5 ! root 18118: /* Override any GCC internal prototype to avoid an error.
! 18119: Use char because int might match the return type of a GCC
! 18120: builtin and then its argument prototype would still apply. */
1.1 root 18121: #ifdef __cplusplus
18122: extern "C"
18123: #endif
18124: char dlopen ();
18125: int
18126: main ()
18127: {
1.1.1.5 ! root 18128: return dlopen ();
1.1 root 18129: ;
18130: return 0;
18131: }
18132: _ACEOF
18133: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18134: if { (ac_try="$ac_link"
! 18135: case "(($ac_try" in
! 18136: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18137: *) ac_try_echo=$ac_try;;
! 18138: esac
! 18139: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18140: (eval "$ac_link") 2>conftest.er1
1.1 root 18141: ac_status=$?
1.1.1.5 ! root 18142: grep -v '^ *+' conftest.er1 >conftest.err
! 18143: rm -f conftest.er1
! 18144: cat conftest.err >&5
1.1 root 18145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18146: (exit $ac_status); } && {
! 18147: test -z "$ac_c_werror_flag" ||
! 18148: test ! -s conftest.err
! 18149: } && test -s conftest$ac_exeext &&
! 18150: $as_test_x conftest$ac_exeext; then
1.1 root 18151: ac_cv_lib_dl_dlopen=yes
18152: else
18153: echo "$as_me: failed program was:" >&5
18154: sed 's/^/| /' conftest.$ac_ext >&5
18155:
1.1.1.5 ! root 18156: ac_cv_lib_dl_dlopen=no
1.1 root 18157: fi
1.1.1.5 ! root 18158:
! 18159: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18160: conftest$ac_exeext conftest.$ac_ext
1.1 root 18161: LIBS=$ac_check_lib_save_LIBS
18162: fi
1.1.1.5 ! root 18163: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 18164: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.1 root 18165: if test $ac_cv_lib_dl_dlopen = yes; then
18166: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18167: else
18168:
18169: lt_cv_dlopen="dyld"
18170: lt_cv_dlopen_libs=
18171: lt_cv_dlopen_self=yes
18172:
18173: fi
18174:
18175: ;;
18176:
18177: *)
1.1.1.5 ! root 18178: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 18179: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
1.1 root 18180: if test "${ac_cv_func_shl_load+set}" = set; then
18181: echo $ECHO_N "(cached) $ECHO_C" >&6
18182: else
18183: cat >conftest.$ac_ext <<_ACEOF
18184: /* confdefs.h. */
18185: _ACEOF
18186: cat confdefs.h >>conftest.$ac_ext
18187: cat >>conftest.$ac_ext <<_ACEOF
18188: /* end confdefs.h. */
1.1.1.5 ! root 18189: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 18190: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18191: #define shl_load innocuous_shl_load
! 18192:
1.1 root 18193: /* System header to define __stub macros and hopefully few prototypes,
18194: which can conflict with char shl_load (); below.
18195: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 18197:
1.1 root 18198: #ifdef __STDC__
18199: # include <limits.h>
18200: #else
18201: # include <assert.h>
18202: #endif
1.1.1.5 ! root 18203:
! 18204: #undef shl_load
! 18205:
! 18206: /* Override any GCC internal prototype to avoid an error.
! 18207: Use char because int might match the return type of a GCC
! 18208: builtin and then its argument prototype would still apply. */
1.1 root 18209: #ifdef __cplusplus
18210: extern "C"
18211: #endif
18212: char shl_load ();
18213: /* The GNU C library defines this for functions which it implements
18214: to always fail with ENOSYS. Some functions are actually named
18215: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 18216: #if defined __stub_shl_load || defined __stub___shl_load
1.1 root 18217: choke me
18218: #endif
18219:
18220: int
18221: main ()
18222: {
1.1.1.5 ! root 18223: return shl_load ();
1.1 root 18224: ;
18225: return 0;
18226: }
18227: _ACEOF
18228: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18229: if { (ac_try="$ac_link"
! 18230: case "(($ac_try" in
! 18231: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18232: *) ac_try_echo=$ac_try;;
! 18233: esac
! 18234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18235: (eval "$ac_link") 2>conftest.er1
1.1 root 18236: ac_status=$?
1.1.1.5 ! root 18237: grep -v '^ *+' conftest.er1 >conftest.err
! 18238: rm -f conftest.er1
! 18239: cat conftest.err >&5
1.1 root 18240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18241: (exit $ac_status); } && {
! 18242: test -z "$ac_c_werror_flag" ||
! 18243: test ! -s conftest.err
! 18244: } && test -s conftest$ac_exeext &&
! 18245: $as_test_x conftest$ac_exeext; then
1.1 root 18246: ac_cv_func_shl_load=yes
18247: else
18248: echo "$as_me: failed program was:" >&5
18249: sed 's/^/| /' conftest.$ac_ext >&5
18250:
1.1.1.5 ! root 18251: ac_cv_func_shl_load=no
1.1 root 18252: fi
1.1.1.5 ! root 18253:
! 18254: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18255: conftest$ac_exeext conftest.$ac_ext
1.1 root 18256: fi
1.1.1.5 ! root 18257: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 18258: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
1.1 root 18259: if test $ac_cv_func_shl_load = yes; then
18260: lt_cv_dlopen="shl_load"
18261: else
1.1.1.5 ! root 18262: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 18263: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
1.1 root 18264: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18265: echo $ECHO_N "(cached) $ECHO_C" >&6
18266: else
18267: ac_check_lib_save_LIBS=$LIBS
18268: LIBS="-ldld $LIBS"
18269: cat >conftest.$ac_ext <<_ACEOF
18270: /* confdefs.h. */
18271: _ACEOF
18272: cat confdefs.h >>conftest.$ac_ext
18273: cat >>conftest.$ac_ext <<_ACEOF
18274: /* end confdefs.h. */
18275:
1.1.1.5 ! root 18276: /* Override any GCC internal prototype to avoid an error.
! 18277: Use char because int might match the return type of a GCC
! 18278: builtin and then its argument prototype would still apply. */
1.1 root 18279: #ifdef __cplusplus
18280: extern "C"
18281: #endif
18282: char shl_load ();
18283: int
18284: main ()
18285: {
1.1.1.5 ! root 18286: return shl_load ();
1.1 root 18287: ;
18288: return 0;
18289: }
18290: _ACEOF
18291: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18292: if { (ac_try="$ac_link"
! 18293: case "(($ac_try" in
! 18294: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18295: *) ac_try_echo=$ac_try;;
! 18296: esac
! 18297: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18298: (eval "$ac_link") 2>conftest.er1
1.1 root 18299: ac_status=$?
1.1.1.5 ! root 18300: grep -v '^ *+' conftest.er1 >conftest.err
! 18301: rm -f conftest.er1
! 18302: cat conftest.err >&5
1.1 root 18303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18304: (exit $ac_status); } && {
! 18305: test -z "$ac_c_werror_flag" ||
! 18306: test ! -s conftest.err
! 18307: } && test -s conftest$ac_exeext &&
! 18308: $as_test_x conftest$ac_exeext; then
1.1 root 18309: ac_cv_lib_dld_shl_load=yes
18310: else
18311: echo "$as_me: failed program was:" >&5
18312: sed 's/^/| /' conftest.$ac_ext >&5
18313:
1.1.1.5 ! root 18314: ac_cv_lib_dld_shl_load=no
1.1 root 18315: fi
1.1.1.5 ! root 18316:
! 18317: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18318: conftest$ac_exeext conftest.$ac_ext
1.1 root 18319: LIBS=$ac_check_lib_save_LIBS
18320: fi
1.1.1.5 ! root 18321: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 18322: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
1.1 root 18323: if test $ac_cv_lib_dld_shl_load = yes; then
18324: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18325: else
1.1.1.5 ! root 18326: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 18327: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
1.1 root 18328: if test "${ac_cv_func_dlopen+set}" = set; then
18329: echo $ECHO_N "(cached) $ECHO_C" >&6
18330: else
18331: cat >conftest.$ac_ext <<_ACEOF
18332: /* confdefs.h. */
18333: _ACEOF
18334: cat confdefs.h >>conftest.$ac_ext
18335: cat >>conftest.$ac_ext <<_ACEOF
18336: /* end confdefs.h. */
1.1.1.5 ! root 18337: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 18338: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18339: #define dlopen innocuous_dlopen
! 18340:
1.1 root 18341: /* System header to define __stub macros and hopefully few prototypes,
18342: which can conflict with char dlopen (); below.
18343: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18344: <limits.h> exists even on freestanding compilers. */
1.1.1.5 ! root 18345:
1.1 root 18346: #ifdef __STDC__
18347: # include <limits.h>
18348: #else
18349: # include <assert.h>
18350: #endif
1.1.1.5 ! root 18351:
! 18352: #undef dlopen
! 18353:
! 18354: /* Override any GCC internal prototype to avoid an error.
! 18355: Use char because int might match the return type of a GCC
! 18356: builtin and then its argument prototype would still apply. */
1.1 root 18357: #ifdef __cplusplus
18358: extern "C"
18359: #endif
18360: char dlopen ();
18361: /* The GNU C library defines this for functions which it implements
18362: to always fail with ENOSYS. Some functions are actually named
18363: something starting with __ and the normal name is an alias. */
1.1.1.5 ! root 18364: #if defined __stub_dlopen || defined __stub___dlopen
1.1 root 18365: choke me
18366: #endif
18367:
18368: int
18369: main ()
18370: {
1.1.1.5 ! root 18371: return dlopen ();
1.1 root 18372: ;
18373: return 0;
18374: }
18375: _ACEOF
18376: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18377: if { (ac_try="$ac_link"
! 18378: case "(($ac_try" in
! 18379: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18380: *) ac_try_echo=$ac_try;;
! 18381: esac
! 18382: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18383: (eval "$ac_link") 2>conftest.er1
1.1 root 18384: ac_status=$?
1.1.1.5 ! root 18385: grep -v '^ *+' conftest.er1 >conftest.err
! 18386: rm -f conftest.er1
! 18387: cat conftest.err >&5
1.1 root 18388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18389: (exit $ac_status); } && {
! 18390: test -z "$ac_c_werror_flag" ||
! 18391: test ! -s conftest.err
! 18392: } && test -s conftest$ac_exeext &&
! 18393: $as_test_x conftest$ac_exeext; then
1.1 root 18394: ac_cv_func_dlopen=yes
18395: else
18396: echo "$as_me: failed program was:" >&5
18397: sed 's/^/| /' conftest.$ac_ext >&5
18398:
1.1.1.5 ! root 18399: ac_cv_func_dlopen=no
1.1 root 18400: fi
1.1.1.5 ! root 18401:
! 18402: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18403: conftest$ac_exeext conftest.$ac_ext
1.1 root 18404: fi
1.1.1.5 ! root 18405: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 18406: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
1.1 root 18407: if test $ac_cv_func_dlopen = yes; then
18408: lt_cv_dlopen="dlopen"
18409: else
1.1.1.5 ! root 18410: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 18411: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.1 root 18412: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18413: echo $ECHO_N "(cached) $ECHO_C" >&6
18414: else
18415: ac_check_lib_save_LIBS=$LIBS
18416: LIBS="-ldl $LIBS"
18417: cat >conftest.$ac_ext <<_ACEOF
18418: /* confdefs.h. */
18419: _ACEOF
18420: cat confdefs.h >>conftest.$ac_ext
18421: cat >>conftest.$ac_ext <<_ACEOF
18422: /* end confdefs.h. */
18423:
1.1.1.5 ! root 18424: /* Override any GCC internal prototype to avoid an error.
! 18425: Use char because int might match the return type of a GCC
! 18426: builtin and then its argument prototype would still apply. */
1.1 root 18427: #ifdef __cplusplus
18428: extern "C"
18429: #endif
18430: char dlopen ();
18431: int
18432: main ()
18433: {
1.1.1.5 ! root 18434: return dlopen ();
1.1 root 18435: ;
18436: return 0;
18437: }
18438: _ACEOF
18439: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18440: if { (ac_try="$ac_link"
! 18441: case "(($ac_try" in
! 18442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18443: *) ac_try_echo=$ac_try;;
! 18444: esac
! 18445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18446: (eval "$ac_link") 2>conftest.er1
1.1 root 18447: ac_status=$?
1.1.1.5 ! root 18448: grep -v '^ *+' conftest.er1 >conftest.err
! 18449: rm -f conftest.er1
! 18450: cat conftest.err >&5
1.1 root 18451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18452: (exit $ac_status); } && {
! 18453: test -z "$ac_c_werror_flag" ||
! 18454: test ! -s conftest.err
! 18455: } && test -s conftest$ac_exeext &&
! 18456: $as_test_x conftest$ac_exeext; then
1.1 root 18457: ac_cv_lib_dl_dlopen=yes
18458: else
18459: echo "$as_me: failed program was:" >&5
18460: sed 's/^/| /' conftest.$ac_ext >&5
18461:
1.1.1.5 ! root 18462: ac_cv_lib_dl_dlopen=no
1.1 root 18463: fi
1.1.1.5 ! root 18464:
! 18465: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18466: conftest$ac_exeext conftest.$ac_ext
1.1 root 18467: LIBS=$ac_check_lib_save_LIBS
18468: fi
1.1.1.5 ! root 18469: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 18470: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.1 root 18471: if test $ac_cv_lib_dl_dlopen = yes; then
18472: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18473: else
1.1.1.5 ! root 18474: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 18475: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
1.1 root 18476: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18477: echo $ECHO_N "(cached) $ECHO_C" >&6
18478: else
18479: ac_check_lib_save_LIBS=$LIBS
18480: LIBS="-lsvld $LIBS"
18481: cat >conftest.$ac_ext <<_ACEOF
18482: /* confdefs.h. */
18483: _ACEOF
18484: cat confdefs.h >>conftest.$ac_ext
18485: cat >>conftest.$ac_ext <<_ACEOF
18486: /* end confdefs.h. */
18487:
1.1.1.5 ! root 18488: /* Override any GCC internal prototype to avoid an error.
! 18489: Use char because int might match the return type of a GCC
! 18490: builtin and then its argument prototype would still apply. */
1.1 root 18491: #ifdef __cplusplus
18492: extern "C"
18493: #endif
18494: char dlopen ();
18495: int
18496: main ()
18497: {
1.1.1.5 ! root 18498: return dlopen ();
1.1 root 18499: ;
18500: return 0;
18501: }
18502: _ACEOF
18503: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18504: if { (ac_try="$ac_link"
! 18505: case "(($ac_try" in
! 18506: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18507: *) ac_try_echo=$ac_try;;
! 18508: esac
! 18509: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18510: (eval "$ac_link") 2>conftest.er1
1.1 root 18511: ac_status=$?
1.1.1.5 ! root 18512: grep -v '^ *+' conftest.er1 >conftest.err
! 18513: rm -f conftest.er1
! 18514: cat conftest.err >&5
1.1 root 18515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18516: (exit $ac_status); } && {
! 18517: test -z "$ac_c_werror_flag" ||
! 18518: test ! -s conftest.err
! 18519: } && test -s conftest$ac_exeext &&
! 18520: $as_test_x conftest$ac_exeext; then
1.1 root 18521: ac_cv_lib_svld_dlopen=yes
18522: else
18523: echo "$as_me: failed program was:" >&5
18524: sed 's/^/| /' conftest.$ac_ext >&5
18525:
1.1.1.5 ! root 18526: ac_cv_lib_svld_dlopen=no
1.1 root 18527: fi
1.1.1.5 ! root 18528:
! 18529: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18530: conftest$ac_exeext conftest.$ac_ext
1.1 root 18531: LIBS=$ac_check_lib_save_LIBS
18532: fi
1.1.1.5 ! root 18533: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 18534: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
1.1 root 18535: if test $ac_cv_lib_svld_dlopen = yes; then
18536: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18537: else
1.1.1.5 ! root 18538: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 18539: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
1.1 root 18540: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18541: echo $ECHO_N "(cached) $ECHO_C" >&6
18542: else
18543: ac_check_lib_save_LIBS=$LIBS
18544: LIBS="-ldld $LIBS"
18545: cat >conftest.$ac_ext <<_ACEOF
18546: /* confdefs.h. */
18547: _ACEOF
18548: cat confdefs.h >>conftest.$ac_ext
18549: cat >>conftest.$ac_ext <<_ACEOF
18550: /* end confdefs.h. */
18551:
1.1.1.5 ! root 18552: /* Override any GCC internal prototype to avoid an error.
! 18553: Use char because int might match the return type of a GCC
! 18554: builtin and then its argument prototype would still apply. */
1.1 root 18555: #ifdef __cplusplus
18556: extern "C"
18557: #endif
18558: char dld_link ();
18559: int
18560: main ()
18561: {
1.1.1.5 ! root 18562: return dld_link ();
1.1 root 18563: ;
18564: return 0;
18565: }
18566: _ACEOF
18567: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 18568: if { (ac_try="$ac_link"
! 18569: case "(($ac_try" in
! 18570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 18571: *) ac_try_echo=$ac_try;;
! 18572: esac
! 18573: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 18574: (eval "$ac_link") 2>conftest.er1
1.1 root 18575: ac_status=$?
1.1.1.5 ! root 18576: grep -v '^ *+' conftest.er1 >conftest.err
! 18577: rm -f conftest.er1
! 18578: cat conftest.err >&5
1.1 root 18579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 18580: (exit $ac_status); } && {
! 18581: test -z "$ac_c_werror_flag" ||
! 18582: test ! -s conftest.err
! 18583: } && test -s conftest$ac_exeext &&
! 18584: $as_test_x conftest$ac_exeext; then
1.1 root 18585: ac_cv_lib_dld_dld_link=yes
18586: else
18587: echo "$as_me: failed program was:" >&5
18588: sed 's/^/| /' conftest.$ac_ext >&5
18589:
1.1.1.5 ! root 18590: ac_cv_lib_dld_dld_link=no
1.1 root 18591: fi
1.1.1.5 ! root 18592:
! 18593: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18594: conftest$ac_exeext conftest.$ac_ext
1.1 root 18595: LIBS=$ac_check_lib_save_LIBS
18596: fi
1.1.1.5 ! root 18597: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 18598: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
1.1 root 18599: if test $ac_cv_lib_dld_dld_link = yes; then
18600: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18601: fi
18602:
18603:
18604: fi
18605:
18606:
18607: fi
18608:
18609:
18610: fi
18611:
18612:
18613: fi
18614:
18615:
18616: fi
18617:
18618: ;;
18619: esac
18620:
18621: if test "x$lt_cv_dlopen" != xno; then
18622: enable_dlopen=yes
18623: else
18624: enable_dlopen=no
18625: fi
18626:
18627: case $lt_cv_dlopen in
18628: dlopen)
18629: save_CPPFLAGS="$CPPFLAGS"
18630: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18631:
18632: save_LDFLAGS="$LDFLAGS"
1.1.1.5 ! root 18633: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.1 root 18634:
18635: save_LIBS="$LIBS"
18636: LIBS="$lt_cv_dlopen_libs $LIBS"
18637:
1.1.1.5 ! root 18638: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 18639: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
1.1 root 18640: if test "${lt_cv_dlopen_self+set}" = set; then
18641: echo $ECHO_N "(cached) $ECHO_C" >&6
18642: else
18643: if test "$cross_compiling" = yes; then :
18644: lt_cv_dlopen_self=cross
18645: else
18646: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18647: lt_status=$lt_dlunknown
18648: cat > conftest.$ac_ext <<EOF
1.1.1.5 ! root 18649: #line 18649 "configure"
1.1 root 18650: #include "confdefs.h"
18651:
18652: #if HAVE_DLFCN_H
18653: #include <dlfcn.h>
18654: #endif
18655:
18656: #include <stdio.h>
18657:
18658: #ifdef RTLD_GLOBAL
18659: # define LT_DLGLOBAL RTLD_GLOBAL
18660: #else
18661: # ifdef DL_GLOBAL
18662: # define LT_DLGLOBAL DL_GLOBAL
18663: # else
18664: # define LT_DLGLOBAL 0
18665: # endif
18666: #endif
18667:
18668: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18669: find out it does not work in some platform. */
18670: #ifndef LT_DLLAZY_OR_NOW
18671: # ifdef RTLD_LAZY
18672: # define LT_DLLAZY_OR_NOW RTLD_LAZY
18673: # else
18674: # ifdef DL_LAZY
18675: # define LT_DLLAZY_OR_NOW DL_LAZY
18676: # else
18677: # ifdef RTLD_NOW
18678: # define LT_DLLAZY_OR_NOW RTLD_NOW
18679: # else
18680: # ifdef DL_NOW
18681: # define LT_DLLAZY_OR_NOW DL_NOW
18682: # else
18683: # define LT_DLLAZY_OR_NOW 0
18684: # endif
18685: # endif
18686: # endif
18687: # endif
18688: #endif
18689:
18690: #ifdef __cplusplus
18691: extern "C" void exit (int);
18692: #endif
18693:
18694: void fnord() { int i=42;}
18695: int main ()
18696: {
18697: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18698: int status = $lt_dlunknown;
18699:
18700: if (self)
18701: {
18702: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18703: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18704: /* dlclose (self); */
18705: }
1.1.1.5 ! root 18706: else
! 18707: puts (dlerror ());
1.1 root 18708:
18709: exit (status);
18710: }
18711: EOF
18712: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713: (eval $ac_link) 2>&5
18714: ac_status=$?
18715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.1.5 ! root 18717: (./conftest; exit; ) >&5 2>/dev/null
1.1 root 18718: lt_status=$?
18719: case x$lt_status in
18720: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18721: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.1.1.5 ! root 18722: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.1 root 18723: esac
18724: else :
18725: # compilation failed
18726: lt_cv_dlopen_self=no
18727: fi
18728: fi
18729: rm -fr conftest*
18730:
18731:
18732: fi
1.1.1.5 ! root 18733: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 18734: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.1 root 18735:
18736: if test "x$lt_cv_dlopen_self" = xyes; then
1.1.1.5 ! root 18737: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
! 18738: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 18739: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
1.1 root 18740: if test "${lt_cv_dlopen_self_static+set}" = set; then
18741: echo $ECHO_N "(cached) $ECHO_C" >&6
18742: else
18743: if test "$cross_compiling" = yes; then :
18744: lt_cv_dlopen_self_static=cross
18745: else
18746: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18747: lt_status=$lt_dlunknown
18748: cat > conftest.$ac_ext <<EOF
1.1.1.5 ! root 18749: #line 18749 "configure"
1.1 root 18750: #include "confdefs.h"
18751:
18752: #if HAVE_DLFCN_H
18753: #include <dlfcn.h>
18754: #endif
18755:
18756: #include <stdio.h>
18757:
18758: #ifdef RTLD_GLOBAL
18759: # define LT_DLGLOBAL RTLD_GLOBAL
18760: #else
18761: # ifdef DL_GLOBAL
18762: # define LT_DLGLOBAL DL_GLOBAL
18763: # else
18764: # define LT_DLGLOBAL 0
18765: # endif
18766: #endif
18767:
18768: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18769: find out it does not work in some platform. */
18770: #ifndef LT_DLLAZY_OR_NOW
18771: # ifdef RTLD_LAZY
18772: # define LT_DLLAZY_OR_NOW RTLD_LAZY
18773: # else
18774: # ifdef DL_LAZY
18775: # define LT_DLLAZY_OR_NOW DL_LAZY
18776: # else
18777: # ifdef RTLD_NOW
18778: # define LT_DLLAZY_OR_NOW RTLD_NOW
18779: # else
18780: # ifdef DL_NOW
18781: # define LT_DLLAZY_OR_NOW DL_NOW
18782: # else
18783: # define LT_DLLAZY_OR_NOW 0
18784: # endif
18785: # endif
18786: # endif
18787: # endif
18788: #endif
18789:
18790: #ifdef __cplusplus
18791: extern "C" void exit (int);
18792: #endif
18793:
18794: void fnord() { int i=42;}
18795: int main ()
18796: {
18797: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18798: int status = $lt_dlunknown;
18799:
18800: if (self)
18801: {
18802: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18803: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18804: /* dlclose (self); */
18805: }
1.1.1.5 ! root 18806: else
! 18807: puts (dlerror ());
1.1 root 18808:
18809: exit (status);
18810: }
18811: EOF
18812: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813: (eval $ac_link) 2>&5
18814: ac_status=$?
18815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.1.5 ! root 18817: (./conftest; exit; ) >&5 2>/dev/null
1.1 root 18818: lt_status=$?
18819: case x$lt_status in
18820: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18821: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.1.1.5 ! root 18822: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.1 root 18823: esac
18824: else :
18825: # compilation failed
18826: lt_cv_dlopen_self_static=no
18827: fi
18828: fi
18829: rm -fr conftest*
18830:
18831:
18832: fi
1.1.1.5 ! root 18833: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 18834: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
1.1 root 18835: fi
18836:
18837: CPPFLAGS="$save_CPPFLAGS"
18838: LDFLAGS="$save_LDFLAGS"
18839: LIBS="$save_LIBS"
18840: ;;
18841: esac
18842:
18843: case $lt_cv_dlopen_self in
18844: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18845: *) enable_dlopen_self=unknown ;;
18846: esac
18847:
18848: case $lt_cv_dlopen_self_static in
18849: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18850: *) enable_dlopen_self_static=unknown ;;
18851: esac
18852: fi
18853:
18854:
1.1.1.5 ! root 18855: # Report which library types will actually be built
! 18856: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 18857: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 18858: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 18859: echo "${ECHO_T}$can_build_shared" >&6; }
1.1 root 18860:
1.1.1.5 ! root 18861: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 18862: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
1.1 root 18863: test "$can_build_shared" = "no" && enable_shared=no
18864:
18865: # On AIX, shared libraries and static libraries use the same namespace, and
18866: # are all built from PIC.
1.1.1.5 ! root 18867: case $host_os in
1.1 root 18868: aix3*)
18869: test "$enable_shared" = yes && enable_static=no
18870: if test -n "$RANLIB"; then
18871: archive_cmds="$archive_cmds~\$RANLIB \$lib"
18872: postinstall_cmds='$RANLIB $lib'
18873: fi
18874: ;;
18875:
1.1.1.5 ! root 18876: aix4* | aix5*)
1.1 root 18877: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18878: test "$enable_shared" = yes && enable_static=no
18879: fi
18880: ;;
18881: esac
1.1.1.5 ! root 18882: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 18883: echo "${ECHO_T}$enable_shared" >&6; }
1.1 root 18884:
1.1.1.5 ! root 18885: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 18886: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
1.1 root 18887: # Make sure either enable_shared or enable_static is yes.
18888: test "$enable_shared" = yes || enable_static=yes
1.1.1.5 ! root 18889: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 18890: echo "${ECHO_T}$enable_static" >&6; }
1.1 root 18891:
18892: # The else clause should only fire when bootstrapping the
18893: # libtool distribution, otherwise you forgot to ship ltmain.sh
18894: # with your package, and you will get complaints that there are
18895: # no rules to generate ltmain.sh.
18896: if test -f "$ltmain"; then
18897: # See if we are running on zsh, and set the options which allow our commands through
18898: # without removal of \ escapes.
18899: if test -n "${ZSH_VERSION+set}" ; then
18900: setopt NO_GLOB_SUBST
18901: fi
18902: # Now quote all the things that may contain metacharacters while being
18903: # careful not to overquote the AC_SUBSTed values. We take copies of the
18904: # variables and quote the copies for generation of the libtool script.
1.1.1.5 ! root 18905: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 18906: SED SHELL STRIP \
1.1 root 18907: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18908: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18909: deplibs_check_method reload_flag reload_cmds need_locks \
18910: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18911: lt_cv_sys_global_symbol_to_c_name_address \
18912: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18913: old_postinstall_cmds old_postuninstall_cmds \
18914: compiler \
18915: CC \
18916: LD \
18917: lt_prog_compiler_wl \
18918: lt_prog_compiler_pic \
18919: lt_prog_compiler_static \
18920: lt_prog_compiler_no_builtin_flag \
18921: export_dynamic_flag_spec \
18922: thread_safe_flag_spec \
18923: whole_archive_flag_spec \
18924: enable_shared_with_static_runtimes \
18925: old_archive_cmds \
18926: old_archive_from_new_cmds \
18927: predep_objects \
18928: postdep_objects \
18929: predeps \
18930: postdeps \
18931: compiler_lib_search_path \
18932: archive_cmds \
18933: archive_expsym_cmds \
18934: postinstall_cmds \
18935: postuninstall_cmds \
18936: old_archive_from_expsyms_cmds \
18937: allow_undefined_flag \
18938: no_undefined_flag \
18939: export_symbols_cmds \
18940: hardcode_libdir_flag_spec \
18941: hardcode_libdir_flag_spec_ld \
18942: hardcode_libdir_separator \
18943: hardcode_automatic \
18944: module_cmds \
18945: module_expsym_cmds \
18946: lt_cv_prog_compiler_c_o \
1.1.1.5 ! root 18947: fix_srcfile_path \
1.1 root 18948: exclude_expsyms \
18949: include_expsyms; do
18950:
18951: case $var in
18952: old_archive_cmds | \
18953: old_archive_from_new_cmds | \
18954: archive_cmds | \
18955: archive_expsym_cmds | \
18956: module_cmds | \
18957: module_expsym_cmds | \
18958: old_archive_from_expsyms_cmds | \
18959: export_symbols_cmds | \
18960: extract_expsyms_cmds | reload_cmds | finish_cmds | \
18961: postinstall_cmds | postuninstall_cmds | \
18962: old_postinstall_cmds | old_postuninstall_cmds | \
18963: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18964: # Double-quote double-evaled strings.
18965: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18966: ;;
18967: *)
18968: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18969: ;;
18970: esac
18971: done
18972:
18973: case $lt_echo in
18974: *'\$0 --fallback-echo"')
18975: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18976: ;;
18977: esac
18978:
18979: cfgfile="${ofile}T"
18980: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18981: $rm -f "$cfgfile"
18982: { echo "$as_me:$LINENO: creating $ofile" >&5
18983: echo "$as_me: creating $ofile" >&6;}
18984:
18985: cat <<__EOF__ >> "$cfgfile"
18986: #! $SHELL
18987:
18988: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18989: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18990: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18991: #
1.1.1.5 ! root 18992: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
1.1 root 18993: # Free Software Foundation, Inc.
18994: #
18995: # This file is part of GNU Libtool:
18996: # Originally by Gordon Matzigkeit <[email protected]>, 1996
18997: #
18998: # This program is free software; you can redistribute it and/or modify
18999: # it under the terms of the GNU General Public License as published by
19000: # the Free Software Foundation; either version 2 of the License, or
19001: # (at your option) any later version.
19002: #
19003: # This program is distributed in the hope that it will be useful, but
19004: # WITHOUT ANY WARRANTY; without even the implied warranty of
19005: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19006: # General Public License for more details.
19007: #
19008: # You should have received a copy of the GNU General Public License
19009: # along with this program; if not, write to the Free Software
1.1.1.5 ! root 19010: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1 root 19011: #
19012: # As a special exception to the GNU General Public License, if you
19013: # distribute this file as part of a program that contains a
19014: # configuration script generated by Autoconf, you may include it under
19015: # the same distribution terms that you use for the rest of that program.
19016:
19017: # A sed program that does not truncate output.
19018: SED=$lt_SED
19019:
19020: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1.1.1.5 ! root 19021: Xsed="$SED -e 1s/^X//"
1.1 root 19022:
19023: # The HP-UX ksh and POSIX shell print the target directory to stdout
19024: # if CDPATH is set.
1.1.1.5 ! root 19025: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 root 19026:
19027: # The names of the tagged configurations supported by this script.
19028: available_tags=
19029:
19030: # ### BEGIN LIBTOOL CONFIG
19031:
19032: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033:
19034: # Shell to use when invoking shell scripts.
19035: SHELL=$lt_SHELL
19036:
19037: # Whether or not to build shared libraries.
19038: build_libtool_libs=$enable_shared
19039:
19040: # Whether or not to build static libraries.
19041: build_old_libs=$enable_static
19042:
19043: # Whether or not to add -lc for building shared libraries.
19044: build_libtool_need_lc=$archive_cmds_need_lc
19045:
19046: # Whether or not to disallow shared libs when runtime libs are static
19047: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19048:
19049: # Whether or not to optimize for fast installation.
19050: fast_install=$enable_fast_install
19051:
19052: # The host system.
19053: host_alias=$host_alias
19054: host=$host
1.1.1.5 ! root 19055: host_os=$host_os
! 19056:
! 19057: # The build system.
! 19058: build_alias=$build_alias
! 19059: build=$build
! 19060: build_os=$build_os
1.1 root 19061:
19062: # An echo program that does not interpret backslashes.
19063: echo=$lt_echo
19064:
19065: # The archiver.
19066: AR=$lt_AR
19067: AR_FLAGS=$lt_AR_FLAGS
19068:
19069: # A C compiler.
19070: LTCC=$lt_LTCC
19071:
1.1.1.5 ! root 19072: # LTCC compiler flags.
! 19073: LTCFLAGS=$lt_LTCFLAGS
! 19074:
1.1 root 19075: # A language-specific compiler.
19076: CC=$lt_compiler
19077:
19078: # Is the compiler the GNU C compiler?
19079: with_gcc=$GCC
19080:
19081: # An ERE matcher.
19082: EGREP=$lt_EGREP
19083:
19084: # The linker used to build libraries.
19085: LD=$lt_LD
19086:
19087: # Whether we need hard or soft links.
19088: LN_S=$lt_LN_S
19089:
19090: # A BSD-compatible nm program.
19091: NM=$lt_NM
19092:
19093: # A symbol stripping program
1.1.1.5 ! root 19094: STRIP=$lt_STRIP
1.1 root 19095:
19096: # Used to examine libraries when file_magic_cmd begins "file"
19097: MAGIC_CMD=$MAGIC_CMD
19098:
19099: # Used on cygwin: DLL creation program.
19100: DLLTOOL="$DLLTOOL"
19101:
19102: # Used on cygwin: object dumper.
19103: OBJDUMP="$OBJDUMP"
19104:
19105: # Used on cygwin: assembler.
19106: AS="$AS"
19107:
19108: # The name of the directory that contains temporary libtool files.
19109: objdir=$objdir
19110:
19111: # How to create reloadable object files.
19112: reload_flag=$lt_reload_flag
19113: reload_cmds=$lt_reload_cmds
19114:
19115: # How to pass a linker flag through the compiler.
19116: wl=$lt_lt_prog_compiler_wl
19117:
19118: # Object file suffix (normally "o").
19119: objext="$ac_objext"
19120:
19121: # Old archive suffix (normally "a").
19122: libext="$libext"
19123:
19124: # Shared library suffix (normally ".so").
1.1.1.5 ! root 19125: shrext_cmds='$shrext_cmds'
1.1 root 19126:
19127: # Executable file suffix (normally "").
19128: exeext="$exeext"
19129:
19130: # Additional compiler flags for building library objects.
19131: pic_flag=$lt_lt_prog_compiler_pic
19132: pic_mode=$pic_mode
19133:
19134: # What is the maximum length of a command?
19135: max_cmd_len=$lt_cv_sys_max_cmd_len
19136:
19137: # Does compiler simultaneously support -c and -o options?
19138: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19139:
1.1.1.5 ! root 19140: # Must we lock files when doing compilation?
1.1 root 19141: need_locks=$lt_need_locks
19142:
19143: # Do we need the lib prefix for modules?
19144: need_lib_prefix=$need_lib_prefix
19145:
19146: # Do we need a version for libraries?
19147: need_version=$need_version
19148:
19149: # Whether dlopen is supported.
19150: dlopen_support=$enable_dlopen
19151:
19152: # Whether dlopen of programs is supported.
19153: dlopen_self=$enable_dlopen_self
19154:
19155: # Whether dlopen of statically linked programs is supported.
19156: dlopen_self_static=$enable_dlopen_self_static
19157:
19158: # Compiler flag to prevent dynamic linking.
19159: link_static_flag=$lt_lt_prog_compiler_static
19160:
19161: # Compiler flag to turn off builtin functions.
19162: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19163:
19164: # Compiler flag to allow reflexive dlopens.
19165: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19166:
19167: # Compiler flag to generate shared objects directly from archives.
19168: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19169:
19170: # Compiler flag to generate thread-safe objects.
19171: thread_safe_flag_spec=$lt_thread_safe_flag_spec
19172:
19173: # Library versioning type.
19174: version_type=$version_type
19175:
19176: # Format of library name prefix.
19177: libname_spec=$lt_libname_spec
19178:
19179: # List of archive names. First name is the real one, the rest are links.
19180: # The last name is the one that the linker finds with -lNAME.
19181: library_names_spec=$lt_library_names_spec
19182:
19183: # The coded name of the library, if different from the real name.
19184: soname_spec=$lt_soname_spec
19185:
19186: # Commands used to build and install an old-style archive.
19187: RANLIB=$lt_RANLIB
19188: old_archive_cmds=$lt_old_archive_cmds
19189: old_postinstall_cmds=$lt_old_postinstall_cmds
19190: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191:
19192: # Create an old-style archive from a shared archive.
19193: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19194:
19195: # Create a temporary old-style archive to link instead of a shared archive.
19196: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19197:
19198: # Commands used to build and install a shared archive.
19199: archive_cmds=$lt_archive_cmds
19200: archive_expsym_cmds=$lt_archive_expsym_cmds
19201: postinstall_cmds=$lt_postinstall_cmds
19202: postuninstall_cmds=$lt_postuninstall_cmds
19203:
19204: # Commands used to build a loadable module (assumed same as above if empty)
19205: module_cmds=$lt_module_cmds
19206: module_expsym_cmds=$lt_module_expsym_cmds
19207:
19208: # Commands to strip libraries.
19209: old_striplib=$lt_old_striplib
19210: striplib=$lt_striplib
19211:
19212: # Dependencies to place before the objects being linked to create a
19213: # shared library.
19214: predep_objects=$lt_predep_objects
19215:
19216: # Dependencies to place after the objects being linked to create a
19217: # shared library.
19218: postdep_objects=$lt_postdep_objects
19219:
19220: # Dependencies to place before the objects being linked to create a
19221: # shared library.
19222: predeps=$lt_predeps
19223:
19224: # Dependencies to place after the objects being linked to create a
19225: # shared library.
19226: postdeps=$lt_postdeps
19227:
19228: # The library search path used internally by the compiler when linking
19229: # a shared library.
19230: compiler_lib_search_path=$lt_compiler_lib_search_path
19231:
19232: # Method to check whether dependent libraries are shared objects.
19233: deplibs_check_method=$lt_deplibs_check_method
19234:
19235: # Command to use when deplibs_check_method == file_magic.
19236: file_magic_cmd=$lt_file_magic_cmd
19237:
19238: # Flag that allows shared libraries with undefined symbols to be built.
19239: allow_undefined_flag=$lt_allow_undefined_flag
19240:
19241: # Flag that forces no undefined symbols.
19242: no_undefined_flag=$lt_no_undefined_flag
19243:
19244: # Commands used to finish a libtool library installation in a directory.
19245: finish_cmds=$lt_finish_cmds
19246:
19247: # Same as above, but a single script fragment to be evaled but not shown.
19248: finish_eval=$lt_finish_eval
19249:
19250: # Take the output of nm and produce a listing of raw symbols and C names.
19251: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19252:
19253: # Transform the output of nm in a proper C declaration
19254: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19255:
19256: # Transform the output of nm in a C name address pair
19257: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19258:
19259: # This is the shared library runtime path variable.
19260: runpath_var=$runpath_var
19261:
19262: # This is the shared library path variable.
19263: shlibpath_var=$shlibpath_var
19264:
19265: # Is shlibpath searched before the hard-coded library search path?
19266: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267:
19268: # How to hardcode a shared library path into an executable.
19269: hardcode_action=$hardcode_action
19270:
19271: # Whether we should hardcode library paths into libraries.
19272: hardcode_into_libs=$hardcode_into_libs
19273:
19274: # Flag to hardcode \$libdir into a binary during linking.
19275: # This must work even if \$libdir does not exist.
19276: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19277:
19278: # If ld is used when linking, flag to hardcode \$libdir into
19279: # a binary during linking. This must work even if \$libdir does
19280: # not exist.
19281: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19282:
19283: # Whether we need a single -rpath flag with a separated argument.
19284: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19285:
19286: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19287: # resulting binary.
19288: hardcode_direct=$hardcode_direct
19289:
19290: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19291: # resulting binary.
19292: hardcode_minus_L=$hardcode_minus_L
19293:
19294: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19295: # the resulting binary.
19296: hardcode_shlibpath_var=$hardcode_shlibpath_var
19297:
19298: # Set to yes if building a shared library automatically hardcodes DIR into the library
19299: # and all subsequent libraries and executables linked against it.
19300: hardcode_automatic=$hardcode_automatic
19301:
19302: # Variables whose values should be saved in libtool wrapper scripts and
19303: # restored at relink time.
19304: variables_saved_for_relink="$variables_saved_for_relink"
19305:
19306: # Whether libtool must link a program against all its dependency libraries.
19307: link_all_deplibs=$link_all_deplibs
19308:
19309: # Compile-time system search path for libraries
19310: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19311:
19312: # Run-time system search path for libraries
19313: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19314:
19315: # Fix the shell variable \$srcfile for the compiler.
1.1.1.5 ! root 19316: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 19317:
19318: # Set to yes if exported symbols are required.
19319: always_export_symbols=$always_export_symbols
19320:
19321: # The commands to list exported symbols.
19322: export_symbols_cmds=$lt_export_symbols_cmds
19323:
19324: # The commands to extract the exported symbol list from a shared archive.
19325: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19326:
19327: # Symbols that should not be listed in the preloaded symbols.
19328: exclude_expsyms=$lt_exclude_expsyms
19329:
19330: # Symbols that must always be exported.
19331: include_expsyms=$lt_include_expsyms
19332:
19333: # ### END LIBTOOL CONFIG
19334:
19335: __EOF__
19336:
19337:
19338: case $host_os in
19339: aix3*)
19340: cat <<\EOF >> "$cfgfile"
19341:
19342: # AIX sometimes has problems with the GCC collect2 program. For some
19343: # reason, if we set the COLLECT_NAMES environment variable, the problems
19344: # vanish in a puff of smoke.
19345: if test "X${COLLECT_NAMES+set}" != Xset; then
19346: COLLECT_NAMES=
19347: export COLLECT_NAMES
19348: fi
19349: EOF
19350: ;;
19351: esac
19352:
19353: # We use sed instead of cat because bash on DJGPP gets confused if
19354: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19355: # text mode, it properly converts lines to CR/LF. This bash problem
19356: # is reportedly fixed, but why not run on old versions too?
19357: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19358:
19359: mv -f "$cfgfile" "$ofile" || \
19360: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19361: chmod +x "$ofile"
19362:
19363: else
19364: # If there is no Makefile yet, we rely on a make rule to execute
19365: # `config.status --recheck' to rerun these tests and create the
19366: # libtool script then.
1.1.1.5 ! root 19367: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 19368: if test -f "$ltmain_in"; then
! 19369: test -f Makefile && make "$ltmain"
! 19370: fi
1.1 root 19371: fi
19372:
19373:
19374: ac_ext=c
19375: ac_cpp='$CPP $CPPFLAGS'
19376: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379:
19380: CC="$lt_save_CC"
19381:
19382:
1.1.1.5 ! root 19383: # Check whether --with-tags was given.
1.1 root 19384: if test "${with_tags+set}" = set; then
1.1.1.5 ! root 19385: withval=$with_tags; tagnames="$withval"
! 19386: fi
! 19387:
1.1 root 19388:
19389: if test -f "$ltmain" && test -n "$tagnames"; then
19390: if test ! -f "${ofile}"; then
19391: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
19392: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
19393: fi
19394:
19395: if test -z "$LTCC"; then
19396: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
19397: if test -z "$LTCC"; then
19398: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
19399: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
19400: else
19401: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
19402: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
19403: fi
19404: fi
1.1.1.5 ! root 19405: if test -z "$LTCFLAGS"; then
! 19406: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
! 19407: fi
1.1 root 19408:
19409: # Extract list of available tagged configurations in $ofile.
19410: # Note that this assumes the entire list is on one line.
19411: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
19412:
19413: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19414: for tagname in $tagnames; do
19415: IFS="$lt_save_ifs"
19416: # Check whether tagname contains only valid characters
19417: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
19418: "") ;;
19419: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
19420: echo "$as_me: error: invalid tag name: $tagname" >&2;}
19421: { (exit 1); exit 1; }; }
19422: ;;
19423: esac
19424:
19425: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
19426: then
19427: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
19428: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
19429: { (exit 1); exit 1; }; }
19430: fi
19431:
19432: # Update the list of available tags.
19433: if test -n "$tagname"; then
19434: echo appending configuration tag \"$tagname\" to $ofile
19435:
19436: case $tagname in
19437: CXX)
1.1.1.5 ! root 19438: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
! 19439: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
! 19440: (test "X$CXX" != "Xg++"))) ; then
! 19441: ac_ext=cpp
1.1 root 19442: ac_cpp='$CXXCPP $CPPFLAGS'
19443: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19446:
19447:
19448:
19449:
19450: archive_cmds_need_lc_CXX=no
19451: allow_undefined_flag_CXX=
19452: always_export_symbols_CXX=no
19453: archive_expsym_cmds_CXX=
19454: export_dynamic_flag_spec_CXX=
19455: hardcode_direct_CXX=no
19456: hardcode_libdir_flag_spec_CXX=
19457: hardcode_libdir_flag_spec_ld_CXX=
19458: hardcode_libdir_separator_CXX=
19459: hardcode_minus_L_CXX=no
1.1.1.5 ! root 19460: hardcode_shlibpath_var_CXX=unsupported
1.1 root 19461: hardcode_automatic_CXX=no
19462: module_cmds_CXX=
19463: module_expsym_cmds_CXX=
19464: link_all_deplibs_CXX=unknown
19465: old_archive_cmds_CXX=$old_archive_cmds
19466: no_undefined_flag_CXX=
19467: whole_archive_flag_spec_CXX=
19468: enable_shared_with_static_runtimes_CXX=no
19469:
19470: # Dependencies to place before and after the object being linked:
19471: predep_objects_CXX=
19472: postdep_objects_CXX=
19473: predeps_CXX=
19474: postdeps_CXX=
19475: compiler_lib_search_path_CXX=
19476:
19477: # Source file extension for C++ test sources.
1.1.1.5 ! root 19478: ac_ext=cpp
1.1 root 19479:
19480: # Object file extension for compiled C++ test sources.
19481: objext=o
19482: objext_CXX=$objext
19483:
19484: # Code to be used in simple compile tests
1.1.1.5 ! root 19485: lt_simple_compile_test_code="int some_variable = 0;"
1.1 root 19486:
19487: # Code to be used in simple link tests
1.1.1.5 ! root 19488: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
1.1 root 19489:
19490: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19491:
19492: # If no C compiler was specified, use CC.
19493: LTCC=${LTCC-"$CC"}
19494:
1.1.1.5 ! root 19495: # If no C compiler flags were specified, use CFLAGS.
! 19496: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 19497:
1.1 root 19498: # Allow CC to be a program name with arguments.
19499: compiler=$CC
19500:
19501:
1.1.1.5 ! root 19502: # save warnings/boilerplate of simple test code
! 19503: ac_outfile=conftest.$ac_objext
! 19504: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 19505: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 19506: _lt_compiler_boilerplate=`cat conftest.err`
! 19507: $rm conftest*
! 19508:
! 19509: ac_outfile=conftest.$ac_objext
! 19510: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 19511: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 19512: _lt_linker_boilerplate=`cat conftest.err`
! 19513: $rm conftest*
! 19514:
! 19515:
1.1 root 19516: # Allow CC to be a program name with arguments.
19517: lt_save_CC=$CC
19518: lt_save_LD=$LD
19519: lt_save_GCC=$GCC
19520: GCC=$GXX
19521: lt_save_with_gnu_ld=$with_gnu_ld
19522: lt_save_path_LD=$lt_cv_path_LD
19523: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19524: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19525: else
1.1.1.5 ! root 19526: $as_unset lt_cv_prog_gnu_ld
1.1 root 19527: fi
19528: if test -n "${lt_cv_path_LDCXX+set}"; then
19529: lt_cv_path_LD=$lt_cv_path_LDCXX
19530: else
1.1.1.5 ! root 19531: $as_unset lt_cv_path_LD
1.1 root 19532: fi
19533: test -z "${LDCXX+set}" || LD=$LDCXX
19534: CC=${CXX-"c++"}
19535: compiler=$CC
19536: compiler_CXX=$CC
1.1.1.5 ! root 19537: for cc_temp in $compiler""; do
! 19538: case $cc_temp in
! 19539: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 19540: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 19541: \-*) ;;
! 19542: *) break;;
! 19543: esac
! 19544: done
! 19545: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 19546:
1.1 root 19547:
19548: # We don't want -fno-exception wen compiling C++ code, so set the
19549: # no_builtin_flag separately
19550: if test "$GXX" = yes; then
19551: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19552: else
19553: lt_prog_compiler_no_builtin_flag_CXX=
19554: fi
19555:
19556: if test "$GXX" = yes; then
19557: # Set up default GNU C++ configuration
19558:
19559:
1.1.1.5 ! root 19560: # Check whether --with-gnu-ld was given.
1.1 root 19561: if test "${with_gnu_ld+set}" = set; then
1.1.1.5 ! root 19562: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 root 19563: else
19564: with_gnu_ld=no
1.1.1.5 ! root 19565: fi
! 19566:
1.1 root 19567: ac_prog=ld
19568: if test "$GCC" = yes; then
19569: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.5 ! root 19570: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 19571: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 root 19572: case $host in
19573: *-*-mingw*)
19574: # gcc leaves a trailing carriage return which upsets mingw
19575: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19576: *)
19577: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19578: esac
19579: case $ac_prog in
19580: # Accept absolute paths.
19581: [\\/]* | ?:[\\/]*)
19582: re_direlt='/[^/][^/]*/\.\./'
1.1.1.5 ! root 19583: # Canonicalize the pathname of ld
1.1 root 19584: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
19585: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19586: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
19587: done
19588: test -z "$LD" && LD="$ac_prog"
19589: ;;
19590: "")
19591: # If it fails, then pretend we aren't using GCC.
19592: ac_prog=ld
19593: ;;
19594: *)
19595: # If it is relative, then search for the first ld in PATH.
19596: with_gnu_ld=unknown
19597: ;;
19598: esac
19599: elif test "$with_gnu_ld" = yes; then
1.1.1.5 ! root 19600: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 19601: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 root 19602: else
1.1.1.5 ! root 19603: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 19604: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 root 19605: fi
19606: if test "${lt_cv_path_LD+set}" = set; then
19607: echo $ECHO_N "(cached) $ECHO_C" >&6
19608: else
19609: if test -z "$LD"; then
19610: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19611: for ac_dir in $PATH; do
19612: IFS="$lt_save_ifs"
19613: test -z "$ac_dir" && ac_dir=.
19614: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19615: lt_cv_path_LD="$ac_dir/$ac_prog"
19616: # Check to see if the program is GNU ld. I'd rather use --version,
1.1.1.5 ! root 19617: # but apparently some variants of GNU ld only accept -v.
1.1 root 19618: # Break only if it was the GNU/non-GNU ld that we prefer.
19619: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19620: *GNU* | *'with BFD'*)
19621: test "$with_gnu_ld" != no && break
19622: ;;
19623: *)
19624: test "$with_gnu_ld" != yes && break
19625: ;;
19626: esac
19627: fi
19628: done
19629: IFS="$lt_save_ifs"
19630: else
19631: lt_cv_path_LD="$LD" # Let the user override the test with a path.
19632: fi
19633: fi
19634:
19635: LD="$lt_cv_path_LD"
19636: if test -n "$LD"; then
1.1.1.5 ! root 19637: { echo "$as_me:$LINENO: result: $LD" >&5
! 19638: echo "${ECHO_T}$LD" >&6; }
1.1 root 19639: else
1.1.1.5 ! root 19640: { echo "$as_me:$LINENO: result: no" >&5
! 19641: echo "${ECHO_T}no" >&6; }
1.1 root 19642: fi
19643: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19644: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19645: { (exit 1); exit 1; }; }
1.1.1.5 ! root 19646: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 19647: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.1 root 19648: if test "${lt_cv_prog_gnu_ld+set}" = set; then
19649: echo $ECHO_N "(cached) $ECHO_C" >&6
19650: else
1.1.1.5 ! root 19651: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 19652: case `$LD -v 2>&1 </dev/null` in
1.1 root 19653: *GNU* | *'with BFD'*)
19654: lt_cv_prog_gnu_ld=yes
19655: ;;
19656: *)
19657: lt_cv_prog_gnu_ld=no
19658: ;;
19659: esac
19660: fi
1.1.1.5 ! root 19661: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 19662: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 root 19663: with_gnu_ld=$lt_cv_prog_gnu_ld
19664:
19665:
19666:
19667: # Check if GNU C++ uses GNU ld as the underlying linker, since the
19668: # archiving commands below assume that GNU ld is being used.
19669: if test "$with_gnu_ld" = yes; then
19670: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19671: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19672:
19673: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19674: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19675:
19676: # If archive_cmds runs LD, not CC, wlarc should be empty
19677: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19678: # investigate it a little bit more. (MM)
19679: wlarc='${wl}'
19680:
19681: # ancient GNU ld didn't support --whole-archive et. al.
19682: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
19683: grep 'no-whole-archive' > /dev/null; then
19684: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19685: else
19686: whole_archive_flag_spec_CXX=
19687: fi
19688: else
19689: with_gnu_ld=no
19690: wlarc=
19691:
19692: # A generic and very simple default shared library creation
19693: # command for GNU C++ for the case where it uses the native
19694: # linker, instead of GNU ld. If possible, this setting should
19695: # overridden to take advantage of the native linker features on
19696: # the platform it is being used on.
1.1.1.5 ! root 19697: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.1 root 19698: fi
19699:
19700: # Commands to make compiler produce verbose output that lists
19701: # what "hidden" libraries, object files and flags are used when
19702: # linking a shared library.
19703: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19704:
19705: else
19706: GXX=no
19707: with_gnu_ld=no
19708: wlarc=
19709: fi
19710:
19711: # PORTME: fill in a description of your system's C++ link characteristics
1.1.1.5 ! root 19712: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 19713: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 19714: ld_shlibs_CXX=yes
19715: case $host_os in
19716: aix3*)
19717: # FIXME: insert proper C++ library support
19718: ld_shlibs_CXX=no
19719: ;;
19720: aix4* | aix5*)
19721: if test "$host_cpu" = ia64; then
19722: # On IA64, the linker does run time linking by default, so we don't
19723: # have to do anything special.
19724: aix_use_runtimelinking=no
19725: exp_sym_flag='-Bexport'
19726: no_entry_flag=""
19727: else
19728: aix_use_runtimelinking=no
19729:
19730: # Test if we are trying to use run time linking or normal
19731: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19732: # need to do runtime linking.
19733: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19734: for ld_flag in $LDFLAGS; do
19735: case $ld_flag in
19736: *-brtl*)
19737: aix_use_runtimelinking=yes
19738: break
19739: ;;
19740: esac
19741: done
1.1.1.5 ! root 19742: ;;
1.1 root 19743: esac
19744:
19745: exp_sym_flag='-bexport'
19746: no_entry_flag='-bnoentry'
19747: fi
19748:
19749: # When large executables or shared objects are built, AIX ld can
19750: # have problems creating the table of contents. If linking a library
19751: # or program results in "error TOC overflow" add -mminimal-toc to
19752: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19753: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19754:
19755: archive_cmds_CXX=''
19756: hardcode_direct_CXX=yes
19757: hardcode_libdir_separator_CXX=':'
19758: link_all_deplibs_CXX=yes
19759:
19760: if test "$GXX" = yes; then
1.1.1.5 ! root 19761: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 19762: # We only want to do this on AIX 4.2 and lower, the check
19763: # below for broken collect2 doesn't work under 4.3+
19764: collect2name=`${CC} -print-prog-name=collect2`
19765: if test -f "$collect2name" && \
19766: strings "$collect2name" | grep resolve_lib_name >/dev/null
19767: then
19768: # We have reworked collect2
1.1.1.5 ! root 19769: :
1.1 root 19770: else
19771: # We have old collect2
19772: hardcode_direct_CXX=unsupported
19773: # It fails to find uninstalled libraries when the uninstalled
19774: # path is not listed in the libpath. Setting hardcode_minus_L
19775: # to unsupported forces relinking
19776: hardcode_minus_L_CXX=yes
19777: hardcode_libdir_flag_spec_CXX='-L$libdir'
19778: hardcode_libdir_separator_CXX=
19779: fi
1.1.1.5 ! root 19780: ;;
1.1 root 19781: esac
19782: shared_flag='-shared'
1.1.1.5 ! root 19783: if test "$aix_use_runtimelinking" = yes; then
! 19784: shared_flag="$shared_flag "'${wl}-G'
! 19785: fi
1.1 root 19786: else
19787: # not using gcc
19788: if test "$host_cpu" = ia64; then
19789: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19790: # chokes on -Wl,-G. The following line is correct:
19791: shared_flag='-G'
19792: else
19793: if test "$aix_use_runtimelinking" = yes; then
19794: shared_flag='${wl}-G'
19795: else
19796: shared_flag='${wl}-bM:SRE'
19797: fi
19798: fi
19799: fi
19800:
19801: # It seems that -bexpall does not export symbols beginning with
19802: # underscore (_), so it is better to generate a list of symbols to export.
19803: always_export_symbols_CXX=yes
19804: if test "$aix_use_runtimelinking" = yes; then
19805: # Warning - without using the other runtime loading flags (-brtl),
19806: # -berok will link without error, but may produce a broken library.
19807: allow_undefined_flag_CXX='-berok'
19808: # Determine the default libpath from the value encoded in an empty executable.
19809: cat >conftest.$ac_ext <<_ACEOF
19810: /* confdefs.h. */
19811: _ACEOF
19812: cat confdefs.h >>conftest.$ac_ext
19813: cat >>conftest.$ac_ext <<_ACEOF
19814: /* end confdefs.h. */
19815:
19816: int
19817: main ()
19818: {
19819:
19820: ;
19821: return 0;
19822: }
19823: _ACEOF
19824: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 19825: if { (ac_try="$ac_link"
! 19826: case "(($ac_try" in
! 19827: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19828: *) ac_try_echo=$ac_try;;
! 19829: esac
! 19830: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19831: (eval "$ac_link") 2>conftest.er1
1.1 root 19832: ac_status=$?
1.1.1.5 ! root 19833: grep -v '^ *+' conftest.er1 >conftest.err
! 19834: rm -f conftest.er1
! 19835: cat conftest.err >&5
1.1 root 19836: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 19837: (exit $ac_status); } && {
! 19838: test -z "$ac_cxx_werror_flag" ||
! 19839: test ! -s conftest.err
! 19840: } && test -s conftest$ac_exeext &&
! 19841: $as_test_x conftest$ac_exeext; then
! 19842:
! 19843: lt_aix_libpath_sed='
! 19844: /Import File Strings/,/^$/ {
! 19845: /^0/ {
! 19846: s/^0 *\(.*\)$/\1/
! 19847: p
! 19848: }
! 19849: }'
! 19850: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 19851: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 19852: if test -z "$aix_libpath"; then
! 19853: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 19854: fi
1.1 root 19855: else
19856: echo "$as_me: failed program was:" >&5
19857: sed 's/^/| /' conftest.$ac_ext >&5
19858:
1.1.1.5 ! root 19859:
1.1 root 19860: fi
1.1.1.5 ! root 19861:
! 19862: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19863: conftest$ac_exeext conftest.$ac_ext
1.1 root 19864: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19865:
19866: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19867:
1.1.1.5 ! root 19868: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1 root 19869: else
19870: if test "$host_cpu" = ia64; then
19871: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19872: allow_undefined_flag_CXX="-z nodefs"
1.1.1.5 ! root 19873: archive_expsym_cmds_CXX="\$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"
1.1 root 19874: else
19875: # Determine the default libpath from the value encoded in an empty executable.
19876: cat >conftest.$ac_ext <<_ACEOF
19877: /* confdefs.h. */
19878: _ACEOF
19879: cat confdefs.h >>conftest.$ac_ext
19880: cat >>conftest.$ac_ext <<_ACEOF
19881: /* end confdefs.h. */
19882:
19883: int
19884: main ()
19885: {
19886:
19887: ;
19888: return 0;
19889: }
19890: _ACEOF
19891: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 19892: if { (ac_try="$ac_link"
! 19893: case "(($ac_try" in
! 19894: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19895: *) ac_try_echo=$ac_try;;
! 19896: esac
! 19897: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19898: (eval "$ac_link") 2>conftest.er1
1.1 root 19899: ac_status=$?
1.1.1.5 ! root 19900: grep -v '^ *+' conftest.er1 >conftest.err
! 19901: rm -f conftest.er1
! 19902: cat conftest.err >&5
1.1 root 19903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 19904: (exit $ac_status); } && {
! 19905: test -z "$ac_cxx_werror_flag" ||
! 19906: test ! -s conftest.err
! 19907: } && test -s conftest$ac_exeext &&
! 19908: $as_test_x conftest$ac_exeext; then
! 19909:
! 19910: lt_aix_libpath_sed='
! 19911: /Import File Strings/,/^$/ {
! 19912: /^0/ {
! 19913: s/^0 *\(.*\)$/\1/
! 19914: p
! 19915: }
! 19916: }'
! 19917: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 19918: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 19919: if test -z "$aix_libpath"; then
! 19920: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 19921: fi
1.1 root 19922: else
19923: echo "$as_me: failed program was:" >&5
19924: sed 's/^/| /' conftest.$ac_ext >&5
19925:
1.1.1.5 ! root 19926:
1.1 root 19927: fi
1.1.1.5 ! root 19928:
! 19929: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19930: conftest$ac_exeext conftest.$ac_ext
1.1 root 19931: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19932:
19933: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19934: # Warning - without using the other run time loading flags,
19935: # -berok will link without error, but may produce a broken library.
19936: no_undefined_flag_CXX=' ${wl}-bernotok'
19937: allow_undefined_flag_CXX=' ${wl}-berok'
19938: # Exported symbols can be pulled into shared objects from archives
1.1.1.5 ! root 19939: whole_archive_flag_spec_CXX='$convenience'
1.1 root 19940: archive_cmds_need_lc_CXX=yes
1.1.1.5 ! root 19941: # This is similar to how AIX traditionally builds its shared libraries.
! 19942: archive_expsym_cmds_CXX="\$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'
1.1 root 19943: fi
19944: fi
19945: ;;
1.1.1.5 ! root 19946:
! 19947: beos*)
! 19948: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 19949: allow_undefined_flag_CXX=unsupported
! 19950: # Joseph Beckenbach <[email protected]> says some releases of gcc
! 19951: # support --undefined. This deserves some investigation. FIXME
! 19952: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 19953: else
! 19954: ld_shlibs_CXX=no
! 19955: fi
! 19956: ;;
! 19957:
1.1 root 19958: chorus*)
19959: case $cc_basename in
19960: *)
19961: # FIXME: insert proper C++ library support
19962: ld_shlibs_CXX=no
19963: ;;
19964: esac
19965: ;;
19966:
19967: cygwin* | mingw* | pw32*)
19968: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19969: # as there is no search path for DLLs.
19970: hardcode_libdir_flag_spec_CXX='-L$libdir'
19971: allow_undefined_flag_CXX=unsupported
19972: always_export_symbols_CXX=no
19973: enable_shared_with_static_runtimes_CXX=yes
19974:
19975: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.5 ! root 19976: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 19977: # If the export-symbols file already is a .def file (1st line
19978: # is EXPORTS), use it as is; otherwise, prepend...
19979: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19980: cp $export_symbols $output_objdir/$soname.def;
19981: else
19982: echo EXPORTS > $output_objdir/$soname.def;
19983: cat $export_symbols >> $output_objdir/$soname.def;
19984: fi~
1.1.1.5 ! root 19985: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 19986: else
19987: ld_shlibs_CXX=no
19988: fi
19989: ;;
1.1.1.5 ! root 19990: darwin* | rhapsody*)
! 19991: case $host_os in
! 19992: rhapsody* | darwin1.[012])
! 19993: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
! 19994: ;;
! 19995: *) # Darwin 1.3 on
! 19996: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 19997: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 19998: else
! 19999: case ${MACOSX_DEPLOYMENT_TARGET} in
! 20000: 10.[012])
! 20001: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 20002: ;;
! 20003: 10.*)
! 20004: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
! 20005: ;;
! 20006: esac
! 20007: fi
! 20008: ;;
! 20009: esac
! 20010: archive_cmds_need_lc_CXX=no
! 20011: hardcode_direct_CXX=no
! 20012: hardcode_automatic_CXX=yes
! 20013: hardcode_shlibpath_var_CXX=unsupported
! 20014: whole_archive_flag_spec_CXX=''
! 20015: link_all_deplibs_CXX=yes
! 20016:
! 20017: if test "$GXX" = yes ; then
! 20018: lt_int_apple_cc_single_mod=no
! 20019: output_verbose_link_cmd='echo'
! 20020: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
! 20021: lt_int_apple_cc_single_mod=yes
1.1 root 20022: fi
20023: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1.1.5 ! root 20024: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 20025: else
! 20026: archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 20027: fi
! 20028: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 20029: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 20030: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 20031: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 20032: else
! 20033: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 20034: fi
! 20035: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 root 20036: else
1.1.1.5 ! root 20037: case $cc_basename in
! 20038: xlc*)
! 20039: output_verbose_link_cmd='echo'
! 20040: archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 20041: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 20042: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 20043: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 20044: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 20045: ;;
! 20046: *)
! 20047: ld_shlibs_CXX=no
! 20048: ;;
! 20049: esac
1.1 root 20050: fi
1.1.1.5 ! root 20051: ;;
1.1 root 20052:
20053: dgux*)
20054: case $cc_basename in
1.1.1.5 ! root 20055: ec++*)
1.1 root 20056: # FIXME: insert proper C++ library support
20057: ld_shlibs_CXX=no
20058: ;;
1.1.1.5 ! root 20059: ghcx*)
1.1 root 20060: # Green Hills C++ Compiler
20061: # FIXME: insert proper C++ library support
20062: ld_shlibs_CXX=no
20063: ;;
20064: *)
20065: # FIXME: insert proper C++ library support
20066: ld_shlibs_CXX=no
20067: ;;
20068: esac
20069: ;;
1.1.1.5 ! root 20070: freebsd[12]*)
1.1 root 20071: # C++ shared libraries reported to be fairly broken before switch to ELF
20072: ld_shlibs_CXX=no
20073: ;;
20074: freebsd-elf*)
20075: archive_cmds_need_lc_CXX=no
20076: ;;
1.1.1.5 ! root 20077: freebsd* | dragonfly*)
1.1 root 20078: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20079: # conventions
20080: ld_shlibs_CXX=yes
20081: ;;
20082: gnu*)
20083: ;;
20084: hpux9*)
20085: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20086: hardcode_libdir_separator_CXX=:
20087: export_dynamic_flag_spec_CXX='${wl}-E'
20088: hardcode_direct_CXX=yes
20089: hardcode_minus_L_CXX=yes # Not in the search PATH,
20090: # but as the default
20091: # location of the library.
20092:
20093: case $cc_basename in
1.1.1.5 ! root 20094: CC*)
1.1 root 20095: # FIXME: insert proper C++ library support
20096: ld_shlibs_CXX=no
20097: ;;
1.1.1.5 ! root 20098: aCC*)
1.1 root 20099: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20100: # Commands to make compiler produce verbose output that lists
20101: # what "hidden" libraries, object files and flags are used when
20102: # linking a shared library.
20103: #
20104: # There doesn't appear to be a way to prevent this compiler from
20105: # explicitly linking system object files so we need to strip them
20106: # from the output so that they don't get included in the library
20107: # dependencies.
1.1.1.5 ! root 20108: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.1 root 20109: ;;
20110: *)
20111: if test "$GXX" = yes; then
20112: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20113: else
20114: # FIXME: insert proper C++ library support
20115: ld_shlibs_CXX=no
20116: fi
20117: ;;
20118: esac
20119: ;;
20120: hpux10*|hpux11*)
20121: if test $with_gnu_ld = no; then
1.1.1.5 ! root 20122: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 20123: hardcode_libdir_separator_CXX=:
! 20124:
! 20125: case $host_cpu in
! 20126: hppa*64*|ia64*) ;;
1.1 root 20127: *)
20128: export_dynamic_flag_spec_CXX='${wl}-E'
20129: ;;
20130: esac
20131: fi
1.1.1.5 ! root 20132: case $host_cpu in
! 20133: hppa*64*|ia64*)
1.1 root 20134: hardcode_direct_CXX=no
20135: hardcode_shlibpath_var_CXX=no
20136: ;;
20137: *)
20138: hardcode_direct_CXX=yes
20139: hardcode_minus_L_CXX=yes # Not in the search PATH,
20140: # but as the default
20141: # location of the library.
20142: ;;
20143: esac
20144:
20145: case $cc_basename in
1.1.1.5 ! root 20146: CC*)
1.1 root 20147: # FIXME: insert proper C++ library support
20148: ld_shlibs_CXX=no
20149: ;;
1.1.1.5 ! root 20150: aCC*)
! 20151: case $host_cpu in
! 20152: hppa*64*)
! 20153: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 20154: ;;
! 20155: ia64*)
! 20156: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 20157: ;;
20158: *)
20159: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20160: ;;
20161: esac
20162: # Commands to make compiler produce verbose output that lists
20163: # what "hidden" libraries, object files and flags are used when
20164: # linking a shared library.
20165: #
20166: # There doesn't appear to be a way to prevent this compiler from
20167: # explicitly linking system object files so we need to strip them
20168: # from the output so that they don't get included in the library
20169: # dependencies.
20170: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20171: ;;
20172: *)
20173: if test "$GXX" = yes; then
20174: if test $with_gnu_ld = no; then
1.1.1.5 ! root 20175: case $host_cpu in
! 20176: hppa*64*)
! 20177: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 20178: ;;
! 20179: ia64*)
! 20180: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 20181: ;;
20182: *)
20183: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20184: ;;
20185: esac
20186: fi
20187: else
20188: # FIXME: insert proper C++ library support
20189: ld_shlibs_CXX=no
20190: fi
20191: ;;
20192: esac
20193: ;;
1.1.1.5 ! root 20194: interix[3-9]*)
! 20195: hardcode_direct_CXX=no
! 20196: hardcode_shlibpath_var_CXX=no
! 20197: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 20198: export_dynamic_flag_spec_CXX='${wl}-E'
! 20199: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 20200: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 20201: # default) and relocated if they conflict, which is a slow very memory
! 20202: # consuming and fragmenting process. To avoid this, we pick a random,
! 20203: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 20204: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 20205: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 20206: archive_expsym_cmds_CXX='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'
! 20207: ;;
1.1 root 20208: irix5* | irix6*)
20209: case $cc_basename in
1.1.1.5 ! root 20210: CC*)
1.1 root 20211: # SGI C++
1.1.1.5 ! root 20212: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1 root 20213:
20214: # Archives containing C++ object files must be created using
20215: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20216: # necessary to make sure instantiated templates are included
20217: # in the archive.
20218: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20219: ;;
20220: *)
20221: if test "$GXX" = yes; then
20222: if test "$with_gnu_ld" = no; then
1.1.1.5 ! root 20223: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1 root 20224: else
20225: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
20226: fi
20227: fi
20228: link_all_deplibs_CXX=yes
20229: ;;
20230: esac
20231: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20232: hardcode_libdir_separator_CXX=:
20233: ;;
1.1.1.5 ! root 20234: linux* | k*bsd*-gnu)
1.1 root 20235: case $cc_basename in
1.1.1.5 ! root 20236: KCC*)
1.1 root 20237: # Kuck and Associates, Inc. (KAI) C++ Compiler
20238:
20239: # KCC will only create a shared library if the output file
20240: # ends with ".so" (or ".sl" for HP-UX), so rename the library
20241: # to its proper name (with version) after linking.
20242: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20243: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
20244: # Commands to make compiler produce verbose output that lists
20245: # what "hidden" libraries, object files and flags are used when
20246: # linking a shared library.
20247: #
20248: # There doesn't appear to be a way to prevent this compiler from
20249: # explicitly linking system object files so we need to strip them
20250: # from the output so that they don't get included in the library
20251: # dependencies.
20252: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20253:
20254: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
20255: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20256:
20257: # Archives containing C++ object files must be created using
20258: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20259: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20260: ;;
1.1.1.5 ! root 20261: icpc*)
1.1 root 20262: # Intel C++
20263: with_gnu_ld=yes
1.1.1.5 ! root 20264: # version 8.0 and above of icpc choke on multiply defined symbols
! 20265: # if we add $predep_objects and $postdep_objects, however 7.1 and
! 20266: # earlier do not add the objects themselves.
! 20267: case `$CC -V 2>&1` in
! 20268: *"Version 7."*)
! 20269: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 20270: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 20271: ;;
! 20272: *) # Version 8.0 or newer
! 20273: tmp_idyn=
! 20274: case $host_cpu in
! 20275: ia64*) tmp_idyn=' -i_dynamic';;
! 20276: esac
! 20277: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 20278: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 20279: ;;
! 20280: esac
1.1 root 20281: archive_cmds_need_lc_CXX=no
20282: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20283: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20284: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20285: ;;
1.1.1.5 ! root 20286: pgCC*)
! 20287: # Portland Group C++ compiler
! 20288: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
! 20289: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
! 20290:
! 20291: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 20292: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 20293: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 20294: ;;
! 20295: cxx*)
1.1 root 20296: # Compaq C++
20297: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20298: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
20299:
20300: runpath_var=LD_RUN_PATH
20301: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20302: hardcode_libdir_separator_CXX=:
20303:
20304: # Commands to make compiler produce verbose output that lists
20305: # what "hidden" libraries, object files and flags are used when
20306: # linking a shared library.
20307: #
20308: # There doesn't appear to be a way to prevent this compiler from
20309: # explicitly linking system object files so we need to strip them
20310: # from the output so that they don't get included in the library
20311: # dependencies.
20312: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20313: ;;
1.1.1.5 ! root 20314: *)
! 20315: case `$CC -V 2>&1 | sed 5q` in
! 20316: *Sun\ C*)
! 20317: # Sun C++ 5.9
! 20318: no_undefined_flag_CXX=' -zdefs'
! 20319: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 20320: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
! 20321: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 20322: whole_archive_flag_spec_CXX='${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'
! 20323:
! 20324: # Not sure whether something based on
! 20325: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
! 20326: # would be better.
! 20327: output_verbose_link_cmd='echo'
! 20328:
! 20329: # Archives containing C++ object files must be created using
! 20330: # "CC -xar", where "CC" is the Sun C++ compiler. This is
! 20331: # necessary to make sure instantiated templates are included
! 20332: # in the archive.
! 20333: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
! 20334: ;;
! 20335: esac
! 20336: ;;
1.1 root 20337: esac
20338: ;;
20339: lynxos*)
20340: # FIXME: insert proper C++ library support
20341: ld_shlibs_CXX=no
20342: ;;
20343: m88k*)
20344: # FIXME: insert proper C++ library support
20345: ld_shlibs_CXX=no
20346: ;;
20347: mvs*)
20348: case $cc_basename in
1.1.1.5 ! root 20349: cxx*)
1.1 root 20350: # FIXME: insert proper C++ library support
20351: ld_shlibs_CXX=no
20352: ;;
20353: *)
20354: # FIXME: insert proper C++ library support
20355: ld_shlibs_CXX=no
20356: ;;
20357: esac
20358: ;;
20359: netbsd*)
20360: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20361: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20362: wlarc=
20363: hardcode_libdir_flag_spec_CXX='-R$libdir'
20364: hardcode_direct_CXX=yes
20365: hardcode_shlibpath_var_CXX=no
20366: fi
20367: # Workaround some broken pre-1.5 toolchains
20368: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20369: ;;
1.1.1.5 ! root 20370: openbsd2*)
! 20371: # C++ shared libraries are fairly broken
! 20372: ld_shlibs_CXX=no
! 20373: ;;
! 20374: openbsd*)
! 20375: if test -f /usr/libexec/ld.so; then
! 20376: hardcode_direct_CXX=yes
! 20377: hardcode_shlibpath_var_CXX=no
! 20378: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 20379: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 20380: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 20381: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
! 20382: export_dynamic_flag_spec_CXX='${wl}-E'
! 20383: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 20384: fi
! 20385: output_verbose_link_cmd='echo'
! 20386: else
! 20387: ld_shlibs_CXX=no
! 20388: fi
! 20389: ;;
1.1 root 20390: osf3*)
20391: case $cc_basename in
1.1.1.5 ! root 20392: KCC*)
1.1 root 20393: # Kuck and Associates, Inc. (KAI) C++ Compiler
20394:
20395: # KCC will only create a shared library if the output file
20396: # ends with ".so" (or ".sl" for HP-UX), so rename the library
20397: # to its proper name (with version) after linking.
20398: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20399:
20400: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20401: hardcode_libdir_separator_CXX=:
20402:
20403: # Archives containing C++ object files must be created using
20404: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20405: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20406:
20407: ;;
1.1.1.5 ! root 20408: RCC*)
1.1 root 20409: # Rational C++ 2.4.1
20410: # FIXME: insert proper C++ library support
20411: ld_shlibs_CXX=no
20412: ;;
1.1.1.5 ! root 20413: cxx*)
1.1 root 20414: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.5 ! root 20415: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1 root 20416:
20417: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20418: hardcode_libdir_separator_CXX=:
20419:
20420: # Commands to make compiler produce verbose output that lists
20421: # what "hidden" libraries, object files and flags are used when
20422: # linking a shared library.
20423: #
20424: # There doesn't appear to be a way to prevent this compiler from
20425: # explicitly linking system object files so we need to strip them
20426: # from the output so that they don't get included in the library
20427: # dependencies.
20428: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20429: ;;
20430: *)
20431: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20432: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.5 ! root 20433: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1 root 20434:
20435: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20436: hardcode_libdir_separator_CXX=:
20437:
20438: # Commands to make compiler produce verbose output that lists
20439: # what "hidden" libraries, object files and flags are used when
20440: # linking a shared library.
20441: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20442:
20443: else
20444: # FIXME: insert proper C++ library support
20445: ld_shlibs_CXX=no
20446: fi
20447: ;;
20448: esac
20449: ;;
20450: osf4* | osf5*)
20451: case $cc_basename in
1.1.1.5 ! root 20452: KCC*)
1.1 root 20453: # Kuck and Associates, Inc. (KAI) C++ Compiler
20454:
20455: # KCC will only create a shared library if the output file
20456: # ends with ".so" (or ".sl" for HP-UX), so rename the library
20457: # to its proper name (with version) after linking.
20458: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20459:
20460: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20461: hardcode_libdir_separator_CXX=:
20462:
20463: # Archives containing C++ object files must be created using
20464: # the KAI C++ compiler.
20465: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
20466: ;;
1.1.1.5 ! root 20467: RCC*)
1.1 root 20468: # Rational C++ 2.4.1
20469: # FIXME: insert proper C++ library support
20470: ld_shlibs_CXX=no
20471: ;;
1.1.1.5 ! root 20472: cxx*)
1.1 root 20473: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.1.1.5 ! root 20474: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.1 root 20475: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20476: echo "-hidden">> $lib.exp~
1.1.1.5 ! root 20477: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
1.1 root 20478: $rm $lib.exp'
20479:
20480: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20481: hardcode_libdir_separator_CXX=:
20482:
20483: # Commands to make compiler produce verbose output that lists
20484: # what "hidden" libraries, object files and flags are used when
20485: # linking a shared library.
20486: #
20487: # There doesn't appear to be a way to prevent this compiler from
20488: # explicitly linking system object files so we need to strip them
20489: # from the output so that they don't get included in the library
20490: # dependencies.
20491: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20492: ;;
20493: *)
20494: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20495: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.5 ! root 20496: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1 root 20497:
20498: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20499: hardcode_libdir_separator_CXX=:
20500:
20501: # Commands to make compiler produce verbose output that lists
20502: # what "hidden" libraries, object files and flags are used when
20503: # linking a shared library.
20504: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20505:
20506: else
20507: # FIXME: insert proper C++ library support
20508: ld_shlibs_CXX=no
20509: fi
20510: ;;
20511: esac
20512: ;;
20513: psos*)
20514: # FIXME: insert proper C++ library support
20515: ld_shlibs_CXX=no
20516: ;;
20517: sunos4*)
20518: case $cc_basename in
1.1.1.5 ! root 20519: CC*)
1.1 root 20520: # Sun C++ 4.x
20521: # FIXME: insert proper C++ library support
20522: ld_shlibs_CXX=no
20523: ;;
1.1.1.5 ! root 20524: lcc*)
1.1 root 20525: # Lucid
20526: # FIXME: insert proper C++ library support
20527: ld_shlibs_CXX=no
20528: ;;
20529: *)
20530: # FIXME: insert proper C++ library support
20531: ld_shlibs_CXX=no
20532: ;;
20533: esac
20534: ;;
20535: solaris*)
20536: case $cc_basename in
1.1.1.5 ! root 20537: CC*)
1.1 root 20538: # Sun C++ 4.2, 5.x and Centerline C++
1.1.1.5 ! root 20539: archive_cmds_need_lc_CXX=yes
1.1 root 20540: no_undefined_flag_CXX=' -zdefs'
1.1.1.5 ! root 20541: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 20542: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.1.1.5 ! root 20543: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.1 root 20544:
20545: hardcode_libdir_flag_spec_CXX='-R$libdir'
20546: hardcode_shlibpath_var_CXX=no
20547: case $host_os in
1.1.1.5 ! root 20548: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1 root 20549: *)
1.1.1.5 ! root 20550: # The compiler driver will combine and reorder linker options,
! 20551: # but understands `-z linker_flag'.
1.1 root 20552: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1.5 ! root 20553: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1.1 root 20554: ;;
20555: esac
20556: link_all_deplibs_CXX=yes
20557:
1.1.1.5 ! root 20558: output_verbose_link_cmd='echo'
1.1 root 20559:
20560: # Archives containing C++ object files must be created using
20561: # "CC -xar", where "CC" is the Sun C++ compiler. This is
20562: # necessary to make sure instantiated templates are included
20563: # in the archive.
20564: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20565: ;;
1.1.1.5 ! root 20566: gcx*)
1.1 root 20567: # Green Hills C++ Compiler
20568: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20569:
20570: # The C++ compiler must be used to create the archive.
20571: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20572: ;;
20573: *)
20574: # GNU C++ compiler with Solaris linker
20575: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20576: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20577: if $CC --version | grep -v '^2\.7' > /dev/null; then
20578: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20579: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20580: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20581:
20582: # Commands to make compiler produce verbose output that lists
20583: # what "hidden" libraries, object files and flags are used when
20584: # linking a shared library.
20585: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20586: else
20587: # g++ 2.7 appears to require `-G' NOT `-shared' on this
20588: # platform.
20589: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20590: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20591: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20592:
20593: # Commands to make compiler produce verbose output that lists
20594: # what "hidden" libraries, object files and flags are used when
20595: # linking a shared library.
20596: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20597: fi
20598:
20599: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1.1.1.5 ! root 20600: case $host_os in
! 20601: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 20602: *)
! 20603: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 20604: ;;
! 20605: esac
1.1 root 20606: fi
20607: ;;
20608: esac
20609: ;;
1.1.1.5 ! root 20610: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 20611: no_undefined_flag_CXX='${wl}-z,text'
1.1 root 20612: archive_cmds_need_lc_CXX=no
1.1.1.5 ! root 20613: hardcode_shlibpath_var_CXX=no
! 20614: runpath_var='LD_RUN_PATH'
! 20615:
1.1 root 20616: case $cc_basename in
1.1.1.5 ! root 20617: CC*)
! 20618: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20619: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 20620: ;;
20621: *)
1.1.1.5 ! root 20622: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20623: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 20624: ;;
20625: esac
20626: ;;
1.1.1.5 ! root 20627: sysv5* | sco3.2v5* | sco5v6*)
! 20628: # Note: We can NOT use -z defs as we might desire, because we do not
! 20629: # link with -lc, and that would cause any symbols used from libc to
! 20630: # always be unresolved, which means just about no library would
! 20631: # ever link correctly. If we're not using GNU ld we use -z text
! 20632: # though, which does catch some bad symbols but isn't as heavy-handed
! 20633: # as -z defs.
! 20634: # For security reasons, it is highly recommended that you always
! 20635: # use absolute paths for naming shared libraries, and exclude the
! 20636: # DT_RUNPATH tag from executables and libraries. But doing so
! 20637: # requires that you compile everything twice, which is a pain.
! 20638: # So that behaviour is only enabled if SCOABSPATH is set to a
! 20639: # non-empty value in the environment. Most likely only useful for
! 20640: # creating official distributions of packages.
! 20641: # This is a hack until libtool officially supports absolute path
! 20642: # names for shared libraries.
! 20643: no_undefined_flag_CXX='${wl}-z,text'
! 20644: allow_undefined_flag_CXX='${wl}-z,nodefs'
! 20645: archive_cmds_need_lc_CXX=no
! 20646: hardcode_shlibpath_var_CXX=no
! 20647: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 20648: hardcode_libdir_separator_CXX=':'
! 20649: link_all_deplibs_CXX=yes
! 20650: export_dynamic_flag_spec_CXX='${wl}-Bexport'
! 20651: runpath_var='LD_RUN_PATH'
! 20652:
! 20653: case $cc_basename in
! 20654: CC*)
! 20655: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20656: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20657: ;;
! 20658: *)
! 20659: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20660: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 20661: ;;
! 20662: esac
! 20663: ;;
! 20664: tandem*)
! 20665: case $cc_basename in
! 20666: NCC*)
! 20667: # NonStop-UX NCC 3.20
! 20668: # FIXME: insert proper C++ library support
! 20669: ld_shlibs_CXX=no
! 20670: ;;
! 20671: *)
! 20672: # FIXME: insert proper C++ library support
! 20673: ld_shlibs_CXX=no
! 20674: ;;
! 20675: esac
! 20676: ;;
! 20677: vxworks*)
! 20678: # FIXME: insert proper C++ library support
! 20679: ld_shlibs_CXX=no
! 20680: ;;
! 20681: *)
! 20682: # FIXME: insert proper C++ library support
1.1 root 20683: ld_shlibs_CXX=no
20684: ;;
20685: esac
1.1.1.5 ! root 20686: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 20687: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 root 20688: test "$ld_shlibs_CXX" = no && can_build_shared=no
20689:
20690: GCC_CXX="$GXX"
20691: LD_CXX="$LD"
20692:
20693:
20694: cat > conftest.$ac_ext <<EOF
20695: class Foo
20696: {
20697: public:
20698: Foo (void) { a = 0; }
20699: private:
20700: int a;
20701: };
20702: EOF
20703:
20704: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705: (eval $ac_compile) 2>&5
20706: ac_status=$?
20707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708: (exit $ac_status); }; then
20709: # Parse the compiler output and extract the necessary
20710: # objects, libraries and library flags.
20711:
20712: # Sentinel used to keep track of whether or not we are before
20713: # the conftest object file.
20714: pre_test_object_deps_done=no
20715:
20716: # The `*' in the case matches for architectures that use `case' in
20717: # $output_verbose_cmd can trigger glob expansion during the loop
20718: # eval without this substitution.
1.1.1.5 ! root 20719: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1.1 root 20720:
20721: for p in `eval $output_verbose_link_cmd`; do
20722: case $p in
20723:
20724: -L* | -R* | -l*)
20725: # Some compilers place space between "-{L,R}" and the path.
20726: # Remove the space.
20727: if test $p = "-L" \
20728: || test $p = "-R"; then
20729: prev=$p
20730: continue
20731: else
20732: prev=
20733: fi
20734:
20735: if test "$pre_test_object_deps_done" = no; then
20736: case $p in
20737: -L* | -R*)
20738: # Internal compiler library paths should come after those
20739: # provided the user. The postdeps already come after the
20740: # user supplied libs so there is no need to process them.
20741: if test -z "$compiler_lib_search_path_CXX"; then
20742: compiler_lib_search_path_CXX="${prev}${p}"
20743: else
20744: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20745: fi
20746: ;;
20747: # The "-l" case would never come before the object being
20748: # linked, so don't bother handling this case.
20749: esac
20750: else
20751: if test -z "$postdeps_CXX"; then
20752: postdeps_CXX="${prev}${p}"
20753: else
20754: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20755: fi
20756: fi
20757: ;;
20758:
20759: *.$objext)
20760: # This assumes that the test object file only shows up
20761: # once in the compiler output.
20762: if test "$p" = "conftest.$objext"; then
20763: pre_test_object_deps_done=yes
20764: continue
20765: fi
20766:
20767: if test "$pre_test_object_deps_done" = no; then
20768: if test -z "$predep_objects_CXX"; then
20769: predep_objects_CXX="$p"
20770: else
20771: predep_objects_CXX="$predep_objects_CXX $p"
20772: fi
20773: else
20774: if test -z "$postdep_objects_CXX"; then
20775: postdep_objects_CXX="$p"
20776: else
20777: postdep_objects_CXX="$postdep_objects_CXX $p"
20778: fi
20779: fi
20780: ;;
20781:
20782: *) ;; # Ignore the rest.
20783:
20784: esac
20785: done
20786:
20787: # Clean up.
20788: rm -f a.out a.exe
20789: else
20790: echo "libtool.m4: error: problem compiling CXX test program"
20791: fi
20792:
20793: $rm -f confest.$objext
20794:
1.1.1.5 ! root 20795: # PORTME: override above test on systems where it is broken
! 20796: case $host_os in
! 20797: interix[3-9]*)
! 20798: # Interix 3.5 installs completely hosed .la files for C++, so rather than
! 20799: # hack all around it, let's just trust "g++" to DTRT.
! 20800: predep_objects_CXX=
! 20801: postdep_objects_CXX=
! 20802: postdeps_CXX=
! 20803: ;;
! 20804:
! 20805: linux*)
! 20806: case `$CC -V 2>&1 | sed 5q` in
! 20807: *Sun\ C*)
! 20808: # Sun C++ 5.9
! 20809: #
! 20810: # The more standards-conforming stlport4 library is
! 20811: # incompatible with the Cstd library. Avoid specifying
! 20812: # it if it's in CXXFLAGS. Ignore libCrun as
! 20813: # -library=stlport4 depends on it.
! 20814: case " $CXX $CXXFLAGS " in
! 20815: *" -library=stlport4 "*)
! 20816: solaris_use_stlport4=yes
! 20817: ;;
! 20818: esac
! 20819: if test "$solaris_use_stlport4" != yes; then
! 20820: postdeps_CXX='-library=Cstd -library=Crun'
! 20821: fi
! 20822: ;;
! 20823: esac
! 20824: ;;
! 20825:
! 20826: solaris*)
! 20827: case $cc_basename in
! 20828: CC*)
! 20829: # The more standards-conforming stlport4 library is
! 20830: # incompatible with the Cstd library. Avoid specifying
! 20831: # it if it's in CXXFLAGS. Ignore libCrun as
! 20832: # -library=stlport4 depends on it.
! 20833: case " $CXX $CXXFLAGS " in
! 20834: *" -library=stlport4 "*)
! 20835: solaris_use_stlport4=yes
! 20836: ;;
! 20837: esac
! 20838:
! 20839: # Adding this requires a known-good setup of shared libraries for
! 20840: # Sun compiler versions before 5.6, else PIC objects from an old
! 20841: # archive will be linked into the output, leading to subtle bugs.
! 20842: if test "$solaris_use_stlport4" != yes; then
! 20843: postdeps_CXX='-library=Cstd -library=Crun'
! 20844: fi
! 20845: ;;
! 20846: esac
! 20847: ;;
! 20848: esac
! 20849:
! 20850:
1.1 root 20851: case " $postdeps_CXX " in
20852: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20853: esac
20854:
20855: lt_prog_compiler_wl_CXX=
20856: lt_prog_compiler_pic_CXX=
20857: lt_prog_compiler_static_CXX=
20858:
1.1.1.5 ! root 20859: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 20860: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 20861:
20862: # C++ specific cases for pic, static, wl, etc.
20863: if test "$GXX" = yes; then
20864: lt_prog_compiler_wl_CXX='-Wl,'
20865: lt_prog_compiler_static_CXX='-static'
20866:
20867: case $host_os in
20868: aix*)
20869: # All AIX code is PIC.
20870: if test "$host_cpu" = ia64; then
20871: # AIX 5 now supports IA64 processor
20872: lt_prog_compiler_static_CXX='-Bstatic'
20873: fi
20874: ;;
20875: amigaos*)
20876: # FIXME: we need at least 68020 code to build shared libraries, but
20877: # adding the `-m68020' flag to GCC prevents building anything better,
20878: # like `-m68040'.
20879: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20880: ;;
1.1.1.5 ! root 20881: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 20882: # PIC is the default for these OSes.
20883: ;;
1.1.1.5 ! root 20884: mingw* | cygwin* | os2* | pw32*)
1.1 root 20885: # This hack is so that the source file can tell whether it is being
20886: # built for inclusion in a dll (and should export symbols for example).
1.1.1.5 ! root 20887: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 20888: # (--disable-auto-import) libraries
1.1 root 20889: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20890: ;;
20891: darwin* | rhapsody*)
20892: # PIC is the default on this platform
20893: # Common symbols not allowed in MH_DYLIB files
20894: lt_prog_compiler_pic_CXX='-fno-common'
20895: ;;
20896: *djgpp*)
20897: # DJGPP does not support shared libraries at all
20898: lt_prog_compiler_pic_CXX=
20899: ;;
1.1.1.5 ! root 20900: interix[3-9]*)
! 20901: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 20902: # Instead, we relocate shared libraries at runtime.
! 20903: ;;
1.1 root 20904: sysv4*MP*)
20905: if test -d /usr/nec; then
20906: lt_prog_compiler_pic_CXX=-Kconform_pic
20907: fi
20908: ;;
20909: hpux*)
20910: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20911: # not for PA HP-UX.
1.1.1.5 ! root 20912: case $host_cpu in
1.1 root 20913: hppa*64*|ia64*)
20914: ;;
20915: *)
20916: lt_prog_compiler_pic_CXX='-fPIC'
20917: ;;
20918: esac
20919: ;;
20920: *)
20921: lt_prog_compiler_pic_CXX='-fPIC'
20922: ;;
20923: esac
20924: else
20925: case $host_os in
20926: aix4* | aix5*)
20927: # All AIX code is PIC.
20928: if test "$host_cpu" = ia64; then
20929: # AIX 5 now supports IA64 processor
20930: lt_prog_compiler_static_CXX='-Bstatic'
20931: else
20932: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20933: fi
20934: ;;
20935: chorus*)
20936: case $cc_basename in
1.1.1.5 ! root 20937: cxch68*)
1.1 root 20938: # Green Hills C++ Compiler
20939: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20940: ;;
20941: esac
20942: ;;
1.1.1.5 ! root 20943: darwin*)
! 20944: # PIC is the default on this platform
! 20945: # Common symbols not allowed in MH_DYLIB files
! 20946: case $cc_basename in
! 20947: xlc*)
! 20948: lt_prog_compiler_pic_CXX='-qnocommon'
! 20949: lt_prog_compiler_wl_CXX='-Wl,'
! 20950: ;;
! 20951: esac
! 20952: ;;
1.1 root 20953: dgux*)
20954: case $cc_basename in
1.1.1.5 ! root 20955: ec++*)
1.1 root 20956: lt_prog_compiler_pic_CXX='-KPIC'
20957: ;;
1.1.1.5 ! root 20958: ghcx*)
1.1 root 20959: # Green Hills C++ Compiler
20960: lt_prog_compiler_pic_CXX='-pic'
20961: ;;
20962: *)
20963: ;;
20964: esac
20965: ;;
1.1.1.5 ! root 20966: freebsd* | dragonfly*)
1.1 root 20967: # FreeBSD uses GNU C++
20968: ;;
20969: hpux9* | hpux10* | hpux11*)
20970: case $cc_basename in
1.1.1.5 ! root 20971: CC*)
1.1 root 20972: lt_prog_compiler_wl_CXX='-Wl,'
1.1.1.5 ! root 20973: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1.1 root 20974: if test "$host_cpu" != ia64; then
20975: lt_prog_compiler_pic_CXX='+Z'
20976: fi
20977: ;;
1.1.1.5 ! root 20978: aCC*)
1.1 root 20979: lt_prog_compiler_wl_CXX='-Wl,'
1.1.1.5 ! root 20980: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
! 20981: case $host_cpu in
1.1 root 20982: hppa*64*|ia64*)
20983: # +Z the default
20984: ;;
20985: *)
20986: lt_prog_compiler_pic_CXX='+Z'
20987: ;;
20988: esac
20989: ;;
20990: *)
20991: ;;
20992: esac
20993: ;;
1.1.1.5 ! root 20994: interix*)
! 20995: # This is c89, which is MS Visual C++ (no shared libs)
! 20996: # Anyone wants to do a port?
! 20997: ;;
1.1 root 20998: irix5* | irix6* | nonstopux*)
20999: case $cc_basename in
1.1.1.5 ! root 21000: CC*)
1.1 root 21001: lt_prog_compiler_wl_CXX='-Wl,'
21002: lt_prog_compiler_static_CXX='-non_shared'
21003: # CC pic flag -KPIC is the default.
21004: ;;
21005: *)
21006: ;;
21007: esac
21008: ;;
1.1.1.5 ! root 21009: linux* | k*bsd*-gnu)
1.1 root 21010: case $cc_basename in
1.1.1.5 ! root 21011: KCC*)
1.1 root 21012: # KAI C++ Compiler
21013: lt_prog_compiler_wl_CXX='--backend -Wl,'
21014: lt_prog_compiler_pic_CXX='-fPIC'
21015: ;;
1.1.1.5 ! root 21016: icpc* | ecpc*)
1.1 root 21017: # Intel C++
21018: lt_prog_compiler_wl_CXX='-Wl,'
21019: lt_prog_compiler_pic_CXX='-KPIC'
21020: lt_prog_compiler_static_CXX='-static'
21021: ;;
1.1.1.5 ! root 21022: pgCC*)
! 21023: # Portland Group C++ compiler.
! 21024: lt_prog_compiler_wl_CXX='-Wl,'
! 21025: lt_prog_compiler_pic_CXX='-fpic'
! 21026: lt_prog_compiler_static_CXX='-Bstatic'
! 21027: ;;
! 21028: cxx*)
1.1 root 21029: # Compaq C++
21030: # Make sure the PIC flag is empty. It appears that all Alpha
21031: # Linux and Compaq Tru64 Unix objects are PIC.
21032: lt_prog_compiler_pic_CXX=
21033: lt_prog_compiler_static_CXX='-non_shared'
21034: ;;
21035: *)
1.1.1.5 ! root 21036: case `$CC -V 2>&1 | sed 5q` in
! 21037: *Sun\ C*)
! 21038: # Sun C++ 5.9
! 21039: lt_prog_compiler_pic_CXX='-KPIC'
! 21040: lt_prog_compiler_static_CXX='-Bstatic'
! 21041: lt_prog_compiler_wl_CXX='-Qoption ld '
! 21042: ;;
! 21043: esac
1.1 root 21044: ;;
21045: esac
21046: ;;
21047: lynxos*)
21048: ;;
21049: m88k*)
21050: ;;
21051: mvs*)
21052: case $cc_basename in
1.1.1.5 ! root 21053: cxx*)
1.1 root 21054: lt_prog_compiler_pic_CXX='-W c,exportall'
21055: ;;
21056: *)
21057: ;;
21058: esac
21059: ;;
21060: netbsd*)
21061: ;;
21062: osf3* | osf4* | osf5*)
21063: case $cc_basename in
1.1.1.5 ! root 21064: KCC*)
1.1 root 21065: lt_prog_compiler_wl_CXX='--backend -Wl,'
21066: ;;
1.1.1.5 ! root 21067: RCC*)
1.1 root 21068: # Rational C++ 2.4.1
21069: lt_prog_compiler_pic_CXX='-pic'
21070: ;;
1.1.1.5 ! root 21071: cxx*)
1.1 root 21072: # Digital/Compaq C++
21073: lt_prog_compiler_wl_CXX='-Wl,'
21074: # Make sure the PIC flag is empty. It appears that all Alpha
21075: # Linux and Compaq Tru64 Unix objects are PIC.
21076: lt_prog_compiler_pic_CXX=
21077: lt_prog_compiler_static_CXX='-non_shared'
21078: ;;
21079: *)
21080: ;;
21081: esac
21082: ;;
21083: psos*)
21084: ;;
21085: solaris*)
21086: case $cc_basename in
1.1.1.5 ! root 21087: CC*)
1.1 root 21088: # Sun C++ 4.2, 5.x and Centerline C++
21089: lt_prog_compiler_pic_CXX='-KPIC'
21090: lt_prog_compiler_static_CXX='-Bstatic'
21091: lt_prog_compiler_wl_CXX='-Qoption ld '
21092: ;;
1.1.1.5 ! root 21093: gcx*)
1.1 root 21094: # Green Hills C++ Compiler
21095: lt_prog_compiler_pic_CXX='-PIC'
21096: ;;
21097: *)
21098: ;;
21099: esac
21100: ;;
21101: sunos4*)
21102: case $cc_basename in
1.1.1.5 ! root 21103: CC*)
1.1 root 21104: # Sun C++ 4.x
21105: lt_prog_compiler_pic_CXX='-pic'
21106: lt_prog_compiler_static_CXX='-Bstatic'
21107: ;;
1.1.1.5 ! root 21108: lcc*)
1.1 root 21109: # Lucid
21110: lt_prog_compiler_pic_CXX='-pic'
21111: ;;
21112: *)
21113: ;;
21114: esac
21115: ;;
21116: tandem*)
21117: case $cc_basename in
1.1.1.5 ! root 21118: NCC*)
1.1 root 21119: # NonStop-UX NCC 3.20
21120: lt_prog_compiler_pic_CXX='-KPIC'
21121: ;;
21122: *)
21123: ;;
21124: esac
21125: ;;
1.1.1.5 ! root 21126: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 21127: case $cc_basename in
! 21128: CC*)
! 21129: lt_prog_compiler_wl_CXX='-Wl,'
! 21130: lt_prog_compiler_pic_CXX='-KPIC'
! 21131: lt_prog_compiler_static_CXX='-Bstatic'
! 21132: ;;
! 21133: esac
1.1 root 21134: ;;
21135: vxworks*)
21136: ;;
21137: *)
21138: lt_prog_compiler_can_build_shared_CXX=no
21139: ;;
21140: esac
21141: fi
21142:
1.1.1.5 ! root 21143: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
! 21144: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
1.1 root 21145:
21146: #
21147: # Check to make sure the PIC flag actually works.
21148: #
21149: if test -n "$lt_prog_compiler_pic_CXX"; then
1.1.1.5 ! root 21150:
! 21151: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 21152: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
1.1 root 21153: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
21154: echo $ECHO_N "(cached) $ECHO_C" >&6
21155: else
21156: lt_prog_compiler_pic_works_CXX=no
21157: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 21158: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 21159: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21160: # Insert the option either (1) after the last *FLAGS variable, or
21161: # (2) before a word containing "conftest.", or (3) at the end.
21162: # Note that $ac_compile itself does not contain backslashes and begins
21163: # with a dollar sign (not a hyphen), so the echo should work correctly.
21164: # The option is referenced via a variable to avoid confusing sed.
21165: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 21166: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 21167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21168: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 21169: (eval echo "\"\$as_me:21169: $lt_compile\"" >&5)
1.1 root 21170: (eval "$lt_compile" 2>conftest.err)
21171: ac_status=$?
21172: cat conftest.err >&5
1.1.1.5 ! root 21173: echo "$as_me:21173: \$? = $ac_status" >&5
1.1 root 21174: if (exit $ac_status) && test -s "$ac_outfile"; then
21175: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 21176: # So say no if there are warnings other than the usual output.
! 21177: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 21178: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 21179: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 21180: lt_prog_compiler_pic_works_CXX=yes
21181: fi
21182: fi
21183: $rm conftest*
21184:
21185: fi
1.1.1.5 ! root 21186: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
! 21187: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
1.1 root 21188:
21189: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
21190: case $lt_prog_compiler_pic_CXX in
21191: "" | " "*) ;;
21192: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21193: esac
21194: else
21195: lt_prog_compiler_pic_CXX=
21196: lt_prog_compiler_can_build_shared_CXX=no
21197: fi
21198:
21199: fi
1.1.1.5 ! root 21200: case $host_os in
1.1 root 21201: # For platforms which do not support PIC, -DPIC is meaningless:
21202: *djgpp*)
21203: lt_prog_compiler_pic_CXX=
21204: ;;
21205: *)
21206: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21207: ;;
21208: esac
21209:
1.1.1.5 ! root 21210: #
! 21211: # Check to make sure the static flag actually works.
! 21212: #
! 21213: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
! 21214: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 21215: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 21216: if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
! 21217: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21218: else
! 21219: lt_prog_compiler_static_works_CXX=no
! 21220: save_LDFLAGS="$LDFLAGS"
! 21221: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 21222: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 21223: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 21224: # The linker can only warn and ignore the option if not recognized
! 21225: # So say no if there are warnings
! 21226: if test -s conftest.err; then
! 21227: # Append any errors to the config.log.
! 21228: cat conftest.err 1>&5
! 21229: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 21230: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 21231: if diff conftest.exp conftest.er2 >/dev/null; then
! 21232: lt_prog_compiler_static_works_CXX=yes
! 21233: fi
! 21234: else
! 21235: lt_prog_compiler_static_works_CXX=yes
! 21236: fi
! 21237: fi
! 21238: $rm conftest*
! 21239: LDFLAGS="$save_LDFLAGS"
! 21240:
! 21241: fi
! 21242: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
! 21243: echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
! 21244:
! 21245: if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
! 21246: :
! 21247: else
! 21248: lt_prog_compiler_static_CXX=
! 21249: fi
! 21250:
! 21251:
! 21252: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 21253: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 21254: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
21255: echo $ECHO_N "(cached) $ECHO_C" >&6
21256: else
21257: lt_cv_prog_compiler_c_o_CXX=no
21258: $rm -r conftest 2>/dev/null
21259: mkdir conftest
21260: cd conftest
21261: mkdir out
1.1.1.5 ! root 21262: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 21263:
21264: lt_compiler_flag="-o out/conftest2.$ac_objext"
21265: # Insert the option either (1) after the last *FLAGS variable, or
21266: # (2) before a word containing "conftest.", or (3) at the end.
21267: # Note that $ac_compile itself does not contain backslashes and begins
21268: # with a dollar sign (not a hyphen), so the echo should work correctly.
21269: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 21270: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 21271: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21272: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 21273: (eval echo "\"\$as_me:21273: $lt_compile\"" >&5)
1.1 root 21274: (eval "$lt_compile" 2>out/conftest.err)
21275: ac_status=$?
21276: cat out/conftest.err >&5
1.1.1.5 ! root 21277: echo "$as_me:21277: \$? = $ac_status" >&5
1.1 root 21278: if (exit $ac_status) && test -s out/conftest2.$ac_objext
21279: then
21280: # The compiler can only warn and ignore the option if not recognized
21281: # So say no if there are warnings
1.1.1.5 ! root 21282: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 21283: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 21284: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 21285: lt_cv_prog_compiler_c_o_CXX=yes
21286: fi
21287: fi
1.1.1.5 ! root 21288: chmod u+w . 2>&5
! 21289: $rm conftest*
! 21290: # SGI C++ compiler will create directory out/ii_files/ for
! 21291: # template instantiation
! 21292: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 21293: $rm out/* && rmdir out
1.1 root 21294: cd ..
21295: rmdir conftest
21296: $rm conftest*
21297:
21298: fi
1.1.1.5 ! root 21299: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 21300: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.1 root 21301:
21302:
21303: hard_links="nottested"
21304: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21305: # do not overwrite the value of need_locks provided by the user
1.1.1.5 ! root 21306: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 21307: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 21308: hard_links=yes
21309: $rm conftest*
21310: ln conftest.a conftest.b 2>/dev/null && hard_links=no
21311: touch conftest.a
21312: ln conftest.a conftest.b 2>&5 || hard_links=no
21313: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.5 ! root 21314: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 21315: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 21316: if test "$hard_links" = no; then
21317: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21318: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21319: need_locks=warn
21320: fi
21321: else
21322: need_locks=no
21323: fi
21324:
1.1.1.5 ! root 21325: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 21326: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 21327:
21328: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21329: case $host_os in
21330: aix4* | aix5*)
21331: # If we're using GNU nm, then we don't want the "-C" option.
21332: # -C means demangle to AIX nm, but means don't demangle with GNU nm
21333: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21334: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21335: else
21336: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21337: fi
21338: ;;
21339: pw32*)
21340: export_symbols_cmds_CXX="$ltdll_cmds"
21341: ;;
21342: cygwin* | mingw*)
1.1.1.5 ! root 21343: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 21344: ;;
21345: *)
21346: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21347: ;;
21348: esac
21349:
1.1.1.5 ! root 21350: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 21351: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 root 21352: test "$ld_shlibs_CXX" = no && can_build_shared=no
21353:
21354: #
21355: # Do we need to explicitly link libc?
21356: #
21357: case "x$archive_cmds_need_lc_CXX" in
21358: x|xyes)
21359: # Assume -lc should be added
21360: archive_cmds_need_lc_CXX=yes
21361:
21362: if test "$enable_shared" = yes && test "$GCC" = yes; then
21363: case $archive_cmds_CXX in
21364: *'~'*)
21365: # FIXME: we may have to deal with multi-command sequences.
21366: ;;
21367: '$CC '*)
21368: # Test whether the compiler implicitly links with -lc since on some
21369: # systems, -lgcc has to come before -lc. If gcc already passes -lc
21370: # to ld, don't add -lc before -lgcc.
1.1.1.5 ! root 21371: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 21372: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 21373: $rm conftest*
1.1.1.5 ! root 21374: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 21375:
21376: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21377: (eval $ac_compile) 2>&5
21378: ac_status=$?
21379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380: (exit $ac_status); } 2>conftest.err; then
21381: soname=conftest
21382: lib=conftest
21383: libobjs=conftest.$ac_objext
21384: deplibs=
21385: wl=$lt_prog_compiler_wl_CXX
1.1.1.5 ! root 21386: pic_flag=$lt_prog_compiler_pic_CXX
1.1 root 21387: compiler_flags=-v
21388: linker_flags=-v
21389: verstring=
21390: output_objdir=.
21391: libname=conftest
21392: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21393: allow_undefined_flag_CXX=
21394: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21395: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21396: ac_status=$?
21397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398: (exit $ac_status); }
21399: then
21400: archive_cmds_need_lc_CXX=no
21401: else
21402: archive_cmds_need_lc_CXX=yes
21403: fi
21404: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21405: else
21406: cat conftest.err 1>&5
21407: fi
21408: $rm conftest*
1.1.1.5 ! root 21409: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
! 21410: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
1.1 root 21411: ;;
21412: esac
21413: fi
21414: ;;
21415: esac
21416:
1.1.1.5 ! root 21417: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 21418: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 root 21419: library_names_spec=
21420: libname_spec='lib$name'
21421: soname_spec=
1.1.1.5 ! root 21422: shrext_cmds=".so"
1.1 root 21423: postinstall_cmds=
21424: postuninstall_cmds=
21425: finish_cmds=
21426: finish_eval=
21427: shlibpath_var=
21428: shlibpath_overrides_runpath=unknown
21429: version_type=none
21430: dynamic_linker="$host_os ld.so"
21431: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1.5 ! root 21432:
1.1 root 21433: need_lib_prefix=unknown
21434: hardcode_into_libs=no
21435:
21436: # when you set need_version to no, make sure it does not cause -set_version
21437: # flags to be left without arguments
21438: need_version=unknown
21439:
21440: case $host_os in
21441: aix3*)
21442: version_type=linux
21443: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21444: shlibpath_var=LIBPATH
21445:
21446: # AIX 3 has no versioning support, so we append a major version to the name.
21447: soname_spec='${libname}${release}${shared_ext}$major'
21448: ;;
21449:
21450: aix4* | aix5*)
21451: version_type=linux
21452: need_lib_prefix=no
21453: need_version=no
21454: hardcode_into_libs=yes
21455: if test "$host_cpu" = ia64; then
21456: # AIX 5 supports IA64
21457: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21458: shlibpath_var=LD_LIBRARY_PATH
21459: else
21460: # With GCC up to 2.95.x, collect2 would create an import file
21461: # for dependence libraries. The import file would start with
21462: # the line `#! .'. This would cause the generated library to
21463: # depend on `.', always an invalid library. This was fixed in
21464: # development snapshots of GCC prior to 3.0.
21465: case $host_os in
21466: aix4 | aix4.[01] | aix4.[01].*)
21467: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21468: echo ' yes '
21469: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21470: :
21471: else
21472: can_build_shared=no
21473: fi
21474: ;;
21475: esac
21476: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21477: # soname into executable. Probably we can add versioning support to
21478: # collect2, so additional links can be useful in future.
21479: if test "$aix_use_runtimelinking" = yes; then
21480: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21481: # instead of lib<name>.a to let people know that these are not
21482: # typical AIX shared libraries.
21483: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21484: else
21485: # We preserve .a as extension for shared libraries through AIX4.2
21486: # and later when we are not doing run time linking.
21487: library_names_spec='${libname}${release}.a $libname.a'
21488: soname_spec='${libname}${release}${shared_ext}$major'
21489: fi
21490: shlibpath_var=LIBPATH
21491: fi
21492: ;;
21493:
21494: amigaos*)
21495: library_names_spec='$libname.ixlibrary $libname.a'
21496: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.5 ! root 21497: 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'
1.1 root 21498: ;;
21499:
21500: beos*)
21501: library_names_spec='${libname}${shared_ext}'
21502: dynamic_linker="$host_os ld.so"
21503: shlibpath_var=LIBRARY_PATH
21504: ;;
21505:
1.1.1.5 ! root 21506: bsdi[45]*)
1.1 root 21507: version_type=linux
21508: need_version=no
21509: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21510: soname_spec='${libname}${release}${shared_ext}$major'
21511: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21512: shlibpath_var=LD_LIBRARY_PATH
21513: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21514: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21515: # the default ld.so.conf also contains /usr/contrib/lib and
21516: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21517: # libtool to hard-code these into programs
21518: ;;
21519:
21520: cygwin* | mingw* | pw32*)
21521: version_type=windows
1.1.1.5 ! root 21522: shrext_cmds=".dll"
1.1 root 21523: need_version=no
21524: need_lib_prefix=no
21525:
21526: case $GCC,$host_os in
21527: yes,cygwin* | yes,mingw* | yes,pw32*)
21528: library_names_spec='$libname.dll.a'
21529: # DLL is installed to $(libdir)/../bin by postinstall_cmds
21530: postinstall_cmds='base_file=`basename \${file}`~
21531: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21532: dldir=$destdir/`dirname \$dlpath`~
21533: test -d \$dldir || mkdir -p \$dldir~
1.1.1.5 ! root 21534: $install_prog $dir/$dlname \$dldir/$dlname~
! 21535: chmod a+x \$dldir/$dlname'
1.1 root 21536: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21537: dlpath=$dir/\$dldll~
21538: $rm \$dlpath'
21539: shlibpath_overrides_runpath=yes
21540:
21541: case $host_os in
21542: cygwin*)
21543: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21544: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.5 ! root 21545: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 21546: ;;
21547: mingw*)
21548: # MinGW DLLs use traditional 'lib' prefix
21549: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21550: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21551: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21552: # It is most probably a Windows format PATH printed by
21553: # mingw gcc, but we are running on Cygwin. Gcc prints its search
21554: # path with ; separators, and with drive letters. We can handle the
21555: # drive letters (cygwin fileutils understands them), so leave them,
21556: # especially as we might pass files found there to a mingw objdump,
21557: # which wouldn't understand a cygwinified path. Ahh.
21558: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21559: else
21560: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21561: fi
21562: ;;
21563: pw32*)
21564: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.5 ! root 21565: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 21566: ;;
21567: esac
21568: ;;
21569:
21570: *)
21571: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21572: ;;
21573: esac
21574: dynamic_linker='Win32 ld.exe'
21575: # FIXME: first we should search . and the directory the executable is in
21576: shlibpath_var=PATH
21577: ;;
21578:
21579: darwin* | rhapsody*)
21580: dynamic_linker="$host_os dyld"
21581: version_type=darwin
21582: need_lib_prefix=no
21583: need_version=no
21584: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21585: soname_spec='${libname}${release}${major}$shared_ext'
21586: shlibpath_overrides_runpath=yes
21587: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.5 ! root 21588: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 21589:
1.1 root 21590: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21591: ;;
21592:
21593: dgux*)
21594: version_type=linux
21595: need_lib_prefix=no
21596: need_version=no
21597: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21598: soname_spec='${libname}${release}${shared_ext}$major'
21599: shlibpath_var=LD_LIBRARY_PATH
21600: ;;
21601:
21602: freebsd1*)
21603: dynamic_linker=no
21604: ;;
21605:
1.1.1.5 ! root 21606: freebsd* | dragonfly*)
! 21607: # DragonFly does not have aout. When/if they implement a new
! 21608: # versioning mechanism, adjust this.
! 21609: if test -x /usr/bin/objformat; then
! 21610: objformat=`/usr/bin/objformat`
! 21611: else
! 21612: case $host_os in
! 21613: freebsd[123]*) objformat=aout ;;
! 21614: *) objformat=elf ;;
! 21615: esac
! 21616: fi
1.1 root 21617: version_type=freebsd-$objformat
21618: case $version_type in
21619: freebsd-elf*)
21620: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21621: need_version=no
21622: need_lib_prefix=no
21623: ;;
21624: freebsd-*)
21625: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21626: need_version=yes
21627: ;;
21628: esac
21629: shlibpath_var=LD_LIBRARY_PATH
21630: case $host_os in
21631: freebsd2*)
21632: shlibpath_overrides_runpath=yes
21633: ;;
1.1.1.5 ! root 21634: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 21635: shlibpath_overrides_runpath=yes
21636: hardcode_into_libs=yes
21637: ;;
1.1.1.5 ! root 21638: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 21639: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 21640: shlibpath_overrides_runpath=no
21641: hardcode_into_libs=yes
21642: ;;
1.1.1.5 ! root 21643: *) # from 4.6 on, and DragonFly
! 21644: shlibpath_overrides_runpath=yes
! 21645: hardcode_into_libs=yes
! 21646: ;;
1.1 root 21647: esac
21648: ;;
21649:
21650: gnu*)
21651: version_type=linux
21652: need_lib_prefix=no
21653: need_version=no
21654: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21655: soname_spec='${libname}${release}${shared_ext}$major'
21656: shlibpath_var=LD_LIBRARY_PATH
21657: hardcode_into_libs=yes
21658: ;;
21659:
21660: hpux9* | hpux10* | hpux11*)
21661: # Give a soname corresponding to the major version so that dld.sl refuses to
21662: # link against other versions.
21663: version_type=sunos
21664: need_lib_prefix=no
21665: need_version=no
1.1.1.5 ! root 21666: case $host_cpu in
1.1 root 21667: ia64*)
1.1.1.5 ! root 21668: shrext_cmds='.so'
1.1 root 21669: hardcode_into_libs=yes
21670: dynamic_linker="$host_os dld.so"
21671: shlibpath_var=LD_LIBRARY_PATH
21672: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21674: soname_spec='${libname}${release}${shared_ext}$major'
21675: if test "X$HPUX_IA64_MODE" = X32; then
21676: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21677: else
21678: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21679: fi
21680: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21681: ;;
21682: hppa*64*)
1.1.1.5 ! root 21683: shrext_cmds='.sl'
1.1 root 21684: hardcode_into_libs=yes
21685: dynamic_linker="$host_os dld.sl"
21686: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21687: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21688: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689: soname_spec='${libname}${release}${shared_ext}$major'
21690: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21691: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21692: ;;
21693: *)
1.1.1.5 ! root 21694: shrext_cmds='.sl'
1.1 root 21695: dynamic_linker="$host_os dld.sl"
21696: shlibpath_var=SHLIB_PATH
21697: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699: soname_spec='${libname}${release}${shared_ext}$major'
21700: ;;
21701: esac
21702: # HP-UX runs *really* slowly unless shared libraries are mode 555.
21703: postinstall_cmds='chmod 555 $lib'
21704: ;;
21705:
1.1.1.5 ! root 21706: interix[3-9]*)
! 21707: version_type=linux
! 21708: need_lib_prefix=no
! 21709: need_version=no
! 21710: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 21711: soname_spec='${libname}${release}${shared_ext}$major'
! 21712: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 21713: shlibpath_var=LD_LIBRARY_PATH
! 21714: shlibpath_overrides_runpath=no
! 21715: hardcode_into_libs=yes
! 21716: ;;
! 21717:
1.1 root 21718: irix5* | irix6* | nonstopux*)
21719: case $host_os in
21720: nonstopux*) version_type=nonstopux ;;
21721: *)
21722: if test "$lt_cv_prog_gnu_ld" = yes; then
21723: version_type=linux
21724: else
21725: version_type=irix
21726: fi ;;
21727: esac
21728: need_lib_prefix=no
21729: need_version=no
21730: soname_spec='${libname}${release}${shared_ext}$major'
21731: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21732: case $host_os in
21733: irix5* | nonstopux*)
21734: libsuff= shlibsuff=
21735: ;;
21736: *)
21737: case $LD in # libtool.m4 will add one of these switches to LD
21738: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21739: libsuff= shlibsuff= libmagic=32-bit;;
21740: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21741: libsuff=32 shlibsuff=N32 libmagic=N32;;
21742: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21743: libsuff=64 shlibsuff=64 libmagic=64-bit;;
21744: *) libsuff= shlibsuff= libmagic=never-match;;
21745: esac
21746: ;;
21747: esac
21748: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21749: shlibpath_overrides_runpath=no
21750: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21751: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21752: hardcode_into_libs=yes
21753: ;;
21754:
21755: # No shared lib support for Linux oldld, aout, or coff.
21756: linux*oldld* | linux*aout* | linux*coff*)
21757: dynamic_linker=no
21758: ;;
21759:
21760: # This must be Linux ELF.
1.1.1.5 ! root 21761: linux* | k*bsd*-gnu)
1.1 root 21762: version_type=linux
21763: need_lib_prefix=no
21764: need_version=no
21765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21766: soname_spec='${libname}${release}${shared_ext}$major'
21767: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21768: shlibpath_var=LD_LIBRARY_PATH
21769: shlibpath_overrides_runpath=no
21770: # This implies no fast_install, which is unacceptable.
21771: # Some rework will be needed to allow for fast_install
21772: # before this can be enabled.
21773: hardcode_into_libs=yes
21774:
1.1.1.5 ! root 21775: # Append ld.so.conf contents to the search path
! 21776: if test -f /etc/ld.so.conf; then
! 21777: 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' ' '`
! 21778: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 21779: fi
! 21780:
1.1 root 21781: # We used to test for /lib/ld.so.1 and disable shared libraries on
21782: # powerpc, because MkLinux only supported shared libraries with the
21783: # GNU dynamic linker. Since this was broken with cross compilers,
21784: # most powerpc-linux boxes support dynamic linking these days and
21785: # people can always --disable-shared, the test was removed, and we
21786: # assume the GNU/Linux dynamic linker is in use.
21787: dynamic_linker='GNU/Linux ld.so'
21788: ;;
21789:
21790: netbsd*)
21791: version_type=sunos
21792: need_lib_prefix=no
21793: need_version=no
21794: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21795: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21797: dynamic_linker='NetBSD (a.out) ld.so'
21798: else
1.1.1.5 ! root 21799: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 21800: soname_spec='${libname}${release}${shared_ext}$major'
21801: dynamic_linker='NetBSD ld.elf_so'
21802: fi
21803: shlibpath_var=LD_LIBRARY_PATH
21804: shlibpath_overrides_runpath=yes
21805: hardcode_into_libs=yes
21806: ;;
21807:
21808: newsos6)
21809: version_type=linux
21810: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21811: shlibpath_var=LD_LIBRARY_PATH
21812: shlibpath_overrides_runpath=yes
21813: ;;
21814:
1.1.1.5 ! root 21815: nto-qnx*)
1.1 root 21816: version_type=linux
21817: need_lib_prefix=no
21818: need_version=no
21819: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21820: soname_spec='${libname}${release}${shared_ext}$major'
21821: shlibpath_var=LD_LIBRARY_PATH
21822: shlibpath_overrides_runpath=yes
21823: ;;
21824:
21825: openbsd*)
21826: version_type=sunos
1.1.1.5 ! root 21827: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 21828: need_lib_prefix=no
1.1.1.5 ! root 21829: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 21830: case $host_os in
! 21831: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 21832: *) need_version=no ;;
! 21833: esac
1.1 root 21834: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21835: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21836: shlibpath_var=LD_LIBRARY_PATH
21837: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21838: case $host_os in
21839: openbsd2.[89] | openbsd2.[89].*)
21840: shlibpath_overrides_runpath=no
21841: ;;
21842: *)
21843: shlibpath_overrides_runpath=yes
21844: ;;
21845: esac
21846: else
21847: shlibpath_overrides_runpath=yes
21848: fi
21849: ;;
21850:
21851: os2*)
21852: libname_spec='$name'
1.1.1.5 ! root 21853: shrext_cmds=".dll"
1.1 root 21854: need_lib_prefix=no
21855: library_names_spec='$libname${shared_ext} $libname.a'
21856: dynamic_linker='OS/2 ld.exe'
21857: shlibpath_var=LIBPATH
21858: ;;
21859:
21860: osf3* | osf4* | osf5*)
21861: version_type=osf
21862: need_lib_prefix=no
21863: need_version=no
21864: soname_spec='${libname}${release}${shared_ext}$major'
21865: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21866: shlibpath_var=LD_LIBRARY_PATH
21867: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21868: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21869: ;;
21870:
1.1.1.5 ! root 21871: rdos*)
! 21872: dynamic_linker=no
1.1 root 21873: ;;
21874:
21875: solaris*)
21876: version_type=linux
21877: need_lib_prefix=no
21878: need_version=no
21879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21880: soname_spec='${libname}${release}${shared_ext}$major'
21881: shlibpath_var=LD_LIBRARY_PATH
21882: shlibpath_overrides_runpath=yes
21883: hardcode_into_libs=yes
21884: # ldd complains unless libraries are executable
21885: postinstall_cmds='chmod +x $lib'
21886: ;;
21887:
21888: sunos4*)
21889: version_type=sunos
21890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21891: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21892: shlibpath_var=LD_LIBRARY_PATH
21893: shlibpath_overrides_runpath=yes
21894: if test "$with_gnu_ld" = yes; then
21895: need_lib_prefix=no
21896: fi
21897: need_version=yes
21898: ;;
21899:
1.1.1.5 ! root 21900: sysv4 | sysv4.3*)
1.1 root 21901: version_type=linux
21902: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21903: soname_spec='${libname}${release}${shared_ext}$major'
21904: shlibpath_var=LD_LIBRARY_PATH
21905: case $host_vendor in
21906: sni)
21907: shlibpath_overrides_runpath=no
21908: need_lib_prefix=no
21909: export_dynamic_flag_spec='${wl}-Blargedynsym'
21910: runpath_var=LD_RUN_PATH
21911: ;;
21912: siemens)
21913: need_lib_prefix=no
21914: ;;
21915: motorola)
21916: need_lib_prefix=no
21917: need_version=no
21918: shlibpath_overrides_runpath=no
21919: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21920: ;;
21921: esac
21922: ;;
21923:
21924: sysv4*MP*)
21925: if test -d /usr/nec ;then
21926: version_type=linux
21927: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21928: soname_spec='$libname${shared_ext}.$major'
21929: shlibpath_var=LD_LIBRARY_PATH
21930: fi
21931: ;;
21932:
1.1.1.5 ! root 21933: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 21934: version_type=freebsd-elf
! 21935: need_lib_prefix=no
! 21936: need_version=no
! 21937: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 21938: soname_spec='${libname}${release}${shared_ext}$major'
! 21939: shlibpath_var=LD_LIBRARY_PATH
! 21940: hardcode_into_libs=yes
! 21941: if test "$with_gnu_ld" = yes; then
! 21942: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 21943: shlibpath_overrides_runpath=no
! 21944: else
! 21945: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 21946: shlibpath_overrides_runpath=yes
! 21947: case $host_os in
! 21948: sco3.2v5*)
! 21949: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 21950: ;;
! 21951: esac
! 21952: fi
! 21953: sys_lib_dlsearch_path_spec='/usr/lib'
! 21954: ;;
! 21955:
1.1 root 21956: uts4*)
21957: version_type=linux
21958: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21959: soname_spec='${libname}${release}${shared_ext}$major'
21960: shlibpath_var=LD_LIBRARY_PATH
21961: ;;
21962:
21963: *)
21964: dynamic_linker=no
21965: ;;
21966: esac
1.1.1.5 ! root 21967: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 21968: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 21969: test "$dynamic_linker" = no && can_build_shared=no
21970:
1.1.1.5 ! root 21971: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 21972: if test "$GCC" = yes; then
! 21973: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 21974: fi
1.1 root 21975:
1.1.1.5 ! root 21976: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 21977: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 21978: hardcode_action_CXX=
! 21979: if test -n "$hardcode_libdir_flag_spec_CXX" || \
! 21980: test -n "$runpath_var_CXX" || \
! 21981: test "X$hardcode_automatic_CXX" = "Xyes" ; then
1.1 root 21982:
1.1.1.5 ! root 21983: # We can hardcode non-existant directories.
! 21984: if test "$hardcode_direct_CXX" != no &&
! 21985: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 21986: # have to relink, otherwise we might link with an installed library
! 21987: # when we should be linking with a yet-to-be-installed one
! 21988: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
! 21989: test "$hardcode_minus_L_CXX" != no; then
! 21990: # Linking always hardcodes the temporary library directory.
! 21991: hardcode_action_CXX=relink
! 21992: else
! 21993: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 21994: hardcode_action_CXX=immediate
! 21995: fi
! 21996: else
! 21997: # We cannot hardcode anything, or else we can only hardcode existing
! 21998: # directories.
! 21999: hardcode_action_CXX=unsupported
! 22000: fi
! 22001: { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 22002: echo "${ECHO_T}$hardcode_action_CXX" >&6; }
1.1 root 22003:
1.1.1.5 ! root 22004: if test "$hardcode_action_CXX" = relink; then
! 22005: # Fast installation is not supported
! 22006: enable_fast_install=no
! 22007: elif test "$shlibpath_overrides_runpath" = yes ||
! 22008: test "$enable_shared" = no; then
! 22009: # Fast installation is not necessary
! 22010: enable_fast_install=needless
! 22011: fi
1.1 root 22012:
22013:
1.1.1.5 ! root 22014: # The else clause should only fire when bootstrapping the
! 22015: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 22016: # with your package, and you will get complaints that there are
! 22017: # no rules to generate ltmain.sh.
! 22018: if test -f "$ltmain"; then
! 22019: # See if we are running on zsh, and set the options which allow our commands through
! 22020: # without removal of \ escapes.
! 22021: if test -n "${ZSH_VERSION+set}" ; then
! 22022: setopt NO_GLOB_SUBST
! 22023: fi
! 22024: # Now quote all the things that may contain metacharacters while being
! 22025: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 22026: # variables and quote the copies for generation of the libtool script.
! 22027: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 22028: SED SHELL STRIP \
! 22029: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 22030: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 22031: deplibs_check_method reload_flag reload_cmds need_locks \
! 22032: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 22033: lt_cv_sys_global_symbol_to_c_name_address \
! 22034: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 22035: old_postinstall_cmds old_postuninstall_cmds \
! 22036: compiler_CXX \
! 22037: CC_CXX \
! 22038: LD_CXX \
! 22039: lt_prog_compiler_wl_CXX \
! 22040: lt_prog_compiler_pic_CXX \
! 22041: lt_prog_compiler_static_CXX \
! 22042: lt_prog_compiler_no_builtin_flag_CXX \
! 22043: export_dynamic_flag_spec_CXX \
! 22044: thread_safe_flag_spec_CXX \
! 22045: whole_archive_flag_spec_CXX \
! 22046: enable_shared_with_static_runtimes_CXX \
! 22047: old_archive_cmds_CXX \
! 22048: old_archive_from_new_cmds_CXX \
! 22049: predep_objects_CXX \
! 22050: postdep_objects_CXX \
! 22051: predeps_CXX \
! 22052: postdeps_CXX \
! 22053: compiler_lib_search_path_CXX \
! 22054: archive_cmds_CXX \
! 22055: archive_expsym_cmds_CXX \
! 22056: postinstall_cmds_CXX \
! 22057: postuninstall_cmds_CXX \
! 22058: old_archive_from_expsyms_cmds_CXX \
! 22059: allow_undefined_flag_CXX \
! 22060: no_undefined_flag_CXX \
! 22061: export_symbols_cmds_CXX \
! 22062: hardcode_libdir_flag_spec_CXX \
! 22063: hardcode_libdir_flag_spec_ld_CXX \
! 22064: hardcode_libdir_separator_CXX \
! 22065: hardcode_automatic_CXX \
! 22066: module_cmds_CXX \
! 22067: module_expsym_cmds_CXX \
! 22068: lt_cv_prog_compiler_c_o_CXX \
! 22069: fix_srcfile_path_CXX \
! 22070: exclude_expsyms_CXX \
! 22071: include_expsyms_CXX; do
1.1 root 22072:
1.1.1.5 ! root 22073: case $var in
! 22074: old_archive_cmds_CXX | \
! 22075: old_archive_from_new_cmds_CXX | \
! 22076: archive_cmds_CXX | \
! 22077: archive_expsym_cmds_CXX | \
! 22078: module_cmds_CXX | \
! 22079: module_expsym_cmds_CXX | \
! 22080: old_archive_from_expsyms_cmds_CXX | \
! 22081: export_symbols_cmds_CXX | \
! 22082: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 22083: postinstall_cmds | postuninstall_cmds | \
! 22084: old_postinstall_cmds | old_postuninstall_cmds | \
! 22085: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 22086: # Double-quote double-evaled strings.
! 22087: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 22088: ;;
! 22089: *)
! 22090: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 22091: ;;
! 22092: esac
! 22093: done
1.1 root 22094:
1.1.1.5 ! root 22095: case $lt_echo in
! 22096: *'\$0 --fallback-echo"')
! 22097: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 22098: ;;
! 22099: esac
1.1 root 22100:
1.1.1.5 ! root 22101: cfgfile="$ofile"
1.1 root 22102:
1.1.1.5 ! root 22103: cat <<__EOF__ >> "$cfgfile"
! 22104: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.1 root 22105:
1.1.1.5 ! root 22106: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.1 root 22107:
1.1.1.5 ! root 22108: # Shell to use when invoking shell scripts.
! 22109: SHELL=$lt_SHELL
1.1 root 22110:
1.1.1.5 ! root 22111: # Whether or not to build shared libraries.
! 22112: build_libtool_libs=$enable_shared
1.1 root 22113:
1.1.1.5 ! root 22114: # Whether or not to build static libraries.
! 22115: build_old_libs=$enable_static
1.1 root 22116:
1.1.1.5 ! root 22117: # Whether or not to add -lc for building shared libraries.
! 22118: build_libtool_need_lc=$archive_cmds_need_lc_CXX
1.1 root 22119:
1.1.1.5 ! root 22120: # Whether or not to disallow shared libs when runtime libs are static
! 22121: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
1.1 root 22122:
1.1.1.5 ! root 22123: # Whether or not to optimize for fast installation.
! 22124: fast_install=$enable_fast_install
1.1 root 22125:
1.1.1.5 ! root 22126: # The host system.
! 22127: host_alias=$host_alias
! 22128: host=$host
! 22129: host_os=$host_os
1.1 root 22130:
1.1.1.5 ! root 22131: # The build system.
! 22132: build_alias=$build_alias
! 22133: build=$build
! 22134: build_os=$build_os
1.1 root 22135:
1.1.1.5 ! root 22136: # An echo program that does not interpret backslashes.
! 22137: echo=$lt_echo
1.1 root 22138:
1.1.1.5 ! root 22139: # The archiver.
! 22140: AR=$lt_AR
! 22141: AR_FLAGS=$lt_AR_FLAGS
1.1 root 22142:
1.1.1.5 ! root 22143: # A C compiler.
! 22144: LTCC=$lt_LTCC
1.1 root 22145:
1.1.1.5 ! root 22146: # LTCC compiler flags.
! 22147: LTCFLAGS=$lt_LTCFLAGS
1.1 root 22148:
1.1.1.5 ! root 22149: # A language-specific compiler.
! 22150: CC=$lt_compiler_CXX
1.1 root 22151:
1.1.1.5 ! root 22152: # Is the compiler the GNU C compiler?
! 22153: with_gcc=$GCC_CXX
1.1 root 22154:
1.1.1.5 ! root 22155: # An ERE matcher.
! 22156: EGREP=$lt_EGREP
1.1 root 22157:
1.1.1.5 ! root 22158: # The linker used to build libraries.
! 22159: LD=$lt_LD_CXX
1.1 root 22160:
1.1.1.5 ! root 22161: # Whether we need hard or soft links.
! 22162: LN_S=$lt_LN_S
1.1 root 22163:
1.1.1.5 ! root 22164: # A BSD-compatible nm program.
! 22165: NM=$lt_NM
1.1 root 22166:
1.1.1.5 ! root 22167: # A symbol stripping program
! 22168: STRIP=$lt_STRIP
1.1 root 22169:
1.1.1.5 ! root 22170: # Used to examine libraries when file_magic_cmd begins "file"
! 22171: MAGIC_CMD=$MAGIC_CMD
1.1 root 22172:
1.1.1.5 ! root 22173: # Used on cygwin: DLL creation program.
! 22174: DLLTOOL="$DLLTOOL"
1.1 root 22175:
1.1.1.5 ! root 22176: # Used on cygwin: object dumper.
! 22177: OBJDUMP="$OBJDUMP"
1.1 root 22178:
1.1.1.5 ! root 22179: # Used on cygwin: assembler.
! 22180: AS="$AS"
1.1 root 22181:
1.1.1.5 ! root 22182: # The name of the directory that contains temporary libtool files.
! 22183: objdir=$objdir
1.1 root 22184:
1.1.1.5 ! root 22185: # How to create reloadable object files.
! 22186: reload_flag=$lt_reload_flag
! 22187: reload_cmds=$lt_reload_cmds
1.1 root 22188:
1.1.1.5 ! root 22189: # How to pass a linker flag through the compiler.
! 22190: wl=$lt_lt_prog_compiler_wl_CXX
1.1 root 22191:
1.1.1.5 ! root 22192: # Object file suffix (normally "o").
! 22193: objext="$ac_objext"
1.1 root 22194:
1.1.1.5 ! root 22195: # Old archive suffix (normally "a").
! 22196: libext="$libext"
1.1 root 22197:
1.1.1.5 ! root 22198: # Shared library suffix (normally ".so").
! 22199: shrext_cmds='$shrext_cmds'
1.1 root 22200:
1.1.1.5 ! root 22201: # Executable file suffix (normally "").
! 22202: exeext="$exeext"
1.1 root 22203:
1.1.1.5 ! root 22204: # Additional compiler flags for building library objects.
! 22205: pic_flag=$lt_lt_prog_compiler_pic_CXX
! 22206: pic_mode=$pic_mode
1.1 root 22207:
1.1.1.5 ! root 22208: # What is the maximum length of a command?
! 22209: max_cmd_len=$lt_cv_sys_max_cmd_len
1.1 root 22210:
1.1.1.5 ! root 22211: # Does compiler simultaneously support -c and -o options?
! 22212: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
1.1 root 22213:
1.1.1.5 ! root 22214: # Must we lock files when doing compilation?
! 22215: need_locks=$lt_need_locks
1.1 root 22216:
1.1.1.5 ! root 22217: # Do we need the lib prefix for modules?
! 22218: need_lib_prefix=$need_lib_prefix
1.1 root 22219:
1.1.1.5 ! root 22220: # Do we need a version for libraries?
! 22221: need_version=$need_version
1.1 root 22222:
1.1.1.5 ! root 22223: # Whether dlopen is supported.
! 22224: dlopen_support=$enable_dlopen
1.1 root 22225:
1.1.1.5 ! root 22226: # Whether dlopen of programs is supported.
! 22227: dlopen_self=$enable_dlopen_self
1.1 root 22228:
1.1.1.5 ! root 22229: # Whether dlopen of statically linked programs is supported.
! 22230: dlopen_self_static=$enable_dlopen_self_static
1.1 root 22231:
1.1.1.5 ! root 22232: # Compiler flag to prevent dynamic linking.
! 22233: link_static_flag=$lt_lt_prog_compiler_static_CXX
1.1 root 22234:
1.1.1.5 ! root 22235: # Compiler flag to turn off builtin functions.
! 22236: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1.1 root 22237:
1.1.1.5 ! root 22238: # Compiler flag to allow reflexive dlopens.
! 22239: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
1.1 root 22240:
1.1.1.5 ! root 22241: # Compiler flag to generate shared objects directly from archives.
! 22242: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
1.1 root 22243:
1.1.1.5 ! root 22244: # Compiler flag to generate thread-safe objects.
! 22245: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
1.1 root 22246:
1.1.1.5 ! root 22247: # Library versioning type.
! 22248: version_type=$version_type
1.1 root 22249:
1.1.1.5 ! root 22250: # Format of library name prefix.
! 22251: libname_spec=$lt_libname_spec
1.1 root 22252:
1.1.1.5 ! root 22253: # List of archive names. First name is the real one, the rest are links.
! 22254: # The last name is the one that the linker finds with -lNAME.
! 22255: library_names_spec=$lt_library_names_spec
1.1 root 22256:
1.1.1.5 ! root 22257: # The coded name of the library, if different from the real name.
! 22258: soname_spec=$lt_soname_spec
1.1 root 22259:
1.1.1.5 ! root 22260: # Commands used to build and install an old-style archive.
! 22261: RANLIB=$lt_RANLIB
! 22262: old_archive_cmds=$lt_old_archive_cmds_CXX
! 22263: old_postinstall_cmds=$lt_old_postinstall_cmds
! 22264: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.1 root 22265:
1.1.1.5 ! root 22266: # Create an old-style archive from a shared archive.
! 22267: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
1.1 root 22268:
1.1.1.5 ! root 22269: # Create a temporary old-style archive to link instead of a shared archive.
! 22270: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
1.1 root 22271:
1.1.1.5 ! root 22272: # Commands used to build and install a shared archive.
! 22273: archive_cmds=$lt_archive_cmds_CXX
! 22274: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
! 22275: postinstall_cmds=$lt_postinstall_cmds
! 22276: postuninstall_cmds=$lt_postuninstall_cmds
1.1 root 22277:
1.1.1.5 ! root 22278: # Commands used to build a loadable module (assumed same as above if empty)
! 22279: module_cmds=$lt_module_cmds_CXX
! 22280: module_expsym_cmds=$lt_module_expsym_cmds_CXX
1.1 root 22281:
22282: # Commands to strip libraries.
22283: old_striplib=$lt_old_striplib
22284: striplib=$lt_striplib
22285:
22286: # Dependencies to place before the objects being linked to create a
22287: # shared library.
22288: predep_objects=$lt_predep_objects_CXX
22289:
22290: # Dependencies to place after the objects being linked to create a
22291: # shared library.
22292: postdep_objects=$lt_postdep_objects_CXX
22293:
22294: # Dependencies to place before the objects being linked to create a
22295: # shared library.
22296: predeps=$lt_predeps_CXX
22297:
22298: # Dependencies to place after the objects being linked to create a
22299: # shared library.
22300: postdeps=$lt_postdeps_CXX
22301:
22302: # The library search path used internally by the compiler when linking
22303: # a shared library.
22304: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22305:
22306: # Method to check whether dependent libraries are shared objects.
22307: deplibs_check_method=$lt_deplibs_check_method
22308:
22309: # Command to use when deplibs_check_method == file_magic.
22310: file_magic_cmd=$lt_file_magic_cmd
22311:
22312: # Flag that allows shared libraries with undefined symbols to be built.
22313: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22314:
22315: # Flag that forces no undefined symbols.
22316: no_undefined_flag=$lt_no_undefined_flag_CXX
22317:
22318: # Commands used to finish a libtool library installation in a directory.
22319: finish_cmds=$lt_finish_cmds
22320:
22321: # Same as above, but a single script fragment to be evaled but not shown.
22322: finish_eval=$lt_finish_eval
22323:
22324: # Take the output of nm and produce a listing of raw symbols and C names.
22325: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22326:
22327: # Transform the output of nm in a proper C declaration
22328: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22329:
22330: # Transform the output of nm in a C name address pair
22331: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22332:
22333: # This is the shared library runtime path variable.
22334: runpath_var=$runpath_var
22335:
22336: # This is the shared library path variable.
22337: shlibpath_var=$shlibpath_var
22338:
22339: # Is shlibpath searched before the hard-coded library search path?
22340: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22341:
22342: # How to hardcode a shared library path into an executable.
22343: hardcode_action=$hardcode_action_CXX
22344:
22345: # Whether we should hardcode library paths into libraries.
22346: hardcode_into_libs=$hardcode_into_libs
22347:
22348: # Flag to hardcode \$libdir into a binary during linking.
22349: # This must work even if \$libdir does not exist.
22350: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22351:
22352: # If ld is used when linking, flag to hardcode \$libdir into
22353: # a binary during linking. This must work even if \$libdir does
22354: # not exist.
22355: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22356:
22357: # Whether we need a single -rpath flag with a separated argument.
22358: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22359:
22360: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22361: # resulting binary.
22362: hardcode_direct=$hardcode_direct_CXX
22363:
22364: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22365: # resulting binary.
22366: hardcode_minus_L=$hardcode_minus_L_CXX
22367:
22368: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22369: # the resulting binary.
22370: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22371:
22372: # Set to yes if building a shared library automatically hardcodes DIR into the library
22373: # and all subsequent libraries and executables linked against it.
22374: hardcode_automatic=$hardcode_automatic_CXX
22375:
22376: # Variables whose values should be saved in libtool wrapper scripts and
22377: # restored at relink time.
22378: variables_saved_for_relink="$variables_saved_for_relink"
22379:
22380: # Whether libtool must link a program against all its dependency libraries.
22381: link_all_deplibs=$link_all_deplibs_CXX
22382:
22383: # Compile-time system search path for libraries
22384: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22385:
22386: # Run-time system search path for libraries
22387: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22388:
22389: # Fix the shell variable \$srcfile for the compiler.
1.1.1.5 ! root 22390: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 22391:
22392: # Set to yes if exported symbols are required.
22393: always_export_symbols=$always_export_symbols_CXX
22394:
22395: # The commands to list exported symbols.
22396: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22397:
22398: # The commands to extract the exported symbol list from a shared archive.
22399: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22400:
22401: # Symbols that should not be listed in the preloaded symbols.
22402: exclude_expsyms=$lt_exclude_expsyms_CXX
22403:
22404: # Symbols that must always be exported.
22405: include_expsyms=$lt_include_expsyms_CXX
22406:
22407: # ### END LIBTOOL TAG CONFIG: $tagname
22408:
22409: __EOF__
22410:
22411:
22412: else
22413: # If there is no Makefile yet, we rely on a make rule to execute
22414: # `config.status --recheck' to rerun these tests and create the
22415: # libtool script then.
1.1.1.5 ! root 22416: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 22417: if test -f "$ltmain_in"; then
! 22418: test -f Makefile && make "$ltmain"
! 22419: fi
1.1 root 22420: fi
22421:
22422:
22423: ac_ext=c
22424: ac_cpp='$CPP $CPPFLAGS'
22425: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22426: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22427: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22428:
22429: CC=$lt_save_CC
22430: LDCXX=$LD
22431: LD=$lt_save_LD
22432: GCC=$lt_save_GCC
22433: with_gnu_ldcxx=$with_gnu_ld
22434: with_gnu_ld=$lt_save_with_gnu_ld
22435: lt_cv_path_LDCXX=$lt_cv_path_LD
22436: lt_cv_path_LD=$lt_save_path_LD
22437: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22438: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22439:
22440: else
22441: tagname=""
22442: fi
22443: ;;
22444:
22445: F77)
22446: if test -n "$F77" && test "X$F77" != "Xno"; then
22447:
22448: ac_ext=f
22449: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22450: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22452:
22453:
22454: archive_cmds_need_lc_F77=no
22455: allow_undefined_flag_F77=
22456: always_export_symbols_F77=no
22457: archive_expsym_cmds_F77=
22458: export_dynamic_flag_spec_F77=
22459: hardcode_direct_F77=no
22460: hardcode_libdir_flag_spec_F77=
22461: hardcode_libdir_flag_spec_ld_F77=
22462: hardcode_libdir_separator_F77=
22463: hardcode_minus_L_F77=no
22464: hardcode_automatic_F77=no
22465: module_cmds_F77=
22466: module_expsym_cmds_F77=
22467: link_all_deplibs_F77=unknown
22468: old_archive_cmds_F77=$old_archive_cmds
22469: no_undefined_flag_F77=
22470: whole_archive_flag_spec_F77=
22471: enable_shared_with_static_runtimes_F77=no
22472:
22473: # Source file extension for f77 test sources.
22474: ac_ext=f
22475:
22476: # Object file extension for compiled f77 test sources.
22477: objext=o
22478: objext_F77=$objext
22479:
22480: # Code to be used in simple compile tests
1.1.1.5 ! root 22481: lt_simple_compile_test_code="\
! 22482: subroutine t
! 22483: return
! 22484: end
! 22485: "
1.1 root 22486:
22487: # Code to be used in simple link tests
1.1.1.5 ! root 22488: lt_simple_link_test_code="\
! 22489: program t
! 22490: end
! 22491: "
1.1 root 22492:
22493: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22494:
22495: # If no C compiler was specified, use CC.
22496: LTCC=${LTCC-"$CC"}
22497:
1.1.1.5 ! root 22498: # If no C compiler flags were specified, use CFLAGS.
! 22499: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 22500:
1.1 root 22501: # Allow CC to be a program name with arguments.
22502: compiler=$CC
22503:
22504:
1.1.1.5 ! root 22505: # save warnings/boilerplate of simple test code
! 22506: ac_outfile=conftest.$ac_objext
! 22507: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 22508: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 22509: _lt_compiler_boilerplate=`cat conftest.err`
! 22510: $rm conftest*
! 22511:
! 22512: ac_outfile=conftest.$ac_objext
! 22513: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 22514: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 22515: _lt_linker_boilerplate=`cat conftest.err`
! 22516: $rm conftest*
! 22517:
! 22518:
1.1 root 22519: # Allow CC to be a program name with arguments.
22520: lt_save_CC="$CC"
22521: CC=${F77-"f77"}
22522: compiler=$CC
22523: compiler_F77=$CC
1.1.1.5 ! root 22524: for cc_temp in $compiler""; do
! 22525: case $cc_temp in
! 22526: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 22527: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 22528: \-*) ;;
! 22529: *) break;;
! 22530: esac
! 22531: done
! 22532: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 22533:
22534:
1.1.1.5 ! root 22535: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 22536: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 22537: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 22538: echo "${ECHO_T}$can_build_shared" >&6; }
! 22539:
! 22540: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 22541: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
1.1 root 22542: test "$can_build_shared" = "no" && enable_shared=no
22543:
22544: # On AIX, shared libraries and static libraries use the same namespace, and
22545: # are all built from PIC.
1.1.1.5 ! root 22546: case $host_os in
1.1 root 22547: aix3*)
22548: test "$enable_shared" = yes && enable_static=no
22549: if test -n "$RANLIB"; then
22550: archive_cmds="$archive_cmds~\$RANLIB \$lib"
22551: postinstall_cmds='$RANLIB $lib'
22552: fi
22553: ;;
1.1.1.5 ! root 22554: aix4* | aix5*)
! 22555: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 22556: test "$enable_shared" = yes && enable_static=no
! 22557: fi
1.1 root 22558: ;;
22559: esac
1.1.1.5 ! root 22560: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 22561: echo "${ECHO_T}$enable_shared" >&6; }
1.1 root 22562:
1.1.1.5 ! root 22563: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 22564: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
1.1 root 22565: # Make sure either enable_shared or enable_static is yes.
22566: test "$enable_shared" = yes || enable_static=yes
1.1.1.5 ! root 22567: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 22568: echo "${ECHO_T}$enable_static" >&6; }
1.1 root 22569:
22570: GCC_F77="$G77"
22571: LD_F77="$LD"
22572:
22573: lt_prog_compiler_wl_F77=
22574: lt_prog_compiler_pic_F77=
22575: lt_prog_compiler_static_F77=
22576:
1.1.1.5 ! root 22577: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 22578: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 22579:
22580: if test "$GCC" = yes; then
22581: lt_prog_compiler_wl_F77='-Wl,'
22582: lt_prog_compiler_static_F77='-static'
22583:
22584: case $host_os in
22585: aix*)
22586: # All AIX code is PIC.
22587: if test "$host_cpu" = ia64; then
22588: # AIX 5 now supports IA64 processor
22589: lt_prog_compiler_static_F77='-Bstatic'
22590: fi
22591: ;;
22592:
22593: amigaos*)
22594: # FIXME: we need at least 68020 code to build shared libraries, but
22595: # adding the `-m68020' flag to GCC prevents building anything better,
22596: # like `-m68040'.
22597: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22598: ;;
22599:
1.1.1.5 ! root 22600: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 22601: # PIC is the default for these OSes.
22602: ;;
22603:
1.1.1.5 ! root 22604: mingw* | cygwin* | pw32* | os2*)
1.1 root 22605: # This hack is so that the source file can tell whether it is being
22606: # built for inclusion in a dll (and should export symbols for example).
1.1.1.5 ! root 22607: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 22608: # (--disable-auto-import) libraries
1.1 root 22609: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22610: ;;
22611:
22612: darwin* | rhapsody*)
22613: # PIC is the default on this platform
22614: # Common symbols not allowed in MH_DYLIB files
22615: lt_prog_compiler_pic_F77='-fno-common'
22616: ;;
22617:
1.1.1.5 ! root 22618: interix[3-9]*)
! 22619: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 22620: # Instead, we relocate shared libraries at runtime.
! 22621: ;;
! 22622:
1.1 root 22623: msdosdjgpp*)
22624: # Just because we use GCC doesn't mean we suddenly get shared libraries
22625: # on systems that don't support them.
22626: lt_prog_compiler_can_build_shared_F77=no
22627: enable_shared=no
22628: ;;
22629:
22630: sysv4*MP*)
22631: if test -d /usr/nec; then
22632: lt_prog_compiler_pic_F77=-Kconform_pic
22633: fi
22634: ;;
22635:
22636: hpux*)
22637: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22638: # not for PA HP-UX.
1.1.1.5 ! root 22639: case $host_cpu in
1.1 root 22640: hppa*64*|ia64*)
22641: # +Z the default
22642: ;;
22643: *)
22644: lt_prog_compiler_pic_F77='-fPIC'
22645: ;;
22646: esac
22647: ;;
22648:
22649: *)
22650: lt_prog_compiler_pic_F77='-fPIC'
22651: ;;
22652: esac
22653: else
22654: # PORTME Check for flag to pass linker flags through the system compiler.
22655: case $host_os in
22656: aix*)
22657: lt_prog_compiler_wl_F77='-Wl,'
22658: if test "$host_cpu" = ia64; then
22659: # AIX 5 now supports IA64 processor
22660: lt_prog_compiler_static_F77='-Bstatic'
22661: else
22662: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22663: fi
22664: ;;
1.1.1.5 ! root 22665: darwin*)
! 22666: # PIC is the default on this platform
! 22667: # Common symbols not allowed in MH_DYLIB files
! 22668: case $cc_basename in
! 22669: xlc*)
! 22670: lt_prog_compiler_pic_F77='-qnocommon'
! 22671: lt_prog_compiler_wl_F77='-Wl,'
! 22672: ;;
! 22673: esac
! 22674: ;;
1.1 root 22675:
1.1.1.5 ! root 22676: mingw* | cygwin* | pw32* | os2*)
1.1 root 22677: # This hack is so that the source file can tell whether it is being
22678: # built for inclusion in a dll (and should export symbols for example).
22679: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22680: ;;
22681:
22682: hpux9* | hpux10* | hpux11*)
22683: lt_prog_compiler_wl_F77='-Wl,'
22684: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22685: # not for PA HP-UX.
1.1.1.5 ! root 22686: case $host_cpu in
1.1 root 22687: hppa*64*|ia64*)
22688: # +Z the default
22689: ;;
22690: *)
22691: lt_prog_compiler_pic_F77='+Z'
22692: ;;
22693: esac
22694: # Is there a better lt_prog_compiler_static that works with the bundled CC?
22695: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22696: ;;
22697:
22698: irix5* | irix6* | nonstopux*)
22699: lt_prog_compiler_wl_F77='-Wl,'
22700: # PIC (with -KPIC) is the default.
22701: lt_prog_compiler_static_F77='-non_shared'
22702: ;;
22703:
22704: newsos6)
22705: lt_prog_compiler_pic_F77='-KPIC'
22706: lt_prog_compiler_static_F77='-Bstatic'
22707: ;;
22708:
1.1.1.5 ! root 22709: linux* | k*bsd*-gnu)
! 22710: case $cc_basename in
! 22711: icc* | ecc*)
1.1 root 22712: lt_prog_compiler_wl_F77='-Wl,'
22713: lt_prog_compiler_pic_F77='-KPIC'
22714: lt_prog_compiler_static_F77='-static'
22715: ;;
1.1.1.5 ! root 22716: pgcc* | pgf77* | pgf90* | pgf95*)
! 22717: # Portland Group compilers (*not* the Pentium gcc compiler,
! 22718: # which looks to be a dead project)
! 22719: lt_prog_compiler_wl_F77='-Wl,'
! 22720: lt_prog_compiler_pic_F77='-fpic'
! 22721: lt_prog_compiler_static_F77='-Bstatic'
! 22722: ;;
! 22723: ccc*)
1.1 root 22724: lt_prog_compiler_wl_F77='-Wl,'
22725: # All Alpha code is PIC.
22726: lt_prog_compiler_static_F77='-non_shared'
22727: ;;
1.1.1.5 ! root 22728: *)
! 22729: case `$CC -V 2>&1 | sed 5q` in
! 22730: *Sun\ C*)
! 22731: # Sun C 5.9
! 22732: lt_prog_compiler_pic_F77='-KPIC'
! 22733: lt_prog_compiler_static_F77='-Bstatic'
! 22734: lt_prog_compiler_wl_F77='-Wl,'
! 22735: ;;
! 22736: *Sun\ F*)
! 22737: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 22738: lt_prog_compiler_pic_F77='-KPIC'
! 22739: lt_prog_compiler_static_F77='-Bstatic'
! 22740: lt_prog_compiler_wl_F77=''
! 22741: ;;
! 22742: esac
! 22743: ;;
1.1 root 22744: esac
22745: ;;
22746:
22747: osf3* | osf4* | osf5*)
22748: lt_prog_compiler_wl_F77='-Wl,'
22749: # All OSF/1 code is PIC.
22750: lt_prog_compiler_static_F77='-non_shared'
22751: ;;
22752:
1.1.1.5 ! root 22753: rdos*)
! 22754: lt_prog_compiler_static_F77='-non_shared'
1.1 root 22755: ;;
22756:
22757: solaris*)
22758: lt_prog_compiler_pic_F77='-KPIC'
22759: lt_prog_compiler_static_F77='-Bstatic'
1.1.1.5 ! root 22760: case $cc_basename in
! 22761: f77* | f90* | f95*)
! 22762: lt_prog_compiler_wl_F77='-Qoption ld ';;
! 22763: *)
! 22764: lt_prog_compiler_wl_F77='-Wl,';;
! 22765: esac
1.1 root 22766: ;;
22767:
22768: sunos4*)
22769: lt_prog_compiler_wl_F77='-Qoption ld '
22770: lt_prog_compiler_pic_F77='-PIC'
22771: lt_prog_compiler_static_F77='-Bstatic'
22772: ;;
22773:
1.1.1.5 ! root 22774: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 22775: lt_prog_compiler_wl_F77='-Wl,'
22776: lt_prog_compiler_pic_F77='-KPIC'
22777: lt_prog_compiler_static_F77='-Bstatic'
22778: ;;
22779:
22780: sysv4*MP*)
22781: if test -d /usr/nec ;then
22782: lt_prog_compiler_pic_F77='-Kconform_pic'
22783: lt_prog_compiler_static_F77='-Bstatic'
22784: fi
22785: ;;
22786:
1.1.1.5 ! root 22787: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 22788: lt_prog_compiler_wl_F77='-Wl,'
! 22789: lt_prog_compiler_pic_F77='-KPIC'
! 22790: lt_prog_compiler_static_F77='-Bstatic'
! 22791: ;;
! 22792:
! 22793: unicos*)
! 22794: lt_prog_compiler_wl_F77='-Wl,'
! 22795: lt_prog_compiler_can_build_shared_F77=no
! 22796: ;;
! 22797:
1.1 root 22798: uts4*)
22799: lt_prog_compiler_pic_F77='-pic'
22800: lt_prog_compiler_static_F77='-Bstatic'
22801: ;;
22802:
22803: *)
22804: lt_prog_compiler_can_build_shared_F77=no
22805: ;;
22806: esac
22807: fi
22808:
1.1.1.5 ! root 22809: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
! 22810: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
1.1 root 22811:
22812: #
22813: # Check to make sure the PIC flag actually works.
22814: #
22815: if test -n "$lt_prog_compiler_pic_F77"; then
1.1.1.5 ! root 22816:
! 22817: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
! 22818: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
1.1 root 22819: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22820: echo $ECHO_N "(cached) $ECHO_C" >&6
22821: else
22822: lt_prog_compiler_pic_works_F77=no
22823: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 22824: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 22825: lt_compiler_flag="$lt_prog_compiler_pic_F77"
22826: # Insert the option either (1) after the last *FLAGS variable, or
22827: # (2) before a word containing "conftest.", or (3) at the end.
22828: # Note that $ac_compile itself does not contain backslashes and begins
22829: # with a dollar sign (not a hyphen), so the echo should work correctly.
22830: # The option is referenced via a variable to avoid confusing sed.
22831: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 22832: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 22833: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22834: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 22835: (eval echo "\"\$as_me:22835: $lt_compile\"" >&5)
1.1 root 22836: (eval "$lt_compile" 2>conftest.err)
22837: ac_status=$?
22838: cat conftest.err >&5
1.1.1.5 ! root 22839: echo "$as_me:22839: \$? = $ac_status" >&5
1.1 root 22840: if (exit $ac_status) && test -s "$ac_outfile"; then
22841: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 22842: # So say no if there are warnings other than the usual output.
! 22843: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 22844: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 22845: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 22846: lt_prog_compiler_pic_works_F77=yes
22847: fi
22848: fi
22849: $rm conftest*
22850:
22851: fi
1.1.1.5 ! root 22852: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
! 22853: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
1.1 root 22854:
22855: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22856: case $lt_prog_compiler_pic_F77 in
22857: "" | " "*) ;;
22858: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22859: esac
22860: else
22861: lt_prog_compiler_pic_F77=
22862: lt_prog_compiler_can_build_shared_F77=no
22863: fi
22864:
22865: fi
1.1.1.5 ! root 22866: case $host_os in
1.1 root 22867: # For platforms which do not support PIC, -DPIC is meaningless:
22868: *djgpp*)
22869: lt_prog_compiler_pic_F77=
22870: ;;
22871: *)
22872: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22873: ;;
22874: esac
22875:
1.1.1.5 ! root 22876: #
! 22877: # Check to make sure the static flag actually works.
! 22878: #
! 22879: wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
! 22880: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 22881: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 22882: if test "${lt_prog_compiler_static_works_F77+set}" = set; then
1.1 root 22883: echo $ECHO_N "(cached) $ECHO_C" >&6
22884: else
1.1.1.5 ! root 22885: lt_prog_compiler_static_works_F77=no
! 22886: save_LDFLAGS="$LDFLAGS"
! 22887: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 22888: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 22889: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 22890: # The linker can only warn and ignore the option if not recognized
! 22891: # So say no if there are warnings
! 22892: if test -s conftest.err; then
! 22893: # Append any errors to the config.log.
! 22894: cat conftest.err 1>&5
! 22895: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 22896: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 22897: if diff conftest.exp conftest.er2 >/dev/null; then
! 22898: lt_prog_compiler_static_works_F77=yes
! 22899: fi
! 22900: else
! 22901: lt_prog_compiler_static_works_F77=yes
! 22902: fi
! 22903: fi
! 22904: $rm conftest*
! 22905: LDFLAGS="$save_LDFLAGS"
! 22906:
! 22907: fi
! 22908: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
! 22909: echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
! 22910:
! 22911: if test x"$lt_prog_compiler_static_works_F77" = xyes; then
! 22912: :
! 22913: else
! 22914: lt_prog_compiler_static_F77=
! 22915: fi
! 22916:
1.1 root 22917:
1.1.1.5 ! root 22918: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 22919: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 22920: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
! 22921: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22922: else
! 22923: lt_cv_prog_compiler_c_o_F77=no
! 22924: $rm -r conftest 2>/dev/null
! 22925: mkdir conftest
! 22926: cd conftest
! 22927: mkdir out
! 22928: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 22929:
22930: lt_compiler_flag="-o out/conftest2.$ac_objext"
22931: # Insert the option either (1) after the last *FLAGS variable, or
22932: # (2) before a word containing "conftest.", or (3) at the end.
22933: # Note that $ac_compile itself does not contain backslashes and begins
22934: # with a dollar sign (not a hyphen), so the echo should work correctly.
22935: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 22936: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 22937: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22938: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 22939: (eval echo "\"\$as_me:22939: $lt_compile\"" >&5)
1.1 root 22940: (eval "$lt_compile" 2>out/conftest.err)
22941: ac_status=$?
22942: cat out/conftest.err >&5
1.1.1.5 ! root 22943: echo "$as_me:22943: \$? = $ac_status" >&5
1.1 root 22944: if (exit $ac_status) && test -s out/conftest2.$ac_objext
22945: then
22946: # The compiler can only warn and ignore the option if not recognized
22947: # So say no if there are warnings
1.1.1.5 ! root 22948: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 22949: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 22950: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 22951: lt_cv_prog_compiler_c_o_F77=yes
22952: fi
22953: fi
1.1.1.5 ! root 22954: chmod u+w . 2>&5
! 22955: $rm conftest*
! 22956: # SGI C++ compiler will create directory out/ii_files/ for
! 22957: # template instantiation
! 22958: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 22959: $rm out/* && rmdir out
1.1 root 22960: cd ..
22961: rmdir conftest
22962: $rm conftest*
22963:
22964: fi
1.1.1.5 ! root 22965: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
! 22966: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
1.1 root 22967:
22968:
22969: hard_links="nottested"
22970: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22971: # do not overwrite the value of need_locks provided by the user
1.1.1.5 ! root 22972: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 22973: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 22974: hard_links=yes
22975: $rm conftest*
22976: ln conftest.a conftest.b 2>/dev/null && hard_links=no
22977: touch conftest.a
22978: ln conftest.a conftest.b 2>&5 || hard_links=no
22979: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.5 ! root 22980: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 22981: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 22982: if test "$hard_links" = no; then
22983: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22984: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22985: need_locks=warn
22986: fi
22987: else
22988: need_locks=no
22989: fi
22990:
1.1.1.5 ! root 22991: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 22992: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 22993:
22994: runpath_var=
22995: allow_undefined_flag_F77=
22996: enable_shared_with_static_runtimes_F77=no
22997: archive_cmds_F77=
22998: archive_expsym_cmds_F77=
22999: old_archive_From_new_cmds_F77=
23000: old_archive_from_expsyms_cmds_F77=
23001: export_dynamic_flag_spec_F77=
23002: whole_archive_flag_spec_F77=
23003: thread_safe_flag_spec_F77=
23004: hardcode_libdir_flag_spec_F77=
23005: hardcode_libdir_flag_spec_ld_F77=
23006: hardcode_libdir_separator_F77=
23007: hardcode_direct_F77=no
23008: hardcode_minus_L_F77=no
23009: hardcode_shlibpath_var_F77=unsupported
23010: link_all_deplibs_F77=unknown
23011: hardcode_automatic_F77=no
23012: module_cmds_F77=
23013: module_expsym_cmds_F77=
23014: always_export_symbols_F77=no
23015: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23016: # include_expsyms should be a list of space-separated symbols to be *always*
23017: # included in the symbol list
23018: include_expsyms_F77=
23019: # exclude_expsyms can be an extended regexp of symbols to exclude
23020: # it will be wrapped by ` (' and `)$', so one must not match beginning or
23021: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23022: # as well as any symbol that contains `d'.
23023: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
23024: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23025: # platforms (ab)use it in PIC code, but their linkers get confused if
23026: # the symbol is explicitly referenced. Since portable code cannot
23027: # rely on this symbol name, it's probably fine to never include it in
23028: # preloaded symbol tables.
23029: extract_expsyms_cmds=
1.1.1.5 ! root 23030: # Just being paranoid about ensuring that cc_basename is set.
! 23031: for cc_temp in $compiler""; do
! 23032: case $cc_temp in
! 23033: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 23034: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 23035: \-*) ;;
! 23036: *) break;;
! 23037: esac
! 23038: done
! 23039: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 23040:
23041: case $host_os in
23042: cygwin* | mingw* | pw32*)
23043: # FIXME: the MSVC++ port hasn't been tested in a loooong time
23044: # When not using gcc, we currently assume that we are using
23045: # Microsoft Visual C++.
23046: if test "$GCC" != yes; then
23047: with_gnu_ld=no
23048: fi
23049: ;;
1.1.1.5 ! root 23050: interix*)
! 23051: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 23052: with_gnu_ld=yes
! 23053: ;;
1.1 root 23054: openbsd*)
23055: with_gnu_ld=no
23056: ;;
23057: esac
23058:
23059: ld_shlibs_F77=yes
23060: if test "$with_gnu_ld" = yes; then
23061: # If archive_cmds runs LD, not CC, wlarc should be empty
23062: wlarc='${wl}'
23063:
1.1.1.5 ! root 23064: # Set some defaults for GNU ld with shared library support. These
! 23065: # are reset later if shared libraries are not supported. Putting them
! 23066: # here allows them to be overridden if necessary.
! 23067: runpath_var=LD_RUN_PATH
! 23068: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
! 23069: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
! 23070: # ancient GNU ld didn't support --whole-archive et. al.
! 23071: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 23072: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 23073: else
! 23074: whole_archive_flag_spec_F77=
! 23075: fi
! 23076: supports_anon_versioning=no
! 23077: case `$LD -v 2>/dev/null` in
! 23078: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 23079: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 23080: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 23081: *\ 2.11.*) ;; # other 2.11 versions
! 23082: *) supports_anon_versioning=yes ;;
! 23083: esac
! 23084:
1.1 root 23085: # See if GNU ld supports shared libraries.
23086: case $host_os in
23087: aix3* | aix4* | aix5*)
23088: # On AIX/PPC, the GNU linker is very broken
23089: if test "$host_cpu" != ia64; then
23090: ld_shlibs_F77=no
23091: cat <<EOF 1>&2
23092:
23093: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23094: *** to be unable to reliably create shared libraries on AIX.
23095: *** Therefore, libtool is disabling shared libraries support. If you
23096: *** really care for shared libraries, you may want to modify your PATH
23097: *** so that a non-GNU linker is found, and then restart.
23098:
23099: EOF
23100: fi
23101: ;;
23102:
23103: amigaos*)
23104: archive_cmds_F77='$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)'
23105: hardcode_libdir_flag_spec_F77='-L$libdir'
23106: hardcode_minus_L_F77=yes
23107:
23108: # Samuel A. Falvo II <[email protected]> reports
23109: # that the semantics of dynamic libraries on AmigaOS, at least up
23110: # to version 4, is to share data among multiple programs linked
23111: # with the same dynamic library. Since this doesn't match the
23112: # behavior of shared libraries on other platforms, we can't use
23113: # them.
23114: ld_shlibs_F77=no
23115: ;;
23116:
23117: beos*)
23118: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23119: allow_undefined_flag_F77=unsupported
23120: # Joseph Beckenbach <[email protected]> says some releases of gcc
23121: # support --undefined. This deserves some investigation. FIXME
23122: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23123: else
23124: ld_shlibs_F77=no
23125: fi
23126: ;;
23127:
23128: cygwin* | mingw* | pw32*)
23129: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
23130: # as there is no search path for DLLs.
23131: hardcode_libdir_flag_spec_F77='-L$libdir'
23132: allow_undefined_flag_F77=unsupported
23133: always_export_symbols_F77=no
23134: enable_shared_with_static_runtimes_F77=yes
1.1.1.5 ! root 23135: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 23136:
23137: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.5 ! root 23138: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 23139: # If the export-symbols file already is a .def file (1st line
23140: # is EXPORTS), use it as is; otherwise, prepend...
23141: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23142: cp $export_symbols $output_objdir/$soname.def;
23143: else
23144: echo EXPORTS > $output_objdir/$soname.def;
23145: cat $export_symbols >> $output_objdir/$soname.def;
23146: fi~
1.1.1.5 ! root 23147: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 23148: else
1.1.1.5 ! root 23149: ld_shlibs_F77=no
! 23150: fi
! 23151: ;;
! 23152:
! 23153: interix[3-9]*)
! 23154: hardcode_direct_F77=no
! 23155: hardcode_shlibpath_var_F77=no
! 23156: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 23157: export_dynamic_flag_spec_F77='${wl}-E'
! 23158: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 23159: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 23160: # default) and relocated if they conflict, which is a slow very memory
! 23161: # consuming and fragmenting process. To avoid this, we pick a random,
! 23162: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 23163: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 23164: archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 23165: archive_expsym_cmds_F77='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'
! 23166: ;;
! 23167:
! 23168: gnu* | linux* | k*bsd*-gnu)
! 23169: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 23170: tmp_addflag=
! 23171: case $cc_basename,$host_cpu in
! 23172: pgcc*) # Portland Group C compiler
! 23173: whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 23174: tmp_addflag=' $pic_flag'
! 23175: ;;
! 23176: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 23177: whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 23178: tmp_addflag=' $pic_flag -Mnomain' ;;
! 23179: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 23180: tmp_addflag=' -i_dynamic' ;;
! 23181: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 23182: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 23183: ifc* | ifort*) # Intel Fortran compiler
! 23184: tmp_addflag=' -nofor_main' ;;
! 23185: esac
! 23186: case `$CC -V 2>&1 | sed 5q` in
! 23187: *Sun\ C*) # Sun C 5.9
! 23188: whole_archive_flag_spec_F77='${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'
! 23189: tmp_sharedflag='-G' ;;
! 23190: *Sun\ F*) # Sun Fortran 8.3
! 23191: tmp_sharedflag='-G' ;;
! 23192: *)
! 23193: tmp_sharedflag='-shared' ;;
! 23194: esac
! 23195: archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 23196:
! 23197: if test $supports_anon_versioning = yes; then
! 23198: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
! 23199: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 23200: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 23201: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 23202: fi
! 23203: else
! 23204: ld_shlibs_F77=no
1.1 root 23205: fi
23206: ;;
23207:
23208: netbsd*)
23209: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23210: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23211: wlarc=
23212: else
23213: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23214: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23215: fi
23216: ;;
23217:
1.1.1.5 ! root 23218: solaris*)
1.1 root 23219: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23220: ld_shlibs_F77=no
23221: cat <<EOF 1>&2
23222:
23223: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23224: *** create shared libraries on Solaris systems. Therefore, libtool
23225: *** is disabling shared libraries support. We urge you to upgrade GNU
23226: *** binutils to release 2.9.1 or newer. Another option is to modify
23227: *** your PATH or compiler configuration so that the native linker is
23228: *** used, and then restart.
23229:
23230: EOF
23231: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23232: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23233: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23234: else
23235: ld_shlibs_F77=no
23236: fi
23237: ;;
23238:
1.1.1.5 ! root 23239: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 23240: case `$LD -v 2>&1` in
! 23241: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 23242: ld_shlibs_F77=no
! 23243: cat <<_LT_EOF 1>&2
! 23244:
! 23245: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 23246: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 23247: *** is disabling shared libraries support. We urge you to upgrade GNU
! 23248: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 23249: *** your PATH or compiler configuration so that the native linker is
! 23250: *** used, and then restart.
! 23251:
! 23252: _LT_EOF
! 23253: ;;
! 23254: *)
! 23255: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 23256: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 23257: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 23258: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 23259: else
! 23260: ld_shlibs_F77=no
! 23261: fi
! 23262: ;;
! 23263: esac
! 23264: ;;
! 23265:
1.1 root 23266: sunos4*)
23267: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23268: wlarc=
23269: hardcode_direct_F77=yes
23270: hardcode_shlibpath_var_F77=no
23271: ;;
23272:
23273: *)
23274: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23275: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23276: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23277: else
23278: ld_shlibs_F77=no
23279: fi
23280: ;;
23281: esac
23282:
1.1.1.5 ! root 23283: if test "$ld_shlibs_F77" = no; then
! 23284: runpath_var=
! 23285: hardcode_libdir_flag_spec_F77=
! 23286: export_dynamic_flag_spec_F77=
! 23287: whole_archive_flag_spec_F77=
1.1 root 23288: fi
23289: else
23290: # PORTME fill in a description of your system's linker (not GNU ld)
23291: case $host_os in
23292: aix3*)
23293: allow_undefined_flag_F77=unsupported
23294: always_export_symbols_F77=yes
23295: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23296: # Note: this linker hardcodes the directories in LIBPATH if there
23297: # are no directories specified by -L.
23298: hardcode_minus_L_F77=yes
1.1.1.5 ! root 23299: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 23300: # Neither direct hardcoding nor static linking is supported with a
23301: # broken collect2.
23302: hardcode_direct_F77=unsupported
23303: fi
23304: ;;
23305:
23306: aix4* | aix5*)
23307: if test "$host_cpu" = ia64; then
23308: # On IA64, the linker does run time linking by default, so we don't
23309: # have to do anything special.
23310: aix_use_runtimelinking=no
23311: exp_sym_flag='-Bexport'
23312: no_entry_flag=""
23313: else
23314: # If we're using GNU nm, then we don't want the "-C" option.
23315: # -C means demangle to AIX nm, but means don't demangle with GNU nm
23316: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23317: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23318: else
23319: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23320: fi
23321: aix_use_runtimelinking=no
23322:
23323: # Test if we are trying to use run time linking or normal
23324: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23325: # need to do runtime linking.
23326: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23327: for ld_flag in $LDFLAGS; do
23328: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23329: aix_use_runtimelinking=yes
23330: break
23331: fi
23332: done
1.1.1.5 ! root 23333: ;;
1.1 root 23334: esac
23335:
23336: exp_sym_flag='-bexport'
23337: no_entry_flag='-bnoentry'
23338: fi
23339:
23340: # When large executables or shared objects are built, AIX ld can
23341: # have problems creating the table of contents. If linking a library
23342: # or program results in "error TOC overflow" add -mminimal-toc to
23343: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23344: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23345:
23346: archive_cmds_F77=''
23347: hardcode_direct_F77=yes
23348: hardcode_libdir_separator_F77=':'
23349: link_all_deplibs_F77=yes
23350:
23351: if test "$GCC" = yes; then
1.1.1.5 ! root 23352: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 23353: # We only want to do this on AIX 4.2 and lower, the check
23354: # below for broken collect2 doesn't work under 4.3+
23355: collect2name=`${CC} -print-prog-name=collect2`
23356: if test -f "$collect2name" && \
23357: strings "$collect2name" | grep resolve_lib_name >/dev/null
23358: then
23359: # We have reworked collect2
1.1.1.5 ! root 23360: :
1.1 root 23361: else
23362: # We have old collect2
23363: hardcode_direct_F77=unsupported
23364: # It fails to find uninstalled libraries when the uninstalled
23365: # path is not listed in the libpath. Setting hardcode_minus_L
23366: # to unsupported forces relinking
23367: hardcode_minus_L_F77=yes
23368: hardcode_libdir_flag_spec_F77='-L$libdir'
23369: hardcode_libdir_separator_F77=
23370: fi
1.1.1.5 ! root 23371: ;;
1.1 root 23372: esac
23373: shared_flag='-shared'
1.1.1.5 ! root 23374: if test "$aix_use_runtimelinking" = yes; then
! 23375: shared_flag="$shared_flag "'${wl}-G'
! 23376: fi
1.1 root 23377: else
23378: # not using gcc
23379: if test "$host_cpu" = ia64; then
23380: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23381: # chokes on -Wl,-G. The following line is correct:
23382: shared_flag='-G'
23383: else
1.1.1.5 ! root 23384: if test "$aix_use_runtimelinking" = yes; then
1.1 root 23385: shared_flag='${wl}-G'
23386: else
23387: shared_flag='${wl}-bM:SRE'
1.1.1.5 ! root 23388: fi
1.1 root 23389: fi
23390: fi
23391:
23392: # It seems that -bexpall does not export symbols beginning with
23393: # underscore (_), so it is better to generate a list of symbols to export.
23394: always_export_symbols_F77=yes
23395: if test "$aix_use_runtimelinking" = yes; then
23396: # Warning - without using the other runtime loading flags (-brtl),
23397: # -berok will link without error, but may produce a broken library.
23398: allow_undefined_flag_F77='-berok'
23399: # Determine the default libpath from the value encoded in an empty executable.
23400: cat >conftest.$ac_ext <<_ACEOF
23401: program main
23402:
23403: end
23404: _ACEOF
23405: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 23406: if { (ac_try="$ac_link"
! 23407: case "(($ac_try" in
! 23408: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23409: *) ac_try_echo=$ac_try;;
! 23410: esac
! 23411: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23412: (eval "$ac_link") 2>conftest.er1
1.1 root 23413: ac_status=$?
1.1.1.5 ! root 23414: grep -v '^ *+' conftest.er1 >conftest.err
! 23415: rm -f conftest.er1
! 23416: cat conftest.err >&5
1.1 root 23417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 23418: (exit $ac_status); } && {
! 23419: test -z "$ac_f77_werror_flag" ||
! 23420: test ! -s conftest.err
! 23421: } && test -s conftest$ac_exeext &&
! 23422: $as_test_x conftest$ac_exeext; then
! 23423:
! 23424: lt_aix_libpath_sed='
! 23425: /Import File Strings/,/^$/ {
! 23426: /^0/ {
! 23427: s/^0 *\(.*\)$/\1/
! 23428: p
! 23429: }
! 23430: }'
! 23431: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 23432: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 23433: if test -z "$aix_libpath"; then
! 23434: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 23435: fi
1.1 root 23436: else
23437: echo "$as_me: failed program was:" >&5
23438: sed 's/^/| /' conftest.$ac_ext >&5
23439:
1.1.1.5 ! root 23440:
1.1 root 23441: fi
1.1.1.5 ! root 23442:
! 23443: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 23444: conftest$ac_exeext conftest.$ac_ext
1.1 root 23445: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23446:
23447: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.5 ! root 23448: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1 root 23449: else
23450: if test "$host_cpu" = ia64; then
23451: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23452: allow_undefined_flag_F77="-z nodefs"
1.1.1.5 ! root 23453: archive_expsym_cmds_F77="\$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"
1.1 root 23454: else
23455: # Determine the default libpath from the value encoded in an empty executable.
23456: cat >conftest.$ac_ext <<_ACEOF
23457: program main
23458:
23459: end
23460: _ACEOF
23461: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 23462: if { (ac_try="$ac_link"
! 23463: case "(($ac_try" in
! 23464: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23465: *) ac_try_echo=$ac_try;;
! 23466: esac
! 23467: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23468: (eval "$ac_link") 2>conftest.er1
1.1 root 23469: ac_status=$?
1.1.1.5 ! root 23470: grep -v '^ *+' conftest.er1 >conftest.err
! 23471: rm -f conftest.er1
! 23472: cat conftest.err >&5
1.1 root 23473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 23474: (exit $ac_status); } && {
! 23475: test -z "$ac_f77_werror_flag" ||
! 23476: test ! -s conftest.err
! 23477: } && test -s conftest$ac_exeext &&
! 23478: $as_test_x conftest$ac_exeext; then
! 23479:
! 23480: lt_aix_libpath_sed='
! 23481: /Import File Strings/,/^$/ {
! 23482: /^0/ {
! 23483: s/^0 *\(.*\)$/\1/
! 23484: p
! 23485: }
! 23486: }'
! 23487: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 23488: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 23489: if test -z "$aix_libpath"; then
! 23490: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 23491: fi
1.1 root 23492: else
23493: echo "$as_me: failed program was:" >&5
23494: sed 's/^/| /' conftest.$ac_ext >&5
23495:
1.1.1.5 ! root 23496:
1.1 root 23497: fi
1.1.1.5 ! root 23498:
! 23499: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 23500: conftest$ac_exeext conftest.$ac_ext
1.1 root 23501: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23502:
23503: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23504: # Warning - without using the other run time loading flags,
23505: # -berok will link without error, but may produce a broken library.
23506: no_undefined_flag_F77=' ${wl}-bernotok'
23507: allow_undefined_flag_F77=' ${wl}-berok'
23508: # Exported symbols can be pulled into shared objects from archives
1.1.1.5 ! root 23509: whole_archive_flag_spec_F77='$convenience'
1.1 root 23510: archive_cmds_need_lc_F77=yes
1.1.1.5 ! root 23511: # This is similar to how AIX traditionally builds its shared libraries.
! 23512: archive_expsym_cmds_F77="\$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'
1.1 root 23513: fi
23514: fi
23515: ;;
23516:
23517: amigaos*)
23518: archive_cmds_F77='$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)'
23519: hardcode_libdir_flag_spec_F77='-L$libdir'
23520: hardcode_minus_L_F77=yes
23521: # see comment about different semantics on the GNU ld section
23522: ld_shlibs_F77=no
23523: ;;
23524:
1.1.1.5 ! root 23525: bsdi[45]*)
1.1 root 23526: export_dynamic_flag_spec_F77=-rdynamic
23527: ;;
23528:
23529: cygwin* | mingw* | pw32*)
23530: # When not using gcc, we currently assume that we are using
23531: # Microsoft Visual C++.
23532: # hardcode_libdir_flag_spec is actually meaningless, as there is
23533: # no search path for DLLs.
23534: hardcode_libdir_flag_spec_F77=' '
23535: allow_undefined_flag_F77=unsupported
23536: # Tell ltmain to make .lib files, not .a files.
23537: libext=lib
23538: # Tell ltmain to make .dll files, not .so files.
1.1.1.5 ! root 23539: shrext_cmds=".dll"
1.1 root 23540: # FIXME: Setting linknames here is a bad hack.
23541: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23542: # The linker will automatically build a .lib file if we build a DLL.
23543: old_archive_From_new_cmds_F77='true'
23544: # FIXME: Should let the user specify the lib program.
1.1.1.5 ! root 23545: old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 23546: fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
1.1 root 23547: enable_shared_with_static_runtimes_F77=yes
23548: ;;
23549:
23550: darwin* | rhapsody*)
1.1.1.5 ! root 23551: case $host_os in
! 23552: rhapsody* | darwin1.[012])
! 23553: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
! 23554: ;;
! 23555: *) # Darwin 1.3 on
! 23556: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 23557: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 23558: else
! 23559: case ${MACOSX_DEPLOYMENT_TARGET} in
! 23560: 10.[012])
! 23561: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 23562: ;;
! 23563: 10.*)
! 23564: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
! 23565: ;;
! 23566: esac
! 23567: fi
! 23568: ;;
1.1 root 23569: esac
1.1.1.5 ! root 23570: archive_cmds_need_lc_F77=no
1.1 root 23571: hardcode_direct_F77=no
23572: hardcode_automatic_F77=yes
23573: hardcode_shlibpath_var_F77=unsupported
1.1.1.5 ! root 23574: whole_archive_flag_spec_F77=''
1.1 root 23575: link_all_deplibs_F77=yes
1.1.1.5 ! root 23576: if test "$GCC" = yes ; then
! 23577: output_verbose_link_cmd='echo'
! 23578: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 23579: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 23580: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 23581: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 23582: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 23583: else
! 23584: case $cc_basename in
! 23585: xlc*)
! 23586: output_verbose_link_cmd='echo'
! 23587: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 23588: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 23589: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 23590: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 23591: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 23592: ;;
! 23593: *)
! 23594: ld_shlibs_F77=no
! 23595: ;;
! 23596: esac
1.1 root 23597: fi
23598: ;;
23599:
23600: dgux*)
23601: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23602: hardcode_libdir_flag_spec_F77='-L$libdir'
23603: hardcode_shlibpath_var_F77=no
23604: ;;
23605:
23606: freebsd1*)
23607: ld_shlibs_F77=no
23608: ;;
23609:
23610: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23611: # support. Future versions do this automatically, but an explicit c++rt0.o
23612: # does not break anything, and helps significantly (at the cost of a little
23613: # extra space).
23614: freebsd2.2*)
23615: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23616: hardcode_libdir_flag_spec_F77='-R$libdir'
23617: hardcode_direct_F77=yes
23618: hardcode_shlibpath_var_F77=no
23619: ;;
23620:
23621: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23622: freebsd2*)
23623: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23624: hardcode_direct_F77=yes
23625: hardcode_minus_L_F77=yes
23626: hardcode_shlibpath_var_F77=no
23627: ;;
23628:
23629: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.5 ! root 23630: freebsd* | dragonfly*)
1.1 root 23631: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23632: hardcode_libdir_flag_spec_F77='-R$libdir'
23633: hardcode_direct_F77=yes
23634: hardcode_shlibpath_var_F77=no
23635: ;;
23636:
23637: hpux9*)
23638: if test "$GCC" = yes; then
23639: archive_cmds_F77='$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'
23640: else
23641: archive_cmds_F77='$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'
23642: fi
23643: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23644: hardcode_libdir_separator_F77=:
23645: hardcode_direct_F77=yes
23646:
23647: # hardcode_minus_L: Not really in the search PATH,
23648: # but as the default location of the library.
23649: hardcode_minus_L_F77=yes
23650: export_dynamic_flag_spec_F77='${wl}-E'
23651: ;;
23652:
1.1.1.5 ! root 23653: hpux10*)
1.1 root 23654: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.5 ! root 23655: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 23656: else
! 23657: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 23658: fi
! 23659: if test "$with_gnu_ld" = no; then
! 23660: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 23661: hardcode_libdir_separator_F77=:
! 23662:
! 23663: hardcode_direct_F77=yes
! 23664: export_dynamic_flag_spec_F77='${wl}-E'
! 23665:
! 23666: # hardcode_minus_L: Not really in the search PATH,
! 23667: # but as the default location of the library.
! 23668: hardcode_minus_L_F77=yes
! 23669: fi
! 23670: ;;
! 23671:
! 23672: hpux11*)
! 23673: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 23674: case $host_cpu in
! 23675: hppa*64*)
1.1 root 23676: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23677: ;;
1.1.1.5 ! root 23678: ia64*)
! 23679: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 23680: ;;
1.1 root 23681: *)
23682: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23683: ;;
23684: esac
23685: else
1.1.1.5 ! root 23686: case $host_cpu in
! 23687: hppa*64*)
! 23688: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23689: ;;
! 23690: ia64*)
! 23691: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 23692: ;;
23693: *)
1.1.1.5 ! root 23694: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 23695: ;;
23696: esac
23697: fi
23698: if test "$with_gnu_ld" = no; then
1.1.1.5 ! root 23699: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 23700: hardcode_libdir_separator_F77=:
! 23701:
! 23702: case $host_cpu in
! 23703: hppa*64*|ia64*)
1.1 root 23704: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23705: hardcode_direct_F77=no
23706: hardcode_shlibpath_var_F77=no
23707: ;;
23708: *)
23709: hardcode_direct_F77=yes
23710: export_dynamic_flag_spec_F77='${wl}-E'
23711:
23712: # hardcode_minus_L: Not really in the search PATH,
23713: # but as the default location of the library.
23714: hardcode_minus_L_F77=yes
23715: ;;
23716: esac
23717: fi
23718: ;;
23719:
23720: irix5* | irix6* | nonstopux*)
23721: if test "$GCC" = yes; then
23722: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23723: else
23724: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23725: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23726: fi
23727: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23728: hardcode_libdir_separator_F77=:
23729: link_all_deplibs_F77=yes
23730: ;;
23731:
23732: netbsd*)
23733: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23734: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23735: else
23736: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23737: fi
23738: hardcode_libdir_flag_spec_F77='-R$libdir'
23739: hardcode_direct_F77=yes
23740: hardcode_shlibpath_var_F77=no
23741: ;;
23742:
23743: newsos6)
23744: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23745: hardcode_direct_F77=yes
23746: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23747: hardcode_libdir_separator_F77=:
23748: hardcode_shlibpath_var_F77=no
23749: ;;
23750:
23751: openbsd*)
1.1.1.5 ! root 23752: if test -f /usr/libexec/ld.so; then
! 23753: hardcode_direct_F77=yes
! 23754: hardcode_shlibpath_var_F77=no
! 23755: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 23756: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 23757: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 23758: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 23759: export_dynamic_flag_spec_F77='${wl}-E'
! 23760: else
! 23761: case $host_os in
! 23762: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 23763: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 23764: hardcode_libdir_flag_spec_F77='-R$libdir'
! 23765: ;;
! 23766: *)
! 23767: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 23768: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 23769: ;;
! 23770: esac
! 23771: fi
1.1 root 23772: else
1.1.1.5 ! root 23773: ld_shlibs_F77=no
1.1 root 23774: fi
23775: ;;
23776:
23777: os2*)
23778: hardcode_libdir_flag_spec_F77='-L$libdir'
23779: hardcode_minus_L_F77=yes
23780: allow_undefined_flag_F77=unsupported
23781: archive_cmds_F77='$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'
23782: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23783: ;;
23784:
23785: osf3*)
23786: if test "$GCC" = yes; then
23787: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23788: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23789: else
23790: allow_undefined_flag_F77=' -expect_unresolved \*'
23791: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23792: fi
23793: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23794: hardcode_libdir_separator_F77=:
23795: ;;
23796:
23797: osf4* | osf5*) # as osf3* with the addition of -msym flag
23798: if test "$GCC" = yes; then
23799: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23800: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23801: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23802: else
23803: allow_undefined_flag_F77=' -expect_unresolved \*'
23804: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23805: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.1.1.5 ! root 23806: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.1 root 23807:
23808: # Both c and cxx compiler support -rpath directly
23809: hardcode_libdir_flag_spec_F77='-rpath $libdir'
23810: fi
23811: hardcode_libdir_separator_F77=:
23812: ;;
23813:
23814: solaris*)
23815: no_undefined_flag_F77=' -z text'
23816: if test "$GCC" = yes; then
1.1.1.5 ! root 23817: wlarc='${wl}'
1.1 root 23818: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23819: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23820: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23821: else
1.1.1.5 ! root 23822: wlarc=''
1.1 root 23823: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23824: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23825: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23826: fi
23827: hardcode_libdir_flag_spec_F77='-R$libdir'
23828: hardcode_shlibpath_var_F77=no
23829: case $host_os in
23830: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.5 ! root 23831: *)
! 23832: # The compiler driver will combine and reorder linker options,
! 23833: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 23834: # but is careful enough not to reorder.
! 23835: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 23836: if test "$GCC" = yes; then
! 23837: whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 23838: else
! 23839: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
! 23840: fi
! 23841: ;;
1.1 root 23842: esac
23843: link_all_deplibs_F77=yes
23844: ;;
23845:
23846: sunos4*)
23847: if test "x$host_vendor" = xsequent; then
23848: # Use $CC to link under sequent, because it throws in some extra .o
23849: # files that make .init and .fini sections work.
23850: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23851: else
23852: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23853: fi
23854: hardcode_libdir_flag_spec_F77='-L$libdir'
23855: hardcode_direct_F77=yes
23856: hardcode_minus_L_F77=yes
23857: hardcode_shlibpath_var_F77=no
23858: ;;
23859:
23860: sysv4)
23861: case $host_vendor in
23862: sni)
23863: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23864: hardcode_direct_F77=yes # is this really true???
23865: ;;
23866: siemens)
23867: ## LD is ld it makes a PLAMLIB
23868: ## CC just makes a GrossModule.
23869: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23870: reload_cmds_F77='$CC -r -o $output$reload_objs'
23871: hardcode_direct_F77=no
23872: ;;
23873: motorola)
23874: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23875: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23876: ;;
23877: esac
23878: runpath_var='LD_RUN_PATH'
23879: hardcode_shlibpath_var_F77=no
23880: ;;
23881:
23882: sysv4.3*)
23883: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23884: hardcode_shlibpath_var_F77=no
23885: export_dynamic_flag_spec_F77='-Bexport'
23886: ;;
23887:
23888: sysv4*MP*)
23889: if test -d /usr/nec; then
23890: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23891: hardcode_shlibpath_var_F77=no
23892: runpath_var=LD_RUN_PATH
23893: hardcode_runpath_var=yes
23894: ld_shlibs_F77=yes
23895: fi
23896: ;;
23897:
1.1.1.5 ! root 23898: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 23899: no_undefined_flag_F77='${wl}-z,text'
! 23900: archive_cmds_need_lc_F77=no
1.1 root 23901: hardcode_shlibpath_var_F77=no
1.1.1.5 ! root 23902: runpath_var='LD_RUN_PATH'
1.1 root 23903:
23904: if test "$GCC" = yes; then
1.1.1.5 ! root 23905: archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23906: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 23907: else
1.1.1.5 ! root 23908: archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23909: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 23910: fi
23911: ;;
23912:
1.1.1.5 ! root 23913: sysv5* | sco3.2v5* | sco5v6*)
! 23914: # Note: We can NOT use -z defs as we might desire, because we do not
! 23915: # link with -lc, and that would cause any symbols used from libc to
! 23916: # always be unresolved, which means just about no library would
! 23917: # ever link correctly. If we're not using GNU ld we use -z text
! 23918: # though, which does catch some bad symbols but isn't as heavy-handed
! 23919: # as -z defs.
! 23920: no_undefined_flag_F77='${wl}-z,text'
! 23921: allow_undefined_flag_F77='${wl}-z,nodefs'
! 23922: archive_cmds_need_lc_F77=no
1.1 root 23923: hardcode_shlibpath_var_F77=no
1.1.1.5 ! root 23924: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 23925: hardcode_libdir_separator_F77=':'
! 23926: link_all_deplibs_F77=yes
! 23927: export_dynamic_flag_spec_F77='${wl}-Bexport'
1.1 root 23928: runpath_var='LD_RUN_PATH'
1.1.1.5 ! root 23929:
! 23930: if test "$GCC" = yes; then
! 23931: archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23932: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23933: else
! 23934: archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23935: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 23936: fi
1.1 root 23937: ;;
23938:
23939: uts4*)
23940: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23941: hardcode_libdir_flag_spec_F77='-L$libdir'
23942: hardcode_shlibpath_var_F77=no
23943: ;;
23944:
23945: *)
23946: ld_shlibs_F77=no
23947: ;;
23948: esac
23949: fi
23950:
1.1.1.5 ! root 23951: { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
! 23952: echo "${ECHO_T}$ld_shlibs_F77" >&6; }
1.1 root 23953: test "$ld_shlibs_F77" = no && can_build_shared=no
23954:
23955: #
23956: # Do we need to explicitly link libc?
23957: #
23958: case "x$archive_cmds_need_lc_F77" in
23959: x|xyes)
23960: # Assume -lc should be added
23961: archive_cmds_need_lc_F77=yes
23962:
23963: if test "$enable_shared" = yes && test "$GCC" = yes; then
23964: case $archive_cmds_F77 in
23965: *'~'*)
23966: # FIXME: we may have to deal with multi-command sequences.
23967: ;;
23968: '$CC '*)
23969: # Test whether the compiler implicitly links with -lc since on some
23970: # systems, -lgcc has to come before -lc. If gcc already passes -lc
23971: # to ld, don't add -lc before -lgcc.
1.1.1.5 ! root 23972: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 23973: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 23974: $rm conftest*
1.1.1.5 ! root 23975: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 23976:
23977: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23978: (eval $ac_compile) 2>&5
23979: ac_status=$?
23980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981: (exit $ac_status); } 2>conftest.err; then
23982: soname=conftest
23983: lib=conftest
23984: libobjs=conftest.$ac_objext
23985: deplibs=
23986: wl=$lt_prog_compiler_wl_F77
1.1.1.5 ! root 23987: pic_flag=$lt_prog_compiler_pic_F77
1.1 root 23988: compiler_flags=-v
23989: linker_flags=-v
23990: verstring=
23991: output_objdir=.
23992: libname=conftest
23993: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23994: allow_undefined_flag_F77=
23995: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23996: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23997: ac_status=$?
23998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999: (exit $ac_status); }
24000: then
24001: archive_cmds_need_lc_F77=no
24002: else
24003: archive_cmds_need_lc_F77=yes
24004: fi
24005: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
24006: else
24007: cat conftest.err 1>&5
24008: fi
24009: $rm conftest*
1.1.1.5 ! root 24010: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
! 24011: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
1.1 root 24012: ;;
24013: esac
24014: fi
24015: ;;
24016: esac
24017:
1.1.1.5 ! root 24018: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 24019: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 root 24020: library_names_spec=
24021: libname_spec='lib$name'
24022: soname_spec=
1.1.1.5 ! root 24023: shrext_cmds=".so"
1.1 root 24024: postinstall_cmds=
24025: postuninstall_cmds=
24026: finish_cmds=
24027: finish_eval=
24028: shlibpath_var=
24029: shlibpath_overrides_runpath=unknown
24030: version_type=none
24031: dynamic_linker="$host_os ld.so"
24032: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1.5 ! root 24033:
1.1 root 24034: need_lib_prefix=unknown
24035: hardcode_into_libs=no
24036:
24037: # when you set need_version to no, make sure it does not cause -set_version
24038: # flags to be left without arguments
24039: need_version=unknown
24040:
24041: case $host_os in
24042: aix3*)
24043: version_type=linux
24044: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24045: shlibpath_var=LIBPATH
24046:
24047: # AIX 3 has no versioning support, so we append a major version to the name.
24048: soname_spec='${libname}${release}${shared_ext}$major'
24049: ;;
24050:
24051: aix4* | aix5*)
24052: version_type=linux
24053: need_lib_prefix=no
24054: need_version=no
24055: hardcode_into_libs=yes
24056: if test "$host_cpu" = ia64; then
24057: # AIX 5 supports IA64
24058: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24059: shlibpath_var=LD_LIBRARY_PATH
24060: else
24061: # With GCC up to 2.95.x, collect2 would create an import file
24062: # for dependence libraries. The import file would start with
24063: # the line `#! .'. This would cause the generated library to
24064: # depend on `.', always an invalid library. This was fixed in
24065: # development snapshots of GCC prior to 3.0.
24066: case $host_os in
24067: aix4 | aix4.[01] | aix4.[01].*)
24068: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24069: echo ' yes '
24070: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24071: :
24072: else
24073: can_build_shared=no
24074: fi
24075: ;;
24076: esac
24077: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24078: # soname into executable. Probably we can add versioning support to
24079: # collect2, so additional links can be useful in future.
24080: if test "$aix_use_runtimelinking" = yes; then
24081: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24082: # instead of lib<name>.a to let people know that these are not
24083: # typical AIX shared libraries.
24084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24085: else
24086: # We preserve .a as extension for shared libraries through AIX4.2
24087: # and later when we are not doing run time linking.
24088: library_names_spec='${libname}${release}.a $libname.a'
24089: soname_spec='${libname}${release}${shared_ext}$major'
24090: fi
24091: shlibpath_var=LIBPATH
24092: fi
24093: ;;
24094:
24095: amigaos*)
24096: library_names_spec='$libname.ixlibrary $libname.a'
24097: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.5 ! root 24098: 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'
1.1 root 24099: ;;
24100:
24101: beos*)
24102: library_names_spec='${libname}${shared_ext}'
24103: dynamic_linker="$host_os ld.so"
24104: shlibpath_var=LIBRARY_PATH
24105: ;;
24106:
1.1.1.5 ! root 24107: bsdi[45]*)
1.1 root 24108: version_type=linux
24109: need_version=no
24110: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24111: soname_spec='${libname}${release}${shared_ext}$major'
24112: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24113: shlibpath_var=LD_LIBRARY_PATH
24114: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24115: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24116: # the default ld.so.conf also contains /usr/contrib/lib and
24117: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24118: # libtool to hard-code these into programs
24119: ;;
24120:
24121: cygwin* | mingw* | pw32*)
24122: version_type=windows
1.1.1.5 ! root 24123: shrext_cmds=".dll"
1.1 root 24124: need_version=no
24125: need_lib_prefix=no
24126:
24127: case $GCC,$host_os in
24128: yes,cygwin* | yes,mingw* | yes,pw32*)
24129: library_names_spec='$libname.dll.a'
24130: # DLL is installed to $(libdir)/../bin by postinstall_cmds
24131: postinstall_cmds='base_file=`basename \${file}`~
24132: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24133: dldir=$destdir/`dirname \$dlpath`~
24134: test -d \$dldir || mkdir -p \$dldir~
1.1.1.5 ! root 24135: $install_prog $dir/$dlname \$dldir/$dlname~
! 24136: chmod a+x \$dldir/$dlname'
1.1 root 24137: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24138: dlpath=$dir/\$dldll~
24139: $rm \$dlpath'
24140: shlibpath_overrides_runpath=yes
24141:
24142: case $host_os in
24143: cygwin*)
24144: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24145: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.5 ! root 24146: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 24147: ;;
24148: mingw*)
24149: # MinGW DLLs use traditional 'lib' prefix
24150: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24151: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24152: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24153: # It is most probably a Windows format PATH printed by
24154: # mingw gcc, but we are running on Cygwin. Gcc prints its search
24155: # path with ; separators, and with drive letters. We can handle the
24156: # drive letters (cygwin fileutils understands them), so leave them,
24157: # especially as we might pass files found there to a mingw objdump,
24158: # which wouldn't understand a cygwinified path. Ahh.
24159: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24160: else
24161: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24162: fi
24163: ;;
24164: pw32*)
24165: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.5 ! root 24166: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 24167: ;;
24168: esac
24169: ;;
24170:
24171: *)
24172: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24173: ;;
24174: esac
24175: dynamic_linker='Win32 ld.exe'
24176: # FIXME: first we should search . and the directory the executable is in
24177: shlibpath_var=PATH
24178: ;;
24179:
24180: darwin* | rhapsody*)
24181: dynamic_linker="$host_os dyld"
24182: version_type=darwin
24183: need_lib_prefix=no
24184: need_version=no
24185: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24186: soname_spec='${libname}${release}${major}$shared_ext'
24187: shlibpath_overrides_runpath=yes
24188: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.5 ! root 24189: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 24190:
1.1 root 24191: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24192: ;;
24193:
24194: dgux*)
24195: version_type=linux
24196: need_lib_prefix=no
24197: need_version=no
24198: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24199: soname_spec='${libname}${release}${shared_ext}$major'
24200: shlibpath_var=LD_LIBRARY_PATH
24201: ;;
24202:
24203: freebsd1*)
24204: dynamic_linker=no
24205: ;;
24206:
1.1.1.5 ! root 24207: freebsd* | dragonfly*)
! 24208: # DragonFly does not have aout. When/if they implement a new
! 24209: # versioning mechanism, adjust this.
! 24210: if test -x /usr/bin/objformat; then
! 24211: objformat=`/usr/bin/objformat`
! 24212: else
! 24213: case $host_os in
! 24214: freebsd[123]*) objformat=aout ;;
! 24215: *) objformat=elf ;;
! 24216: esac
! 24217: fi
1.1 root 24218: version_type=freebsd-$objformat
24219: case $version_type in
24220: freebsd-elf*)
24221: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24222: need_version=no
24223: need_lib_prefix=no
24224: ;;
24225: freebsd-*)
24226: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24227: need_version=yes
24228: ;;
24229: esac
24230: shlibpath_var=LD_LIBRARY_PATH
24231: case $host_os in
24232: freebsd2*)
24233: shlibpath_overrides_runpath=yes
24234: ;;
1.1.1.5 ! root 24235: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 24236: shlibpath_overrides_runpath=yes
24237: hardcode_into_libs=yes
24238: ;;
1.1.1.5 ! root 24239: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 24240: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 24241: shlibpath_overrides_runpath=no
24242: hardcode_into_libs=yes
24243: ;;
1.1.1.5 ! root 24244: *) # from 4.6 on, and DragonFly
! 24245: shlibpath_overrides_runpath=yes
! 24246: hardcode_into_libs=yes
! 24247: ;;
1.1 root 24248: esac
24249: ;;
24250:
24251: gnu*)
24252: version_type=linux
24253: need_lib_prefix=no
24254: need_version=no
24255: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24256: soname_spec='${libname}${release}${shared_ext}$major'
24257: shlibpath_var=LD_LIBRARY_PATH
24258: hardcode_into_libs=yes
24259: ;;
24260:
24261: hpux9* | hpux10* | hpux11*)
24262: # Give a soname corresponding to the major version so that dld.sl refuses to
24263: # link against other versions.
24264: version_type=sunos
24265: need_lib_prefix=no
24266: need_version=no
1.1.1.5 ! root 24267: case $host_cpu in
1.1 root 24268: ia64*)
1.1.1.5 ! root 24269: shrext_cmds='.so'
1.1 root 24270: hardcode_into_libs=yes
24271: dynamic_linker="$host_os dld.so"
24272: shlibpath_var=LD_LIBRARY_PATH
24273: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24274: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24275: soname_spec='${libname}${release}${shared_ext}$major'
24276: if test "X$HPUX_IA64_MODE" = X32; then
24277: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24278: else
24279: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24280: fi
24281: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24282: ;;
24283: hppa*64*)
1.1.1.5 ! root 24284: shrext_cmds='.sl'
1.1 root 24285: hardcode_into_libs=yes
24286: dynamic_linker="$host_os dld.sl"
24287: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24288: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24289: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24290: soname_spec='${libname}${release}${shared_ext}$major'
24291: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24292: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24293: ;;
24294: *)
1.1.1.5 ! root 24295: shrext_cmds='.sl'
1.1 root 24296: dynamic_linker="$host_os dld.sl"
24297: shlibpath_var=SHLIB_PATH
24298: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24299: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24300: soname_spec='${libname}${release}${shared_ext}$major'
24301: ;;
24302: esac
24303: # HP-UX runs *really* slowly unless shared libraries are mode 555.
24304: postinstall_cmds='chmod 555 $lib'
24305: ;;
24306:
1.1.1.5 ! root 24307: interix[3-9]*)
! 24308: version_type=linux
! 24309: need_lib_prefix=no
! 24310: need_version=no
! 24311: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 24312: soname_spec='${libname}${release}${shared_ext}$major'
! 24313: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 24314: shlibpath_var=LD_LIBRARY_PATH
! 24315: shlibpath_overrides_runpath=no
! 24316: hardcode_into_libs=yes
! 24317: ;;
! 24318:
1.1 root 24319: irix5* | irix6* | nonstopux*)
24320: case $host_os in
24321: nonstopux*) version_type=nonstopux ;;
24322: *)
24323: if test "$lt_cv_prog_gnu_ld" = yes; then
24324: version_type=linux
24325: else
24326: version_type=irix
24327: fi ;;
24328: esac
24329: need_lib_prefix=no
24330: need_version=no
24331: soname_spec='${libname}${release}${shared_ext}$major'
24332: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24333: case $host_os in
24334: irix5* | nonstopux*)
24335: libsuff= shlibsuff=
24336: ;;
24337: *)
24338: case $LD in # libtool.m4 will add one of these switches to LD
24339: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24340: libsuff= shlibsuff= libmagic=32-bit;;
24341: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24342: libsuff=32 shlibsuff=N32 libmagic=N32;;
24343: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24344: libsuff=64 shlibsuff=64 libmagic=64-bit;;
24345: *) libsuff= shlibsuff= libmagic=never-match;;
24346: esac
24347: ;;
24348: esac
24349: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24350: shlibpath_overrides_runpath=no
24351: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24352: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24353: hardcode_into_libs=yes
24354: ;;
24355:
24356: # No shared lib support for Linux oldld, aout, or coff.
24357: linux*oldld* | linux*aout* | linux*coff*)
24358: dynamic_linker=no
24359: ;;
24360:
24361: # This must be Linux ELF.
1.1.1.5 ! root 24362: linux* | k*bsd*-gnu)
1.1 root 24363: version_type=linux
24364: need_lib_prefix=no
24365: need_version=no
24366: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24367: soname_spec='${libname}${release}${shared_ext}$major'
24368: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24369: shlibpath_var=LD_LIBRARY_PATH
24370: shlibpath_overrides_runpath=no
24371: # This implies no fast_install, which is unacceptable.
24372: # Some rework will be needed to allow for fast_install
24373: # before this can be enabled.
24374: hardcode_into_libs=yes
24375:
1.1.1.5 ! root 24376: # Append ld.so.conf contents to the search path
! 24377: if test -f /etc/ld.so.conf; then
! 24378: 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' ' '`
! 24379: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 24380: fi
! 24381:
1.1 root 24382: # We used to test for /lib/ld.so.1 and disable shared libraries on
24383: # powerpc, because MkLinux only supported shared libraries with the
24384: # GNU dynamic linker. Since this was broken with cross compilers,
24385: # most powerpc-linux boxes support dynamic linking these days and
24386: # people can always --disable-shared, the test was removed, and we
24387: # assume the GNU/Linux dynamic linker is in use.
24388: dynamic_linker='GNU/Linux ld.so'
24389: ;;
24390:
24391: netbsd*)
24392: version_type=sunos
24393: need_lib_prefix=no
24394: need_version=no
24395: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24396: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24397: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24398: dynamic_linker='NetBSD (a.out) ld.so'
24399: else
1.1.1.5 ! root 24400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 24401: soname_spec='${libname}${release}${shared_ext}$major'
24402: dynamic_linker='NetBSD ld.elf_so'
24403: fi
24404: shlibpath_var=LD_LIBRARY_PATH
24405: shlibpath_overrides_runpath=yes
24406: hardcode_into_libs=yes
24407: ;;
24408:
24409: newsos6)
24410: version_type=linux
24411: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24412: shlibpath_var=LD_LIBRARY_PATH
24413: shlibpath_overrides_runpath=yes
24414: ;;
24415:
1.1.1.5 ! root 24416: nto-qnx*)
1.1 root 24417: version_type=linux
24418: need_lib_prefix=no
24419: need_version=no
24420: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24421: soname_spec='${libname}${release}${shared_ext}$major'
24422: shlibpath_var=LD_LIBRARY_PATH
24423: shlibpath_overrides_runpath=yes
24424: ;;
24425:
24426: openbsd*)
24427: version_type=sunos
1.1.1.5 ! root 24428: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 24429: need_lib_prefix=no
1.1.1.5 ! root 24430: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 24431: case $host_os in
! 24432: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 24433: *) need_version=no ;;
! 24434: esac
1.1 root 24435: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24436: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24437: shlibpath_var=LD_LIBRARY_PATH
24438: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24439: case $host_os in
24440: openbsd2.[89] | openbsd2.[89].*)
24441: shlibpath_overrides_runpath=no
24442: ;;
24443: *)
24444: shlibpath_overrides_runpath=yes
24445: ;;
24446: esac
24447: else
24448: shlibpath_overrides_runpath=yes
24449: fi
24450: ;;
24451:
24452: os2*)
24453: libname_spec='$name'
1.1.1.5 ! root 24454: shrext_cmds=".dll"
1.1 root 24455: need_lib_prefix=no
24456: library_names_spec='$libname${shared_ext} $libname.a'
24457: dynamic_linker='OS/2 ld.exe'
24458: shlibpath_var=LIBPATH
24459: ;;
24460:
24461: osf3* | osf4* | osf5*)
24462: version_type=osf
24463: need_lib_prefix=no
24464: need_version=no
24465: soname_spec='${libname}${release}${shared_ext}$major'
24466: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24467: shlibpath_var=LD_LIBRARY_PATH
24468: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24469: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24470: ;;
24471:
1.1.1.5 ! root 24472: rdos*)
! 24473: dynamic_linker=no
1.1 root 24474: ;;
24475:
24476: solaris*)
24477: version_type=linux
24478: need_lib_prefix=no
24479: need_version=no
24480: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24481: soname_spec='${libname}${release}${shared_ext}$major'
24482: shlibpath_var=LD_LIBRARY_PATH
24483: shlibpath_overrides_runpath=yes
24484: hardcode_into_libs=yes
24485: # ldd complains unless libraries are executable
24486: postinstall_cmds='chmod +x $lib'
24487: ;;
24488:
24489: sunos4*)
24490: version_type=sunos
24491: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24492: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24493: shlibpath_var=LD_LIBRARY_PATH
24494: shlibpath_overrides_runpath=yes
24495: if test "$with_gnu_ld" = yes; then
24496: need_lib_prefix=no
24497: fi
24498: need_version=yes
24499: ;;
24500:
1.1.1.5 ! root 24501: sysv4 | sysv4.3*)
1.1 root 24502: version_type=linux
24503: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24504: soname_spec='${libname}${release}${shared_ext}$major'
24505: shlibpath_var=LD_LIBRARY_PATH
24506: case $host_vendor in
24507: sni)
24508: shlibpath_overrides_runpath=no
24509: need_lib_prefix=no
24510: export_dynamic_flag_spec='${wl}-Blargedynsym'
24511: runpath_var=LD_RUN_PATH
24512: ;;
24513: siemens)
24514: need_lib_prefix=no
24515: ;;
24516: motorola)
24517: need_lib_prefix=no
24518: need_version=no
24519: shlibpath_overrides_runpath=no
24520: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24521: ;;
24522: esac
24523: ;;
24524:
24525: sysv4*MP*)
24526: if test -d /usr/nec ;then
24527: version_type=linux
24528: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24529: soname_spec='$libname${shared_ext}.$major'
24530: shlibpath_var=LD_LIBRARY_PATH
24531: fi
24532: ;;
24533:
1.1.1.5 ! root 24534: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 24535: version_type=freebsd-elf
! 24536: need_lib_prefix=no
! 24537: need_version=no
! 24538: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 24539: soname_spec='${libname}${release}${shared_ext}$major'
! 24540: shlibpath_var=LD_LIBRARY_PATH
! 24541: hardcode_into_libs=yes
! 24542: if test "$with_gnu_ld" = yes; then
! 24543: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 24544: shlibpath_overrides_runpath=no
! 24545: else
! 24546: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 24547: shlibpath_overrides_runpath=yes
! 24548: case $host_os in
! 24549: sco3.2v5*)
! 24550: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 24551: ;;
! 24552: esac
! 24553: fi
! 24554: sys_lib_dlsearch_path_spec='/usr/lib'
! 24555: ;;
! 24556:
1.1 root 24557: uts4*)
24558: version_type=linux
24559: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24560: soname_spec='${libname}${release}${shared_ext}$major'
24561: shlibpath_var=LD_LIBRARY_PATH
24562: ;;
24563:
24564: *)
24565: dynamic_linker=no
24566: ;;
24567: esac
1.1.1.5 ! root 24568: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 24569: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 24570: test "$dynamic_linker" = no && can_build_shared=no
24571:
1.1.1.5 ! root 24572: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 24573: if test "$GCC" = yes; then
! 24574: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 24575: fi
! 24576:
! 24577: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 24578: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 24579: hardcode_action_F77=
! 24580: if test -n "$hardcode_libdir_flag_spec_F77" || \
! 24581: test -n "$runpath_var_F77" || \
! 24582: test "X$hardcode_automatic_F77" = "Xyes" ; then
! 24583:
! 24584: # We can hardcode non-existant directories.
! 24585: if test "$hardcode_direct_F77" != no &&
! 24586: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 24587: # have to relink, otherwise we might link with an installed library
! 24588: # when we should be linking with a yet-to-be-installed one
! 24589: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
! 24590: test "$hardcode_minus_L_F77" != no; then
! 24591: # Linking always hardcodes the temporary library directory.
! 24592: hardcode_action_F77=relink
! 24593: else
! 24594: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 24595: hardcode_action_F77=immediate
! 24596: fi
! 24597: else
! 24598: # We cannot hardcode anything, or else we can only hardcode existing
! 24599: # directories.
! 24600: hardcode_action_F77=unsupported
! 24601: fi
! 24602: { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
! 24603: echo "${ECHO_T}$hardcode_action_F77" >&6; }
! 24604:
! 24605: if test "$hardcode_action_F77" = relink; then
! 24606: # Fast installation is not supported
! 24607: enable_fast_install=no
! 24608: elif test "$shlibpath_overrides_runpath" = yes ||
! 24609: test "$enable_shared" = no; then
! 24610: # Fast installation is not necessary
! 24611: enable_fast_install=needless
! 24612: fi
! 24613:
1.1 root 24614:
24615: # The else clause should only fire when bootstrapping the
24616: # libtool distribution, otherwise you forgot to ship ltmain.sh
24617: # with your package, and you will get complaints that there are
24618: # no rules to generate ltmain.sh.
24619: if test -f "$ltmain"; then
24620: # See if we are running on zsh, and set the options which allow our commands through
24621: # without removal of \ escapes.
24622: if test -n "${ZSH_VERSION+set}" ; then
24623: setopt NO_GLOB_SUBST
24624: fi
24625: # Now quote all the things that may contain metacharacters while being
24626: # careful not to overquote the AC_SUBSTed values. We take copies of the
24627: # variables and quote the copies for generation of the libtool script.
1.1.1.5 ! root 24628: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 24629: SED SHELL STRIP \
1.1 root 24630: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24631: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24632: deplibs_check_method reload_flag reload_cmds need_locks \
24633: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24634: lt_cv_sys_global_symbol_to_c_name_address \
24635: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24636: old_postinstall_cmds old_postuninstall_cmds \
24637: compiler_F77 \
24638: CC_F77 \
24639: LD_F77 \
24640: lt_prog_compiler_wl_F77 \
24641: lt_prog_compiler_pic_F77 \
24642: lt_prog_compiler_static_F77 \
24643: lt_prog_compiler_no_builtin_flag_F77 \
24644: export_dynamic_flag_spec_F77 \
24645: thread_safe_flag_spec_F77 \
24646: whole_archive_flag_spec_F77 \
24647: enable_shared_with_static_runtimes_F77 \
24648: old_archive_cmds_F77 \
24649: old_archive_from_new_cmds_F77 \
24650: predep_objects_F77 \
24651: postdep_objects_F77 \
24652: predeps_F77 \
24653: postdeps_F77 \
24654: compiler_lib_search_path_F77 \
24655: archive_cmds_F77 \
24656: archive_expsym_cmds_F77 \
24657: postinstall_cmds_F77 \
24658: postuninstall_cmds_F77 \
24659: old_archive_from_expsyms_cmds_F77 \
24660: allow_undefined_flag_F77 \
24661: no_undefined_flag_F77 \
24662: export_symbols_cmds_F77 \
24663: hardcode_libdir_flag_spec_F77 \
24664: hardcode_libdir_flag_spec_ld_F77 \
24665: hardcode_libdir_separator_F77 \
24666: hardcode_automatic_F77 \
24667: module_cmds_F77 \
24668: module_expsym_cmds_F77 \
24669: lt_cv_prog_compiler_c_o_F77 \
1.1.1.5 ! root 24670: fix_srcfile_path_F77 \
1.1 root 24671: exclude_expsyms_F77 \
24672: include_expsyms_F77; do
24673:
24674: case $var in
24675: old_archive_cmds_F77 | \
24676: old_archive_from_new_cmds_F77 | \
24677: archive_cmds_F77 | \
24678: archive_expsym_cmds_F77 | \
24679: module_cmds_F77 | \
24680: module_expsym_cmds_F77 | \
24681: old_archive_from_expsyms_cmds_F77 | \
24682: export_symbols_cmds_F77 | \
24683: extract_expsyms_cmds | reload_cmds | finish_cmds | \
24684: postinstall_cmds | postuninstall_cmds | \
24685: old_postinstall_cmds | old_postuninstall_cmds | \
24686: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24687: # Double-quote double-evaled strings.
24688: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24689: ;;
24690: *)
24691: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24692: ;;
24693: esac
24694: done
24695:
24696: case $lt_echo in
24697: *'\$0 --fallback-echo"')
24698: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24699: ;;
24700: esac
24701:
24702: cfgfile="$ofile"
24703:
24704: cat <<__EOF__ >> "$cfgfile"
24705: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24706:
24707: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24708:
24709: # Shell to use when invoking shell scripts.
24710: SHELL=$lt_SHELL
24711:
24712: # Whether or not to build shared libraries.
24713: build_libtool_libs=$enable_shared
24714:
24715: # Whether or not to build static libraries.
24716: build_old_libs=$enable_static
24717:
24718: # Whether or not to add -lc for building shared libraries.
24719: build_libtool_need_lc=$archive_cmds_need_lc_F77
24720:
24721: # Whether or not to disallow shared libs when runtime libs are static
24722: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24723:
24724: # Whether or not to optimize for fast installation.
24725: fast_install=$enable_fast_install
24726:
24727: # The host system.
24728: host_alias=$host_alias
24729: host=$host
1.1.1.5 ! root 24730: host_os=$host_os
! 24731:
! 24732: # The build system.
! 24733: build_alias=$build_alias
! 24734: build=$build
! 24735: build_os=$build_os
1.1 root 24736:
24737: # An echo program that does not interpret backslashes.
24738: echo=$lt_echo
24739:
24740: # The archiver.
24741: AR=$lt_AR
24742: AR_FLAGS=$lt_AR_FLAGS
24743:
24744: # A C compiler.
24745: LTCC=$lt_LTCC
24746:
1.1.1.5 ! root 24747: # LTCC compiler flags.
! 24748: LTCFLAGS=$lt_LTCFLAGS
! 24749:
1.1 root 24750: # A language-specific compiler.
24751: CC=$lt_compiler_F77
24752:
24753: # Is the compiler the GNU C compiler?
24754: with_gcc=$GCC_F77
24755:
24756: # An ERE matcher.
24757: EGREP=$lt_EGREP
24758:
24759: # The linker used to build libraries.
24760: LD=$lt_LD_F77
24761:
24762: # Whether we need hard or soft links.
24763: LN_S=$lt_LN_S
24764:
24765: # A BSD-compatible nm program.
24766: NM=$lt_NM
24767:
24768: # A symbol stripping program
1.1.1.5 ! root 24769: STRIP=$lt_STRIP
1.1 root 24770:
24771: # Used to examine libraries when file_magic_cmd begins "file"
24772: MAGIC_CMD=$MAGIC_CMD
24773:
24774: # Used on cygwin: DLL creation program.
24775: DLLTOOL="$DLLTOOL"
24776:
24777: # Used on cygwin: object dumper.
24778: OBJDUMP="$OBJDUMP"
24779:
24780: # Used on cygwin: assembler.
24781: AS="$AS"
24782:
24783: # The name of the directory that contains temporary libtool files.
24784: objdir=$objdir
24785:
24786: # How to create reloadable object files.
24787: reload_flag=$lt_reload_flag
24788: reload_cmds=$lt_reload_cmds
24789:
24790: # How to pass a linker flag through the compiler.
24791: wl=$lt_lt_prog_compiler_wl_F77
24792:
24793: # Object file suffix (normally "o").
24794: objext="$ac_objext"
24795:
24796: # Old archive suffix (normally "a").
24797: libext="$libext"
24798:
24799: # Shared library suffix (normally ".so").
1.1.1.5 ! root 24800: shrext_cmds='$shrext_cmds'
1.1 root 24801:
24802: # Executable file suffix (normally "").
24803: exeext="$exeext"
24804:
24805: # Additional compiler flags for building library objects.
24806: pic_flag=$lt_lt_prog_compiler_pic_F77
24807: pic_mode=$pic_mode
24808:
24809: # What is the maximum length of a command?
24810: max_cmd_len=$lt_cv_sys_max_cmd_len
24811:
24812: # Does compiler simultaneously support -c and -o options?
24813: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24814:
1.1.1.5 ! root 24815: # Must we lock files when doing compilation?
1.1 root 24816: need_locks=$lt_need_locks
24817:
24818: # Do we need the lib prefix for modules?
24819: need_lib_prefix=$need_lib_prefix
24820:
24821: # Do we need a version for libraries?
24822: need_version=$need_version
24823:
24824: # Whether dlopen is supported.
24825: dlopen_support=$enable_dlopen
24826:
24827: # Whether dlopen of programs is supported.
24828: dlopen_self=$enable_dlopen_self
24829:
24830: # Whether dlopen of statically linked programs is supported.
24831: dlopen_self_static=$enable_dlopen_self_static
24832:
24833: # Compiler flag to prevent dynamic linking.
24834: link_static_flag=$lt_lt_prog_compiler_static_F77
24835:
24836: # Compiler flag to turn off builtin functions.
24837: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24838:
24839: # Compiler flag to allow reflexive dlopens.
24840: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24841:
24842: # Compiler flag to generate shared objects directly from archives.
24843: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24844:
24845: # Compiler flag to generate thread-safe objects.
24846: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24847:
24848: # Library versioning type.
24849: version_type=$version_type
24850:
24851: # Format of library name prefix.
24852: libname_spec=$lt_libname_spec
24853:
24854: # List of archive names. First name is the real one, the rest are links.
24855: # The last name is the one that the linker finds with -lNAME.
24856: library_names_spec=$lt_library_names_spec
24857:
24858: # The coded name of the library, if different from the real name.
24859: soname_spec=$lt_soname_spec
24860:
24861: # Commands used to build and install an old-style archive.
24862: RANLIB=$lt_RANLIB
24863: old_archive_cmds=$lt_old_archive_cmds_F77
24864: old_postinstall_cmds=$lt_old_postinstall_cmds
24865: old_postuninstall_cmds=$lt_old_postuninstall_cmds
24866:
24867: # Create an old-style archive from a shared archive.
24868: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24869:
24870: # Create a temporary old-style archive to link instead of a shared archive.
24871: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24872:
24873: # Commands used to build and install a shared archive.
24874: archive_cmds=$lt_archive_cmds_F77
24875: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24876: postinstall_cmds=$lt_postinstall_cmds
24877: postuninstall_cmds=$lt_postuninstall_cmds
24878:
24879: # Commands used to build a loadable module (assumed same as above if empty)
24880: module_cmds=$lt_module_cmds_F77
24881: module_expsym_cmds=$lt_module_expsym_cmds_F77
24882:
24883: # Commands to strip libraries.
24884: old_striplib=$lt_old_striplib
24885: striplib=$lt_striplib
24886:
24887: # Dependencies to place before the objects being linked to create a
24888: # shared library.
24889: predep_objects=$lt_predep_objects_F77
24890:
24891: # Dependencies to place after the objects being linked to create a
24892: # shared library.
24893: postdep_objects=$lt_postdep_objects_F77
24894:
24895: # Dependencies to place before the objects being linked to create a
24896: # shared library.
24897: predeps=$lt_predeps_F77
24898:
24899: # Dependencies to place after the objects being linked to create a
24900: # shared library.
24901: postdeps=$lt_postdeps_F77
24902:
24903: # The library search path used internally by the compiler when linking
24904: # a shared library.
24905: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24906:
24907: # Method to check whether dependent libraries are shared objects.
24908: deplibs_check_method=$lt_deplibs_check_method
24909:
24910: # Command to use when deplibs_check_method == file_magic.
24911: file_magic_cmd=$lt_file_magic_cmd
24912:
24913: # Flag that allows shared libraries with undefined symbols to be built.
24914: allow_undefined_flag=$lt_allow_undefined_flag_F77
24915:
24916: # Flag that forces no undefined symbols.
24917: no_undefined_flag=$lt_no_undefined_flag_F77
24918:
24919: # Commands used to finish a libtool library installation in a directory.
24920: finish_cmds=$lt_finish_cmds
24921:
24922: # Same as above, but a single script fragment to be evaled but not shown.
24923: finish_eval=$lt_finish_eval
24924:
24925: # Take the output of nm and produce a listing of raw symbols and C names.
24926: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24927:
24928: # Transform the output of nm in a proper C declaration
24929: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24930:
24931: # Transform the output of nm in a C name address pair
24932: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24933:
24934: # This is the shared library runtime path variable.
24935: runpath_var=$runpath_var
24936:
24937: # This is the shared library path variable.
24938: shlibpath_var=$shlibpath_var
24939:
24940: # Is shlibpath searched before the hard-coded library search path?
24941: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24942:
24943: # How to hardcode a shared library path into an executable.
24944: hardcode_action=$hardcode_action_F77
24945:
24946: # Whether we should hardcode library paths into libraries.
24947: hardcode_into_libs=$hardcode_into_libs
24948:
24949: # Flag to hardcode \$libdir into a binary during linking.
24950: # This must work even if \$libdir does not exist.
24951: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24952:
24953: # If ld is used when linking, flag to hardcode \$libdir into
24954: # a binary during linking. This must work even if \$libdir does
24955: # not exist.
24956: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24957:
24958: # Whether we need a single -rpath flag with a separated argument.
24959: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24960:
24961: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24962: # resulting binary.
24963: hardcode_direct=$hardcode_direct_F77
24964:
24965: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24966: # resulting binary.
24967: hardcode_minus_L=$hardcode_minus_L_F77
24968:
24969: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24970: # the resulting binary.
24971: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24972:
24973: # Set to yes if building a shared library automatically hardcodes DIR into the library
24974: # and all subsequent libraries and executables linked against it.
24975: hardcode_automatic=$hardcode_automatic_F77
24976:
24977: # Variables whose values should be saved in libtool wrapper scripts and
24978: # restored at relink time.
24979: variables_saved_for_relink="$variables_saved_for_relink"
24980:
24981: # Whether libtool must link a program against all its dependency libraries.
24982: link_all_deplibs=$link_all_deplibs_F77
24983:
24984: # Compile-time system search path for libraries
24985: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24986:
24987: # Run-time system search path for libraries
24988: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24989:
24990: # Fix the shell variable \$srcfile for the compiler.
1.1.1.5 ! root 24991: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 24992:
24993: # Set to yes if exported symbols are required.
24994: always_export_symbols=$always_export_symbols_F77
24995:
24996: # The commands to list exported symbols.
24997: export_symbols_cmds=$lt_export_symbols_cmds_F77
24998:
24999: # The commands to extract the exported symbol list from a shared archive.
25000: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25001:
25002: # Symbols that should not be listed in the preloaded symbols.
25003: exclude_expsyms=$lt_exclude_expsyms_F77
25004:
25005: # Symbols that must always be exported.
25006: include_expsyms=$lt_include_expsyms_F77
25007:
25008: # ### END LIBTOOL TAG CONFIG: $tagname
25009:
25010: __EOF__
25011:
25012:
25013: else
25014: # If there is no Makefile yet, we rely on a make rule to execute
25015: # `config.status --recheck' to rerun these tests and create the
25016: # libtool script then.
1.1.1.5 ! root 25017: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 25018: if test -f "$ltmain_in"; then
! 25019: test -f Makefile && make "$ltmain"
! 25020: fi
1.1 root 25021: fi
25022:
25023:
25024: ac_ext=c
25025: ac_cpp='$CPP $CPPFLAGS'
25026: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25027: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25028: ac_compiler_gnu=$ac_cv_c_compiler_gnu
25029:
25030: CC="$lt_save_CC"
25031:
25032: else
25033: tagname=""
25034: fi
25035: ;;
25036:
25037: GCJ)
25038: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
25039:
25040:
25041: # Source file extension for Java test sources.
25042: ac_ext=java
25043:
25044: # Object file extension for compiled Java test sources.
25045: objext=o
25046: objext_GCJ=$objext
25047:
25048: # Code to be used in simple compile tests
1.1.1.5 ! root 25049: lt_simple_compile_test_code="class foo {}"
1.1 root 25050:
25051: # Code to be used in simple link tests
1.1.1.5 ! root 25052: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
1.1 root 25053:
25054: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25055:
25056: # If no C compiler was specified, use CC.
25057: LTCC=${LTCC-"$CC"}
25058:
1.1.1.5 ! root 25059: # If no C compiler flags were specified, use CFLAGS.
! 25060: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 25061:
1.1 root 25062: # Allow CC to be a program name with arguments.
25063: compiler=$CC
25064:
25065:
1.1.1.5 ! root 25066: # save warnings/boilerplate of simple test code
! 25067: ac_outfile=conftest.$ac_objext
! 25068: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 25069: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 25070: _lt_compiler_boilerplate=`cat conftest.err`
! 25071: $rm conftest*
! 25072:
! 25073: ac_outfile=conftest.$ac_objext
! 25074: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 25075: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 25076: _lt_linker_boilerplate=`cat conftest.err`
! 25077: $rm conftest*
! 25078:
! 25079:
1.1 root 25080: # Allow CC to be a program name with arguments.
25081: lt_save_CC="$CC"
25082: CC=${GCJ-"gcj"}
25083: compiler=$CC
25084: compiler_GCJ=$CC
1.1.1.5 ! root 25085: for cc_temp in $compiler""; do
! 25086: case $cc_temp in
! 25087: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 25088: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 25089: \-*) ;;
! 25090: *) break;;
! 25091: esac
! 25092: done
! 25093: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 25094:
1.1 root 25095:
25096: # GCJ did not exist at the time GCC didn't implicitly link libc in.
25097: archive_cmds_need_lc_GCJ=no
25098:
1.1.1.5 ! root 25099: old_archive_cmds_GCJ=$old_archive_cmds
! 25100:
1.1 root 25101:
25102: lt_prog_compiler_no_builtin_flag_GCJ=
25103:
25104: if test "$GCC" = yes; then
25105: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
25106:
1.1.1.5 ! root 25107:
! 25108: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 25109: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
1.1 root 25110: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25111: echo $ECHO_N "(cached) $ECHO_C" >&6
25112: else
25113: lt_cv_prog_compiler_rtti_exceptions=no
25114: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 25115: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 25116: lt_compiler_flag="-fno-rtti -fno-exceptions"
25117: # Insert the option either (1) after the last *FLAGS variable, or
25118: # (2) before a word containing "conftest.", or (3) at the end.
25119: # Note that $ac_compile itself does not contain backslashes and begins
25120: # with a dollar sign (not a hyphen), so the echo should work correctly.
25121: # The option is referenced via a variable to avoid confusing sed.
25122: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 25123: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 25124: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25125: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 25126: (eval echo "\"\$as_me:25126: $lt_compile\"" >&5)
1.1 root 25127: (eval "$lt_compile" 2>conftest.err)
25128: ac_status=$?
25129: cat conftest.err >&5
1.1.1.5 ! root 25130: echo "$as_me:25130: \$? = $ac_status" >&5
1.1 root 25131: if (exit $ac_status) && test -s "$ac_outfile"; then
25132: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 25133: # So say no if there are warnings other than the usual output.
! 25134: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 25135: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 25136: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 25137: lt_cv_prog_compiler_rtti_exceptions=yes
25138: fi
25139: fi
25140: $rm conftest*
25141:
25142: fi
1.1.1.5 ! root 25143: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 25144: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 root 25145:
25146: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25147: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25148: else
25149: :
25150: fi
25151:
25152: fi
25153:
25154: lt_prog_compiler_wl_GCJ=
25155: lt_prog_compiler_pic_GCJ=
25156: lt_prog_compiler_static_GCJ=
25157:
1.1.1.5 ! root 25158: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 25159: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 25160:
25161: if test "$GCC" = yes; then
25162: lt_prog_compiler_wl_GCJ='-Wl,'
25163: lt_prog_compiler_static_GCJ='-static'
25164:
25165: case $host_os in
25166: aix*)
25167: # All AIX code is PIC.
25168: if test "$host_cpu" = ia64; then
25169: # AIX 5 now supports IA64 processor
25170: lt_prog_compiler_static_GCJ='-Bstatic'
25171: fi
25172: ;;
25173:
25174: amigaos*)
25175: # FIXME: we need at least 68020 code to build shared libraries, but
25176: # adding the `-m68020' flag to GCC prevents building anything better,
25177: # like `-m68040'.
25178: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25179: ;;
25180:
1.1.1.5 ! root 25181: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 25182: # PIC is the default for these OSes.
25183: ;;
25184:
1.1.1.5 ! root 25185: mingw* | cygwin* | pw32* | os2*)
1.1 root 25186: # This hack is so that the source file can tell whether it is being
25187: # built for inclusion in a dll (and should export symbols for example).
1.1.1.5 ! root 25188: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 25189: # (--disable-auto-import) libraries
1.1 root 25190: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25191: ;;
25192:
25193: darwin* | rhapsody*)
25194: # PIC is the default on this platform
25195: # Common symbols not allowed in MH_DYLIB files
25196: lt_prog_compiler_pic_GCJ='-fno-common'
25197: ;;
25198:
1.1.1.5 ! root 25199: interix[3-9]*)
! 25200: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 25201: # Instead, we relocate shared libraries at runtime.
! 25202: ;;
! 25203:
1.1 root 25204: msdosdjgpp*)
25205: # Just because we use GCC doesn't mean we suddenly get shared libraries
25206: # on systems that don't support them.
25207: lt_prog_compiler_can_build_shared_GCJ=no
25208: enable_shared=no
25209: ;;
25210:
25211: sysv4*MP*)
25212: if test -d /usr/nec; then
25213: lt_prog_compiler_pic_GCJ=-Kconform_pic
25214: fi
25215: ;;
25216:
25217: hpux*)
25218: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25219: # not for PA HP-UX.
1.1.1.5 ! root 25220: case $host_cpu in
1.1 root 25221: hppa*64*|ia64*)
25222: # +Z the default
25223: ;;
25224: *)
25225: lt_prog_compiler_pic_GCJ='-fPIC'
25226: ;;
25227: esac
25228: ;;
25229:
25230: *)
25231: lt_prog_compiler_pic_GCJ='-fPIC'
25232: ;;
25233: esac
25234: else
25235: # PORTME Check for flag to pass linker flags through the system compiler.
25236: case $host_os in
25237: aix*)
25238: lt_prog_compiler_wl_GCJ='-Wl,'
25239: if test "$host_cpu" = ia64; then
25240: # AIX 5 now supports IA64 processor
25241: lt_prog_compiler_static_GCJ='-Bstatic'
25242: else
25243: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25244: fi
25245: ;;
1.1.1.5 ! root 25246: darwin*)
! 25247: # PIC is the default on this platform
! 25248: # Common symbols not allowed in MH_DYLIB files
! 25249: case $cc_basename in
! 25250: xlc*)
! 25251: lt_prog_compiler_pic_GCJ='-qnocommon'
! 25252: lt_prog_compiler_wl_GCJ='-Wl,'
! 25253: ;;
! 25254: esac
! 25255: ;;
1.1 root 25256:
1.1.1.5 ! root 25257: mingw* | cygwin* | pw32* | os2*)
1.1 root 25258: # This hack is so that the source file can tell whether it is being
25259: # built for inclusion in a dll (and should export symbols for example).
25260: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25261: ;;
25262:
25263: hpux9* | hpux10* | hpux11*)
25264: lt_prog_compiler_wl_GCJ='-Wl,'
25265: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25266: # not for PA HP-UX.
1.1.1.5 ! root 25267: case $host_cpu in
1.1 root 25268: hppa*64*|ia64*)
25269: # +Z the default
25270: ;;
25271: *)
25272: lt_prog_compiler_pic_GCJ='+Z'
25273: ;;
25274: esac
25275: # Is there a better lt_prog_compiler_static that works with the bundled CC?
25276: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
25277: ;;
25278:
25279: irix5* | irix6* | nonstopux*)
25280: lt_prog_compiler_wl_GCJ='-Wl,'
25281: # PIC (with -KPIC) is the default.
25282: lt_prog_compiler_static_GCJ='-non_shared'
25283: ;;
25284:
25285: newsos6)
25286: lt_prog_compiler_pic_GCJ='-KPIC'
25287: lt_prog_compiler_static_GCJ='-Bstatic'
25288: ;;
25289:
1.1.1.5 ! root 25290: linux* | k*bsd*-gnu)
! 25291: case $cc_basename in
! 25292: icc* | ecc*)
1.1 root 25293: lt_prog_compiler_wl_GCJ='-Wl,'
25294: lt_prog_compiler_pic_GCJ='-KPIC'
25295: lt_prog_compiler_static_GCJ='-static'
25296: ;;
1.1.1.5 ! root 25297: pgcc* | pgf77* | pgf90* | pgf95*)
! 25298: # Portland Group compilers (*not* the Pentium gcc compiler,
! 25299: # which looks to be a dead project)
! 25300: lt_prog_compiler_wl_GCJ='-Wl,'
! 25301: lt_prog_compiler_pic_GCJ='-fpic'
! 25302: lt_prog_compiler_static_GCJ='-Bstatic'
! 25303: ;;
! 25304: ccc*)
1.1 root 25305: lt_prog_compiler_wl_GCJ='-Wl,'
25306: # All Alpha code is PIC.
25307: lt_prog_compiler_static_GCJ='-non_shared'
25308: ;;
1.1.1.5 ! root 25309: *)
! 25310: case `$CC -V 2>&1 | sed 5q` in
! 25311: *Sun\ C*)
! 25312: # Sun C 5.9
! 25313: lt_prog_compiler_pic_GCJ='-KPIC'
! 25314: lt_prog_compiler_static_GCJ='-Bstatic'
! 25315: lt_prog_compiler_wl_GCJ='-Wl,'
! 25316: ;;
! 25317: *Sun\ F*)
! 25318: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 25319: lt_prog_compiler_pic_GCJ='-KPIC'
! 25320: lt_prog_compiler_static_GCJ='-Bstatic'
! 25321: lt_prog_compiler_wl_GCJ=''
! 25322: ;;
! 25323: esac
! 25324: ;;
1.1 root 25325: esac
25326: ;;
25327:
25328: osf3* | osf4* | osf5*)
25329: lt_prog_compiler_wl_GCJ='-Wl,'
25330: # All OSF/1 code is PIC.
25331: lt_prog_compiler_static_GCJ='-non_shared'
25332: ;;
25333:
1.1.1.5 ! root 25334: rdos*)
! 25335: lt_prog_compiler_static_GCJ='-non_shared'
1.1 root 25336: ;;
25337:
25338: solaris*)
25339: lt_prog_compiler_pic_GCJ='-KPIC'
25340: lt_prog_compiler_static_GCJ='-Bstatic'
1.1.1.5 ! root 25341: case $cc_basename in
! 25342: f77* | f90* | f95*)
! 25343: lt_prog_compiler_wl_GCJ='-Qoption ld ';;
! 25344: *)
! 25345: lt_prog_compiler_wl_GCJ='-Wl,';;
! 25346: esac
1.1 root 25347: ;;
25348:
25349: sunos4*)
25350: lt_prog_compiler_wl_GCJ='-Qoption ld '
25351: lt_prog_compiler_pic_GCJ='-PIC'
25352: lt_prog_compiler_static_GCJ='-Bstatic'
25353: ;;
25354:
1.1.1.5 ! root 25355: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 25356: lt_prog_compiler_wl_GCJ='-Wl,'
25357: lt_prog_compiler_pic_GCJ='-KPIC'
25358: lt_prog_compiler_static_GCJ='-Bstatic'
25359: ;;
25360:
25361: sysv4*MP*)
25362: if test -d /usr/nec ;then
25363: lt_prog_compiler_pic_GCJ='-Kconform_pic'
25364: lt_prog_compiler_static_GCJ='-Bstatic'
25365: fi
25366: ;;
25367:
1.1.1.5 ! root 25368: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 25369: lt_prog_compiler_wl_GCJ='-Wl,'
! 25370: lt_prog_compiler_pic_GCJ='-KPIC'
! 25371: lt_prog_compiler_static_GCJ='-Bstatic'
! 25372: ;;
! 25373:
! 25374: unicos*)
! 25375: lt_prog_compiler_wl_GCJ='-Wl,'
! 25376: lt_prog_compiler_can_build_shared_GCJ=no
! 25377: ;;
! 25378:
1.1 root 25379: uts4*)
25380: lt_prog_compiler_pic_GCJ='-pic'
25381: lt_prog_compiler_static_GCJ='-Bstatic'
25382: ;;
25383:
25384: *)
25385: lt_prog_compiler_can_build_shared_GCJ=no
25386: ;;
25387: esac
25388: fi
25389:
1.1.1.5 ! root 25390: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
! 25391: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
1.1 root 25392:
25393: #
25394: # Check to make sure the PIC flag actually works.
25395: #
25396: if test -n "$lt_prog_compiler_pic_GCJ"; then
1.1.1.5 ! root 25397:
! 25398: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
! 25399: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
1.1 root 25400: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
25401: echo $ECHO_N "(cached) $ECHO_C" >&6
25402: else
25403: lt_prog_compiler_pic_works_GCJ=no
25404: ac_outfile=conftest.$ac_objext
1.1.1.5 ! root 25405: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 25406: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25407: # Insert the option either (1) after the last *FLAGS variable, or
25408: # (2) before a word containing "conftest.", or (3) at the end.
25409: # Note that $ac_compile itself does not contain backslashes and begins
25410: # with a dollar sign (not a hyphen), so the echo should work correctly.
25411: # The option is referenced via a variable to avoid confusing sed.
25412: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 25413: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 25414: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25415: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 25416: (eval echo "\"\$as_me:25416: $lt_compile\"" >&5)
1.1 root 25417: (eval "$lt_compile" 2>conftest.err)
25418: ac_status=$?
25419: cat conftest.err >&5
1.1.1.5 ! root 25420: echo "$as_me:25420: \$? = $ac_status" >&5
1.1 root 25421: if (exit $ac_status) && test -s "$ac_outfile"; then
25422: # The compiler can only warn and ignore the option if not recognized
1.1.1.5 ! root 25423: # So say no if there are warnings other than the usual output.
! 25424: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 25425: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 25426: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 25427: lt_prog_compiler_pic_works_GCJ=yes
25428: fi
25429: fi
25430: $rm conftest*
25431:
25432: fi
1.1.1.5 ! root 25433: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
! 25434: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
1.1 root 25435:
25436: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25437: case $lt_prog_compiler_pic_GCJ in
25438: "" | " "*) ;;
25439: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25440: esac
25441: else
25442: lt_prog_compiler_pic_GCJ=
25443: lt_prog_compiler_can_build_shared_GCJ=no
25444: fi
25445:
25446: fi
1.1.1.5 ! root 25447: case $host_os in
1.1 root 25448: # For platforms which do not support PIC, -DPIC is meaningless:
25449: *djgpp*)
25450: lt_prog_compiler_pic_GCJ=
25451: ;;
25452: *)
25453: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
25454: ;;
25455: esac
25456:
1.1.1.5 ! root 25457: #
! 25458: # Check to make sure the static flag actually works.
! 25459: #
! 25460: wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
! 25461: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 25462: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 25463: if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
! 25464: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25465: else
! 25466: lt_prog_compiler_static_works_GCJ=no
! 25467: save_LDFLAGS="$LDFLAGS"
! 25468: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 25469: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 25470: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 25471: # The linker can only warn and ignore the option if not recognized
! 25472: # So say no if there are warnings
! 25473: if test -s conftest.err; then
! 25474: # Append any errors to the config.log.
! 25475: cat conftest.err 1>&5
! 25476: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 25477: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 25478: if diff conftest.exp conftest.er2 >/dev/null; then
! 25479: lt_prog_compiler_static_works_GCJ=yes
! 25480: fi
! 25481: else
! 25482: lt_prog_compiler_static_works_GCJ=yes
! 25483: fi
! 25484: fi
! 25485: $rm conftest*
! 25486: LDFLAGS="$save_LDFLAGS"
! 25487:
! 25488: fi
! 25489: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
! 25490: echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
! 25491:
! 25492: if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
! 25493: :
! 25494: else
! 25495: lt_prog_compiler_static_GCJ=
! 25496: fi
! 25497:
! 25498:
! 25499: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 25500: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 25501: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25502: echo $ECHO_N "(cached) $ECHO_C" >&6
25503: else
25504: lt_cv_prog_compiler_c_o_GCJ=no
25505: $rm -r conftest 2>/dev/null
25506: mkdir conftest
25507: cd conftest
25508: mkdir out
1.1.1.5 ! root 25509: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 25510:
25511: lt_compiler_flag="-o out/conftest2.$ac_objext"
25512: # Insert the option either (1) after the last *FLAGS variable, or
25513: # (2) before a word containing "conftest.", or (3) at the end.
25514: # Note that $ac_compile itself does not contain backslashes and begins
25515: # with a dollar sign (not a hyphen), so the echo should work correctly.
25516: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.5 ! root 25517: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 25518: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25519: -e 's:$: $lt_compiler_flag:'`
1.1.1.5 ! root 25520: (eval echo "\"\$as_me:25520: $lt_compile\"" >&5)
1.1 root 25521: (eval "$lt_compile" 2>out/conftest.err)
25522: ac_status=$?
25523: cat out/conftest.err >&5
1.1.1.5 ! root 25524: echo "$as_me:25524: \$? = $ac_status" >&5
1.1 root 25525: if (exit $ac_status) && test -s out/conftest2.$ac_objext
25526: then
25527: # The compiler can only warn and ignore the option if not recognized
25528: # So say no if there are warnings
1.1.1.5 ! root 25529: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 25530: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 25531: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 25532: lt_cv_prog_compiler_c_o_GCJ=yes
25533: fi
25534: fi
1.1.1.5 ! root 25535: chmod u+w . 2>&5
! 25536: $rm conftest*
! 25537: # SGI C++ compiler will create directory out/ii_files/ for
! 25538: # template instantiation
! 25539: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 25540: $rm out/* && rmdir out
1.1 root 25541: cd ..
25542: rmdir conftest
25543: $rm conftest*
25544:
25545: fi
1.1.1.5 ! root 25546: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
! 25547: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1.1 root 25548:
25549:
25550: hard_links="nottested"
25551: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25552: # do not overwrite the value of need_locks provided by the user
1.1.1.5 ! root 25553: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 25554: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 25555: hard_links=yes
25556: $rm conftest*
25557: ln conftest.a conftest.b 2>/dev/null && hard_links=no
25558: touch conftest.a
25559: ln conftest.a conftest.b 2>&5 || hard_links=no
25560: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.5 ! root 25561: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 25562: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 25563: if test "$hard_links" = no; then
25564: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25565: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25566: need_locks=warn
25567: fi
25568: else
25569: need_locks=no
25570: fi
25571:
1.1.1.5 ! root 25572: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 25573: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 25574:
25575: runpath_var=
25576: allow_undefined_flag_GCJ=
25577: enable_shared_with_static_runtimes_GCJ=no
25578: archive_cmds_GCJ=
25579: archive_expsym_cmds_GCJ=
25580: old_archive_From_new_cmds_GCJ=
25581: old_archive_from_expsyms_cmds_GCJ=
25582: export_dynamic_flag_spec_GCJ=
25583: whole_archive_flag_spec_GCJ=
25584: thread_safe_flag_spec_GCJ=
25585: hardcode_libdir_flag_spec_GCJ=
25586: hardcode_libdir_flag_spec_ld_GCJ=
25587: hardcode_libdir_separator_GCJ=
25588: hardcode_direct_GCJ=no
25589: hardcode_minus_L_GCJ=no
25590: hardcode_shlibpath_var_GCJ=unsupported
25591: link_all_deplibs_GCJ=unknown
25592: hardcode_automatic_GCJ=no
25593: module_cmds_GCJ=
25594: module_expsym_cmds_GCJ=
25595: always_export_symbols_GCJ=no
25596: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25597: # include_expsyms should be a list of space-separated symbols to be *always*
25598: # included in the symbol list
25599: include_expsyms_GCJ=
25600: # exclude_expsyms can be an extended regexp of symbols to exclude
25601: # it will be wrapped by ` (' and `)$', so one must not match beginning or
25602: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25603: # as well as any symbol that contains `d'.
25604: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25605: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25606: # platforms (ab)use it in PIC code, but their linkers get confused if
25607: # the symbol is explicitly referenced. Since portable code cannot
25608: # rely on this symbol name, it's probably fine to never include it in
25609: # preloaded symbol tables.
25610: extract_expsyms_cmds=
1.1.1.5 ! root 25611: # Just being paranoid about ensuring that cc_basename is set.
! 25612: for cc_temp in $compiler""; do
! 25613: case $cc_temp in
! 25614: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 25615: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 25616: \-*) ;;
! 25617: *) break;;
! 25618: esac
! 25619: done
! 25620: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 25621:
25622: case $host_os in
25623: cygwin* | mingw* | pw32*)
25624: # FIXME: the MSVC++ port hasn't been tested in a loooong time
25625: # When not using gcc, we currently assume that we are using
25626: # Microsoft Visual C++.
25627: if test "$GCC" != yes; then
25628: with_gnu_ld=no
25629: fi
25630: ;;
1.1.1.5 ! root 25631: interix*)
! 25632: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 25633: with_gnu_ld=yes
! 25634: ;;
1.1 root 25635: openbsd*)
25636: with_gnu_ld=no
25637: ;;
25638: esac
25639:
25640: ld_shlibs_GCJ=yes
25641: if test "$with_gnu_ld" = yes; then
25642: # If archive_cmds runs LD, not CC, wlarc should be empty
25643: wlarc='${wl}'
25644:
1.1.1.5 ! root 25645: # Set some defaults for GNU ld with shared library support. These
! 25646: # are reset later if shared libraries are not supported. Putting them
! 25647: # here allows them to be overridden if necessary.
! 25648: runpath_var=LD_RUN_PATH
! 25649: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
! 25650: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
! 25651: # ancient GNU ld didn't support --whole-archive et. al.
! 25652: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 25653: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 25654: else
! 25655: whole_archive_flag_spec_GCJ=
! 25656: fi
! 25657: supports_anon_versioning=no
! 25658: case `$LD -v 2>/dev/null` in
! 25659: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 25660: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 25661: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 25662: *\ 2.11.*) ;; # other 2.11 versions
! 25663: *) supports_anon_versioning=yes ;;
! 25664: esac
! 25665:
1.1 root 25666: # See if GNU ld supports shared libraries.
25667: case $host_os in
25668: aix3* | aix4* | aix5*)
25669: # On AIX/PPC, the GNU linker is very broken
25670: if test "$host_cpu" != ia64; then
25671: ld_shlibs_GCJ=no
25672: cat <<EOF 1>&2
25673:
25674: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25675: *** to be unable to reliably create shared libraries on AIX.
25676: *** Therefore, libtool is disabling shared libraries support. If you
25677: *** really care for shared libraries, you may want to modify your PATH
25678: *** so that a non-GNU linker is found, and then restart.
25679:
25680: EOF
25681: fi
25682: ;;
25683:
25684: amigaos*)
25685: archive_cmds_GCJ='$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)'
25686: hardcode_libdir_flag_spec_GCJ='-L$libdir'
25687: hardcode_minus_L_GCJ=yes
25688:
25689: # Samuel A. Falvo II <[email protected]> reports
25690: # that the semantics of dynamic libraries on AmigaOS, at least up
25691: # to version 4, is to share data among multiple programs linked
25692: # with the same dynamic library. Since this doesn't match the
25693: # behavior of shared libraries on other platforms, we can't use
25694: # them.
25695: ld_shlibs_GCJ=no
25696: ;;
25697:
25698: beos*)
25699: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25700: allow_undefined_flag_GCJ=unsupported
25701: # Joseph Beckenbach <[email protected]> says some releases of gcc
25702: # support --undefined. This deserves some investigation. FIXME
25703: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25704: else
25705: ld_shlibs_GCJ=no
25706: fi
25707: ;;
25708:
25709: cygwin* | mingw* | pw32*)
25710: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25711: # as there is no search path for DLLs.
25712: hardcode_libdir_flag_spec_GCJ='-L$libdir'
25713: allow_undefined_flag_GCJ=unsupported
25714: always_export_symbols_GCJ=no
25715: enable_shared_with_static_runtimes_GCJ=yes
1.1.1.5 ! root 25716: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 25717:
25718: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.5 ! root 25719: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 25720: # If the export-symbols file already is a .def file (1st line
25721: # is EXPORTS), use it as is; otherwise, prepend...
25722: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25723: cp $export_symbols $output_objdir/$soname.def;
25724: else
25725: echo EXPORTS > $output_objdir/$soname.def;
25726: cat $export_symbols >> $output_objdir/$soname.def;
25727: fi~
1.1.1.5 ! root 25728: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 25729: else
1.1.1.5 ! root 25730: ld_shlibs_GCJ=no
! 25731: fi
! 25732: ;;
! 25733:
! 25734: interix[3-9]*)
! 25735: hardcode_direct_GCJ=no
! 25736: hardcode_shlibpath_var_GCJ=no
! 25737: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 25738: export_dynamic_flag_spec_GCJ='${wl}-E'
! 25739: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 25740: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 25741: # default) and relocated if they conflict, which is a slow very memory
! 25742: # consuming and fragmenting process. To avoid this, we pick a random,
! 25743: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 25744: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 25745: archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 25746: archive_expsym_cmds_GCJ='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'
! 25747: ;;
! 25748:
! 25749: gnu* | linux* | k*bsd*-gnu)
! 25750: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 25751: tmp_addflag=
! 25752: case $cc_basename,$host_cpu in
! 25753: pgcc*) # Portland Group C compiler
! 25754: whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 25755: tmp_addflag=' $pic_flag'
! 25756: ;;
! 25757: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 25758: whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 25759: tmp_addflag=' $pic_flag -Mnomain' ;;
! 25760: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 25761: tmp_addflag=' -i_dynamic' ;;
! 25762: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 25763: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 25764: ifc* | ifort*) # Intel Fortran compiler
! 25765: tmp_addflag=' -nofor_main' ;;
! 25766: esac
! 25767: case `$CC -V 2>&1 | sed 5q` in
! 25768: *Sun\ C*) # Sun C 5.9
! 25769: whole_archive_flag_spec_GCJ='${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'
! 25770: tmp_sharedflag='-G' ;;
! 25771: *Sun\ F*) # Sun Fortran 8.3
! 25772: tmp_sharedflag='-G' ;;
! 25773: *)
! 25774: tmp_sharedflag='-shared' ;;
! 25775: esac
! 25776: archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 25777:
! 25778: if test $supports_anon_versioning = yes; then
! 25779: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
! 25780: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 25781: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 25782: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 25783: fi
! 25784: else
! 25785: ld_shlibs_GCJ=no
1.1 root 25786: fi
25787: ;;
25788:
25789: netbsd*)
25790: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25791: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25792: wlarc=
25793: else
25794: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25795: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25796: fi
25797: ;;
25798:
1.1.1.5 ! root 25799: solaris*)
1.1 root 25800: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25801: ld_shlibs_GCJ=no
25802: cat <<EOF 1>&2
25803:
25804: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25805: *** create shared libraries on Solaris systems. Therefore, libtool
25806: *** is disabling shared libraries support. We urge you to upgrade GNU
25807: *** binutils to release 2.9.1 or newer. Another option is to modify
25808: *** your PATH or compiler configuration so that the native linker is
25809: *** used, and then restart.
25810:
25811: EOF
25812: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25813: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25814: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25815: else
25816: ld_shlibs_GCJ=no
25817: fi
25818: ;;
25819:
1.1.1.5 ! root 25820: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 25821: case `$LD -v 2>&1` in
! 25822: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 25823: ld_shlibs_GCJ=no
! 25824: cat <<_LT_EOF 1>&2
! 25825:
! 25826: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 25827: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 25828: *** is disabling shared libraries support. We urge you to upgrade GNU
! 25829: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 25830: *** your PATH or compiler configuration so that the native linker is
! 25831: *** used, and then restart.
! 25832:
! 25833: _LT_EOF
! 25834: ;;
! 25835: *)
! 25836: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 25837: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 25838: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 25839: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 25840: else
! 25841: ld_shlibs_GCJ=no
! 25842: fi
! 25843: ;;
! 25844: esac
! 25845: ;;
! 25846:
1.1 root 25847: sunos4*)
25848: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25849: wlarc=
25850: hardcode_direct_GCJ=yes
25851: hardcode_shlibpath_var_GCJ=no
25852: ;;
25853:
25854: *)
25855: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25856: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25857: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25858: else
25859: ld_shlibs_GCJ=no
25860: fi
25861: ;;
25862: esac
25863:
1.1.1.5 ! root 25864: if test "$ld_shlibs_GCJ" = no; then
! 25865: runpath_var=
! 25866: hardcode_libdir_flag_spec_GCJ=
! 25867: export_dynamic_flag_spec_GCJ=
! 25868: whole_archive_flag_spec_GCJ=
1.1 root 25869: fi
25870: else
25871: # PORTME fill in a description of your system's linker (not GNU ld)
25872: case $host_os in
25873: aix3*)
25874: allow_undefined_flag_GCJ=unsupported
25875: always_export_symbols_GCJ=yes
25876: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25877: # Note: this linker hardcodes the directories in LIBPATH if there
25878: # are no directories specified by -L.
25879: hardcode_minus_L_GCJ=yes
1.1.1.5 ! root 25880: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 25881: # Neither direct hardcoding nor static linking is supported with a
25882: # broken collect2.
25883: hardcode_direct_GCJ=unsupported
25884: fi
25885: ;;
25886:
25887: aix4* | aix5*)
25888: if test "$host_cpu" = ia64; then
25889: # On IA64, the linker does run time linking by default, so we don't
25890: # have to do anything special.
25891: aix_use_runtimelinking=no
25892: exp_sym_flag='-Bexport'
25893: no_entry_flag=""
25894: else
25895: # If we're using GNU nm, then we don't want the "-C" option.
25896: # -C means demangle to AIX nm, but means don't demangle with GNU nm
25897: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25898: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25899: else
25900: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25901: fi
25902: aix_use_runtimelinking=no
25903:
25904: # Test if we are trying to use run time linking or normal
25905: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25906: # need to do runtime linking.
25907: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25908: for ld_flag in $LDFLAGS; do
25909: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25910: aix_use_runtimelinking=yes
25911: break
25912: fi
25913: done
1.1.1.5 ! root 25914: ;;
1.1 root 25915: esac
25916:
25917: exp_sym_flag='-bexport'
25918: no_entry_flag='-bnoentry'
25919: fi
25920:
25921: # When large executables or shared objects are built, AIX ld can
25922: # have problems creating the table of contents. If linking a library
25923: # or program results in "error TOC overflow" add -mminimal-toc to
25924: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25925: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25926:
25927: archive_cmds_GCJ=''
25928: hardcode_direct_GCJ=yes
25929: hardcode_libdir_separator_GCJ=':'
25930: link_all_deplibs_GCJ=yes
25931:
25932: if test "$GCC" = yes; then
1.1.1.5 ! root 25933: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 25934: # We only want to do this on AIX 4.2 and lower, the check
25935: # below for broken collect2 doesn't work under 4.3+
25936: collect2name=`${CC} -print-prog-name=collect2`
25937: if test -f "$collect2name" && \
25938: strings "$collect2name" | grep resolve_lib_name >/dev/null
25939: then
25940: # We have reworked collect2
1.1.1.5 ! root 25941: :
1.1 root 25942: else
25943: # We have old collect2
25944: hardcode_direct_GCJ=unsupported
25945: # It fails to find uninstalled libraries when the uninstalled
25946: # path is not listed in the libpath. Setting hardcode_minus_L
25947: # to unsupported forces relinking
25948: hardcode_minus_L_GCJ=yes
25949: hardcode_libdir_flag_spec_GCJ='-L$libdir'
25950: hardcode_libdir_separator_GCJ=
25951: fi
1.1.1.5 ! root 25952: ;;
1.1 root 25953: esac
25954: shared_flag='-shared'
1.1.1.5 ! root 25955: if test "$aix_use_runtimelinking" = yes; then
! 25956: shared_flag="$shared_flag "'${wl}-G'
! 25957: fi
1.1 root 25958: else
25959: # not using gcc
25960: if test "$host_cpu" = ia64; then
25961: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25962: # chokes on -Wl,-G. The following line is correct:
25963: shared_flag='-G'
25964: else
1.1.1.5 ! root 25965: if test "$aix_use_runtimelinking" = yes; then
1.1 root 25966: shared_flag='${wl}-G'
25967: else
25968: shared_flag='${wl}-bM:SRE'
1.1.1.5 ! root 25969: fi
1.1 root 25970: fi
25971: fi
25972:
25973: # It seems that -bexpall does not export symbols beginning with
25974: # underscore (_), so it is better to generate a list of symbols to export.
25975: always_export_symbols_GCJ=yes
25976: if test "$aix_use_runtimelinking" = yes; then
25977: # Warning - without using the other runtime loading flags (-brtl),
25978: # -berok will link without error, but may produce a broken library.
25979: allow_undefined_flag_GCJ='-berok'
25980: # Determine the default libpath from the value encoded in an empty executable.
25981: cat >conftest.$ac_ext <<_ACEOF
25982: /* confdefs.h. */
25983: _ACEOF
25984: cat confdefs.h >>conftest.$ac_ext
25985: cat >>conftest.$ac_ext <<_ACEOF
25986: /* end confdefs.h. */
25987:
25988: int
25989: main ()
25990: {
25991:
25992: ;
25993: return 0;
25994: }
25995: _ACEOF
25996: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 25997: if { (ac_try="$ac_link"
! 25998: case "(($ac_try" in
! 25999: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26000: *) ac_try_echo=$ac_try;;
! 26001: esac
! 26002: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26003: (eval "$ac_link") 2>conftest.er1
1.1 root 26004: ac_status=$?
1.1.1.5 ! root 26005: grep -v '^ *+' conftest.er1 >conftest.err
! 26006: rm -f conftest.er1
! 26007: cat conftest.err >&5
1.1 root 26008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 26009: (exit $ac_status); } && {
! 26010: test -z "$ac_c_werror_flag" ||
! 26011: test ! -s conftest.err
! 26012: } && test -s conftest$ac_exeext &&
! 26013: $as_test_x conftest$ac_exeext; then
! 26014:
! 26015: lt_aix_libpath_sed='
! 26016: /Import File Strings/,/^$/ {
! 26017: /^0/ {
! 26018: s/^0 *\(.*\)$/\1/
! 26019: p
! 26020: }
! 26021: }'
! 26022: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 26023: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 26024: if test -z "$aix_libpath"; then
! 26025: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 26026: fi
1.1 root 26027: else
26028: echo "$as_me: failed program was:" >&5
26029: sed 's/^/| /' conftest.$ac_ext >&5
26030:
1.1.1.5 ! root 26031:
1.1 root 26032: fi
1.1.1.5 ! root 26033:
! 26034: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26035: conftest$ac_exeext conftest.$ac_ext
1.1 root 26036: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26037:
26038: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.5 ! root 26039: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1 root 26040: else
26041: if test "$host_cpu" = ia64; then
26042: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26043: allow_undefined_flag_GCJ="-z nodefs"
1.1.1.5 ! root 26044: archive_expsym_cmds_GCJ="\$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"
1.1 root 26045: else
26046: # Determine the default libpath from the value encoded in an empty executable.
26047: cat >conftest.$ac_ext <<_ACEOF
26048: /* confdefs.h. */
26049: _ACEOF
26050: cat confdefs.h >>conftest.$ac_ext
26051: cat >>conftest.$ac_ext <<_ACEOF
26052: /* end confdefs.h. */
26053:
26054: int
26055: main ()
26056: {
26057:
26058: ;
26059: return 0;
26060: }
26061: _ACEOF
26062: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.5 ! root 26063: if { (ac_try="$ac_link"
! 26064: case "(($ac_try" in
! 26065: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 26066: *) ac_try_echo=$ac_try;;
! 26067: esac
! 26068: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 26069: (eval "$ac_link") 2>conftest.er1
1.1 root 26070: ac_status=$?
1.1.1.5 ! root 26071: grep -v '^ *+' conftest.er1 >conftest.err
! 26072: rm -f conftest.er1
! 26073: cat conftest.err >&5
1.1 root 26074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 26075: (exit $ac_status); } && {
! 26076: test -z "$ac_c_werror_flag" ||
! 26077: test ! -s conftest.err
! 26078: } && test -s conftest$ac_exeext &&
! 26079: $as_test_x conftest$ac_exeext; then
! 26080:
! 26081: lt_aix_libpath_sed='
! 26082: /Import File Strings/,/^$/ {
! 26083: /^0/ {
! 26084: s/^0 *\(.*\)$/\1/
! 26085: p
! 26086: }
! 26087: }'
! 26088: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 26089: # Check for a 64-bit object if we didn't find anything.
1.1.1.5 ! root 26090: if test -z "$aix_libpath"; then
! 26091: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 26092: fi
1.1 root 26093: else
26094: echo "$as_me: failed program was:" >&5
26095: sed 's/^/| /' conftest.$ac_ext >&5
26096:
1.1.1.5 ! root 26097:
1.1 root 26098: fi
1.1.1.5 ! root 26099:
! 26100: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 26101: conftest$ac_exeext conftest.$ac_ext
1.1 root 26102: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26103:
26104: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26105: # Warning - without using the other run time loading flags,
26106: # -berok will link without error, but may produce a broken library.
26107: no_undefined_flag_GCJ=' ${wl}-bernotok'
26108: allow_undefined_flag_GCJ=' ${wl}-berok'
26109: # Exported symbols can be pulled into shared objects from archives
1.1.1.5 ! root 26110: whole_archive_flag_spec_GCJ='$convenience'
1.1 root 26111: archive_cmds_need_lc_GCJ=yes
1.1.1.5 ! root 26112: # This is similar to how AIX traditionally builds its shared libraries.
! 26113: archive_expsym_cmds_GCJ="\$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'
1.1 root 26114: fi
26115: fi
26116: ;;
26117:
26118: amigaos*)
26119: archive_cmds_GCJ='$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)'
26120: hardcode_libdir_flag_spec_GCJ='-L$libdir'
26121: hardcode_minus_L_GCJ=yes
26122: # see comment about different semantics on the GNU ld section
26123: ld_shlibs_GCJ=no
26124: ;;
26125:
1.1.1.5 ! root 26126: bsdi[45]*)
1.1 root 26127: export_dynamic_flag_spec_GCJ=-rdynamic
26128: ;;
26129:
26130: cygwin* | mingw* | pw32*)
26131: # When not using gcc, we currently assume that we are using
26132: # Microsoft Visual C++.
26133: # hardcode_libdir_flag_spec is actually meaningless, as there is
26134: # no search path for DLLs.
26135: hardcode_libdir_flag_spec_GCJ=' '
26136: allow_undefined_flag_GCJ=unsupported
26137: # Tell ltmain to make .lib files, not .a files.
26138: libext=lib
26139: # Tell ltmain to make .dll files, not .so files.
1.1.1.5 ! root 26140: shrext_cmds=".dll"
1.1 root 26141: # FIXME: Setting linknames here is a bad hack.
26142: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26143: # The linker will automatically build a .lib file if we build a DLL.
26144: old_archive_From_new_cmds_GCJ='true'
26145: # FIXME: Should let the user specify the lib program.
1.1.1.5 ! root 26146: old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 26147: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
1.1 root 26148: enable_shared_with_static_runtimes_GCJ=yes
26149: ;;
26150:
26151: darwin* | rhapsody*)
1.1.1.5 ! root 26152: case $host_os in
! 26153: rhapsody* | darwin1.[012])
! 26154: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
! 26155: ;;
! 26156: *) # Darwin 1.3 on
! 26157: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 26158: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 26159: else
! 26160: case ${MACOSX_DEPLOYMENT_TARGET} in
! 26161: 10.[012])
! 26162: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 26163: ;;
! 26164: 10.*)
! 26165: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
! 26166: ;;
! 26167: esac
! 26168: fi
! 26169: ;;
1.1 root 26170: esac
1.1.1.5 ! root 26171: archive_cmds_need_lc_GCJ=no
1.1 root 26172: hardcode_direct_GCJ=no
26173: hardcode_automatic_GCJ=yes
26174: hardcode_shlibpath_var_GCJ=unsupported
1.1.1.5 ! root 26175: whole_archive_flag_spec_GCJ=''
1.1 root 26176: link_all_deplibs_GCJ=yes
1.1.1.5 ! root 26177: if test "$GCC" = yes ; then
! 26178: output_verbose_link_cmd='echo'
! 26179: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 26180: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 26181: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 26182: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 26183: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 26184: else
! 26185: case $cc_basename in
! 26186: xlc*)
! 26187: output_verbose_link_cmd='echo'
! 26188: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 26189: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 26190: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 26191: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 26192: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 26193: ;;
! 26194: *)
! 26195: ld_shlibs_GCJ=no
! 26196: ;;
! 26197: esac
1.1 root 26198: fi
26199: ;;
26200:
26201: dgux*)
26202: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26203: hardcode_libdir_flag_spec_GCJ='-L$libdir'
26204: hardcode_shlibpath_var_GCJ=no
26205: ;;
26206:
26207: freebsd1*)
26208: ld_shlibs_GCJ=no
26209: ;;
26210:
26211: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26212: # support. Future versions do this automatically, but an explicit c++rt0.o
26213: # does not break anything, and helps significantly (at the cost of a little
26214: # extra space).
26215: freebsd2.2*)
26216: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26217: hardcode_libdir_flag_spec_GCJ='-R$libdir'
26218: hardcode_direct_GCJ=yes
26219: hardcode_shlibpath_var_GCJ=no
26220: ;;
26221:
26222: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26223: freebsd2*)
26224: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26225: hardcode_direct_GCJ=yes
26226: hardcode_minus_L_GCJ=yes
26227: hardcode_shlibpath_var_GCJ=no
26228: ;;
26229:
26230: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.5 ! root 26231: freebsd* | dragonfly*)
1.1 root 26232: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26233: hardcode_libdir_flag_spec_GCJ='-R$libdir'
26234: hardcode_direct_GCJ=yes
26235: hardcode_shlibpath_var_GCJ=no
26236: ;;
26237:
26238: hpux9*)
26239: if test "$GCC" = yes; then
26240: archive_cmds_GCJ='$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'
26241: else
26242: archive_cmds_GCJ='$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'
26243: fi
26244: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26245: hardcode_libdir_separator_GCJ=:
26246: hardcode_direct_GCJ=yes
26247:
26248: # hardcode_minus_L: Not really in the search PATH,
26249: # but as the default location of the library.
26250: hardcode_minus_L_GCJ=yes
26251: export_dynamic_flag_spec_GCJ='${wl}-E'
26252: ;;
26253:
1.1.1.5 ! root 26254: hpux10*)
1.1 root 26255: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.5 ! root 26256: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 26257: else
! 26258: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 26259: fi
! 26260: if test "$with_gnu_ld" = no; then
! 26261: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 26262: hardcode_libdir_separator_GCJ=:
! 26263:
! 26264: hardcode_direct_GCJ=yes
! 26265: export_dynamic_flag_spec_GCJ='${wl}-E'
! 26266:
! 26267: # hardcode_minus_L: Not really in the search PATH,
! 26268: # but as the default location of the library.
! 26269: hardcode_minus_L_GCJ=yes
! 26270: fi
! 26271: ;;
! 26272:
! 26273: hpux11*)
! 26274: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 26275: case $host_cpu in
! 26276: hppa*64*)
! 26277: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26278: ;;
! 26279: ia64*)
! 26280: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 26281: ;;
! 26282: *)
1.1 root 26283: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26284: ;;
26285: esac
26286: else
1.1.1.5 ! root 26287: case $host_cpu in
! 26288: hppa*64*)
! 26289: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26290: ;;
! 26291: ia64*)
! 26292: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26293: ;;
26294: *)
1.1.1.5 ! root 26295: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26296: ;;
26297: esac
26298: fi
26299: if test "$with_gnu_ld" = no; then
1.1.1.5 ! root 26300: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 26301: hardcode_libdir_separator_GCJ=:
! 26302:
! 26303: case $host_cpu in
! 26304: hppa*64*|ia64*)
1.1 root 26305: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
26306: hardcode_direct_GCJ=no
26307: hardcode_shlibpath_var_GCJ=no
26308: ;;
26309: *)
26310: hardcode_direct_GCJ=yes
26311: export_dynamic_flag_spec_GCJ='${wl}-E'
26312:
26313: # hardcode_minus_L: Not really in the search PATH,
26314: # but as the default location of the library.
26315: hardcode_minus_L_GCJ=yes
26316: ;;
26317: esac
26318: fi
26319: ;;
26320:
26321: irix5* | irix6* | nonstopux*)
26322: if test "$GCC" = yes; then
26323: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26324: else
26325: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26326: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
26327: fi
26328: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26329: hardcode_libdir_separator_GCJ=:
26330: link_all_deplibs_GCJ=yes
26331: ;;
26332:
26333: netbsd*)
26334: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26335: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26336: else
26337: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26338: fi
26339: hardcode_libdir_flag_spec_GCJ='-R$libdir'
26340: hardcode_direct_GCJ=yes
26341: hardcode_shlibpath_var_GCJ=no
26342: ;;
26343:
26344: newsos6)
26345: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26346: hardcode_direct_GCJ=yes
26347: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26348: hardcode_libdir_separator_GCJ=:
26349: hardcode_shlibpath_var_GCJ=no
26350: ;;
26351:
26352: openbsd*)
1.1.1.5 ! root 26353: if test -f /usr/libexec/ld.so; then
! 26354: hardcode_direct_GCJ=yes
! 26355: hardcode_shlibpath_var_GCJ=no
! 26356: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 26357: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 26358: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 26359: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 26360: export_dynamic_flag_spec_GCJ='${wl}-E'
! 26361: else
! 26362: case $host_os in
! 26363: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 26364: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 26365: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 26366: ;;
! 26367: *)
! 26368: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 26369: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 26370: ;;
! 26371: esac
! 26372: fi
1.1 root 26373: else
1.1.1.5 ! root 26374: ld_shlibs_GCJ=no
1.1 root 26375: fi
26376: ;;
26377:
26378: os2*)
26379: hardcode_libdir_flag_spec_GCJ='-L$libdir'
26380: hardcode_minus_L_GCJ=yes
26381: allow_undefined_flag_GCJ=unsupported
26382: archive_cmds_GCJ='$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'
26383: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26384: ;;
26385:
26386: osf3*)
26387: if test "$GCC" = yes; then
26388: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26389: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26390: else
26391: allow_undefined_flag_GCJ=' -expect_unresolved \*'
26392: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26393: fi
26394: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26395: hardcode_libdir_separator_GCJ=:
26396: ;;
26397:
26398: osf4* | osf5*) # as osf3* with the addition of -msym flag
26399: if test "$GCC" = yes; then
26400: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26401: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26402: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26403: else
26404: allow_undefined_flag_GCJ=' -expect_unresolved \*'
26405: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26406: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.1.1.5 ! root 26407: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.1 root 26408:
26409: # Both c and cxx compiler support -rpath directly
26410: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26411: fi
26412: hardcode_libdir_separator_GCJ=:
26413: ;;
26414:
26415: solaris*)
26416: no_undefined_flag_GCJ=' -z text'
26417: if test "$GCC" = yes; then
1.1.1.5 ! root 26418: wlarc='${wl}'
1.1 root 26419: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26420: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26421: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26422: else
1.1.1.5 ! root 26423: wlarc=''
1.1 root 26424: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26425: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26426: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26427: fi
26428: hardcode_libdir_flag_spec_GCJ='-R$libdir'
26429: hardcode_shlibpath_var_GCJ=no
26430: case $host_os in
26431: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.5 ! root 26432: *)
! 26433: # The compiler driver will combine and reorder linker options,
! 26434: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 26435: # but is careful enough not to reorder.
! 26436: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 26437: if test "$GCC" = yes; then
! 26438: whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 26439: else
! 26440: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
! 26441: fi
! 26442: ;;
1.1 root 26443: esac
26444: link_all_deplibs_GCJ=yes
26445: ;;
26446:
26447: sunos4*)
26448: if test "x$host_vendor" = xsequent; then
26449: # Use $CC to link under sequent, because it throws in some extra .o
26450: # files that make .init and .fini sections work.
26451: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26452: else
26453: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26454: fi
26455: hardcode_libdir_flag_spec_GCJ='-L$libdir'
26456: hardcode_direct_GCJ=yes
26457: hardcode_minus_L_GCJ=yes
26458: hardcode_shlibpath_var_GCJ=no
26459: ;;
26460:
26461: sysv4)
26462: case $host_vendor in
26463: sni)
26464: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26465: hardcode_direct_GCJ=yes # is this really true???
26466: ;;
26467: siemens)
26468: ## LD is ld it makes a PLAMLIB
26469: ## CC just makes a GrossModule.
26470: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26471: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
26472: hardcode_direct_GCJ=no
26473: ;;
26474: motorola)
26475: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26476: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
26477: ;;
26478: esac
26479: runpath_var='LD_RUN_PATH'
26480: hardcode_shlibpath_var_GCJ=no
26481: ;;
26482:
26483: sysv4.3*)
26484: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26485: hardcode_shlibpath_var_GCJ=no
26486: export_dynamic_flag_spec_GCJ='-Bexport'
26487: ;;
26488:
26489: sysv4*MP*)
26490: if test -d /usr/nec; then
26491: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26492: hardcode_shlibpath_var_GCJ=no
26493: runpath_var=LD_RUN_PATH
26494: hardcode_runpath_var=yes
26495: ld_shlibs_GCJ=yes
26496: fi
26497: ;;
26498:
1.1.1.5 ! root 26499: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 26500: no_undefined_flag_GCJ='${wl}-z,text'
! 26501: archive_cmds_need_lc_GCJ=no
1.1 root 26502: hardcode_shlibpath_var_GCJ=no
1.1.1.5 ! root 26503: runpath_var='LD_RUN_PATH'
1.1 root 26504:
26505: if test "$GCC" = yes; then
1.1.1.5 ! root 26506: archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26507: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26508: else
1.1.1.5 ! root 26509: archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26510: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26511: fi
26512: ;;
26513:
1.1.1.5 ! root 26514: sysv5* | sco3.2v5* | sco5v6*)
! 26515: # Note: We can NOT use -z defs as we might desire, because we do not
! 26516: # link with -lc, and that would cause any symbols used from libc to
! 26517: # always be unresolved, which means just about no library would
! 26518: # ever link correctly. If we're not using GNU ld we use -z text
! 26519: # though, which does catch some bad symbols but isn't as heavy-handed
! 26520: # as -z defs.
! 26521: no_undefined_flag_GCJ='${wl}-z,text'
! 26522: allow_undefined_flag_GCJ='${wl}-z,nodefs'
! 26523: archive_cmds_need_lc_GCJ=no
1.1 root 26524: hardcode_shlibpath_var_GCJ=no
1.1.1.5 ! root 26525: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 26526: hardcode_libdir_separator_GCJ=':'
! 26527: link_all_deplibs_GCJ=yes
! 26528: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
1.1 root 26529: runpath_var='LD_RUN_PATH'
26530:
1.1.1.5 ! root 26531: if test "$GCC" = yes; then
! 26532: archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26533: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26534: else
1.1.1.5 ! root 26535: archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 26536: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 26537: fi
26538: ;;
26539:
1.1.1.5 ! root 26540: uts4*)
! 26541: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 26542: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 26543: hardcode_shlibpath_var_GCJ=no
! 26544: ;;
1.1 root 26545:
1.1.1.5 ! root 26546: *)
! 26547: ld_shlibs_GCJ=no
! 26548: ;;
! 26549: esac
! 26550: fi
1.1 root 26551:
1.1.1.5 ! root 26552: { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
! 26553: echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
! 26554: test "$ld_shlibs_GCJ" = no && can_build_shared=no
1.1 root 26555:
1.1.1.5 ! root 26556: #
! 26557: # Do we need to explicitly link libc?
! 26558: #
! 26559: case "x$archive_cmds_need_lc_GCJ" in
! 26560: x|xyes)
! 26561: # Assume -lc should be added
! 26562: archive_cmds_need_lc_GCJ=yes
1.1 root 26563:
1.1.1.5 ! root 26564: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 26565: case $archive_cmds_GCJ in
! 26566: *'~'*)
! 26567: # FIXME: we may have to deal with multi-command sequences.
! 26568: ;;
! 26569: '$CC '*)
! 26570: # Test whether the compiler implicitly links with -lc since on some
! 26571: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 26572: # to ld, don't add -lc before -lgcc.
! 26573: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 26574: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 26575: $rm conftest*
! 26576: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 26577:
! 26578: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 26579: (eval $ac_compile) 2>&5
1.1 root 26580: ac_status=$?
26581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 26582: (exit $ac_status); } 2>conftest.err; then
! 26583: soname=conftest
! 26584: lib=conftest
! 26585: libobjs=conftest.$ac_objext
! 26586: deplibs=
! 26587: wl=$lt_prog_compiler_wl_GCJ
! 26588: pic_flag=$lt_prog_compiler_pic_GCJ
! 26589: compiler_flags=-v
! 26590: linker_flags=-v
! 26591: verstring=
! 26592: output_objdir=.
! 26593: libname=conftest
! 26594: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
! 26595: allow_undefined_flag_GCJ=
! 26596: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 26597: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.1 root 26598: ac_status=$?
26599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.5 ! root 26600: (exit $ac_status); }
! 26601: then
! 26602: archive_cmds_need_lc_GCJ=no
! 26603: else
! 26604: archive_cmds_need_lc_GCJ=yes
! 26605: fi
! 26606: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
! 26607: else
! 26608: cat conftest.err 1>&5
! 26609: fi
! 26610: $rm conftest*
! 26611: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
! 26612: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
! 26613: ;;
! 26614: esac
! 26615: fi
! 26616: ;;
! 26617: esac
1.1 root 26618:
1.1.1.5 ! root 26619: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 26620: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 26621: library_names_spec=
! 26622: libname_spec='lib$name'
! 26623: soname_spec=
! 26624: shrext_cmds=".so"
! 26625: postinstall_cmds=
! 26626: postuninstall_cmds=
! 26627: finish_cmds=
! 26628: finish_eval=
! 26629: shlibpath_var=
! 26630: shlibpath_overrides_runpath=unknown
! 26631: version_type=none
! 26632: dynamic_linker="$host_os ld.so"
! 26633: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1 root 26634:
1.1.1.5 ! root 26635: need_lib_prefix=unknown
! 26636: hardcode_into_libs=no
1.1 root 26637:
1.1.1.5 ! root 26638: # when you set need_version to no, make sure it does not cause -set_version
! 26639: # flags to be left without arguments
! 26640: need_version=unknown
1.1 root 26641:
1.1.1.5 ! root 26642: case $host_os in
! 26643: aix3*)
! 26644: version_type=linux
! 26645: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 26646: shlibpath_var=LIBPATH
1.1 root 26647:
1.1.1.5 ! root 26648: # AIX 3 has no versioning support, so we append a major version to the name.
! 26649: soname_spec='${libname}${release}${shared_ext}$major'
! 26650: ;;
! 26651:
! 26652: aix4* | aix5*)
! 26653: version_type=linux
! 26654: need_lib_prefix=no
! 26655: need_version=no
! 26656: hardcode_into_libs=yes
! 26657: if test "$host_cpu" = ia64; then
! 26658: # AIX 5 supports IA64
! 26659: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 26660: shlibpath_var=LD_LIBRARY_PATH
! 26661: else
! 26662: # With GCC up to 2.95.x, collect2 would create an import file
! 26663: # for dependence libraries. The import file would start with
! 26664: # the line `#! .'. This would cause the generated library to
! 26665: # depend on `.', always an invalid library. This was fixed in
! 26666: # development snapshots of GCC prior to 3.0.
! 26667: case $host_os in
! 26668: aix4 | aix4.[01] | aix4.[01].*)
! 26669: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 26670: echo ' yes '
! 26671: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 26672: :
! 26673: else
! 26674: can_build_shared=no
! 26675: fi
! 26676: ;;
! 26677: esac
! 26678: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 26679: # soname into executable. Probably we can add versioning support to
! 26680: # collect2, so additional links can be useful in future.
! 26681: if test "$aix_use_runtimelinking" = yes; then
! 26682: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 26683: # instead of lib<name>.a to let people know that these are not
! 26684: # typical AIX shared libraries.
! 26685: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26686: else
! 26687: # We preserve .a as extension for shared libraries through AIX4.2
! 26688: # and later when we are not doing run time linking.
! 26689: library_names_spec='${libname}${release}.a $libname.a'
! 26690: soname_spec='${libname}${release}${shared_ext}$major'
! 26691: fi
! 26692: shlibpath_var=LIBPATH
! 26693: fi
! 26694: ;;
1.1 root 26695:
1.1.1.5 ! root 26696: amigaos*)
! 26697: library_names_spec='$libname.ixlibrary $libname.a'
! 26698: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 26699: 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'
! 26700: ;;
1.1 root 26701:
1.1.1.5 ! root 26702: beos*)
! 26703: library_names_spec='${libname}${shared_ext}'
! 26704: dynamic_linker="$host_os ld.so"
! 26705: shlibpath_var=LIBRARY_PATH
! 26706: ;;
1.1 root 26707:
1.1.1.5 ! root 26708: bsdi[45]*)
! 26709: version_type=linux
! 26710: need_version=no
! 26711: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26712: soname_spec='${libname}${release}${shared_ext}$major'
! 26713: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 26714: shlibpath_var=LD_LIBRARY_PATH
! 26715: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 26716: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 26717: # the default ld.so.conf also contains /usr/contrib/lib and
! 26718: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 26719: # libtool to hard-code these into programs
! 26720: ;;
1.1 root 26721:
1.1.1.5 ! root 26722: cygwin* | mingw* | pw32*)
! 26723: version_type=windows
! 26724: shrext_cmds=".dll"
! 26725: need_version=no
! 26726: need_lib_prefix=no
1.1 root 26727:
1.1.1.5 ! root 26728: case $GCC,$host_os in
! 26729: yes,cygwin* | yes,mingw* | yes,pw32*)
! 26730: library_names_spec='$libname.dll.a'
! 26731: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 26732: postinstall_cmds='base_file=`basename \${file}`~
! 26733: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 26734: dldir=$destdir/`dirname \$dlpath`~
! 26735: test -d \$dldir || mkdir -p \$dldir~
! 26736: $install_prog $dir/$dlname \$dldir/$dlname~
! 26737: chmod a+x \$dldir/$dlname'
! 26738: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 26739: dlpath=$dir/\$dldll~
! 26740: $rm \$dlpath'
! 26741: shlibpath_overrides_runpath=yes
1.1 root 26742:
1.1.1.5 ! root 26743: case $host_os in
! 26744: cygwin*)
! 26745: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 26746: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 26747: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 26748: ;;
! 26749: mingw*)
! 26750: # MinGW DLLs use traditional 'lib' prefix
! 26751: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 26752: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 26753: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 26754: # It is most probably a Windows format PATH printed by
! 26755: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 26756: # path with ; separators, and with drive letters. We can handle the
! 26757: # drive letters (cygwin fileutils understands them), so leave them,
! 26758: # especially as we might pass files found there to a mingw objdump,
! 26759: # which wouldn't understand a cygwinified path. Ahh.
! 26760: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 26761: else
! 26762: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 26763: fi
! 26764: ;;
! 26765: pw32*)
! 26766: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 26767: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 26768: ;;
! 26769: esac
! 26770: ;;
1.1 root 26771:
1.1.1.5 ! root 26772: *)
! 26773: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1 root 26774: ;;
26775: esac
1.1.1.5 ! root 26776: dynamic_linker='Win32 ld.exe'
! 26777: # FIXME: first we should search . and the directory the executable is in
! 26778: shlibpath_var=PATH
! 26779: ;;
1.1 root 26780:
1.1.1.5 ! root 26781: darwin* | rhapsody*)
! 26782: dynamic_linker="$host_os dyld"
! 26783: version_type=darwin
! 26784: need_lib_prefix=no
! 26785: need_version=no
! 26786: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 26787: soname_spec='${libname}${release}${major}$shared_ext'
! 26788: shlibpath_overrides_runpath=yes
! 26789: shlibpath_var=DYLD_LIBRARY_PATH
! 26790: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 root 26791:
1.1.1.5 ! root 26792: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 26793: ;;
1.1 root 26794:
1.1.1.5 ! root 26795: dgux*)
! 26796: version_type=linux
! 26797: need_lib_prefix=no
! 26798: need_version=no
! 26799: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 26800: soname_spec='${libname}${release}${shared_ext}$major'
! 26801: shlibpath_var=LD_LIBRARY_PATH
! 26802: ;;
1.1 root 26803:
1.1.1.5 ! root 26804: freebsd1*)
! 26805: dynamic_linker=no
! 26806: ;;
1.1 root 26807:
1.1.1.5 ! root 26808: freebsd* | dragonfly*)
! 26809: # DragonFly does not have aout. When/if they implement a new
! 26810: # versioning mechanism, adjust this.
! 26811: if test -x /usr/bin/objformat; then
! 26812: objformat=`/usr/bin/objformat`
! 26813: else
! 26814: case $host_os in
! 26815: freebsd[123]*) objformat=aout ;;
! 26816: *) objformat=elf ;;
! 26817: esac
! 26818: fi
! 26819: version_type=freebsd-$objformat
! 26820: case $version_type in
! 26821: freebsd-elf*)
! 26822: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 26823: need_version=no
! 26824: need_lib_prefix=no
! 26825: ;;
! 26826: freebsd-*)
! 26827: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 26828: need_version=yes
! 26829: ;;
! 26830: esac
! 26831: shlibpath_var=LD_LIBRARY_PATH
! 26832: case $host_os in
! 26833: freebsd2*)
! 26834: shlibpath_overrides_runpath=yes
! 26835: ;;
! 26836: freebsd3.[01]* | freebsdelf3.[01]*)
! 26837: shlibpath_overrides_runpath=yes
! 26838: hardcode_into_libs=yes
! 26839: ;;
! 26840: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 26841: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 26842: shlibpath_overrides_runpath=no
! 26843: hardcode_into_libs=yes
! 26844: ;;
! 26845: *) # from 4.6 on, and DragonFly
! 26846: shlibpath_overrides_runpath=yes
! 26847: hardcode_into_libs=yes
! 26848: ;;
! 26849: esac
! 26850: ;;
1.1 root 26851:
1.1.1.5 ! root 26852: gnu*)
! 26853: version_type=linux
! 26854: need_lib_prefix=no
! 26855: need_version=no
! 26856: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 26857: soname_spec='${libname}${release}${shared_ext}$major'
! 26858: shlibpath_var=LD_LIBRARY_PATH
! 26859: hardcode_into_libs=yes
! 26860: ;;
1.1 root 26861:
1.1.1.5 ! root 26862: hpux9* | hpux10* | hpux11*)
! 26863: # Give a soname corresponding to the major version so that dld.sl refuses to
! 26864: # link against other versions.
! 26865: version_type=sunos
! 26866: need_lib_prefix=no
! 26867: need_version=no
! 26868: case $host_cpu in
! 26869: ia64*)
! 26870: shrext_cmds='.so'
! 26871: hardcode_into_libs=yes
! 26872: dynamic_linker="$host_os dld.so"
! 26873: shlibpath_var=LD_LIBRARY_PATH
! 26874: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 26875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26876: soname_spec='${libname}${release}${shared_ext}$major'
! 26877: if test "X$HPUX_IA64_MODE" = X32; then
! 26878: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 26879: else
! 26880: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 26881: fi
! 26882: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 26883: ;;
! 26884: hppa*64*)
! 26885: shrext_cmds='.sl'
! 26886: hardcode_into_libs=yes
! 26887: dynamic_linker="$host_os dld.sl"
! 26888: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 26889: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 26890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26891: soname_spec='${libname}${release}${shared_ext}$major'
! 26892: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 26893: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 26894: ;;
! 26895: *)
! 26896: shrext_cmds='.sl'
! 26897: dynamic_linker="$host_os dld.sl"
! 26898: shlibpath_var=SHLIB_PATH
! 26899: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 26900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26901: soname_spec='${libname}${release}${shared_ext}$major'
! 26902: ;;
! 26903: esac
! 26904: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 26905: postinstall_cmds='chmod 555 $lib'
! 26906: ;;
1.1 root 26907:
1.1.1.5 ! root 26908: interix[3-9]*)
! 26909: version_type=linux
! 26910: need_lib_prefix=no
! 26911: need_version=no
! 26912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 26913: soname_spec='${libname}${release}${shared_ext}$major'
! 26914: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 26915: shlibpath_var=LD_LIBRARY_PATH
! 26916: shlibpath_overrides_runpath=no
! 26917: hardcode_into_libs=yes
! 26918: ;;
1.1 root 26919:
1.1.1.5 ! root 26920: irix5* | irix6* | nonstopux*)
! 26921: case $host_os in
! 26922: nonstopux*) version_type=nonstopux ;;
! 26923: *)
! 26924: if test "$lt_cv_prog_gnu_ld" = yes; then
! 26925: version_type=linux
! 26926: else
! 26927: version_type=irix
! 26928: fi ;;
! 26929: esac
! 26930: need_lib_prefix=no
! 26931: need_version=no
! 26932: soname_spec='${libname}${release}${shared_ext}$major'
! 26933: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 26934: case $host_os in
! 26935: irix5* | nonstopux*)
! 26936: libsuff= shlibsuff=
! 26937: ;;
! 26938: *)
! 26939: case $LD in # libtool.m4 will add one of these switches to LD
! 26940: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 26941: libsuff= shlibsuff= libmagic=32-bit;;
! 26942: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 26943: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 26944: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 26945: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 26946: *) libsuff= shlibsuff= libmagic=never-match;;
! 26947: esac
! 26948: ;;
! 26949: esac
! 26950: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 26951: shlibpath_overrides_runpath=no
! 26952: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 26953: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 26954: hardcode_into_libs=yes
! 26955: ;;
1.1 root 26956:
1.1.1.5 ! root 26957: # No shared lib support for Linux oldld, aout, or coff.
! 26958: linux*oldld* | linux*aout* | linux*coff*)
! 26959: dynamic_linker=no
! 26960: ;;
1.1 root 26961:
1.1.1.5 ! root 26962: # This must be Linux ELF.
! 26963: linux* | k*bsd*-gnu)
! 26964: version_type=linux
! 26965: need_lib_prefix=no
! 26966: need_version=no
! 26967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 26968: soname_spec='${libname}${release}${shared_ext}$major'
! 26969: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 26970: shlibpath_var=LD_LIBRARY_PATH
! 26971: shlibpath_overrides_runpath=no
! 26972: # This implies no fast_install, which is unacceptable.
! 26973: # Some rework will be needed to allow for fast_install
! 26974: # before this can be enabled.
! 26975: hardcode_into_libs=yes
1.1 root 26976:
1.1.1.5 ! root 26977: # Append ld.so.conf contents to the search path
! 26978: if test -f /etc/ld.so.conf; then
! 26979: 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' ' '`
! 26980: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.1 root 26981: fi
26982:
1.1.1.5 ! root 26983: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 26984: # powerpc, because MkLinux only supported shared libraries with the
! 26985: # GNU dynamic linker. Since this was broken with cross compilers,
! 26986: # most powerpc-linux boxes support dynamic linking these days and
! 26987: # people can always --disable-shared, the test was removed, and we
! 26988: # assume the GNU/Linux dynamic linker is in use.
! 26989: dynamic_linker='GNU/Linux ld.so'
! 26990: ;;
1.1 root 26991:
1.1.1.5 ! root 26992: netbsd*)
! 26993: version_type=sunos
! 26994: need_lib_prefix=no
! 26995: need_version=no
! 26996: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 26997: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 26998: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 26999: dynamic_linker='NetBSD (a.out) ld.so'
! 27000: else
! 27001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 27002: soname_spec='${libname}${release}${shared_ext}$major'
! 27003: dynamic_linker='NetBSD ld.elf_so'
! 27004: fi
! 27005: shlibpath_var=LD_LIBRARY_PATH
! 27006: shlibpath_overrides_runpath=yes
! 27007: hardcode_into_libs=yes
! 27008: ;;
1.1 root 27009:
1.1.1.5 ! root 27010: newsos6)
! 27011: version_type=linux
! 27012: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27013: shlibpath_var=LD_LIBRARY_PATH
! 27014: shlibpath_overrides_runpath=yes
! 27015: ;;
1.1 root 27016:
1.1.1.5 ! root 27017: nto-qnx*)
! 27018: version_type=linux
! 27019: need_lib_prefix=no
! 27020: need_version=no
! 27021: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27022: soname_spec='${libname}${release}${shared_ext}$major'
! 27023: shlibpath_var=LD_LIBRARY_PATH
! 27024: shlibpath_overrides_runpath=yes
! 27025: ;;
1.1 root 27026:
1.1.1.5 ! root 27027: openbsd*)
! 27028: version_type=sunos
! 27029: sys_lib_dlsearch_path_spec="/usr/lib"
! 27030: need_lib_prefix=no
! 27031: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 27032: case $host_os in
! 27033: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 27034: *) need_version=no ;;
! 27035: esac
! 27036: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 27037: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 27038: shlibpath_var=LD_LIBRARY_PATH
! 27039: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 27040: case $host_os in
! 27041: openbsd2.[89] | openbsd2.[89].*)
! 27042: shlibpath_overrides_runpath=no
! 27043: ;;
! 27044: *)
! 27045: shlibpath_overrides_runpath=yes
! 27046: ;;
! 27047: esac
! 27048: else
! 27049: shlibpath_overrides_runpath=yes
! 27050: fi
! 27051: ;;
1.1 root 27052:
1.1.1.5 ! root 27053: os2*)
! 27054: libname_spec='$name'
! 27055: shrext_cmds=".dll"
! 27056: need_lib_prefix=no
! 27057: library_names_spec='$libname${shared_ext} $libname.a'
! 27058: dynamic_linker='OS/2 ld.exe'
! 27059: shlibpath_var=LIBPATH
! 27060: ;;
1.1 root 27061:
1.1.1.5 ! root 27062: osf3* | osf4* | osf5*)
! 27063: version_type=osf
! 27064: need_lib_prefix=no
! 27065: need_version=no
! 27066: soname_spec='${libname}${release}${shared_ext}$major'
! 27067: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27068: shlibpath_var=LD_LIBRARY_PATH
! 27069: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 27070: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 27071: ;;
1.1 root 27072:
1.1.1.5 ! root 27073: rdos*)
! 27074: dynamic_linker=no
! 27075: ;;
1.1 root 27076:
1.1.1.5 ! root 27077: solaris*)
! 27078: version_type=linux
! 27079: need_lib_prefix=no
! 27080: need_version=no
! 27081: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27082: soname_spec='${libname}${release}${shared_ext}$major'
! 27083: shlibpath_var=LD_LIBRARY_PATH
! 27084: shlibpath_overrides_runpath=yes
! 27085: hardcode_into_libs=yes
! 27086: # ldd complains unless libraries are executable
! 27087: postinstall_cmds='chmod +x $lib'
! 27088: ;;
1.1 root 27089:
1.1.1.5 ! root 27090: sunos4*)
! 27091: version_type=sunos
! 27092: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 27093: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 27094: shlibpath_var=LD_LIBRARY_PATH
! 27095: shlibpath_overrides_runpath=yes
! 27096: if test "$with_gnu_ld" = yes; then
! 27097: need_lib_prefix=no
! 27098: fi
! 27099: need_version=yes
! 27100: ;;
1.1 root 27101:
1.1.1.5 ! root 27102: sysv4 | sysv4.3*)
! 27103: version_type=linux
! 27104: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27105: soname_spec='${libname}${release}${shared_ext}$major'
! 27106: shlibpath_var=LD_LIBRARY_PATH
! 27107: case $host_vendor in
! 27108: sni)
! 27109: shlibpath_overrides_runpath=no
! 27110: need_lib_prefix=no
! 27111: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 27112: runpath_var=LD_RUN_PATH
! 27113: ;;
! 27114: siemens)
! 27115: need_lib_prefix=no
! 27116: ;;
! 27117: motorola)
! 27118: need_lib_prefix=no
! 27119: need_version=no
! 27120: shlibpath_overrides_runpath=no
! 27121: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 27122: ;;
! 27123: esac
! 27124: ;;
! 27125:
! 27126: sysv4*MP*)
! 27127: if test -d /usr/nec ;then
! 27128: version_type=linux
! 27129: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 27130: soname_spec='$libname${shared_ext}.$major'
! 27131: shlibpath_var=LD_LIBRARY_PATH
! 27132: fi
! 27133: ;;
! 27134:
! 27135: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 27136: version_type=freebsd-elf
! 27137: need_lib_prefix=no
! 27138: need_version=no
! 27139: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 27140: soname_spec='${libname}${release}${shared_ext}$major'
! 27141: shlibpath_var=LD_LIBRARY_PATH
! 27142: hardcode_into_libs=yes
! 27143: if test "$with_gnu_ld" = yes; then
! 27144: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 27145: shlibpath_overrides_runpath=no
! 27146: else
! 27147: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 27148: shlibpath_overrides_runpath=yes
! 27149: case $host_os in
! 27150: sco3.2v5*)
! 27151: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 27152: ;;
1.1 root 27153: esac
27154: fi
1.1.1.5 ! root 27155: sys_lib_dlsearch_path_spec='/usr/lib'
! 27156: ;;
! 27157:
! 27158: uts4*)
! 27159: version_type=linux
! 27160: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 27161: soname_spec='${libname}${release}${shared_ext}$major'
! 27162: shlibpath_var=LD_LIBRARY_PATH
! 27163: ;;
1.1 root 27164:
1.1.1.5 ! root 27165: *)
! 27166: dynamic_linker=no
! 27167: ;;
! 27168: esac
! 27169: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 27170: echo "${ECHO_T}$dynamic_linker" >&6; }
! 27171: test "$dynamic_linker" = no && can_build_shared=no
1.1 root 27172:
1.1.1.5 ! root 27173: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 27174: if test "$GCC" = yes; then
! 27175: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.1 root 27176: fi
27177:
1.1.1.5 ! root 27178: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 27179: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 27180: hardcode_action_GCJ=
! 27181: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
! 27182: test -n "$runpath_var_GCJ" || \
! 27183: test "X$hardcode_automatic_GCJ" = "Xyes" ; then
1.1 root 27184:
1.1.1.5 ! root 27185: # We can hardcode non-existant directories.
! 27186: if test "$hardcode_direct_GCJ" != no &&
! 27187: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 27188: # have to relink, otherwise we might link with an installed library
! 27189: # when we should be linking with a yet-to-be-installed one
! 27190: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
! 27191: test "$hardcode_minus_L_GCJ" != no; then
! 27192: # Linking always hardcodes the temporary library directory.
! 27193: hardcode_action_GCJ=relink
! 27194: else
! 27195: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 27196: hardcode_action_GCJ=immediate
! 27197: fi
! 27198: else
! 27199: # We cannot hardcode anything, or else we can only hardcode existing
! 27200: # directories.
! 27201: hardcode_action_GCJ=unsupported
! 27202: fi
! 27203: { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
! 27204: echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
1.1 root 27205:
1.1.1.5 ! root 27206: if test "$hardcode_action_GCJ" = relink; then
! 27207: # Fast installation is not supported
! 27208: enable_fast_install=no
! 27209: elif test "$shlibpath_overrides_runpath" = yes ||
! 27210: test "$enable_shared" = no; then
! 27211: # Fast installation is not necessary
! 27212: enable_fast_install=needless
1.1 root 27213: fi
27214:
27215:
27216: # The else clause should only fire when bootstrapping the
27217: # libtool distribution, otherwise you forgot to ship ltmain.sh
27218: # with your package, and you will get complaints that there are
27219: # no rules to generate ltmain.sh.
27220: if test -f "$ltmain"; then
27221: # See if we are running on zsh, and set the options which allow our commands through
27222: # without removal of \ escapes.
27223: if test -n "${ZSH_VERSION+set}" ; then
27224: setopt NO_GLOB_SUBST
27225: fi
27226: # Now quote all the things that may contain metacharacters while being
27227: # careful not to overquote the AC_SUBSTed values. We take copies of the
27228: # variables and quote the copies for generation of the libtool script.
1.1.1.5 ! root 27229: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 27230: SED SHELL STRIP \
1.1 root 27231: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27232: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27233: deplibs_check_method reload_flag reload_cmds need_locks \
27234: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27235: lt_cv_sys_global_symbol_to_c_name_address \
27236: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27237: old_postinstall_cmds old_postuninstall_cmds \
27238: compiler_GCJ \
27239: CC_GCJ \
27240: LD_GCJ \
27241: lt_prog_compiler_wl_GCJ \
27242: lt_prog_compiler_pic_GCJ \
27243: lt_prog_compiler_static_GCJ \
27244: lt_prog_compiler_no_builtin_flag_GCJ \
27245: export_dynamic_flag_spec_GCJ \
27246: thread_safe_flag_spec_GCJ \
27247: whole_archive_flag_spec_GCJ \
27248: enable_shared_with_static_runtimes_GCJ \
27249: old_archive_cmds_GCJ \
27250: old_archive_from_new_cmds_GCJ \
27251: predep_objects_GCJ \
27252: postdep_objects_GCJ \
27253: predeps_GCJ \
27254: postdeps_GCJ \
27255: compiler_lib_search_path_GCJ \
27256: archive_cmds_GCJ \
27257: archive_expsym_cmds_GCJ \
27258: postinstall_cmds_GCJ \
27259: postuninstall_cmds_GCJ \
27260: old_archive_from_expsyms_cmds_GCJ \
27261: allow_undefined_flag_GCJ \
27262: no_undefined_flag_GCJ \
27263: export_symbols_cmds_GCJ \
27264: hardcode_libdir_flag_spec_GCJ \
27265: hardcode_libdir_flag_spec_ld_GCJ \
27266: hardcode_libdir_separator_GCJ \
27267: hardcode_automatic_GCJ \
27268: module_cmds_GCJ \
27269: module_expsym_cmds_GCJ \
27270: lt_cv_prog_compiler_c_o_GCJ \
1.1.1.5 ! root 27271: fix_srcfile_path_GCJ \
1.1 root 27272: exclude_expsyms_GCJ \
27273: include_expsyms_GCJ; do
27274:
27275: case $var in
27276: old_archive_cmds_GCJ | \
27277: old_archive_from_new_cmds_GCJ | \
27278: archive_cmds_GCJ | \
27279: archive_expsym_cmds_GCJ | \
27280: module_cmds_GCJ | \
27281: module_expsym_cmds_GCJ | \
27282: old_archive_from_expsyms_cmds_GCJ | \
27283: export_symbols_cmds_GCJ | \
27284: extract_expsyms_cmds | reload_cmds | finish_cmds | \
27285: postinstall_cmds | postuninstall_cmds | \
27286: old_postinstall_cmds | old_postuninstall_cmds | \
27287: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27288: # Double-quote double-evaled strings.
27289: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27290: ;;
27291: *)
27292: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27293: ;;
27294: esac
27295: done
27296:
27297: case $lt_echo in
27298: *'\$0 --fallback-echo"')
27299: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27300: ;;
27301: esac
27302:
27303: cfgfile="$ofile"
27304:
27305: cat <<__EOF__ >> "$cfgfile"
27306: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27307:
27308: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27309:
27310: # Shell to use when invoking shell scripts.
27311: SHELL=$lt_SHELL
27312:
27313: # Whether or not to build shared libraries.
27314: build_libtool_libs=$enable_shared
27315:
27316: # Whether or not to build static libraries.
27317: build_old_libs=$enable_static
27318:
27319: # Whether or not to add -lc for building shared libraries.
27320: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27321:
27322: # Whether or not to disallow shared libs when runtime libs are static
27323: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27324:
27325: # Whether or not to optimize for fast installation.
27326: fast_install=$enable_fast_install
27327:
27328: # The host system.
27329: host_alias=$host_alias
27330: host=$host
1.1.1.5 ! root 27331: host_os=$host_os
! 27332:
! 27333: # The build system.
! 27334: build_alias=$build_alias
! 27335: build=$build
! 27336: build_os=$build_os
1.1 root 27337:
27338: # An echo program that does not interpret backslashes.
27339: echo=$lt_echo
27340:
27341: # The archiver.
27342: AR=$lt_AR
27343: AR_FLAGS=$lt_AR_FLAGS
27344:
27345: # A C compiler.
27346: LTCC=$lt_LTCC
27347:
1.1.1.5 ! root 27348: # LTCC compiler flags.
! 27349: LTCFLAGS=$lt_LTCFLAGS
! 27350:
1.1 root 27351: # A language-specific compiler.
27352: CC=$lt_compiler_GCJ
27353:
27354: # Is the compiler the GNU C compiler?
27355: with_gcc=$GCC_GCJ
27356:
27357: # An ERE matcher.
27358: EGREP=$lt_EGREP
27359:
27360: # The linker used to build libraries.
27361: LD=$lt_LD_GCJ
27362:
27363: # Whether we need hard or soft links.
27364: LN_S=$lt_LN_S
27365:
27366: # A BSD-compatible nm program.
27367: NM=$lt_NM
27368:
27369: # A symbol stripping program
1.1.1.5 ! root 27370: STRIP=$lt_STRIP
1.1 root 27371:
27372: # Used to examine libraries when file_magic_cmd begins "file"
27373: MAGIC_CMD=$MAGIC_CMD
27374:
27375: # Used on cygwin: DLL creation program.
27376: DLLTOOL="$DLLTOOL"
27377:
27378: # Used on cygwin: object dumper.
27379: OBJDUMP="$OBJDUMP"
27380:
27381: # Used on cygwin: assembler.
27382: AS="$AS"
27383:
27384: # The name of the directory that contains temporary libtool files.
27385: objdir=$objdir
27386:
27387: # How to create reloadable object files.
27388: reload_flag=$lt_reload_flag
27389: reload_cmds=$lt_reload_cmds
27390:
27391: # How to pass a linker flag through the compiler.
27392: wl=$lt_lt_prog_compiler_wl_GCJ
27393:
27394: # Object file suffix (normally "o").
27395: objext="$ac_objext"
27396:
27397: # Old archive suffix (normally "a").
27398: libext="$libext"
27399:
27400: # Shared library suffix (normally ".so").
1.1.1.5 ! root 27401: shrext_cmds='$shrext_cmds'
1.1 root 27402:
27403: # Executable file suffix (normally "").
27404: exeext="$exeext"
27405:
27406: # Additional compiler flags for building library objects.
27407: pic_flag=$lt_lt_prog_compiler_pic_GCJ
27408: pic_mode=$pic_mode
27409:
27410: # What is the maximum length of a command?
27411: max_cmd_len=$lt_cv_sys_max_cmd_len
27412:
27413: # Does compiler simultaneously support -c and -o options?
27414: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27415:
1.1.1.5 ! root 27416: # Must we lock files when doing compilation?
1.1 root 27417: need_locks=$lt_need_locks
27418:
27419: # Do we need the lib prefix for modules?
27420: need_lib_prefix=$need_lib_prefix
27421:
27422: # Do we need a version for libraries?
27423: need_version=$need_version
27424:
27425: # Whether dlopen is supported.
27426: dlopen_support=$enable_dlopen
27427:
27428: # Whether dlopen of programs is supported.
27429: dlopen_self=$enable_dlopen_self
27430:
27431: # Whether dlopen of statically linked programs is supported.
27432: dlopen_self_static=$enable_dlopen_self_static
27433:
27434: # Compiler flag to prevent dynamic linking.
27435: link_static_flag=$lt_lt_prog_compiler_static_GCJ
27436:
27437: # Compiler flag to turn off builtin functions.
27438: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27439:
27440: # Compiler flag to allow reflexive dlopens.
27441: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27442:
27443: # Compiler flag to generate shared objects directly from archives.
27444: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27445:
27446: # Compiler flag to generate thread-safe objects.
27447: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
27448:
27449: # Library versioning type.
27450: version_type=$version_type
27451:
27452: # Format of library name prefix.
27453: libname_spec=$lt_libname_spec
27454:
27455: # List of archive names. First name is the real one, the rest are links.
27456: # The last name is the one that the linker finds with -lNAME.
27457: library_names_spec=$lt_library_names_spec
27458:
27459: # The coded name of the library, if different from the real name.
27460: soname_spec=$lt_soname_spec
27461:
27462: # Commands used to build and install an old-style archive.
27463: RANLIB=$lt_RANLIB
27464: old_archive_cmds=$lt_old_archive_cmds_GCJ
27465: old_postinstall_cmds=$lt_old_postinstall_cmds
27466: old_postuninstall_cmds=$lt_old_postuninstall_cmds
27467:
27468: # Create an old-style archive from a shared archive.
27469: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27470:
27471: # Create a temporary old-style archive to link instead of a shared archive.
27472: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27473:
27474: # Commands used to build and install a shared archive.
27475: archive_cmds=$lt_archive_cmds_GCJ
27476: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27477: postinstall_cmds=$lt_postinstall_cmds
27478: postuninstall_cmds=$lt_postuninstall_cmds
27479:
27480: # Commands used to build a loadable module (assumed same as above if empty)
27481: module_cmds=$lt_module_cmds_GCJ
27482: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27483:
27484: # Commands to strip libraries.
27485: old_striplib=$lt_old_striplib
27486: striplib=$lt_striplib
27487:
27488: # Dependencies to place before the objects being linked to create a
27489: # shared library.
27490: predep_objects=$lt_predep_objects_GCJ
27491:
27492: # Dependencies to place after the objects being linked to create a
27493: # shared library.
27494: postdep_objects=$lt_postdep_objects_GCJ
27495:
27496: # Dependencies to place before the objects being linked to create a
27497: # shared library.
27498: predeps=$lt_predeps_GCJ
27499:
27500: # Dependencies to place after the objects being linked to create a
27501: # shared library.
27502: postdeps=$lt_postdeps_GCJ
27503:
27504: # The library search path used internally by the compiler when linking
27505: # a shared library.
27506: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27507:
27508: # Method to check whether dependent libraries are shared objects.
27509: deplibs_check_method=$lt_deplibs_check_method
27510:
27511: # Command to use when deplibs_check_method == file_magic.
27512: file_magic_cmd=$lt_file_magic_cmd
27513:
27514: # Flag that allows shared libraries with undefined symbols to be built.
27515: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27516:
27517: # Flag that forces no undefined symbols.
27518: no_undefined_flag=$lt_no_undefined_flag_GCJ
27519:
27520: # Commands used to finish a libtool library installation in a directory.
27521: finish_cmds=$lt_finish_cmds
27522:
27523: # Same as above, but a single script fragment to be evaled but not shown.
27524: finish_eval=$lt_finish_eval
27525:
27526: # Take the output of nm and produce a listing of raw symbols and C names.
27527: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27528:
27529: # Transform the output of nm in a proper C declaration
27530: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27531:
27532: # Transform the output of nm in a C name address pair
27533: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27534:
27535: # This is the shared library runtime path variable.
27536: runpath_var=$runpath_var
27537:
27538: # This is the shared library path variable.
27539: shlibpath_var=$shlibpath_var
27540:
27541: # Is shlibpath searched before the hard-coded library search path?
27542: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27543:
27544: # How to hardcode a shared library path into an executable.
27545: hardcode_action=$hardcode_action_GCJ
27546:
27547: # Whether we should hardcode library paths into libraries.
27548: hardcode_into_libs=$hardcode_into_libs
27549:
27550: # Flag to hardcode \$libdir into a binary during linking.
27551: # This must work even if \$libdir does not exist.
27552: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27553:
27554: # If ld is used when linking, flag to hardcode \$libdir into
27555: # a binary during linking. This must work even if \$libdir does
27556: # not exist.
27557: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27558:
27559: # Whether we need a single -rpath flag with a separated argument.
27560: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27561:
27562: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27563: # resulting binary.
27564: hardcode_direct=$hardcode_direct_GCJ
27565:
27566: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27567: # resulting binary.
27568: hardcode_minus_L=$hardcode_minus_L_GCJ
27569:
27570: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27571: # the resulting binary.
27572: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27573:
27574: # Set to yes if building a shared library automatically hardcodes DIR into the library
27575: # and all subsequent libraries and executables linked against it.
27576: hardcode_automatic=$hardcode_automatic_GCJ
27577:
27578: # Variables whose values should be saved in libtool wrapper scripts and
27579: # restored at relink time.
27580: variables_saved_for_relink="$variables_saved_for_relink"
27581:
27582: # Whether libtool must link a program against all its dependency libraries.
27583: link_all_deplibs=$link_all_deplibs_GCJ
27584:
27585: # Compile-time system search path for libraries
27586: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27587:
27588: # Run-time system search path for libraries
27589: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27590:
27591: # Fix the shell variable \$srcfile for the compiler.
1.1.1.5 ! root 27592: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 27593:
27594: # Set to yes if exported symbols are required.
27595: always_export_symbols=$always_export_symbols_GCJ
27596:
27597: # The commands to list exported symbols.
27598: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27599:
27600: # The commands to extract the exported symbol list from a shared archive.
27601: extract_expsyms_cmds=$lt_extract_expsyms_cmds
27602:
27603: # Symbols that should not be listed in the preloaded symbols.
27604: exclude_expsyms=$lt_exclude_expsyms_GCJ
27605:
27606: # Symbols that must always be exported.
27607: include_expsyms=$lt_include_expsyms_GCJ
27608:
27609: # ### END LIBTOOL TAG CONFIG: $tagname
27610:
27611: __EOF__
27612:
27613:
27614: else
27615: # If there is no Makefile yet, we rely on a make rule to execute
27616: # `config.status --recheck' to rerun these tests and create the
27617: # libtool script then.
1.1.1.5 ! root 27618: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 27619: if test -f "$ltmain_in"; then
! 27620: test -f Makefile && make "$ltmain"
! 27621: fi
1.1 root 27622: fi
27623:
27624:
27625: ac_ext=c
27626: ac_cpp='$CPP $CPPFLAGS'
27627: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27628: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27629: ac_compiler_gnu=$ac_cv_c_compiler_gnu
27630:
27631: CC="$lt_save_CC"
27632:
27633: else
27634: tagname=""
27635: fi
27636: ;;
27637:
27638: RC)
27639:
27640:
27641: # Source file extension for RC test sources.
27642: ac_ext=rc
27643:
27644: # Object file extension for compiled RC test sources.
27645: objext=o
27646: objext_RC=$objext
27647:
27648: # Code to be used in simple compile tests
1.1.1.5 ! root 27649: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
1.1 root 27650:
27651: # Code to be used in simple link tests
27652: lt_simple_link_test_code="$lt_simple_compile_test_code"
27653:
27654: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27655:
27656: # If no C compiler was specified, use CC.
27657: LTCC=${LTCC-"$CC"}
27658:
1.1.1.5 ! root 27659: # If no C compiler flags were specified, use CFLAGS.
! 27660: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 27661:
1.1 root 27662: # Allow CC to be a program name with arguments.
27663: compiler=$CC
27664:
27665:
1.1.1.5 ! root 27666: # save warnings/boilerplate of simple test code
! 27667: ac_outfile=conftest.$ac_objext
! 27668: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 27669: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 27670: _lt_compiler_boilerplate=`cat conftest.err`
! 27671: $rm conftest*
! 27672:
! 27673: ac_outfile=conftest.$ac_objext
! 27674: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 27675: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 27676: _lt_linker_boilerplate=`cat conftest.err`
! 27677: $rm conftest*
! 27678:
! 27679:
1.1 root 27680: # Allow CC to be a program name with arguments.
27681: lt_save_CC="$CC"
27682: CC=${RC-"windres"}
27683: compiler=$CC
27684: compiler_RC=$CC
1.1.1.5 ! root 27685: for cc_temp in $compiler""; do
! 27686: case $cc_temp in
! 27687: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 27688: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 27689: \-*) ;;
! 27690: *) break;;
! 27691: esac
! 27692: done
! 27693: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 27694:
1.1 root 27695: lt_cv_prog_compiler_c_o_RC=yes
27696:
27697: # The else clause should only fire when bootstrapping the
27698: # libtool distribution, otherwise you forgot to ship ltmain.sh
27699: # with your package, and you will get complaints that there are
27700: # no rules to generate ltmain.sh.
27701: if test -f "$ltmain"; then
27702: # See if we are running on zsh, and set the options which allow our commands through
27703: # without removal of \ escapes.
27704: if test -n "${ZSH_VERSION+set}" ; then
27705: setopt NO_GLOB_SUBST
27706: fi
27707: # Now quote all the things that may contain metacharacters while being
27708: # careful not to overquote the AC_SUBSTed values. We take copies of the
27709: # variables and quote the copies for generation of the libtool script.
1.1.1.5 ! root 27710: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 27711: SED SHELL STRIP \
1.1 root 27712: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27713: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27714: deplibs_check_method reload_flag reload_cmds need_locks \
27715: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27716: lt_cv_sys_global_symbol_to_c_name_address \
27717: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27718: old_postinstall_cmds old_postuninstall_cmds \
27719: compiler_RC \
27720: CC_RC \
27721: LD_RC \
27722: lt_prog_compiler_wl_RC \
27723: lt_prog_compiler_pic_RC \
27724: lt_prog_compiler_static_RC \
27725: lt_prog_compiler_no_builtin_flag_RC \
27726: export_dynamic_flag_spec_RC \
27727: thread_safe_flag_spec_RC \
27728: whole_archive_flag_spec_RC \
27729: enable_shared_with_static_runtimes_RC \
27730: old_archive_cmds_RC \
27731: old_archive_from_new_cmds_RC \
27732: predep_objects_RC \
27733: postdep_objects_RC \
27734: predeps_RC \
27735: postdeps_RC \
27736: compiler_lib_search_path_RC \
27737: archive_cmds_RC \
27738: archive_expsym_cmds_RC \
27739: postinstall_cmds_RC \
27740: postuninstall_cmds_RC \
27741: old_archive_from_expsyms_cmds_RC \
27742: allow_undefined_flag_RC \
27743: no_undefined_flag_RC \
27744: export_symbols_cmds_RC \
27745: hardcode_libdir_flag_spec_RC \
27746: hardcode_libdir_flag_spec_ld_RC \
27747: hardcode_libdir_separator_RC \
27748: hardcode_automatic_RC \
27749: module_cmds_RC \
27750: module_expsym_cmds_RC \
27751: lt_cv_prog_compiler_c_o_RC \
1.1.1.5 ! root 27752: fix_srcfile_path_RC \
1.1 root 27753: exclude_expsyms_RC \
27754: include_expsyms_RC; do
27755:
27756: case $var in
27757: old_archive_cmds_RC | \
27758: old_archive_from_new_cmds_RC | \
27759: archive_cmds_RC | \
27760: archive_expsym_cmds_RC | \
27761: module_cmds_RC | \
27762: module_expsym_cmds_RC | \
27763: old_archive_from_expsyms_cmds_RC | \
27764: export_symbols_cmds_RC | \
27765: extract_expsyms_cmds | reload_cmds | finish_cmds | \
27766: postinstall_cmds | postuninstall_cmds | \
27767: old_postinstall_cmds | old_postuninstall_cmds | \
27768: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27769: # Double-quote double-evaled strings.
27770: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27771: ;;
27772: *)
27773: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27774: ;;
27775: esac
27776: done
27777:
27778: case $lt_echo in
27779: *'\$0 --fallback-echo"')
27780: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27781: ;;
27782: esac
27783:
27784: cfgfile="$ofile"
27785:
27786: cat <<__EOF__ >> "$cfgfile"
27787: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27788:
27789: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27790:
27791: # Shell to use when invoking shell scripts.
27792: SHELL=$lt_SHELL
27793:
27794: # Whether or not to build shared libraries.
27795: build_libtool_libs=$enable_shared
27796:
27797: # Whether or not to build static libraries.
27798: build_old_libs=$enable_static
27799:
27800: # Whether or not to add -lc for building shared libraries.
27801: build_libtool_need_lc=$archive_cmds_need_lc_RC
27802:
27803: # Whether or not to disallow shared libs when runtime libs are static
27804: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27805:
27806: # Whether or not to optimize for fast installation.
27807: fast_install=$enable_fast_install
27808:
27809: # The host system.
27810: host_alias=$host_alias
27811: host=$host
1.1.1.5 ! root 27812: host_os=$host_os
! 27813:
! 27814: # The build system.
! 27815: build_alias=$build_alias
! 27816: build=$build
! 27817: build_os=$build_os
1.1 root 27818:
27819: # An echo program that does not interpret backslashes.
27820: echo=$lt_echo
27821:
27822: # The archiver.
27823: AR=$lt_AR
27824: AR_FLAGS=$lt_AR_FLAGS
27825:
27826: # A C compiler.
27827: LTCC=$lt_LTCC
27828:
1.1.1.5 ! root 27829: # LTCC compiler flags.
! 27830: LTCFLAGS=$lt_LTCFLAGS
! 27831:
1.1 root 27832: # A language-specific compiler.
27833: CC=$lt_compiler_RC
27834:
27835: # Is the compiler the GNU C compiler?
27836: with_gcc=$GCC_RC
27837:
27838: # An ERE matcher.
27839: EGREP=$lt_EGREP
27840:
27841: # The linker used to build libraries.
27842: LD=$lt_LD_RC
27843:
27844: # Whether we need hard or soft links.
27845: LN_S=$lt_LN_S
27846:
27847: # A BSD-compatible nm program.
27848: NM=$lt_NM
27849:
27850: # A symbol stripping program
1.1.1.5 ! root 27851: STRIP=$lt_STRIP
1.1 root 27852:
27853: # Used to examine libraries when file_magic_cmd begins "file"
27854: MAGIC_CMD=$MAGIC_CMD
27855:
27856: # Used on cygwin: DLL creation program.
27857: DLLTOOL="$DLLTOOL"
27858:
27859: # Used on cygwin: object dumper.
27860: OBJDUMP="$OBJDUMP"
27861:
27862: # Used on cygwin: assembler.
27863: AS="$AS"
27864:
27865: # The name of the directory that contains temporary libtool files.
27866: objdir=$objdir
27867:
27868: # How to create reloadable object files.
27869: reload_flag=$lt_reload_flag
27870: reload_cmds=$lt_reload_cmds
27871:
27872: # How to pass a linker flag through the compiler.
27873: wl=$lt_lt_prog_compiler_wl_RC
27874:
27875: # Object file suffix (normally "o").
27876: objext="$ac_objext"
27877:
27878: # Old archive suffix (normally "a").
27879: libext="$libext"
27880:
27881: # Shared library suffix (normally ".so").
1.1.1.5 ! root 27882: shrext_cmds='$shrext_cmds'
1.1 root 27883:
27884: # Executable file suffix (normally "").
27885: exeext="$exeext"
27886:
27887: # Additional compiler flags for building library objects.
27888: pic_flag=$lt_lt_prog_compiler_pic_RC
27889: pic_mode=$pic_mode
27890:
27891: # What is the maximum length of a command?
27892: max_cmd_len=$lt_cv_sys_max_cmd_len
27893:
27894: # Does compiler simultaneously support -c and -o options?
27895: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27896:
1.1.1.5 ! root 27897: # Must we lock files when doing compilation?
1.1 root 27898: need_locks=$lt_need_locks
27899:
27900: # Do we need the lib prefix for modules?
27901: need_lib_prefix=$need_lib_prefix
27902:
27903: # Do we need a version for libraries?
27904: need_version=$need_version
27905:
27906: # Whether dlopen is supported.
27907: dlopen_support=$enable_dlopen
27908:
27909: # Whether dlopen of programs is supported.
27910: dlopen_self=$enable_dlopen_self
27911:
27912: # Whether dlopen of statically linked programs is supported.
27913: dlopen_self_static=$enable_dlopen_self_static
27914:
27915: # Compiler flag to prevent dynamic linking.
27916: link_static_flag=$lt_lt_prog_compiler_static_RC
27917:
27918: # Compiler flag to turn off builtin functions.
27919: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27920:
27921: # Compiler flag to allow reflexive dlopens.
27922: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27923:
27924: # Compiler flag to generate shared objects directly from archives.
27925: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27926:
27927: # Compiler flag to generate thread-safe objects.
27928: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27929:
27930: # Library versioning type.
27931: version_type=$version_type
27932:
27933: # Format of library name prefix.
27934: libname_spec=$lt_libname_spec
27935:
27936: # List of archive names. First name is the real one, the rest are links.
27937: # The last name is the one that the linker finds with -lNAME.
27938: library_names_spec=$lt_library_names_spec
27939:
27940: # The coded name of the library, if different from the real name.
27941: soname_spec=$lt_soname_spec
27942:
27943: # Commands used to build and install an old-style archive.
27944: RANLIB=$lt_RANLIB
27945: old_archive_cmds=$lt_old_archive_cmds_RC
27946: old_postinstall_cmds=$lt_old_postinstall_cmds
27947: old_postuninstall_cmds=$lt_old_postuninstall_cmds
27948:
27949: # Create an old-style archive from a shared archive.
27950: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27951:
27952: # Create a temporary old-style archive to link instead of a shared archive.
27953: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27954:
27955: # Commands used to build and install a shared archive.
27956: archive_cmds=$lt_archive_cmds_RC
27957: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27958: postinstall_cmds=$lt_postinstall_cmds
27959: postuninstall_cmds=$lt_postuninstall_cmds
27960:
27961: # Commands used to build a loadable module (assumed same as above if empty)
27962: module_cmds=$lt_module_cmds_RC
27963: module_expsym_cmds=$lt_module_expsym_cmds_RC
27964:
27965: # Commands to strip libraries.
27966: old_striplib=$lt_old_striplib
27967: striplib=$lt_striplib
27968:
27969: # Dependencies to place before the objects being linked to create a
27970: # shared library.
27971: predep_objects=$lt_predep_objects_RC
27972:
27973: # Dependencies to place after the objects being linked to create a
27974: # shared library.
27975: postdep_objects=$lt_postdep_objects_RC
27976:
27977: # Dependencies to place before the objects being linked to create a
27978: # shared library.
27979: predeps=$lt_predeps_RC
27980:
27981: # Dependencies to place after the objects being linked to create a
27982: # shared library.
27983: postdeps=$lt_postdeps_RC
27984:
27985: # The library search path used internally by the compiler when linking
27986: # a shared library.
27987: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27988:
27989: # Method to check whether dependent libraries are shared objects.
27990: deplibs_check_method=$lt_deplibs_check_method
27991:
27992: # Command to use when deplibs_check_method == file_magic.
27993: file_magic_cmd=$lt_file_magic_cmd
27994:
27995: # Flag that allows shared libraries with undefined symbols to be built.
27996: allow_undefined_flag=$lt_allow_undefined_flag_RC
27997:
27998: # Flag that forces no undefined symbols.
27999: no_undefined_flag=$lt_no_undefined_flag_RC
28000:
28001: # Commands used to finish a libtool library installation in a directory.
28002: finish_cmds=$lt_finish_cmds
28003:
28004: # Same as above, but a single script fragment to be evaled but not shown.
28005: finish_eval=$lt_finish_eval
28006:
28007: # Take the output of nm and produce a listing of raw symbols and C names.
28008: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28009:
28010: # Transform the output of nm in a proper C declaration
28011: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28012:
28013: # Transform the output of nm in a C name address pair
28014: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28015:
28016: # This is the shared library runtime path variable.
28017: runpath_var=$runpath_var
28018:
28019: # This is the shared library path variable.
28020: shlibpath_var=$shlibpath_var
28021:
28022: # Is shlibpath searched before the hard-coded library search path?
28023: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28024:
28025: # How to hardcode a shared library path into an executable.
28026: hardcode_action=$hardcode_action_RC
28027:
28028: # Whether we should hardcode library paths into libraries.
28029: hardcode_into_libs=$hardcode_into_libs
28030:
28031: # Flag to hardcode \$libdir into a binary during linking.
28032: # This must work even if \$libdir does not exist.
28033: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28034:
28035: # If ld is used when linking, flag to hardcode \$libdir into
28036: # a binary during linking. This must work even if \$libdir does
28037: # not exist.
28038: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
28039:
28040: # Whether we need a single -rpath flag with a separated argument.
28041: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28042:
28043: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28044: # resulting binary.
28045: hardcode_direct=$hardcode_direct_RC
28046:
28047: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28048: # resulting binary.
28049: hardcode_minus_L=$hardcode_minus_L_RC
28050:
28051: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28052: # the resulting binary.
28053: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28054:
28055: # Set to yes if building a shared library automatically hardcodes DIR into the library
28056: # and all subsequent libraries and executables linked against it.
28057: hardcode_automatic=$hardcode_automatic_RC
28058:
28059: # Variables whose values should be saved in libtool wrapper scripts and
28060: # restored at relink time.
28061: variables_saved_for_relink="$variables_saved_for_relink"
28062:
28063: # Whether libtool must link a program against all its dependency libraries.
28064: link_all_deplibs=$link_all_deplibs_RC
28065:
28066: # Compile-time system search path for libraries
28067: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28068:
28069: # Run-time system search path for libraries
28070: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28071:
28072: # Fix the shell variable \$srcfile for the compiler.
1.1.1.5 ! root 28073: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 28074:
28075: # Set to yes if exported symbols are required.
28076: always_export_symbols=$always_export_symbols_RC
28077:
28078: # The commands to list exported symbols.
28079: export_symbols_cmds=$lt_export_symbols_cmds_RC
28080:
28081: # The commands to extract the exported symbol list from a shared archive.
28082: extract_expsyms_cmds=$lt_extract_expsyms_cmds
28083:
28084: # Symbols that should not be listed in the preloaded symbols.
28085: exclude_expsyms=$lt_exclude_expsyms_RC
28086:
28087: # Symbols that must always be exported.
28088: include_expsyms=$lt_include_expsyms_RC
28089:
28090: # ### END LIBTOOL TAG CONFIG: $tagname
28091:
28092: __EOF__
28093:
28094:
28095: else
28096: # If there is no Makefile yet, we rely on a make rule to execute
28097: # `config.status --recheck' to rerun these tests and create the
28098: # libtool script then.
1.1.1.5 ! root 28099: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 28100: if test -f "$ltmain_in"; then
! 28101: test -f Makefile && make "$ltmain"
! 28102: fi
1.1 root 28103: fi
28104:
28105:
28106: ac_ext=c
28107: ac_cpp='$CPP $CPPFLAGS'
28108: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28109: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28110: ac_compiler_gnu=$ac_cv_c_compiler_gnu
28111:
28112: CC="$lt_save_CC"
28113:
28114: ;;
28115:
28116: *)
28117: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28118: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28119: { (exit 1); exit 1; }; }
28120: ;;
28121: esac
28122:
28123: # Append the new tag name to the list of available tags.
28124: if test -n "$tagname" ; then
28125: available_tags="$available_tags $tagname"
28126: fi
28127: fi
28128: done
28129: IFS="$lt_save_ifs"
28130:
28131: # Now substitute the updated list of available tags.
28132: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
28133: mv "${ofile}T" "$ofile"
28134: chmod +x "$ofile"
28135: else
28136: rm -f "${ofile}T"
28137: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28138: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28139: { (exit 1); exit 1; }; }
28140: fi
28141: fi
28142:
28143:
28144:
28145: # This can be used to rebuild libtool when needed
28146: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28147:
28148: # Always use our own libtool.
28149: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28150:
28151: # Prevent multiple expansion
28152:
28153:
28154:
28155:
28156:
28157:
28158:
28159:
28160:
28161:
28162:
28163:
28164:
28165:
28166:
28167:
28168:
28169:
28170:
28171:
28172:
28173: subdirs="$subdirs libltdl"
28174:
28175: TME_PREOPEN=
28176: if test $enable_shared = no; then
28177: TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
28178: fi
28179:
28180:
1.1.1.5 ! root 28181: # Check whether --enable-debug was given.
1.1 root 28182: if test "${enable_debug+set}" = set; then
1.1.1.5 ! root 28183: enableval=$enable_debug;
1.1 root 28184: else
1.1.1.3 root 28185: enable_debug=no
1.1.1.5 ! root 28186: fi
! 28187:
1.1 root 28188: if test "x$enable_debug" = "xyes"; then
28189: CFLAGS="${CFLAGS-} -g -O0"
28190: CXXFLAGS="${CXXFLAGS-} -g3 -O0"
1.1.1.3 root 28191: else
28192: CPPFLAGS="${CPPFLAGS-} -DTME_NO_LOG -DTME_NO_DEBUG_LOCKS -DTME_NO_AUDIT_ATOMICS -DNDEBUG"
1.1 root 28193: fi
1.1.1.5 ! root 28194: # Check whether --enable-warnings was given.
1.1 root 28195: if test "${enable_warnings+set}" = set; then
1.1.1.5 ! root 28196: enableval=$enable_warnings;
1.1 root 28197: else
28198: enable_warnings=yes
1.1.1.5 ! root 28199: fi
! 28200:
1.1 root 28201: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
1.1.1.3 root 28202: CFLAGS="${CFLAGS-} -Wundef -Wall -Werror"
1.1 root 28203: CXXFLAGS="${CXXFLAGS-} -W"
28204: fi
28205:
1.1.1.3 root 28206: CFLAGS_NO_STRICT_ALIASING=
28207: if test "x$GCC" = "xyes"; then
28208: CFLAGS_NO_STRICT_ALIASING=" -fno-strict-aliasing"
28209: fi
28210:
28211:
1.1.1.5 ! root 28212: ac_config_commands="$ac_config_commands default-1"
1.1 root 28213:
28214:
1.1.1.5 ! root 28215: ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile tme/scsi/Makefile tme/host/Makefile tme/bus/Makefile libtme/Makefile libtme/host/Makefile libtme/host/x86/Makefile ic/Makefile ic/m68k/Makefile ic/ieee754/Makefile ic/sparc/Makefile ic/stp22xx/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile machine/sun3/Makefile machine/sun4/Makefile machine/sun4u/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile host/gtk/Makefile bus/Makefile bus/multibus/Makefile bus/sbus/Makefile serial/Makefile scsi/Makefile generic/Makefile tmesh/Makefile tools/Makefile"
! 28216:
1.1 root 28217: cat >confcache <<\_ACEOF
28218: # This file is a shell script that caches the results of configure
28219: # tests run on this system so they can be shared between configure
28220: # scripts and configure runs, see configure's option --config-cache.
28221: # It is not useful on other systems. If it contains results you don't
28222: # want to keep, you may remove or edit it.
28223: #
28224: # config.status only pays attention to the cache file if you give it
28225: # the --recheck option to rerun configure.
28226: #
28227: # `ac_cv_env_foo' variables (set or unset) will be overridden when
28228: # loading this file, other *unset* `ac_cv_foo' will be assigned the
28229: # following values.
28230:
28231: _ACEOF
28232:
28233: # The following way of writing the cache mishandles newlines in values,
28234: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.5 ! root 28235: # So, we kill variables containing newlines.
1.1 root 28236: # Ultrix sh set writes to stderr and can't be redirected directly,
28237: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.5 ! root 28238: (
! 28239: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 28240: eval ac_val=\$$ac_var
! 28241: case $ac_val in #(
! 28242: *${as_nl}*)
! 28243: case $ac_var in #(
! 28244: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 28245: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 28246: esac
! 28247: case $ac_var in #(
! 28248: _ | IFS | as_nl) ;; #(
! 28249: *) $as_unset $ac_var ;;
! 28250: esac ;;
! 28251: esac
! 28252: done
! 28253:
1.1 root 28254: (set) 2>&1 |
1.1.1.5 ! root 28255: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 28256: *${as_nl}ac_space=\ *)
1.1 root 28257: # `set' does not quote correctly, so add quotes (double-quote
28258: # substitution turns \\\\ into \\, and sed turns \\ into \).
28259: sed -n \
1.1.1.5 ! root 28260: "s/'/'\\\\''/g;
! 28261: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 28262: ;; #(
1.1 root 28263: *)
28264: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.5 ! root 28265: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 28266: ;;
1.1.1.5 ! root 28267: esac |
! 28268: sort
! 28269: ) |
1.1 root 28270: sed '
1.1.1.5 ! root 28271: /^ac_cv_env_/b end
1.1 root 28272: t clear
1.1.1.5 ! root 28273: :clear
1.1 root 28274: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28275: t end
1.1.1.5 ! root 28276: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 28277: :end' >>confcache
! 28278: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 28279: if test -w "$cache_file"; then
! 28280: test "x$cache_file" != "x/dev/null" &&
! 28281: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 28282: echo "$as_me: updating cache $cache_file" >&6;}
1.1 root 28283: cat confcache >$cache_file
28284: else
1.1.1.5 ! root 28285: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 28286: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 28287: fi
28288: fi
28289: rm -f confcache
28290:
28291: test "x$prefix" = xNONE && prefix=$ac_default_prefix
28292: # Let make expand exec_prefix.
28293: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28294:
28295: DEFS=-DHAVE_CONFIG_H
28296:
28297: ac_libobjs=
28298: ac_ltlibobjs=
28299: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28300: # 1. Remove the extension, and $U if already installed.
1.1.1.5 ! root 28301: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 28302: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 28303: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 28304: # will be set to the directory where LIBOBJS objects are built.
! 28305: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 28306: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 root 28307: done
28308: LIBOBJS=$ac_libobjs
28309:
28310: LTLIBOBJS=$ac_ltlibobjs
28311:
28312:
28313: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28314: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28315: Usually this means the macro was only invoked conditionally." >&5
28316: echo "$as_me: error: conditional \"AMDEP\" was never defined.
28317: Usually this means the macro was only invoked conditionally." >&2;}
28318: { (exit 1); exit 1; }; }
28319: fi
28320: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28321: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28322: Usually this means the macro was only invoked conditionally." >&5
28323: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28324: Usually this means the macro was only invoked conditionally." >&2;}
28325: { (exit 1); exit 1; }; }
28326: fi
28327: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28328: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28329: Usually this means the macro was only invoked conditionally." >&5
28330: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28331: Usually this means the macro was only invoked conditionally." >&2;}
28332: { (exit 1); exit 1; }; }
28333: fi
28334:
28335: : ${CONFIG_STATUS=./config.status}
28336: ac_clean_files_save=$ac_clean_files
28337: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28338: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28339: echo "$as_me: creating $CONFIG_STATUS" >&6;}
28340: cat >$CONFIG_STATUS <<_ACEOF
28341: #! $SHELL
28342: # Generated by $as_me.
28343: # Run this file to recreate the current configuration.
28344: # Compiler output produced by configure, useful for debugging
28345: # configure, is in config.log if it exists.
28346:
28347: debug=false
28348: ac_cs_recheck=false
28349: ac_cs_silent=false
28350: SHELL=\${CONFIG_SHELL-$SHELL}
28351: _ACEOF
28352:
28353: cat >>$CONFIG_STATUS <<\_ACEOF
28354: ## --------------------- ##
28355: ## M4sh Initialization. ##
28356: ## --------------------- ##
28357:
1.1.1.5 ! root 28358: # Be more Bourne compatible
! 28359: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 28360: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28361: emulate sh
28362: NULLCMD=:
28363: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28364: # is contrary to our usage. Disable this feature.
28365: alias -g '${1+"$@"}'='"$@"'
1.1.1.5 ! root 28366: setopt NO_GLOB_SUBST
! 28367: else
! 28368: case `(set -o) 2>/dev/null` in
! 28369: *posix*) set -o posix ;;
! 28370: esac
! 28371:
! 28372: fi
! 28373:
! 28374:
! 28375:
! 28376:
! 28377: # PATH needs CR
! 28378: # Avoid depending upon Character Ranges.
! 28379: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 28380: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 28381: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 28382: as_cr_digits='0123456789'
! 28383: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 28384:
! 28385: # The user is always right.
! 28386: if test "${PATH_SEPARATOR+set}" != set; then
! 28387: echo "#! /bin/sh" >conf$$.sh
! 28388: echo "exit 0" >>conf$$.sh
! 28389: chmod +x conf$$.sh
! 28390: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 28391: PATH_SEPARATOR=';'
! 28392: else
! 28393: PATH_SEPARATOR=:
! 28394: fi
! 28395: rm -f conf$$.sh
1.1 root 28396: fi
28397:
28398: # Support unset when possible.
1.1.1.5 ! root 28399: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 28400: as_unset=unset
28401: else
28402: as_unset=false
28403: fi
28404:
28405:
1.1.1.5 ! root 28406: # IFS
! 28407: # We need space, tab and new line, in precisely that order. Quoting is
! 28408: # there to prevent editors from complaining about space-tab.
! 28409: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 28410: # splitting by setting IFS to empty value.)
! 28411: as_nl='
! 28412: '
! 28413: IFS=" "" $as_nl"
! 28414:
! 28415: # Find who we are. Look in the path if we contain no directory separator.
! 28416: case $0 in
! 28417: *[\\/]* ) as_myself=$0 ;;
! 28418: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 28419: for as_dir in $PATH
! 28420: do
! 28421: IFS=$as_save_IFS
! 28422: test -z "$as_dir" && as_dir=.
! 28423: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 28424: done
! 28425: IFS=$as_save_IFS
! 28426:
! 28427: ;;
! 28428: esac
! 28429: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 28430: # in which case we are not to be found in the path.
! 28431: if test "x$as_myself" = x; then
! 28432: as_myself=$0
! 28433: fi
! 28434: if test ! -f "$as_myself"; then
! 28435: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 28436: { (exit 1); exit 1; }
! 28437: fi
! 28438:
1.1 root 28439: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.5 ! root 28440: for as_var in ENV MAIL MAILPATH
! 28441: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 28442: done
1.1 root 28443: PS1='$ '
28444: PS2='> '
28445: PS4='+ '
28446:
28447: # NLS nuisances.
28448: for as_var in \
28449: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28450: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28451: LC_TELEPHONE LC_TIME
28452: do
1.1.1.5 ! root 28453: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.1 root 28454: eval $as_var=C; export $as_var
28455: else
1.1.1.5 ! root 28456: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 root 28457: fi
28458: done
28459:
28460: # Required to use basename.
1.1.1.5 ! root 28461: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 28462: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 28463: as_expr=expr
28464: else
28465: as_expr=false
28466: fi
28467:
1.1.1.5 ! root 28468: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 root 28469: as_basename=basename
28470: else
28471: as_basename=false
28472: fi
28473:
28474:
28475: # Name of the executable.
1.1.1.5 ! root 28476: as_me=`$as_basename -- "$0" ||
1.1 root 28477: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28478: X"$0" : 'X\(//\)$' \| \
1.1.1.5 ! root 28479: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 28480: echo X/"$0" |
1.1.1.5 ! root 28481: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 28482: s//\1/
! 28483: q
! 28484: }
! 28485: /^X\/\(\/\/\)$/{
! 28486: s//\1/
! 28487: q
! 28488: }
! 28489: /^X\/\(\/\).*/{
! 28490: s//\1/
! 28491: q
! 28492: }
! 28493: s/.*/./; q'`
1.1 root 28494:
1.1.1.5 ! root 28495: # CDPATH.
! 28496: $as_unset CDPATH
1.1 root 28497:
28498:
28499:
28500: as_lineno_1=$LINENO
28501: as_lineno_2=$LINENO
28502: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.5 ! root 28503: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 28504:
28505: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28506: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.5 ! root 28507: # line-number line after each line using $LINENO; the second 'sed'
! 28508: # does the real work. The second script uses 'N' to pair each
! 28509: # line-number line with the line containing $LINENO, and appends
! 28510: # trailing '-' during substitution so that $LINENO is not a special
! 28511: # case at line end.
1.1 root 28512: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.5 ! root 28513: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 28514: # E. McMahon (1931-1989) for sed's syntax. :-)
! 28515: sed -n '
! 28516: p
! 28517: /[$]LINENO/=
! 28518: ' <$as_myself |
1.1 root 28519: sed '
1.1.1.5 ! root 28520: s/[$]LINENO.*/&-/
! 28521: t lineno
! 28522: b
! 28523: :lineno
1.1 root 28524: N
1.1.1.5 ! root 28525: :loop
! 28526: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 28527: t loop
1.1.1.5 ! root 28528: s/-\n.*//
1.1 root 28529: ' >$as_me.lineno &&
1.1.1.5 ! root 28530: chmod +x "$as_me.lineno" ||
! 28531: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 28532: { (exit 1); exit 1; }; }
28533:
28534: # Don't try to exec as it changes $[0], causing all sort of problems
28535: # (the dirname of $[0] is not the place where we might find the
1.1.1.5 ! root 28536: # original and so on. Autoconf is especially sensitive to this).
! 28537: . "./$as_me.lineno"
1.1 root 28538: # Exit status is that of the last command.
28539: exit
28540: }
28541:
28542:
1.1.1.5 ! root 28543: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 28544: as_dirname=dirname
! 28545: else
! 28546: as_dirname=false
! 28547: fi
! 28548:
! 28549: ECHO_C= ECHO_N= ECHO_T=
! 28550: case `echo -n x` in
! 28551: -n*)
! 28552: case `echo 'x\c'` in
! 28553: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 28554: *) ECHO_C='\c';;
! 28555: esac;;
! 28556: *)
! 28557: ECHO_N='-n';;
1.1 root 28558: esac
28559:
1.1.1.5 ! root 28560: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 28561: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 28562: as_expr=expr
28563: else
28564: as_expr=false
28565: fi
28566:
28567: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.5 ! root 28568: if test -d conf$$.dir; then
! 28569: rm -f conf$$.dir/conf$$.file
! 28570: else
! 28571: rm -f conf$$.dir
! 28572: mkdir conf$$.dir
! 28573: fi
1.1 root 28574: echo >conf$$.file
28575: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.5 ! root 28576: as_ln_s='ln -s'
! 28577: # ... but there are two gotchas:
! 28578: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 28579: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 28580: # In both cases, we have to default to `cp -p'.
! 28581: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 28582: as_ln_s='cp -p'
28583: elif ln conf$$.file conf$$ 2>/dev/null; then
28584: as_ln_s=ln
28585: else
28586: as_ln_s='cp -p'
28587: fi
1.1.1.5 ! root 28588: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 28589: rmdir conf$$.dir 2>/dev/null
1.1 root 28590:
28591: if mkdir -p . 2>/dev/null; then
28592: as_mkdir_p=:
28593: else
1.1.1.5 ! root 28594: test -d ./-p && rmdir ./-p
1.1 root 28595: as_mkdir_p=false
28596: fi
28597:
1.1.1.5 ! root 28598: if test -x / >/dev/null 2>&1; then
! 28599: as_test_x='test -x'
! 28600: else
! 28601: if ls -dL / >/dev/null 2>&1; then
! 28602: as_ls_L_option=L
! 28603: else
! 28604: as_ls_L_option=
! 28605: fi
! 28606: as_test_x='
! 28607: eval sh -c '\''
! 28608: if test -d "$1"; then
! 28609: test -d "$1/.";
! 28610: else
! 28611: case $1 in
! 28612: -*)set "./$1";;
! 28613: esac;
! 28614: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 28615: ???[sx]*):;;*)false;;esac;fi
! 28616: '\'' sh
! 28617: '
! 28618: fi
! 28619: as_executable_p=$as_test_x
1.1 root 28620:
28621: # Sed expression to map a string onto a valid CPP name.
1.1.1.5 ! root 28622: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 28623:
28624: # Sed expression to map a string onto a valid variable name.
1.1.1.5 ! root 28625: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 28626:
28627:
28628: exec 6>&1
28629:
1.1.1.5 ! root 28630: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 root 28631: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.5 ! root 28632: # values after options handling.
! 28633: ac_log="
1.1 root 28634: This file was extended by $as_me, which was
1.1.1.5 ! root 28635: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 28636:
28637: CONFIG_FILES = $CONFIG_FILES
28638: CONFIG_HEADERS = $CONFIG_HEADERS
28639: CONFIG_LINKS = $CONFIG_LINKS
28640: CONFIG_COMMANDS = $CONFIG_COMMANDS
28641: $ $0 $@
28642:
1.1.1.5 ! root 28643: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 28644: "
! 28645:
1.1 root 28646: _ACEOF
28647:
1.1.1.5 ! root 28648: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 28649: # Files that config.status was made for.
1.1.1.5 ! root 28650: config_files="$ac_config_files"
! 28651: config_headers="$ac_config_headers"
! 28652: config_commands="$ac_config_commands"
1.1 root 28653:
1.1.1.5 ! root 28654: _ACEOF
1.1 root 28655:
28656: cat >>$CONFIG_STATUS <<\_ACEOF
28657: ac_cs_usage="\
28658: \`$as_me' instantiates files from templates according to the
28659: current configuration.
28660:
28661: Usage: $0 [OPTIONS] [FILE]...
28662:
28663: -h, --help print this help, then exit
1.1.1.5 ! root 28664: -V, --version print version number and configuration settings, then exit
1.1 root 28665: -q, --quiet do not print progress messages
28666: -d, --debug don't remove temporary files
28667: --recheck update $as_me by reconfiguring in the same conditions
28668: --file=FILE[:TEMPLATE]
1.1.1.5 ! root 28669: instantiate the configuration file FILE
1.1 root 28670: --header=FILE[:TEMPLATE]
1.1.1.5 ! root 28671: instantiate the configuration header FILE
1.1 root 28672:
28673: Configuration files:
28674: $config_files
28675:
28676: Configuration headers:
28677: $config_headers
28678:
28679: Configuration commands:
28680: $config_commands
28681:
28682: Report bugs to <[email protected]>."
28683:
1.1.1.5 ! root 28684: _ACEOF
1.1 root 28685: cat >>$CONFIG_STATUS <<_ACEOF
28686: ac_cs_version="\\
28687: config.status
1.1.1.5 ! root 28688: configured by $0, generated by GNU Autoconf 2.61,
! 28689: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 root 28690:
1.1.1.5 ! root 28691: Copyright (C) 2006 Free Software Foundation, Inc.
1.1 root 28692: This config.status script is free software; the Free Software Foundation
28693: gives unlimited permission to copy, distribute and modify it."
1.1.1.5 ! root 28694:
! 28695: ac_pwd='$ac_pwd'
! 28696: srcdir='$srcdir'
! 28697: INSTALL='$INSTALL'
! 28698: MKDIR_P='$MKDIR_P'
1.1 root 28699: _ACEOF
28700:
28701: cat >>$CONFIG_STATUS <<\_ACEOF
28702: # If no file are specified by the user, then we need to provide default
28703: # value. By we need to know if files were specified by the user.
28704: ac_need_defaults=:
28705: while test $# != 0
28706: do
28707: case $1 in
28708: --*=*)
1.1.1.5 ! root 28709: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 28710: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1 root 28711: ac_shift=:
28712: ;;
1.1.1.5 ! root 28713: *)
1.1 root 28714: ac_option=$1
28715: ac_optarg=$2
28716: ac_shift=shift
28717: ;;
28718: esac
28719:
28720: case $ac_option in
28721: # Handling of the options.
28722: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28723: ac_cs_recheck=: ;;
1.1.1.5 ! root 28724: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 28725: echo "$ac_cs_version"; exit ;;
! 28726: --debug | --debu | --deb | --de | --d | -d )
1.1 root 28727: debug=: ;;
28728: --file | --fil | --fi | --f )
28729: $ac_shift
28730: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28731: ac_need_defaults=false;;
28732: --header | --heade | --head | --hea )
28733: $ac_shift
28734: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28735: ac_need_defaults=false;;
1.1.1.5 ! root 28736: --he | --h)
! 28737: # Conflict between --help and --header
! 28738: { echo "$as_me: error: ambiguous option: $1
! 28739: Try \`$0 --help' for more information." >&2
! 28740: { (exit 1); exit 1; }; };;
! 28741: --help | --hel | -h )
! 28742: echo "$ac_cs_usage"; exit ;;
1.1 root 28743: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28744: | -silent | --silent | --silen | --sile | --sil | --si | --s)
28745: ac_cs_silent=: ;;
28746:
28747: # This is an error.
1.1.1.5 ! root 28748: -*) { echo "$as_me: error: unrecognized option: $1
! 28749: Try \`$0 --help' for more information." >&2
1.1 root 28750: { (exit 1); exit 1; }; } ;;
28751:
1.1.1.5 ! root 28752: *) ac_config_targets="$ac_config_targets $1"
! 28753: ac_need_defaults=false ;;
1.1 root 28754:
28755: esac
28756: shift
28757: done
28758:
28759: ac_configure_extra_args=
28760:
28761: if $ac_cs_silent; then
28762: exec 6>/dev/null
28763: ac_configure_extra_args="$ac_configure_extra_args --silent"
28764: fi
28765:
28766: _ACEOF
28767: cat >>$CONFIG_STATUS <<_ACEOF
28768: if \$ac_cs_recheck; then
1.1.1.5 ! root 28769: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 28770: CONFIG_SHELL=$SHELL
! 28771: export CONFIG_SHELL
! 28772: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 root 28773: fi
28774:
28775: _ACEOF
1.1.1.5 ! root 28776: cat >>$CONFIG_STATUS <<\_ACEOF
! 28777: exec 5>>config.log
! 28778: {
! 28779: echo
! 28780: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 28781: ## Running $as_me. ##
! 28782: _ASBOX
! 28783: echo "$ac_log"
! 28784: } >&5
1.1 root 28785:
1.1.1.5 ! root 28786: _ACEOF
1.1 root 28787: cat >>$CONFIG_STATUS <<_ACEOF
28788: #
1.1.1.5 ! root 28789: # INIT-COMMANDS
1.1 root 28790: #
28791: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28792:
1.1.1.5 ! root 28793: recode_hosts="$recode_hosts"
! 28794: recode_size_guest_max="$recode_size_guest_max"
! 28795: misc_hosts="$misc_hosts"
! 28796: srcdir="$srcdir"
1.1 root 28797: PACKAGE="$PACKAGE"
28798: VERSION="$VERSION"
28799: target="$target"
28800: ac_cv_sizeof_int="$ac_cv_sizeof_int"
28801: ac_cv_sizeof_long="$ac_cv_sizeof_long"
28802: ac_cv_sizeof_short="$ac_cv_sizeof_short"
1.1.1.5 ! root 28803: bus_size_max="$bus_size_max"
1.1 root 28804:
28805:
28806: _ACEOF
28807:
28808: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.5 ! root 28809:
! 28810: # Handling of arguments.
1.1 root 28811: for ac_config_target in $ac_config_targets
28812: do
1.1.1.5 ! root 28813: case $ac_config_target in
! 28814: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
! 28815: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 28816: "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
! 28817: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 28818: "tme/Makefile") CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;;
! 28819: "tme/ic/Makefile") CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;;
! 28820: "tme/machine/Makefile") CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;;
! 28821: "tme/generic/Makefile") CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;;
! 28822: "tme/scsi/Makefile") CONFIG_FILES="$CONFIG_FILES tme/scsi/Makefile" ;;
! 28823: "tme/host/Makefile") CONFIG_FILES="$CONFIG_FILES tme/host/Makefile" ;;
! 28824: "tme/bus/Makefile") CONFIG_FILES="$CONFIG_FILES tme/bus/Makefile" ;;
! 28825: "libtme/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;;
! 28826: "libtme/host/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/host/Makefile" ;;
! 28827: "libtme/host/x86/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/host/x86/Makefile" ;;
! 28828: "ic/Makefile") CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;;
! 28829: "ic/m68k/Makefile") CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;;
! 28830: "ic/ieee754/Makefile") CONFIG_FILES="$CONFIG_FILES ic/ieee754/Makefile" ;;
! 28831: "ic/sparc/Makefile") CONFIG_FILES="$CONFIG_FILES ic/sparc/Makefile" ;;
! 28832: "ic/stp22xx/Makefile") CONFIG_FILES="$CONFIG_FILES ic/stp22xx/Makefile" ;;
! 28833: "machine/Makefile") CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;;
! 28834: "machine/sun/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;;
! 28835: "machine/sun2/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;;
! 28836: "machine/sun3/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun3/Makefile" ;;
! 28837: "machine/sun4/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun4/Makefile" ;;
! 28838: "machine/sun4u/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun4u/Makefile" ;;
! 28839: "host/Makefile") CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
! 28840: "host/posix/Makefile") CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;;
! 28841: "host/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;;
! 28842: "host/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES host/gtk/Makefile" ;;
! 28843: "bus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
! 28844: "bus/multibus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;;
! 28845: "bus/sbus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/sbus/Makefile" ;;
! 28846: "serial/Makefile") CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
! 28847: "scsi/Makefile") CONFIG_FILES="$CONFIG_FILES scsi/Makefile" ;;
! 28848: "generic/Makefile") CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
! 28849: "tmesh/Makefile") CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;;
! 28850: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
! 28851:
1.1 root 28852: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28853: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28854: { (exit 1); exit 1; }; };;
28855: esac
28856: done
28857:
1.1.1.5 ! root 28858:
1.1 root 28859: # If the user did not use the arguments to specify the items to instantiate,
28860: # then the envvar interface is used. Set only those that are not.
28861: # We use the long form for the default assignment because of an extremely
28862: # bizarre bug on SunOS 4.1.3.
28863: if $ac_need_defaults; then
28864: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28865: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28866: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28867: fi
28868:
28869: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.5 ! root 28870: # simply because there is no reason against having it here, and in addition,
1.1 root 28871: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.5 ! root 28872: # Hook for its removal unless debugging.
! 28873: # Note that there is a small window in which the directory will not be cleaned:
! 28874: # after its creation but before its name has been assigned to `$tmp'.
1.1 root 28875: $debug ||
28876: {
1.1.1.5 ! root 28877: tmp=
! 28878: trap 'exit_status=$?
! 28879: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 28880: ' 0
1.1 root 28881: trap '{ (exit 1); exit 1; }' 1 2 13 15
28882: }
28883: # Create a (secure) tmp directory for tmp files.
28884:
28885: {
1.1.1.5 ! root 28886: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1 root 28887: test -n "$tmp" && test -d "$tmp"
28888: } ||
28889: {
1.1.1.5 ! root 28890: tmp=./conf$$-$RANDOM
! 28891: (umask 077 && mkdir "$tmp")
1.1 root 28892: } ||
28893: {
28894: echo "$me: cannot create a temporary directory in ." >&2
28895: { (exit 1); exit 1; }
28896: }
28897:
28898: #
1.1.1.5 ! root 28899: # Set up the sed scripts for CONFIG_FILES section.
1.1 root 28900: #
28901:
28902: # No need to generate the scripts if there are no CONFIG_FILES.
28903: # This happens for instance when ./config.status config.h
1.1.1.5 ! root 28904: if test -n "$CONFIG_FILES"; then
! 28905:
! 28906: _ACEOF
! 28907:
! 28908:
! 28909:
! 28910: ac_delim='%!_!# '
! 28911: for ac_last_try in false false false false false :; do
! 28912: cat >conf$$subs.sed <<_ACEOF
! 28913: SHELL!$SHELL$ac_delim
! 28914: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 28915: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 28916: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 28917: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 28918: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 28919: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 28920: exec_prefix!$exec_prefix$ac_delim
! 28921: prefix!$prefix$ac_delim
! 28922: program_transform_name!$program_transform_name$ac_delim
! 28923: bindir!$bindir$ac_delim
! 28924: sbindir!$sbindir$ac_delim
! 28925: libexecdir!$libexecdir$ac_delim
! 28926: datarootdir!$datarootdir$ac_delim
! 28927: datadir!$datadir$ac_delim
! 28928: sysconfdir!$sysconfdir$ac_delim
! 28929: sharedstatedir!$sharedstatedir$ac_delim
! 28930: localstatedir!$localstatedir$ac_delim
! 28931: includedir!$includedir$ac_delim
! 28932: oldincludedir!$oldincludedir$ac_delim
! 28933: docdir!$docdir$ac_delim
! 28934: infodir!$infodir$ac_delim
! 28935: htmldir!$htmldir$ac_delim
! 28936: dvidir!$dvidir$ac_delim
! 28937: pdfdir!$pdfdir$ac_delim
! 28938: psdir!$psdir$ac_delim
! 28939: libdir!$libdir$ac_delim
! 28940: localedir!$localedir$ac_delim
! 28941: mandir!$mandir$ac_delim
! 28942: DEFS!$DEFS$ac_delim
! 28943: ECHO_C!$ECHO_C$ac_delim
! 28944: ECHO_N!$ECHO_N$ac_delim
! 28945: ECHO_T!$ECHO_T$ac_delim
! 28946: LIBS!$LIBS$ac_delim
! 28947: build_alias!$build_alias$ac_delim
! 28948: host_alias!$host_alias$ac_delim
! 28949: target_alias!$target_alias$ac_delim
! 28950: build!$build$ac_delim
! 28951: build_cpu!$build_cpu$ac_delim
! 28952: build_vendor!$build_vendor$ac_delim
! 28953: build_os!$build_os$ac_delim
! 28954: host!$host$ac_delim
! 28955: host_cpu!$host_cpu$ac_delim
! 28956: host_vendor!$host_vendor$ac_delim
! 28957: host_os!$host_os$ac_delim
! 28958: target!$target$ac_delim
! 28959: target_cpu!$target_cpu$ac_delim
! 28960: target_vendor!$target_vendor$ac_delim
! 28961: target_os!$target_os$ac_delim
! 28962: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
! 28963: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
! 28964: INSTALL_DATA!$INSTALL_DATA$ac_delim
! 28965: am__isrc!$am__isrc$ac_delim
! 28966: CYGPATH_W!$CYGPATH_W$ac_delim
! 28967: PACKAGE!$PACKAGE$ac_delim
! 28968: VERSION!$VERSION$ac_delim
! 28969: ACLOCAL!$ACLOCAL$ac_delim
! 28970: AUTOCONF!$AUTOCONF$ac_delim
! 28971: AUTOMAKE!$AUTOMAKE$ac_delim
! 28972: AUTOHEADER!$AUTOHEADER$ac_delim
! 28973: MAKEINFO!$MAKEINFO$ac_delim
! 28974: install_sh!$install_sh$ac_delim
! 28975: STRIP!$STRIP$ac_delim
! 28976: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
! 28977: mkdir_p!$mkdir_p$ac_delim
! 28978: AWK!$AWK$ac_delim
! 28979: SET_MAKE!$SET_MAKE$ac_delim
! 28980: am__leading_dot!$am__leading_dot$ac_delim
! 28981: AMTAR!$AMTAR$ac_delim
! 28982: am__tar!$am__tar$ac_delim
! 28983: am__untar!$am__untar$ac_delim
! 28984: CC!$CC$ac_delim
! 28985: CFLAGS!$CFLAGS$ac_delim
! 28986: LDFLAGS!$LDFLAGS$ac_delim
! 28987: CPPFLAGS!$CPPFLAGS$ac_delim
! 28988: ac_ct_CC!$ac_ct_CC$ac_delim
! 28989: EXEEXT!$EXEEXT$ac_delim
! 28990: OBJEXT!$OBJEXT$ac_delim
! 28991: DEPDIR!$DEPDIR$ac_delim
! 28992: am__include!$am__include$ac_delim
! 28993: am__quote!$am__quote$ac_delim
! 28994: AMDEP_TRUE!$AMDEP_TRUE$ac_delim
! 28995: AMDEP_FALSE!$AMDEP_FALSE$ac_delim
! 28996: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
! 28997: CCDEPMODE!$CCDEPMODE$ac_delim
! 28998: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
! 28999: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
! 29000: CPP!$CPP$ac_delim
! 29001: YACC!$YACC$ac_delim
! 29002: YFLAGS!$YFLAGS$ac_delim
! 29003: GREP!$GREP$ac_delim
! 29004: EGREP!$EGREP$ac_delim
! 29005: LIBOBJS!$LIBOBJS$ac_delim
! 29006: PERL!$PERL$ac_delim
! 29007: XMKMF!$XMKMF$ac_delim
! 29008: X_CFLAGS!$X_CFLAGS$ac_delim
! 29009: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
! 29010: _ACEOF
! 29011:
! 29012: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
! 29013: break
! 29014: elif $ac_last_try; then
! 29015: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 29016: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 29017: { (exit 1); exit 1; }; }
! 29018: else
! 29019: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 root 29020: fi
1.1.1.5 ! root 29021: done
! 29022:
! 29023: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 29024: if test -n "$ac_eof"; then
! 29025: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 29026: ac_eof=`expr $ac_eof + 1`
! 29027: fi
! 29028:
! 29029: cat >>$CONFIG_STATUS <<_ACEOF
! 29030: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 29031: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 29032: _ACEOF
! 29033: sed '
! 29034: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 29035: s/^/s,@/; s/!/@,|#_!!_#|/
! 29036: :n
! 29037: t n
! 29038: s/'"$ac_delim"'$/,g/; t
! 29039: s/$/\\/; p
! 29040: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 29041: ' >>$CONFIG_STATUS <conf$$subs.sed
! 29042: rm -f conf$$subs.sed
! 29043: cat >>$CONFIG_STATUS <<_ACEOF
! 29044: CEOF$ac_eof
! 29045: _ACEOF
! 29046:
! 29047:
! 29048: ac_delim='%!_!# '
! 29049: for ac_last_try in false false false false false :; do
! 29050: cat >conf$$subs.sed <<_ACEOF
! 29051: X_LIBS!$X_LIBS$ac_delim
! 29052: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
! 29053: PKG_CONFIG!$PKG_CONFIG$ac_delim
! 29054: GTK_CFLAGS!$GTK_CFLAGS$ac_delim
! 29055: GTK_LIBS!$GTK_LIBS$ac_delim
! 29056: TME_FB_XLAT_DST!$TME_FB_XLAT_DST$ac_delim
! 29057: TME_MACHINE_SUBDIRS!$TME_MACHINE_SUBDIRS$ac_delim
! 29058: TME_IC_SUBDIRS!$TME_IC_SUBDIRS$ac_delim
! 29059: TME_ICS!$TME_ICS$ac_delim
! 29060: TME_SERIAL_SUBDIRS!$TME_SERIAL_SUBDIRS$ac_delim
! 29061: TME_SERIALS!$TME_SERIALS$ac_delim
! 29062: TME_BUS_SUBDIRS!$TME_BUS_SUBDIRS$ac_delim
! 29063: TME_FB_XLAT_SRC!$TME_FB_XLAT_SRC$ac_delim
! 29064: TME_HOSTS!$TME_HOSTS$ac_delim
! 29065: INCLTDL!$INCLTDL$ac_delim
! 29066: LIBLTDL!$LIBLTDL$ac_delim
! 29067: SED!$SED$ac_delim
! 29068: LN_S!$LN_S$ac_delim
! 29069: ECHO!$ECHO$ac_delim
! 29070: AR!$AR$ac_delim
! 29071: RANLIB!$RANLIB$ac_delim
! 29072: CXX!$CXX$ac_delim
! 29073: CXXFLAGS!$CXXFLAGS$ac_delim
! 29074: ac_ct_CXX!$ac_ct_CXX$ac_delim
! 29075: CXXDEPMODE!$CXXDEPMODE$ac_delim
! 29076: am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
! 29077: am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
! 29078: CXXCPP!$CXXCPP$ac_delim
! 29079: F77!$F77$ac_delim
! 29080: FFLAGS!$FFLAGS$ac_delim
! 29081: ac_ct_F77!$ac_ct_F77$ac_delim
! 29082: LIBTOOL!$LIBTOOL$ac_delim
! 29083: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 29084: subdirs!$subdirs$ac_delim
! 29085: TME_PREOPEN!$TME_PREOPEN$ac_delim
! 29086: CFLAGS_NO_STRICT_ALIASING!$CFLAGS_NO_STRICT_ALIASING$ac_delim
! 29087: _ACEOF
1.1 root 29088:
1.1.1.5 ! root 29089: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
! 29090: break
! 29091: elif $ac_last_try; then
! 29092: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 29093: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 29094: { (exit 1); exit 1; }; }
! 29095: else
! 29096: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 29097: fi
! 29098: done
! 29099:
! 29100: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 29101: if test -n "$ac_eof"; then
! 29102: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 29103: ac_eof=`expr $ac_eof + 1`
! 29104: fi
! 29105:
! 29106: cat >>$CONFIG_STATUS <<_ACEOF
! 29107: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
! 29108: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 29109: _ACEOF
! 29110: sed '
! 29111: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 29112: s/^/s,@/; s/!/@,|#_!!_#|/
! 29113: :n
! 29114: t n
! 29115: s/'"$ac_delim"'$/,g/; t
! 29116: s/$/\\/; p
! 29117: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 29118: ' >>$CONFIG_STATUS <conf$$subs.sed
! 29119: rm -f conf$$subs.sed
! 29120: cat >>$CONFIG_STATUS <<_ACEOF
! 29121: :end
! 29122: s/|#_!!_#|//g
! 29123: CEOF$ac_eof
1.1 root 29124: _ACEOF
1.1.1.5 ! root 29125:
! 29126:
! 29127: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 29128: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 29129: # trailing colons and then remove the whole line if VPATH becomes empty
! 29130: # (actually we leave an empty line to preserve line numbers).
! 29131: if test "x$srcdir" = x.; then
! 29132: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 29133: s/:*\$(srcdir):*/:/
! 29134: s/:*\${srcdir}:*/:/
! 29135: s/:*@srcdir@:*/:/
! 29136: s/^\([^=]*=[ ]*\):*/\1/
! 29137: s/:*$//
! 29138: s/^[^=]*=[ ]*$//
! 29139: }'
! 29140: fi
! 29141:
1.1 root 29142: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.5 ! root 29143: fi # test -n "$CONFIG_FILES"
! 29144:
! 29145:
! 29146: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
! 29147: do
! 29148: case $ac_tag in
! 29149: :[FHLC]) ac_mode=$ac_tag; continue;;
! 29150: esac
! 29151: case $ac_mode$ac_tag in
! 29152: :[FHL]*:*);;
! 29153: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 29154: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 29155: { (exit 1); exit 1; }; };;
! 29156: :[FH]-) ac_tag=-:-;;
! 29157: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 29158: esac
! 29159: ac_save_IFS=$IFS
! 29160: IFS=:
! 29161: set x $ac_tag
! 29162: IFS=$ac_save_IFS
! 29163: shift
! 29164: ac_file=$1
! 29165: shift
! 29166:
! 29167: case $ac_mode in
! 29168: :L) ac_source=$1;;
! 29169: :[FH])
! 29170: ac_file_inputs=
! 29171: for ac_f
! 29172: do
! 29173: case $ac_f in
! 29174: -) ac_f="$tmp/stdin";;
! 29175: *) # Look for the file first in the build tree, then in the source tree
! 29176: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 29177: # because $ac_f cannot contain `:'.
! 29178: test -f "$ac_f" ||
! 29179: case $ac_f in
! 29180: [\\/$]*) false;;
! 29181: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 29182: esac ||
! 29183: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 29184: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 29185: { (exit 1); exit 1; }; };;
! 29186: esac
! 29187: ac_file_inputs="$ac_file_inputs $ac_f"
! 29188: done
! 29189:
! 29190: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 29191: # use $as_me), people would be surprised to read:
! 29192: # /* config.h. Generated by config.status. */
! 29193: configure_input="Generated from "`IFS=:
! 29194: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 29195: if test x"$ac_file" != x-; then
! 29196: configure_input="$ac_file. $configure_input"
! 29197: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 29198: echo "$as_me: creating $ac_file" >&6;}
! 29199: fi
! 29200:
! 29201: case $ac_tag in
! 29202: *:-:* | *:-) cat >"$tmp/stdin";;
! 29203: esac
! 29204: ;;
1.1 root 29205: esac
29206:
1.1.1.5 ! root 29207: ac_dir=`$as_dirname -- "$ac_file" ||
1.1 root 29208: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29209: X"$ac_file" : 'X\(//\)[^/]' \| \
! 29210: X"$ac_file" : 'X\(//\)$' \| \
! 29211: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29212: echo X"$ac_file" |
1.1.1.5 ! root 29213: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29214: s//\1/
! 29215: q
! 29216: }
! 29217: /^X\(\/\/\)[^/].*/{
! 29218: s//\1/
! 29219: q
! 29220: }
! 29221: /^X\(\/\/\)$/{
! 29222: s//\1/
! 29223: q
! 29224: }
! 29225: /^X\(\/\).*/{
! 29226: s//\1/
! 29227: q
! 29228: }
! 29229: s/.*/./; q'`
! 29230: { as_dir="$ac_dir"
! 29231: case $as_dir in #(
! 29232: -*) as_dir=./$as_dir;;
! 29233: esac
! 29234: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1 root 29235: as_dirs=
1.1.1.5 ! root 29236: while :; do
! 29237: case $as_dir in #(
! 29238: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 29239: *) as_qdir=$as_dir;;
! 29240: esac
! 29241: as_dirs="'$as_qdir' $as_dirs"
! 29242: as_dir=`$as_dirname -- "$as_dir" ||
1.1 root 29243: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29244: X"$as_dir" : 'X\(//\)[^/]' \| \
! 29245: X"$as_dir" : 'X\(//\)$' \| \
! 29246: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29247: echo X"$as_dir" |
1.1.1.5 ! root 29248: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29249: s//\1/
! 29250: q
! 29251: }
! 29252: /^X\(\/\/\)[^/].*/{
! 29253: s//\1/
! 29254: q
! 29255: }
! 29256: /^X\(\/\/\)$/{
! 29257: s//\1/
! 29258: q
! 29259: }
! 29260: /^X\(\/\).*/{
! 29261: s//\1/
! 29262: q
! 29263: }
! 29264: s/.*/./; q'`
! 29265: test -d "$as_dir" && break
1.1 root 29266: done
1.1.1.5 ! root 29267: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 29268: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 29269: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1 root 29270: { (exit 1); exit 1; }; }; }
29271: ac_builddir=.
29272:
1.1.1.5 ! root 29273: case "$ac_dir" in
! 29274: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 29275: *)
1.1 root 29276: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.5 ! root 29277: # A ".." for each directory in $ac_dir_suffix.
! 29278: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 29279: case $ac_top_builddir_sub in
! 29280: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 29281: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 29282: esac ;;
! 29283: esac
! 29284: ac_abs_top_builddir=$ac_pwd
! 29285: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 29286: # for backward compatibility:
! 29287: ac_top_builddir=$ac_top_build_prefix
1.1 root 29288:
29289: case $srcdir in
1.1.1.5 ! root 29290: .) # We are building in place.
1.1 root 29291: ac_srcdir=.
1.1.1.5 ! root 29292: ac_top_srcdir=$ac_top_builddir_sub
! 29293: ac_abs_top_srcdir=$ac_pwd ;;
! 29294: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 29295: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.5 ! root 29296: ac_top_srcdir=$srcdir
! 29297: ac_abs_top_srcdir=$srcdir ;;
! 29298: *) # Relative name.
! 29299: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 29300: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 29301: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 29302: esac
! 29303: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 29304:
29305:
1.1.1.5 ! root 29306: case $ac_mode in
! 29307: :F)
! 29308: #
! 29309: # CONFIG_FILE
! 29310: #
! 29311:
1.1 root 29312: case $INSTALL in
29313: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.5 ! root 29314: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
! 29315: esac
! 29316: ac_MKDIR_P=$MKDIR_P
! 29317: case $MKDIR_P in
! 29318: [\\/$]* | ?:[\\/]* ) ;;
! 29319: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.1 root 29320: esac
1.1.1.5 ! root 29321: _ACEOF
1.1 root 29322:
1.1.1.5 ! root 29323: cat >>$CONFIG_STATUS <<\_ACEOF
! 29324: # If the template does not know about datarootdir, expand it.
! 29325: # FIXME: This hack should be removed a few years after 2.60.
! 29326: ac_datarootdir_hack=; ac_datarootdir_seen=
! 29327:
! 29328: case `sed -n '/datarootdir/ {
! 29329: p
! 29330: q
! 29331: }
! 29332: /@datadir@/p
! 29333: /@docdir@/p
! 29334: /@infodir@/p
! 29335: /@localedir@/p
! 29336: /@mandir@/p
! 29337: ' $ac_file_inputs` in
! 29338: *datarootdir*) ac_datarootdir_seen=yes;;
! 29339: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 29340: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 29341: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 29342: _ACEOF
! 29343: cat >>$CONFIG_STATUS <<_ACEOF
! 29344: ac_datarootdir_hack='
! 29345: s&@datadir@&$datadir&g
! 29346: s&@docdir@&$docdir&g
! 29347: s&@infodir@&$infodir&g
! 29348: s&@localedir@&$localedir&g
! 29349: s&@mandir@&$mandir&g
! 29350: s&\\\${datarootdir}&$datarootdir&g' ;;
! 29351: esac
1.1 root 29352: _ACEOF
1.1.1.5 ! root 29353:
! 29354: # Neutralize VPATH when `$srcdir' = `.'.
! 29355: # Shell code in configure.ac might set extrasub.
! 29356: # FIXME: do we really want to maintain this feature?
1.1 root 29357: cat >>$CONFIG_STATUS <<_ACEOF
29358: sed "$ac_vpsub
29359: $extrasub
29360: _ACEOF
29361: cat >>$CONFIG_STATUS <<\_ACEOF
29362: :t
29363: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.5 ! root 29364: s&@configure_input@&$configure_input&;t t
! 29365: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 29366: s&@srcdir@&$ac_srcdir&;t t
! 29367: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 29368: s&@top_srcdir@&$ac_top_srcdir&;t t
! 29369: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 29370: s&@builddir@&$ac_builddir&;t t
! 29371: s&@abs_builddir@&$ac_abs_builddir&;t t
! 29372: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 29373: s&@INSTALL@&$ac_INSTALL&;t t
! 29374: s&@MKDIR_P@&$ac_MKDIR_P&;t t
! 29375: $ac_datarootdir_hack
! 29376: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
! 29377:
! 29378: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 29379: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 29380: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 29381: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 29382: which seems to be undefined. Please make sure it is defined." >&5
! 29383: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 29384: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 root 29385:
1.1.1.5 ! root 29386: rm -f "$tmp/stdin"
1.1 root 29387: case $ac_file in
1.1.1.5 ! root 29388: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 29389: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.1 root 29390: esac
1.1.1.5 ! root 29391: ;;
! 29392: :H)
! 29393: #
! 29394: # CONFIG_HEADER
! 29395: #
1.1 root 29396: _ACEOF
29397:
1.1.1.5 ! root 29398: # Transform confdefs.h into a sed script `conftest.defines', that
! 29399: # substitutes the proper values into config.h.in to produce config.h.
! 29400: rm -f conftest.defines conftest.tail
! 29401: # First, append a space to every undef/define line, to ease matching.
! 29402: echo 's/$/ /' >conftest.defines
! 29403: # Then, protect against being on the right side of a sed subst, or in
! 29404: # an unquoted here document, in config.status. If some macros were
! 29405: # called several times there might be several #defines for the same
! 29406: # symbol, which is useless. But do not sort them, since the last
! 29407: # AC_DEFINE must be honored.
! 29408: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 29409: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 29410: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 29411: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 29412: # just an empty string.
! 29413: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 29414: ac_dB='\\)[ (].*,\\1define\\2'
! 29415: ac_dC=' '
! 29416: ac_dD=' ,'
! 29417:
! 29418: uniq confdefs.h |
! 29419: sed -n '
! 29420: t rset
! 29421: :rset
! 29422: s/^[ ]*#[ ]*define[ ][ ]*//
! 29423: t ok
! 29424: d
! 29425: :ok
! 29426: s/[\\&,]/\\&/g
! 29427: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 29428: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 29429: ' >>conftest.defines
1.1 root 29430:
1.1.1.5 ! root 29431: # Remove the space that was appended to ease matching.
! 29432: # Then replace #undef with comments. This is necessary, for
1.1 root 29433: # example, in the case of _POSIX_SOURCE, which is predefined and required
29434: # on some systems where configure will not decide to define it.
1.1.1.5 ! root 29435: # (The regexp can be short, since the line contains either #define or #undef.)
! 29436: echo 's/ $//
! 29437: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 29438:
! 29439: # Break up conftest.defines:
! 29440: ac_max_sed_lines=50
! 29441:
! 29442: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 29443: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 29444: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 29445: # et cetera.
! 29446: ac_in='$ac_file_inputs'
! 29447: ac_out='"$tmp/out1"'
! 29448: ac_nxt='"$tmp/out2"'
1.1 root 29449:
1.1.1.5 ! root 29450: while :
1.1 root 29451: do
1.1.1.5 ! root 29452: # Write a here document:
! 29453: cat >>$CONFIG_STATUS <<_ACEOF
! 29454: # First, check the format of the line:
! 29455: cat >"\$tmp/defines.sed" <<\\CEOF
! 29456: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 29457: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 29458: b
! 29459: :def
! 29460: _ACEOF
! 29461: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
1.1 root 29462: echo 'CEOF
1.1.1.5 ! root 29463: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 29464: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 29465: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 29466: grep . conftest.tail >/dev/null || break
1.1 root 29467: rm -f conftest.defines
29468: mv conftest.tail conftest.defines
29469: done
1.1.1.5 ! root 29470: rm -f conftest.defines conftest.tail
1.1 root 29471:
1.1.1.5 ! root 29472: echo "ac_result=$ac_in" >>$CONFIG_STATUS
1.1 root 29473: cat >>$CONFIG_STATUS <<\_ACEOF
29474: if test x"$ac_file" != x-; then
1.1.1.5 ! root 29475: echo "/* $configure_input */" >"$tmp/config.h"
! 29476: cat "$ac_result" >>"$tmp/config.h"
! 29477: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1.1 root 29478: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29479: echo "$as_me: $ac_file is unchanged" >&6;}
29480: else
29481: rm -f $ac_file
1.1.1.5 ! root 29482: mv "$tmp/config.h" $ac_file
1.1 root 29483: fi
29484: else
1.1.1.5 ! root 29485: echo "/* $configure_input */"
! 29486: cat "$ac_result"
1.1 root 29487: fi
1.1.1.5 ! root 29488: rm -f "$tmp/out12"
! 29489: # Compute $ac_file's index in $config_headers.
! 29490: _am_stamp_count=1
! 29491: for _am_header in $config_headers :; do
! 29492: case $_am_header in
! 29493: $ac_file | $ac_file:* )
! 29494: break ;;
! 29495: * )
! 29496: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
! 29497: esac
! 29498: done
! 29499: echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
1.1 root 29500: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29501: X$ac_file : 'X\(//\)[^/]' \| \
! 29502: X$ac_file : 'X\(//\)$' \| \
! 29503: X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29504: echo X$ac_file |
1.1.1.5 ! root 29505: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29506: s//\1/
! 29507: q
! 29508: }
! 29509: /^X\(\/\/\)[^/].*/{
! 29510: s//\1/
! 29511: q
! 29512: }
! 29513: /^X\(\/\/\)$/{
! 29514: s//\1/
! 29515: q
! 29516: }
! 29517: /^X\(\/\).*/{
! 29518: s//\1/
! 29519: q
! 29520: }
! 29521: s/.*/./; q'`/stamp-h$_am_stamp_count
! 29522: ;;
1.1 root 29523:
1.1.1.5 ! root 29524: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
! 29525: echo "$as_me: executing $ac_file commands" >&6;}
! 29526: ;;
! 29527: esac
1.1 root 29528:
29529:
1.1.1.5 ! root 29530: case $ac_file$ac_mode in
! 29531: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.1 root 29532: # Strip MF so we end up with the name of the file.
29533: mf=`echo "$mf" | sed -e 's/:.*$//'`
29534: # Check whether this is an Automake generated Makefile or not.
29535: # We used to match only the files named `Makefile.in', but
29536: # some people rename them; so instead we look at the file content.
29537: # Grep'ing the first line is not enough: some people post-process
29538: # each Makefile.in and add a new line on top of each file to say so.
1.1.1.5 ! root 29539: # Grep'ing the whole file is not good either: AIX grep has a line
! 29540: # limit of 2048, but all sed's we know have understand at least 4000.
! 29541: if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
! 29542: dirpart=`$as_dirname -- "$mf" ||
1.1 root 29543: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29544: X"$mf" : 'X\(//\)[^/]' \| \
! 29545: X"$mf" : 'X\(//\)$' \| \
! 29546: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29547: echo X"$mf" |
1.1.1.5 ! root 29548: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29549: s//\1/
! 29550: q
! 29551: }
! 29552: /^X\(\/\/\)[^/].*/{
! 29553: s//\1/
! 29554: q
! 29555: }
! 29556: /^X\(\/\/\)$/{
! 29557: s//\1/
! 29558: q
! 29559: }
! 29560: /^X\(\/\).*/{
! 29561: s//\1/
! 29562: q
! 29563: }
! 29564: s/.*/./; q'`
1.1 root 29565: else
29566: continue
29567: fi
1.1.1.5 ! root 29568: # Extract the definition of DEPDIR, am__include, and am__quote
! 29569: # from the Makefile without running `make'.
! 29570: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.1 root 29571: test -z "$DEPDIR" && continue
1.1.1.5 ! root 29572: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 29573: test -z "am__include" && continue
! 29574: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.1 root 29575: # When using ansi2knr, U may be empty or an underscore; expand it
1.1.1.5 ! root 29576: U=`sed -n 's/^U = //p' < "$mf"`
! 29577: # Find all dependency output files, they are included files with
! 29578: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 29579: # simplest approach to changing $(DEPDIR) to its actual value in the
! 29580: # expansion.
! 29581: for file in `sed -n "
! 29582: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1 root 29583: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29584: # Make sure the directory exists.
29585: test -f "$dirpart/$file" && continue
1.1.1.5 ! root 29586: fdir=`$as_dirname -- "$file" ||
1.1 root 29587: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29588: X"$file" : 'X\(//\)[^/]' \| \
! 29589: X"$file" : 'X\(//\)$' \| \
! 29590: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29591: echo X"$file" |
1.1.1.5 ! root 29592: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29593: s//\1/
! 29594: q
! 29595: }
! 29596: /^X\(\/\/\)[^/].*/{
! 29597: s//\1/
! 29598: q
! 29599: }
! 29600: /^X\(\/\/\)$/{
! 29601: s//\1/
! 29602: q
! 29603: }
! 29604: /^X\(\/\).*/{
! 29605: s//\1/
! 29606: q
! 29607: }
! 29608: s/.*/./; q'`
! 29609: { as_dir=$dirpart/$fdir
! 29610: case $as_dir in #(
! 29611: -*) as_dir=./$as_dir;;
! 29612: esac
! 29613: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1 root 29614: as_dirs=
1.1.1.5 ! root 29615: while :; do
! 29616: case $as_dir in #(
! 29617: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 29618: *) as_qdir=$as_dir;;
! 29619: esac
! 29620: as_dirs="'$as_qdir' $as_dirs"
! 29621: as_dir=`$as_dirname -- "$as_dir" ||
1.1 root 29622: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29623: X"$as_dir" : 'X\(//\)[^/]' \| \
! 29624: X"$as_dir" : 'X\(//\)$' \| \
! 29625: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29626: echo X"$as_dir" |
1.1.1.5 ! root 29627: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29628: s//\1/
! 29629: q
! 29630: }
! 29631: /^X\(\/\/\)[^/].*/{
! 29632: s//\1/
! 29633: q
! 29634: }
! 29635: /^X\(\/\/\)$/{
! 29636: s//\1/
! 29637: q
! 29638: }
! 29639: /^X\(\/\).*/{
! 29640: s//\1/
! 29641: q
! 29642: }
! 29643: s/.*/./; q'`
! 29644: test -d "$as_dir" && break
1.1 root 29645: done
1.1.1.5 ! root 29646: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 29647: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 29648: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1 root 29649: { (exit 1); exit 1; }; }; }
29650: # echo "creating $dirpart/$file"
29651: echo '# dummy' > "$dirpart/$file"
29652: done
29653: done
29654: ;;
1.1.1.5 ! root 29655: "default-1":C)
1.1 root 29656:
29657: ## Generate our configure-time sources in two
29658: ## cases:
29659: ## 1. `config.status' is run either explicitly, or via configure.
29660: ## Esp. not when it is run in `Makefile' to generate makefiles and
29661: ## config.h
29662: ## 2. CONFIG_OTHER is set explicitly
29663: ##
29664: ## Case 1 is difficult. We know that `automake' sets one of
29665: ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
29666: ## only when AM_CONFIG_HEADER is set, however.
29667:
29668: case "x$CONFIG_OTHER" in
29669: *tmeconfig.h) gen_tmeconfig_h=yes
29670: ;;
29671: esac
29672: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
29673: # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
29674: if test "x${CONFIG_OTHER}" = x; then
29675: gen_tmeconfig_h=yes
29676: fi
29677: fi
29678:
29679: ## If we're generating tmeconfig.h:
29680: if test "x$gen_tmeconfig_h" = xyes; then
29681: outfile=tmeconfig.h
29682: echo "$as_me: creating $outfile"
29683: cat <<TMEEOF > ${outfile}-tmp
29684: /* tmeconfig.h
29685: *
29686: * This is an automatically generated file - please modify 'configure.in'.
29687: */
29688:
29689: #ifndef _TMECONFIG_H
29690: #define _TMECONFIG_H
29691:
29692: TMEEOF
1.1.1.2 root 29693: (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
1.1 root 29694: grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \
29695: done) | sort | uniq >> ${outfile}-tmp
1.1.1.3 root 29696: grep FLOAT_FORMAT config.h | \
29697: sed 's/#define[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' >> ${outfile}-tmp
1.1.1.5 ! root 29698: echo '#define TME_BUSMAX_LOG2 TME_BUS'${bus_size_max}'_LOG2' >> ${outfile}-tmp
! 29699: echo '#define TME_HAVE_RECODE (' \
! 29700: `if test "x${recode_hosts}" = x; then echo 0; else echo 1; fi` ')' >> ${outfile}-tmp
! 29701: echo '#define TME_RECODE_SIZE_GUEST_MAX TME_RECODE_SIZE_'${recode_size_guest_max} >> ${outfile}-tmp
1.1 root 29702: echo '#define TME_RELEASE_MAJOR (' \
29703: `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
29704: echo '#define TME_RELEASE_MINOR (' \
29705: `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
29706: echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
1.1.1.2 root 29707: if test $ac_cv_sizeof_long = 8; then
29708: echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
1.1.1.5 ! root 29709: echo '#define _TME_PRI64 "l"' >> ${outfile}-tmp
1.1.1.2 root 29710: echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
29711: echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
29712: fi
1.1 root 29713: if test $ac_cv_sizeof_int = 4; then
1.1.1.5 ! root 29714: echo '#define _TME_PRI32 ""' >> ${outfile}-tmp
1.1 root 29715: echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
29716: echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
29717: elif test $ac_cv_sizeof_long = 4; then
1.1.1.5 ! root 29718: echo '#define _TME_PRI32 "l"' >> ${outfile}-tmp
1.1 root 29719: echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
29720: echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
29721: fi
29722: if test $ac_cv_sizeof_int = 2; then
29723: echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
29724: echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
29725: elif test $ac_cv_sizeof_short = 2; then
29726: echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
29727: echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
29728: fi
29729: echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
29730: echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
29731: cat <<TMEEOF >> ${outfile}-tmp
29732:
29733: /* features that aren't currently controlled by a configure option: */
29734: #define TME_THREADS_SJLJ
29735:
29736: #endif /* !_TMECONFIG_H */
29737: TMEEOF
29738: if cmp -s ${outfile}-tmp $outfile; then
29739: echo "$as_me: $outfile is unchanged"
29740: rm -f ${outfile}-tmp
29741: else
29742: mv ${outfile}-tmp ${outfile}
29743: fi
1.1.1.5 ! root 29744:
! 29745: outfile=tme/recode-host.h
! 29746: echo "$as_me: creating $outfile"
! 29747: cat <<TMEEOF > ${outfile}-tmp
! 29748: /* recode-host.h
! 29749: *
! 29750: * This is an automatically generated file - please modify 'configure.in'.
! 29751: */
! 29752:
! 29753: TMEEOF
! 29754: for host in ${recode_hosts}; do
! 29755: echo '#include <tme/host/recode-'${host}'.h>' >> ${outfile}-tmp
! 29756: done
! 29757: delim='#define TME_RECODE_HOST_IC \'
! 29758: for host in ${recode_hosts}; do
! 29759: echo ${delim} >> ${outfile}-tmp
! 29760: echo -n ' TME_RECODE_'`echo ${host} | tr '[a-z]' '[A-Z]'`'_IC' >> ${outfile}-tmp
! 29761: delim='; \'
! 29762: done
! 29763: echo '' >> ${outfile}-tmp
! 29764: if cmp -s ${outfile}-tmp $outfile; then
! 29765: echo "$as_me: $outfile is unchanged"
! 29766: rm -f ${outfile}-tmp
! 29767: else
! 29768: mv ${outfile}-tmp ${outfile}
! 29769: fi
! 29770:
! 29771: outfile=libtme/recode-host.c
! 29772: echo "$as_me: creating $outfile"
! 29773: cat <<TMEEOF > ${outfile}-tmp
! 29774: /* recode-host.c
! 29775: *
! 29776: * This is an automatically generated file - please modify 'configure.in'.
! 29777: */
! 29778:
! 29779: TMEEOF
! 29780: for host in ${recode_hosts}; do
! 29781: if test -d ${srcdir}/libtme/host/${host}; then
! 29782: echo '#include "libtme/host/'${host}'/recode-'${host}'.c"' >> ${outfile}-tmp
! 29783: else
! 29784: echo '#include "libtme/host/recode-'${host}'.c"' >> ${outfile}-tmp
! 29785: fi
! 29786: done
! 29787: if cmp -s ${outfile}-tmp $outfile; then
! 29788: echo "$as_me: $outfile is unchanged"
! 29789: rm -f ${outfile}-tmp
! 29790: else
! 29791: mv ${outfile}-tmp ${outfile}
! 29792: fi
! 29793:
! 29794: outfile=libtme/misc-host.c
! 29795: echo "$as_me: creating $outfile"
! 29796: cat <<TMEEOF > ${outfile}-tmp
! 29797: /* misc-host.c
! 29798: *
! 29799: * This is an automatically generated file - please modify 'configure.in'.
! 29800: */
! 29801:
! 29802: TMEEOF
! 29803: for host in ${misc_hosts}; do
! 29804: if test -d ${srcdir}/libtme/host/${host}; then
! 29805: echo '#include "libtme/host/'${host}'/misc-'${host}'.c"' >> ${outfile}-tmp
! 29806: else
! 29807: echo '#include "libtme/host/misc-'${host}'.c"' >> ${outfile}-tmp
! 29808: fi
! 29809: done
! 29810: echo '#include "libtme/misc.c"' >> ${outfile}-tmp
! 29811: if cmp -s ${outfile}-tmp $outfile; then
! 29812: echo "$as_me: $outfile is unchanged"
! 29813: rm -f ${outfile}-tmp
! 29814: else
! 29815: mv ${outfile}-tmp ${outfile}
! 29816: fi
! 29817:
1.1 root 29818: fi
29819: ;;
1.1.1.5 ! root 29820:
1.1 root 29821: esac
1.1.1.5 ! root 29822: done # for ac_tag
1.1 root 29823:
29824:
29825: { (exit 0); exit 0; }
29826: _ACEOF
29827: chmod +x $CONFIG_STATUS
29828: ac_clean_files=$ac_clean_files_save
29829:
29830:
29831: # configure is writing to config.log, and then calls config.status.
29832: # config.status does its own redirection, appending to config.log.
29833: # Unfortunately, on DOS this fails, as config.log is still kept open
29834: # by configure, so config.status won't be able to write to it; its
29835: # output is simply discarded. So we exec the FD to /dev/null,
29836: # effectively closing config.log, so it can be properly (re)opened and
29837: # appended to by config.status. When coming back to configure, we
29838: # need to make the FD available again.
29839: if test "$no_create" != yes; then
29840: ac_cs_success=:
29841: ac_config_status_args=
29842: test "$silent" = yes &&
29843: ac_config_status_args="$ac_config_status_args --quiet"
29844: exec 5>/dev/null
29845: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29846: exec 5>>config.log
29847: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29848: # would make configure fail if this is the last instruction.
29849: $ac_cs_success || { (exit 1); exit 1; }
29850: fi
29851:
29852: #
29853: # CONFIG_SUBDIRS section.
29854: #
29855: if test "$no_recursion" != yes; then
29856:
29857: # Remove --cache-file and --srcdir arguments so they do not pile up.
29858: ac_sub_configure_args=
29859: ac_prev=
1.1.1.5 ! root 29860: eval "set x $ac_configure_args"
! 29861: shift
! 29862: for ac_arg
! 29863: do
1.1 root 29864: if test -n "$ac_prev"; then
29865: ac_prev=
29866: continue
29867: fi
29868: case $ac_arg in
29869: -cache-file | --cache-file | --cache-fil | --cache-fi \
29870: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29871: ac_prev=cache_file ;;
29872: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29873: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29874: | --c=*)
29875: ;;
29876: --config-cache | -C)
29877: ;;
29878: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29879: ac_prev=srcdir ;;
29880: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29881: ;;
29882: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29883: ac_prev=prefix ;;
29884: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29885: ;;
1.1.1.5 ! root 29886: *)
! 29887: case $ac_arg in
! 29888: *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 29889: esac
! 29890: ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
1.1 root 29891: esac
29892: done
29893:
29894: # Always prepend --prefix to ensure using the same prefix
29895: # in subdir configurations.
1.1.1.5 ! root 29896: ac_arg="--prefix=$prefix"
! 29897: case $ac_arg in
! 29898: *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 29899: esac
! 29900: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
! 29901:
! 29902: # Pass --silent
! 29903: if test "$silent" = yes; then
! 29904: ac_sub_configure_args="--silent $ac_sub_configure_args"
! 29905: fi
1.1 root 29906:
29907: ac_popdir=`pwd`
29908: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
29909:
29910: # Do not complain, so a configure script can configure whichever
29911: # parts of a large source tree are present.
1.1.1.5 ! root 29912: test -d "$srcdir/$ac_dir" || continue
1.1 root 29913:
1.1.1.5 ! root 29914: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
! 29915: echo "$as_me:$LINENO: $ac_msg" >&5
! 29916: echo "$ac_msg" >&6
! 29917: { as_dir="$ac_dir"
! 29918: case $as_dir in #(
! 29919: -*) as_dir=./$as_dir;;
! 29920: esac
! 29921: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1 root 29922: as_dirs=
1.1.1.5 ! root 29923: while :; do
! 29924: case $as_dir in #(
! 29925: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 29926: *) as_qdir=$as_dir;;
! 29927: esac
! 29928: as_dirs="'$as_qdir' $as_dirs"
! 29929: as_dir=`$as_dirname -- "$as_dir" ||
1.1 root 29930: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.5 ! root 29931: X"$as_dir" : 'X\(//\)[^/]' \| \
! 29932: X"$as_dir" : 'X\(//\)$' \| \
! 29933: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 29934: echo X"$as_dir" |
1.1.1.5 ! root 29935: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 29936: s//\1/
! 29937: q
! 29938: }
! 29939: /^X\(\/\/\)[^/].*/{
! 29940: s//\1/
! 29941: q
! 29942: }
! 29943: /^X\(\/\/\)$/{
! 29944: s//\1/
! 29945: q
! 29946: }
! 29947: /^X\(\/\).*/{
! 29948: s//\1/
! 29949: q
! 29950: }
! 29951: s/.*/./; q'`
! 29952: test -d "$as_dir" && break
1.1 root 29953: done
1.1.1.5 ! root 29954: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 29955: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 29956: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1 root 29957: { (exit 1); exit 1; }; }; }
29958: ac_builddir=.
29959:
1.1.1.5 ! root 29960: case "$ac_dir" in
! 29961: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 29962: *)
1.1 root 29963: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.5 ! root 29964: # A ".." for each directory in $ac_dir_suffix.
! 29965: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 29966: case $ac_top_builddir_sub in
! 29967: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 29968: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 29969: esac ;;
! 29970: esac
! 29971: ac_abs_top_builddir=$ac_pwd
! 29972: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 29973: # for backward compatibility:
! 29974: ac_top_builddir=$ac_top_build_prefix
1.1 root 29975:
29976: case $srcdir in
1.1.1.5 ! root 29977: .) # We are building in place.
1.1 root 29978: ac_srcdir=.
1.1.1.5 ! root 29979: ac_top_srcdir=$ac_top_builddir_sub
! 29980: ac_abs_top_srcdir=$ac_pwd ;;
! 29981: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 29982: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.5 ! root 29983: ac_top_srcdir=$srcdir
! 29984: ac_abs_top_srcdir=$srcdir ;;
! 29985: *) # Relative name.
! 29986: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 29987: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 29988: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 29989: esac
! 29990: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 29991:
29992:
1.1.1.5 ! root 29993: cd "$ac_dir"
1.1 root 29994:
29995: # Check for guested configure; otherwise get Cygnus style configure.
1.1.1.5 ! root 29996: if test -f "$ac_srcdir/configure.gnu"; then
! 29997: ac_sub_configure=$ac_srcdir/configure.gnu
! 29998: elif test -f "$ac_srcdir/configure"; then
! 29999: ac_sub_configure=$ac_srcdir/configure
! 30000: elif test -f "$ac_srcdir/configure.in"; then
! 30001: # This should be Cygnus configure.
! 30002: ac_sub_configure=$ac_aux_dir/configure
1.1 root 30003: else
30004: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
30005: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30006: ac_sub_configure=
30007: fi
30008:
30009: # The recursion is here.
30010: if test -n "$ac_sub_configure"; then
30011: # Make the cache file name correct relative to the subdirectory.
30012: case $cache_file in
30013: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1.1.5 ! root 30014: *) # Relative name.
! 30015: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 root 30016: esac
30017:
1.1.1.5 ! root 30018: { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
! 30019: echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 root 30020: # The eval makes quoting arguments work.
1.1.1.5 ! root 30021: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
! 30022: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
! 30023: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.1 root 30024: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
30025: { (exit 1); exit 1; }; }
30026: fi
30027:
1.1.1.5 ! root 30028: cd "$ac_popdir"
1.1 root 30029: done
30030: fi
30031:
30032:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.