|
|
1.1 ! root 1: #! /bin/sh ! 2: # Guess values for system-dependent variables and create Makefiles. ! 3: # Generated by GNU Autoconf 2.57. ! 4: # ! 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 6: # Free Software Foundation, Inc. ! 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: ! 13: # Be Bourne compatible ! 14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 15: emulate sh ! 16: NULLCMD=: ! 17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! 18: # is contrary to our usage. Disable this feature. ! 19: alias -g '${1+"$@"}'='"$@"' ! 20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 21: set -o posix ! 22: fi ! 23: ! 24: # Support unset when possible. ! 25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 26: as_unset=unset ! 27: else ! 28: as_unset=false ! 29: fi ! 30: ! 31: ! 32: # Work around bugs in pre-3.0 UWIN ksh. ! 33: $as_unset ENV MAIL MAILPATH ! 34: PS1='$ ' ! 35: PS2='> ' ! 36: PS4='+ ' ! 37: ! 38: # NLS nuisances. ! 39: for as_var in \ ! 40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! 41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! 42: LC_TELEPHONE LC_TIME ! 43: do ! 44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then ! 45: eval $as_var=C; export $as_var ! 46: else ! 47: $as_unset $as_var ! 48: fi ! 49: done ! 50: ! 51: # Required to use basename. ! 52: if expr a : '\(a\)' >/dev/null 2>&1; then ! 53: as_expr=expr ! 54: else ! 55: as_expr=false ! 56: fi ! 57: ! 58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ! 59: as_basename=basename ! 60: else ! 61: as_basename=false ! 62: fi ! 63: ! 64: ! 65: # Name of the executable. ! 66: as_me=`$as_basename "$0" || ! 67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 68: X"$0" : 'X\(//\)$' \| \ ! 69: X"$0" : 'X\(/\)$' \| \ ! 70: . : '\(.\)' 2>/dev/null || ! 71: echo X/"$0" | ! 72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 73: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 74: /^X\/\(\/\).*/{ s//\1/; q; } ! 75: s/.*/./; q'` ! 76: ! 77: ! 78: # PATH needs CR, and LINENO needs CR and PATH. ! 79: # Avoid depending upon Character Ranges. ! 80: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 83: as_cr_digits='0123456789' ! 84: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 85: ! 86: # The user is always right. ! 87: if test "${PATH_SEPARATOR+set}" != set; then ! 88: echo "#! /bin/sh" >conf$$.sh ! 89: echo "exit 0" >>conf$$.sh ! 90: chmod +x conf$$.sh ! 91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! 92: PATH_SEPARATOR=';' ! 93: else ! 94: PATH_SEPARATOR=: ! 95: fi ! 96: rm -f conf$$.sh ! 97: fi ! 98: ! 99: ! 100: as_lineno_1=$LINENO ! 101: as_lineno_2=$LINENO ! 102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 103: test "x$as_lineno_1" != "x$as_lineno_2" && ! 104: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 105: # Find who we are. Look in the path if we contain no path at all ! 106: # relative or not. ! 107: case $0 in ! 108: *[\\/]* ) as_myself=$0 ;; ! 109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 110: for as_dir in $PATH ! 111: do ! 112: IFS=$as_save_IFS ! 113: test -z "$as_dir" && as_dir=. ! 114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 115: done ! 116: ! 117: ;; ! 118: esac ! 119: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 120: # in which case we are not to be found in the path. ! 121: if test "x$as_myself" = x; then ! 122: as_myself=$0 ! 123: fi ! 124: if test ! -f "$as_myself"; then ! 125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 ! 126: { (exit 1); exit 1; }; } ! 127: fi ! 128: case $CONFIG_SHELL in ! 129: '') ! 130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 132: do ! 133: IFS=$as_save_IFS ! 134: test -z "$as_dir" && as_dir=. ! 135: for as_base in sh bash ksh sh5; do ! 136: case $as_dir in ! 137: /*) ! 138: if ("$as_dir/$as_base" -c ' ! 139: as_lineno_1=$LINENO ! 140: as_lineno_2=$LINENO ! 141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 142: test "x$as_lineno_1" != "x$as_lineno_2" && ! 143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ! 145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ! 146: CONFIG_SHELL=$as_dir/$as_base ! 147: export CONFIG_SHELL ! 148: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 149: fi;; ! 150: esac ! 151: done ! 152: done ! 153: ;; ! 154: esac ! 155: ! 156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 157: # uniformly replaced by the line number. The first 'sed' inserts a ! 158: # line-number line before each line; the second 'sed' does the real ! 159: # work. The second script uses 'N' to pair each line-number line ! 160: # with the numbered line, and appends trailing '-' during ! 161: # substitution so that $LINENO is not a special case at line end. ! 162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 164: sed '=' <$as_myself | ! 165: sed ' ! 166: N ! 167: s,$,-, ! 168: : loop ! 169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 170: t loop ! 171: s,-$,, ! 172: s,^['$as_cr_digits']*\n,, ! 173: ' >$as_me.lineno && ! 174: chmod +x $as_me.lineno || ! 175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! 176: { (exit 1); exit 1; }; } ! 177: ! 178: # Don't try to exec as it changes $[0], causing all sort of problems ! 179: # (the dirname of $[0] is not the place where we might find the ! 180: # original and so on. Autoconf is especially sensible to this). ! 181: . ./$as_me.lineno ! 182: # Exit status is that of the last command. ! 183: exit ! 184: } ! 185: ! 186: ! 187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 188: *c*,-n*) ECHO_N= ECHO_C=' ! 189: ' ECHO_T=' ' ;; ! 190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 192: esac ! 193: ! 194: if expr a : '\(a\)' >/dev/null 2>&1; then ! 195: as_expr=expr ! 196: else ! 197: as_expr=false ! 198: fi ! 199: ! 200: rm -f conf$$ conf$$.exe conf$$.file ! 201: echo >conf$$.file ! 202: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 203: # We could just check for DJGPP; but this test a) works b) is more generic ! 204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 205: if test -f conf$$.exe; then ! 206: # Don't use ln at all; we don't have any links ! 207: as_ln_s='cp -p' ! 208: else ! 209: as_ln_s='ln -s' ! 210: fi ! 211: elif ln conf$$.file conf$$ 2>/dev/null; then ! 212: as_ln_s=ln ! 213: else ! 214: as_ln_s='cp -p' ! 215: fi ! 216: rm -f conf$$ conf$$.exe conf$$.file ! 217: ! 218: if mkdir -p . 2>/dev/null; then ! 219: as_mkdir_p=: ! 220: else ! 221: as_mkdir_p=false ! 222: fi ! 223: ! 224: as_executable_p="test -f" ! 225: ! 226: # Sed expression to map a string onto a valid CPP name. ! 227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 228: ! 229: # Sed expression to map a string onto a valid variable name. ! 230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 231: ! 232: ! 233: # IFS ! 234: # We need space, tab and new line, in precisely that order. ! 235: as_nl=' ! 236: ' ! 237: IFS=" $as_nl" ! 238: ! 239: # CDPATH. ! 240: $as_unset CDPATH ! 241: ! 242: ! 243: ! 244: # Check that we are running under the correct shell. ! 245: SHELL=${CONFIG_SHELL-/bin/sh} ! 246: ! 247: case X$ECHO in ! 248: X*--fallback-echo) ! 249: # Remove one level of quotation (which was required for Make). ! 250: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ! 251: ;; ! 252: esac ! 253: ! 254: echo=${ECHO-echo} ! 255: if test "X$1" = X--no-reexec; then ! 256: # Discard the --no-reexec flag, and continue. ! 257: shift ! 258: elif test "X$1" = X--fallback-echo; then ! 259: # Avoid inline document here, it may be left over ! 260: : ! 261: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then ! 262: # Yippee, $echo works! ! 263: : ! 264: else ! 265: # Restart under the correct shell. ! 266: exec $SHELL "$0" --no-reexec ${1+"$@"} ! 267: fi ! 268: ! 269: if test "X$1" = X--fallback-echo; then ! 270: # used as fallback echo ! 271: shift ! 272: cat <<EOF ! 273: $* ! 274: EOF ! 275: exit 0 ! 276: fi ! 277: ! 278: # The HP-UX ksh and POSIX shell print the target directory to stdout ! 279: # if CDPATH is set. ! 280: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi ! 281: ! 282: if test -z "$ECHO"; then ! 283: if test "X${echo_test_string+set}" != Xset; then ! 284: # find a string as large as possible, as long as the shell can cope with it ! 285: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do ! 286: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... ! 287: if (echo_test_string="`eval $cmd`") 2>/dev/null && ! 288: echo_test_string="`eval $cmd`" && ! 289: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null ! 290: then ! 291: break ! 292: fi ! 293: done ! 294: fi ! 295: ! 296: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && ! 297: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && ! 298: test "X$echo_testing_string" = "X$echo_test_string"; then ! 299: : ! 300: else ! 301: # The Solaris, AIX, and Digital Unix default echo programs unquote ! 302: # backslashes. This makes it impossible to quote backslashes using ! 303: # echo "$something" | sed 's/\\/\\\\/g' ! 304: # ! 305: # So, first we look for a working echo in the user's PATH. ! 306: ! 307: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 308: for dir in $PATH /usr/ucb; do ! 309: IFS="$lt_save_ifs" ! 310: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && ! 311: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && ! 312: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && ! 313: test "X$echo_testing_string" = "X$echo_test_string"; then ! 314: echo="$dir/echo" ! 315: break ! 316: fi ! 317: done ! 318: IFS="$lt_save_ifs" ! 319: ! 320: if test "X$echo" = Xecho; then ! 321: # We didn't find a better echo, so look for alternatives. ! 322: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && ! 323: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && ! 324: test "X$echo_testing_string" = "X$echo_test_string"; then ! 325: # This shell has a builtin print -r that does the trick. ! 326: echo='print -r' ! 327: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && ! 328: test "X$CONFIG_SHELL" != X/bin/ksh; then ! 329: # If we have ksh, try running configure again with it. ! 330: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} ! 331: export ORIGINAL_CONFIG_SHELL ! 332: CONFIG_SHELL=/bin/ksh ! 333: export CONFIG_SHELL ! 334: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} ! 335: else ! 336: # Try using printf. ! 337: echo='printf %s\n' ! 338: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && ! 339: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && ! 340: test "X$echo_testing_string" = "X$echo_test_string"; then ! 341: # Cool, printf works ! 342: : ! 343: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ! 344: test "X$echo_testing_string" = 'X\t' && ! 345: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ! 346: test "X$echo_testing_string" = "X$echo_test_string"; then ! 347: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL ! 348: export CONFIG_SHELL ! 349: SHELL="$CONFIG_SHELL" ! 350: export SHELL ! 351: echo="$CONFIG_SHELL $0 --fallback-echo" ! 352: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ! 353: test "X$echo_testing_string" = 'X\t' && ! 354: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ! 355: test "X$echo_testing_string" = "X$echo_test_string"; then ! 356: echo="$CONFIG_SHELL $0 --fallback-echo" ! 357: else ! 358: # maybe with a smaller string... ! 359: prev=: ! 360: ! 361: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do ! 362: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null ! 363: then ! 364: break ! 365: fi ! 366: prev="$cmd" ! 367: done ! 368: ! 369: if test "$prev" != 'sed 50q "$0"'; then ! 370: echo_test_string=`eval $prev` ! 371: export echo_test_string ! 372: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} ! 373: else ! 374: # Oops. We lost completely, so just stick with echo. ! 375: echo=echo ! 376: fi ! 377: fi ! 378: fi ! 379: fi ! 380: fi ! 381: fi ! 382: ! 383: # Copy echo and quote the copy suitably for passing to libtool from ! 384: # the Makefile, instead of quoting the original, which is used later. ! 385: ECHO=$echo ! 386: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ! 387: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" ! 388: fi ! 389: ! 390: ! 391: ! 392: ! 393: tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` ! 394: ! 395: tagnames=`echo "$tagnames,F77" | sed 's/^,//'` ! 396: ! 397: # Name of the host. ! 398: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ! 399: # so uname gets run too. ! 400: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ! 401: ! 402: exec 6>&1 ! 403: ! 404: # ! 405: # Initializations. ! 406: # ! 407: ac_default_prefix=/usr/local ! 408: ac_config_libobj_dir=. ! 409: cross_compiling=no ! 410: subdirs= ! 411: MFLAGS= ! 412: MAKEFLAGS= ! 413: SHELL=${CONFIG_SHELL-/bin/sh} ! 414: ! 415: # Maximum number of lines to put in a shell here document. ! 416: # This variable seems obsolete. It should probably be removed, and ! 417: # only ac_max_sed_lines should be used. ! 418: : ${ac_max_here_lines=38} ! 419: ! 420: # Identity of this package. ! 421: PACKAGE_NAME= ! 422: PACKAGE_TARNAME= ! 423: PACKAGE_VERSION= ! 424: PACKAGE_STRING= ! 425: PACKAGE_BUGREPORT= ! 426: ! 427: ac_unique_file="ic/m68k/m68k-impl.h" ! 428: # Factoring default headers for most tests. ! 429: ac_includes_default="\ ! 430: #include <stdio.h> ! 431: #if HAVE_SYS_TYPES_H ! 432: # include <sys/types.h> ! 433: #endif ! 434: #if HAVE_SYS_STAT_H ! 435: # include <sys/stat.h> ! 436: #endif ! 437: #if STDC_HEADERS ! 438: # include <stdlib.h> ! 439: # include <stddef.h> ! 440: #else ! 441: # if HAVE_STDLIB_H ! 442: # include <stdlib.h> ! 443: # endif ! 444: #endif ! 445: #if HAVE_STRING_H ! 446: # if !STDC_HEADERS && HAVE_MEMORY_H ! 447: # include <memory.h> ! 448: # endif ! 449: # include <string.h> ! 450: #endif ! 451: #if HAVE_STRINGS_H ! 452: # include <strings.h> ! 453: #endif ! 454: #if HAVE_INTTYPES_H ! 455: # include <inttypes.h> ! 456: #else ! 457: # if HAVE_STDINT_H ! 458: # include <stdint.h> ! 459: # endif ! 460: #endif ! 461: #if HAVE_UNISTD_H ! 462: # include <unistd.h> ! 463: #endif" ! 464: ! 465: ac_subdirs_all="$ac_subdirs_all libltdl" ! 466: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP YACC EGREP LIBOBJS PERL TME_MACHINE_SUBDIRS TME_IC_SUBDIRS TME_ICS TME_BUS_SUBDIRS TME_HOSTS INCLTDL LIBLTDL LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS subdirs TME_PREOPEN' ! 467: ac_subst_files='' ! 468: ! 469: # Initialize some variables set by options. ! 470: ac_init_help= ! 471: ac_init_version=false ! 472: # The variables have the same names as the options, with ! 473: # dashes changed to underlines. ! 474: cache_file=/dev/null ! 475: exec_prefix=NONE ! 476: no_create= ! 477: no_recursion= ! 478: prefix=NONE ! 479: program_prefix=NONE ! 480: program_suffix=NONE ! 481: program_transform_name=s,x,x, ! 482: silent= ! 483: site= ! 484: srcdir= ! 485: verbose= ! 486: x_includes=NONE ! 487: x_libraries=NONE ! 488: ! 489: # Installation directory options. ! 490: # These are left unexpanded so users can "make install exec_prefix=/foo" ! 491: # and all the variables that are supposed to be based on exec_prefix ! 492: # by default will actually change. ! 493: # Use braces instead of parens because sh, perl, etc. also accept them. ! 494: bindir='${exec_prefix}/bin' ! 495: sbindir='${exec_prefix}/sbin' ! 496: libexecdir='${exec_prefix}/libexec' ! 497: datadir='${prefix}/share' ! 498: sysconfdir='${prefix}/etc' ! 499: sharedstatedir='${prefix}/com' ! 500: localstatedir='${prefix}/var' ! 501: libdir='${exec_prefix}/lib' ! 502: includedir='${prefix}/include' ! 503: oldincludedir='/usr/include' ! 504: infodir='${prefix}/info' ! 505: mandir='${prefix}/man' ! 506: ! 507: ac_prev= ! 508: for ac_option ! 509: do ! 510: # If the previous option needs an argument, assign it. ! 511: if test -n "$ac_prev"; then ! 512: eval "$ac_prev=\$ac_option" ! 513: ac_prev= ! 514: continue ! 515: fi ! 516: ! 517: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ! 518: ! 519: # Accept the important Cygnus configure options, so we can diagnose typos. ! 520: ! 521: case $ac_option in ! 522: ! 523: -bindir | --bindir | --bindi | --bind | --bin | --bi) ! 524: ac_prev=bindir ;; ! 525: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ! 526: bindir=$ac_optarg ;; ! 527: ! 528: -build | --build | --buil | --bui | --bu) ! 529: ac_prev=build_alias ;; ! 530: -build=* | --build=* | --buil=* | --bui=* | --bu=*) ! 531: build_alias=$ac_optarg ;; ! 532: ! 533: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 534: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 535: ac_prev=cache_file ;; ! 536: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 537: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ! 538: cache_file=$ac_optarg ;; ! 539: ! 540: --config-cache | -C) ! 541: cache_file=config.cache ;; ! 542: ! 543: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ! 544: ac_prev=datadir ;; ! 545: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ! 546: | --da=*) ! 547: datadir=$ac_optarg ;; ! 548: ! 549: -disable-* | --disable-*) ! 550: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ! 551: # Reject names that are not valid shell variable names. ! 552: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 553: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 554: { (exit 1); exit 1; }; } ! 555: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 556: eval "enable_$ac_feature=no" ;; ! 557: ! 558: -enable-* | --enable-*) ! 559: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ! 560: # Reject names that are not valid shell variable names. ! 561: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 562: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 563: { (exit 1); exit 1; }; } ! 564: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 565: case $ac_option in ! 566: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 567: *) ac_optarg=yes ;; ! 568: esac ! 569: eval "enable_$ac_feature='$ac_optarg'" ;; ! 570: ! 571: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ! 572: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ! 573: | --exec | --exe | --ex) ! 574: ac_prev=exec_prefix ;; ! 575: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ! 576: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ! 577: | --exec=* | --exe=* | --ex=*) ! 578: exec_prefix=$ac_optarg ;; ! 579: ! 580: -gas | --gas | --ga | --g) ! 581: # Obsolete; use --with-gas. ! 582: with_gas=yes ;; ! 583: ! 584: -help | --help | --hel | --he | -h) ! 585: ac_init_help=long ;; ! 586: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ! 587: ac_init_help=recursive ;; ! 588: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ! 589: ac_init_help=short ;; ! 590: ! 591: -host | --host | --hos | --ho) ! 592: ac_prev=host_alias ;; ! 593: -host=* | --host=* | --hos=* | --ho=*) ! 594: host_alias=$ac_optarg ;; ! 595: ! 596: -includedir | --includedir | --includedi | --included | --include \ ! 597: | --includ | --inclu | --incl | --inc) ! 598: ac_prev=includedir ;; ! 599: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ! 600: | --includ=* | --inclu=* | --incl=* | --inc=*) ! 601: includedir=$ac_optarg ;; ! 602: ! 603: -infodir | --infodir | --infodi | --infod | --info | --inf) ! 604: ac_prev=infodir ;; ! 605: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ! 606: infodir=$ac_optarg ;; ! 607: ! 608: -libdir | --libdir | --libdi | --libd) ! 609: ac_prev=libdir ;; ! 610: -libdir=* | --libdir=* | --libdi=* | --libd=*) ! 611: libdir=$ac_optarg ;; ! 612: ! 613: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ! 614: | --libexe | --libex | --libe) ! 615: ac_prev=libexecdir ;; ! 616: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ! 617: | --libexe=* | --libex=* | --libe=*) ! 618: libexecdir=$ac_optarg ;; ! 619: ! 620: -localstatedir | --localstatedir | --localstatedi | --localstated \ ! 621: | --localstate | --localstat | --localsta | --localst \ ! 622: | --locals | --local | --loca | --loc | --lo) ! 623: ac_prev=localstatedir ;; ! 624: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ! 625: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ! 626: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ! 627: localstatedir=$ac_optarg ;; ! 628: ! 629: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ! 630: ac_prev=mandir ;; ! 631: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ! 632: mandir=$ac_optarg ;; ! 633: ! 634: -nfp | --nfp | --nf) ! 635: # Obsolete; use --without-fp. ! 636: with_fp=no ;; ! 637: ! 638: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 639: | --no-cr | --no-c | -n) ! 640: no_create=yes ;; ! 641: ! 642: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 643: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 644: no_recursion=yes ;; ! 645: ! 646: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ! 647: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ! 648: | --oldin | --oldi | --old | --ol | --o) ! 649: ac_prev=oldincludedir ;; ! 650: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ! 651: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ! 652: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ! 653: oldincludedir=$ac_optarg ;; ! 654: ! 655: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 656: ac_prev=prefix ;; ! 657: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 658: prefix=$ac_optarg ;; ! 659: ! 660: -program-prefix | --program-prefix | --program-prefi | --program-pref \ ! 661: | --program-pre | --program-pr | --program-p) ! 662: ac_prev=program_prefix ;; ! 663: -program-prefix=* | --program-prefix=* | --program-prefi=* \ ! 664: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ! 665: program_prefix=$ac_optarg ;; ! 666: ! 667: -program-suffix | --program-suffix | --program-suffi | --program-suff \ ! 668: | --program-suf | --program-su | --program-s) ! 669: ac_prev=program_suffix ;; ! 670: -program-suffix=* | --program-suffix=* | --program-suffi=* \ ! 671: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ! 672: program_suffix=$ac_optarg ;; ! 673: ! 674: -program-transform-name | --program-transform-name \ ! 675: | --program-transform-nam | --program-transform-na \ ! 676: | --program-transform-n | --program-transform- \ ! 677: | --program-transform | --program-transfor \ ! 678: | --program-transfo | --program-transf \ ! 679: | --program-trans | --program-tran \ ! 680: | --progr-tra | --program-tr | --program-t) ! 681: ac_prev=program_transform_name ;; ! 682: -program-transform-name=* | --program-transform-name=* \ ! 683: | --program-transform-nam=* | --program-transform-na=* \ ! 684: | --program-transform-n=* | --program-transform-=* \ ! 685: | --program-transform=* | --program-transfor=* \ ! 686: | --program-transfo=* | --program-transf=* \ ! 687: | --program-trans=* | --program-tran=* \ ! 688: | --progr-tra=* | --program-tr=* | --program-t=*) ! 689: program_transform_name=$ac_optarg ;; ! 690: ! 691: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 692: | -silent | --silent | --silen | --sile | --sil) ! 693: silent=yes ;; ! 694: ! 695: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ! 696: ac_prev=sbindir ;; ! 697: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ! 698: | --sbi=* | --sb=*) ! 699: sbindir=$ac_optarg ;; ! 700: ! 701: -sharedstatedir | --sharedstatedir | --sharedstatedi \ ! 702: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ! 703: | --sharedst | --shareds | --shared | --share | --shar \ ! 704: | --sha | --sh) ! 705: ac_prev=sharedstatedir ;; ! 706: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ! 707: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ! 708: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ! 709: | --sha=* | --sh=*) ! 710: sharedstatedir=$ac_optarg ;; ! 711: ! 712: -site | --site | --sit) ! 713: ac_prev=site ;; ! 714: -site=* | --site=* | --sit=*) ! 715: site=$ac_optarg ;; ! 716: ! 717: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 718: ac_prev=srcdir ;; ! 719: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 720: srcdir=$ac_optarg ;; ! 721: ! 722: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ! 723: | --syscon | --sysco | --sysc | --sys | --sy) ! 724: ac_prev=sysconfdir ;; ! 725: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ! 726: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ! 727: sysconfdir=$ac_optarg ;; ! 728: ! 729: -target | --target | --targe | --targ | --tar | --ta | --t) ! 730: ac_prev=target_alias ;; ! 731: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ! 732: target_alias=$ac_optarg ;; ! 733: ! 734: -v | -verbose | --verbose | --verbos | --verbo | --verb) ! 735: verbose=yes ;; ! 736: ! 737: -version | --version | --versio | --versi | --vers | -V) ! 738: ac_init_version=: ;; ! 739: ! 740: -with-* | --with-*) ! 741: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ! 742: # Reject names that are not valid shell variable names. ! 743: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 744: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 745: { (exit 1); exit 1; }; } ! 746: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 747: case $ac_option in ! 748: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 749: *) ac_optarg=yes ;; ! 750: esac ! 751: eval "with_$ac_package='$ac_optarg'" ;; ! 752: ! 753: -without-* | --without-*) ! 754: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ! 755: # Reject names that are not valid shell variable names. ! 756: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 757: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 758: { (exit 1); exit 1; }; } ! 759: ac_package=`echo $ac_package | sed 's/-/_/g'` ! 760: eval "with_$ac_package=no" ;; ! 761: ! 762: --x) ! 763: # Obsolete; use --with-x. ! 764: with_x=yes ;; ! 765: ! 766: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ! 767: | --x-incl | --x-inc | --x-in | --x-i) ! 768: ac_prev=x_includes ;; ! 769: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ! 770: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ! 771: x_includes=$ac_optarg ;; ! 772: ! 773: -x-libraries | --x-libraries | --x-librarie | --x-librari \ ! 774: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ! 775: ac_prev=x_libraries ;; ! 776: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ! 777: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ! 778: x_libraries=$ac_optarg ;; ! 779: ! 780: -*) { echo "$as_me: error: unrecognized option: $ac_option ! 781: Try \`$0 --help' for more information." >&2 ! 782: { (exit 1); exit 1; }; } ! 783: ;; ! 784: ! 785: *=*) ! 786: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ! 787: # Reject names that are not valid shell variable names. ! 788: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ! 789: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ! 790: { (exit 1); exit 1; }; } ! 791: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ! 792: eval "$ac_envvar='$ac_optarg'" ! 793: export $ac_envvar ;; ! 794: ! 795: *) ! 796: # FIXME: should be removed in autoconf 3.0. ! 797: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ! 798: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! 799: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ! 800: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ! 801: ;; ! 802: ! 803: esac ! 804: done ! 805: ! 806: if test -n "$ac_prev"; then ! 807: ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! 808: { echo "$as_me: error: missing argument to $ac_option" >&2 ! 809: { (exit 1); exit 1; }; } ! 810: fi ! 811: ! 812: # Be sure to have absolute paths. ! 813: for ac_var in exec_prefix prefix ! 814: do ! 815: eval ac_val=$`echo $ac_var` ! 816: case $ac_val in ! 817: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; ! 818: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 819: { (exit 1); exit 1; }; };; ! 820: esac ! 821: done ! 822: ! 823: # Be sure to have absolute paths. ! 824: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ ! 825: localstatedir libdir includedir oldincludedir infodir mandir ! 826: do ! 827: eval ac_val=$`echo $ac_var` ! 828: case $ac_val in ! 829: [\\/$]* | ?:[\\/]* ) ;; ! 830: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 831: { (exit 1); exit 1; }; };; ! 832: esac ! 833: done ! 834: ! 835: # There might be people who depend on the old broken behavior: `$host' ! 836: # used to hold the argument of --host etc. ! 837: # FIXME: To remove some day. ! 838: build=$build_alias ! 839: host=$host_alias ! 840: target=$target_alias ! 841: ! 842: # FIXME: To remove some day. ! 843: if test "x$host_alias" != x; then ! 844: if test "x$build_alias" = x; then ! 845: cross_compiling=maybe ! 846: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ! 847: If a cross compiler is detected then cross compile mode will be used." >&2 ! 848: elif test "x$build_alias" != "x$host_alias"; then ! 849: cross_compiling=yes ! 850: fi ! 851: fi ! 852: ! 853: ac_tool_prefix= ! 854: test -n "$host_alias" && ac_tool_prefix=$host_alias- ! 855: ! 856: test "$silent" = yes && exec 6>/dev/null ! 857: ! 858: ! 859: # Find the source files, if location was not specified. ! 860: if test -z "$srcdir"; then ! 861: ac_srcdir_defaulted=yes ! 862: # Try the directory containing this script, then its parent. ! 863: ac_confdir=`(dirname "$0") 2>/dev/null || ! 864: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 865: X"$0" : 'X\(//\)[^/]' \| \ ! 866: X"$0" : 'X\(//\)$' \| \ ! 867: X"$0" : 'X\(/\)' \| \ ! 868: . : '\(.\)' 2>/dev/null || ! 869: echo X"$0" | ! 870: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 871: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 872: /^X\(\/\/\)$/{ s//\1/; q; } ! 873: /^X\(\/\).*/{ s//\1/; q; } ! 874: s/.*/./; q'` ! 875: srcdir=$ac_confdir ! 876: if test ! -r $srcdir/$ac_unique_file; then ! 877: srcdir=.. ! 878: fi ! 879: else ! 880: ac_srcdir_defaulted=no ! 881: fi ! 882: if test ! -r $srcdir/$ac_unique_file; then ! 883: if test "$ac_srcdir_defaulted" = yes; then ! 884: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 ! 885: { (exit 1); exit 1; }; } ! 886: else ! 887: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ! 888: { (exit 1); exit 1; }; } ! 889: fi ! 890: fi ! 891: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || ! 892: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 ! 893: { (exit 1); exit 1; }; } ! 894: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ! 895: ac_env_build_alias_set=${build_alias+set} ! 896: ac_env_build_alias_value=$build_alias ! 897: ac_cv_env_build_alias_set=${build_alias+set} ! 898: ac_cv_env_build_alias_value=$build_alias ! 899: ac_env_host_alias_set=${host_alias+set} ! 900: ac_env_host_alias_value=$host_alias ! 901: ac_cv_env_host_alias_set=${host_alias+set} ! 902: ac_cv_env_host_alias_value=$host_alias ! 903: ac_env_target_alias_set=${target_alias+set} ! 904: ac_env_target_alias_value=$target_alias ! 905: ac_cv_env_target_alias_set=${target_alias+set} ! 906: ac_cv_env_target_alias_value=$target_alias ! 907: ac_env_CC_set=${CC+set} ! 908: ac_env_CC_value=$CC ! 909: ac_cv_env_CC_set=${CC+set} ! 910: ac_cv_env_CC_value=$CC ! 911: ac_env_CFLAGS_set=${CFLAGS+set} ! 912: ac_env_CFLAGS_value=$CFLAGS ! 913: ac_cv_env_CFLAGS_set=${CFLAGS+set} ! 914: ac_cv_env_CFLAGS_value=$CFLAGS ! 915: ac_env_LDFLAGS_set=${LDFLAGS+set} ! 916: ac_env_LDFLAGS_value=$LDFLAGS ! 917: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ! 918: ac_cv_env_LDFLAGS_value=$LDFLAGS ! 919: ac_env_CPPFLAGS_set=${CPPFLAGS+set} ! 920: ac_env_CPPFLAGS_value=$CPPFLAGS ! 921: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ! 922: ac_cv_env_CPPFLAGS_value=$CPPFLAGS ! 923: ac_env_CPP_set=${CPP+set} ! 924: ac_env_CPP_value=$CPP ! 925: ac_cv_env_CPP_set=${CPP+set} ! 926: ac_cv_env_CPP_value=$CPP ! 927: ac_env_CXX_set=${CXX+set} ! 928: ac_env_CXX_value=$CXX ! 929: ac_cv_env_CXX_set=${CXX+set} ! 930: ac_cv_env_CXX_value=$CXX ! 931: ac_env_CXXFLAGS_set=${CXXFLAGS+set} ! 932: ac_env_CXXFLAGS_value=$CXXFLAGS ! 933: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ! 934: ac_cv_env_CXXFLAGS_value=$CXXFLAGS ! 935: ac_env_CXXCPP_set=${CXXCPP+set} ! 936: ac_env_CXXCPP_value=$CXXCPP ! 937: ac_cv_env_CXXCPP_set=${CXXCPP+set} ! 938: ac_cv_env_CXXCPP_value=$CXXCPP ! 939: ac_env_F77_set=${F77+set} ! 940: ac_env_F77_value=$F77 ! 941: ac_cv_env_F77_set=${F77+set} ! 942: ac_cv_env_F77_value=$F77 ! 943: ac_env_FFLAGS_set=${FFLAGS+set} ! 944: ac_env_FFLAGS_value=$FFLAGS ! 945: ac_cv_env_FFLAGS_set=${FFLAGS+set} ! 946: ac_cv_env_FFLAGS_value=$FFLAGS ! 947: ! 948: # ! 949: # Report the --help message. ! 950: # ! 951: if test "$ac_init_help" = "long"; then ! 952: # Omit some internal or obsolete options to make the list less imposing. ! 953: # This message is too long to be a string in the A/UX 3.1 sh. ! 954: cat <<_ACEOF ! 955: \`configure' configures this package to adapt to many kinds of systems. ! 956: ! 957: Usage: $0 [OPTION]... [VAR=VALUE]... ! 958: ! 959: To assign environment variables (e.g., CC, CFLAGS...), specify them as ! 960: VAR=VALUE. See below for descriptions of some of the useful variables. ! 961: ! 962: Defaults for the options are specified in brackets. ! 963: ! 964: Configuration: ! 965: -h, --help display this help and exit ! 966: --help=short display options specific to this package ! 967: --help=recursive display the short help of all the included packages ! 968: -V, --version display version information and exit ! 969: -q, --quiet, --silent do not print \`checking...' messages ! 970: --cache-file=FILE cache test results in FILE [disabled] ! 971: -C, --config-cache alias for \`--cache-file=config.cache' ! 972: -n, --no-create do not create output files ! 973: --srcdir=DIR find the sources in DIR [configure dir or \`..'] ! 974: ! 975: _ACEOF ! 976: ! 977: cat <<_ACEOF ! 978: Installation directories: ! 979: --prefix=PREFIX install architecture-independent files in PREFIX ! 980: [$ac_default_prefix] ! 981: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! 982: [PREFIX] ! 983: ! 984: By default, \`make install' will install all the files in ! 985: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ! 986: an installation prefix other than \`$ac_default_prefix' using \`--prefix', ! 987: for instance \`--prefix=\$HOME'. ! 988: ! 989: For better control, use the options below. ! 990: ! 991: Fine tuning of the installation directories: ! 992: --bindir=DIR user executables [EPREFIX/bin] ! 993: --sbindir=DIR system admin executables [EPREFIX/sbin] ! 994: --libexecdir=DIR program executables [EPREFIX/libexec] ! 995: --datadir=DIR read-only architecture-independent data [PREFIX/share] ! 996: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! 997: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! 998: --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! 999: --libdir=DIR object code libraries [EPREFIX/lib] ! 1000: --includedir=DIR C header files [PREFIX/include] ! 1001: --oldincludedir=DIR C header files for non-gcc [/usr/include] ! 1002: --infodir=DIR info documentation [PREFIX/info] ! 1003: --mandir=DIR man documentation [PREFIX/man] ! 1004: _ACEOF ! 1005: ! 1006: cat <<\_ACEOF ! 1007: ! 1008: Program names: ! 1009: --program-prefix=PREFIX prepend PREFIX to installed program names ! 1010: --program-suffix=SUFFIX append SUFFIX to installed program names ! 1011: --program-transform-name=PROGRAM run sed PROGRAM on installed program names ! 1012: ! 1013: System types: ! 1014: --build=BUILD configure for building on BUILD [guessed] ! 1015: --host=HOST cross-compile to build programs to run on HOST [BUILD] ! 1016: --target=TARGET configure for building compilers for TARGET [HOST] ! 1017: _ACEOF ! 1018: fi ! 1019: ! 1020: if test -n "$ac_init_help"; then ! 1021: ! 1022: cat <<\_ACEOF ! 1023: ! 1024: Optional Features: ! 1025: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ! 1026: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ! 1027: --disable-dependency-tracking Speeds up one-time builds ! 1028: --enable-dependency-tracking Do not reject slow dependency extractors ! 1029: --enable-shared[=PKGS] ! 1030: build shared libraries [default=yes] ! 1031: --enable-static[=PKGS] ! 1032: build static libraries [default=yes] ! 1033: --enable-fast-install[=PKGS] ! 1034: optimize for fast installation [default=yes] ! 1035: --disable-libtool-lock avoid locking (might break parallel builds) ! 1036: --disable-debug don't compile debuggable libraries and programs (default=do) ! 1037: --disable-warnings don't compile with warnings turned on (default=do) ! 1038: ! 1039: Optional Packages: ! 1040: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ! 1041: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ! 1042: --with-gnu-ld assume the C compiler uses GNU ld [default=no] ! 1043: --with-pic try to use only PIC/non-PIC objects [default=use ! 1044: both] ! 1045: --with-tags[=TAGS] ! 1046: include additional configurations [automatic] ! 1047: ! 1048: Some influential environment variables: ! 1049: CC C compiler command ! 1050: CFLAGS C compiler flags ! 1051: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a ! 1052: nonstandard directory <lib dir> ! 1053: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have ! 1054: headers in a nonstandard directory <include dir> ! 1055: CPP C preprocessor ! 1056: CXX C++ compiler command ! 1057: CXXFLAGS C++ compiler flags ! 1058: CXXCPP C++ preprocessor ! 1059: F77 Fortran 77 compiler command ! 1060: FFLAGS Fortran 77 compiler flags ! 1061: ! 1062: Use these variables to override the choices made by `configure' or to help ! 1063: it to find libraries and programs with nonstandard names/locations. ! 1064: ! 1065: _ACEOF ! 1066: fi ! 1067: ! 1068: if test "$ac_init_help" = "recursive"; then ! 1069: # If there are subdirs, report their specific --help. ! 1070: ac_popdir=`pwd` ! 1071: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! 1072: test -d $ac_dir || continue ! 1073: ac_builddir=. ! 1074: ! 1075: if test "$ac_dir" != .; then ! 1076: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 1077: # A "../" for each directory in $ac_dir_suffix. ! 1078: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 1079: else ! 1080: ac_dir_suffix= ac_top_builddir= ! 1081: fi ! 1082: ! 1083: case $srcdir in ! 1084: .) # No --srcdir option. We are building in place. ! 1085: ac_srcdir=. ! 1086: if test -z "$ac_top_builddir"; then ! 1087: ac_top_srcdir=. ! 1088: else ! 1089: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 1090: fi ;; ! 1091: [\\/]* | ?:[\\/]* ) # Absolute path. ! 1092: ac_srcdir=$srcdir$ac_dir_suffix; ! 1093: ac_top_srcdir=$srcdir ;; ! 1094: *) # Relative path. ! 1095: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 1096: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 1097: esac ! 1098: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 1099: # absolute. ! 1100: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 1101: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 1102: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 1103: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 1104: ! 1105: cd $ac_dir ! 1106: # Check for guested configure; otherwise get Cygnus style configure. ! 1107: if test -f $ac_srcdir/configure.gnu; then ! 1108: echo ! 1109: $SHELL $ac_srcdir/configure.gnu --help=recursive ! 1110: elif test -f $ac_srcdir/configure; then ! 1111: echo ! 1112: $SHELL $ac_srcdir/configure --help=recursive ! 1113: elif test -f $ac_srcdir/configure.ac || ! 1114: test -f $ac_srcdir/configure.in; then ! 1115: echo ! 1116: $ac_configure --help ! 1117: else ! 1118: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ! 1119: fi ! 1120: cd $ac_popdir ! 1121: done ! 1122: fi ! 1123: ! 1124: test -n "$ac_init_help" && exit 0 ! 1125: if $ac_init_version; then ! 1126: cat <<\_ACEOF ! 1127: ! 1128: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 1129: Free Software Foundation, Inc. ! 1130: This configure script is free software; the Free Software Foundation ! 1131: gives unlimited permission to copy, distribute and modify it. ! 1132: _ACEOF ! 1133: exit 0 ! 1134: fi ! 1135: exec 5>config.log ! 1136: cat >&5 <<_ACEOF ! 1137: This file contains any messages produced by compilers while ! 1138: running configure, to aid debugging if configure makes a mistake. ! 1139: ! 1140: It was created by $as_me, which was ! 1141: generated by GNU Autoconf 2.57. Invocation command line was ! 1142: ! 1143: $ $0 $@ ! 1144: ! 1145: _ACEOF ! 1146: { ! 1147: cat <<_ASUNAME ! 1148: ## --------- ## ! 1149: ## Platform. ## ! 1150: ## --------- ## ! 1151: ! 1152: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ! 1153: uname -m = `(uname -m) 2>/dev/null || echo unknown` ! 1154: uname -r = `(uname -r) 2>/dev/null || echo unknown` ! 1155: uname -s = `(uname -s) 2>/dev/null || echo unknown` ! 1156: uname -v = `(uname -v) 2>/dev/null || echo unknown` ! 1157: ! 1158: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ! 1159: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ! 1160: ! 1161: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ! 1162: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ! 1163: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ! 1164: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` ! 1165: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ! 1166: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ! 1167: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ! 1168: ! 1169: _ASUNAME ! 1170: ! 1171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1172: for as_dir in $PATH ! 1173: do ! 1174: IFS=$as_save_IFS ! 1175: test -z "$as_dir" && as_dir=. ! 1176: echo "PATH: $as_dir" ! 1177: done ! 1178: ! 1179: } >&5 ! 1180: ! 1181: cat >&5 <<_ACEOF ! 1182: ! 1183: ! 1184: ## ----------- ## ! 1185: ## Core tests. ## ! 1186: ## ----------- ## ! 1187: ! 1188: _ACEOF ! 1189: ! 1190: ! 1191: # Keep a trace of the command line. ! 1192: # Strip out --no-create and --no-recursion so they do not pile up. ! 1193: # Strip out --silent because we don't want to record it for future runs. ! 1194: # Also quote any args containing shell meta-characters. ! 1195: # Make two passes to allow for proper duplicate-argument suppression. ! 1196: ac_configure_args= ! 1197: ac_configure_args0= ! 1198: ac_configure_args1= ! 1199: ac_sep= ! 1200: ac_must_keep_next=false ! 1201: for ac_pass in 1 2 ! 1202: do ! 1203: for ac_arg ! 1204: do ! 1205: case $ac_arg in ! 1206: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ! 1207: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 1208: | -silent | --silent | --silen | --sile | --sil) ! 1209: continue ;; ! 1210: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 1211: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ! 1212: esac ! 1213: case $ac_pass in ! 1214: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ! 1215: 2) ! 1216: ac_configure_args1="$ac_configure_args1 '$ac_arg'" ! 1217: if test $ac_must_keep_next = true; then ! 1218: ac_must_keep_next=false # Got value, back to normal. ! 1219: else ! 1220: case $ac_arg in ! 1221: *=* | --config-cache | -C | -disable-* | --disable-* \ ! 1222: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ! 1223: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ! 1224: | -with-* | --with-* | -without-* | --without-* | --x) ! 1225: case "$ac_configure_args0 " in ! 1226: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ! 1227: esac ! 1228: ;; ! 1229: -* ) ac_must_keep_next=true ;; ! 1230: esac ! 1231: fi ! 1232: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ! 1233: # Get rid of the leading space. ! 1234: ac_sep=" " ! 1235: ;; ! 1236: esac ! 1237: done ! 1238: done ! 1239: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ! 1240: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ! 1241: ! 1242: # When interrupted or exit'd, cleanup temporary files, and complete ! 1243: # config.log. We remove comments because anyway the quotes in there ! 1244: # would cause problems or look ugly. ! 1245: # WARNING: Be sure not to use single quotes in there, as some shells, ! 1246: # such as our DU 5.0 friend, will then `close' the trap. ! 1247: trap 'exit_status=$? ! 1248: # Save into config.log some information that might help in debugging. ! 1249: { ! 1250: echo ! 1251: ! 1252: cat <<\_ASBOX ! 1253: ## ---------------- ## ! 1254: ## Cache variables. ## ! 1255: ## ---------------- ## ! 1256: _ASBOX ! 1257: echo ! 1258: # The following way of writing the cache mishandles newlines in values, ! 1259: { ! 1260: (set) 2>&1 | ! 1261: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in ! 1262: *ac_space=\ *) ! 1263: sed -n \ ! 1264: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; ! 1265: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ! 1266: ;; ! 1267: *) ! 1268: sed -n \ ! 1269: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 1270: ;; ! 1271: esac; ! 1272: } ! 1273: echo ! 1274: ! 1275: cat <<\_ASBOX ! 1276: ## ----------------- ## ! 1277: ## Output variables. ## ! 1278: ## ----------------- ## ! 1279: _ASBOX ! 1280: echo ! 1281: for ac_var in $ac_subst_vars ! 1282: do ! 1283: eval ac_val=$`echo $ac_var` ! 1284: echo "$ac_var='"'"'$ac_val'"'"'" ! 1285: done | sort ! 1286: echo ! 1287: ! 1288: if test -n "$ac_subst_files"; then ! 1289: cat <<\_ASBOX ! 1290: ## ------------- ## ! 1291: ## Output files. ## ! 1292: ## ------------- ## ! 1293: _ASBOX ! 1294: echo ! 1295: for ac_var in $ac_subst_files ! 1296: do ! 1297: eval ac_val=$`echo $ac_var` ! 1298: echo "$ac_var='"'"'$ac_val'"'"'" ! 1299: done | sort ! 1300: echo ! 1301: fi ! 1302: ! 1303: if test -s confdefs.h; then ! 1304: cat <<\_ASBOX ! 1305: ## ----------- ## ! 1306: ## confdefs.h. ## ! 1307: ## ----------- ## ! 1308: _ASBOX ! 1309: echo ! 1310: sed "/^$/d" confdefs.h | sort ! 1311: echo ! 1312: fi ! 1313: test "$ac_signal" != 0 && ! 1314: echo "$as_me: caught signal $ac_signal" ! 1315: echo "$as_me: exit $exit_status" ! 1316: } >&5 ! 1317: rm -f core core.* *.core && ! 1318: rm -rf conftest* confdefs* conf$$* $ac_clean_files && ! 1319: exit $exit_status ! 1320: ' 0 ! 1321: for ac_signal in 1 2 13 15; do ! 1322: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ! 1323: done ! 1324: ac_signal=0 ! 1325: ! 1326: # confdefs.h avoids OS command line length limits that DEFS can exceed. ! 1327: rm -rf conftest* confdefs.h ! 1328: # AIX cpp loses on an empty file, so make sure it contains at least a newline. ! 1329: echo >confdefs.h ! 1330: ! 1331: # Predefined preprocessor variables. ! 1332: ! 1333: cat >>confdefs.h <<_ACEOF ! 1334: #define PACKAGE_NAME "$PACKAGE_NAME" ! 1335: _ACEOF ! 1336: ! 1337: ! 1338: cat >>confdefs.h <<_ACEOF ! 1339: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" ! 1340: _ACEOF ! 1341: ! 1342: ! 1343: cat >>confdefs.h <<_ACEOF ! 1344: #define PACKAGE_VERSION "$PACKAGE_VERSION" ! 1345: _ACEOF ! 1346: ! 1347: ! 1348: cat >>confdefs.h <<_ACEOF ! 1349: #define PACKAGE_STRING "$PACKAGE_STRING" ! 1350: _ACEOF ! 1351: ! 1352: ! 1353: cat >>confdefs.h <<_ACEOF ! 1354: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ! 1355: _ACEOF ! 1356: ! 1357: ! 1358: # Let the site file select an alternate cache file if it wants to. ! 1359: # Prefer explicitly selected file to automatically selected ones. ! 1360: if test -z "$CONFIG_SITE"; then ! 1361: if test "x$prefix" != xNONE; then ! 1362: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ! 1363: else ! 1364: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ! 1365: fi ! 1366: fi ! 1367: for ac_site_file in $CONFIG_SITE; do ! 1368: if test -r "$ac_site_file"; then ! 1369: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ! 1370: echo "$as_me: loading site script $ac_site_file" >&6;} ! 1371: sed 's/^/| /' "$ac_site_file" >&5 ! 1372: . "$ac_site_file" ! 1373: fi ! 1374: done ! 1375: ! 1376: if test -r "$cache_file"; then ! 1377: # Some versions of bash will fail to source /dev/null (special ! 1378: # files actually), so we avoid doing that. ! 1379: if test -f "$cache_file"; then ! 1380: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ! 1381: echo "$as_me: loading cache $cache_file" >&6;} ! 1382: case $cache_file in ! 1383: [\\/]* | ?:[\\/]* ) . $cache_file;; ! 1384: *) . ./$cache_file;; ! 1385: esac ! 1386: fi ! 1387: else ! 1388: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ! 1389: echo "$as_me: creating cache $cache_file" >&6;} ! 1390: >$cache_file ! 1391: fi ! 1392: ! 1393: # Check that the precious variables saved in the cache have kept the same ! 1394: # value. ! 1395: ac_cache_corrupted=false ! 1396: for ac_var in `(set) 2>&1 | ! 1397: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do ! 1398: eval ac_old_set=\$ac_cv_env_${ac_var}_set ! 1399: eval ac_new_set=\$ac_env_${ac_var}_set ! 1400: eval ac_old_val="\$ac_cv_env_${ac_var}_value" ! 1401: eval ac_new_val="\$ac_env_${ac_var}_value" ! 1402: case $ac_old_set,$ac_new_set in ! 1403: set,) ! 1404: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ! 1405: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ! 1406: ac_cache_corrupted=: ;; ! 1407: ,set) ! 1408: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ! 1409: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ! 1410: ac_cache_corrupted=: ;; ! 1411: ,);; ! 1412: *) ! 1413: if test "x$ac_old_val" != "x$ac_new_val"; then ! 1414: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ! 1415: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ! 1416: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ! 1417: echo "$as_me: former value: $ac_old_val" >&2;} ! 1418: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ! 1419: echo "$as_me: current value: $ac_new_val" >&2;} ! 1420: ac_cache_corrupted=: ! 1421: fi;; ! 1422: esac ! 1423: # Pass precious variables to config.status. ! 1424: if test "$ac_new_set" = set; then ! 1425: case $ac_new_val in ! 1426: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 1427: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ! 1428: *) ac_arg=$ac_var=$ac_new_val ;; ! 1429: esac ! 1430: case " $ac_configure_args " in ! 1431: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! 1432: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ! 1433: esac ! 1434: fi ! 1435: done ! 1436: if $ac_cache_corrupted; then ! 1437: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ! 1438: echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! 1439: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ! 1440: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ! 1441: { (exit 1); exit 1; }; } ! 1442: fi ! 1443: ! 1444: ac_ext=c ! 1445: ac_cpp='$CPP $CPPFLAGS' ! 1446: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1447: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1448: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1449: ! 1450: ! 1451: ! 1452: ! 1453: ! 1454: ! 1455: ! 1456: ! 1457: ! 1458: ! 1459: ! 1460: ! 1461: ! 1462: ! 1463: ! 1464: ! 1465: ! 1466: ! 1467: ! 1468: ac_aux_dir= ! 1469: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do ! 1470: if test -f $ac_dir/install-sh; then ! 1471: ac_aux_dir=$ac_dir ! 1472: ac_install_sh="$ac_aux_dir/install-sh -c" ! 1473: break ! 1474: elif test -f $ac_dir/install.sh; then ! 1475: ac_aux_dir=$ac_dir ! 1476: ac_install_sh="$ac_aux_dir/install.sh -c" ! 1477: break ! 1478: elif test -f $ac_dir/shtool; then ! 1479: ac_aux_dir=$ac_dir ! 1480: ac_install_sh="$ac_aux_dir/shtool install -c" ! 1481: break ! 1482: fi ! 1483: done ! 1484: if test -z "$ac_aux_dir"; then ! 1485: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 ! 1486: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} ! 1487: { (exit 1); exit 1; }; } ! 1488: fi ! 1489: ac_config_guess="$SHELL $ac_aux_dir/config.guess" ! 1490: ac_config_sub="$SHELL $ac_aux_dir/config.sub" ! 1491: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ! 1492: ! 1493: # Make sure we can run config.sub. ! 1494: $ac_config_sub sun4 >/dev/null 2>&1 || ! 1495: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 ! 1496: echo "$as_me: error: cannot run $ac_config_sub" >&2;} ! 1497: { (exit 1); exit 1; }; } ! 1498: ! 1499: echo "$as_me:$LINENO: checking build system type" >&5 ! 1500: echo $ECHO_N "checking build system type... $ECHO_C" >&6 ! 1501: if test "${ac_cv_build+set}" = set; then ! 1502: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1503: else ! 1504: ac_cv_build_alias=$build_alias ! 1505: test -z "$ac_cv_build_alias" && ! 1506: ac_cv_build_alias=`$ac_config_guess` ! 1507: test -z "$ac_cv_build_alias" && ! 1508: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ! 1509: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ! 1510: { (exit 1); exit 1; }; } ! 1511: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || ! 1512: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 ! 1513: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} ! 1514: { (exit 1); exit 1; }; } ! 1515: ! 1516: fi ! 1517: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ! 1518: echo "${ECHO_T}$ac_cv_build" >&6 ! 1519: build=$ac_cv_build ! 1520: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1521: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1522: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1523: ! 1524: ! 1525: echo "$as_me:$LINENO: checking host system type" >&5 ! 1526: echo $ECHO_N "checking host system type... $ECHO_C" >&6 ! 1527: if test "${ac_cv_host+set}" = set; then ! 1528: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1529: else ! 1530: ac_cv_host_alias=$host_alias ! 1531: test -z "$ac_cv_host_alias" && ! 1532: ac_cv_host_alias=$ac_cv_build_alias ! 1533: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || ! 1534: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 ! 1535: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} ! 1536: { (exit 1); exit 1; }; } ! 1537: ! 1538: fi ! 1539: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ! 1540: echo "${ECHO_T}$ac_cv_host" >&6 ! 1541: host=$ac_cv_host ! 1542: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1543: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1544: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1545: ! 1546: ! 1547: echo "$as_me:$LINENO: checking target system type" >&5 ! 1548: echo $ECHO_N "checking target system type... $ECHO_C" >&6 ! 1549: if test "${ac_cv_target+set}" = set; then ! 1550: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1551: else ! 1552: ac_cv_target_alias=$target_alias ! 1553: test "x$ac_cv_target_alias" = "x" && ! 1554: ac_cv_target_alias=$ac_cv_host_alias ! 1555: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || ! 1556: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 ! 1557: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} ! 1558: { (exit 1); exit 1; }; } ! 1559: ! 1560: fi ! 1561: echo "$as_me:$LINENO: result: $ac_cv_target" >&5 ! 1562: echo "${ECHO_T}$ac_cv_target" >&6 ! 1563: target=$ac_cv_target ! 1564: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1565: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1566: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1567: ! 1568: ! 1569: # The aliases save the names the user supplied, while $host etc. ! 1570: # will get canonicalized. ! 1571: test -n "$target_alias" && ! 1572: test "$program_prefix$program_suffix$program_transform_name" = \ ! 1573: NONENONEs,x,x, && ! 1574: program_prefix=${target_alias}- ! 1575: am__api_version="1.7" ! 1576: # Find a good install program. We prefer a C program (faster), ! 1577: # so one script is as good as another. But avoid the broken or ! 1578: # incompatible versions: ! 1579: # SysV /etc/install, /usr/sbin/install ! 1580: # SunOS /usr/etc/install ! 1581: # IRIX /sbin/install ! 1582: # AIX /bin/install ! 1583: # AmigaOS /C/install, which installs bootblocks on floppy discs ! 1584: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ! 1585: # AFS /usr/afsws/bin/install, which mishandles nonexistent args ! 1586: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ! 1587: # ./install, which can be erroneously created by make from ./install.sh. ! 1588: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! 1589: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ! 1590: if test -z "$INSTALL"; then ! 1591: if test "${ac_cv_path_install+set}" = set; then ! 1592: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1593: else ! 1594: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1595: for as_dir in $PATH ! 1596: do ! 1597: IFS=$as_save_IFS ! 1598: test -z "$as_dir" && as_dir=. ! 1599: # Account for people who put trailing slashes in PATH elements. ! 1600: case $as_dir/ in ! 1601: ./ | .// | /cC/* | \ ! 1602: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! 1603: /usr/ucb/* ) ;; ! 1604: *) ! 1605: # OSF1 and SCO ODT 3.0 have their own names for install. ! 1606: # Don't use installbsd from OSF since it installs stuff as root ! 1607: # by default. ! 1608: for ac_prog in ginstall scoinst install; do ! 1609: for ac_exec_ext in '' $ac_executable_extensions; do ! 1610: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ! 1611: if test $ac_prog = install && ! 1612: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 1613: # AIX install. It has an incompatible calling convention. ! 1614: : ! 1615: elif test $ac_prog = install && ! 1616: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 1617: # program-specific install script used by HP pwplus--don't use. ! 1618: : ! 1619: else ! 1620: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! 1621: break 3 ! 1622: fi ! 1623: fi ! 1624: done ! 1625: done ! 1626: ;; ! 1627: esac ! 1628: done ! 1629: ! 1630: ! 1631: fi ! 1632: if test "${ac_cv_path_install+set}" = set; then ! 1633: INSTALL=$ac_cv_path_install ! 1634: else ! 1635: # As a last resort, use the slow shell script. We don't cache a ! 1636: # path for INSTALL within a source directory, because that will ! 1637: # break other packages using the cache if that directory is ! 1638: # removed, or if the path is relative. ! 1639: INSTALL=$ac_install_sh ! 1640: fi ! 1641: fi ! 1642: echo "$as_me:$LINENO: result: $INSTALL" >&5 ! 1643: echo "${ECHO_T}$INSTALL" >&6 ! 1644: ! 1645: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. ! 1646: # It thinks the first close brace ends the variable substitution. ! 1647: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ! 1648: ! 1649: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ! 1650: ! 1651: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ! 1652: ! 1653: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ! 1654: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 ! 1655: # Just in case ! 1656: sleep 1 ! 1657: echo timestamp > conftest.file ! 1658: # Do `set' in a subshell so we don't clobber the current shell's ! 1659: # arguments. Must try -L first in case configure is actually a ! 1660: # symlink; some systems play weird games with the mod time of symlinks ! 1661: # (eg FreeBSD returns the mod time of the symlink's containing ! 1662: # directory). ! 1663: if ( ! 1664: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ! 1665: if test "$*" = "X"; then ! 1666: # -L didn't work. ! 1667: set X `ls -t $srcdir/configure conftest.file` ! 1668: fi ! 1669: rm -f conftest.file ! 1670: if test "$*" != "X $srcdir/configure conftest.file" \ ! 1671: && test "$*" != "X conftest.file $srcdir/configure"; then ! 1672: ! 1673: # If neither matched, then we have a broken ls. This can happen ! 1674: # if, for instance, CONFIG_SHELL is bash and it inherits a ! 1675: # broken ls alias from the environment. This has actually ! 1676: # happened. Such a system could not be considered "sane". ! 1677: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken ! 1678: alias in your environment" >&5 ! 1679: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken ! 1680: alias in your environment" >&2;} ! 1681: { (exit 1); exit 1; }; } ! 1682: fi ! 1683: ! 1684: test "$2" = conftest.file ! 1685: ) ! 1686: then ! 1687: # Ok. ! 1688: : ! 1689: else ! 1690: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! ! 1691: Check your system clock" >&5 ! 1692: echo "$as_me: error: newly created file is older than distributed files! ! 1693: Check your system clock" >&2;} ! 1694: { (exit 1); exit 1; }; } ! 1695: fi ! 1696: echo "$as_me:$LINENO: result: yes" >&5 ! 1697: echo "${ECHO_T}yes" >&6 ! 1698: test "$program_prefix" != NONE && ! 1699: program_transform_name="s,^,$program_prefix,;$program_transform_name" ! 1700: # Use a double $ so make ignores it. ! 1701: test "$program_suffix" != NONE && ! 1702: program_transform_name="s,\$,$program_suffix,;$program_transform_name" ! 1703: # Double any \ or $. echo might interpret backslashes. ! 1704: # By default was `s,x,x', remove it if useless. ! 1705: cat <<\_ACEOF >conftest.sed ! 1706: s/[\\$]/&&/g;s/;s,x,x,$// ! 1707: _ACEOF ! 1708: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` ! 1709: rm conftest.sed ! 1710: ! 1711: ! 1712: # expand $ac_aux_dir to an absolute path ! 1713: am_aux_dir=`cd $ac_aux_dir && pwd` ! 1714: ! 1715: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ! 1716: # Use eval to expand $SHELL ! 1717: if eval "$MISSING --run true"; then ! 1718: am_missing_run="$MISSING --run " ! 1719: else ! 1720: am_missing_run= ! 1721: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 ! 1722: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} ! 1723: fi ! 1724: ! 1725: for ac_prog in gawk mawk nawk awk ! 1726: do ! 1727: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 1728: set dummy $ac_prog; ac_word=$2 ! 1729: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1730: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1731: if test "${ac_cv_prog_AWK+set}" = set; then ! 1732: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1733: else ! 1734: if test -n "$AWK"; then ! 1735: ac_cv_prog_AWK="$AWK" # Let the user override the test. ! 1736: else ! 1737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1738: for as_dir in $PATH ! 1739: do ! 1740: IFS=$as_save_IFS ! 1741: test -z "$as_dir" && as_dir=. ! 1742: for ac_exec_ext in '' $ac_executable_extensions; do ! 1743: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1744: ac_cv_prog_AWK="$ac_prog" ! 1745: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1746: break 2 ! 1747: fi ! 1748: done ! 1749: done ! 1750: ! 1751: fi ! 1752: fi ! 1753: AWK=$ac_cv_prog_AWK ! 1754: if test -n "$AWK"; then ! 1755: echo "$as_me:$LINENO: result: $AWK" >&5 ! 1756: echo "${ECHO_T}$AWK" >&6 ! 1757: else ! 1758: echo "$as_me:$LINENO: result: no" >&5 ! 1759: echo "${ECHO_T}no" >&6 ! 1760: fi ! 1761: ! 1762: test -n "$AWK" && break ! 1763: done ! 1764: ! 1765: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ! 1766: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 ! 1767: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` ! 1768: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then ! 1769: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1770: else ! 1771: cat >conftest.make <<\_ACEOF ! 1772: all: ! 1773: @echo 'ac_maketemp="$(MAKE)"' ! 1774: _ACEOF ! 1775: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 1776: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` ! 1777: if test -n "$ac_maketemp"; then ! 1778: eval ac_cv_prog_make_${ac_make}_set=yes ! 1779: else ! 1780: eval ac_cv_prog_make_${ac_make}_set=no ! 1781: fi ! 1782: rm -f conftest.make ! 1783: fi ! 1784: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ! 1785: echo "$as_me:$LINENO: result: yes" >&5 ! 1786: echo "${ECHO_T}yes" >&6 ! 1787: SET_MAKE= ! 1788: else ! 1789: echo "$as_me:$LINENO: result: no" >&5 ! 1790: echo "${ECHO_T}no" >&6 ! 1791: SET_MAKE="MAKE=${MAKE-make}" ! 1792: fi ! 1793: ! 1794: # test to see if srcdir already configured ! 1795: if test "`cd $srcdir && pwd`" != "`pwd`" && ! 1796: test -f $srcdir/config.status; then ! 1797: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 ! 1798: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} ! 1799: { (exit 1); exit 1; }; } ! 1800: fi ! 1801: ! 1802: # test whether we have cygpath ! 1803: if test -z "$CYGPATH_W"; then ! 1804: if (cygpath --version) >/dev/null 2>/dev/null; then ! 1805: CYGPATH_W='cygpath -w' ! 1806: else ! 1807: CYGPATH_W=echo ! 1808: fi ! 1809: fi ! 1810: ! 1811: ! 1812: # Define the identity of the package. ! 1813: PACKAGE=tme ! 1814: VERSION=0.0 ! 1815: ! 1816: ! 1817: cat >>confdefs.h <<_ACEOF ! 1818: #define PACKAGE "$PACKAGE" ! 1819: _ACEOF ! 1820: ! 1821: ! 1822: cat >>confdefs.h <<_ACEOF ! 1823: #define VERSION "$VERSION" ! 1824: _ACEOF ! 1825: ! 1826: # Some tools Automake needs. ! 1827: ! 1828: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} ! 1829: ! 1830: ! 1831: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} ! 1832: ! 1833: ! 1834: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} ! 1835: ! 1836: ! 1837: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} ! 1838: ! 1839: ! 1840: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} ! 1841: ! 1842: ! 1843: AMTAR=${AMTAR-"${am_missing_run}tar"} ! 1844: ! 1845: install_sh=${install_sh-"$am_aux_dir/install-sh"} ! 1846: ! 1847: # Installed binaries are usually stripped using `strip' when the user ! 1848: # run `make install-strip'. However `strip' might not be the right ! 1849: # tool to use in cross-compilation environments, therefore Automake ! 1850: # will honor the `STRIP' environment variable to overrule this program. ! 1851: if test "$cross_compiling" != no; then ! 1852: if test -n "$ac_tool_prefix"; then ! 1853: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ! 1854: set dummy ${ac_tool_prefix}strip; ac_word=$2 ! 1855: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1856: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1857: if test "${ac_cv_prog_STRIP+set}" = set; then ! 1858: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1859: else ! 1860: if test -n "$STRIP"; then ! 1861: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ! 1862: else ! 1863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1864: for as_dir in $PATH ! 1865: do ! 1866: IFS=$as_save_IFS ! 1867: test -z "$as_dir" && as_dir=. ! 1868: for ac_exec_ext in '' $ac_executable_extensions; do ! 1869: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1870: ac_cv_prog_STRIP="${ac_tool_prefix}strip" ! 1871: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1872: break 2 ! 1873: fi ! 1874: done ! 1875: done ! 1876: ! 1877: fi ! 1878: fi ! 1879: STRIP=$ac_cv_prog_STRIP ! 1880: if test -n "$STRIP"; then ! 1881: echo "$as_me:$LINENO: result: $STRIP" >&5 ! 1882: echo "${ECHO_T}$STRIP" >&6 ! 1883: else ! 1884: echo "$as_me:$LINENO: result: no" >&5 ! 1885: echo "${ECHO_T}no" >&6 ! 1886: fi ! 1887: ! 1888: fi ! 1889: if test -z "$ac_cv_prog_STRIP"; then ! 1890: ac_ct_STRIP=$STRIP ! 1891: # Extract the first word of "strip", so it can be a program name with args. ! 1892: set dummy strip; ac_word=$2 ! 1893: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1894: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1895: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ! 1896: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1897: else ! 1898: if test -n "$ac_ct_STRIP"; then ! 1899: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ! 1900: else ! 1901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1902: for as_dir in $PATH ! 1903: do ! 1904: IFS=$as_save_IFS ! 1905: test -z "$as_dir" && as_dir=. ! 1906: for ac_exec_ext in '' $ac_executable_extensions; do ! 1907: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1908: ac_cv_prog_ac_ct_STRIP="strip" ! 1909: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1910: break 2 ! 1911: fi ! 1912: done ! 1913: done ! 1914: ! 1915: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" ! 1916: fi ! 1917: fi ! 1918: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ! 1919: if test -n "$ac_ct_STRIP"; then ! 1920: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ! 1921: echo "${ECHO_T}$ac_ct_STRIP" >&6 ! 1922: else ! 1923: echo "$as_me:$LINENO: result: no" >&5 ! 1924: echo "${ECHO_T}no" >&6 ! 1925: fi ! 1926: ! 1927: STRIP=$ac_ct_STRIP ! 1928: else ! 1929: STRIP="$ac_cv_prog_STRIP" ! 1930: fi ! 1931: ! 1932: fi ! 1933: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" ! 1934: ! 1935: # We need awk for the "check" target. The system "awk" is bad on ! 1936: # some platforms. ! 1937: ! 1938: ! 1939: ! 1940: ! 1941: ac_config_headers="$ac_config_headers config.h" ! 1942: ! 1943: ! 1944: ac_ext=c ! 1945: ac_cpp='$CPP $CPPFLAGS' ! 1946: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1947: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1948: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1949: if test -n "$ac_tool_prefix"; then ! 1950: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! 1951: set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! 1952: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1953: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1954: if test "${ac_cv_prog_CC+set}" = set; then ! 1955: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1956: else ! 1957: if test -n "$CC"; then ! 1958: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1959: else ! 1960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1961: for as_dir in $PATH ! 1962: do ! 1963: IFS=$as_save_IFS ! 1964: test -z "$as_dir" && as_dir=. ! 1965: for ac_exec_ext in '' $ac_executable_extensions; do ! 1966: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1967: ac_cv_prog_CC="${ac_tool_prefix}gcc" ! 1968: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1969: break 2 ! 1970: fi ! 1971: done ! 1972: done ! 1973: ! 1974: fi ! 1975: fi ! 1976: CC=$ac_cv_prog_CC ! 1977: if test -n "$CC"; then ! 1978: echo "$as_me:$LINENO: result: $CC" >&5 ! 1979: echo "${ECHO_T}$CC" >&6 ! 1980: else ! 1981: echo "$as_me:$LINENO: result: no" >&5 ! 1982: echo "${ECHO_T}no" >&6 ! 1983: fi ! 1984: ! 1985: fi ! 1986: if test -z "$ac_cv_prog_CC"; then ! 1987: ac_ct_CC=$CC ! 1988: # Extract the first word of "gcc", so it can be a program name with args. ! 1989: set dummy gcc; ac_word=$2 ! 1990: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1991: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1992: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 1993: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1994: else ! 1995: if test -n "$ac_ct_CC"; then ! 1996: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 1997: else ! 1998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1999: for as_dir in $PATH ! 2000: do ! 2001: IFS=$as_save_IFS ! 2002: test -z "$as_dir" && as_dir=. ! 2003: for ac_exec_ext in '' $ac_executable_extensions; do ! 2004: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2005: ac_cv_prog_ac_ct_CC="gcc" ! 2006: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2007: break 2 ! 2008: fi ! 2009: done ! 2010: done ! 2011: ! 2012: fi ! 2013: fi ! 2014: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 2015: if test -n "$ac_ct_CC"; then ! 2016: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 2017: echo "${ECHO_T}$ac_ct_CC" >&6 ! 2018: else ! 2019: echo "$as_me:$LINENO: result: no" >&5 ! 2020: echo "${ECHO_T}no" >&6 ! 2021: fi ! 2022: ! 2023: CC=$ac_ct_CC ! 2024: else ! 2025: CC="$ac_cv_prog_CC" ! 2026: fi ! 2027: ! 2028: if test -z "$CC"; then ! 2029: if test -n "$ac_tool_prefix"; then ! 2030: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! 2031: set dummy ${ac_tool_prefix}cc; ac_word=$2 ! 2032: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2033: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2034: if test "${ac_cv_prog_CC+set}" = set; then ! 2035: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2036: else ! 2037: if test -n "$CC"; then ! 2038: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2039: else ! 2040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2041: for as_dir in $PATH ! 2042: do ! 2043: IFS=$as_save_IFS ! 2044: test -z "$as_dir" && as_dir=. ! 2045: for ac_exec_ext in '' $ac_executable_extensions; do ! 2046: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2047: ac_cv_prog_CC="${ac_tool_prefix}cc" ! 2048: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2049: break 2 ! 2050: fi ! 2051: done ! 2052: done ! 2053: ! 2054: fi ! 2055: fi ! 2056: CC=$ac_cv_prog_CC ! 2057: if test -n "$CC"; then ! 2058: echo "$as_me:$LINENO: result: $CC" >&5 ! 2059: echo "${ECHO_T}$CC" >&6 ! 2060: else ! 2061: echo "$as_me:$LINENO: result: no" >&5 ! 2062: echo "${ECHO_T}no" >&6 ! 2063: fi ! 2064: ! 2065: fi ! 2066: if test -z "$ac_cv_prog_CC"; then ! 2067: ac_ct_CC=$CC ! 2068: # Extract the first word of "cc", so it can be a program name with args. ! 2069: set dummy cc; ac_word=$2 ! 2070: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2071: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2072: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 2073: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2074: else ! 2075: if test -n "$ac_ct_CC"; then ! 2076: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 2077: else ! 2078: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2079: for as_dir in $PATH ! 2080: do ! 2081: IFS=$as_save_IFS ! 2082: test -z "$as_dir" && as_dir=. ! 2083: for ac_exec_ext in '' $ac_executable_extensions; do ! 2084: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2085: ac_cv_prog_ac_ct_CC="cc" ! 2086: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2087: break 2 ! 2088: fi ! 2089: done ! 2090: done ! 2091: ! 2092: fi ! 2093: fi ! 2094: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 2095: if test -n "$ac_ct_CC"; then ! 2096: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 2097: echo "${ECHO_T}$ac_ct_CC" >&6 ! 2098: else ! 2099: echo "$as_me:$LINENO: result: no" >&5 ! 2100: echo "${ECHO_T}no" >&6 ! 2101: fi ! 2102: ! 2103: CC=$ac_ct_CC ! 2104: else ! 2105: CC="$ac_cv_prog_CC" ! 2106: fi ! 2107: ! 2108: fi ! 2109: if test -z "$CC"; then ! 2110: # Extract the first word of "cc", so it can be a program name with args. ! 2111: set dummy cc; ac_word=$2 ! 2112: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2113: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2114: if test "${ac_cv_prog_CC+set}" = set; then ! 2115: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2116: else ! 2117: if test -n "$CC"; then ! 2118: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2119: else ! 2120: ac_prog_rejected=no ! 2121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2122: for as_dir in $PATH ! 2123: do ! 2124: IFS=$as_save_IFS ! 2125: test -z "$as_dir" && as_dir=. ! 2126: for ac_exec_ext in '' $ac_executable_extensions; do ! 2127: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2128: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! 2129: ac_prog_rejected=yes ! 2130: continue ! 2131: fi ! 2132: ac_cv_prog_CC="cc" ! 2133: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2134: break 2 ! 2135: fi ! 2136: done ! 2137: done ! 2138: ! 2139: if test $ac_prog_rejected = yes; then ! 2140: # We found a bogon in the path, so make sure we never use it. ! 2141: set dummy $ac_cv_prog_CC ! 2142: shift ! 2143: if test $# != 0; then ! 2144: # We chose a different compiler from the bogus one. ! 2145: # However, it has the same basename, so the bogon will be chosen ! 2146: # first if we set CC to just the basename; use the full file name. ! 2147: shift ! 2148: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! 2149: fi ! 2150: fi ! 2151: fi ! 2152: fi ! 2153: CC=$ac_cv_prog_CC ! 2154: if test -n "$CC"; then ! 2155: echo "$as_me:$LINENO: result: $CC" >&5 ! 2156: echo "${ECHO_T}$CC" >&6 ! 2157: else ! 2158: echo "$as_me:$LINENO: result: no" >&5 ! 2159: echo "${ECHO_T}no" >&6 ! 2160: fi ! 2161: ! 2162: fi ! 2163: if test -z "$CC"; then ! 2164: if test -n "$ac_tool_prefix"; then ! 2165: for ac_prog in cl ! 2166: do ! 2167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 2168: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 2169: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2170: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2171: if test "${ac_cv_prog_CC+set}" = set; then ! 2172: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2173: else ! 2174: if test -n "$CC"; then ! 2175: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2176: else ! 2177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2178: for as_dir in $PATH ! 2179: do ! 2180: IFS=$as_save_IFS ! 2181: test -z "$as_dir" && as_dir=. ! 2182: for ac_exec_ext in '' $ac_executable_extensions; do ! 2183: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2184: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! 2185: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2186: break 2 ! 2187: fi ! 2188: done ! 2189: done ! 2190: ! 2191: fi ! 2192: fi ! 2193: CC=$ac_cv_prog_CC ! 2194: if test -n "$CC"; then ! 2195: echo "$as_me:$LINENO: result: $CC" >&5 ! 2196: echo "${ECHO_T}$CC" >&6 ! 2197: else ! 2198: echo "$as_me:$LINENO: result: no" >&5 ! 2199: echo "${ECHO_T}no" >&6 ! 2200: fi ! 2201: ! 2202: test -n "$CC" && break ! 2203: done ! 2204: fi ! 2205: if test -z "$CC"; then ! 2206: ac_ct_CC=$CC ! 2207: for ac_prog in cl ! 2208: do ! 2209: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 2210: set dummy $ac_prog; ac_word=$2 ! 2211: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2212: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2213: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 2214: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2215: else ! 2216: if test -n "$ac_ct_CC"; then ! 2217: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 2218: else ! 2219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2220: for as_dir in $PATH ! 2221: do ! 2222: IFS=$as_save_IFS ! 2223: test -z "$as_dir" && as_dir=. ! 2224: for ac_exec_ext in '' $ac_executable_extensions; do ! 2225: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2226: ac_cv_prog_ac_ct_CC="$ac_prog" ! 2227: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2228: break 2 ! 2229: fi ! 2230: done ! 2231: done ! 2232: ! 2233: fi ! 2234: fi ! 2235: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 2236: if test -n "$ac_ct_CC"; then ! 2237: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 2238: echo "${ECHO_T}$ac_ct_CC" >&6 ! 2239: else ! 2240: echo "$as_me:$LINENO: result: no" >&5 ! 2241: echo "${ECHO_T}no" >&6 ! 2242: fi ! 2243: ! 2244: test -n "$ac_ct_CC" && break ! 2245: done ! 2246: ! 2247: CC=$ac_ct_CC ! 2248: fi ! 2249: ! 2250: fi ! 2251: ! 2252: ! 2253: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ! 2254: See \`config.log' for more details." >&5 ! 2255: echo "$as_me: error: no acceptable C compiler found in \$PATH ! 2256: See \`config.log' for more details." >&2;} ! 2257: { (exit 1); exit 1; }; } ! 2258: ! 2259: # Provide some information about the compiler. ! 2260: echo "$as_me:$LINENO:" \ ! 2261: "checking for C compiler version" >&5 ! 2262: ac_compiler=`set X $ac_compile; echo $2` ! 2263: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 2264: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 2265: ac_status=$? ! 2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2267: (exit $ac_status); } ! 2268: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 2269: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 2270: ac_status=$? ! 2271: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2272: (exit $ac_status); } ! 2273: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 2274: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 2275: ac_status=$? ! 2276: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2277: (exit $ac_status); } ! 2278: ! 2279: cat >conftest.$ac_ext <<_ACEOF ! 2280: #line $LINENO "configure" ! 2281: /* confdefs.h. */ ! 2282: _ACEOF ! 2283: cat confdefs.h >>conftest.$ac_ext ! 2284: cat >>conftest.$ac_ext <<_ACEOF ! 2285: /* end confdefs.h. */ ! 2286: ! 2287: int ! 2288: main () ! 2289: { ! 2290: ! 2291: ; ! 2292: return 0; ! 2293: } ! 2294: _ACEOF ! 2295: ac_clean_files_save=$ac_clean_files ! 2296: ac_clean_files="$ac_clean_files a.out a.exe b.out" ! 2297: # Try to create an executable without -o first, disregard a.out. ! 2298: # It will help us diagnose broken compilers, and finding out an intuition ! 2299: # of exeext. ! 2300: echo "$as_me:$LINENO: checking for C compiler default output" >&5 ! 2301: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ! 2302: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ! 2303: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 ! 2304: (eval $ac_link_default) 2>&5 ! 2305: ac_status=$? ! 2306: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2307: (exit $ac_status); }; then ! 2308: # Find the output, starting from the most likely. This scheme is ! 2309: # not robust to junk in `.', hence go to wildcards (a.*) only as a last ! 2310: # resort. ! 2311: ! 2312: # Be careful to initialize this variable, since it used to be cached. ! 2313: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ! 2314: ac_cv_exeext= ! 2315: # b.out is created by i960 compilers. ! 2316: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out ! 2317: do ! 2318: test -f "$ac_file" || continue ! 2319: case $ac_file in ! 2320: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ! 2321: ;; ! 2322: conftest.$ac_ext ) ! 2323: # This is the source file. ! 2324: ;; ! 2325: [ab].out ) ! 2326: # We found the default executable, but exeext='' is most ! 2327: # certainly right. ! 2328: break;; ! 2329: *.* ) ! 2330: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 2331: # FIXME: I believe we export ac_cv_exeext for Libtool, ! 2332: # but it would be cool to find out if it's true. Does anybody ! 2333: # maintain Libtool? --akim. ! 2334: export ac_cv_exeext ! 2335: break;; ! 2336: * ) ! 2337: break;; ! 2338: esac ! 2339: done ! 2340: else ! 2341: echo "$as_me: failed program was:" >&5 ! 2342: sed 's/^/| /' conftest.$ac_ext >&5 ! 2343: ! 2344: { { echo "$as_me:$LINENO: error: C compiler cannot create executables ! 2345: See \`config.log' for more details." >&5 ! 2346: echo "$as_me: error: C compiler cannot create executables ! 2347: See \`config.log' for more details." >&2;} ! 2348: { (exit 77); exit 77; }; } ! 2349: fi ! 2350: ! 2351: ac_exeext=$ac_cv_exeext ! 2352: echo "$as_me:$LINENO: result: $ac_file" >&5 ! 2353: echo "${ECHO_T}$ac_file" >&6 ! 2354: ! 2355: # Check the compiler produces executables we can run. If not, either ! 2356: # the compiler is broken, or we cross compile. ! 2357: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ! 2358: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 ! 2359: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ! 2360: # If not cross compiling, check that we can run a simple program. ! 2361: if test "$cross_compiling" != yes; then ! 2362: if { ac_try='./$ac_file' ! 2363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2364: (eval $ac_try) 2>&5 ! 2365: ac_status=$? ! 2366: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2367: (exit $ac_status); }; }; then ! 2368: cross_compiling=no ! 2369: else ! 2370: if test "$cross_compiling" = maybe; then ! 2371: cross_compiling=yes ! 2372: else ! 2373: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ! 2374: If you meant to cross compile, use \`--host'. ! 2375: See \`config.log' for more details." >&5 ! 2376: echo "$as_me: error: cannot run C compiled programs. ! 2377: If you meant to cross compile, use \`--host'. ! 2378: See \`config.log' for more details." >&2;} ! 2379: { (exit 1); exit 1; }; } ! 2380: fi ! 2381: fi ! 2382: fi ! 2383: echo "$as_me:$LINENO: result: yes" >&5 ! 2384: echo "${ECHO_T}yes" >&6 ! 2385: ! 2386: rm -f a.out a.exe conftest$ac_cv_exeext b.out ! 2387: ac_clean_files=$ac_clean_files_save ! 2388: # Check the compiler produces executables we can run. If not, either ! 2389: # the compiler is broken, or we cross compile. ! 2390: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ! 2391: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 ! 2392: echo "$as_me:$LINENO: result: $cross_compiling" >&5 ! 2393: echo "${ECHO_T}$cross_compiling" >&6 ! 2394: ! 2395: echo "$as_me:$LINENO: checking for suffix of executables" >&5 ! 2396: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 ! 2397: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2398: (eval $ac_link) 2>&5 ! 2399: ac_status=$? ! 2400: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2401: (exit $ac_status); }; then ! 2402: # If both `conftest.exe' and `conftest' are `present' (well, observable) ! 2403: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ! 2404: # work properly (i.e., refer to `conftest.exe'), while it won't with ! 2405: # `rm'. ! 2406: for ac_file in conftest.exe conftest conftest.*; do ! 2407: test -f "$ac_file" || continue ! 2408: case $ac_file in ! 2409: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; ! 2410: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 2411: export ac_cv_exeext ! 2412: break;; ! 2413: * ) break;; ! 2414: esac ! 2415: done ! 2416: else ! 2417: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link ! 2418: See \`config.log' for more details." >&5 ! 2419: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link ! 2420: See \`config.log' for more details." >&2;} ! 2421: { (exit 1); exit 1; }; } ! 2422: fi ! 2423: ! 2424: rm -f conftest$ac_cv_exeext ! 2425: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ! 2426: echo "${ECHO_T}$ac_cv_exeext" >&6 ! 2427: ! 2428: rm -f conftest.$ac_ext ! 2429: EXEEXT=$ac_cv_exeext ! 2430: ac_exeext=$EXEEXT ! 2431: echo "$as_me:$LINENO: checking for suffix of object files" >&5 ! 2432: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 ! 2433: if test "${ac_cv_objext+set}" = set; then ! 2434: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2435: else ! 2436: cat >conftest.$ac_ext <<_ACEOF ! 2437: #line $LINENO "configure" ! 2438: /* confdefs.h. */ ! 2439: _ACEOF ! 2440: cat confdefs.h >>conftest.$ac_ext ! 2441: cat >>conftest.$ac_ext <<_ACEOF ! 2442: /* end confdefs.h. */ ! 2443: ! 2444: int ! 2445: main () ! 2446: { ! 2447: ! 2448: ; ! 2449: return 0; ! 2450: } ! 2451: _ACEOF ! 2452: rm -f conftest.o conftest.obj ! 2453: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2454: (eval $ac_compile) 2>&5 ! 2455: ac_status=$? ! 2456: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2457: (exit $ac_status); }; then ! 2458: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do ! 2459: case $ac_file in ! 2460: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; ! 2461: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ! 2462: break;; ! 2463: esac ! 2464: done ! 2465: else ! 2466: echo "$as_me: failed program was:" >&5 ! 2467: sed 's/^/| /' conftest.$ac_ext >&5 ! 2468: ! 2469: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile ! 2470: See \`config.log' for more details." >&5 ! 2471: echo "$as_me: error: cannot compute suffix of object files: cannot compile ! 2472: See \`config.log' for more details." >&2;} ! 2473: { (exit 1); exit 1; }; } ! 2474: fi ! 2475: ! 2476: rm -f conftest.$ac_cv_objext conftest.$ac_ext ! 2477: fi ! 2478: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 ! 2479: echo "${ECHO_T}$ac_cv_objext" >&6 ! 2480: OBJEXT=$ac_cv_objext ! 2481: ac_objext=$OBJEXT ! 2482: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ! 2483: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 ! 2484: if test "${ac_cv_c_compiler_gnu+set}" = set; then ! 2485: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2486: else ! 2487: cat >conftest.$ac_ext <<_ACEOF ! 2488: #line $LINENO "configure" ! 2489: /* confdefs.h. */ ! 2490: _ACEOF ! 2491: cat confdefs.h >>conftest.$ac_ext ! 2492: cat >>conftest.$ac_ext <<_ACEOF ! 2493: /* end confdefs.h. */ ! 2494: ! 2495: int ! 2496: main () ! 2497: { ! 2498: #ifndef __GNUC__ ! 2499: choke me ! 2500: #endif ! 2501: ! 2502: ; ! 2503: return 0; ! 2504: } ! 2505: _ACEOF ! 2506: rm -f conftest.$ac_objext ! 2507: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2508: (eval $ac_compile) 2>&5 ! 2509: ac_status=$? ! 2510: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2511: (exit $ac_status); } && ! 2512: { ac_try='test -s conftest.$ac_objext' ! 2513: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2514: (eval $ac_try) 2>&5 ! 2515: ac_status=$? ! 2516: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2517: (exit $ac_status); }; }; then ! 2518: ac_compiler_gnu=yes ! 2519: else ! 2520: echo "$as_me: failed program was:" >&5 ! 2521: sed 's/^/| /' conftest.$ac_ext >&5 ! 2522: ! 2523: ac_compiler_gnu=no ! 2524: fi ! 2525: rm -f conftest.$ac_objext conftest.$ac_ext ! 2526: ac_cv_c_compiler_gnu=$ac_compiler_gnu ! 2527: ! 2528: fi ! 2529: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ! 2530: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 ! 2531: GCC=`test $ac_compiler_gnu = yes && echo yes` ! 2532: ac_test_CFLAGS=${CFLAGS+set} ! 2533: ac_save_CFLAGS=$CFLAGS ! 2534: CFLAGS="-g" ! 2535: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ! 2536: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 ! 2537: if test "${ac_cv_prog_cc_g+set}" = set; then ! 2538: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2539: else ! 2540: cat >conftest.$ac_ext <<_ACEOF ! 2541: #line $LINENO "configure" ! 2542: /* confdefs.h. */ ! 2543: _ACEOF ! 2544: cat confdefs.h >>conftest.$ac_ext ! 2545: cat >>conftest.$ac_ext <<_ACEOF ! 2546: /* end confdefs.h. */ ! 2547: ! 2548: int ! 2549: main () ! 2550: { ! 2551: ! 2552: ; ! 2553: return 0; ! 2554: } ! 2555: _ACEOF ! 2556: rm -f conftest.$ac_objext ! 2557: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2558: (eval $ac_compile) 2>&5 ! 2559: ac_status=$? ! 2560: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2561: (exit $ac_status); } && ! 2562: { ac_try='test -s conftest.$ac_objext' ! 2563: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2564: (eval $ac_try) 2>&5 ! 2565: ac_status=$? ! 2566: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2567: (exit $ac_status); }; }; then ! 2568: ac_cv_prog_cc_g=yes ! 2569: else ! 2570: echo "$as_me: failed program was:" >&5 ! 2571: sed 's/^/| /' conftest.$ac_ext >&5 ! 2572: ! 2573: ac_cv_prog_cc_g=no ! 2574: fi ! 2575: rm -f conftest.$ac_objext conftest.$ac_ext ! 2576: fi ! 2577: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ! 2578: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 ! 2579: if test "$ac_test_CFLAGS" = set; then ! 2580: CFLAGS=$ac_save_CFLAGS ! 2581: elif test $ac_cv_prog_cc_g = yes; then ! 2582: if test "$GCC" = yes; then ! 2583: CFLAGS="-g -O2" ! 2584: else ! 2585: CFLAGS="-g" ! 2586: fi ! 2587: else ! 2588: if test "$GCC" = yes; then ! 2589: CFLAGS="-O2" ! 2590: else ! 2591: CFLAGS= ! 2592: fi ! 2593: fi ! 2594: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 ! 2595: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 ! 2596: if test "${ac_cv_prog_cc_stdc+set}" = set; then ! 2597: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2598: else ! 2599: ac_cv_prog_cc_stdc=no ! 2600: ac_save_CC=$CC ! 2601: cat >conftest.$ac_ext <<_ACEOF ! 2602: #line $LINENO "configure" ! 2603: /* confdefs.h. */ ! 2604: _ACEOF ! 2605: cat confdefs.h >>conftest.$ac_ext ! 2606: cat >>conftest.$ac_ext <<_ACEOF ! 2607: /* end confdefs.h. */ ! 2608: #include <stdarg.h> ! 2609: #include <stdio.h> ! 2610: #include <sys/types.h> ! 2611: #include <sys/stat.h> ! 2612: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ! 2613: struct buf { int x; }; ! 2614: FILE * (*rcsopen) (struct buf *, struct stat *, int); ! 2615: static char *e (p, i) ! 2616: char **p; ! 2617: int i; ! 2618: { ! 2619: return p[i]; ! 2620: } ! 2621: static char *f (char * (*g) (char **, int), char **p, ...) ! 2622: { ! 2623: char *s; ! 2624: va_list v; ! 2625: va_start (v,p); ! 2626: s = g (p, va_arg (v,int)); ! 2627: va_end (v); ! 2628: return s; ! 2629: } ! 2630: int test (int i, double x); ! 2631: struct s1 {int (*f) (int a);}; ! 2632: struct s2 {int (*f) (double a);}; ! 2633: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! 2634: int argc; ! 2635: char **argv; ! 2636: int ! 2637: main () ! 2638: { ! 2639: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! 2640: ; ! 2641: return 0; ! 2642: } ! 2643: _ACEOF ! 2644: # Don't try gcc -ansi; that turns off useful extensions and ! 2645: # breaks some systems' header files. ! 2646: # AIX -qlanglvl=ansi ! 2647: # Ultrix and OSF/1 -std1 ! 2648: # HP-UX 10.20 and later -Ae ! 2649: # HP-UX older versions -Aa -D_HPUX_SOURCE ! 2650: # SVR4 -Xc -D__EXTENSIONS__ ! 2651: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! 2652: do ! 2653: CC="$ac_save_CC $ac_arg" ! 2654: rm -f conftest.$ac_objext ! 2655: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2656: (eval $ac_compile) 2>&5 ! 2657: ac_status=$? ! 2658: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2659: (exit $ac_status); } && ! 2660: { ac_try='test -s conftest.$ac_objext' ! 2661: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2662: (eval $ac_try) 2>&5 ! 2663: ac_status=$? ! 2664: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2665: (exit $ac_status); }; }; then ! 2666: ac_cv_prog_cc_stdc=$ac_arg ! 2667: break ! 2668: else ! 2669: echo "$as_me: failed program was:" >&5 ! 2670: sed 's/^/| /' conftest.$ac_ext >&5 ! 2671: ! 2672: fi ! 2673: rm -f conftest.$ac_objext ! 2674: done ! 2675: rm -f conftest.$ac_ext conftest.$ac_objext ! 2676: CC=$ac_save_CC ! 2677: ! 2678: fi ! 2679: ! 2680: case "x$ac_cv_prog_cc_stdc" in ! 2681: x|xno) ! 2682: echo "$as_me:$LINENO: result: none needed" >&5 ! 2683: echo "${ECHO_T}none needed" >&6 ;; ! 2684: *) ! 2685: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 ! 2686: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 ! 2687: CC="$CC $ac_cv_prog_cc_stdc" ;; ! 2688: esac ! 2689: ! 2690: # Some people use a C++ compiler to compile C. Since we use `exit', ! 2691: # in C++ we need to declare it. In case someone uses the same compiler ! 2692: # for both compiling C and C++ we need to have the C++ compiler decide ! 2693: # the declaration of exit, since it's the most demanding environment. ! 2694: cat >conftest.$ac_ext <<_ACEOF ! 2695: #ifndef __cplusplus ! 2696: choke me ! 2697: #endif ! 2698: _ACEOF ! 2699: rm -f conftest.$ac_objext ! 2700: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2701: (eval $ac_compile) 2>&5 ! 2702: ac_status=$? ! 2703: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2704: (exit $ac_status); } && ! 2705: { ac_try='test -s conftest.$ac_objext' ! 2706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2707: (eval $ac_try) 2>&5 ! 2708: ac_status=$? ! 2709: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2710: (exit $ac_status); }; }; then ! 2711: for ac_declaration in \ ! 2712: ''\ ! 2713: '#include <stdlib.h>' \ ! 2714: 'extern "C" void std::exit (int) throw (); using std::exit;' \ ! 2715: 'extern "C" void std::exit (int); using std::exit;' \ ! 2716: 'extern "C" void exit (int) throw ();' \ ! 2717: 'extern "C" void exit (int);' \ ! 2718: 'void exit (int);' ! 2719: do ! 2720: cat >conftest.$ac_ext <<_ACEOF ! 2721: #line $LINENO "configure" ! 2722: /* confdefs.h. */ ! 2723: _ACEOF ! 2724: cat confdefs.h >>conftest.$ac_ext ! 2725: cat >>conftest.$ac_ext <<_ACEOF ! 2726: /* end confdefs.h. */ ! 2727: #include <stdlib.h> ! 2728: $ac_declaration ! 2729: int ! 2730: main () ! 2731: { ! 2732: exit (42); ! 2733: ; ! 2734: return 0; ! 2735: } ! 2736: _ACEOF ! 2737: rm -f conftest.$ac_objext ! 2738: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2739: (eval $ac_compile) 2>&5 ! 2740: ac_status=$? ! 2741: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2742: (exit $ac_status); } && ! 2743: { ac_try='test -s conftest.$ac_objext' ! 2744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2745: (eval $ac_try) 2>&5 ! 2746: ac_status=$? ! 2747: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2748: (exit $ac_status); }; }; then ! 2749: : ! 2750: else ! 2751: echo "$as_me: failed program was:" >&5 ! 2752: sed 's/^/| /' conftest.$ac_ext >&5 ! 2753: ! 2754: continue ! 2755: fi ! 2756: rm -f conftest.$ac_objext conftest.$ac_ext ! 2757: cat >conftest.$ac_ext <<_ACEOF ! 2758: #line $LINENO "configure" ! 2759: /* confdefs.h. */ ! 2760: _ACEOF ! 2761: cat confdefs.h >>conftest.$ac_ext ! 2762: cat >>conftest.$ac_ext <<_ACEOF ! 2763: /* end confdefs.h. */ ! 2764: $ac_declaration ! 2765: int ! 2766: main () ! 2767: { ! 2768: exit (42); ! 2769: ; ! 2770: return 0; ! 2771: } ! 2772: _ACEOF ! 2773: rm -f conftest.$ac_objext ! 2774: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2775: (eval $ac_compile) 2>&5 ! 2776: ac_status=$? ! 2777: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2778: (exit $ac_status); } && ! 2779: { ac_try='test -s conftest.$ac_objext' ! 2780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2781: (eval $ac_try) 2>&5 ! 2782: ac_status=$? ! 2783: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2784: (exit $ac_status); }; }; then ! 2785: break ! 2786: else ! 2787: echo "$as_me: failed program was:" >&5 ! 2788: sed 's/^/| /' conftest.$ac_ext >&5 ! 2789: ! 2790: fi ! 2791: rm -f conftest.$ac_objext conftest.$ac_ext ! 2792: done ! 2793: rm -f conftest* ! 2794: if test -n "$ac_declaration"; then ! 2795: echo '#ifdef __cplusplus' >>confdefs.h ! 2796: echo $ac_declaration >>confdefs.h ! 2797: echo '#endif' >>confdefs.h ! 2798: fi ! 2799: ! 2800: else ! 2801: echo "$as_me: failed program was:" >&5 ! 2802: sed 's/^/| /' conftest.$ac_ext >&5 ! 2803: ! 2804: fi ! 2805: rm -f conftest.$ac_objext conftest.$ac_ext ! 2806: ac_ext=c ! 2807: ac_cpp='$CPP $CPPFLAGS' ! 2808: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2809: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2810: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2811: rm -f .deps 2>/dev/null ! 2812: mkdir .deps 2>/dev/null ! 2813: if test -d .deps; then ! 2814: DEPDIR=.deps ! 2815: else ! 2816: # MS-DOS does not allow filenames that begin with a dot. ! 2817: DEPDIR=_deps ! 2818: fi ! 2819: rmdir .deps 2>/dev/null ! 2820: ! 2821: ! 2822: ac_config_commands="$ac_config_commands depfiles" ! 2823: ! 2824: ! 2825: am_make=${MAKE-make} ! 2826: cat > confinc << 'END' ! 2827: doit: ! 2828: @echo done ! 2829: END ! 2830: # If we don't find an include directive, just comment out the code. ! 2831: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ! 2832: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 ! 2833: am__include="#" ! 2834: am__quote= ! 2835: _am_result=none ! 2836: # First try GNU make style include. ! 2837: echo "include confinc" > confmf ! 2838: # We grep out `Entering directory' and `Leaving directory' ! 2839: # messages which can occur if `w' ends up in MAKEFLAGS. ! 2840: # In particular we don't look at `^make:' because GNU make might ! 2841: # be invoked under some other name (usually "gmake"), in which ! 2842: # case it prints its new name instead of `make'. ! 2843: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ! 2844: am__include=include ! 2845: am__quote= ! 2846: _am_result=GNU ! 2847: fi ! 2848: # Now try BSD make style include. ! 2849: if test "$am__include" = "#"; then ! 2850: echo '.include "confinc"' > confmf ! 2851: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ! 2852: am__include=.include ! 2853: am__quote="\"" ! 2854: _am_result=BSD ! 2855: fi ! 2856: fi ! 2857: ! 2858: ! 2859: echo "$as_me:$LINENO: result: $_am_result" >&5 ! 2860: echo "${ECHO_T}$_am_result" >&6 ! 2861: rm -f confinc confmf ! 2862: ! 2863: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. ! 2864: if test "${enable_dependency_tracking+set}" = set; then ! 2865: enableval="$enable_dependency_tracking" ! 2866: ! 2867: fi; ! 2868: if test "x$enable_dependency_tracking" != xno; then ! 2869: am_depcomp="$ac_aux_dir/depcomp" ! 2870: AMDEPBACKSLASH='\' ! 2871: fi ! 2872: ! 2873: ! 2874: if test "x$enable_dependency_tracking" != xno; then ! 2875: AMDEP_TRUE= ! 2876: AMDEP_FALSE='#' ! 2877: else ! 2878: AMDEP_TRUE='#' ! 2879: AMDEP_FALSE= ! 2880: fi ! 2881: ! 2882: ! 2883: ! 2884: ! 2885: depcc="$CC" am_compiler_list= ! 2886: ! 2887: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ! 2888: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ! 2889: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then ! 2890: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2891: else ! 2892: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ! 2893: # We make a subdir and do the tests there. Otherwise we can end up ! 2894: # making bogus files that we don't know about and never remove. For ! 2895: # instance it was reported that on HP-UX the gcc test will end up ! 2896: # making a dummy file named `D' -- because `-MD' means `put the output ! 2897: # in D'. ! 2898: mkdir conftest.dir ! 2899: # Copy depcomp to subdir because otherwise we won't find it if we're ! 2900: # using a relative directory. ! 2901: cp "$am_depcomp" conftest.dir ! 2902: cd conftest.dir ! 2903: ! 2904: am_cv_CC_dependencies_compiler_type=none ! 2905: if test "$am_compiler_list" = ""; then ! 2906: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ! 2907: fi ! 2908: for depmode in $am_compiler_list; do ! 2909: # We need to recreate these files for each test, as the compiler may ! 2910: # overwrite some of them when testing with obscure command lines. ! 2911: # This happens at least with the AIX C compiler. ! 2912: echo '#include "conftest.h"' > conftest.c ! 2913: echo 'int i;' > conftest.h ! 2914: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf ! 2915: ! 2916: case $depmode in ! 2917: nosideeffect) ! 2918: # after this tag, mechanisms are not by side-effect, so they'll ! 2919: # only be used when explicitly requested ! 2920: if test "x$enable_dependency_tracking" = xyes; then ! 2921: continue ! 2922: else ! 2923: break ! 2924: fi ! 2925: ;; ! 2926: none) break ;; ! 2927: esac ! 2928: # We check with `-c' and `-o' for the sake of the "dashmstdout" ! 2929: # mode. It turns out that the SunPro C++ compiler does not properly ! 2930: # handle `-M -o', and we need to detect this. ! 2931: if depmode=$depmode \ ! 2932: source=conftest.c object=conftest.o \ ! 2933: depfile=conftest.Po tmpdepfile=conftest.TPo \ ! 2934: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && ! 2935: grep conftest.h conftest.Po > /dev/null 2>&1 && ! 2936: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ! 2937: am_cv_CC_dependencies_compiler_type=$depmode ! 2938: break ! 2939: fi ! 2940: done ! 2941: ! 2942: cd .. ! 2943: rm -rf conftest.dir ! 2944: else ! 2945: am_cv_CC_dependencies_compiler_type=none ! 2946: fi ! 2947: ! 2948: fi ! 2949: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ! 2950: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 ! 2951: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type ! 2952: ! 2953: ! 2954: ! 2955: if ! 2956: test "x$enable_dependency_tracking" != xno \ ! 2957: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then ! 2958: am__fastdepCC_TRUE= ! 2959: am__fastdepCC_FALSE='#' ! 2960: else ! 2961: am__fastdepCC_TRUE='#' ! 2962: am__fastdepCC_FALSE= ! 2963: fi ! 2964: ! 2965: ! 2966: ac_ext=c ! 2967: ac_cpp='$CPP $CPPFLAGS' ! 2968: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2969: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2970: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2971: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ! 2972: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 ! 2973: # On Suns, sometimes $CPP names a directory. ! 2974: if test -n "$CPP" && test -d "$CPP"; then ! 2975: CPP= ! 2976: fi ! 2977: if test -z "$CPP"; then ! 2978: if test "${ac_cv_prog_CPP+set}" = set; then ! 2979: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2980: else ! 2981: # Double quotes because CPP needs to be expanded ! 2982: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ! 2983: do ! 2984: ac_preproc_ok=false ! 2985: for ac_c_preproc_warn_flag in '' yes ! 2986: do ! 2987: # Use a header file that comes with gcc, so configuring glibc ! 2988: # with a fresh cross-compiler works. ! 2989: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 2990: # <limits.h> exists even on freestanding compilers. ! 2991: # On the NeXT, cc -E runs the code through the compiler's parser, ! 2992: # not just through cpp. "Syntax error" is here to catch this case. ! 2993: cat >conftest.$ac_ext <<_ACEOF ! 2994: #line $LINENO "configure" ! 2995: /* confdefs.h. */ ! 2996: _ACEOF ! 2997: cat confdefs.h >>conftest.$ac_ext ! 2998: cat >>conftest.$ac_ext <<_ACEOF ! 2999: /* end confdefs.h. */ ! 3000: #ifdef __STDC__ ! 3001: # include <limits.h> ! 3002: #else ! 3003: # include <assert.h> ! 3004: #endif ! 3005: Syntax error ! 3006: _ACEOF ! 3007: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3008: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3009: ac_status=$? ! 3010: grep -v '^ *+' conftest.er1 >conftest.err ! 3011: rm -f conftest.er1 ! 3012: cat conftest.err >&5 ! 3013: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3014: (exit $ac_status); } >/dev/null; then ! 3015: if test -s conftest.err; then ! 3016: ac_cpp_err=$ac_c_preproc_warn_flag ! 3017: else ! 3018: ac_cpp_err= ! 3019: fi ! 3020: else ! 3021: ac_cpp_err=yes ! 3022: fi ! 3023: if test -z "$ac_cpp_err"; then ! 3024: : ! 3025: else ! 3026: echo "$as_me: failed program was:" >&5 ! 3027: sed 's/^/| /' conftest.$ac_ext >&5 ! 3028: ! 3029: # Broken: fails on valid input. ! 3030: continue ! 3031: fi ! 3032: rm -f conftest.err conftest.$ac_ext ! 3033: ! 3034: # OK, works on sane cases. Now check whether non-existent headers ! 3035: # can be detected and how. ! 3036: cat >conftest.$ac_ext <<_ACEOF ! 3037: #line $LINENO "configure" ! 3038: /* confdefs.h. */ ! 3039: _ACEOF ! 3040: cat confdefs.h >>conftest.$ac_ext ! 3041: cat >>conftest.$ac_ext <<_ACEOF ! 3042: /* end confdefs.h. */ ! 3043: #include <ac_nonexistent.h> ! 3044: _ACEOF ! 3045: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3046: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3047: ac_status=$? ! 3048: grep -v '^ *+' conftest.er1 >conftest.err ! 3049: rm -f conftest.er1 ! 3050: cat conftest.err >&5 ! 3051: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3052: (exit $ac_status); } >/dev/null; then ! 3053: if test -s conftest.err; then ! 3054: ac_cpp_err=$ac_c_preproc_warn_flag ! 3055: else ! 3056: ac_cpp_err= ! 3057: fi ! 3058: else ! 3059: ac_cpp_err=yes ! 3060: fi ! 3061: if test -z "$ac_cpp_err"; then ! 3062: # Broken: success on invalid input. ! 3063: continue ! 3064: else ! 3065: echo "$as_me: failed program was:" >&5 ! 3066: sed 's/^/| /' conftest.$ac_ext >&5 ! 3067: ! 3068: # Passes both tests. ! 3069: ac_preproc_ok=: ! 3070: break ! 3071: fi ! 3072: rm -f conftest.err conftest.$ac_ext ! 3073: ! 3074: done ! 3075: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 3076: rm -f conftest.err conftest.$ac_ext ! 3077: if $ac_preproc_ok; then ! 3078: break ! 3079: fi ! 3080: ! 3081: done ! 3082: ac_cv_prog_CPP=$CPP ! 3083: ! 3084: fi ! 3085: CPP=$ac_cv_prog_CPP ! 3086: else ! 3087: ac_cv_prog_CPP=$CPP ! 3088: fi ! 3089: echo "$as_me:$LINENO: result: $CPP" >&5 ! 3090: echo "${ECHO_T}$CPP" >&6 ! 3091: ac_preproc_ok=false ! 3092: for ac_c_preproc_warn_flag in '' yes ! 3093: do ! 3094: # Use a header file that comes with gcc, so configuring glibc ! 3095: # with a fresh cross-compiler works. ! 3096: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 3097: # <limits.h> exists even on freestanding compilers. ! 3098: # On the NeXT, cc -E runs the code through the compiler's parser, ! 3099: # not just through cpp. "Syntax error" is here to catch this case. ! 3100: cat >conftest.$ac_ext <<_ACEOF ! 3101: #line $LINENO "configure" ! 3102: /* confdefs.h. */ ! 3103: _ACEOF ! 3104: cat confdefs.h >>conftest.$ac_ext ! 3105: cat >>conftest.$ac_ext <<_ACEOF ! 3106: /* end confdefs.h. */ ! 3107: #ifdef __STDC__ ! 3108: # include <limits.h> ! 3109: #else ! 3110: # include <assert.h> ! 3111: #endif ! 3112: Syntax error ! 3113: _ACEOF ! 3114: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3115: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3116: ac_status=$? ! 3117: grep -v '^ *+' conftest.er1 >conftest.err ! 3118: rm -f conftest.er1 ! 3119: cat conftest.err >&5 ! 3120: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3121: (exit $ac_status); } >/dev/null; then ! 3122: if test -s conftest.err; then ! 3123: ac_cpp_err=$ac_c_preproc_warn_flag ! 3124: else ! 3125: ac_cpp_err= ! 3126: fi ! 3127: else ! 3128: ac_cpp_err=yes ! 3129: fi ! 3130: if test -z "$ac_cpp_err"; then ! 3131: : ! 3132: else ! 3133: echo "$as_me: failed program was:" >&5 ! 3134: sed 's/^/| /' conftest.$ac_ext >&5 ! 3135: ! 3136: # Broken: fails on valid input. ! 3137: continue ! 3138: fi ! 3139: rm -f conftest.err conftest.$ac_ext ! 3140: ! 3141: # OK, works on sane cases. Now check whether non-existent headers ! 3142: # can be detected and how. ! 3143: cat >conftest.$ac_ext <<_ACEOF ! 3144: #line $LINENO "configure" ! 3145: /* confdefs.h. */ ! 3146: _ACEOF ! 3147: cat confdefs.h >>conftest.$ac_ext ! 3148: cat >>conftest.$ac_ext <<_ACEOF ! 3149: /* end confdefs.h. */ ! 3150: #include <ac_nonexistent.h> ! 3151: _ACEOF ! 3152: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3153: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3154: ac_status=$? ! 3155: grep -v '^ *+' conftest.er1 >conftest.err ! 3156: rm -f conftest.er1 ! 3157: cat conftest.err >&5 ! 3158: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3159: (exit $ac_status); } >/dev/null; then ! 3160: if test -s conftest.err; then ! 3161: ac_cpp_err=$ac_c_preproc_warn_flag ! 3162: else ! 3163: ac_cpp_err= ! 3164: fi ! 3165: else ! 3166: ac_cpp_err=yes ! 3167: fi ! 3168: if test -z "$ac_cpp_err"; then ! 3169: # Broken: success on invalid input. ! 3170: continue ! 3171: else ! 3172: echo "$as_me: failed program was:" >&5 ! 3173: sed 's/^/| /' conftest.$ac_ext >&5 ! 3174: ! 3175: # Passes both tests. ! 3176: ac_preproc_ok=: ! 3177: break ! 3178: fi ! 3179: rm -f conftest.err conftest.$ac_ext ! 3180: ! 3181: done ! 3182: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 3183: rm -f conftest.err conftest.$ac_ext ! 3184: if $ac_preproc_ok; then ! 3185: : ! 3186: else ! 3187: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check ! 3188: See \`config.log' for more details." >&5 ! 3189: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check ! 3190: See \`config.log' for more details." >&2;} ! 3191: { (exit 1); exit 1; }; } ! 3192: fi ! 3193: ! 3194: ac_ext=c ! 3195: ac_cpp='$CPP $CPPFLAGS' ! 3196: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 3197: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 3198: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 3199: ! 3200: for ac_prog in 'bison -y' byacc ! 3201: do ! 3202: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 3203: set dummy $ac_prog; ac_word=$2 ! 3204: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 3205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 3206: if test "${ac_cv_prog_YACC+set}" = set; then ! 3207: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3208: else ! 3209: if test -n "$YACC"; then ! 3210: ac_cv_prog_YACC="$YACC" # Let the user override the test. ! 3211: else ! 3212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3213: for as_dir in $PATH ! 3214: do ! 3215: IFS=$as_save_IFS ! 3216: test -z "$as_dir" && as_dir=. ! 3217: for ac_exec_ext in '' $ac_executable_extensions; do ! 3218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 3219: ac_cv_prog_YACC="$ac_prog" ! 3220: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 3221: break 2 ! 3222: fi ! 3223: done ! 3224: done ! 3225: ! 3226: fi ! 3227: fi ! 3228: YACC=$ac_cv_prog_YACC ! 3229: if test -n "$YACC"; then ! 3230: echo "$as_me:$LINENO: result: $YACC" >&5 ! 3231: echo "${ECHO_T}$YACC" >&6 ! 3232: else ! 3233: echo "$as_me:$LINENO: result: no" >&5 ! 3234: echo "${ECHO_T}no" >&6 ! 3235: fi ! 3236: ! 3237: test -n "$YACC" && break ! 3238: done ! 3239: test -n "$YACC" || YACC="yacc" ! 3240: ! 3241: # Find a good install program. We prefer a C program (faster), ! 3242: # so one script is as good as another. But avoid the broken or ! 3243: # incompatible versions: ! 3244: # SysV /etc/install, /usr/sbin/install ! 3245: # SunOS /usr/etc/install ! 3246: # IRIX /sbin/install ! 3247: # AIX /bin/install ! 3248: # AmigaOS /C/install, which installs bootblocks on floppy discs ! 3249: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ! 3250: # AFS /usr/afsws/bin/install, which mishandles nonexistent args ! 3251: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ! 3252: # ./install, which can be erroneously created by make from ./install.sh. ! 3253: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! 3254: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ! 3255: if test -z "$INSTALL"; then ! 3256: if test "${ac_cv_path_install+set}" = set; then ! 3257: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3258: else ! 3259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3260: for as_dir in $PATH ! 3261: do ! 3262: IFS=$as_save_IFS ! 3263: test -z "$as_dir" && as_dir=. ! 3264: # Account for people who put trailing slashes in PATH elements. ! 3265: case $as_dir/ in ! 3266: ./ | .// | /cC/* | \ ! 3267: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! 3268: /usr/ucb/* ) ;; ! 3269: *) ! 3270: # OSF1 and SCO ODT 3.0 have their own names for install. ! 3271: # Don't use installbsd from OSF since it installs stuff as root ! 3272: # by default. ! 3273: for ac_prog in ginstall scoinst install; do ! 3274: for ac_exec_ext in '' $ac_executable_extensions; do ! 3275: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ! 3276: if test $ac_prog = install && ! 3277: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 3278: # AIX install. It has an incompatible calling convention. ! 3279: : ! 3280: elif test $ac_prog = install && ! 3281: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 3282: # program-specific install script used by HP pwplus--don't use. ! 3283: : ! 3284: else ! 3285: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! 3286: break 3 ! 3287: fi ! 3288: fi ! 3289: done ! 3290: done ! 3291: ;; ! 3292: esac ! 3293: done ! 3294: ! 3295: ! 3296: fi ! 3297: if test "${ac_cv_path_install+set}" = set; then ! 3298: INSTALL=$ac_cv_path_install ! 3299: else ! 3300: # As a last resort, use the slow shell script. We don't cache a ! 3301: # path for INSTALL within a source directory, because that will ! 3302: # break other packages using the cache if that directory is ! 3303: # removed, or if the path is relative. ! 3304: INSTALL=$ac_install_sh ! 3305: fi ! 3306: fi ! 3307: echo "$as_me:$LINENO: result: $INSTALL" >&5 ! 3308: echo "${ECHO_T}$INSTALL" >&6 ! 3309: ! 3310: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. ! 3311: # It thinks the first close brace ends the variable substitution. ! 3312: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ! 3313: ! 3314: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ! 3315: ! 3316: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ! 3317: ! 3318: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ! 3319: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 ! 3320: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` ! 3321: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then ! 3322: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3323: else ! 3324: cat >conftest.make <<\_ACEOF ! 3325: all: ! 3326: @echo 'ac_maketemp="$(MAKE)"' ! 3327: _ACEOF ! 3328: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 3329: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` ! 3330: if test -n "$ac_maketemp"; then ! 3331: eval ac_cv_prog_make_${ac_make}_set=yes ! 3332: else ! 3333: eval ac_cv_prog_make_${ac_make}_set=no ! 3334: fi ! 3335: rm -f conftest.make ! 3336: fi ! 3337: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ! 3338: echo "$as_me:$LINENO: result: yes" >&5 ! 3339: echo "${ECHO_T}yes" >&6 ! 3340: SET_MAKE= ! 3341: else ! 3342: echo "$as_me:$LINENO: result: no" >&5 ! 3343: echo "${ECHO_T}no" >&6 ! 3344: SET_MAKE="MAKE=${MAKE-make}" ! 3345: fi ! 3346: ! 3347: ! 3348: ! 3349: ! 3350: echo "$as_me:$LINENO: checking for egrep" >&5 ! 3351: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 ! 3352: if test "${ac_cv_prog_egrep+set}" = set; then ! 3353: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3354: else ! 3355: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 ! 3356: then ac_cv_prog_egrep='grep -E' ! 3357: else ac_cv_prog_egrep='egrep' ! 3358: fi ! 3359: fi ! 3360: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 ! 3361: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 ! 3362: EGREP=$ac_cv_prog_egrep ! 3363: ! 3364: ! 3365: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ! 3366: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 ! 3367: if test "${ac_cv_header_stdc+set}" = set; then ! 3368: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3369: else ! 3370: cat >conftest.$ac_ext <<_ACEOF ! 3371: #line $LINENO "configure" ! 3372: /* confdefs.h. */ ! 3373: _ACEOF ! 3374: cat confdefs.h >>conftest.$ac_ext ! 3375: cat >>conftest.$ac_ext <<_ACEOF ! 3376: /* end confdefs.h. */ ! 3377: #include <stdlib.h> ! 3378: #include <stdarg.h> ! 3379: #include <string.h> ! 3380: #include <float.h> ! 3381: ! 3382: int ! 3383: main () ! 3384: { ! 3385: ! 3386: ; ! 3387: return 0; ! 3388: } ! 3389: _ACEOF ! 3390: rm -f conftest.$ac_objext ! 3391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3392: (eval $ac_compile) 2>&5 ! 3393: ac_status=$? ! 3394: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3395: (exit $ac_status); } && ! 3396: { ac_try='test -s conftest.$ac_objext' ! 3397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3398: (eval $ac_try) 2>&5 ! 3399: ac_status=$? ! 3400: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3401: (exit $ac_status); }; }; then ! 3402: ac_cv_header_stdc=yes ! 3403: else ! 3404: echo "$as_me: failed program was:" >&5 ! 3405: sed 's/^/| /' conftest.$ac_ext >&5 ! 3406: ! 3407: ac_cv_header_stdc=no ! 3408: fi ! 3409: rm -f conftest.$ac_objext conftest.$ac_ext ! 3410: ! 3411: if test $ac_cv_header_stdc = yes; then ! 3412: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 3413: cat >conftest.$ac_ext <<_ACEOF ! 3414: #line $LINENO "configure" ! 3415: /* confdefs.h. */ ! 3416: _ACEOF ! 3417: cat confdefs.h >>conftest.$ac_ext ! 3418: cat >>conftest.$ac_ext <<_ACEOF ! 3419: /* end confdefs.h. */ ! 3420: #include <string.h> ! 3421: ! 3422: _ACEOF ! 3423: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 3424: $EGREP "memchr" >/dev/null 2>&1; then ! 3425: : ! 3426: else ! 3427: ac_cv_header_stdc=no ! 3428: fi ! 3429: rm -f conftest* ! 3430: ! 3431: fi ! 3432: ! 3433: if test $ac_cv_header_stdc = yes; then ! 3434: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! 3435: cat >conftest.$ac_ext <<_ACEOF ! 3436: #line $LINENO "configure" ! 3437: /* confdefs.h. */ ! 3438: _ACEOF ! 3439: cat confdefs.h >>conftest.$ac_ext ! 3440: cat >>conftest.$ac_ext <<_ACEOF ! 3441: /* end confdefs.h. */ ! 3442: #include <stdlib.h> ! 3443: ! 3444: _ACEOF ! 3445: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 3446: $EGREP "free" >/dev/null 2>&1; then ! 3447: : ! 3448: else ! 3449: ac_cv_header_stdc=no ! 3450: fi ! 3451: rm -f conftest* ! 3452: ! 3453: fi ! 3454: ! 3455: if test $ac_cv_header_stdc = yes; then ! 3456: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 3457: if test "$cross_compiling" = yes; then ! 3458: : ! 3459: else ! 3460: cat >conftest.$ac_ext <<_ACEOF ! 3461: #line $LINENO "configure" ! 3462: /* confdefs.h. */ ! 3463: _ACEOF ! 3464: cat confdefs.h >>conftest.$ac_ext ! 3465: cat >>conftest.$ac_ext <<_ACEOF ! 3466: /* end confdefs.h. */ ! 3467: #include <ctype.h> ! 3468: #if ((' ' & 0x0FF) == 0x020) ! 3469: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 3470: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 3471: #else ! 3472: # define ISLOWER(c) \ ! 3473: (('a' <= (c) && (c) <= 'i') \ ! 3474: || ('j' <= (c) && (c) <= 'r') \ ! 3475: || ('s' <= (c) && (c) <= 'z')) ! 3476: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ! 3477: #endif ! 3478: ! 3479: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! 3480: int ! 3481: main () ! 3482: { ! 3483: int i; ! 3484: for (i = 0; i < 256; i++) ! 3485: if (XOR (islower (i), ISLOWER (i)) ! 3486: || toupper (i) != TOUPPER (i)) ! 3487: exit(2); ! 3488: exit (0); ! 3489: } ! 3490: _ACEOF ! 3491: rm -f conftest$ac_exeext ! 3492: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3493: (eval $ac_link) 2>&5 ! 3494: ac_status=$? ! 3495: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3496: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 3497: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3498: (eval $ac_try) 2>&5 ! 3499: ac_status=$? ! 3500: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3501: (exit $ac_status); }; }; then ! 3502: : ! 3503: else ! 3504: echo "$as_me: program exited with status $ac_status" >&5 ! 3505: echo "$as_me: failed program was:" >&5 ! 3506: sed 's/^/| /' conftest.$ac_ext >&5 ! 3507: ! 3508: ( exit $ac_status ) ! 3509: ac_cv_header_stdc=no ! 3510: fi ! 3511: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 3512: fi ! 3513: fi ! 3514: fi ! 3515: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ! 3516: echo "${ECHO_T}$ac_cv_header_stdc" >&6 ! 3517: if test $ac_cv_header_stdc = yes; then ! 3518: ! 3519: cat >>confdefs.h <<\_ACEOF ! 3520: #define STDC_HEADERS 1 ! 3521: _ACEOF ! 3522: ! 3523: fi ! 3524: ! 3525: # On IRIX 5.3, sys/types and inttypes.h are conflicting. ! 3526: ! 3527: ! 3528: ! 3529: ! 3530: ! 3531: ! 3532: ! 3533: ! 3534: ! 3535: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ! 3536: inttypes.h stdint.h unistd.h ! 3537: do ! 3538: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3539: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3540: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3541: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3542: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3543: else ! 3544: cat >conftest.$ac_ext <<_ACEOF ! 3545: #line $LINENO "configure" ! 3546: /* confdefs.h. */ ! 3547: _ACEOF ! 3548: cat confdefs.h >>conftest.$ac_ext ! 3549: cat >>conftest.$ac_ext <<_ACEOF ! 3550: /* end confdefs.h. */ ! 3551: $ac_includes_default ! 3552: ! 3553: #include <$ac_header> ! 3554: _ACEOF ! 3555: rm -f conftest.$ac_objext ! 3556: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3557: (eval $ac_compile) 2>&5 ! 3558: ac_status=$? ! 3559: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3560: (exit $ac_status); } && ! 3561: { ac_try='test -s conftest.$ac_objext' ! 3562: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3563: (eval $ac_try) 2>&5 ! 3564: ac_status=$? ! 3565: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3566: (exit $ac_status); }; }; then ! 3567: eval "$as_ac_Header=yes" ! 3568: else ! 3569: echo "$as_me: failed program was:" >&5 ! 3570: sed 's/^/| /' conftest.$ac_ext >&5 ! 3571: ! 3572: eval "$as_ac_Header=no" ! 3573: fi ! 3574: rm -f conftest.$ac_objext conftest.$ac_ext ! 3575: fi ! 3576: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3577: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3578: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3579: cat >>confdefs.h <<_ACEOF ! 3580: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3581: _ACEOF ! 3582: ! 3583: fi ! 3584: ! 3585: done ! 3586: ! 3587: ! 3588: ! 3589: ! 3590: ! 3591: ! 3592: for ac_header in unistd.h stdio.h memory.h stdarg.h ! 3593: do ! 3594: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3595: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3596: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3597: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3598: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3599: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3600: fi ! 3601: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3602: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3603: else ! 3604: # Is the header compilable? ! 3605: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 3606: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 3607: cat >conftest.$ac_ext <<_ACEOF ! 3608: #line $LINENO "configure" ! 3609: /* confdefs.h. */ ! 3610: _ACEOF ! 3611: cat confdefs.h >>conftest.$ac_ext ! 3612: cat >>conftest.$ac_ext <<_ACEOF ! 3613: /* end confdefs.h. */ ! 3614: $ac_includes_default ! 3615: #include <$ac_header> ! 3616: _ACEOF ! 3617: rm -f conftest.$ac_objext ! 3618: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3619: (eval $ac_compile) 2>&5 ! 3620: ac_status=$? ! 3621: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3622: (exit $ac_status); } && ! 3623: { ac_try='test -s conftest.$ac_objext' ! 3624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3625: (eval $ac_try) 2>&5 ! 3626: ac_status=$? ! 3627: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3628: (exit $ac_status); }; }; then ! 3629: ac_header_compiler=yes ! 3630: else ! 3631: echo "$as_me: failed program was:" >&5 ! 3632: sed 's/^/| /' conftest.$ac_ext >&5 ! 3633: ! 3634: ac_header_compiler=no ! 3635: fi ! 3636: rm -f conftest.$ac_objext conftest.$ac_ext ! 3637: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 3638: echo "${ECHO_T}$ac_header_compiler" >&6 ! 3639: ! 3640: # Is the header present? ! 3641: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 3642: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 3643: cat >conftest.$ac_ext <<_ACEOF ! 3644: #line $LINENO "configure" ! 3645: /* confdefs.h. */ ! 3646: _ACEOF ! 3647: cat confdefs.h >>conftest.$ac_ext ! 3648: cat >>conftest.$ac_ext <<_ACEOF ! 3649: /* end confdefs.h. */ ! 3650: #include <$ac_header> ! 3651: _ACEOF ! 3652: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3653: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3654: ac_status=$? ! 3655: grep -v '^ *+' conftest.er1 >conftest.err ! 3656: rm -f conftest.er1 ! 3657: cat conftest.err >&5 ! 3658: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3659: (exit $ac_status); } >/dev/null; then ! 3660: if test -s conftest.err; then ! 3661: ac_cpp_err=$ac_c_preproc_warn_flag ! 3662: else ! 3663: ac_cpp_err= ! 3664: fi ! 3665: else ! 3666: ac_cpp_err=yes ! 3667: fi ! 3668: if test -z "$ac_cpp_err"; then ! 3669: ac_header_preproc=yes ! 3670: else ! 3671: echo "$as_me: failed program was:" >&5 ! 3672: sed 's/^/| /' conftest.$ac_ext >&5 ! 3673: ! 3674: ac_header_preproc=no ! 3675: fi ! 3676: rm -f conftest.err conftest.$ac_ext ! 3677: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 3678: echo "${ECHO_T}$ac_header_preproc" >&6 ! 3679: ! 3680: # So? What about this header? ! 3681: case $ac_header_compiler:$ac_header_preproc in ! 3682: yes:no ) ! 3683: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 3684: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 3685: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3686: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 3687: ( ! 3688: cat <<\_ASBOX ! 3689: ## ------------------------------------ ## ! 3690: ## Report this to [email protected]. ## ! 3691: ## ------------------------------------ ## ! 3692: _ASBOX ! 3693: ) | ! 3694: sed "s/^/$as_me: WARNING: /" >&2 ! 3695: ;; ! 3696: no:yes ) ! 3697: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 3698: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 3699: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 3700: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 3701: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3702: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 3703: ( ! 3704: cat <<\_ASBOX ! 3705: ## ------------------------------------ ## ! 3706: ## Report this to [email protected]. ## ! 3707: ## ------------------------------------ ## ! 3708: _ASBOX ! 3709: ) | ! 3710: sed "s/^/$as_me: WARNING: /" >&2 ! 3711: ;; ! 3712: esac ! 3713: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3714: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3715: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3716: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3717: else ! 3718: eval "$as_ac_Header=$ac_header_preproc" ! 3719: fi ! 3720: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3721: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3722: ! 3723: fi ! 3724: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3725: cat >>confdefs.h <<_ACEOF ! 3726: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3727: _ACEOF ! 3728: ! 3729: fi ! 3730: ! 3731: done ! 3732: ! 3733: ! 3734: ! 3735: ! 3736: ! 3737: ! 3738: for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h ! 3739: do ! 3740: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3741: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3742: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3743: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3744: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3745: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3746: fi ! 3747: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3748: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3749: else ! 3750: # Is the header compilable? ! 3751: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 3752: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 3753: cat >conftest.$ac_ext <<_ACEOF ! 3754: #line $LINENO "configure" ! 3755: /* confdefs.h. */ ! 3756: _ACEOF ! 3757: cat confdefs.h >>conftest.$ac_ext ! 3758: cat >>conftest.$ac_ext <<_ACEOF ! 3759: /* end confdefs.h. */ ! 3760: $ac_includes_default ! 3761: #include <$ac_header> ! 3762: _ACEOF ! 3763: rm -f conftest.$ac_objext ! 3764: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3765: (eval $ac_compile) 2>&5 ! 3766: ac_status=$? ! 3767: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3768: (exit $ac_status); } && ! 3769: { ac_try='test -s conftest.$ac_objext' ! 3770: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3771: (eval $ac_try) 2>&5 ! 3772: ac_status=$? ! 3773: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3774: (exit $ac_status); }; }; then ! 3775: ac_header_compiler=yes ! 3776: else ! 3777: echo "$as_me: failed program was:" >&5 ! 3778: sed 's/^/| /' conftest.$ac_ext >&5 ! 3779: ! 3780: ac_header_compiler=no ! 3781: fi ! 3782: rm -f conftest.$ac_objext conftest.$ac_ext ! 3783: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 3784: echo "${ECHO_T}$ac_header_compiler" >&6 ! 3785: ! 3786: # Is the header present? ! 3787: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 3788: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 3789: cat >conftest.$ac_ext <<_ACEOF ! 3790: #line $LINENO "configure" ! 3791: /* confdefs.h. */ ! 3792: _ACEOF ! 3793: cat confdefs.h >>conftest.$ac_ext ! 3794: cat >>conftest.$ac_ext <<_ACEOF ! 3795: /* end confdefs.h. */ ! 3796: #include <$ac_header> ! 3797: _ACEOF ! 3798: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3799: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3800: ac_status=$? ! 3801: grep -v '^ *+' conftest.er1 >conftest.err ! 3802: rm -f conftest.er1 ! 3803: cat conftest.err >&5 ! 3804: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3805: (exit $ac_status); } >/dev/null; then ! 3806: if test -s conftest.err; then ! 3807: ac_cpp_err=$ac_c_preproc_warn_flag ! 3808: else ! 3809: ac_cpp_err= ! 3810: fi ! 3811: else ! 3812: ac_cpp_err=yes ! 3813: fi ! 3814: if test -z "$ac_cpp_err"; then ! 3815: ac_header_preproc=yes ! 3816: else ! 3817: echo "$as_me: failed program was:" >&5 ! 3818: sed 's/^/| /' conftest.$ac_ext >&5 ! 3819: ! 3820: ac_header_preproc=no ! 3821: fi ! 3822: rm -f conftest.err conftest.$ac_ext ! 3823: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 3824: echo "${ECHO_T}$ac_header_preproc" >&6 ! 3825: ! 3826: # So? What about this header? ! 3827: case $ac_header_compiler:$ac_header_preproc in ! 3828: yes:no ) ! 3829: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 3830: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 3831: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3832: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 3833: ( ! 3834: cat <<\_ASBOX ! 3835: ## ------------------------------------ ## ! 3836: ## Report this to [email protected]. ## ! 3837: ## ------------------------------------ ## ! 3838: _ASBOX ! 3839: ) | ! 3840: sed "s/^/$as_me: WARNING: /" >&2 ! 3841: ;; ! 3842: no:yes ) ! 3843: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 3844: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 3845: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 3846: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 3847: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3848: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 3849: ( ! 3850: cat <<\_ASBOX ! 3851: ## ------------------------------------ ## ! 3852: ## Report this to [email protected]. ## ! 3853: ## ------------------------------------ ## ! 3854: _ASBOX ! 3855: ) | ! 3856: sed "s/^/$as_me: WARNING: /" >&2 ! 3857: ;; ! 3858: esac ! 3859: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3860: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3861: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3862: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3863: else ! 3864: eval "$as_ac_Header=$ac_header_preproc" ! 3865: fi ! 3866: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3867: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3868: ! 3869: fi ! 3870: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3871: cat >>confdefs.h <<_ACEOF ! 3872: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3873: _ACEOF ! 3874: ! 3875: fi ! 3876: ! 3877: done ! 3878: ! 3879: ! 3880: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 ! 3881: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 ! 3882: if test "${ac_cv_c_bigendian+set}" = set; then ! 3883: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3884: else ! 3885: # See if sys/param.h defines the BYTE_ORDER macro. ! 3886: cat >conftest.$ac_ext <<_ACEOF ! 3887: #line $LINENO "configure" ! 3888: /* confdefs.h. */ ! 3889: _ACEOF ! 3890: cat confdefs.h >>conftest.$ac_ext ! 3891: cat >>conftest.$ac_ext <<_ACEOF ! 3892: /* end confdefs.h. */ ! 3893: #include <sys/types.h> ! 3894: #include <sys/param.h> ! 3895: ! 3896: int ! 3897: main () ! 3898: { ! 3899: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN ! 3900: bogus endian macros ! 3901: #endif ! 3902: ! 3903: ; ! 3904: return 0; ! 3905: } ! 3906: _ACEOF ! 3907: rm -f conftest.$ac_objext ! 3908: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3909: (eval $ac_compile) 2>&5 ! 3910: ac_status=$? ! 3911: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3912: (exit $ac_status); } && ! 3913: { ac_try='test -s conftest.$ac_objext' ! 3914: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3915: (eval $ac_try) 2>&5 ! 3916: ac_status=$? ! 3917: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3918: (exit $ac_status); }; }; then ! 3919: # It does; now see whether it defined to BIG_ENDIAN or not. ! 3920: cat >conftest.$ac_ext <<_ACEOF ! 3921: #line $LINENO "configure" ! 3922: /* confdefs.h. */ ! 3923: _ACEOF ! 3924: cat confdefs.h >>conftest.$ac_ext ! 3925: cat >>conftest.$ac_ext <<_ACEOF ! 3926: /* end confdefs.h. */ ! 3927: #include <sys/types.h> ! 3928: #include <sys/param.h> ! 3929: ! 3930: int ! 3931: main () ! 3932: { ! 3933: #if BYTE_ORDER != BIG_ENDIAN ! 3934: not big endian ! 3935: #endif ! 3936: ! 3937: ; ! 3938: return 0; ! 3939: } ! 3940: _ACEOF ! 3941: rm -f conftest.$ac_objext ! 3942: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3943: (eval $ac_compile) 2>&5 ! 3944: ac_status=$? ! 3945: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3946: (exit $ac_status); } && ! 3947: { ac_try='test -s conftest.$ac_objext' ! 3948: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3949: (eval $ac_try) 2>&5 ! 3950: ac_status=$? ! 3951: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3952: (exit $ac_status); }; }; then ! 3953: ac_cv_c_bigendian=yes ! 3954: else ! 3955: echo "$as_me: failed program was:" >&5 ! 3956: sed 's/^/| /' conftest.$ac_ext >&5 ! 3957: ! 3958: ac_cv_c_bigendian=no ! 3959: fi ! 3960: rm -f conftest.$ac_objext conftest.$ac_ext ! 3961: else ! 3962: echo "$as_me: failed program was:" >&5 ! 3963: sed 's/^/| /' conftest.$ac_ext >&5 ! 3964: ! 3965: # It does not; compile a test program. ! 3966: if test "$cross_compiling" = yes; then ! 3967: # try to guess the endianness by grepping values into an object file ! 3968: ac_cv_c_bigendian=unknown ! 3969: cat >conftest.$ac_ext <<_ACEOF ! 3970: #line $LINENO "configure" ! 3971: /* confdefs.h. */ ! 3972: _ACEOF ! 3973: cat confdefs.h >>conftest.$ac_ext ! 3974: cat >>conftest.$ac_ext <<_ACEOF ! 3975: /* end confdefs.h. */ ! 3976: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; ! 3977: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; ! 3978: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } ! 3979: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; ! 3980: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; ! 3981: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } ! 3982: int ! 3983: main () ! 3984: { ! 3985: _ascii (); _ebcdic (); ! 3986: ; ! 3987: return 0; ! 3988: } ! 3989: _ACEOF ! 3990: rm -f conftest.$ac_objext ! 3991: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3992: (eval $ac_compile) 2>&5 ! 3993: ac_status=$? ! 3994: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3995: (exit $ac_status); } && ! 3996: { ac_try='test -s conftest.$ac_objext' ! 3997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3998: (eval $ac_try) 2>&5 ! 3999: ac_status=$? ! 4000: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4001: (exit $ac_status); }; }; then ! 4002: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ! 4003: ac_cv_c_bigendian=yes ! 4004: fi ! 4005: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then ! 4006: if test "$ac_cv_c_bigendian" = unknown; then ! 4007: ac_cv_c_bigendian=no ! 4008: else ! 4009: # finding both strings is unlikely to happen, but who knows? ! 4010: ac_cv_c_bigendian=unknown ! 4011: fi ! 4012: fi ! 4013: else ! 4014: echo "$as_me: failed program was:" >&5 ! 4015: sed 's/^/| /' conftest.$ac_ext >&5 ! 4016: ! 4017: fi ! 4018: rm -f conftest.$ac_objext conftest.$ac_ext ! 4019: else ! 4020: cat >conftest.$ac_ext <<_ACEOF ! 4021: #line $LINENO "configure" ! 4022: /* confdefs.h. */ ! 4023: _ACEOF ! 4024: cat confdefs.h >>conftest.$ac_ext ! 4025: cat >>conftest.$ac_ext <<_ACEOF ! 4026: /* end confdefs.h. */ ! 4027: int ! 4028: main () ! 4029: { ! 4030: /* Are we little or big endian? From Harbison&Steele. */ ! 4031: union ! 4032: { ! 4033: long l; ! 4034: char c[sizeof (long)]; ! 4035: } u; ! 4036: u.l = 1; ! 4037: exit (u.c[sizeof (long) - 1] == 1); ! 4038: } ! 4039: _ACEOF ! 4040: rm -f conftest$ac_exeext ! 4041: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4042: (eval $ac_link) 2>&5 ! 4043: ac_status=$? ! 4044: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4045: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4047: (eval $ac_try) 2>&5 ! 4048: ac_status=$? ! 4049: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4050: (exit $ac_status); }; }; then ! 4051: ac_cv_c_bigendian=no ! 4052: else ! 4053: echo "$as_me: program exited with status $ac_status" >&5 ! 4054: echo "$as_me: failed program was:" >&5 ! 4055: sed 's/^/| /' conftest.$ac_ext >&5 ! 4056: ! 4057: ( exit $ac_status ) ! 4058: ac_cv_c_bigendian=yes ! 4059: fi ! 4060: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4061: fi ! 4062: fi ! 4063: rm -f conftest.$ac_objext conftest.$ac_ext ! 4064: fi ! 4065: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 ! 4066: echo "${ECHO_T}$ac_cv_c_bigendian" >&6 ! 4067: case $ac_cv_c_bigendian in ! 4068: yes) ! 4069: ! 4070: cat >>confdefs.h <<\_ACEOF ! 4071: #define WORDS_BIGENDIAN 1 ! 4072: _ACEOF ! 4073: ;; ! 4074: no) ! 4075: ;; ! 4076: *) ! 4077: { { echo "$as_me:$LINENO: error: unknown endianness ! 4078: presetting ac_cv_c_bigendian=no (or yes) will help" >&5 ! 4079: echo "$as_me: error: unknown endianness ! 4080: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} ! 4081: { (exit 1); exit 1; }; } ;; ! 4082: esac ! 4083: ! 4084: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 ! 4085: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 ! 4086: if test "${ac_cv_c_const+set}" = set; then ! 4087: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4088: else ! 4089: cat >conftest.$ac_ext <<_ACEOF ! 4090: #line $LINENO "configure" ! 4091: /* confdefs.h. */ ! 4092: _ACEOF ! 4093: cat confdefs.h >>conftest.$ac_ext ! 4094: cat >>conftest.$ac_ext <<_ACEOF ! 4095: /* end confdefs.h. */ ! 4096: ! 4097: int ! 4098: main () ! 4099: { ! 4100: /* FIXME: Include the comments suggested by Paul. */ ! 4101: #ifndef __cplusplus ! 4102: /* Ultrix mips cc rejects this. */ ! 4103: typedef int charset[2]; ! 4104: const charset x; ! 4105: /* SunOS 4.1.1 cc rejects this. */ ! 4106: char const *const *ccp; ! 4107: char **p; ! 4108: /* NEC SVR4.0.2 mips cc rejects this. */ ! 4109: struct point {int x, y;}; ! 4110: static struct point const zero = {0,0}; ! 4111: /* AIX XL C 1.02.0.0 rejects this. ! 4112: It does not let you subtract one const X* pointer from another in ! 4113: an arm of an if-expression whose if-part is not a constant ! 4114: expression */ ! 4115: const char *g = "string"; ! 4116: ccp = &g + (g ? g-g : 0); ! 4117: /* HPUX 7.0 cc rejects these. */ ! 4118: ++ccp; ! 4119: p = (char**) ccp; ! 4120: ccp = (char const *const *) p; ! 4121: { /* SCO 3.2v4 cc rejects this. */ ! 4122: char *t; ! 4123: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 4124: ! 4125: *t++ = 0; ! 4126: } ! 4127: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 4128: int x[] = {25, 17}; ! 4129: const int *foo = &x[0]; ! 4130: ++foo; ! 4131: } ! 4132: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 4133: typedef const int *iptr; ! 4134: iptr p = 0; ! 4135: ++p; ! 4136: } ! 4137: { /* AIX XL C 1.02.0.0 rejects this saying ! 4138: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 4139: struct s { int j; const int *ap[3]; }; ! 4140: struct s *b; b->j = 5; ! 4141: } ! 4142: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! 4143: const int foo = 10; ! 4144: } ! 4145: #endif ! 4146: ! 4147: ; ! 4148: return 0; ! 4149: } ! 4150: _ACEOF ! 4151: rm -f conftest.$ac_objext ! 4152: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4153: (eval $ac_compile) 2>&5 ! 4154: ac_status=$? ! 4155: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4156: (exit $ac_status); } && ! 4157: { ac_try='test -s conftest.$ac_objext' ! 4158: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4159: (eval $ac_try) 2>&5 ! 4160: ac_status=$? ! 4161: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4162: (exit $ac_status); }; }; then ! 4163: ac_cv_c_const=yes ! 4164: else ! 4165: echo "$as_me: failed program was:" >&5 ! 4166: sed 's/^/| /' conftest.$ac_ext >&5 ! 4167: ! 4168: ac_cv_c_const=no ! 4169: fi ! 4170: rm -f conftest.$ac_objext conftest.$ac_ext ! 4171: fi ! 4172: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 ! 4173: echo "${ECHO_T}$ac_cv_c_const" >&6 ! 4174: if test $ac_cv_c_const = no; then ! 4175: ! 4176: cat >>confdefs.h <<\_ACEOF ! 4177: #define const ! 4178: _ACEOF ! 4179: ! 4180: fi ! 4181: ! 4182: echo "$as_me:$LINENO: checking for inline" >&5 ! 4183: echo $ECHO_N "checking for inline... $ECHO_C" >&6 ! 4184: if test "${ac_cv_c_inline+set}" = set; then ! 4185: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4186: else ! 4187: ac_cv_c_inline=no ! 4188: for ac_kw in inline __inline__ __inline; do ! 4189: cat >conftest.$ac_ext <<_ACEOF ! 4190: #line $LINENO "configure" ! 4191: /* confdefs.h. */ ! 4192: _ACEOF ! 4193: cat confdefs.h >>conftest.$ac_ext ! 4194: cat >>conftest.$ac_ext <<_ACEOF ! 4195: /* end confdefs.h. */ ! 4196: #ifndef __cplusplus ! 4197: typedef int foo_t; ! 4198: static $ac_kw foo_t static_foo () {return 0; } ! 4199: $ac_kw foo_t foo () {return 0; } ! 4200: #endif ! 4201: ! 4202: _ACEOF ! 4203: rm -f conftest.$ac_objext ! 4204: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4205: (eval $ac_compile) 2>&5 ! 4206: ac_status=$? ! 4207: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4208: (exit $ac_status); } && ! 4209: { ac_try='test -s conftest.$ac_objext' ! 4210: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4211: (eval $ac_try) 2>&5 ! 4212: ac_status=$? ! 4213: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4214: (exit $ac_status); }; }; then ! 4215: ac_cv_c_inline=$ac_kw; break ! 4216: else ! 4217: echo "$as_me: failed program was:" >&5 ! 4218: sed 's/^/| /' conftest.$ac_ext >&5 ! 4219: ! 4220: fi ! 4221: rm -f conftest.$ac_objext conftest.$ac_ext ! 4222: done ! 4223: ! 4224: fi ! 4225: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ! 4226: echo "${ECHO_T}$ac_cv_c_inline" >&6 ! 4227: case $ac_cv_c_inline in ! 4228: inline | yes) ;; ! 4229: no) ! 4230: cat >>confdefs.h <<\_ACEOF ! 4231: #define inline ! 4232: _ACEOF ! 4233: ;; ! 4234: *) cat >>confdefs.h <<_ACEOF ! 4235: #define inline $ac_cv_c_inline ! 4236: _ACEOF ! 4237: ;; ! 4238: esac ! 4239: ! 4240: echo "$as_me:$LINENO: checking for long" >&5 ! 4241: echo $ECHO_N "checking for long... $ECHO_C" >&6 ! 4242: if test "${ac_cv_type_long+set}" = set; then ! 4243: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4244: else ! 4245: cat >conftest.$ac_ext <<_ACEOF ! 4246: #line $LINENO "configure" ! 4247: /* confdefs.h. */ ! 4248: _ACEOF ! 4249: cat confdefs.h >>conftest.$ac_ext ! 4250: cat >>conftest.$ac_ext <<_ACEOF ! 4251: /* end confdefs.h. */ ! 4252: $ac_includes_default ! 4253: int ! 4254: main () ! 4255: { ! 4256: if ((long *) 0) ! 4257: return 0; ! 4258: if (sizeof (long)) ! 4259: return 0; ! 4260: ; ! 4261: return 0; ! 4262: } ! 4263: _ACEOF ! 4264: rm -f conftest.$ac_objext ! 4265: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4266: (eval $ac_compile) 2>&5 ! 4267: ac_status=$? ! 4268: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4269: (exit $ac_status); } && ! 4270: { ac_try='test -s conftest.$ac_objext' ! 4271: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4272: (eval $ac_try) 2>&5 ! 4273: ac_status=$? ! 4274: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4275: (exit $ac_status); }; }; then ! 4276: ac_cv_type_long=yes ! 4277: else ! 4278: echo "$as_me: failed program was:" >&5 ! 4279: sed 's/^/| /' conftest.$ac_ext >&5 ! 4280: ! 4281: ac_cv_type_long=no ! 4282: fi ! 4283: rm -f conftest.$ac_objext conftest.$ac_ext ! 4284: fi ! 4285: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 ! 4286: echo "${ECHO_T}$ac_cv_type_long" >&6 ! 4287: ! 4288: echo "$as_me:$LINENO: checking size of long" >&5 ! 4289: echo $ECHO_N "checking size of long... $ECHO_C" >&6 ! 4290: if test "${ac_cv_sizeof_long+set}" = set; then ! 4291: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4292: else ! 4293: if test "$ac_cv_type_long" = yes; then ! 4294: # The cast to unsigned long works around a bug in the HP C Compiler ! 4295: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! 4296: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! 4297: # This bug is HP SR number 8606223364. ! 4298: if test "$cross_compiling" = yes; then ! 4299: # Depending upon the size, compute the lo and hi bounds. ! 4300: cat >conftest.$ac_ext <<_ACEOF ! 4301: #line $LINENO "configure" ! 4302: /* confdefs.h. */ ! 4303: _ACEOF ! 4304: cat confdefs.h >>conftest.$ac_ext ! 4305: cat >>conftest.$ac_ext <<_ACEOF ! 4306: /* end confdefs.h. */ ! 4307: $ac_includes_default ! 4308: int ! 4309: main () ! 4310: { ! 4311: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; ! 4312: test_array [0] = 0 ! 4313: ! 4314: ; ! 4315: return 0; ! 4316: } ! 4317: _ACEOF ! 4318: rm -f conftest.$ac_objext ! 4319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4320: (eval $ac_compile) 2>&5 ! 4321: ac_status=$? ! 4322: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4323: (exit $ac_status); } && ! 4324: { ac_try='test -s conftest.$ac_objext' ! 4325: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4326: (eval $ac_try) 2>&5 ! 4327: ac_status=$? ! 4328: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4329: (exit $ac_status); }; }; then ! 4330: ac_lo=0 ac_mid=0 ! 4331: while :; do ! 4332: cat >conftest.$ac_ext <<_ACEOF ! 4333: #line $LINENO "configure" ! 4334: /* confdefs.h. */ ! 4335: _ACEOF ! 4336: cat confdefs.h >>conftest.$ac_ext ! 4337: cat >>conftest.$ac_ext <<_ACEOF ! 4338: /* end confdefs.h. */ ! 4339: $ac_includes_default ! 4340: int ! 4341: main () ! 4342: { ! 4343: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; ! 4344: test_array [0] = 0 ! 4345: ! 4346: ; ! 4347: return 0; ! 4348: } ! 4349: _ACEOF ! 4350: rm -f conftest.$ac_objext ! 4351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4352: (eval $ac_compile) 2>&5 ! 4353: ac_status=$? ! 4354: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4355: (exit $ac_status); } && ! 4356: { ac_try='test -s conftest.$ac_objext' ! 4357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4358: (eval $ac_try) 2>&5 ! 4359: ac_status=$? ! 4360: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4361: (exit $ac_status); }; }; then ! 4362: ac_hi=$ac_mid; break ! 4363: else ! 4364: echo "$as_me: failed program was:" >&5 ! 4365: sed 's/^/| /' conftest.$ac_ext >&5 ! 4366: ! 4367: ac_lo=`expr $ac_mid + 1` ! 4368: if test $ac_lo -le $ac_mid; then ! 4369: ac_lo= ac_hi= ! 4370: break ! 4371: fi ! 4372: ac_mid=`expr 2 '*' $ac_mid + 1` ! 4373: fi ! 4374: rm -f conftest.$ac_objext conftest.$ac_ext ! 4375: done ! 4376: else ! 4377: echo "$as_me: failed program was:" >&5 ! 4378: sed 's/^/| /' conftest.$ac_ext >&5 ! 4379: ! 4380: cat >conftest.$ac_ext <<_ACEOF ! 4381: #line $LINENO "configure" ! 4382: /* confdefs.h. */ ! 4383: _ACEOF ! 4384: cat confdefs.h >>conftest.$ac_ext ! 4385: cat >>conftest.$ac_ext <<_ACEOF ! 4386: /* end confdefs.h. */ ! 4387: $ac_includes_default ! 4388: int ! 4389: main () ! 4390: { ! 4391: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; ! 4392: test_array [0] = 0 ! 4393: ! 4394: ; ! 4395: return 0; ! 4396: } ! 4397: _ACEOF ! 4398: rm -f conftest.$ac_objext ! 4399: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4400: (eval $ac_compile) 2>&5 ! 4401: ac_status=$? ! 4402: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4403: (exit $ac_status); } && ! 4404: { ac_try='test -s conftest.$ac_objext' ! 4405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4406: (eval $ac_try) 2>&5 ! 4407: ac_status=$? ! 4408: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4409: (exit $ac_status); }; }; then ! 4410: ac_hi=-1 ac_mid=-1 ! 4411: while :; do ! 4412: cat >conftest.$ac_ext <<_ACEOF ! 4413: #line $LINENO "configure" ! 4414: /* confdefs.h. */ ! 4415: _ACEOF ! 4416: cat confdefs.h >>conftest.$ac_ext ! 4417: cat >>conftest.$ac_ext <<_ACEOF ! 4418: /* end confdefs.h. */ ! 4419: $ac_includes_default ! 4420: int ! 4421: main () ! 4422: { ! 4423: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; ! 4424: test_array [0] = 0 ! 4425: ! 4426: ; ! 4427: return 0; ! 4428: } ! 4429: _ACEOF ! 4430: rm -f conftest.$ac_objext ! 4431: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4432: (eval $ac_compile) 2>&5 ! 4433: ac_status=$? ! 4434: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4435: (exit $ac_status); } && ! 4436: { ac_try='test -s conftest.$ac_objext' ! 4437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4438: (eval $ac_try) 2>&5 ! 4439: ac_status=$? ! 4440: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4441: (exit $ac_status); }; }; then ! 4442: ac_lo=$ac_mid; break ! 4443: else ! 4444: echo "$as_me: failed program was:" >&5 ! 4445: sed 's/^/| /' conftest.$ac_ext >&5 ! 4446: ! 4447: ac_hi=`expr '(' $ac_mid ')' - 1` ! 4448: if test $ac_mid -le $ac_hi; then ! 4449: ac_lo= ac_hi= ! 4450: break ! 4451: fi ! 4452: ac_mid=`expr 2 '*' $ac_mid` ! 4453: fi ! 4454: rm -f conftest.$ac_objext conftest.$ac_ext ! 4455: done ! 4456: else ! 4457: echo "$as_me: failed program was:" >&5 ! 4458: sed 's/^/| /' conftest.$ac_ext >&5 ! 4459: ! 4460: ac_lo= ac_hi= ! 4461: fi ! 4462: rm -f conftest.$ac_objext conftest.$ac_ext ! 4463: fi ! 4464: rm -f conftest.$ac_objext conftest.$ac_ext ! 4465: # Binary search between lo and hi bounds. ! 4466: while test "x$ac_lo" != "x$ac_hi"; do ! 4467: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! 4468: cat >conftest.$ac_ext <<_ACEOF ! 4469: #line $LINENO "configure" ! 4470: /* confdefs.h. */ ! 4471: _ACEOF ! 4472: cat confdefs.h >>conftest.$ac_ext ! 4473: cat >>conftest.$ac_ext <<_ACEOF ! 4474: /* end confdefs.h. */ ! 4475: $ac_includes_default ! 4476: int ! 4477: main () ! 4478: { ! 4479: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; ! 4480: test_array [0] = 0 ! 4481: ! 4482: ; ! 4483: return 0; ! 4484: } ! 4485: _ACEOF ! 4486: rm -f conftest.$ac_objext ! 4487: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4488: (eval $ac_compile) 2>&5 ! 4489: ac_status=$? ! 4490: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4491: (exit $ac_status); } && ! 4492: { ac_try='test -s conftest.$ac_objext' ! 4493: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4494: (eval $ac_try) 2>&5 ! 4495: ac_status=$? ! 4496: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4497: (exit $ac_status); }; }; then ! 4498: ac_hi=$ac_mid ! 4499: else ! 4500: echo "$as_me: failed program was:" >&5 ! 4501: sed 's/^/| /' conftest.$ac_ext >&5 ! 4502: ! 4503: ac_lo=`expr '(' $ac_mid ')' + 1` ! 4504: fi ! 4505: rm -f conftest.$ac_objext conftest.$ac_ext ! 4506: done ! 4507: case $ac_lo in ! 4508: ?*) ac_cv_sizeof_long=$ac_lo;; ! 4509: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 ! 4510: See \`config.log' for more details." >&5 ! 4511: echo "$as_me: error: cannot compute sizeof (long), 77 ! 4512: See \`config.log' for more details." >&2;} ! 4513: { (exit 1); exit 1; }; } ;; ! 4514: esac ! 4515: else ! 4516: if test "$cross_compiling" = yes; then ! 4517: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! 4518: See \`config.log' for more details." >&5 ! 4519: echo "$as_me: error: cannot run test program while cross compiling ! 4520: See \`config.log' for more details." >&2;} ! 4521: { (exit 1); exit 1; }; } ! 4522: else ! 4523: cat >conftest.$ac_ext <<_ACEOF ! 4524: #line $LINENO "configure" ! 4525: /* confdefs.h. */ ! 4526: _ACEOF ! 4527: cat confdefs.h >>conftest.$ac_ext ! 4528: cat >>conftest.$ac_ext <<_ACEOF ! 4529: /* end confdefs.h. */ ! 4530: $ac_includes_default ! 4531: long longval () { return (long) (sizeof (long)); } ! 4532: unsigned long ulongval () { return (long) (sizeof (long)); } ! 4533: #include <stdio.h> ! 4534: #include <stdlib.h> ! 4535: int ! 4536: main () ! 4537: { ! 4538: ! 4539: FILE *f = fopen ("conftest.val", "w"); ! 4540: if (! f) ! 4541: exit (1); ! 4542: if (((long) (sizeof (long))) < 0) ! 4543: { ! 4544: long i = longval (); ! 4545: if (i != ((long) (sizeof (long)))) ! 4546: exit (1); ! 4547: fprintf (f, "%ld\n", i); ! 4548: } ! 4549: else ! 4550: { ! 4551: unsigned long i = ulongval (); ! 4552: if (i != ((long) (sizeof (long)))) ! 4553: exit (1); ! 4554: fprintf (f, "%lu\n", i); ! 4555: } ! 4556: exit (ferror (f) || fclose (f) != 0); ! 4557: ! 4558: ; ! 4559: return 0; ! 4560: } ! 4561: _ACEOF ! 4562: rm -f conftest$ac_exeext ! 4563: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4564: (eval $ac_link) 2>&5 ! 4565: ac_status=$? ! 4566: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4567: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4569: (eval $ac_try) 2>&5 ! 4570: ac_status=$? ! 4571: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4572: (exit $ac_status); }; }; then ! 4573: ac_cv_sizeof_long=`cat conftest.val` ! 4574: else ! 4575: echo "$as_me: program exited with status $ac_status" >&5 ! 4576: echo "$as_me: failed program was:" >&5 ! 4577: sed 's/^/| /' conftest.$ac_ext >&5 ! 4578: ! 4579: ( exit $ac_status ) ! 4580: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 ! 4581: See \`config.log' for more details." >&5 ! 4582: echo "$as_me: error: cannot compute sizeof (long), 77 ! 4583: See \`config.log' for more details." >&2;} ! 4584: { (exit 1); exit 1; }; } ! 4585: fi ! 4586: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4587: fi ! 4588: fi ! 4589: rm -f conftest.val ! 4590: else ! 4591: ac_cv_sizeof_long=0 ! 4592: fi ! 4593: fi ! 4594: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 ! 4595: echo "${ECHO_T}$ac_cv_sizeof_long" >&6 ! 4596: cat >>confdefs.h <<_ACEOF ! 4597: #define SIZEOF_LONG $ac_cv_sizeof_long ! 4598: _ACEOF ! 4599: ! 4600: ! 4601: echo "$as_me:$LINENO: checking for int" >&5 ! 4602: echo $ECHO_N "checking for int... $ECHO_C" >&6 ! 4603: if test "${ac_cv_type_int+set}" = set; then ! 4604: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4605: else ! 4606: cat >conftest.$ac_ext <<_ACEOF ! 4607: #line $LINENO "configure" ! 4608: /* confdefs.h. */ ! 4609: _ACEOF ! 4610: cat confdefs.h >>conftest.$ac_ext ! 4611: cat >>conftest.$ac_ext <<_ACEOF ! 4612: /* end confdefs.h. */ ! 4613: $ac_includes_default ! 4614: int ! 4615: main () ! 4616: { ! 4617: if ((int *) 0) ! 4618: return 0; ! 4619: if (sizeof (int)) ! 4620: return 0; ! 4621: ; ! 4622: return 0; ! 4623: } ! 4624: _ACEOF ! 4625: rm -f conftest.$ac_objext ! 4626: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4627: (eval $ac_compile) 2>&5 ! 4628: ac_status=$? ! 4629: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4630: (exit $ac_status); } && ! 4631: { ac_try='test -s conftest.$ac_objext' ! 4632: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4633: (eval $ac_try) 2>&5 ! 4634: ac_status=$? ! 4635: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4636: (exit $ac_status); }; }; then ! 4637: ac_cv_type_int=yes ! 4638: else ! 4639: echo "$as_me: failed program was:" >&5 ! 4640: sed 's/^/| /' conftest.$ac_ext >&5 ! 4641: ! 4642: ac_cv_type_int=no ! 4643: fi ! 4644: rm -f conftest.$ac_objext conftest.$ac_ext ! 4645: fi ! 4646: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 ! 4647: echo "${ECHO_T}$ac_cv_type_int" >&6 ! 4648: ! 4649: echo "$as_me:$LINENO: checking size of int" >&5 ! 4650: echo $ECHO_N "checking size of int... $ECHO_C" >&6 ! 4651: if test "${ac_cv_sizeof_int+set}" = set; then ! 4652: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4653: else ! 4654: if test "$ac_cv_type_int" = yes; then ! 4655: # The cast to unsigned long works around a bug in the HP C Compiler ! 4656: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! 4657: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! 4658: # This bug is HP SR number 8606223364. ! 4659: if test "$cross_compiling" = yes; then ! 4660: # Depending upon the size, compute the lo and hi bounds. ! 4661: cat >conftest.$ac_ext <<_ACEOF ! 4662: #line $LINENO "configure" ! 4663: /* confdefs.h. */ ! 4664: _ACEOF ! 4665: cat confdefs.h >>conftest.$ac_ext ! 4666: cat >>conftest.$ac_ext <<_ACEOF ! 4667: /* end confdefs.h. */ ! 4668: $ac_includes_default ! 4669: int ! 4670: main () ! 4671: { ! 4672: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; ! 4673: test_array [0] = 0 ! 4674: ! 4675: ; ! 4676: return 0; ! 4677: } ! 4678: _ACEOF ! 4679: rm -f conftest.$ac_objext ! 4680: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4681: (eval $ac_compile) 2>&5 ! 4682: ac_status=$? ! 4683: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4684: (exit $ac_status); } && ! 4685: { ac_try='test -s conftest.$ac_objext' ! 4686: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4687: (eval $ac_try) 2>&5 ! 4688: ac_status=$? ! 4689: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4690: (exit $ac_status); }; }; then ! 4691: ac_lo=0 ac_mid=0 ! 4692: while :; do ! 4693: cat >conftest.$ac_ext <<_ACEOF ! 4694: #line $LINENO "configure" ! 4695: /* confdefs.h. */ ! 4696: _ACEOF ! 4697: cat confdefs.h >>conftest.$ac_ext ! 4698: cat >>conftest.$ac_ext <<_ACEOF ! 4699: /* end confdefs.h. */ ! 4700: $ac_includes_default ! 4701: int ! 4702: main () ! 4703: { ! 4704: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; ! 4705: test_array [0] = 0 ! 4706: ! 4707: ; ! 4708: return 0; ! 4709: } ! 4710: _ACEOF ! 4711: rm -f conftest.$ac_objext ! 4712: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4713: (eval $ac_compile) 2>&5 ! 4714: ac_status=$? ! 4715: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4716: (exit $ac_status); } && ! 4717: { ac_try='test -s conftest.$ac_objext' ! 4718: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4719: (eval $ac_try) 2>&5 ! 4720: ac_status=$? ! 4721: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4722: (exit $ac_status); }; }; then ! 4723: ac_hi=$ac_mid; break ! 4724: else ! 4725: echo "$as_me: failed program was:" >&5 ! 4726: sed 's/^/| /' conftest.$ac_ext >&5 ! 4727: ! 4728: ac_lo=`expr $ac_mid + 1` ! 4729: if test $ac_lo -le $ac_mid; then ! 4730: ac_lo= ac_hi= ! 4731: break ! 4732: fi ! 4733: ac_mid=`expr 2 '*' $ac_mid + 1` ! 4734: fi ! 4735: rm -f conftest.$ac_objext conftest.$ac_ext ! 4736: done ! 4737: else ! 4738: echo "$as_me: failed program was:" >&5 ! 4739: sed 's/^/| /' conftest.$ac_ext >&5 ! 4740: ! 4741: cat >conftest.$ac_ext <<_ACEOF ! 4742: #line $LINENO "configure" ! 4743: /* confdefs.h. */ ! 4744: _ACEOF ! 4745: cat confdefs.h >>conftest.$ac_ext ! 4746: cat >>conftest.$ac_ext <<_ACEOF ! 4747: /* end confdefs.h. */ ! 4748: $ac_includes_default ! 4749: int ! 4750: main () ! 4751: { ! 4752: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; ! 4753: test_array [0] = 0 ! 4754: ! 4755: ; ! 4756: return 0; ! 4757: } ! 4758: _ACEOF ! 4759: rm -f conftest.$ac_objext ! 4760: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4761: (eval $ac_compile) 2>&5 ! 4762: ac_status=$? ! 4763: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4764: (exit $ac_status); } && ! 4765: { ac_try='test -s conftest.$ac_objext' ! 4766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4767: (eval $ac_try) 2>&5 ! 4768: ac_status=$? ! 4769: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4770: (exit $ac_status); }; }; then ! 4771: ac_hi=-1 ac_mid=-1 ! 4772: while :; do ! 4773: cat >conftest.$ac_ext <<_ACEOF ! 4774: #line $LINENO "configure" ! 4775: /* confdefs.h. */ ! 4776: _ACEOF ! 4777: cat confdefs.h >>conftest.$ac_ext ! 4778: cat >>conftest.$ac_ext <<_ACEOF ! 4779: /* end confdefs.h. */ ! 4780: $ac_includes_default ! 4781: int ! 4782: main () ! 4783: { ! 4784: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; ! 4785: test_array [0] = 0 ! 4786: ! 4787: ; ! 4788: return 0; ! 4789: } ! 4790: _ACEOF ! 4791: rm -f conftest.$ac_objext ! 4792: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4793: (eval $ac_compile) 2>&5 ! 4794: ac_status=$? ! 4795: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4796: (exit $ac_status); } && ! 4797: { ac_try='test -s conftest.$ac_objext' ! 4798: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4799: (eval $ac_try) 2>&5 ! 4800: ac_status=$? ! 4801: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4802: (exit $ac_status); }; }; then ! 4803: ac_lo=$ac_mid; break ! 4804: else ! 4805: echo "$as_me: failed program was:" >&5 ! 4806: sed 's/^/| /' conftest.$ac_ext >&5 ! 4807: ! 4808: ac_hi=`expr '(' $ac_mid ')' - 1` ! 4809: if test $ac_mid -le $ac_hi; then ! 4810: ac_lo= ac_hi= ! 4811: break ! 4812: fi ! 4813: ac_mid=`expr 2 '*' $ac_mid` ! 4814: fi ! 4815: rm -f conftest.$ac_objext conftest.$ac_ext ! 4816: done ! 4817: else ! 4818: echo "$as_me: failed program was:" >&5 ! 4819: sed 's/^/| /' conftest.$ac_ext >&5 ! 4820: ! 4821: ac_lo= ac_hi= ! 4822: fi ! 4823: rm -f conftest.$ac_objext conftest.$ac_ext ! 4824: fi ! 4825: rm -f conftest.$ac_objext conftest.$ac_ext ! 4826: # Binary search between lo and hi bounds. ! 4827: while test "x$ac_lo" != "x$ac_hi"; do ! 4828: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! 4829: cat >conftest.$ac_ext <<_ACEOF ! 4830: #line $LINENO "configure" ! 4831: /* confdefs.h. */ ! 4832: _ACEOF ! 4833: cat confdefs.h >>conftest.$ac_ext ! 4834: cat >>conftest.$ac_ext <<_ACEOF ! 4835: /* end confdefs.h. */ ! 4836: $ac_includes_default ! 4837: int ! 4838: main () ! 4839: { ! 4840: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; ! 4841: test_array [0] = 0 ! 4842: ! 4843: ; ! 4844: return 0; ! 4845: } ! 4846: _ACEOF ! 4847: rm -f conftest.$ac_objext ! 4848: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4849: (eval $ac_compile) 2>&5 ! 4850: ac_status=$? ! 4851: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4852: (exit $ac_status); } && ! 4853: { ac_try='test -s conftest.$ac_objext' ! 4854: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4855: (eval $ac_try) 2>&5 ! 4856: ac_status=$? ! 4857: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4858: (exit $ac_status); }; }; then ! 4859: ac_hi=$ac_mid ! 4860: else ! 4861: echo "$as_me: failed program was:" >&5 ! 4862: sed 's/^/| /' conftest.$ac_ext >&5 ! 4863: ! 4864: ac_lo=`expr '(' $ac_mid ')' + 1` ! 4865: fi ! 4866: rm -f conftest.$ac_objext conftest.$ac_ext ! 4867: done ! 4868: case $ac_lo in ! 4869: ?*) ac_cv_sizeof_int=$ac_lo;; ! 4870: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 ! 4871: See \`config.log' for more details." >&5 ! 4872: echo "$as_me: error: cannot compute sizeof (int), 77 ! 4873: See \`config.log' for more details." >&2;} ! 4874: { (exit 1); exit 1; }; } ;; ! 4875: esac ! 4876: else ! 4877: if test "$cross_compiling" = yes; then ! 4878: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! 4879: See \`config.log' for more details." >&5 ! 4880: echo "$as_me: error: cannot run test program while cross compiling ! 4881: See \`config.log' for more details." >&2;} ! 4882: { (exit 1); exit 1; }; } ! 4883: else ! 4884: cat >conftest.$ac_ext <<_ACEOF ! 4885: #line $LINENO "configure" ! 4886: /* confdefs.h. */ ! 4887: _ACEOF ! 4888: cat confdefs.h >>conftest.$ac_ext ! 4889: cat >>conftest.$ac_ext <<_ACEOF ! 4890: /* end confdefs.h. */ ! 4891: $ac_includes_default ! 4892: long longval () { return (long) (sizeof (int)); } ! 4893: unsigned long ulongval () { return (long) (sizeof (int)); } ! 4894: #include <stdio.h> ! 4895: #include <stdlib.h> ! 4896: int ! 4897: main () ! 4898: { ! 4899: ! 4900: FILE *f = fopen ("conftest.val", "w"); ! 4901: if (! f) ! 4902: exit (1); ! 4903: if (((long) (sizeof (int))) < 0) ! 4904: { ! 4905: long i = longval (); ! 4906: if (i != ((long) (sizeof (int)))) ! 4907: exit (1); ! 4908: fprintf (f, "%ld\n", i); ! 4909: } ! 4910: else ! 4911: { ! 4912: unsigned long i = ulongval (); ! 4913: if (i != ((long) (sizeof (int)))) ! 4914: exit (1); ! 4915: fprintf (f, "%lu\n", i); ! 4916: } ! 4917: exit (ferror (f) || fclose (f) != 0); ! 4918: ! 4919: ; ! 4920: return 0; ! 4921: } ! 4922: _ACEOF ! 4923: rm -f conftest$ac_exeext ! 4924: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4925: (eval $ac_link) 2>&5 ! 4926: ac_status=$? ! 4927: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4928: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4930: (eval $ac_try) 2>&5 ! 4931: ac_status=$? ! 4932: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4933: (exit $ac_status); }; }; then ! 4934: ac_cv_sizeof_int=`cat conftest.val` ! 4935: else ! 4936: echo "$as_me: program exited with status $ac_status" >&5 ! 4937: echo "$as_me: failed program was:" >&5 ! 4938: sed 's/^/| /' conftest.$ac_ext >&5 ! 4939: ! 4940: ( exit $ac_status ) ! 4941: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 ! 4942: See \`config.log' for more details." >&5 ! 4943: echo "$as_me: error: cannot compute sizeof (int), 77 ! 4944: See \`config.log' for more details." >&2;} ! 4945: { (exit 1); exit 1; }; } ! 4946: fi ! 4947: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4948: fi ! 4949: fi ! 4950: rm -f conftest.val ! 4951: else ! 4952: ac_cv_sizeof_int=0 ! 4953: fi ! 4954: fi ! 4955: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 ! 4956: echo "${ECHO_T}$ac_cv_sizeof_int" >&6 ! 4957: cat >>confdefs.h <<_ACEOF ! 4958: #define SIZEOF_INT $ac_cv_sizeof_int ! 4959: _ACEOF ! 4960: ! 4961: ! 4962: echo "$as_me:$LINENO: checking for short" >&5 ! 4963: echo $ECHO_N "checking for short... $ECHO_C" >&6 ! 4964: if test "${ac_cv_type_short+set}" = set; then ! 4965: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4966: else ! 4967: cat >conftest.$ac_ext <<_ACEOF ! 4968: #line $LINENO "configure" ! 4969: /* confdefs.h. */ ! 4970: _ACEOF ! 4971: cat confdefs.h >>conftest.$ac_ext ! 4972: cat >>conftest.$ac_ext <<_ACEOF ! 4973: /* end confdefs.h. */ ! 4974: $ac_includes_default ! 4975: int ! 4976: main () ! 4977: { ! 4978: if ((short *) 0) ! 4979: return 0; ! 4980: if (sizeof (short)) ! 4981: return 0; ! 4982: ; ! 4983: return 0; ! 4984: } ! 4985: _ACEOF ! 4986: rm -f conftest.$ac_objext ! 4987: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4988: (eval $ac_compile) 2>&5 ! 4989: ac_status=$? ! 4990: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4991: (exit $ac_status); } && ! 4992: { ac_try='test -s conftest.$ac_objext' ! 4993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4994: (eval $ac_try) 2>&5 ! 4995: ac_status=$? ! 4996: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4997: (exit $ac_status); }; }; then ! 4998: ac_cv_type_short=yes ! 4999: else ! 5000: echo "$as_me: failed program was:" >&5 ! 5001: sed 's/^/| /' conftest.$ac_ext >&5 ! 5002: ! 5003: ac_cv_type_short=no ! 5004: fi ! 5005: rm -f conftest.$ac_objext conftest.$ac_ext ! 5006: fi ! 5007: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 ! 5008: echo "${ECHO_T}$ac_cv_type_short" >&6 ! 5009: ! 5010: echo "$as_me:$LINENO: checking size of short" >&5 ! 5011: echo $ECHO_N "checking size of short... $ECHO_C" >&6 ! 5012: if test "${ac_cv_sizeof_short+set}" = set; then ! 5013: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5014: else ! 5015: if test "$ac_cv_type_short" = yes; then ! 5016: # The cast to unsigned long works around a bug in the HP C Compiler ! 5017: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ! 5018: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ! 5019: # This bug is HP SR number 8606223364. ! 5020: if test "$cross_compiling" = yes; then ! 5021: # Depending upon the size, compute the lo and hi bounds. ! 5022: cat >conftest.$ac_ext <<_ACEOF ! 5023: #line $LINENO "configure" ! 5024: /* confdefs.h. */ ! 5025: _ACEOF ! 5026: cat confdefs.h >>conftest.$ac_ext ! 5027: cat >>conftest.$ac_ext <<_ACEOF ! 5028: /* end confdefs.h. */ ! 5029: $ac_includes_default ! 5030: int ! 5031: main () ! 5032: { ! 5033: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; ! 5034: test_array [0] = 0 ! 5035: ! 5036: ; ! 5037: return 0; ! 5038: } ! 5039: _ACEOF ! 5040: rm -f conftest.$ac_objext ! 5041: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5042: (eval $ac_compile) 2>&5 ! 5043: ac_status=$? ! 5044: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5045: (exit $ac_status); } && ! 5046: { ac_try='test -s conftest.$ac_objext' ! 5047: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5048: (eval $ac_try) 2>&5 ! 5049: ac_status=$? ! 5050: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5051: (exit $ac_status); }; }; then ! 5052: ac_lo=0 ac_mid=0 ! 5053: while :; do ! 5054: cat >conftest.$ac_ext <<_ACEOF ! 5055: #line $LINENO "configure" ! 5056: /* confdefs.h. */ ! 5057: _ACEOF ! 5058: cat confdefs.h >>conftest.$ac_ext ! 5059: cat >>conftest.$ac_ext <<_ACEOF ! 5060: /* end confdefs.h. */ ! 5061: $ac_includes_default ! 5062: int ! 5063: main () ! 5064: { ! 5065: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; ! 5066: test_array [0] = 0 ! 5067: ! 5068: ; ! 5069: return 0; ! 5070: } ! 5071: _ACEOF ! 5072: rm -f conftest.$ac_objext ! 5073: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5074: (eval $ac_compile) 2>&5 ! 5075: ac_status=$? ! 5076: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5077: (exit $ac_status); } && ! 5078: { ac_try='test -s conftest.$ac_objext' ! 5079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5080: (eval $ac_try) 2>&5 ! 5081: ac_status=$? ! 5082: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5083: (exit $ac_status); }; }; then ! 5084: ac_hi=$ac_mid; break ! 5085: else ! 5086: echo "$as_me: failed program was:" >&5 ! 5087: sed 's/^/| /' conftest.$ac_ext >&5 ! 5088: ! 5089: ac_lo=`expr $ac_mid + 1` ! 5090: if test $ac_lo -le $ac_mid; then ! 5091: ac_lo= ac_hi= ! 5092: break ! 5093: fi ! 5094: ac_mid=`expr 2 '*' $ac_mid + 1` ! 5095: fi ! 5096: rm -f conftest.$ac_objext conftest.$ac_ext ! 5097: done ! 5098: else ! 5099: echo "$as_me: failed program was:" >&5 ! 5100: sed 's/^/| /' conftest.$ac_ext >&5 ! 5101: ! 5102: cat >conftest.$ac_ext <<_ACEOF ! 5103: #line $LINENO "configure" ! 5104: /* confdefs.h. */ ! 5105: _ACEOF ! 5106: cat confdefs.h >>conftest.$ac_ext ! 5107: cat >>conftest.$ac_ext <<_ACEOF ! 5108: /* end confdefs.h. */ ! 5109: $ac_includes_default ! 5110: int ! 5111: main () ! 5112: { ! 5113: static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; ! 5114: test_array [0] = 0 ! 5115: ! 5116: ; ! 5117: return 0; ! 5118: } ! 5119: _ACEOF ! 5120: rm -f conftest.$ac_objext ! 5121: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5122: (eval $ac_compile) 2>&5 ! 5123: ac_status=$? ! 5124: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5125: (exit $ac_status); } && ! 5126: { ac_try='test -s conftest.$ac_objext' ! 5127: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5128: (eval $ac_try) 2>&5 ! 5129: ac_status=$? ! 5130: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5131: (exit $ac_status); }; }; then ! 5132: ac_hi=-1 ac_mid=-1 ! 5133: while :; do ! 5134: cat >conftest.$ac_ext <<_ACEOF ! 5135: #line $LINENO "configure" ! 5136: /* confdefs.h. */ ! 5137: _ACEOF ! 5138: cat confdefs.h >>conftest.$ac_ext ! 5139: cat >>conftest.$ac_ext <<_ACEOF ! 5140: /* end confdefs.h. */ ! 5141: $ac_includes_default ! 5142: int ! 5143: main () ! 5144: { ! 5145: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; ! 5146: test_array [0] = 0 ! 5147: ! 5148: ; ! 5149: return 0; ! 5150: } ! 5151: _ACEOF ! 5152: rm -f conftest.$ac_objext ! 5153: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5154: (eval $ac_compile) 2>&5 ! 5155: ac_status=$? ! 5156: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5157: (exit $ac_status); } && ! 5158: { ac_try='test -s conftest.$ac_objext' ! 5159: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5160: (eval $ac_try) 2>&5 ! 5161: ac_status=$? ! 5162: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5163: (exit $ac_status); }; }; then ! 5164: ac_lo=$ac_mid; break ! 5165: else ! 5166: echo "$as_me: failed program was:" >&5 ! 5167: sed 's/^/| /' conftest.$ac_ext >&5 ! 5168: ! 5169: ac_hi=`expr '(' $ac_mid ')' - 1` ! 5170: if test $ac_mid -le $ac_hi; then ! 5171: ac_lo= ac_hi= ! 5172: break ! 5173: fi ! 5174: ac_mid=`expr 2 '*' $ac_mid` ! 5175: fi ! 5176: rm -f conftest.$ac_objext conftest.$ac_ext ! 5177: done ! 5178: else ! 5179: echo "$as_me: failed program was:" >&5 ! 5180: sed 's/^/| /' conftest.$ac_ext >&5 ! 5181: ! 5182: ac_lo= ac_hi= ! 5183: fi ! 5184: rm -f conftest.$ac_objext conftest.$ac_ext ! 5185: fi ! 5186: rm -f conftest.$ac_objext conftest.$ac_ext ! 5187: # Binary search between lo and hi bounds. ! 5188: while test "x$ac_lo" != "x$ac_hi"; do ! 5189: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ! 5190: cat >conftest.$ac_ext <<_ACEOF ! 5191: #line $LINENO "configure" ! 5192: /* confdefs.h. */ ! 5193: _ACEOF ! 5194: cat confdefs.h >>conftest.$ac_ext ! 5195: cat >>conftest.$ac_ext <<_ACEOF ! 5196: /* end confdefs.h. */ ! 5197: $ac_includes_default ! 5198: int ! 5199: main () ! 5200: { ! 5201: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; ! 5202: test_array [0] = 0 ! 5203: ! 5204: ; ! 5205: return 0; ! 5206: } ! 5207: _ACEOF ! 5208: rm -f conftest.$ac_objext ! 5209: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5210: (eval $ac_compile) 2>&5 ! 5211: ac_status=$? ! 5212: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5213: (exit $ac_status); } && ! 5214: { ac_try='test -s conftest.$ac_objext' ! 5215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5216: (eval $ac_try) 2>&5 ! 5217: ac_status=$? ! 5218: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5219: (exit $ac_status); }; }; then ! 5220: ac_hi=$ac_mid ! 5221: else ! 5222: echo "$as_me: failed program was:" >&5 ! 5223: sed 's/^/| /' conftest.$ac_ext >&5 ! 5224: ! 5225: ac_lo=`expr '(' $ac_mid ')' + 1` ! 5226: fi ! 5227: rm -f conftest.$ac_objext conftest.$ac_ext ! 5228: done ! 5229: case $ac_lo in ! 5230: ?*) ac_cv_sizeof_short=$ac_lo;; ! 5231: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 ! 5232: See \`config.log' for more details." >&5 ! 5233: echo "$as_me: error: cannot compute sizeof (short), 77 ! 5234: See \`config.log' for more details." >&2;} ! 5235: { (exit 1); exit 1; }; } ;; ! 5236: esac ! 5237: else ! 5238: if test "$cross_compiling" = yes; then ! 5239: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ! 5240: See \`config.log' for more details." >&5 ! 5241: echo "$as_me: error: cannot run test program while cross compiling ! 5242: See \`config.log' for more details." >&2;} ! 5243: { (exit 1); exit 1; }; } ! 5244: else ! 5245: cat >conftest.$ac_ext <<_ACEOF ! 5246: #line $LINENO "configure" ! 5247: /* confdefs.h. */ ! 5248: _ACEOF ! 5249: cat confdefs.h >>conftest.$ac_ext ! 5250: cat >>conftest.$ac_ext <<_ACEOF ! 5251: /* end confdefs.h. */ ! 5252: $ac_includes_default ! 5253: long longval () { return (long) (sizeof (short)); } ! 5254: unsigned long ulongval () { return (long) (sizeof (short)); } ! 5255: #include <stdio.h> ! 5256: #include <stdlib.h> ! 5257: int ! 5258: main () ! 5259: { ! 5260: ! 5261: FILE *f = fopen ("conftest.val", "w"); ! 5262: if (! f) ! 5263: exit (1); ! 5264: if (((long) (sizeof (short))) < 0) ! 5265: { ! 5266: long i = longval (); ! 5267: if (i != ((long) (sizeof (short)))) ! 5268: exit (1); ! 5269: fprintf (f, "%ld\n", i); ! 5270: } ! 5271: else ! 5272: { ! 5273: unsigned long i = ulongval (); ! 5274: if (i != ((long) (sizeof (short)))) ! 5275: exit (1); ! 5276: fprintf (f, "%lu\n", i); ! 5277: } ! 5278: exit (ferror (f) || fclose (f) != 0); ! 5279: ! 5280: ; ! 5281: return 0; ! 5282: } ! 5283: _ACEOF ! 5284: rm -f conftest$ac_exeext ! 5285: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5286: (eval $ac_link) 2>&5 ! 5287: ac_status=$? ! 5288: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5289: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5291: (eval $ac_try) 2>&5 ! 5292: ac_status=$? ! 5293: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5294: (exit $ac_status); }; }; then ! 5295: ac_cv_sizeof_short=`cat conftest.val` ! 5296: else ! 5297: echo "$as_me: program exited with status $ac_status" >&5 ! 5298: echo "$as_me: failed program was:" >&5 ! 5299: sed 's/^/| /' conftest.$ac_ext >&5 ! 5300: ! 5301: ( exit $ac_status ) ! 5302: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 ! 5303: See \`config.log' for more details." >&5 ! 5304: echo "$as_me: error: cannot compute sizeof (short), 77 ! 5305: See \`config.log' for more details." >&2;} ! 5306: { (exit 1); exit 1; }; } ! 5307: fi ! 5308: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5309: fi ! 5310: fi ! 5311: rm -f conftest.val ! 5312: else ! 5313: ac_cv_sizeof_short=0 ! 5314: fi ! 5315: fi ! 5316: echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 ! 5317: echo "${ECHO_T}$ac_cv_sizeof_short" >&6 ! 5318: cat >>confdefs.h <<_ACEOF ! 5319: #define SIZEOF_SHORT $ac_cv_sizeof_short ! 5320: _ACEOF ! 5321: ! 5322: ! 5323: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then ! 5324: { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5 ! 5325: echo "$as_me: error: can't find a 32-bit type" >&2;} ! 5326: { (exit 1); exit 1; }; } ! 5327: fi ! 5328: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then ! 5329: { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5 ! 5330: echo "$as_me: error: can't find a 16-bit type" >&2;} ! 5331: { (exit 1); exit 1; }; } ! 5332: fi ! 5333: echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5 ! 5334: echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6 ! 5335: if test "${ac_cv_alignof_int32_t+set}" = set; then ! 5336: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5337: else ! 5338: if test "$cross_compiling" = yes; then ! 5339: ac_cv_alignof_int32_t=32 ! 5340: else ! 5341: cat >conftest.$ac_ext <<_ACEOF ! 5342: #line $LINENO "configure" ! 5343: /* confdefs.h. */ ! 5344: _ACEOF ! 5345: cat confdefs.h >>conftest.$ac_ext ! 5346: cat >>conftest.$ac_ext <<_ACEOF ! 5347: /* end confdefs.h. */ ! 5348: #include <stdio.h> ! 5349: #include <sys/types.h> ! 5350: main() ! 5351: { ! 5352: #if (SIZEOF_SHORT * 8) == 32 ! 5353: #define _type short ! 5354: #elif (SIZEOF_INT * 8) == 32 ! 5355: #define _type int ! 5356: #else ! 5357: #define _type long ! 5358: #endif ! 5359: char try_align_buffer[sizeof(_type) * 2]; ! 5360: int min_align, try_align, status; ! 5361: _type value; ! 5362: FILE *f=fopen("conftestval", "w"); ! 5363: if (!f) exit(1); ! 5364: min_align = sizeof(_type); ! 5365: for(try_align = sizeof(_type); try_align-- > 1;) { ! 5366: switch(fork()) { ! 5367: case -1: exit(1); ! 5368: case 0: value = *((_type *) &try_align_buffer[try_align]); ! 5369: fprintf(stderr, "%d\n", (int) value); exit(0); ! 5370: default: break; ! 5371: } ! 5372: wait(&status); ! 5373: if (!status && try_align < min_align) { ! 5374: min_align = try_align; ! 5375: } ! 5376: } ! 5377: fprintf(f, "%d\n", min_align * 8); ! 5378: exit(0); ! 5379: } ! 5380: _ACEOF ! 5381: rm -f conftest$ac_exeext ! 5382: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5383: (eval $ac_link) 2>&5 ! 5384: ac_status=$? ! 5385: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5386: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5387: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5388: (eval $ac_try) 2>&5 ! 5389: ac_status=$? ! 5390: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5391: (exit $ac_status); }; }; then ! 5392: ac_cv_alignof_int32_t=`cat conftestval` ! 5393: else ! 5394: echo "$as_me: program exited with status $ac_status" >&5 ! 5395: echo "$as_me: failed program was:" >&5 ! 5396: sed 's/^/| /' conftest.$ac_ext >&5 ! 5397: ! 5398: ( exit $ac_status ) ! 5399: ac_cv_alignof_int32_t=32 ! 5400: fi ! 5401: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5402: fi ! 5403: fi ! 5404: ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8` ! 5405: echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5 ! 5406: echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6 ! 5407: ! 5408: cat >>confdefs.h <<_ACEOF ! 5409: #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t ! 5410: _ACEOF ! 5411: ! 5412: ! 5413: echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5 ! 5414: echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6 ! 5415: if test "${ac_cv_alignof_int16_t+set}" = set; then ! 5416: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5417: else ! 5418: if test "$cross_compiling" = yes; then ! 5419: ac_cv_alignof_int16_t=16 ! 5420: else ! 5421: cat >conftest.$ac_ext <<_ACEOF ! 5422: #line $LINENO "configure" ! 5423: /* confdefs.h. */ ! 5424: _ACEOF ! 5425: cat confdefs.h >>conftest.$ac_ext ! 5426: cat >>conftest.$ac_ext <<_ACEOF ! 5427: /* end confdefs.h. */ ! 5428: #include <stdio.h> ! 5429: #include <sys/types.h> ! 5430: main() ! 5431: { ! 5432: #if (SIZEOF_SHORT * 8) == 16 ! 5433: #define _type short ! 5434: #elif (SIZEOF_INT * 8) == 16 ! 5435: #define _type int ! 5436: #else ! 5437: #define _type long ! 5438: #endif ! 5439: char try_align_buffer[sizeof(_type) * 2]; ! 5440: int min_align, try_align, status; ! 5441: _type value; ! 5442: FILE *f=fopen("conftestval", "w"); ! 5443: if (!f) exit(1); ! 5444: min_align = sizeof(_type); ! 5445: for(try_align = sizeof(_type); try_align-- > 1;) { ! 5446: switch(fork()) { ! 5447: case -1: exit(1); ! 5448: case 0: value = *((_type *) &try_align_buffer[try_align]); ! 5449: fprintf(stderr, "%d\n", (int) value); exit(0); ! 5450: default: break; ! 5451: } ! 5452: wait(&status); ! 5453: if (!status && try_align < min_align) { ! 5454: min_align = try_align; ! 5455: } ! 5456: } ! 5457: fprintf(f, "%d\n", min_align * 8); ! 5458: exit(0); ! 5459: } ! 5460: _ACEOF ! 5461: rm -f conftest$ac_exeext ! 5462: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5463: (eval $ac_link) 2>&5 ! 5464: ac_status=$? ! 5465: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5466: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5468: (eval $ac_try) 2>&5 ! 5469: ac_status=$? ! 5470: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5471: (exit $ac_status); }; }; then ! 5472: ac_cv_alignof_int16_t=`cat conftestval` ! 5473: else ! 5474: echo "$as_me: program exited with status $ac_status" >&5 ! 5475: echo "$as_me: failed program was:" >&5 ! 5476: sed 's/^/| /' conftest.$ac_ext >&5 ! 5477: ! 5478: ( exit $ac_status ) ! 5479: ac_cv_alignof_int16_t=16 ! 5480: fi ! 5481: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5482: fi ! 5483: fi ! 5484: ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8` ! 5485: echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5 ! 5486: echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6 ! 5487: ! 5488: cat >>confdefs.h <<_ACEOF ! 5489: #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t ! 5490: _ACEOF ! 5491: ! 5492: ! 5493: echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5 ! 5494: echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6 ! 5495: if test "${ac_cv_shiftmax_int8_t+set}" = set; then ! 5496: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5497: else ! 5498: if test "$cross_compiling" = yes; then ! 5499: ac_cv_shiftmax_int8_t=8 ! 5500: else ! 5501: cat >conftest.$ac_ext <<_ACEOF ! 5502: #line $LINENO "configure" ! 5503: /* confdefs.h. */ ! 5504: _ACEOF ! 5505: cat confdefs.h >>conftest.$ac_ext ! 5506: cat >>conftest.$ac_ext <<_ACEOF ! 5507: /* end confdefs.h. */ ! 5508: #include <stdio.h> ! 5509: #include <sys/types.h> ! 5510: main() ! 5511: { ! 5512: #if 8 == 8 ! 5513: #define _type char ! 5514: #elif (SIZEOF_SHORT * 8) == 8 ! 5515: #define _type short ! 5516: #elif (SIZEOF_INT * 8) == 8 ! 5517: #define _type int ! 5518: #elif (SIZEOF_LONG * 8) == 8 ! 5519: #define _type long ! 5520: #endif ! 5521: _type center, right, left; ! 5522: unsigned int shift, max_shift; ! 5523: FILE *f=fopen("conftestval", "w"); ! 5524: if (!f) exit(1); ! 5525: center = 3 << ((sizeof(center) * 4) - 1); ! 5526: max_shift = 2047; ! 5527: for (shift = (sizeof(center) * 8); ! 5528: shift < 2048; ! 5529: shift <<= 1) { ! 5530: right = (center >> shift); ! 5531: left = (center << shift); ! 5532: if (right != 0 ! 5533: || left != 0) { ! 5534: right = (center >> (shift | 1)); ! 5535: left = (center << (shift | 1)); ! 5536: max_shift = ((right == (center >> 1) ! 5537: && left == (center << 1)) ! 5538: ? shift - 1 ! 5539: : (sizeof(center) * 8) - 1); ! 5540: break; ! 5541: } ! 5542: } ! 5543: fprintf(f, "%d\n", max_shift + 1); ! 5544: exit(0); ! 5545: } ! 5546: _ACEOF ! 5547: rm -f conftest$ac_exeext ! 5548: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5549: (eval $ac_link) 2>&5 ! 5550: ac_status=$? ! 5551: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5552: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5553: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5554: (eval $ac_try) 2>&5 ! 5555: ac_status=$? ! 5556: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5557: (exit $ac_status); }; }; then ! 5558: ac_cv_shiftmax_int8_t=`cat conftestval` ! 5559: else ! 5560: echo "$as_me: program exited with status $ac_status" >&5 ! 5561: echo "$as_me: failed program was:" >&5 ! 5562: sed 's/^/| /' conftest.$ac_ext >&5 ! 5563: ! 5564: ( exit $ac_status ) ! 5565: ac_cv_shiftmax_int8_t=8 ! 5566: fi ! 5567: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5568: fi ! 5569: fi ! 5570: ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1` ! 5571: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5 ! 5572: echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6 ! 5573: ! 5574: cat >>confdefs.h <<_ACEOF ! 5575: #define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t ! 5576: _ACEOF ! 5577: ! 5578: ! 5579: echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5 ! 5580: echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6 ! 5581: if test "${ac_cv_shiftmax_int16_t+set}" = set; then ! 5582: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5583: else ! 5584: if test "$cross_compiling" = yes; then ! 5585: ac_cv_shiftmax_int16_t=16 ! 5586: else ! 5587: cat >conftest.$ac_ext <<_ACEOF ! 5588: #line $LINENO "configure" ! 5589: /* confdefs.h. */ ! 5590: _ACEOF ! 5591: cat confdefs.h >>conftest.$ac_ext ! 5592: cat >>conftest.$ac_ext <<_ACEOF ! 5593: /* end confdefs.h. */ ! 5594: #include <stdio.h> ! 5595: #include <sys/types.h> ! 5596: main() ! 5597: { ! 5598: #if 8 == 16 ! 5599: #define _type char ! 5600: #elif (SIZEOF_SHORT * 8) == 16 ! 5601: #define _type short ! 5602: #elif (SIZEOF_INT * 8) == 16 ! 5603: #define _type int ! 5604: #elif (SIZEOF_LONG * 8) == 16 ! 5605: #define _type long ! 5606: #endif ! 5607: _type center, right, left; ! 5608: unsigned int shift, max_shift; ! 5609: FILE *f=fopen("conftestval", "w"); ! 5610: if (!f) exit(1); ! 5611: center = 3 << ((sizeof(center) * 4) - 1); ! 5612: max_shift = 2047; ! 5613: for (shift = (sizeof(center) * 8); ! 5614: shift < 2048; ! 5615: shift <<= 1) { ! 5616: right = (center >> shift); ! 5617: left = (center << shift); ! 5618: if (right != 0 ! 5619: || left != 0) { ! 5620: right = (center >> (shift | 1)); ! 5621: left = (center << (shift | 1)); ! 5622: max_shift = ((right == (center >> 1) ! 5623: && left == (center << 1)) ! 5624: ? shift - 1 ! 5625: : (sizeof(center) * 8) - 1); ! 5626: break; ! 5627: } ! 5628: } ! 5629: fprintf(f, "%d\n", max_shift + 1); ! 5630: exit(0); ! 5631: } ! 5632: _ACEOF ! 5633: rm -f conftest$ac_exeext ! 5634: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5635: (eval $ac_link) 2>&5 ! 5636: ac_status=$? ! 5637: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5638: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5639: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5640: (eval $ac_try) 2>&5 ! 5641: ac_status=$? ! 5642: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5643: (exit $ac_status); }; }; then ! 5644: ac_cv_shiftmax_int16_t=`cat conftestval` ! 5645: else ! 5646: echo "$as_me: program exited with status $ac_status" >&5 ! 5647: echo "$as_me: failed program was:" >&5 ! 5648: sed 's/^/| /' conftest.$ac_ext >&5 ! 5649: ! 5650: ( exit $ac_status ) ! 5651: ac_cv_shiftmax_int16_t=16 ! 5652: fi ! 5653: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5654: fi ! 5655: fi ! 5656: ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1` ! 5657: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5 ! 5658: echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6 ! 5659: ! 5660: cat >>confdefs.h <<_ACEOF ! 5661: #define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t ! 5662: _ACEOF ! 5663: ! 5664: ! 5665: echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5 ! 5666: echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6 ! 5667: if test "${ac_cv_shiftmax_int32_t+set}" = set; then ! 5668: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5669: else ! 5670: if test "$cross_compiling" = yes; then ! 5671: ac_cv_shiftmax_int32_t=32 ! 5672: else ! 5673: cat >conftest.$ac_ext <<_ACEOF ! 5674: #line $LINENO "configure" ! 5675: /* confdefs.h. */ ! 5676: _ACEOF ! 5677: cat confdefs.h >>conftest.$ac_ext ! 5678: cat >>conftest.$ac_ext <<_ACEOF ! 5679: /* end confdefs.h. */ ! 5680: #include <stdio.h> ! 5681: #include <sys/types.h> ! 5682: main() ! 5683: { ! 5684: #if 8 == 32 ! 5685: #define _type char ! 5686: #elif (SIZEOF_SHORT * 8) == 32 ! 5687: #define _type short ! 5688: #elif (SIZEOF_INT * 8) == 32 ! 5689: #define _type int ! 5690: #elif (SIZEOF_LONG * 8) == 32 ! 5691: #define _type long ! 5692: #endif ! 5693: _type center, right, left; ! 5694: unsigned int shift, max_shift; ! 5695: FILE *f=fopen("conftestval", "w"); ! 5696: if (!f) exit(1); ! 5697: center = 3 << ((sizeof(center) * 4) - 1); ! 5698: max_shift = 2047; ! 5699: for (shift = (sizeof(center) * 8); ! 5700: shift < 2048; ! 5701: shift <<= 1) { ! 5702: right = (center >> shift); ! 5703: left = (center << shift); ! 5704: if (right != 0 ! 5705: || left != 0) { ! 5706: right = (center >> (shift | 1)); ! 5707: left = (center << (shift | 1)); ! 5708: max_shift = ((right == (center >> 1) ! 5709: && left == (center << 1)) ! 5710: ? shift - 1 ! 5711: : (sizeof(center) * 8) - 1); ! 5712: break; ! 5713: } ! 5714: } ! 5715: fprintf(f, "%d\n", max_shift + 1); ! 5716: exit(0); ! 5717: } ! 5718: _ACEOF ! 5719: rm -f conftest$ac_exeext ! 5720: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5721: (eval $ac_link) 2>&5 ! 5722: ac_status=$? ! 5723: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5724: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5725: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5726: (eval $ac_try) 2>&5 ! 5727: ac_status=$? ! 5728: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5729: (exit $ac_status); }; }; then ! 5730: ac_cv_shiftmax_int32_t=`cat conftestval` ! 5731: else ! 5732: echo "$as_me: program exited with status $ac_status" >&5 ! 5733: echo "$as_me: failed program was:" >&5 ! 5734: sed 's/^/| /' conftest.$ac_ext >&5 ! 5735: ! 5736: ( exit $ac_status ) ! 5737: ac_cv_shiftmax_int32_t=32 ! 5738: fi ! 5739: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5740: fi ! 5741: fi ! 5742: ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1` ! 5743: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5 ! 5744: echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6 ! 5745: ! 5746: cat >>confdefs.h <<_ACEOF ! 5747: #define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t ! 5748: _ACEOF ! 5749: ! 5750: ! 5751: echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 ! 5752: echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 ! 5753: if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then ! 5754: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5755: else ! 5756: cat >conftest.$ac_ext <<_ACEOF ! 5757: #line $LINENO "configure" ! 5758: /* confdefs.h. */ ! 5759: _ACEOF ! 5760: cat confdefs.h >>conftest.$ac_ext ! 5761: cat >>conftest.$ac_ext <<_ACEOF ! 5762: /* end confdefs.h. */ ! 5763: ! 5764: #include <sys/types.h> ! 5765: #include <sys/socket.h> ! 5766: ! 5767: int ! 5768: main () ! 5769: { ! 5770: ! 5771: int length; ! 5772: struct sockaddr sock; ! 5773: length = sock.sa_len; ! 5774: ! 5775: ; ! 5776: return 0; ! 5777: } ! 5778: _ACEOF ! 5779: rm -f conftest.$ac_objext ! 5780: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5781: (eval $ac_compile) 2>&5 ! 5782: ac_status=$? ! 5783: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5784: (exit $ac_status); } && ! 5785: { ac_try='test -s conftest.$ac_objext' ! 5786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5787: (eval $ac_try) 2>&5 ! 5788: ac_status=$? ! 5789: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5790: (exit $ac_status); }; }; then ! 5791: ac_cv_sys_sockaddr_sa_len=yes ! 5792: else ! 5793: echo "$as_me: failed program was:" >&5 ! 5794: sed 's/^/| /' conftest.$ac_ext >&5 ! 5795: ! 5796: ac_cv_sys_sockaddr_sa_len=no ! 5797: fi ! 5798: rm -f conftest.$ac_objext conftest.$ac_ext ! 5799: fi ! 5800: if test $ac_cv_sys_sockaddr_sa_len = yes; then ! 5801: echo "$as_me:$LINENO: result: yes" >&5 ! 5802: echo "${ECHO_T}yes" >&6 ! 5803: ! 5804: cat >>confdefs.h <<_ACEOF ! 5805: #define HAVE_SOCKADDR_SA_LEN ! 5806: _ACEOF ! 5807: ! 5808: else ! 5809: echo "$as_me:$LINENO: result: no" >&5 ! 5810: echo "${ECHO_T}no" >&6 ! 5811: fi ! 5812: ! 5813: ! 5814: if test $ac_cv_c_compiler_gnu = yes; then ! 5815: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 ! 5816: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 ! 5817: if test "${ac_cv_prog_gcc_traditional+set}" = set; then ! 5818: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5819: else ! 5820: ac_pattern="Autoconf.*'x'" ! 5821: cat >conftest.$ac_ext <<_ACEOF ! 5822: #line $LINENO "configure" ! 5823: /* confdefs.h. */ ! 5824: _ACEOF ! 5825: cat confdefs.h >>conftest.$ac_ext ! 5826: cat >>conftest.$ac_ext <<_ACEOF ! 5827: /* end confdefs.h. */ ! 5828: #include <sgtty.h> ! 5829: Autoconf TIOCGETP ! 5830: _ACEOF ! 5831: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 5832: $EGREP "$ac_pattern" >/dev/null 2>&1; then ! 5833: ac_cv_prog_gcc_traditional=yes ! 5834: else ! 5835: ac_cv_prog_gcc_traditional=no ! 5836: fi ! 5837: rm -f conftest* ! 5838: ! 5839: ! 5840: if test $ac_cv_prog_gcc_traditional = no; then ! 5841: cat >conftest.$ac_ext <<_ACEOF ! 5842: #line $LINENO "configure" ! 5843: /* confdefs.h. */ ! 5844: _ACEOF ! 5845: cat confdefs.h >>conftest.$ac_ext ! 5846: cat >>conftest.$ac_ext <<_ACEOF ! 5847: /* end confdefs.h. */ ! 5848: #include <termio.h> ! 5849: Autoconf TCGETA ! 5850: _ACEOF ! 5851: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 5852: $EGREP "$ac_pattern" >/dev/null 2>&1; then ! 5853: ac_cv_prog_gcc_traditional=yes ! 5854: fi ! 5855: rm -f conftest* ! 5856: ! 5857: fi ! 5858: fi ! 5859: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 ! 5860: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 ! 5861: if test $ac_cv_prog_gcc_traditional = yes; then ! 5862: CC="$CC -traditional" ! 5863: fi ! 5864: fi ! 5865: ! 5866: echo "$as_me:$LINENO: checking for working memcmp" >&5 ! 5867: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 ! 5868: if test "${ac_cv_func_memcmp_working+set}" = set; then ! 5869: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5870: else ! 5871: if test "$cross_compiling" = yes; then ! 5872: ac_cv_func_memcmp_working=no ! 5873: else ! 5874: cat >conftest.$ac_ext <<_ACEOF ! 5875: #line $LINENO "configure" ! 5876: /* confdefs.h. */ ! 5877: _ACEOF ! 5878: cat confdefs.h >>conftest.$ac_ext ! 5879: cat >>conftest.$ac_ext <<_ACEOF ! 5880: /* end confdefs.h. */ ! 5881: ! 5882: int ! 5883: main () ! 5884: { ! 5885: ! 5886: /* Some versions of memcmp are not 8-bit clean. */ ! 5887: char c0 = 0x40, c1 = 0x80, c2 = 0x81; ! 5888: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) ! 5889: exit (1); ! 5890: ! 5891: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes ! 5892: or more and with at least one buffer not starting on a 4-byte boundary. ! 5893: William Lewis provided this test program. */ ! 5894: { ! 5895: char foo[21]; ! 5896: char bar[21]; ! 5897: int i; ! 5898: for (i = 0; i < 4; i++) ! 5899: { ! 5900: char *a = foo + i; ! 5901: char *b = bar + i; ! 5902: strcpy (a, "--------01111111"); ! 5903: strcpy (b, "--------10000000"); ! 5904: if (memcmp (a, b, 16) >= 0) ! 5905: exit (1); ! 5906: } ! 5907: exit (0); ! 5908: } ! 5909: ! 5910: ; ! 5911: return 0; ! 5912: } ! 5913: _ACEOF ! 5914: rm -f conftest$ac_exeext ! 5915: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5916: (eval $ac_link) 2>&5 ! 5917: ac_status=$? ! 5918: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5919: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 5920: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5921: (eval $ac_try) 2>&5 ! 5922: ac_status=$? ! 5923: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5924: (exit $ac_status); }; }; then ! 5925: ac_cv_func_memcmp_working=yes ! 5926: else ! 5927: echo "$as_me: program exited with status $ac_status" >&5 ! 5928: echo "$as_me: failed program was:" >&5 ! 5929: sed 's/^/| /' conftest.$ac_ext >&5 ! 5930: ! 5931: ( exit $ac_status ) ! 5932: ac_cv_func_memcmp_working=no ! 5933: fi ! 5934: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 5935: fi ! 5936: fi ! 5937: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 ! 5938: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 ! 5939: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" ! 5940: ! 5941: ! 5942: ! 5943: for ac_header in stdlib.h unistd.h ! 5944: do ! 5945: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 5946: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 5947: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 5948: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 5949: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 5950: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5951: fi ! 5952: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 5953: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 5954: else ! 5955: # Is the header compilable? ! 5956: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 5957: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 5958: cat >conftest.$ac_ext <<_ACEOF ! 5959: #line $LINENO "configure" ! 5960: /* confdefs.h. */ ! 5961: _ACEOF ! 5962: cat confdefs.h >>conftest.$ac_ext ! 5963: cat >>conftest.$ac_ext <<_ACEOF ! 5964: /* end confdefs.h. */ ! 5965: $ac_includes_default ! 5966: #include <$ac_header> ! 5967: _ACEOF ! 5968: rm -f conftest.$ac_objext ! 5969: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5970: (eval $ac_compile) 2>&5 ! 5971: ac_status=$? ! 5972: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5973: (exit $ac_status); } && ! 5974: { ac_try='test -s conftest.$ac_objext' ! 5975: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5976: (eval $ac_try) 2>&5 ! 5977: ac_status=$? ! 5978: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5979: (exit $ac_status); }; }; then ! 5980: ac_header_compiler=yes ! 5981: else ! 5982: echo "$as_me: failed program was:" >&5 ! 5983: sed 's/^/| /' conftest.$ac_ext >&5 ! 5984: ! 5985: ac_header_compiler=no ! 5986: fi ! 5987: rm -f conftest.$ac_objext conftest.$ac_ext ! 5988: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 5989: echo "${ECHO_T}$ac_header_compiler" >&6 ! 5990: ! 5991: # Is the header present? ! 5992: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 5993: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 5994: cat >conftest.$ac_ext <<_ACEOF ! 5995: #line $LINENO "configure" ! 5996: /* confdefs.h. */ ! 5997: _ACEOF ! 5998: cat confdefs.h >>conftest.$ac_ext ! 5999: cat >>conftest.$ac_ext <<_ACEOF ! 6000: /* end confdefs.h. */ ! 6001: #include <$ac_header> ! 6002: _ACEOF ! 6003: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 6004: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 6005: ac_status=$? ! 6006: grep -v '^ *+' conftest.er1 >conftest.err ! 6007: rm -f conftest.er1 ! 6008: cat conftest.err >&5 ! 6009: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6010: (exit $ac_status); } >/dev/null; then ! 6011: if test -s conftest.err; then ! 6012: ac_cpp_err=$ac_c_preproc_warn_flag ! 6013: else ! 6014: ac_cpp_err= ! 6015: fi ! 6016: else ! 6017: ac_cpp_err=yes ! 6018: fi ! 6019: if test -z "$ac_cpp_err"; then ! 6020: ac_header_preproc=yes ! 6021: else ! 6022: echo "$as_me: failed program was:" >&5 ! 6023: sed 's/^/| /' conftest.$ac_ext >&5 ! 6024: ! 6025: ac_header_preproc=no ! 6026: fi ! 6027: rm -f conftest.err conftest.$ac_ext ! 6028: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 6029: echo "${ECHO_T}$ac_header_preproc" >&6 ! 6030: ! 6031: # So? What about this header? ! 6032: case $ac_header_compiler:$ac_header_preproc in ! 6033: yes:no ) ! 6034: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 6035: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 6036: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 6037: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 6038: ( ! 6039: cat <<\_ASBOX ! 6040: ## ------------------------------------ ## ! 6041: ## Report this to [email protected]. ## ! 6042: ## ------------------------------------ ## ! 6043: _ASBOX ! 6044: ) | ! 6045: sed "s/^/$as_me: WARNING: /" >&2 ! 6046: ;; ! 6047: no:yes ) ! 6048: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 6049: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 6050: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 6051: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 6052: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 6053: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 6054: ( ! 6055: cat <<\_ASBOX ! 6056: ## ------------------------------------ ## ! 6057: ## Report this to [email protected]. ## ! 6058: ## ------------------------------------ ## ! 6059: _ASBOX ! 6060: ) | ! 6061: sed "s/^/$as_me: WARNING: /" >&2 ! 6062: ;; ! 6063: esac ! 6064: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 6065: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 6066: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 6067: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6068: else ! 6069: eval "$as_ac_Header=$ac_header_preproc" ! 6070: fi ! 6071: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 6072: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 6073: ! 6074: fi ! 6075: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 6076: cat >>confdefs.h <<_ACEOF ! 6077: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 6078: _ACEOF ! 6079: ! 6080: fi ! 6081: ! 6082: done ! 6083: ! 6084: ! 6085: for ac_func in getpagesize ! 6086: do ! 6087: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 6088: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 6089: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 6090: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 6091: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6092: else ! 6093: cat >conftest.$ac_ext <<_ACEOF ! 6094: #line $LINENO "configure" ! 6095: /* confdefs.h. */ ! 6096: _ACEOF ! 6097: cat confdefs.h >>conftest.$ac_ext ! 6098: cat >>conftest.$ac_ext <<_ACEOF ! 6099: /* end confdefs.h. */ ! 6100: /* System header to define __stub macros and hopefully few prototypes, ! 6101: which can conflict with char $ac_func (); below. ! 6102: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 6103: <limits.h> exists even on freestanding compilers. */ ! 6104: #ifdef __STDC__ ! 6105: # include <limits.h> ! 6106: #else ! 6107: # include <assert.h> ! 6108: #endif ! 6109: /* Override any gcc2 internal prototype to avoid an error. */ ! 6110: #ifdef __cplusplus ! 6111: extern "C" ! 6112: { ! 6113: #endif ! 6114: /* We use char because int might match the return type of a gcc2 ! 6115: builtin and then its argument prototype would still apply. */ ! 6116: char $ac_func (); ! 6117: /* The GNU C library defines this for functions which it implements ! 6118: to always fail with ENOSYS. Some functions are actually named ! 6119: something starting with __ and the normal name is an alias. */ ! 6120: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 6121: choke me ! 6122: #else ! 6123: char (*f) () = $ac_func; ! 6124: #endif ! 6125: #ifdef __cplusplus ! 6126: } ! 6127: #endif ! 6128: ! 6129: int ! 6130: main () ! 6131: { ! 6132: return f != $ac_func; ! 6133: ; ! 6134: return 0; ! 6135: } ! 6136: _ACEOF ! 6137: rm -f conftest.$ac_objext conftest$ac_exeext ! 6138: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 6139: (eval $ac_link) 2>&5 ! 6140: ac_status=$? ! 6141: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6142: (exit $ac_status); } && ! 6143: { ac_try='test -s conftest$ac_exeext' ! 6144: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 6145: (eval $ac_try) 2>&5 ! 6146: ac_status=$? ! 6147: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6148: (exit $ac_status); }; }; then ! 6149: eval "$as_ac_var=yes" ! 6150: else ! 6151: echo "$as_me: failed program was:" >&5 ! 6152: sed 's/^/| /' conftest.$ac_ext >&5 ! 6153: ! 6154: eval "$as_ac_var=no" ! 6155: fi ! 6156: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 6157: fi ! 6158: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 6159: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 6160: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 6161: cat >>confdefs.h <<_ACEOF ! 6162: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 6163: _ACEOF ! 6164: ! 6165: fi ! 6166: done ! 6167: ! 6168: echo "$as_me:$LINENO: checking for working mmap" >&5 ! 6169: echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 ! 6170: if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then ! 6171: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6172: else ! 6173: if test "$cross_compiling" = yes; then ! 6174: ac_cv_func_mmap_fixed_mapped=no ! 6175: else ! 6176: cat >conftest.$ac_ext <<_ACEOF ! 6177: #line $LINENO "configure" ! 6178: /* confdefs.h. */ ! 6179: _ACEOF ! 6180: cat confdefs.h >>conftest.$ac_ext ! 6181: cat >>conftest.$ac_ext <<_ACEOF ! 6182: /* end confdefs.h. */ ! 6183: $ac_includes_default ! 6184: /* malloc might have been renamed as rpl_malloc. */ ! 6185: #undef malloc ! 6186: ! 6187: /* Thanks to Mike Haertel and Jim Avera for this test. ! 6188: Here is a matrix of mmap possibilities: ! 6189: mmap private not fixed ! 6190: mmap private fixed at somewhere currently unmapped ! 6191: mmap private fixed at somewhere already mapped ! 6192: mmap shared not fixed ! 6193: mmap shared fixed at somewhere currently unmapped ! 6194: mmap shared fixed at somewhere already mapped ! 6195: For private mappings, we should verify that changes cannot be read() ! 6196: back from the file, nor mmap's back from the file at a different ! 6197: address. (There have been systems where private was not correctly ! 6198: implemented like the infamous i386 svr4.0, and systems where the ! 6199: VM page cache was not coherent with the file system buffer cache ! 6200: like early versions of FreeBSD and possibly contemporary NetBSD.) ! 6201: For shared mappings, we should conversely verify that changes get ! 6202: propagated back to all the places they're supposed to be. ! 6203: ! 6204: Grep wants private fixed already mapped. ! 6205: The main things grep needs to know about mmap are: ! 6206: * does it exist and is it safe to write into the mmap'd area ! 6207: * how to use it (BSD variants) */ ! 6208: ! 6209: #include <fcntl.h> ! 6210: #include <sys/mman.h> ! 6211: ! 6212: #if !STDC_HEADERS && !HAVE_STDLIB_H ! 6213: char *malloc (); ! 6214: #endif ! 6215: ! 6216: /* This mess was copied from the GNU getpagesize.h. */ ! 6217: #if !HAVE_GETPAGESIZE ! 6218: /* Assume that all systems that can run configure have sys/param.h. */ ! 6219: # if !HAVE_SYS_PARAM_H ! 6220: # define HAVE_SYS_PARAM_H 1 ! 6221: # endif ! 6222: ! 6223: # ifdef _SC_PAGESIZE ! 6224: # define getpagesize() sysconf(_SC_PAGESIZE) ! 6225: # else /* no _SC_PAGESIZE */ ! 6226: # if HAVE_SYS_PARAM_H ! 6227: # include <sys/param.h> ! 6228: # ifdef EXEC_PAGESIZE ! 6229: # define getpagesize() EXEC_PAGESIZE ! 6230: # else /* no EXEC_PAGESIZE */ ! 6231: # ifdef NBPG ! 6232: # define getpagesize() NBPG * CLSIZE ! 6233: # ifndef CLSIZE ! 6234: # define CLSIZE 1 ! 6235: # endif /* no CLSIZE */ ! 6236: # else /* no NBPG */ ! 6237: # ifdef NBPC ! 6238: # define getpagesize() NBPC ! 6239: # else /* no NBPC */ ! 6240: # ifdef PAGESIZE ! 6241: # define getpagesize() PAGESIZE ! 6242: # endif /* PAGESIZE */ ! 6243: # endif /* no NBPC */ ! 6244: # endif /* no NBPG */ ! 6245: # endif /* no EXEC_PAGESIZE */ ! 6246: # else /* no HAVE_SYS_PARAM_H */ ! 6247: # define getpagesize() 8192 /* punt totally */ ! 6248: # endif /* no HAVE_SYS_PARAM_H */ ! 6249: # endif /* no _SC_PAGESIZE */ ! 6250: ! 6251: #endif /* no HAVE_GETPAGESIZE */ ! 6252: ! 6253: int ! 6254: main () ! 6255: { ! 6256: char *data, *data2, *data3; ! 6257: int i, pagesize; ! 6258: int fd; ! 6259: ! 6260: pagesize = getpagesize (); ! 6261: ! 6262: /* First, make a file with some known garbage in it. */ ! 6263: data = (char *) malloc (pagesize); ! 6264: if (!data) ! 6265: exit (1); ! 6266: for (i = 0; i < pagesize; ++i) ! 6267: *(data + i) = rand (); ! 6268: umask (0); ! 6269: fd = creat ("conftest.mmap", 0600); ! 6270: if (fd < 0) ! 6271: exit (1); ! 6272: if (write (fd, data, pagesize) != pagesize) ! 6273: exit (1); ! 6274: close (fd); ! 6275: ! 6276: /* Next, try to mmap the file at a fixed address which already has ! 6277: something else allocated at it. If we can, also make sure that ! 6278: we see the same garbage. */ ! 6279: fd = open ("conftest.mmap", O_RDWR); ! 6280: if (fd < 0) ! 6281: exit (1); ! 6282: data2 = (char *) malloc (2 * pagesize); ! 6283: if (!data2) ! 6284: exit (1); ! 6285: data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); ! 6286: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, ! 6287: MAP_PRIVATE | MAP_FIXED, fd, 0L)) ! 6288: exit (1); ! 6289: for (i = 0; i < pagesize; ++i) ! 6290: if (*(data + i) != *(data2 + i)) ! 6291: exit (1); ! 6292: ! 6293: /* Finally, make sure that changes to the mapped area do not ! 6294: percolate back to the file as seen by read(). (This is a bug on ! 6295: some variants of i386 svr4.0.) */ ! 6296: for (i = 0; i < pagesize; ++i) ! 6297: *(data2 + i) = *(data2 + i) + 1; ! 6298: data3 = (char *) malloc (pagesize); ! 6299: if (!data3) ! 6300: exit (1); ! 6301: if (read (fd, data3, pagesize) != pagesize) ! 6302: exit (1); ! 6303: for (i = 0; i < pagesize; ++i) ! 6304: if (*(data + i) != *(data3 + i)) ! 6305: exit (1); ! 6306: close (fd); ! 6307: exit (0); ! 6308: } ! 6309: _ACEOF ! 6310: rm -f conftest$ac_exeext ! 6311: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 6312: (eval $ac_link) 2>&5 ! 6313: ac_status=$? ! 6314: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6315: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 6316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 6317: (eval $ac_try) 2>&5 ! 6318: ac_status=$? ! 6319: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6320: (exit $ac_status); }; }; then ! 6321: ac_cv_func_mmap_fixed_mapped=yes ! 6322: else ! 6323: echo "$as_me: program exited with status $ac_status" >&5 ! 6324: echo "$as_me: failed program was:" >&5 ! 6325: sed 's/^/| /' conftest.$ac_ext >&5 ! 6326: ! 6327: ( exit $ac_status ) ! 6328: ac_cv_func_mmap_fixed_mapped=no ! 6329: fi ! 6330: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 6331: fi ! 6332: fi ! 6333: echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 ! 6334: echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 ! 6335: if test $ac_cv_func_mmap_fixed_mapped = yes; then ! 6336: ! 6337: cat >>confdefs.h <<\_ACEOF ! 6338: #define HAVE_MMAP 1 ! 6339: _ACEOF ! 6340: ! 6341: fi ! 6342: rm -f conftest.mmap ! 6343: ! 6344: ! 6345: for ac_prog in perl4.036 perl4 perl perl5 ! 6346: do ! 6347: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 6348: set dummy $ac_prog; ac_word=$2 ! 6349: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 6350: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 6351: if test "${ac_cv_path_PERL+set}" = set; then ! 6352: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6353: else ! 6354: case $PERL in ! 6355: [\\/]* | ?:[\\/]*) ! 6356: ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ! 6357: ;; ! 6358: *) ! 6359: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 6360: for as_dir in $PATH ! 6361: do ! 6362: IFS=$as_save_IFS ! 6363: test -z "$as_dir" && as_dir=. ! 6364: for ac_exec_ext in '' $ac_executable_extensions; do ! 6365: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 6366: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" ! 6367: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 6368: break 2 ! 6369: fi ! 6370: done ! 6371: done ! 6372: ! 6373: ;; ! 6374: esac ! 6375: fi ! 6376: PERL=$ac_cv_path_PERL ! 6377: ! 6378: if test -n "$PERL"; then ! 6379: echo "$as_me:$LINENO: result: $PERL" >&5 ! 6380: echo "${ECHO_T}$PERL" >&6 ! 6381: else ! 6382: echo "$as_me:$LINENO: result: no" >&5 ! 6383: echo "${ECHO_T}no" >&6 ! 6384: fi ! 6385: ! 6386: test -n "$PERL" && break ! 6387: done ! 6388: test -n "$PERL" || PERL="no" ! 6389: ! 6390: ! 6391: ! 6392: echo "$as_me:$LINENO: checking for AF_LINK support" >&5 ! 6393: echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6 ! 6394: cat >conftest.$ac_ext <<_ACEOF ! 6395: #line $LINENO "configure" ! 6396: /* confdefs.h. */ ! 6397: _ACEOF ! 6398: cat confdefs.h >>conftest.$ac_ext ! 6399: cat >>conftest.$ac_ext <<_ACEOF ! 6400: /* end confdefs.h. */ ! 6401: ! 6402: #include <sys/socket.h> ! 6403: #ifdef AF_LINK ! 6404: _tme_has_af_link ! 6405: #endif ! 6406: ! 6407: _ACEOF ! 6408: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 6409: $EGREP "_tme_has_af_link" >/dev/null 2>&1; then ! 6410: ! 6411: echo "$as_me:$LINENO: result: yes" >&5 ! 6412: echo "${ECHO_T}yes" >&6 ! 6413: ! 6414: cat >>confdefs.h <<\_ACEOF ! 6415: #define HAVE_AF_LINK ! 6416: _ACEOF ! 6417: ! 6418: ! 6419: else ! 6420: ! 6421: echo "$as_me:$LINENO: result: no" >&5 ! 6422: echo "${ECHO_T}no" >&6 ! 6423: ! 6424: fi ! 6425: rm -f conftest* ! 6426: ! 6427: ! 6428: tme_raw_type= ! 6429: if test "${ac_cv_header_net_bpf_h+set}" = set; then ! 6430: echo "$as_me:$LINENO: checking for net/bpf.h" >&5 ! 6431: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6 ! 6432: if test "${ac_cv_header_net_bpf_h+set}" = set; then ! 6433: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6434: fi ! 6435: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 ! 6436: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6 ! 6437: else ! 6438: # Is the header compilable? ! 6439: echo "$as_me:$LINENO: checking net/bpf.h usability" >&5 ! 6440: echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6 ! 6441: cat >conftest.$ac_ext <<_ACEOF ! 6442: #line $LINENO "configure" ! 6443: /* confdefs.h. */ ! 6444: _ACEOF ! 6445: cat confdefs.h >>conftest.$ac_ext ! 6446: cat >>conftest.$ac_ext <<_ACEOF ! 6447: /* end confdefs.h. */ ! 6448: $ac_includes_default ! 6449: #include <net/bpf.h> ! 6450: _ACEOF ! 6451: rm -f conftest.$ac_objext ! 6452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 6453: (eval $ac_compile) 2>&5 ! 6454: ac_status=$? ! 6455: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6456: (exit $ac_status); } && ! 6457: { ac_try='test -s conftest.$ac_objext' ! 6458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 6459: (eval $ac_try) 2>&5 ! 6460: ac_status=$? ! 6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6462: (exit $ac_status); }; }; then ! 6463: ac_header_compiler=yes ! 6464: else ! 6465: echo "$as_me: failed program was:" >&5 ! 6466: sed 's/^/| /' conftest.$ac_ext >&5 ! 6467: ! 6468: ac_header_compiler=no ! 6469: fi ! 6470: rm -f conftest.$ac_objext conftest.$ac_ext ! 6471: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 6472: echo "${ECHO_T}$ac_header_compiler" >&6 ! 6473: ! 6474: # Is the header present? ! 6475: echo "$as_me:$LINENO: checking net/bpf.h presence" >&5 ! 6476: echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6 ! 6477: cat >conftest.$ac_ext <<_ACEOF ! 6478: #line $LINENO "configure" ! 6479: /* confdefs.h. */ ! 6480: _ACEOF ! 6481: cat confdefs.h >>conftest.$ac_ext ! 6482: cat >>conftest.$ac_ext <<_ACEOF ! 6483: /* end confdefs.h. */ ! 6484: #include <net/bpf.h> ! 6485: _ACEOF ! 6486: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 6487: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 6488: ac_status=$? ! 6489: grep -v '^ *+' conftest.er1 >conftest.err ! 6490: rm -f conftest.er1 ! 6491: cat conftest.err >&5 ! 6492: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6493: (exit $ac_status); } >/dev/null; then ! 6494: if test -s conftest.err; then ! 6495: ac_cpp_err=$ac_c_preproc_warn_flag ! 6496: else ! 6497: ac_cpp_err= ! 6498: fi ! 6499: else ! 6500: ac_cpp_err=yes ! 6501: fi ! 6502: if test -z "$ac_cpp_err"; then ! 6503: ac_header_preproc=yes ! 6504: else ! 6505: echo "$as_me: failed program was:" >&5 ! 6506: sed 's/^/| /' conftest.$ac_ext >&5 ! 6507: ! 6508: ac_header_preproc=no ! 6509: fi ! 6510: rm -f conftest.err conftest.$ac_ext ! 6511: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 6512: echo "${ECHO_T}$ac_header_preproc" >&6 ! 6513: ! 6514: # So? What about this header? ! 6515: case $ac_header_compiler:$ac_header_preproc in ! 6516: yes:no ) ! 6517: { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5 ! 6518: echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 6519: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5 ! 6520: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;} ! 6521: ( ! 6522: cat <<\_ASBOX ! 6523: ## ------------------------------------ ## ! 6524: ## Report this to [email protected]. ## ! 6525: ## ------------------------------------ ## ! 6526: _ASBOX ! 6527: ) | ! 6528: sed "s/^/$as_me: WARNING: /" >&2 ! 6529: ;; ! 6530: no:yes ) ! 6531: { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5 ! 6532: echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;} ! 6533: { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5 ! 6534: echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;} ! 6535: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5 ! 6536: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;} ! 6537: ( ! 6538: cat <<\_ASBOX ! 6539: ## ------------------------------------ ## ! 6540: ## Report this to [email protected]. ## ! 6541: ## ------------------------------------ ## ! 6542: _ASBOX ! 6543: ) | ! 6544: sed "s/^/$as_me: WARNING: /" >&2 ! 6545: ;; ! 6546: esac ! 6547: echo "$as_me:$LINENO: checking for net/bpf.h" >&5 ! 6548: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6 ! 6549: if test "${ac_cv_header_net_bpf_h+set}" = set; then ! 6550: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6551: else ! 6552: ac_cv_header_net_bpf_h=$ac_header_preproc ! 6553: fi ! 6554: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 ! 6555: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6 ! 6556: ! 6557: fi ! 6558: if test $ac_cv_header_net_bpf_h = yes; then ! 6559: tme_raw_type=bpf ! 6560: fi ! 6561: ! 6562: ! 6563: echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5 ! 6564: echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6 ! 6565: if test x$tme_raw_type = x; then ! 6566: { { echo "$as_me:$LINENO: error: can't find any raw Ethernet access method" >&5 ! 6567: echo "$as_me: error: can't find any raw Ethernet access method" >&2;} ! 6568: { (exit 1); exit 1; }; } ! 6569: fi ! 6570: echo "$as_me:$LINENO: result: $tme_raw_type" >&5 ! 6571: echo "${ECHO_T}$tme_raw_type" >&6 ! 6572: ! 6573: systems=all ! 6574: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then ! 6575: systems="sun2" ! 6576: fi ! 6577: TME_MACHINE_SUBDIRS= ! 6578: TME_IC_SUBDIRS= ! 6579: TME_ICS= ! 6580: TME_BUS_SUBDIRS= ! 6581: for system in $systems; do ! 6582: ! 6583: # dispatch on the machine type to get more machines, ICs, and ! 6584: # buses to compile: ! 6585: case ${system} in ! 6586: ! 6587: # the sun2: ! 6588: sun2) ! 6589: machines="sun sun2" ! 6590: ics="m68k am9513 mm58167 z8530" ! 6591: buses="multibus" ! 6592: ;; ! 6593: ! 6594: *) ! 6595: { { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5 ! 6596: echo "$as_me: error: don't know how to emulate ${machine}" >&2;} ! 6597: { (exit 1); exit 1; }; } ! 6598: ;; ! 6599: esac ! 6600: ! 6601: # add in the new machines, ICs, and buses to compile: ! 6602: for machine in $machines; do ! 6603: if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else ! 6604: TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}" ! 6605: fi ! 6606: done ! 6607: for ic in $ics; do ! 6608: if test -d ic/$ic; then ! 6609: if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else ! 6610: TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}" ! 6611: fi ! 6612: else ! 6613: ic="tme_ic_${ic}.la" ! 6614: if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else ! 6615: TME_ICS="${TME_ICS} ${ic}" ! 6616: fi ! 6617: fi ! 6618: done ! 6619: for bus in $buses; do ! 6620: if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else ! 6621: TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}" ! 6622: fi ! 6623: done ! 6624: done ! 6625: TME_HOSTS="posix bsd" ! 6626: ! 6627: ! 6628: ! 6629: ! 6630: ! 6631: ! 6632: echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 ! 6633: echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6 ! 6634: if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then ! 6635: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6636: else ! 6637: ac_check_lib_save_LIBS=$LIBS ! 6638: LIBS="-lltdl $LIBS" ! 6639: cat >conftest.$ac_ext <<_ACEOF ! 6640: #line $LINENO "configure" ! 6641: /* confdefs.h. */ ! 6642: _ACEOF ! 6643: cat confdefs.h >>conftest.$ac_ext ! 6644: cat >>conftest.$ac_ext <<_ACEOF ! 6645: /* end confdefs.h. */ ! 6646: ! 6647: /* Override any gcc2 internal prototype to avoid an error. */ ! 6648: #ifdef __cplusplus ! 6649: extern "C" ! 6650: #endif ! 6651: /* We use char because int might match the return type of a gcc2 ! 6652: builtin and then its argument prototype would still apply. */ ! 6653: char lt_dlinit (); ! 6654: int ! 6655: main () ! 6656: { ! 6657: lt_dlinit (); ! 6658: ; ! 6659: return 0; ! 6660: } ! 6661: _ACEOF ! 6662: rm -f conftest.$ac_objext conftest$ac_exeext ! 6663: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 6664: (eval $ac_link) 2>&5 ! 6665: ac_status=$? ! 6666: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6667: (exit $ac_status); } && ! 6668: { ac_try='test -s conftest$ac_exeext' ! 6669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 6670: (eval $ac_try) 2>&5 ! 6671: ac_status=$? ! 6672: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 6673: (exit $ac_status); }; }; then ! 6674: ac_cv_lib_ltdl_lt_dlinit=yes ! 6675: else ! 6676: echo "$as_me: failed program was:" >&5 ! 6677: sed 's/^/| /' conftest.$ac_ext >&5 ! 6678: ! 6679: ac_cv_lib_ltdl_lt_dlinit=no ! 6680: fi ! 6681: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 6682: LIBS=$ac_check_lib_save_LIBS ! 6683: fi ! 6684: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 ! 6685: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6 ! 6686: if test $ac_cv_lib_ltdl_lt_dlinit = yes; then ! 6687: test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no ! 6688: else ! 6689: if test x"$enable_ltdl_install" = xno; then ! 6690: { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5 ! 6691: echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} ! 6692: else ! 6693: enable_ltdl_install=yes ! 6694: fi ! 6695: ! 6696: fi ! 6697: ! 6698: if test x"$enable_ltdl_install" = x"yes"; then ! 6699: ac_configure_args="$ac_configure_args --enable-ltdl-install" ! 6700: LIBLTDL='${top_builddir}/''libltdl'/libltdl.la ! 6701: LTDLINCL='-I${top_srcdir}/''libltdl' ! 6702: else ! 6703: ac_configure_args="$ac_configure_args --enable-ltdl-install=no" ! 6704: LIBLTDL="-lltdl" ! 6705: LTDLINCL= ! 6706: fi ! 6707: # For backwards non-gettext consistent compatibility... ! 6708: INCLTDL="$LTDLINCL" ! 6709: ! 6710: ! 6711: ! 6712: ! 6713: ! 6714: # Check whether --enable-shared or --disable-shared was given. ! 6715: if test "${enable_shared+set}" = set; then ! 6716: enableval="$enable_shared" ! 6717: p=${PACKAGE-default} ! 6718: case $enableval in ! 6719: yes) enable_shared=yes ;; ! 6720: no) enable_shared=no ;; ! 6721: *) ! 6722: enable_shared=no ! 6723: # Look at the argument we got. We use all the common list separators. ! 6724: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 6725: for pkg in $enableval; do ! 6726: IFS="$lt_save_ifs" ! 6727: if test "X$pkg" = "X$p"; then ! 6728: enable_shared=yes ! 6729: fi ! 6730: done ! 6731: IFS="$lt_save_ifs" ! 6732: ;; ! 6733: esac ! 6734: else ! 6735: enable_shared=yes ! 6736: fi; ! 6737: ! 6738: # Check whether --enable-static or --disable-static was given. ! 6739: if test "${enable_static+set}" = set; then ! 6740: enableval="$enable_static" ! 6741: p=${PACKAGE-default} ! 6742: case $enableval in ! 6743: yes) enable_static=yes ;; ! 6744: no) enable_static=no ;; ! 6745: *) ! 6746: enable_static=no ! 6747: # Look at the argument we got. We use all the common list separators. ! 6748: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 6749: for pkg in $enableval; do ! 6750: IFS="$lt_save_ifs" ! 6751: if test "X$pkg" = "X$p"; then ! 6752: enable_static=yes ! 6753: fi ! 6754: done ! 6755: IFS="$lt_save_ifs" ! 6756: ;; ! 6757: esac ! 6758: else ! 6759: enable_static=yes ! 6760: fi; ! 6761: ! 6762: # Check whether --enable-fast-install or --disable-fast-install was given. ! 6763: if test "${enable_fast_install+set}" = set; then ! 6764: enableval="$enable_fast_install" ! 6765: p=${PACKAGE-default} ! 6766: case $enableval in ! 6767: yes) enable_fast_install=yes ;; ! 6768: no) enable_fast_install=no ;; ! 6769: *) ! 6770: enable_fast_install=no ! 6771: # Look at the argument we got. We use all the common list separators. ! 6772: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 6773: for pkg in $enableval; do ! 6774: IFS="$lt_save_ifs" ! 6775: if test "X$pkg" = "X$p"; then ! 6776: enable_fast_install=yes ! 6777: fi ! 6778: done ! 6779: IFS="$lt_save_ifs" ! 6780: ;; ! 6781: esac ! 6782: else ! 6783: enable_fast_install=yes ! 6784: fi; ! 6785: ! 6786: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 ! 6787: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 ! 6788: if test "${lt_cv_path_SED+set}" = set; then ! 6789: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6790: else ! 6791: # Loop through the user's path and test for sed and gsed. ! 6792: # Then use that list of sed's as ones to test for truncation. ! 6793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 6794: for as_dir in $PATH ! 6795: do ! 6796: IFS=$as_save_IFS ! 6797: test -z "$as_dir" && as_dir=. ! 6798: for lt_ac_prog in sed gsed; do ! 6799: for ac_exec_ext in '' $ac_executable_extensions; do ! 6800: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then ! 6801: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" ! 6802: fi ! 6803: done ! 6804: done ! 6805: done ! 6806: lt_ac_max=0 ! 6807: lt_ac_count=0 ! 6808: # Add /usr/xpg4/bin/sed as it is typically found on Solaris ! 6809: # along with /bin/sed that truncates output. ! 6810: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do ! 6811: test ! -f $lt_ac_sed && break ! 6812: cat /dev/null > conftest.in ! 6813: lt_ac_count=0 ! 6814: echo $ECHO_N "0123456789$ECHO_C" >conftest.in ! 6815: # Check for GNU sed and select it if it is found. ! 6816: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then ! 6817: lt_cv_path_SED=$lt_ac_sed ! 6818: break ! 6819: fi ! 6820: while true; do ! 6821: cat conftest.in conftest.in >conftest.tmp ! 6822: mv conftest.tmp conftest.in ! 6823: cp conftest.in conftest.nl ! 6824: echo >>conftest.nl ! 6825: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break ! 6826: cmp -s conftest.out conftest.nl || break ! 6827: # 10000 chars as input seems more than enough ! 6828: test $lt_ac_count -gt 10 && break ! 6829: lt_ac_count=`expr $lt_ac_count + 1` ! 6830: if test $lt_ac_count -gt $lt_ac_max; then ! 6831: lt_ac_max=$lt_ac_count ! 6832: lt_cv_path_SED=$lt_ac_sed ! 6833: fi ! 6834: done ! 6835: done ! 6836: SED=$lt_cv_path_SED ! 6837: ! 6838: fi ! 6839: ! 6840: echo "$as_me:$LINENO: result: $SED" >&5 ! 6841: echo "${ECHO_T}$SED" >&6 ! 6842: ! 6843: ! 6844: # Check whether --with-gnu-ld or --without-gnu-ld was given. ! 6845: if test "${with_gnu_ld+set}" = set; then ! 6846: withval="$with_gnu_ld" ! 6847: test "$withval" = no || with_gnu_ld=yes ! 6848: else ! 6849: with_gnu_ld=no ! 6850: fi; ! 6851: ac_prog=ld ! 6852: if test "$GCC" = yes; then ! 6853: # Check if gcc -print-prog-name=ld gives a path. ! 6854: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ! 6855: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 ! 6856: case $host in ! 6857: *-*-mingw*) ! 6858: # gcc leaves a trailing carriage return which upsets mingw ! 6859: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ! 6860: *) ! 6861: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ! 6862: esac ! 6863: case $ac_prog in ! 6864: # Accept absolute paths. ! 6865: [\\/]* | ?:[\\/]*) ! 6866: re_direlt='/[^/][^/]*/\.\./' ! 6867: # Canonicalize the path of ld ! 6868: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` ! 6869: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ! 6870: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` ! 6871: done ! 6872: test -z "$LD" && LD="$ac_prog" ! 6873: ;; ! 6874: "") ! 6875: # If it fails, then pretend we aren't using GCC. ! 6876: ac_prog=ld ! 6877: ;; ! 6878: *) ! 6879: # If it is relative, then search for the first ld in PATH. ! 6880: with_gnu_ld=unknown ! 6881: ;; ! 6882: esac ! 6883: elif test "$with_gnu_ld" = yes; then ! 6884: echo "$as_me:$LINENO: checking for GNU ld" >&5 ! 6885: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 ! 6886: else ! 6887: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ! 6888: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 ! 6889: fi ! 6890: if test "${lt_cv_path_LD+set}" = set; then ! 6891: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6892: else ! 6893: if test -z "$LD"; then ! 6894: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 6895: for ac_dir in $PATH; do ! 6896: IFS="$lt_save_ifs" ! 6897: test -z "$ac_dir" && ac_dir=. ! 6898: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ! 6899: lt_cv_path_LD="$ac_dir/$ac_prog" ! 6900: # Check to see if the program is GNU ld. I'd rather use --version, ! 6901: # but apparently some GNU ld's only accept -v. ! 6902: # Break only if it was the GNU/non-GNU ld that we prefer. ! 6903: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in ! 6904: *GNU* | *'with BFD'*) ! 6905: test "$with_gnu_ld" != no && break ! 6906: ;; ! 6907: *) ! 6908: test "$with_gnu_ld" != yes && break ! 6909: ;; ! 6910: esac ! 6911: fi ! 6912: done ! 6913: IFS="$lt_save_ifs" ! 6914: else ! 6915: lt_cv_path_LD="$LD" # Let the user override the test with a path. ! 6916: fi ! 6917: fi ! 6918: ! 6919: LD="$lt_cv_path_LD" ! 6920: if test -n "$LD"; then ! 6921: echo "$as_me:$LINENO: result: $LD" >&5 ! 6922: echo "${ECHO_T}$LD" >&6 ! 6923: else ! 6924: echo "$as_me:$LINENO: result: no" >&5 ! 6925: echo "${ECHO_T}no" >&6 ! 6926: fi ! 6927: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ! 6928: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ! 6929: { (exit 1); exit 1; }; } ! 6930: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ! 6931: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 ! 6932: if test "${lt_cv_prog_gnu_ld+set}" = set; then ! 6933: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6934: else ! 6935: # I'd rather use --version here, but apparently some GNU ld's only accept -v. ! 6936: case `"$LD" -v 2>&1 </dev/null` in ! 6937: *GNU* | *'with BFD'*) ! 6938: lt_cv_prog_gnu_ld=yes ! 6939: ;; ! 6940: *) ! 6941: lt_cv_prog_gnu_ld=no ! 6942: ;; ! 6943: esac ! 6944: fi ! 6945: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 ! 6946: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 ! 6947: with_gnu_ld=$lt_cv_prog_gnu_ld ! 6948: ! 6949: ! 6950: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 ! 6951: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 ! 6952: if test "${lt_cv_ld_reload_flag+set}" = set; then ! 6953: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6954: else ! 6955: lt_cv_ld_reload_flag='-r' ! 6956: fi ! 6957: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 ! 6958: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 ! 6959: reload_flag=$lt_cv_ld_reload_flag ! 6960: case $reload_flag in ! 6961: "" | " "*) ;; ! 6962: *) reload_flag=" $reload_flag" ;; ! 6963: esac ! 6964: reload_cmds='$LD$reload_flag -o $output$reload_objs' ! 6965: ! 6966: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 ! 6967: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 ! 6968: if test "${lt_cv_path_NM+set}" = set; then ! 6969: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6970: else ! 6971: if test -n "$NM"; then ! 6972: # Let the user override the test. ! 6973: lt_cv_path_NM="$NM" ! 6974: else ! 6975: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 6976: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do ! 6977: IFS="$lt_save_ifs" ! 6978: test -z "$ac_dir" && ac_dir=. ! 6979: tmp_nm="$ac_dir/${ac_tool_prefix}nm" ! 6980: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then ! 6981: # Check to see if the nm accepts a BSD-compat flag. ! 6982: # Adding the `sed 1q' prevents false positives on HP-UX, which says: ! 6983: # nm: unknown option "B" ignored ! 6984: # Tru64's nm complains that /dev/null is an invalid object file ! 6985: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in ! 6986: */dev/null* | *'Invalid file or object type'*) ! 6987: lt_cv_path_NM="$tmp_nm -B" ! 6988: break ! 6989: ;; ! 6990: *) ! 6991: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in ! 6992: */dev/null*) ! 6993: lt_cv_path_NM="$tmp_nm -p" ! 6994: break ! 6995: ;; ! 6996: *) ! 6997: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but ! 6998: continue # so that we can try to find one that supports BSD flags ! 6999: ;; ! 7000: esac ! 7001: esac ! 7002: fi ! 7003: done ! 7004: IFS="$lt_save_ifs" ! 7005: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm ! 7006: fi ! 7007: fi ! 7008: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 ! 7009: echo "${ECHO_T}$lt_cv_path_NM" >&6 ! 7010: NM="$lt_cv_path_NM" ! 7011: ! 7012: echo "$as_me:$LINENO: checking whether ln -s works" >&5 ! 7013: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 ! 7014: LN_S=$as_ln_s ! 7015: if test "$LN_S" = "ln -s"; then ! 7016: echo "$as_me:$LINENO: result: yes" >&5 ! 7017: echo "${ECHO_T}yes" >&6 ! 7018: else ! 7019: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 ! 7020: echo "${ECHO_T}no, using $LN_S" >&6 ! 7021: fi ! 7022: ! 7023: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 ! 7024: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 ! 7025: if test "${lt_cv_deplibs_check_method+set}" = set; then ! 7026: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7027: else ! 7028: lt_cv_file_magic_cmd='$MAGIC_CMD' ! 7029: lt_cv_file_magic_test_file= ! 7030: lt_cv_deplibs_check_method='unknown' ! 7031: # Need to set the preceding variable on all platforms that support ! 7032: # interlibrary dependencies. ! 7033: # 'none' -- dependencies not supported. ! 7034: # `unknown' -- same as none, but documents that we really don't know. ! 7035: # 'pass_all' -- all dependencies passed with no checks. ! 7036: # 'test_compile' -- check by making test program. ! 7037: # 'file_magic [[regex]]' -- check by looking for files in library path ! 7038: # which responds to the $file_magic_cmd with a given extended regex. ! 7039: # If you have `file' or equivalent on your system and you're not sure ! 7040: # whether `pass_all' will *always* work, you probably want this one. ! 7041: ! 7042: case $host_os in ! 7043: aix4* | aix5*) ! 7044: lt_cv_deplibs_check_method=pass_all ! 7045: ;; ! 7046: ! 7047: beos*) ! 7048: lt_cv_deplibs_check_method=pass_all ! 7049: ;; ! 7050: ! 7051: bsdi4*) ! 7052: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' ! 7053: lt_cv_file_magic_cmd='/usr/bin/file -L' ! 7054: lt_cv_file_magic_test_file=/shlib/libc.so ! 7055: ;; ! 7056: ! 7057: cygwin* | mingw* | pw32*) ! 7058: # win32_libid is a shell function defined in ltmain.sh ! 7059: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ! 7060: lt_cv_file_magic_cmd='win32_libid' ! 7061: ;; ! 7062: ! 7063: darwin* | rhapsody*) ! 7064: # this will be overwritten by pass_all, but leave it in just in case ! 7065: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' ! 7066: lt_cv_file_magic_cmd='/usr/bin/file -L' ! 7067: case "$host_os" in ! 7068: rhapsody* | darwin1.[012]) ! 7069: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` ! 7070: ;; ! 7071: *) # Darwin 1.3 on ! 7072: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ! 7073: ;; ! 7074: esac ! 7075: lt_cv_deplibs_check_method=pass_all ! 7076: ;; ! 7077: ! 7078: freebsd*) ! 7079: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then ! 7080: case $host_cpu in ! 7081: i*86 ) ! 7082: # Not sure whether the presence of OpenBSD here was a mistake. ! 7083: # Let's accept both of them until this is cleared up. ! 7084: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' ! 7085: lt_cv_file_magic_cmd=/usr/bin/file ! 7086: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ! 7087: ;; ! 7088: esac ! 7089: else ! 7090: lt_cv_deplibs_check_method=pass_all ! 7091: fi ! 7092: ;; ! 7093: ! 7094: gnu*) ! 7095: lt_cv_deplibs_check_method=pass_all ! 7096: ;; ! 7097: ! 7098: hpux10.20* | hpux11*) ! 7099: lt_cv_file_magic_cmd=/usr/bin/file ! 7100: case "$host_cpu" in ! 7101: ia64*) ! 7102: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' ! 7103: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ! 7104: ;; ! 7105: hppa*64*) ! 7106: 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]' ! 7107: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ! 7108: ;; ! 7109: *) ! 7110: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' ! 7111: lt_cv_file_magic_test_file=/usr/lib/libc.sl ! 7112: ;; ! 7113: esac ! 7114: ;; ! 7115: ! 7116: irix5* | irix6* | nonstopux*) ! 7117: case $host_os in ! 7118: irix5* | nonstopux*) ! 7119: # this will be overridden with pass_all, but let us keep it just in case ! 7120: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ! 7121: ;; ! 7122: *) ! 7123: case $LD in ! 7124: *-32|*"-32 ") libmagic=32-bit;; ! 7125: *-n32|*"-n32 ") libmagic=N32;; ! 7126: *-64|*"-64 ") libmagic=64-bit;; ! 7127: *) libmagic=never-match;; ! 7128: esac ! 7129: # this will be overridden with pass_all, but let us keep it just in case ! 7130: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" ! 7131: ;; ! 7132: esac ! 7133: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` ! 7134: lt_cv_deplibs_check_method=pass_all ! 7135: ;; ! 7136: ! 7137: # This must be Linux ELF. ! 7138: linux*) ! 7139: case $host_cpu in ! 7140: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) ! 7141: lt_cv_deplibs_check_method=pass_all ;; ! 7142: *) ! 7143: # glibc up to 2.1.1 does not perform some relocations on ARM ! 7144: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; ! 7145: esac ! 7146: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ! 7147: ;; ! 7148: ! 7149: netbsd*) ! 7150: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then ! 7151: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ! 7152: else ! 7153: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' ! 7154: fi ! 7155: ;; ! 7156: ! 7157: newos6*) ! 7158: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' ! 7159: lt_cv_file_magic_cmd=/usr/bin/file ! 7160: lt_cv_file_magic_test_file=/usr/lib/libnls.so ! 7161: ;; ! 7162: ! 7163: nto-qnx) ! 7164: lt_cv_deplibs_check_method=unknown ! 7165: ;; ! 7166: ! 7167: openbsd*) ! 7168: lt_cv_file_magic_cmd=/usr/bin/file ! 7169: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ! 7170: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 7171: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' ! 7172: else ! 7173: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' ! 7174: fi ! 7175: ;; ! 7176: ! 7177: osf3* | osf4* | osf5*) ! 7178: # this will be overridden with pass_all, but let us keep it just in case ! 7179: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' ! 7180: lt_cv_file_magic_test_file=/shlib/libc.so ! 7181: lt_cv_deplibs_check_method=pass_all ! 7182: ;; ! 7183: ! 7184: sco3.2v5*) ! 7185: lt_cv_deplibs_check_method=pass_all ! 7186: ;; ! 7187: ! 7188: solaris*) ! 7189: lt_cv_deplibs_check_method=pass_all ! 7190: lt_cv_file_magic_test_file=/lib/libc.so ! 7191: ;; ! 7192: ! 7193: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 7194: case $host_vendor in ! 7195: motorola) ! 7196: 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]' ! 7197: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ! 7198: ;; ! 7199: ncr) ! 7200: lt_cv_deplibs_check_method=pass_all ! 7201: ;; ! 7202: sequent) ! 7203: lt_cv_file_magic_cmd='/bin/file' ! 7204: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ! 7205: ;; ! 7206: sni) ! 7207: lt_cv_file_magic_cmd='/bin/file' ! 7208: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" ! 7209: lt_cv_file_magic_test_file=/lib/libc.so ! 7210: ;; ! 7211: siemens) ! 7212: lt_cv_deplibs_check_method=pass_all ! 7213: ;; ! 7214: esac ! 7215: ;; ! 7216: ! 7217: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) ! 7218: lt_cv_deplibs_check_method=pass_all ! 7219: ;; ! 7220: esac ! 7221: ! 7222: fi ! 7223: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 ! 7224: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 ! 7225: file_magic_cmd=$lt_cv_file_magic_cmd ! 7226: deplibs_check_method=$lt_cv_deplibs_check_method ! 7227: test -z "$deplibs_check_method" && deplibs_check_method=unknown ! 7228: ! 7229: ! 7230: ! 7231: ! 7232: # If no C compiler was specified, use CC. ! 7233: LTCC=${LTCC-"$CC"} ! 7234: ! 7235: # Allow CC to be a program name with arguments. ! 7236: compiler=$CC ! 7237: ! 7238: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. ! 7239: if test "${enable_libtool_lock+set}" = set; then ! 7240: enableval="$enable_libtool_lock" ! 7241: ! 7242: fi; ! 7243: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ! 7244: ! 7245: # Some flags need to be propagated to the compiler or linker for good ! 7246: # libtool support. ! 7247: case $host in ! 7248: ia64-*-hpux*) ! 7249: # Find out which ABI we are using. ! 7250: echo 'int i;' > conftest.$ac_ext ! 7251: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7252: (eval $ac_compile) 2>&5 ! 7253: ac_status=$? ! 7254: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7255: (exit $ac_status); }; then ! 7256: case `/usr/bin/file conftest.$ac_objext` in ! 7257: *ELF-32*) ! 7258: HPUX_IA64_MODE="32" ! 7259: ;; ! 7260: *ELF-64*) ! 7261: HPUX_IA64_MODE="64" ! 7262: ;; ! 7263: esac ! 7264: fi ! 7265: rm -rf conftest* ! 7266: ;; ! 7267: *-*-irix6*) ! 7268: # Find out which ABI we are using. ! 7269: echo '#line 7269 "configure"' > conftest.$ac_ext ! 7270: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7271: (eval $ac_compile) 2>&5 ! 7272: ac_status=$? ! 7273: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7274: (exit $ac_status); }; then ! 7275: if test "$lt_cv_prog_gnu_ld" = yes; then ! 7276: case `/usr/bin/file conftest.$ac_objext` in ! 7277: *32-bit*) ! 7278: LD="${LD-ld} -melf32bsmip" ! 7279: ;; ! 7280: *N32*) ! 7281: LD="${LD-ld} -melf32bmipn32" ! 7282: ;; ! 7283: *64-bit*) ! 7284: LD="${LD-ld} -melf64bmip" ! 7285: ;; ! 7286: esac ! 7287: else ! 7288: case `/usr/bin/file conftest.$ac_objext` in ! 7289: *32-bit*) ! 7290: LD="${LD-ld} -32" ! 7291: ;; ! 7292: *N32*) ! 7293: LD="${LD-ld} -n32" ! 7294: ;; ! 7295: *64-bit*) ! 7296: LD="${LD-ld} -64" ! 7297: ;; ! 7298: esac ! 7299: fi ! 7300: fi ! 7301: rm -rf conftest* ! 7302: ;; ! 7303: ! 7304: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) ! 7305: # Find out which ABI we are using. ! 7306: echo 'int i;' > conftest.$ac_ext ! 7307: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7308: (eval $ac_compile) 2>&5 ! 7309: ac_status=$? ! 7310: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7311: (exit $ac_status); }; then ! 7312: case "`/usr/bin/file conftest.o`" in ! 7313: *32-bit*) ! 7314: case $host in ! 7315: x86_64-*linux*) ! 7316: LD="${LD-ld} -m elf_i386" ! 7317: ;; ! 7318: ppc64-*linux*) ! 7319: LD="${LD-ld} -m elf32ppclinux" ! 7320: ;; ! 7321: s390x-*linux*) ! 7322: LD="${LD-ld} -m elf_s390" ! 7323: ;; ! 7324: sparc64-*linux*) ! 7325: LD="${LD-ld} -m elf32_sparc" ! 7326: ;; ! 7327: esac ! 7328: ;; ! 7329: *64-bit*) ! 7330: case $host in ! 7331: x86_64-*linux*) ! 7332: LD="${LD-ld} -m elf_x86_64" ! 7333: ;; ! 7334: ppc*-*linux*|powerpc*-*linux*) ! 7335: LD="${LD-ld} -m elf64ppc" ! 7336: ;; ! 7337: s390*-*linux*) ! 7338: LD="${LD-ld} -m elf64_s390" ! 7339: ;; ! 7340: sparc*-*linux*) ! 7341: LD="${LD-ld} -m elf64_sparc" ! 7342: ;; ! 7343: esac ! 7344: ;; ! 7345: esac ! 7346: fi ! 7347: rm -rf conftest* ! 7348: ;; ! 7349: ! 7350: *-*-sco3.2v5*) ! 7351: # On SCO OpenServer 5, we need -belf to get full-featured binaries. ! 7352: SAVE_CFLAGS="$CFLAGS" ! 7353: CFLAGS="$CFLAGS -belf" ! 7354: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 ! 7355: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 ! 7356: if test "${lt_cv_cc_needs_belf+set}" = set; then ! 7357: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7358: else ! 7359: ac_ext=c ! 7360: ac_cpp='$CPP $CPPFLAGS' ! 7361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 7362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 7363: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 7364: ! 7365: cat >conftest.$ac_ext <<_ACEOF ! 7366: #line $LINENO "configure" ! 7367: /* confdefs.h. */ ! 7368: _ACEOF ! 7369: cat confdefs.h >>conftest.$ac_ext ! 7370: cat >>conftest.$ac_ext <<_ACEOF ! 7371: /* end confdefs.h. */ ! 7372: ! 7373: int ! 7374: main () ! 7375: { ! 7376: ! 7377: ; ! 7378: return 0; ! 7379: } ! 7380: _ACEOF ! 7381: rm -f conftest.$ac_objext conftest$ac_exeext ! 7382: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 7383: (eval $ac_link) 2>&5 ! 7384: ac_status=$? ! 7385: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7386: (exit $ac_status); } && ! 7387: { ac_try='test -s conftest$ac_exeext' ! 7388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7389: (eval $ac_try) 2>&5 ! 7390: ac_status=$? ! 7391: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7392: (exit $ac_status); }; }; then ! 7393: lt_cv_cc_needs_belf=yes ! 7394: else ! 7395: echo "$as_me: failed program was:" >&5 ! 7396: sed 's/^/| /' conftest.$ac_ext >&5 ! 7397: ! 7398: lt_cv_cc_needs_belf=no ! 7399: fi ! 7400: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 7401: ac_ext=c ! 7402: ac_cpp='$CPP $CPPFLAGS' ! 7403: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 7404: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 7405: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 7406: ! 7407: fi ! 7408: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 ! 7409: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 ! 7410: if test x"$lt_cv_cc_needs_belf" != x"yes"; then ! 7411: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf ! 7412: CFLAGS="$SAVE_CFLAGS" ! 7413: fi ! 7414: ;; ! 7415: ! 7416: esac ! 7417: ! 7418: need_locks="$enable_libtool_lock" ! 7419: ! 7420: ! 7421: ! 7422: for ac_header in dlfcn.h ! 7423: do ! 7424: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 7425: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 7426: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 7427: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 7428: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 7429: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7430: fi ! 7431: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 7432: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 7433: else ! 7434: # Is the header compilable? ! 7435: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 7436: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 7437: cat >conftest.$ac_ext <<_ACEOF ! 7438: #line $LINENO "configure" ! 7439: /* confdefs.h. */ ! 7440: _ACEOF ! 7441: cat confdefs.h >>conftest.$ac_ext ! 7442: cat >>conftest.$ac_ext <<_ACEOF ! 7443: /* end confdefs.h. */ ! 7444: $ac_includes_default ! 7445: #include <$ac_header> ! 7446: _ACEOF ! 7447: rm -f conftest.$ac_objext ! 7448: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7449: (eval $ac_compile) 2>&5 ! 7450: ac_status=$? ! 7451: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7452: (exit $ac_status); } && ! 7453: { ac_try='test -s conftest.$ac_objext' ! 7454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7455: (eval $ac_try) 2>&5 ! 7456: ac_status=$? ! 7457: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7458: (exit $ac_status); }; }; then ! 7459: ac_header_compiler=yes ! 7460: else ! 7461: echo "$as_me: failed program was:" >&5 ! 7462: sed 's/^/| /' conftest.$ac_ext >&5 ! 7463: ! 7464: ac_header_compiler=no ! 7465: fi ! 7466: rm -f conftest.$ac_objext conftest.$ac_ext ! 7467: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 7468: echo "${ECHO_T}$ac_header_compiler" >&6 ! 7469: ! 7470: # Is the header present? ! 7471: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 7472: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 7473: cat >conftest.$ac_ext <<_ACEOF ! 7474: #line $LINENO "configure" ! 7475: /* confdefs.h. */ ! 7476: _ACEOF ! 7477: cat confdefs.h >>conftest.$ac_ext ! 7478: cat >>conftest.$ac_ext <<_ACEOF ! 7479: /* end confdefs.h. */ ! 7480: #include <$ac_header> ! 7481: _ACEOF ! 7482: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 7483: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 7484: ac_status=$? ! 7485: grep -v '^ *+' conftest.er1 >conftest.err ! 7486: rm -f conftest.er1 ! 7487: cat conftest.err >&5 ! 7488: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7489: (exit $ac_status); } >/dev/null; then ! 7490: if test -s conftest.err; then ! 7491: ac_cpp_err=$ac_c_preproc_warn_flag ! 7492: else ! 7493: ac_cpp_err= ! 7494: fi ! 7495: else ! 7496: ac_cpp_err=yes ! 7497: fi ! 7498: if test -z "$ac_cpp_err"; then ! 7499: ac_header_preproc=yes ! 7500: else ! 7501: echo "$as_me: failed program was:" >&5 ! 7502: sed 's/^/| /' conftest.$ac_ext >&5 ! 7503: ! 7504: ac_header_preproc=no ! 7505: fi ! 7506: rm -f conftest.err conftest.$ac_ext ! 7507: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 7508: echo "${ECHO_T}$ac_header_preproc" >&6 ! 7509: ! 7510: # So? What about this header? ! 7511: case $ac_header_compiler:$ac_header_preproc in ! 7512: yes:no ) ! 7513: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 7514: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 7515: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 7516: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 7517: ( ! 7518: cat <<\_ASBOX ! 7519: ## ------------------------------------ ## ! 7520: ## Report this to [email protected]. ## ! 7521: ## ------------------------------------ ## ! 7522: _ASBOX ! 7523: ) | ! 7524: sed "s/^/$as_me: WARNING: /" >&2 ! 7525: ;; ! 7526: no:yes ) ! 7527: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 7528: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 7529: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 7530: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 7531: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 7532: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 7533: ( ! 7534: cat <<\_ASBOX ! 7535: ## ------------------------------------ ## ! 7536: ## Report this to [email protected]. ## ! 7537: ## ------------------------------------ ## ! 7538: _ASBOX ! 7539: ) | ! 7540: sed "s/^/$as_me: WARNING: /" >&2 ! 7541: ;; ! 7542: esac ! 7543: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 7544: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 7545: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 7546: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7547: else ! 7548: eval "$as_ac_Header=$ac_header_preproc" ! 7549: fi ! 7550: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 7551: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 7552: ! 7553: fi ! 7554: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 7555: cat >>confdefs.h <<_ACEOF ! 7556: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 7557: _ACEOF ! 7558: ! 7559: fi ! 7560: ! 7561: done ! 7562: ! 7563: ac_ext=cc ! 7564: ac_cpp='$CXXCPP $CPPFLAGS' ! 7565: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 7566: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 7567: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 7568: if test -n "$ac_tool_prefix"; then ! 7569: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC ! 7570: do ! 7571: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 7572: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 7573: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 7574: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 7575: if test "${ac_cv_prog_CXX+set}" = set; then ! 7576: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7577: else ! 7578: if test -n "$CXX"; then ! 7579: ac_cv_prog_CXX="$CXX" # Let the user override the test. ! 7580: else ! 7581: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 7582: for as_dir in $PATH ! 7583: do ! 7584: IFS=$as_save_IFS ! 7585: test -z "$as_dir" && as_dir=. ! 7586: for ac_exec_ext in '' $ac_executable_extensions; do ! 7587: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 7588: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ! 7589: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 7590: break 2 ! 7591: fi ! 7592: done ! 7593: done ! 7594: ! 7595: fi ! 7596: fi ! 7597: CXX=$ac_cv_prog_CXX ! 7598: if test -n "$CXX"; then ! 7599: echo "$as_me:$LINENO: result: $CXX" >&5 ! 7600: echo "${ECHO_T}$CXX" >&6 ! 7601: else ! 7602: echo "$as_me:$LINENO: result: no" >&5 ! 7603: echo "${ECHO_T}no" >&6 ! 7604: fi ! 7605: ! 7606: test -n "$CXX" && break ! 7607: done ! 7608: fi ! 7609: if test -z "$CXX"; then ! 7610: ac_ct_CXX=$CXX ! 7611: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC ! 7612: do ! 7613: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 7614: set dummy $ac_prog; ac_word=$2 ! 7615: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 7616: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 7617: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ! 7618: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7619: else ! 7620: if test -n "$ac_ct_CXX"; then ! 7621: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ! 7622: else ! 7623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 7624: for as_dir in $PATH ! 7625: do ! 7626: IFS=$as_save_IFS ! 7627: test -z "$as_dir" && as_dir=. ! 7628: for ac_exec_ext in '' $ac_executable_extensions; do ! 7629: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 7630: ac_cv_prog_ac_ct_CXX="$ac_prog" ! 7631: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 7632: break 2 ! 7633: fi ! 7634: done ! 7635: done ! 7636: ! 7637: fi ! 7638: fi ! 7639: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ! 7640: if test -n "$ac_ct_CXX"; then ! 7641: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ! 7642: echo "${ECHO_T}$ac_ct_CXX" >&6 ! 7643: else ! 7644: echo "$as_me:$LINENO: result: no" >&5 ! 7645: echo "${ECHO_T}no" >&6 ! 7646: fi ! 7647: ! 7648: test -n "$ac_ct_CXX" && break ! 7649: done ! 7650: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" ! 7651: ! 7652: CXX=$ac_ct_CXX ! 7653: fi ! 7654: ! 7655: ! 7656: # Provide some information about the compiler. ! 7657: echo "$as_me:$LINENO:" \ ! 7658: "checking for C++ compiler version" >&5 ! 7659: ac_compiler=`set X $ac_compile; echo $2` ! 7660: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 7661: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 7662: ac_status=$? ! 7663: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7664: (exit $ac_status); } ! 7665: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 7666: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 7667: ac_status=$? ! 7668: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7669: (exit $ac_status); } ! 7670: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 7671: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 7672: ac_status=$? ! 7673: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7674: (exit $ac_status); } ! 7675: ! 7676: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ! 7677: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 ! 7678: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ! 7679: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7680: else ! 7681: cat >conftest.$ac_ext <<_ACEOF ! 7682: #line $LINENO "configure" ! 7683: /* confdefs.h. */ ! 7684: _ACEOF ! 7685: cat confdefs.h >>conftest.$ac_ext ! 7686: cat >>conftest.$ac_ext <<_ACEOF ! 7687: /* end confdefs.h. */ ! 7688: ! 7689: int ! 7690: main () ! 7691: { ! 7692: #ifndef __GNUC__ ! 7693: choke me ! 7694: #endif ! 7695: ! 7696: ; ! 7697: return 0; ! 7698: } ! 7699: _ACEOF ! 7700: rm -f conftest.$ac_objext ! 7701: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7702: (eval $ac_compile) 2>&5 ! 7703: ac_status=$? ! 7704: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7705: (exit $ac_status); } && ! 7706: { ac_try='test -s conftest.$ac_objext' ! 7707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7708: (eval $ac_try) 2>&5 ! 7709: ac_status=$? ! 7710: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7711: (exit $ac_status); }; }; then ! 7712: ac_compiler_gnu=yes ! 7713: else ! 7714: echo "$as_me: failed program was:" >&5 ! 7715: sed 's/^/| /' conftest.$ac_ext >&5 ! 7716: ! 7717: ac_compiler_gnu=no ! 7718: fi ! 7719: rm -f conftest.$ac_objext conftest.$ac_ext ! 7720: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ! 7721: ! 7722: fi ! 7723: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ! 7724: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 ! 7725: GXX=`test $ac_compiler_gnu = yes && echo yes` ! 7726: ac_test_CXXFLAGS=${CXXFLAGS+set} ! 7727: ac_save_CXXFLAGS=$CXXFLAGS ! 7728: CXXFLAGS="-g" ! 7729: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ! 7730: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 ! 7731: if test "${ac_cv_prog_cxx_g+set}" = set; then ! 7732: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7733: else ! 7734: cat >conftest.$ac_ext <<_ACEOF ! 7735: #line $LINENO "configure" ! 7736: /* confdefs.h. */ ! 7737: _ACEOF ! 7738: cat confdefs.h >>conftest.$ac_ext ! 7739: cat >>conftest.$ac_ext <<_ACEOF ! 7740: /* end confdefs.h. */ ! 7741: ! 7742: int ! 7743: main () ! 7744: { ! 7745: ! 7746: ; ! 7747: return 0; ! 7748: } ! 7749: _ACEOF ! 7750: rm -f conftest.$ac_objext ! 7751: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7752: (eval $ac_compile) 2>&5 ! 7753: ac_status=$? ! 7754: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7755: (exit $ac_status); } && ! 7756: { ac_try='test -s conftest.$ac_objext' ! 7757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7758: (eval $ac_try) 2>&5 ! 7759: ac_status=$? ! 7760: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7761: (exit $ac_status); }; }; then ! 7762: ac_cv_prog_cxx_g=yes ! 7763: else ! 7764: echo "$as_me: failed program was:" >&5 ! 7765: sed 's/^/| /' conftest.$ac_ext >&5 ! 7766: ! 7767: ac_cv_prog_cxx_g=no ! 7768: fi ! 7769: rm -f conftest.$ac_objext conftest.$ac_ext ! 7770: fi ! 7771: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ! 7772: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 ! 7773: if test "$ac_test_CXXFLAGS" = set; then ! 7774: CXXFLAGS=$ac_save_CXXFLAGS ! 7775: elif test $ac_cv_prog_cxx_g = yes; then ! 7776: if test "$GXX" = yes; then ! 7777: CXXFLAGS="-g -O2" ! 7778: else ! 7779: CXXFLAGS="-g" ! 7780: fi ! 7781: else ! 7782: if test "$GXX" = yes; then ! 7783: CXXFLAGS="-O2" ! 7784: else ! 7785: CXXFLAGS= ! 7786: fi ! 7787: fi ! 7788: for ac_declaration in \ ! 7789: ''\ ! 7790: '#include <stdlib.h>' \ ! 7791: 'extern "C" void std::exit (int) throw (); using std::exit;' \ ! 7792: 'extern "C" void std::exit (int); using std::exit;' \ ! 7793: 'extern "C" void exit (int) throw ();' \ ! 7794: 'extern "C" void exit (int);' \ ! 7795: 'void exit (int);' ! 7796: do ! 7797: cat >conftest.$ac_ext <<_ACEOF ! 7798: #line $LINENO "configure" ! 7799: /* confdefs.h. */ ! 7800: _ACEOF ! 7801: cat confdefs.h >>conftest.$ac_ext ! 7802: cat >>conftest.$ac_ext <<_ACEOF ! 7803: /* end confdefs.h. */ ! 7804: #include <stdlib.h> ! 7805: $ac_declaration ! 7806: int ! 7807: main () ! 7808: { ! 7809: exit (42); ! 7810: ; ! 7811: return 0; ! 7812: } ! 7813: _ACEOF ! 7814: rm -f conftest.$ac_objext ! 7815: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7816: (eval $ac_compile) 2>&5 ! 7817: ac_status=$? ! 7818: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7819: (exit $ac_status); } && ! 7820: { ac_try='test -s conftest.$ac_objext' ! 7821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7822: (eval $ac_try) 2>&5 ! 7823: ac_status=$? ! 7824: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7825: (exit $ac_status); }; }; then ! 7826: : ! 7827: else ! 7828: echo "$as_me: failed program was:" >&5 ! 7829: sed 's/^/| /' conftest.$ac_ext >&5 ! 7830: ! 7831: continue ! 7832: fi ! 7833: rm -f conftest.$ac_objext conftest.$ac_ext ! 7834: cat >conftest.$ac_ext <<_ACEOF ! 7835: #line $LINENO "configure" ! 7836: /* confdefs.h. */ ! 7837: _ACEOF ! 7838: cat confdefs.h >>conftest.$ac_ext ! 7839: cat >>conftest.$ac_ext <<_ACEOF ! 7840: /* end confdefs.h. */ ! 7841: $ac_declaration ! 7842: int ! 7843: main () ! 7844: { ! 7845: exit (42); ! 7846: ; ! 7847: return 0; ! 7848: } ! 7849: _ACEOF ! 7850: rm -f conftest.$ac_objext ! 7851: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7852: (eval $ac_compile) 2>&5 ! 7853: ac_status=$? ! 7854: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7855: (exit $ac_status); } && ! 7856: { ac_try='test -s conftest.$ac_objext' ! 7857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7858: (eval $ac_try) 2>&5 ! 7859: ac_status=$? ! 7860: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7861: (exit $ac_status); }; }; then ! 7862: break ! 7863: else ! 7864: echo "$as_me: failed program was:" >&5 ! 7865: sed 's/^/| /' conftest.$ac_ext >&5 ! 7866: ! 7867: fi ! 7868: rm -f conftest.$ac_objext conftest.$ac_ext ! 7869: done ! 7870: rm -f conftest* ! 7871: if test -n "$ac_declaration"; then ! 7872: echo '#ifdef __cplusplus' >>confdefs.h ! 7873: echo $ac_declaration >>confdefs.h ! 7874: echo '#endif' >>confdefs.h ! 7875: fi ! 7876: ! 7877: ac_ext=cc ! 7878: ac_cpp='$CXXCPP $CPPFLAGS' ! 7879: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 7880: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 7881: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 7882: ! 7883: depcc="$CXX" am_compiler_list= ! 7884: ! 7885: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ! 7886: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ! 7887: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ! 7888: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7889: else ! 7890: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ! 7891: # We make a subdir and do the tests there. Otherwise we can end up ! 7892: # making bogus files that we don't know about and never remove. For ! 7893: # instance it was reported that on HP-UX the gcc test will end up ! 7894: # making a dummy file named `D' -- because `-MD' means `put the output ! 7895: # in D'. ! 7896: mkdir conftest.dir ! 7897: # Copy depcomp to subdir because otherwise we won't find it if we're ! 7898: # using a relative directory. ! 7899: cp "$am_depcomp" conftest.dir ! 7900: cd conftest.dir ! 7901: ! 7902: am_cv_CXX_dependencies_compiler_type=none ! 7903: if test "$am_compiler_list" = ""; then ! 7904: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ! 7905: fi ! 7906: for depmode in $am_compiler_list; do ! 7907: # We need to recreate these files for each test, as the compiler may ! 7908: # overwrite some of them when testing with obscure command lines. ! 7909: # This happens at least with the AIX C compiler. ! 7910: echo '#include "conftest.h"' > conftest.c ! 7911: echo 'int i;' > conftest.h ! 7912: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf ! 7913: ! 7914: case $depmode in ! 7915: nosideeffect) ! 7916: # after this tag, mechanisms are not by side-effect, so they'll ! 7917: # only be used when explicitly requested ! 7918: if test "x$enable_dependency_tracking" = xyes; then ! 7919: continue ! 7920: else ! 7921: break ! 7922: fi ! 7923: ;; ! 7924: none) break ;; ! 7925: esac ! 7926: # We check with `-c' and `-o' for the sake of the "dashmstdout" ! 7927: # mode. It turns out that the SunPro C++ compiler does not properly ! 7928: # handle `-M -o', and we need to detect this. ! 7929: if depmode=$depmode \ ! 7930: source=conftest.c object=conftest.o \ ! 7931: depfile=conftest.Po tmpdepfile=conftest.TPo \ ! 7932: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && ! 7933: grep conftest.h conftest.Po > /dev/null 2>&1 && ! 7934: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ! 7935: am_cv_CXX_dependencies_compiler_type=$depmode ! 7936: break ! 7937: fi ! 7938: done ! 7939: ! 7940: cd .. ! 7941: rm -rf conftest.dir ! 7942: else ! 7943: am_cv_CXX_dependencies_compiler_type=none ! 7944: fi ! 7945: ! 7946: fi ! 7947: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ! 7948: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 ! 7949: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ! 7950: ! 7951: ! 7952: ! 7953: if ! 7954: test "x$enable_dependency_tracking" != xno \ ! 7955: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ! 7956: am__fastdepCXX_TRUE= ! 7957: am__fastdepCXX_FALSE='#' ! 7958: else ! 7959: am__fastdepCXX_TRUE='#' ! 7960: am__fastdepCXX_FALSE= ! 7961: fi ! 7962: ! 7963: ! 7964: ac_ext=cc ! 7965: ac_cpp='$CXXCPP $CPPFLAGS' ! 7966: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 7967: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 7968: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 7969: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ! 7970: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 ! 7971: if test -z "$CXXCPP"; then ! 7972: if test "${ac_cv_prog_CXXCPP+set}" = set; then ! 7973: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 7974: else ! 7975: # Double quotes because CXXCPP needs to be expanded ! 7976: for CXXCPP in "$CXX -E" "/lib/cpp" ! 7977: do ! 7978: ac_preproc_ok=false ! 7979: for ac_cxx_preproc_warn_flag in '' yes ! 7980: do ! 7981: # Use a header file that comes with gcc, so configuring glibc ! 7982: # with a fresh cross-compiler works. ! 7983: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 7984: # <limits.h> exists even on freestanding compilers. ! 7985: # On the NeXT, cc -E runs the code through the compiler's parser, ! 7986: # not just through cpp. "Syntax error" is here to catch this case. ! 7987: cat >conftest.$ac_ext <<_ACEOF ! 7988: #line $LINENO "configure" ! 7989: /* confdefs.h. */ ! 7990: _ACEOF ! 7991: cat confdefs.h >>conftest.$ac_ext ! 7992: cat >>conftest.$ac_ext <<_ACEOF ! 7993: /* end confdefs.h. */ ! 7994: #ifdef __STDC__ ! 7995: # include <limits.h> ! 7996: #else ! 7997: # include <assert.h> ! 7998: #endif ! 7999: Syntax error ! 8000: _ACEOF ! 8001: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 8002: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 8003: ac_status=$? ! 8004: grep -v '^ *+' conftest.er1 >conftest.err ! 8005: rm -f conftest.er1 ! 8006: cat conftest.err >&5 ! 8007: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8008: (exit $ac_status); } >/dev/null; then ! 8009: if test -s conftest.err; then ! 8010: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 8011: else ! 8012: ac_cpp_err= ! 8013: fi ! 8014: else ! 8015: ac_cpp_err=yes ! 8016: fi ! 8017: if test -z "$ac_cpp_err"; then ! 8018: : ! 8019: else ! 8020: echo "$as_me: failed program was:" >&5 ! 8021: sed 's/^/| /' conftest.$ac_ext >&5 ! 8022: ! 8023: # Broken: fails on valid input. ! 8024: continue ! 8025: fi ! 8026: rm -f conftest.err conftest.$ac_ext ! 8027: ! 8028: # OK, works on sane cases. Now check whether non-existent headers ! 8029: # can be detected and how. ! 8030: cat >conftest.$ac_ext <<_ACEOF ! 8031: #line $LINENO "configure" ! 8032: /* confdefs.h. */ ! 8033: _ACEOF ! 8034: cat confdefs.h >>conftest.$ac_ext ! 8035: cat >>conftest.$ac_ext <<_ACEOF ! 8036: /* end confdefs.h. */ ! 8037: #include <ac_nonexistent.h> ! 8038: _ACEOF ! 8039: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 8040: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 8041: ac_status=$? ! 8042: grep -v '^ *+' conftest.er1 >conftest.err ! 8043: rm -f conftest.er1 ! 8044: cat conftest.err >&5 ! 8045: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8046: (exit $ac_status); } >/dev/null; then ! 8047: if test -s conftest.err; then ! 8048: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 8049: else ! 8050: ac_cpp_err= ! 8051: fi ! 8052: else ! 8053: ac_cpp_err=yes ! 8054: fi ! 8055: if test -z "$ac_cpp_err"; then ! 8056: # Broken: success on invalid input. ! 8057: continue ! 8058: else ! 8059: echo "$as_me: failed program was:" >&5 ! 8060: sed 's/^/| /' conftest.$ac_ext >&5 ! 8061: ! 8062: # Passes both tests. ! 8063: ac_preproc_ok=: ! 8064: break ! 8065: fi ! 8066: rm -f conftest.err conftest.$ac_ext ! 8067: ! 8068: done ! 8069: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 8070: rm -f conftest.err conftest.$ac_ext ! 8071: if $ac_preproc_ok; then ! 8072: break ! 8073: fi ! 8074: ! 8075: done ! 8076: ac_cv_prog_CXXCPP=$CXXCPP ! 8077: ! 8078: fi ! 8079: CXXCPP=$ac_cv_prog_CXXCPP ! 8080: else ! 8081: ac_cv_prog_CXXCPP=$CXXCPP ! 8082: fi ! 8083: echo "$as_me:$LINENO: result: $CXXCPP" >&5 ! 8084: echo "${ECHO_T}$CXXCPP" >&6 ! 8085: ac_preproc_ok=false ! 8086: for ac_cxx_preproc_warn_flag in '' yes ! 8087: do ! 8088: # Use a header file that comes with gcc, so configuring glibc ! 8089: # with a fresh cross-compiler works. ! 8090: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 8091: # <limits.h> exists even on freestanding compilers. ! 8092: # On the NeXT, cc -E runs the code through the compiler's parser, ! 8093: # not just through cpp. "Syntax error" is here to catch this case. ! 8094: cat >conftest.$ac_ext <<_ACEOF ! 8095: #line $LINENO "configure" ! 8096: /* confdefs.h. */ ! 8097: _ACEOF ! 8098: cat confdefs.h >>conftest.$ac_ext ! 8099: cat >>conftest.$ac_ext <<_ACEOF ! 8100: /* end confdefs.h. */ ! 8101: #ifdef __STDC__ ! 8102: # include <limits.h> ! 8103: #else ! 8104: # include <assert.h> ! 8105: #endif ! 8106: Syntax error ! 8107: _ACEOF ! 8108: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 8109: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 8110: ac_status=$? ! 8111: grep -v '^ *+' conftest.er1 >conftest.err ! 8112: rm -f conftest.er1 ! 8113: cat conftest.err >&5 ! 8114: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8115: (exit $ac_status); } >/dev/null; then ! 8116: if test -s conftest.err; then ! 8117: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 8118: else ! 8119: ac_cpp_err= ! 8120: fi ! 8121: else ! 8122: ac_cpp_err=yes ! 8123: fi ! 8124: if test -z "$ac_cpp_err"; then ! 8125: : ! 8126: else ! 8127: echo "$as_me: failed program was:" >&5 ! 8128: sed 's/^/| /' conftest.$ac_ext >&5 ! 8129: ! 8130: # Broken: fails on valid input. ! 8131: continue ! 8132: fi ! 8133: rm -f conftest.err conftest.$ac_ext ! 8134: ! 8135: # OK, works on sane cases. Now check whether non-existent headers ! 8136: # can be detected and how. ! 8137: cat >conftest.$ac_ext <<_ACEOF ! 8138: #line $LINENO "configure" ! 8139: /* confdefs.h. */ ! 8140: _ACEOF ! 8141: cat confdefs.h >>conftest.$ac_ext ! 8142: cat >>conftest.$ac_ext <<_ACEOF ! 8143: /* end confdefs.h. */ ! 8144: #include <ac_nonexistent.h> ! 8145: _ACEOF ! 8146: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 8147: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 8148: ac_status=$? ! 8149: grep -v '^ *+' conftest.er1 >conftest.err ! 8150: rm -f conftest.er1 ! 8151: cat conftest.err >&5 ! 8152: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8153: (exit $ac_status); } >/dev/null; then ! 8154: if test -s conftest.err; then ! 8155: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 8156: else ! 8157: ac_cpp_err= ! 8158: fi ! 8159: else ! 8160: ac_cpp_err=yes ! 8161: fi ! 8162: if test -z "$ac_cpp_err"; then ! 8163: # Broken: success on invalid input. ! 8164: continue ! 8165: else ! 8166: echo "$as_me: failed program was:" >&5 ! 8167: sed 's/^/| /' conftest.$ac_ext >&5 ! 8168: ! 8169: # Passes both tests. ! 8170: ac_preproc_ok=: ! 8171: break ! 8172: fi ! 8173: rm -f conftest.err conftest.$ac_ext ! 8174: ! 8175: done ! 8176: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 8177: rm -f conftest.err conftest.$ac_ext ! 8178: if $ac_preproc_ok; then ! 8179: : ! 8180: else ! 8181: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! 8182: See \`config.log' for more details." >&5 ! 8183: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! 8184: See \`config.log' for more details." >&2;} ! 8185: { (exit 1); exit 1; }; } ! 8186: fi ! 8187: ! 8188: ac_ext=cc ! 8189: ac_cpp='$CXXCPP $CPPFLAGS' ! 8190: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 8191: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 8192: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 8193: ! 8194: ! 8195: ac_ext=f ! 8196: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! 8197: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 8198: ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! 8199: if test -n "$ac_tool_prefix"; then ! 8200: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ! 8201: do ! 8202: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 8203: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 8204: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8206: if test "${ac_cv_prog_F77+set}" = set; then ! 8207: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8208: else ! 8209: if test -n "$F77"; then ! 8210: ac_cv_prog_F77="$F77" # Let the user override the test. ! 8211: else ! 8212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8213: for as_dir in $PATH ! 8214: do ! 8215: IFS=$as_save_IFS ! 8216: test -z "$as_dir" && as_dir=. ! 8217: for ac_exec_ext in '' $ac_executable_extensions; do ! 8218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8219: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ! 8220: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8221: break 2 ! 8222: fi ! 8223: done ! 8224: done ! 8225: ! 8226: fi ! 8227: fi ! 8228: F77=$ac_cv_prog_F77 ! 8229: if test -n "$F77"; then ! 8230: echo "$as_me:$LINENO: result: $F77" >&5 ! 8231: echo "${ECHO_T}$F77" >&6 ! 8232: else ! 8233: echo "$as_me:$LINENO: result: no" >&5 ! 8234: echo "${ECHO_T}no" >&6 ! 8235: fi ! 8236: ! 8237: test -n "$F77" && break ! 8238: done ! 8239: fi ! 8240: if test -z "$F77"; then ! 8241: ac_ct_F77=$F77 ! 8242: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ! 8243: do ! 8244: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 8245: set dummy $ac_prog; ac_word=$2 ! 8246: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8247: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8248: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ! 8249: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8250: else ! 8251: if test -n "$ac_ct_F77"; then ! 8252: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ! 8253: else ! 8254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8255: for as_dir in $PATH ! 8256: do ! 8257: IFS=$as_save_IFS ! 8258: test -z "$as_dir" && as_dir=. ! 8259: for ac_exec_ext in '' $ac_executable_extensions; do ! 8260: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8261: ac_cv_prog_ac_ct_F77="$ac_prog" ! 8262: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8263: break 2 ! 8264: fi ! 8265: done ! 8266: done ! 8267: ! 8268: fi ! 8269: fi ! 8270: ac_ct_F77=$ac_cv_prog_ac_ct_F77 ! 8271: if test -n "$ac_ct_F77"; then ! 8272: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ! 8273: echo "${ECHO_T}$ac_ct_F77" >&6 ! 8274: else ! 8275: echo "$as_me:$LINENO: result: no" >&5 ! 8276: echo "${ECHO_T}no" >&6 ! 8277: fi ! 8278: ! 8279: test -n "$ac_ct_F77" && break ! 8280: done ! 8281: ! 8282: F77=$ac_ct_F77 ! 8283: fi ! 8284: ! 8285: ! 8286: # Provide some information about the compiler. ! 8287: echo "$as_me:8287:" \ ! 8288: "checking for Fortran 77 compiler version" >&5 ! 8289: ac_compiler=`set X $ac_compile; echo $2` ! 8290: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 8291: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 8292: ac_status=$? ! 8293: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8294: (exit $ac_status); } ! 8295: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 8296: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 8297: ac_status=$? ! 8298: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8299: (exit $ac_status); } ! 8300: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 8301: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 8302: ac_status=$? ! 8303: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8304: (exit $ac_status); } ! 8305: ! 8306: # If we don't use `.F' as extension, the preprocessor is not run on the ! 8307: # input file. ! 8308: ac_save_ext=$ac_ext ! 8309: ac_ext=F ! 8310: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ! 8311: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 ! 8312: if test "${ac_cv_f77_compiler_gnu+set}" = set; then ! 8313: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8314: else ! 8315: cat >conftest.$ac_ext <<_ACEOF ! 8316: program main ! 8317: #ifndef __GNUC__ ! 8318: choke me ! 8319: #endif ! 8320: ! 8321: end ! 8322: _ACEOF ! 8323: rm -f conftest.$ac_objext ! 8324: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 8325: (eval $ac_compile) 2>&5 ! 8326: ac_status=$? ! 8327: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8328: (exit $ac_status); } && ! 8329: { ac_try='test -s conftest.$ac_objext' ! 8330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8331: (eval $ac_try) 2>&5 ! 8332: ac_status=$? ! 8333: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8334: (exit $ac_status); }; }; then ! 8335: ac_compiler_gnu=yes ! 8336: else ! 8337: echo "$as_me: failed program was:" >&5 ! 8338: sed 's/^/| /' conftest.$ac_ext >&5 ! 8339: ! 8340: ac_compiler_gnu=no ! 8341: fi ! 8342: rm -f conftest.$ac_objext conftest.$ac_ext ! 8343: ac_cv_f77_compiler_gnu=$ac_compiler_gnu ! 8344: ! 8345: fi ! 8346: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ! 8347: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 ! 8348: ac_ext=$ac_save_ext ! 8349: G77=`test $ac_compiler_gnu = yes && echo yes` ! 8350: ac_test_FFLAGS=${FFLAGS+set} ! 8351: ac_save_FFLAGS=$FFLAGS ! 8352: FFLAGS= ! 8353: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ! 8354: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 ! 8355: if test "${ac_cv_prog_f77_g+set}" = set; then ! 8356: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8357: else ! 8358: FFLAGS=-g ! 8359: cat >conftest.$ac_ext <<_ACEOF ! 8360: program main ! 8361: ! 8362: end ! 8363: _ACEOF ! 8364: rm -f conftest.$ac_objext ! 8365: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 8366: (eval $ac_compile) 2>&5 ! 8367: ac_status=$? ! 8368: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8369: (exit $ac_status); } && ! 8370: { ac_try='test -s conftest.$ac_objext' ! 8371: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8372: (eval $ac_try) 2>&5 ! 8373: ac_status=$? ! 8374: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8375: (exit $ac_status); }; }; then ! 8376: ac_cv_prog_f77_g=yes ! 8377: else ! 8378: echo "$as_me: failed program was:" >&5 ! 8379: sed 's/^/| /' conftest.$ac_ext >&5 ! 8380: ! 8381: ac_cv_prog_f77_g=no ! 8382: fi ! 8383: rm -f conftest.$ac_objext conftest.$ac_ext ! 8384: ! 8385: fi ! 8386: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ! 8387: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 ! 8388: if test "$ac_test_FFLAGS" = set; then ! 8389: FFLAGS=$ac_save_FFLAGS ! 8390: elif test $ac_cv_prog_f77_g = yes; then ! 8391: if test "$G77" = yes; then ! 8392: FFLAGS="-g -O2" ! 8393: else ! 8394: FFLAGS="-g" ! 8395: fi ! 8396: else ! 8397: if test "$G77" = yes; then ! 8398: FFLAGS="-O2" ! 8399: else ! 8400: FFLAGS= ! 8401: fi ! 8402: fi ! 8403: ac_ext=c ! 8404: ac_cpp='$CPP $CPPFLAGS' ! 8405: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 8406: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 8407: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 8408: ! 8409: ! 8410: ! 8411: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! ! 8412: ! 8413: # find the maximum length of command line arguments ! 8414: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 ! 8415: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 ! 8416: if test "${lt_cv_sys_max_cmd_len+set}" = set; then ! 8417: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8418: else ! 8419: i=0 ! 8420: testring="ABCD" ! 8421: ! 8422: case $build_os in ! 8423: msdosdjgpp*) ! 8424: # On DJGPP, this test can blow up pretty badly due to problems in libc ! 8425: # (any single argument exceeding 2000 bytes causes a buffer overrun ! 8426: # during glob expansion). Even if it were fixed, the result of this ! 8427: # check would be larger than it should be. ! 8428: lt_cv_sys_max_cmd_len=12288; # 12K is about right ! 8429: ;; ! 8430: ! 8431: gnu*) ! 8432: # Under GNU Hurd, this test is not required because there is ! 8433: # no limit to the length of command line arguments. ! 8434: # Libtool will interpret -1 as no limit whatsoever ! 8435: lt_cv_sys_max_cmd_len=-1; ! 8436: ;; ! 8437: ! 8438: cygwin* | mingw*) ! 8439: # On Win9x/ME, this test blows up -- it succeeds, but takes ! 8440: # about 5 minutes as the teststring grows exponentially. ! 8441: # Worse, since 9x/ME are not pre-emptively multitasking, ! 8442: # you end up with a "frozen" computer, even though with patience ! 8443: # the test eventually succeeds (with a max line length of 256k). ! 8444: # Instead, let's just punt: use the minimum linelength reported by ! 8445: # all of the supported platforms: 8192 (on NT/2K/XP). ! 8446: lt_cv_sys_max_cmd_len=8192; ! 8447: ;; ! 8448: ! 8449: *) ! 8450: # If test is not a shell built-in, we'll probably end up computing a ! 8451: # maximum length that is only half of the actual maximum length, but ! 8452: # we can't tell. ! 8453: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ! 8454: = "XX$testring") >/dev/null 2>&1 && ! 8455: new_result=`expr "X$testring" : ".*" 2>&1` && ! 8456: lt_cv_sys_max_cmd_len=$new_result && ! 8457: test $i != 17 # 1/2 MB should be enough ! 8458: do ! 8459: i=`expr $i + 1` ! 8460: testring=$testring$testring ! 8461: done ! 8462: testring= ! 8463: # Add a significant safety factor because C++ compilers can tack on massive ! 8464: # amounts of additional arguments before passing them to the linker. ! 8465: # It appears as though 1/2 is a usable value. ! 8466: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ! 8467: ;; ! 8468: esac ! 8469: ! 8470: fi ! 8471: ! 8472: if test -n $lt_cv_sys_max_cmd_len ; then ! 8473: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 ! 8474: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 ! 8475: else ! 8476: echo "$as_me:$LINENO: result: none" >&5 ! 8477: echo "${ECHO_T}none" >&6 ! 8478: fi ! 8479: ! 8480: ! 8481: ! 8482: ! 8483: # Check for command to grab the raw symbol name followed by C symbol from nm. ! 8484: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 ! 8485: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 ! 8486: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then ! 8487: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8488: else ! 8489: ! 8490: # These are sane defaults that work on at least a few old systems. ! 8491: # [They come from Ultrix. What could be older than Ultrix?!! ;)] ! 8492: ! 8493: # Character class describing NM global symbol codes. ! 8494: symcode='[BCDEGRST]' ! 8495: ! 8496: # Regexp to match symbols that can be accessed directly from C. ! 8497: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' ! 8498: ! 8499: # Transform the above into a raw symbol and a C symbol. ! 8500: symxfrm='\1 \2\3 \3' ! 8501: ! 8502: # Transform an extracted symbol line into a proper C declaration ! 8503: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" ! 8504: ! 8505: # Transform an extracted symbol line into symbol name and symbol address ! 8506: 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'" ! 8507: ! 8508: # Define system-specific variables. ! 8509: case $host_os in ! 8510: aix*) ! 8511: symcode='[BCDT]' ! 8512: ;; ! 8513: cygwin* | mingw* | pw32*) ! 8514: symcode='[ABCDGISTW]' ! 8515: ;; ! 8516: hpux*) # Its linker distinguishes data from code symbols ! 8517: if test "$host_cpu" = ia64; then ! 8518: symcode='[ABCDEGRST]' ! 8519: fi ! 8520: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" ! 8521: 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'" ! 8522: ;; ! 8523: irix* | nonstopux*) ! 8524: symcode='[BCDEGRST]' ! 8525: ;; ! 8526: osf*) ! 8527: symcode='[BCDEGQRST]' ! 8528: ;; ! 8529: solaris* | sysv5*) ! 8530: symcode='[BDT]' ! 8531: ;; ! 8532: sysv4) ! 8533: symcode='[DFNSTU]' ! 8534: ;; ! 8535: esac ! 8536: ! 8537: # Handle CRLF in mingw tool chain ! 8538: opt_cr= ! 8539: case $build_os in ! 8540: mingw*) ! 8541: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ! 8542: ;; ! 8543: esac ! 8544: ! 8545: # If we're using GNU nm, then use its standard symbol codes. ! 8546: case `$NM -V 2>&1` in ! 8547: *GNU* | *'with BFD'*) ! 8548: symcode='[ABCDGISTW]' ;; ! 8549: esac ! 8550: ! 8551: # Try without a prefix undercore, then with it. ! 8552: for ac_symprfx in "" "_"; do ! 8553: ! 8554: # Write the raw and C identifiers. ! 8555: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" ! 8556: ! 8557: # Check to see that the pipe works correctly. ! 8558: pipe_works=no ! 8559: ! 8560: rm -f conftest* ! 8561: cat > conftest.$ac_ext <<EOF ! 8562: #ifdef __cplusplus ! 8563: extern "C" { ! 8564: #endif ! 8565: char nm_test_var; ! 8566: void nm_test_func(){} ! 8567: #ifdef __cplusplus ! 8568: } ! 8569: #endif ! 8570: int main(){nm_test_var='a';nm_test_func();return(0);} ! 8571: EOF ! 8572: ! 8573: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 8574: (eval $ac_compile) 2>&5 ! 8575: ac_status=$? ! 8576: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8577: (exit $ac_status); }; then ! 8578: # Now try to grab the symbols. ! 8579: nlist=conftest.nm ! 8580: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 ! 8581: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ! 8582: ac_status=$? ! 8583: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8584: (exit $ac_status); } && test -s "$nlist"; then ! 8585: # Try sorting and uniquifying the output. ! 8586: if sort "$nlist" | uniq > "$nlist"T; then ! 8587: mv -f "$nlist"T "$nlist" ! 8588: else ! 8589: rm -f "$nlist"T ! 8590: fi ! 8591: ! 8592: # Make sure that we snagged all the symbols we need. ! 8593: if grep ' nm_test_var$' "$nlist" >/dev/null; then ! 8594: if grep ' nm_test_func$' "$nlist" >/dev/null; then ! 8595: cat <<EOF > conftest.$ac_ext ! 8596: #ifdef __cplusplus ! 8597: extern "C" { ! 8598: #endif ! 8599: ! 8600: EOF ! 8601: # Now generate the symbol file. ! 8602: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' ! 8603: ! 8604: cat <<EOF >> conftest.$ac_ext ! 8605: #if defined (__STDC__) && __STDC__ ! 8606: # define lt_ptr_t void * ! 8607: #else ! 8608: # define lt_ptr_t char * ! 8609: # define const ! 8610: #endif ! 8611: ! 8612: /* The mapping between symbol names and symbols. */ ! 8613: const struct { ! 8614: const char *name; ! 8615: lt_ptr_t address; ! 8616: } ! 8617: lt_preloaded_symbols[] = ! 8618: { ! 8619: EOF ! 8620: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext ! 8621: cat <<\EOF >> conftest.$ac_ext ! 8622: {0, (lt_ptr_t) 0} ! 8623: }; ! 8624: ! 8625: #ifdef __cplusplus ! 8626: } ! 8627: #endif ! 8628: EOF ! 8629: # Now try linking the two files. ! 8630: mv conftest.$ac_objext conftstm.$ac_objext ! 8631: lt_save_LIBS="$LIBS" ! 8632: lt_save_CFLAGS="$CFLAGS" ! 8633: LIBS="conftstm.$ac_objext" ! 8634: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" ! 8635: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8636: (eval $ac_link) 2>&5 ! 8637: ac_status=$? ! 8638: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8639: (exit $ac_status); } && test -s conftest${ac_exeext}; then ! 8640: pipe_works=yes ! 8641: fi ! 8642: LIBS="$lt_save_LIBS" ! 8643: CFLAGS="$lt_save_CFLAGS" ! 8644: else ! 8645: echo "cannot find nm_test_func in $nlist" >&5 ! 8646: fi ! 8647: else ! 8648: echo "cannot find nm_test_var in $nlist" >&5 ! 8649: fi ! 8650: else ! 8651: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 ! 8652: fi ! 8653: else ! 8654: echo "$progname: failed program was:" >&5 ! 8655: cat conftest.$ac_ext >&5 ! 8656: fi ! 8657: rm -f conftest* conftst* ! 8658: ! 8659: # Do not use the global_symbol_pipe unless it works. ! 8660: if test "$pipe_works" = yes; then ! 8661: break ! 8662: else ! 8663: lt_cv_sys_global_symbol_pipe= ! 8664: fi ! 8665: done ! 8666: ! 8667: fi ! 8668: ! 8669: if test -z "$lt_cv_sys_global_symbol_pipe"; then ! 8670: lt_cv_sys_global_symbol_to_cdecl= ! 8671: fi ! 8672: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then ! 8673: echo "$as_me:$LINENO: result: failed" >&5 ! 8674: echo "${ECHO_T}failed" >&6 ! 8675: else ! 8676: echo "$as_me:$LINENO: result: ok" >&5 ! 8677: echo "${ECHO_T}ok" >&6 ! 8678: fi ! 8679: ! 8680: echo "$as_me:$LINENO: checking for objdir" >&5 ! 8681: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 ! 8682: if test "${lt_cv_objdir+set}" = set; then ! 8683: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8684: else ! 8685: rm -f .libs 2>/dev/null ! 8686: mkdir .libs 2>/dev/null ! 8687: if test -d .libs; then ! 8688: lt_cv_objdir=.libs ! 8689: else ! 8690: # MS-DOS does not allow filenames that begin with a dot. ! 8691: lt_cv_objdir=_libs ! 8692: fi ! 8693: rmdir .libs 2>/dev/null ! 8694: fi ! 8695: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 ! 8696: echo "${ECHO_T}$lt_cv_objdir" >&6 ! 8697: objdir=$lt_cv_objdir ! 8698: ! 8699: ! 8700: ! 8701: ! 8702: ! 8703: case $host_os in ! 8704: aix3*) ! 8705: # AIX sometimes has problems with the GCC collect2 program. For some ! 8706: # reason, if we set the COLLECT_NAMES environment variable, the problems ! 8707: # vanish in a puff of smoke. ! 8708: if test "X${COLLECT_NAMES+set}" != Xset; then ! 8709: COLLECT_NAMES= ! 8710: export COLLECT_NAMES ! 8711: fi ! 8712: ;; ! 8713: esac ! 8714: ! 8715: # Sed substitution that helps us do robust quoting. It backslashifies ! 8716: # metacharacters that are still active within double-quoted strings. ! 8717: Xsed='sed -e s/^X//' ! 8718: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' ! 8719: ! 8720: # Same as above, but do not quote variable references. ! 8721: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' ! 8722: ! 8723: # Sed substitution to delay expansion of an escaped shell variable in a ! 8724: # double_quote_subst'ed string. ! 8725: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' ! 8726: ! 8727: # Sed substitution to avoid accidental globbing in evaled expressions ! 8728: no_glob_subst='s/\*/\\\*/g' ! 8729: ! 8730: # Constants: ! 8731: rm="rm -f" ! 8732: ! 8733: # Global variables: ! 8734: default_ofile=libtool ! 8735: can_build_shared=yes ! 8736: ! 8737: # All known linkers require a `.a' archive for static linking (except M$VC, ! 8738: # which needs '.lib'). ! 8739: libext=a ! 8740: ltmain="$ac_aux_dir/ltmain.sh" ! 8741: ofile="$default_ofile" ! 8742: with_gnu_ld="$lt_cv_prog_gnu_ld" ! 8743: ! 8744: if test -n "$ac_tool_prefix"; then ! 8745: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. ! 8746: set dummy ${ac_tool_prefix}ar; ac_word=$2 ! 8747: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8749: if test "${ac_cv_prog_AR+set}" = set; then ! 8750: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8751: else ! 8752: if test -n "$AR"; then ! 8753: ac_cv_prog_AR="$AR" # Let the user override the test. ! 8754: else ! 8755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8756: for as_dir in $PATH ! 8757: do ! 8758: IFS=$as_save_IFS ! 8759: test -z "$as_dir" && as_dir=. ! 8760: for ac_exec_ext in '' $ac_executable_extensions; do ! 8761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8762: ac_cv_prog_AR="${ac_tool_prefix}ar" ! 8763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8764: break 2 ! 8765: fi ! 8766: done ! 8767: done ! 8768: ! 8769: fi ! 8770: fi ! 8771: AR=$ac_cv_prog_AR ! 8772: if test -n "$AR"; then ! 8773: echo "$as_me:$LINENO: result: $AR" >&5 ! 8774: echo "${ECHO_T}$AR" >&6 ! 8775: else ! 8776: echo "$as_me:$LINENO: result: no" >&5 ! 8777: echo "${ECHO_T}no" >&6 ! 8778: fi ! 8779: ! 8780: fi ! 8781: if test -z "$ac_cv_prog_AR"; then ! 8782: ac_ct_AR=$AR ! 8783: # Extract the first word of "ar", so it can be a program name with args. ! 8784: set dummy ar; ac_word=$2 ! 8785: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8786: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8787: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then ! 8788: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8789: else ! 8790: if test -n "$ac_ct_AR"; then ! 8791: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. ! 8792: else ! 8793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8794: for as_dir in $PATH ! 8795: do ! 8796: IFS=$as_save_IFS ! 8797: test -z "$as_dir" && as_dir=. ! 8798: for ac_exec_ext in '' $ac_executable_extensions; do ! 8799: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8800: ac_cv_prog_ac_ct_AR="ar" ! 8801: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8802: break 2 ! 8803: fi ! 8804: done ! 8805: done ! 8806: ! 8807: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" ! 8808: fi ! 8809: fi ! 8810: ac_ct_AR=$ac_cv_prog_ac_ct_AR ! 8811: if test -n "$ac_ct_AR"; then ! 8812: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 ! 8813: echo "${ECHO_T}$ac_ct_AR" >&6 ! 8814: else ! 8815: echo "$as_me:$LINENO: result: no" >&5 ! 8816: echo "${ECHO_T}no" >&6 ! 8817: fi ! 8818: ! 8819: AR=$ac_ct_AR ! 8820: else ! 8821: AR="$ac_cv_prog_AR" ! 8822: fi ! 8823: ! 8824: if test -n "$ac_tool_prefix"; then ! 8825: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ! 8826: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ! 8827: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8828: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8829: if test "${ac_cv_prog_RANLIB+set}" = set; then ! 8830: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8831: else ! 8832: if test -n "$RANLIB"; then ! 8833: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ! 8834: else ! 8835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8836: for as_dir in $PATH ! 8837: do ! 8838: IFS=$as_save_IFS ! 8839: test -z "$as_dir" && as_dir=. ! 8840: for ac_exec_ext in '' $ac_executable_extensions; do ! 8841: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8842: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ! 8843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8844: break 2 ! 8845: fi ! 8846: done ! 8847: done ! 8848: ! 8849: fi ! 8850: fi ! 8851: RANLIB=$ac_cv_prog_RANLIB ! 8852: if test -n "$RANLIB"; then ! 8853: echo "$as_me:$LINENO: result: $RANLIB" >&5 ! 8854: echo "${ECHO_T}$RANLIB" >&6 ! 8855: else ! 8856: echo "$as_me:$LINENO: result: no" >&5 ! 8857: echo "${ECHO_T}no" >&6 ! 8858: fi ! 8859: ! 8860: fi ! 8861: if test -z "$ac_cv_prog_RANLIB"; then ! 8862: ac_ct_RANLIB=$RANLIB ! 8863: # Extract the first word of "ranlib", so it can be a program name with args. ! 8864: set dummy ranlib; ac_word=$2 ! 8865: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8866: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8867: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then ! 8868: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8869: else ! 8870: if test -n "$ac_ct_RANLIB"; then ! 8871: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ! 8872: else ! 8873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8874: for as_dir in $PATH ! 8875: do ! 8876: IFS=$as_save_IFS ! 8877: test -z "$as_dir" && as_dir=. ! 8878: for ac_exec_ext in '' $ac_executable_extensions; do ! 8879: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8880: ac_cv_prog_ac_ct_RANLIB="ranlib" ! 8881: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8882: break 2 ! 8883: fi ! 8884: done ! 8885: done ! 8886: ! 8887: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" ! 8888: fi ! 8889: fi ! 8890: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ! 8891: if test -n "$ac_ct_RANLIB"; then ! 8892: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ! 8893: echo "${ECHO_T}$ac_ct_RANLIB" >&6 ! 8894: else ! 8895: echo "$as_me:$LINENO: result: no" >&5 ! 8896: echo "${ECHO_T}no" >&6 ! 8897: fi ! 8898: ! 8899: RANLIB=$ac_ct_RANLIB ! 8900: else ! 8901: RANLIB="$ac_cv_prog_RANLIB" ! 8902: fi ! 8903: ! 8904: if test -n "$ac_tool_prefix"; then ! 8905: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ! 8906: set dummy ${ac_tool_prefix}strip; ac_word=$2 ! 8907: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8908: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8909: if test "${ac_cv_prog_STRIP+set}" = set; then ! 8910: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8911: else ! 8912: if test -n "$STRIP"; then ! 8913: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ! 8914: else ! 8915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8916: for as_dir in $PATH ! 8917: do ! 8918: IFS=$as_save_IFS ! 8919: test -z "$as_dir" && as_dir=. ! 8920: for ac_exec_ext in '' $ac_executable_extensions; do ! 8921: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8922: ac_cv_prog_STRIP="${ac_tool_prefix}strip" ! 8923: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8924: break 2 ! 8925: fi ! 8926: done ! 8927: done ! 8928: ! 8929: fi ! 8930: fi ! 8931: STRIP=$ac_cv_prog_STRIP ! 8932: if test -n "$STRIP"; then ! 8933: echo "$as_me:$LINENO: result: $STRIP" >&5 ! 8934: echo "${ECHO_T}$STRIP" >&6 ! 8935: else ! 8936: echo "$as_me:$LINENO: result: no" >&5 ! 8937: echo "${ECHO_T}no" >&6 ! 8938: fi ! 8939: ! 8940: fi ! 8941: if test -z "$ac_cv_prog_STRIP"; then ! 8942: ac_ct_STRIP=$STRIP ! 8943: # Extract the first word of "strip", so it can be a program name with args. ! 8944: set dummy strip; ac_word=$2 ! 8945: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 8946: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 8947: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ! 8948: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8949: else ! 8950: if test -n "$ac_ct_STRIP"; then ! 8951: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ! 8952: else ! 8953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 8954: for as_dir in $PATH ! 8955: do ! 8956: IFS=$as_save_IFS ! 8957: test -z "$as_dir" && as_dir=. ! 8958: for ac_exec_ext in '' $ac_executable_extensions; do ! 8959: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 8960: ac_cv_prog_ac_ct_STRIP="strip" ! 8961: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 8962: break 2 ! 8963: fi ! 8964: done ! 8965: done ! 8966: ! 8967: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" ! 8968: fi ! 8969: fi ! 8970: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ! 8971: if test -n "$ac_ct_STRIP"; then ! 8972: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ! 8973: echo "${ECHO_T}$ac_ct_STRIP" >&6 ! 8974: else ! 8975: echo "$as_me:$LINENO: result: no" >&5 ! 8976: echo "${ECHO_T}no" >&6 ! 8977: fi ! 8978: ! 8979: STRIP=$ac_ct_STRIP ! 8980: else ! 8981: STRIP="$ac_cv_prog_STRIP" ! 8982: fi ! 8983: ! 8984: ! 8985: old_CC="$CC" ! 8986: old_CFLAGS="$CFLAGS" ! 8987: ! 8988: # Set sane defaults for various variables ! 8989: test -z "$AR" && AR=ar ! 8990: test -z "$AR_FLAGS" && AR_FLAGS=cru ! 8991: test -z "$AS" && AS=as ! 8992: test -z "$CC" && CC=cc ! 8993: test -z "$LTCC" && LTCC=$CC ! 8994: test -z "$DLLTOOL" && DLLTOOL=dlltool ! 8995: test -z "$LD" && LD=ld ! 8996: test -z "$LN_S" && LN_S="ln -s" ! 8997: test -z "$MAGIC_CMD" && MAGIC_CMD=file ! 8998: test -z "$NM" && NM=nm ! 8999: test -z "$SED" && SED=sed ! 9000: test -z "$OBJDUMP" && OBJDUMP=objdump ! 9001: test -z "$RANLIB" && RANLIB=: ! 9002: test -z "$STRIP" && STRIP=: ! 9003: test -z "$ac_objext" && ac_objext=o ! 9004: ! 9005: # Determine commands to create old-style static archives. ! 9006: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' ! 9007: old_postinstall_cmds='chmod 644 $oldlib' ! 9008: old_postuninstall_cmds= ! 9009: ! 9010: if test -n "$RANLIB"; then ! 9011: case $host_os in ! 9012: openbsd*) ! 9013: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ! 9014: ;; ! 9015: *) ! 9016: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ! 9017: ;; ! 9018: esac ! 9019: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" ! 9020: fi ! 9021: ! 9022: # Only perform the check for file, if the check method requires it ! 9023: case $deplibs_check_method in ! 9024: file_magic*) ! 9025: if test "$file_magic_cmd" = '$MAGIC_CMD'; then ! 9026: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 ! 9027: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 ! 9028: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ! 9029: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9030: else ! 9031: case $MAGIC_CMD in ! 9032: [\\/*] | ?:[\\/]*) ! 9033: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ! 9034: ;; ! 9035: *) ! 9036: lt_save_MAGIC_CMD="$MAGIC_CMD" ! 9037: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 9038: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ! 9039: for ac_dir in $ac_dummy; do ! 9040: IFS="$lt_save_ifs" ! 9041: test -z "$ac_dir" && ac_dir=. ! 9042: if test -f $ac_dir/${ac_tool_prefix}file; then ! 9043: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" ! 9044: if test -n "$file_magic_test_file"; then ! 9045: case $deplibs_check_method in ! 9046: "file_magic "*) ! 9047: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" ! 9048: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 9049: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ! 9050: $EGREP "$file_magic_regex" > /dev/null; then ! 9051: : ! 9052: else ! 9053: cat <<EOF 1>&2 ! 9054: ! 9055: *** Warning: the command libtool uses to detect shared libraries, ! 9056: *** $file_magic_cmd, produces output that libtool cannot recognize. ! 9057: *** The result is that libtool may fail to recognize shared libraries ! 9058: *** as such. This will affect the creation of libtool libraries that ! 9059: *** depend on shared libraries, but programs linked with such libtool ! 9060: *** libraries will work regardless of this problem. Nevertheless, you ! 9061: *** may want to report the problem to your system manager and/or to ! 9062: *** [email protected] ! 9063: ! 9064: EOF ! 9065: fi ;; ! 9066: esac ! 9067: fi ! 9068: break ! 9069: fi ! 9070: done ! 9071: IFS="$lt_save_ifs" ! 9072: MAGIC_CMD="$lt_save_MAGIC_CMD" ! 9073: ;; ! 9074: esac ! 9075: fi ! 9076: ! 9077: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 9078: if test -n "$MAGIC_CMD"; then ! 9079: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ! 9080: echo "${ECHO_T}$MAGIC_CMD" >&6 ! 9081: else ! 9082: echo "$as_me:$LINENO: result: no" >&5 ! 9083: echo "${ECHO_T}no" >&6 ! 9084: fi ! 9085: ! 9086: if test -z "$lt_cv_path_MAGIC_CMD"; then ! 9087: if test -n "$ac_tool_prefix"; then ! 9088: echo "$as_me:$LINENO: checking for file" >&5 ! 9089: echo $ECHO_N "checking for file... $ECHO_C" >&6 ! 9090: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ! 9091: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9092: else ! 9093: case $MAGIC_CMD in ! 9094: [\\/*] | ?:[\\/]*) ! 9095: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ! 9096: ;; ! 9097: *) ! 9098: lt_save_MAGIC_CMD="$MAGIC_CMD" ! 9099: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 9100: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ! 9101: for ac_dir in $ac_dummy; do ! 9102: IFS="$lt_save_ifs" ! 9103: test -z "$ac_dir" && ac_dir=. ! 9104: if test -f $ac_dir/file; then ! 9105: lt_cv_path_MAGIC_CMD="$ac_dir/file" ! 9106: if test -n "$file_magic_test_file"; then ! 9107: case $deplibs_check_method in ! 9108: "file_magic "*) ! 9109: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" ! 9110: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 9111: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ! 9112: $EGREP "$file_magic_regex" > /dev/null; then ! 9113: : ! 9114: else ! 9115: cat <<EOF 1>&2 ! 9116: ! 9117: *** Warning: the command libtool uses to detect shared libraries, ! 9118: *** $file_magic_cmd, produces output that libtool cannot recognize. ! 9119: *** The result is that libtool may fail to recognize shared libraries ! 9120: *** as such. This will affect the creation of libtool libraries that ! 9121: *** depend on shared libraries, but programs linked with such libtool ! 9122: *** libraries will work regardless of this problem. Nevertheless, you ! 9123: *** may want to report the problem to your system manager and/or to ! 9124: *** [email protected] ! 9125: ! 9126: EOF ! 9127: fi ;; ! 9128: esac ! 9129: fi ! 9130: break ! 9131: fi ! 9132: done ! 9133: IFS="$lt_save_ifs" ! 9134: MAGIC_CMD="$lt_save_MAGIC_CMD" ! 9135: ;; ! 9136: esac ! 9137: fi ! 9138: ! 9139: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 9140: if test -n "$MAGIC_CMD"; then ! 9141: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ! 9142: echo "${ECHO_T}$MAGIC_CMD" >&6 ! 9143: else ! 9144: echo "$as_me:$LINENO: result: no" >&5 ! 9145: echo "${ECHO_T}no" >&6 ! 9146: fi ! 9147: ! 9148: else ! 9149: MAGIC_CMD=: ! 9150: fi ! 9151: fi ! 9152: ! 9153: fi ! 9154: ;; ! 9155: esac ! 9156: ! 9157: enable_dlopen=yes ! 9158: enable_win32_dll=no ! 9159: ! 9160: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. ! 9161: if test "${enable_libtool_lock+set}" = set; then ! 9162: enableval="$enable_libtool_lock" ! 9163: ! 9164: fi; ! 9165: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ! 9166: ! 9167: ! 9168: # Check whether --with-pic or --without-pic was given. ! 9169: if test "${with_pic+set}" = set; then ! 9170: withval="$with_pic" ! 9171: pic_mode="$withval" ! 9172: else ! 9173: pic_mode=default ! 9174: fi; ! 9175: test -z "$pic_mode" && pic_mode=default ! 9176: ! 9177: # Use C for the default configuration in the libtool script ! 9178: tagname= ! 9179: lt_save_CC="$CC" ! 9180: ac_ext=c ! 9181: ac_cpp='$CPP $CPPFLAGS' ! 9182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 9183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 9184: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 9185: ! 9186: ! 9187: # Source file extension for C test sources. ! 9188: ac_ext=c ! 9189: ! 9190: # Object file extension for compiled C test sources. ! 9191: objext=o ! 9192: objext=$objext ! 9193: ! 9194: # Code to be used in simple compile tests ! 9195: lt_simple_compile_test_code="int some_variable = 0;\n" ! 9196: ! 9197: # Code to be used in simple link tests ! 9198: lt_simple_link_test_code='int main(){return(0);}\n' ! 9199: ! 9200: ! 9201: # If no C compiler was specified, use CC. ! 9202: LTCC=${LTCC-"$CC"} ! 9203: ! 9204: # Allow CC to be a program name with arguments. ! 9205: compiler=$CC ! 9206: ! 9207: ! 9208: # ! 9209: # Check for any special shared library compilation flags. ! 9210: # ! 9211: lt_prog_cc_shlib= ! 9212: if test "$GCC" = no; then ! 9213: case $host_os in ! 9214: sco3.2v5*) ! 9215: lt_prog_cc_shlib='-belf' ! 9216: ;; ! 9217: esac ! 9218: fi ! 9219: if test -n "$lt_prog_cc_shlib"; then ! 9220: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 ! 9221: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} ! 9222: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : ! 9223: else ! 9224: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 ! 9225: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} ! 9226: lt_cv_prog_cc_can_build_shared=no ! 9227: fi ! 9228: fi ! 9229: ! 9230: ! 9231: # ! 9232: # Check to make sure the static flag actually works. ! 9233: # ! 9234: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 ! 9235: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 ! 9236: if test "${lt_prog_compiler_static_works+set}" = set; then ! 9237: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9238: else ! 9239: lt_prog_compiler_static_works=no ! 9240: save_LDFLAGS="$LDFLAGS" ! 9241: LDFLAGS="$LDFLAGS $lt_prog_compiler_static" ! 9242: printf "$lt_simple_link_test_code" > conftest.$ac_ext ! 9243: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ! 9244: # The compiler can only warn and ignore the option if not recognized ! 9245: # So say no if there are warnings ! 9246: if test -s conftest.err; then ! 9247: # Append any errors to the config.log. ! 9248: cat conftest.err 1>&5 ! 9249: else ! 9250: lt_prog_compiler_static_works=yes ! 9251: fi ! 9252: fi ! 9253: $rm conftest* ! 9254: LDFLAGS="$save_LDFLAGS" ! 9255: ! 9256: fi ! 9257: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 ! 9258: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 ! 9259: ! 9260: if test x"$lt_prog_compiler_static_works" = xyes; then ! 9261: : ! 9262: else ! 9263: lt_prog_compiler_static= ! 9264: fi ! 9265: ! 9266: ! 9267: ! 9268: ! 9269: lt_prog_compiler_no_builtin_flag= ! 9270: ! 9271: if test "$GCC" = yes; then ! 9272: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ! 9273: ! 9274: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ! 9275: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 ! 9276: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ! 9277: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9278: else ! 9279: lt_cv_prog_compiler_rtti_exceptions=no ! 9280: ac_outfile=conftest.$ac_objext ! 9281: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 9282: lt_compiler_flag="-fno-rtti -fno-exceptions" ! 9283: # Insert the option either (1) after the last *FLAGS variable, or ! 9284: # (2) before a word containing "conftest.", or (3) at the end. ! 9285: # Note that $ac_compile itself does not contain backslashes and begins ! 9286: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 9287: # The option is referenced via a variable to avoid confusing sed. ! 9288: lt_compile=`echo "$ac_compile" | $SED \ ! 9289: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 9290: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 9291: -e 's:$: $lt_compiler_flag:'` ! 9292: (eval echo "\"\$as_me:9292: $lt_compile\"" >&5) ! 9293: (eval "$lt_compile" 2>conftest.err) ! 9294: ac_status=$? ! 9295: cat conftest.err >&5 ! 9296: echo "$as_me:9296: \$? = $ac_status" >&5 ! 9297: if (exit $ac_status) && test -s "$ac_outfile"; then ! 9298: # The compiler can only warn and ignore the option if not recognized ! 9299: # So say no if there are warnings ! 9300: if test ! -s conftest.err; then ! 9301: lt_cv_prog_compiler_rtti_exceptions=yes ! 9302: fi ! 9303: fi ! 9304: $rm conftest* ! 9305: ! 9306: fi ! 9307: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ! 9308: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 ! 9309: ! 9310: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ! 9311: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" ! 9312: else ! 9313: : ! 9314: fi ! 9315: ! 9316: fi ! 9317: ! 9318: lt_prog_compiler_wl= ! 9319: lt_prog_compiler_pic= ! 9320: lt_prog_compiler_static= ! 9321: ! 9322: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 9323: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 9324: ! 9325: if test "$GCC" = yes; then ! 9326: lt_prog_compiler_wl='-Wl,' ! 9327: lt_prog_compiler_static='-static' ! 9328: ! 9329: case $host_os in ! 9330: aix*) ! 9331: # All AIX code is PIC. ! 9332: if test "$host_cpu" = ia64; then ! 9333: # AIX 5 now supports IA64 processor ! 9334: lt_prog_compiler_static='-Bstatic' ! 9335: fi ! 9336: ;; ! 9337: ! 9338: amigaos*) ! 9339: # FIXME: we need at least 68020 code to build shared libraries, but ! 9340: # adding the `-m68020' flag to GCC prevents building anything better, ! 9341: # like `-m68040'. ! 9342: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ! 9343: ;; ! 9344: ! 9345: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 9346: # PIC is the default for these OSes. ! 9347: ;; ! 9348: ! 9349: mingw* | pw32* | os2*) ! 9350: # This hack is so that the source file can tell whether it is being ! 9351: # built for inclusion in a dll (and should export symbols for example). ! 9352: lt_prog_compiler_pic='-DDLL_EXPORT' ! 9353: ;; ! 9354: ! 9355: darwin* | rhapsody*) ! 9356: # PIC is the default on this platform ! 9357: # Common symbols not allowed in MH_DYLIB files ! 9358: lt_prog_compiler_pic='-fno-common' ! 9359: ;; ! 9360: ! 9361: msdosdjgpp*) ! 9362: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 9363: # on systems that don't support them. ! 9364: lt_prog_compiler_can_build_shared=no ! 9365: enable_shared=no ! 9366: ;; ! 9367: ! 9368: sysv4*MP*) ! 9369: if test -d /usr/nec; then ! 9370: lt_prog_compiler_pic=-Kconform_pic ! 9371: fi ! 9372: ;; ! 9373: ! 9374: hpux*) ! 9375: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 9376: # not for PA HP-UX. ! 9377: case "$host_cpu" in ! 9378: hppa*64*|ia64*) ! 9379: # +Z the default ! 9380: ;; ! 9381: *) ! 9382: lt_prog_compiler_pic='-fPIC' ! 9383: ;; ! 9384: esac ! 9385: ;; ! 9386: ! 9387: *) ! 9388: lt_prog_compiler_pic='-fPIC' ! 9389: ;; ! 9390: esac ! 9391: else ! 9392: # PORTME Check for flag to pass linker flags through the system compiler. ! 9393: case $host_os in ! 9394: aix*) ! 9395: lt_prog_compiler_wl='-Wl,' ! 9396: if test "$host_cpu" = ia64; then ! 9397: # AIX 5 now supports IA64 processor ! 9398: lt_prog_compiler_static='-Bstatic' ! 9399: else ! 9400: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' ! 9401: fi ! 9402: ;; ! 9403: ! 9404: mingw* | pw32* | os2*) ! 9405: # This hack is so that the source file can tell whether it is being ! 9406: # built for inclusion in a dll (and should export symbols for example). ! 9407: lt_prog_compiler_pic='-DDLL_EXPORT' ! 9408: ;; ! 9409: ! 9410: hpux9* | hpux10* | hpux11*) ! 9411: lt_prog_compiler_wl='-Wl,' ! 9412: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 9413: # not for PA HP-UX. ! 9414: case "$host_cpu" in ! 9415: hppa*64*|ia64*) ! 9416: # +Z the default ! 9417: ;; ! 9418: *) ! 9419: lt_prog_compiler_pic='+Z' ! 9420: ;; ! 9421: esac ! 9422: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 9423: lt_prog_compiler_static='${wl}-a ${wl}archive' ! 9424: ;; ! 9425: ! 9426: irix5* | irix6* | nonstopux*) ! 9427: lt_prog_compiler_wl='-Wl,' ! 9428: # PIC (with -KPIC) is the default. ! 9429: lt_prog_compiler_static='-non_shared' ! 9430: ;; ! 9431: ! 9432: newsos6) ! 9433: lt_prog_compiler_pic='-KPIC' ! 9434: lt_prog_compiler_static='-Bstatic' ! 9435: ;; ! 9436: ! 9437: linux*) ! 9438: case $CC in ! 9439: icc|ecc) ! 9440: lt_prog_compiler_wl='-Wl,' ! 9441: lt_prog_compiler_pic='-KPIC' ! 9442: lt_prog_compiler_static='-static' ! 9443: ;; ! 9444: ccc) ! 9445: lt_prog_compiler_wl='-Wl,' ! 9446: # All Alpha code is PIC. ! 9447: lt_prog_compiler_static='-non_shared' ! 9448: ;; ! 9449: esac ! 9450: ;; ! 9451: ! 9452: osf3* | osf4* | osf5*) ! 9453: lt_prog_compiler_wl='-Wl,' ! 9454: # All OSF/1 code is PIC. ! 9455: lt_prog_compiler_static='-non_shared' ! 9456: ;; ! 9457: ! 9458: sco3.2v5*) ! 9459: lt_prog_compiler_pic='-Kpic' ! 9460: lt_prog_compiler_static='-dn' ! 9461: ;; ! 9462: ! 9463: solaris*) ! 9464: lt_prog_compiler_wl='-Wl,' ! 9465: lt_prog_compiler_pic='-KPIC' ! 9466: lt_prog_compiler_static='-Bstatic' ! 9467: ;; ! 9468: ! 9469: sunos4*) ! 9470: lt_prog_compiler_wl='-Qoption ld ' ! 9471: lt_prog_compiler_pic='-PIC' ! 9472: lt_prog_compiler_static='-Bstatic' ! 9473: ;; ! 9474: ! 9475: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 9476: lt_prog_compiler_wl='-Wl,' ! 9477: lt_prog_compiler_pic='-KPIC' ! 9478: lt_prog_compiler_static='-Bstatic' ! 9479: ;; ! 9480: ! 9481: sysv4*MP*) ! 9482: if test -d /usr/nec ;then ! 9483: lt_prog_compiler_pic='-Kconform_pic' ! 9484: lt_prog_compiler_static='-Bstatic' ! 9485: fi ! 9486: ;; ! 9487: ! 9488: uts4*) ! 9489: lt_prog_compiler_pic='-pic' ! 9490: lt_prog_compiler_static='-Bstatic' ! 9491: ;; ! 9492: ! 9493: *) ! 9494: lt_prog_compiler_can_build_shared=no ! 9495: ;; ! 9496: esac ! 9497: fi ! 9498: ! 9499: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 ! 9500: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 ! 9501: ! 9502: # ! 9503: # Check to make sure the PIC flag actually works. ! 9504: # ! 9505: if test -n "$lt_prog_compiler_pic"; then ! 9506: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 ! 9507: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 ! 9508: if test "${lt_prog_compiler_pic_works+set}" = set; then ! 9509: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9510: else ! 9511: lt_prog_compiler_pic_works=no ! 9512: ac_outfile=conftest.$ac_objext ! 9513: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 9514: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ! 9515: # Insert the option either (1) after the last *FLAGS variable, or ! 9516: # (2) before a word containing "conftest.", or (3) at the end. ! 9517: # Note that $ac_compile itself does not contain backslashes and begins ! 9518: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 9519: # The option is referenced via a variable to avoid confusing sed. ! 9520: lt_compile=`echo "$ac_compile" | $SED \ ! 9521: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 9522: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 9523: -e 's:$: $lt_compiler_flag:'` ! 9524: (eval echo "\"\$as_me:9524: $lt_compile\"" >&5) ! 9525: (eval "$lt_compile" 2>conftest.err) ! 9526: ac_status=$? ! 9527: cat conftest.err >&5 ! 9528: echo "$as_me:9528: \$? = $ac_status" >&5 ! 9529: if (exit $ac_status) && test -s "$ac_outfile"; then ! 9530: # The compiler can only warn and ignore the option if not recognized ! 9531: # So say no if there are warnings ! 9532: if test ! -s conftest.err; then ! 9533: lt_prog_compiler_pic_works=yes ! 9534: fi ! 9535: fi ! 9536: $rm conftest* ! 9537: ! 9538: fi ! 9539: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 ! 9540: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 ! 9541: ! 9542: if test x"$lt_prog_compiler_pic_works" = xyes; then ! 9543: case $lt_prog_compiler_pic in ! 9544: "" | " "*) ;; ! 9545: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; ! 9546: esac ! 9547: else ! 9548: lt_prog_compiler_pic= ! 9549: lt_prog_compiler_can_build_shared=no ! 9550: fi ! 9551: ! 9552: fi ! 9553: case "$host_os" in ! 9554: # For platforms which do not support PIC, -DPIC is meaningless: ! 9555: *djgpp*) ! 9556: lt_prog_compiler_pic= ! 9557: ;; ! 9558: *) ! 9559: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ! 9560: ;; ! 9561: esac ! 9562: ! 9563: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 9564: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 9565: if test "${lt_cv_prog_compiler_c_o+set}" = set; then ! 9566: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9567: else ! 9568: lt_cv_prog_compiler_c_o=no ! 9569: $rm -r conftest 2>/dev/null ! 9570: mkdir conftest ! 9571: cd conftest ! 9572: mkdir out ! 9573: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 9574: ! 9575: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 9576: # that will create temporary files in the current directory regardless of ! 9577: # the output directory. Thus, making CWD read-only will cause this test ! 9578: # to fail, enabling locking or at least warning the user not to do parallel ! 9579: # builds. ! 9580: chmod -w . ! 9581: ! 9582: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 9583: # Insert the option either (1) after the last *FLAGS variable, or ! 9584: # (2) before a word containing "conftest.", or (3) at the end. ! 9585: # Note that $ac_compile itself does not contain backslashes and begins ! 9586: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 9587: lt_compile=`echo "$ac_compile" | $SED \ ! 9588: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 9589: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 9590: -e 's:$: $lt_compiler_flag:'` ! 9591: (eval echo "\"\$as_me:9591: $lt_compile\"" >&5) ! 9592: (eval "$lt_compile" 2>out/conftest.err) ! 9593: ac_status=$? ! 9594: cat out/conftest.err >&5 ! 9595: echo "$as_me:9595: \$? = $ac_status" >&5 ! 9596: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 9597: then ! 9598: # The compiler can only warn and ignore the option if not recognized ! 9599: # So say no if there are warnings ! 9600: if test ! -s out/conftest.err; then ! 9601: lt_cv_prog_compiler_c_o=yes ! 9602: fi ! 9603: fi ! 9604: chmod u+w . ! 9605: $rm conftest* out/* ! 9606: rmdir out ! 9607: cd .. ! 9608: rmdir conftest ! 9609: $rm conftest* ! 9610: ! 9611: fi ! 9612: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ! 9613: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 ! 9614: ! 9615: ! 9616: hard_links="nottested" ! 9617: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then ! 9618: # do not overwrite the value of need_locks provided by the user ! 9619: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 9620: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 9621: hard_links=yes ! 9622: $rm conftest* ! 9623: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 9624: touch conftest.a ! 9625: ln conftest.a conftest.b 2>&5 || hard_links=no ! 9626: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 9627: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 9628: echo "${ECHO_T}$hard_links" >&6 ! 9629: if test "$hard_links" = no; then ! 9630: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 9631: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 9632: need_locks=warn ! 9633: fi ! 9634: else ! 9635: need_locks=no ! 9636: fi ! 9637: ! 9638: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 9639: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 9640: ! 9641: runpath_var= ! 9642: allow_undefined_flag= ! 9643: enable_shared_with_static_runtimes=no ! 9644: archive_cmds= ! 9645: archive_expsym_cmds= ! 9646: old_archive_From_new_cmds= ! 9647: old_archive_from_expsyms_cmds= ! 9648: export_dynamic_flag_spec= ! 9649: whole_archive_flag_spec= ! 9650: thread_safe_flag_spec= ! 9651: hardcode_libdir_flag_spec= ! 9652: hardcode_libdir_flag_spec_ld= ! 9653: hardcode_libdir_separator= ! 9654: hardcode_direct=no ! 9655: hardcode_minus_L=no ! 9656: hardcode_shlibpath_var=unsupported ! 9657: link_all_deplibs=unknown ! 9658: hardcode_automatic=no ! 9659: module_cmds= ! 9660: module_expsym_cmds= ! 9661: always_export_symbols=no ! 9662: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 9663: # include_expsyms should be a list of space-separated symbols to be *always* ! 9664: # included in the symbol list ! 9665: include_expsyms= ! 9666: # exclude_expsyms can be an extended regexp of symbols to exclude ! 9667: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 9668: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 9669: # as well as any symbol that contains `d'. ! 9670: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" ! 9671: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 9672: # platforms (ab)use it in PIC code, but their linkers get confused if ! 9673: # the symbol is explicitly referenced. Since portable code cannot ! 9674: # rely on this symbol name, it's probably fine to never include it in ! 9675: # preloaded symbol tables. ! 9676: extract_expsyms_cmds= ! 9677: ! 9678: case $host_os in ! 9679: cygwin* | mingw* | pw32*) ! 9680: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 9681: # When not using gcc, we currently assume that we are using ! 9682: # Microsoft Visual C++. ! 9683: if test "$GCC" != yes; then ! 9684: with_gnu_ld=no ! 9685: fi ! 9686: ;; ! 9687: openbsd*) ! 9688: with_gnu_ld=no ! 9689: ;; ! 9690: esac ! 9691: ! 9692: ld_shlibs=yes ! 9693: if test "$with_gnu_ld" = yes; then ! 9694: # If archive_cmds runs LD, not CC, wlarc should be empty ! 9695: wlarc='${wl}' ! 9696: ! 9697: # See if GNU ld supports shared libraries. ! 9698: case $host_os in ! 9699: aix3* | aix4* | aix5*) ! 9700: # On AIX/PPC, the GNU linker is very broken ! 9701: if test "$host_cpu" != ia64; then ! 9702: ld_shlibs=no ! 9703: cat <<EOF 1>&2 ! 9704: ! 9705: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 9706: *** to be unable to reliably create shared libraries on AIX. ! 9707: *** Therefore, libtool is disabling shared libraries support. If you ! 9708: *** really care for shared libraries, you may want to modify your PATH ! 9709: *** so that a non-GNU linker is found, and then restart. ! 9710: ! 9711: EOF ! 9712: fi ! 9713: ;; ! 9714: ! 9715: amigaos*) ! 9716: 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)' ! 9717: hardcode_libdir_flag_spec='-L$libdir' ! 9718: hardcode_minus_L=yes ! 9719: ! 9720: # Samuel A. Falvo II <[email protected]> reports ! 9721: # that the semantics of dynamic libraries on AmigaOS, at least up ! 9722: # to version 4, is to share data among multiple programs linked ! 9723: # with the same dynamic library. Since this doesn't match the ! 9724: # behavior of shared libraries on other platforms, we can't use ! 9725: # them. ! 9726: ld_shlibs=no ! 9727: ;; ! 9728: ! 9729: beos*) ! 9730: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 9731: allow_undefined_flag=unsupported ! 9732: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 9733: # support --undefined. This deserves some investigation. FIXME ! 9734: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 9735: else ! 9736: ld_shlibs=no ! 9737: fi ! 9738: ;; ! 9739: ! 9740: cygwin* | mingw* | pw32*) ! 9741: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, ! 9742: # as there is no search path for DLLs. ! 9743: hardcode_libdir_flag_spec='-L$libdir' ! 9744: allow_undefined_flag=unsupported ! 9745: always_export_symbols=no ! 9746: enable_shared_with_static_runtimes=yes ! 9747: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 9748: ! 9749: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 9750: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 9751: # If the export-symbols file already is a .def file (1st line ! 9752: # is EXPORTS), use it as is; otherwise, prepend... ! 9753: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 9754: cp $export_symbols $output_objdir/$soname.def; ! 9755: else ! 9756: echo EXPORTS > $output_objdir/$soname.def; ! 9757: cat $export_symbols >> $output_objdir/$soname.def; ! 9758: fi~ ! 9759: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 9760: else ! 9761: ld_shlibs=no ! 9762: fi ! 9763: ;; ! 9764: ! 9765: netbsd*) ! 9766: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 9767: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 9768: wlarc= ! 9769: else ! 9770: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 9771: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 9772: fi ! 9773: ;; ! 9774: ! 9775: solaris* | sysv5*) ! 9776: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 9777: ld_shlibs=no ! 9778: cat <<EOF 1>&2 ! 9779: ! 9780: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 9781: *** create shared libraries on Solaris systems. Therefore, libtool ! 9782: *** is disabling shared libraries support. We urge you to upgrade GNU ! 9783: *** binutils to release 2.9.1 or newer. Another option is to modify ! 9784: *** your PATH or compiler configuration so that the native linker is ! 9785: *** used, and then restart. ! 9786: ! 9787: EOF ! 9788: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 9789: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 9790: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 9791: else ! 9792: ld_shlibs=no ! 9793: fi ! 9794: ;; ! 9795: ! 9796: sunos4*) ! 9797: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 9798: wlarc= ! 9799: hardcode_direct=yes ! 9800: hardcode_shlibpath_var=no ! 9801: ;; ! 9802: ! 9803: *) ! 9804: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 9805: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 9806: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 9807: else ! 9808: ld_shlibs=no ! 9809: fi ! 9810: ;; ! 9811: esac ! 9812: ! 9813: if test "$ld_shlibs" = yes; then ! 9814: runpath_var=LD_RUN_PATH ! 9815: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' ! 9816: export_dynamic_flag_spec='${wl}--export-dynamic' ! 9817: # ancient GNU ld didn't support --whole-archive et. al. ! 9818: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 9819: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 9820: else ! 9821: whole_archive_flag_spec= ! 9822: fi ! 9823: fi ! 9824: else ! 9825: # PORTME fill in a description of your system's linker (not GNU ld) ! 9826: case $host_os in ! 9827: aix3*) ! 9828: allow_undefined_flag=unsupported ! 9829: always_export_symbols=yes ! 9830: 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' ! 9831: # Note: this linker hardcodes the directories in LIBPATH if there ! 9832: # are no directories specified by -L. ! 9833: hardcode_minus_L=yes ! 9834: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 9835: # Neither direct hardcoding nor static linking is supported with a ! 9836: # broken collect2. ! 9837: hardcode_direct=unsupported ! 9838: fi ! 9839: ;; ! 9840: ! 9841: aix4* | aix5*) ! 9842: if test "$host_cpu" = ia64; then ! 9843: # On IA64, the linker does run time linking by default, so we don't ! 9844: # have to do anything special. ! 9845: aix_use_runtimelinking=no ! 9846: exp_sym_flag='-Bexport' ! 9847: no_entry_flag="" ! 9848: else ! 9849: # If we're using GNU nm, then we don't want the "-C" option. ! 9850: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 9851: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 9852: 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' ! 9853: else ! 9854: 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' ! 9855: fi ! 9856: aix_use_runtimelinking=no ! 9857: ! 9858: # Test if we are trying to use run time linking or normal ! 9859: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 9860: # need to do runtime linking. ! 9861: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 9862: for ld_flag in $LDFLAGS; do ! 9863: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 9864: aix_use_runtimelinking=yes ! 9865: break ! 9866: fi ! 9867: done ! 9868: esac ! 9869: ! 9870: exp_sym_flag='-bexport' ! 9871: no_entry_flag='-bnoentry' ! 9872: fi ! 9873: ! 9874: # When large executables or shared objects are built, AIX ld can ! 9875: # have problems creating the table of contents. If linking a library ! 9876: # or program results in "error TOC overflow" add -mminimal-toc to ! 9877: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 9878: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 9879: ! 9880: archive_cmds='' ! 9881: hardcode_direct=yes ! 9882: hardcode_libdir_separator=':' ! 9883: link_all_deplibs=yes ! 9884: ! 9885: if test "$GCC" = yes; then ! 9886: case $host_os in aix4.012|aix4.012.*) ! 9887: # We only want to do this on AIX 4.2 and lower, the check ! 9888: # below for broken collect2 doesn't work under 4.3+ ! 9889: collect2name=`${CC} -print-prog-name=collect2` ! 9890: if test -f "$collect2name" && \ ! 9891: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 9892: then ! 9893: # We have reworked collect2 ! 9894: hardcode_direct=yes ! 9895: else ! 9896: # We have old collect2 ! 9897: hardcode_direct=unsupported ! 9898: # It fails to find uninstalled libraries when the uninstalled ! 9899: # path is not listed in the libpath. Setting hardcode_minus_L ! 9900: # to unsupported forces relinking ! 9901: hardcode_minus_L=yes ! 9902: hardcode_libdir_flag_spec='-L$libdir' ! 9903: hardcode_libdir_separator= ! 9904: fi ! 9905: esac ! 9906: shared_flag='-shared' ! 9907: else ! 9908: # not using gcc ! 9909: if test "$host_cpu" = ia64; then ! 9910: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 9911: # chokes on -Wl,-G. The following line is correct: ! 9912: shared_flag='-G' ! 9913: else ! 9914: if test "$aix_use_runtimelinking" = yes; then ! 9915: shared_flag='${wl}-G' ! 9916: else ! 9917: shared_flag='${wl}-bM:SRE' ! 9918: fi ! 9919: fi ! 9920: fi ! 9921: ! 9922: # It seems that -bexpall does not export symbols beginning with ! 9923: # underscore (_), so it is better to generate a list of symbols to export. ! 9924: always_export_symbols=yes ! 9925: if test "$aix_use_runtimelinking" = yes; then ! 9926: # Warning - without using the other runtime loading flags (-brtl), ! 9927: # -berok will link without error, but may produce a broken library. ! 9928: allow_undefined_flag='-berok' ! 9929: # Determine the default libpath from the value encoded in an empty executable. ! 9930: cat >conftest.$ac_ext <<_ACEOF ! 9931: #line $LINENO "configure" ! 9932: /* confdefs.h. */ ! 9933: _ACEOF ! 9934: cat confdefs.h >>conftest.$ac_ext ! 9935: cat >>conftest.$ac_ext <<_ACEOF ! 9936: /* end confdefs.h. */ ! 9937: ! 9938: int ! 9939: main () ! 9940: { ! 9941: ! 9942: ; ! 9943: return 0; ! 9944: } ! 9945: _ACEOF ! 9946: rm -f conftest.$ac_objext conftest$ac_exeext ! 9947: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 9948: (eval $ac_link) 2>&5 ! 9949: ac_status=$? ! 9950: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9951: (exit $ac_status); } && ! 9952: { ac_try='test -s conftest$ac_exeext' ! 9953: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 9954: (eval $ac_try) 2>&5 ! 9955: ac_status=$? ! 9956: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9957: (exit $ac_status); }; }; then ! 9958: ! 9959: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9960: }'` ! 9961: # Check for a 64-bit object if we didn't find anything. ! 9962: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9963: }'`; fi ! 9964: else ! 9965: echo "$as_me: failed program was:" >&5 ! 9966: sed 's/^/| /' conftest.$ac_ext >&5 ! 9967: ! 9968: fi ! 9969: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 9970: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 9971: ! 9972: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ! 9973: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 9974: else ! 9975: if test "$host_cpu" = ia64; then ! 9976: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' ! 9977: allow_undefined_flag="-z nodefs" ! 9978: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 9979: else ! 9980: # Determine the default libpath from the value encoded in an empty executable. ! 9981: cat >conftest.$ac_ext <<_ACEOF ! 9982: #line $LINENO "configure" ! 9983: /* confdefs.h. */ ! 9984: _ACEOF ! 9985: cat confdefs.h >>conftest.$ac_ext ! 9986: cat >>conftest.$ac_ext <<_ACEOF ! 9987: /* end confdefs.h. */ ! 9988: ! 9989: int ! 9990: main () ! 9991: { ! 9992: ! 9993: ; ! 9994: return 0; ! 9995: } ! 9996: _ACEOF ! 9997: rm -f conftest.$ac_objext conftest$ac_exeext ! 9998: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 9999: (eval $ac_link) 2>&5 ! 10000: ac_status=$? ! 10001: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 10002: (exit $ac_status); } && ! 10003: { ac_try='test -s conftest$ac_exeext' ! 10004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 10005: (eval $ac_try) 2>&5 ! 10006: ac_status=$? ! 10007: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 10008: (exit $ac_status); }; }; then ! 10009: ! 10010: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 10011: }'` ! 10012: # Check for a 64-bit object if we didn't find anything. ! 10013: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 10014: }'`; fi ! 10015: else ! 10016: echo "$as_me: failed program was:" >&5 ! 10017: sed 's/^/| /' conftest.$ac_ext >&5 ! 10018: ! 10019: fi ! 10020: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 10021: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 10022: ! 10023: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ! 10024: # Warning - without using the other run time loading flags, ! 10025: # -berok will link without error, but may produce a broken library. ! 10026: no_undefined_flag=' ${wl}-bernotok' ! 10027: allow_undefined_flag=' ${wl}-berok' ! 10028: # -bexpall does not export symbols beginning with underscore (_) ! 10029: always_export_symbols=yes ! 10030: # Exported symbols can be pulled into shared objects from archives ! 10031: whole_archive_flag_spec=' ' ! 10032: archive_cmds_need_lc=yes ! 10033: # This is similar to how AIX traditionally builds it's shared libraries. ! 10034: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 10035: fi ! 10036: fi ! 10037: ;; ! 10038: ! 10039: amigaos*) ! 10040: 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)' ! 10041: hardcode_libdir_flag_spec='-L$libdir' ! 10042: hardcode_minus_L=yes ! 10043: # see comment about different semantics on the GNU ld section ! 10044: ld_shlibs=no ! 10045: ;; ! 10046: ! 10047: bsdi4*) ! 10048: export_dynamic_flag_spec=-rdynamic ! 10049: ;; ! 10050: ! 10051: cygwin* | mingw* | pw32*) ! 10052: # When not using gcc, we currently assume that we are using ! 10053: # Microsoft Visual C++. ! 10054: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 10055: # no search path for DLLs. ! 10056: hardcode_libdir_flag_spec=' ' ! 10057: allow_undefined_flag=unsupported ! 10058: # Tell ltmain to make .lib files, not .a files. ! 10059: libext=lib ! 10060: # Tell ltmain to make .dll files, not .so files. ! 10061: shrext=".dll" ! 10062: # FIXME: Setting linknames here is a bad hack. ! 10063: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 10064: # The linker will automatically build a .lib file if we build a DLL. ! 10065: old_archive_From_new_cmds='true' ! 10066: # FIXME: Should let the user specify the lib program. ! 10067: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 10068: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 10069: enable_shared_with_static_runtimes=yes ! 10070: ;; ! 10071: ! 10072: darwin* | rhapsody*) ! 10073: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 10074: archive_cmds_need_lc=no ! 10075: case "$host_os" in ! 10076: rhapsody* | darwin1.[012]) ! 10077: allow_undefined_flag='-undefined suppress' ! 10078: ;; ! 10079: *) # Darwin 1.3 on ! 10080: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ! 10081: ;; ! 10082: esac ! 10083: # FIXME: Relying on posixy $() will cause problems for ! 10084: # cross-compilation, but unfortunately the echo tests do not ! 10085: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 10086: # `"' quotes if we put them in here... so don't! ! 10087: lt_int_apple_cc_single_mod=no ! 10088: output_verbose_link_cmd='echo' ! 10089: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 10090: lt_int_apple_cc_single_mod=yes ! 10091: fi ! 10092: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 10093: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 10094: else ! 10095: archive_cmds='$CC -r ${wl}-bind_at_load -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' ! 10096: fi ! 10097: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 10098: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 10099: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 10100: archive_expsym_cmds='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}' ! 10101: else ! 10102: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' ! 10103: fi ! 10104: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 10105: hardcode_direct=no ! 10106: hardcode_automatic=yes ! 10107: hardcode_shlibpath_var=unsupported ! 10108: whole_archive_flag_spec='-all_load $convenience' ! 10109: link_all_deplibs=yes ! 10110: fi ! 10111: ;; ! 10112: ! 10113: dgux*) ! 10114: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10115: hardcode_libdir_flag_spec='-L$libdir' ! 10116: hardcode_shlibpath_var=no ! 10117: ;; ! 10118: ! 10119: freebsd1*) ! 10120: ld_shlibs=no ! 10121: ;; ! 10122: ! 10123: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 10124: # support. Future versions do this automatically, but an explicit c++rt0.o ! 10125: # does not break anything, and helps significantly (at the cost of a little ! 10126: # extra space). ! 10127: freebsd2.2*) ! 10128: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 10129: hardcode_libdir_flag_spec='-R$libdir' ! 10130: hardcode_direct=yes ! 10131: hardcode_shlibpath_var=no ! 10132: ;; ! 10133: ! 10134: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 10135: freebsd2*) ! 10136: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 10137: hardcode_direct=yes ! 10138: hardcode_minus_L=yes ! 10139: hardcode_shlibpath_var=no ! 10140: ;; ! 10141: ! 10142: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 10143: freebsd*) ! 10144: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 10145: hardcode_libdir_flag_spec='-R$libdir' ! 10146: hardcode_direct=yes ! 10147: hardcode_shlibpath_var=no ! 10148: ;; ! 10149: ! 10150: hpux9*) ! 10151: if test "$GCC" = yes; then ! 10152: 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' ! 10153: else ! 10154: 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' ! 10155: fi ! 10156: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 10157: hardcode_libdir_separator=: ! 10158: hardcode_direct=yes ! 10159: ! 10160: # hardcode_minus_L: Not really in the search PATH, ! 10161: # but as the default location of the library. ! 10162: hardcode_minus_L=yes ! 10163: export_dynamic_flag_spec='${wl}-E' ! 10164: ;; ! 10165: ! 10166: hpux10* | hpux11*) ! 10167: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 10168: case "$host_cpu" in ! 10169: hppa*64*|ia64*) ! 10170: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 10171: ;; ! 10172: *) ! 10173: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 10174: ;; ! 10175: esac ! 10176: else ! 10177: case "$host_cpu" in ! 10178: hppa*64*|ia64*) ! 10179: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10180: ;; ! 10181: *) ! 10182: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 10183: ;; ! 10184: esac ! 10185: fi ! 10186: if test "$with_gnu_ld" = no; then ! 10187: case "$host_cpu" in ! 10188: hppa*64*) ! 10189: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 10190: hardcode_libdir_flag_spec_ld='+b $libdir' ! 10191: hardcode_libdir_separator=: ! 10192: hardcode_direct=no ! 10193: hardcode_shlibpath_var=no ! 10194: ;; ! 10195: ia64*) ! 10196: hardcode_libdir_flag_spec='-L$libdir' ! 10197: hardcode_direct=no ! 10198: hardcode_shlibpath_var=no ! 10199: ! 10200: # hardcode_minus_L: Not really in the search PATH, ! 10201: # but as the default location of the library. ! 10202: hardcode_minus_L=yes ! 10203: ;; ! 10204: *) ! 10205: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 10206: hardcode_libdir_separator=: ! 10207: hardcode_direct=yes ! 10208: export_dynamic_flag_spec='${wl}-E' ! 10209: ! 10210: # hardcode_minus_L: Not really in the search PATH, ! 10211: # but as the default location of the library. ! 10212: hardcode_minus_L=yes ! 10213: ;; ! 10214: esac ! 10215: fi ! 10216: ;; ! 10217: ! 10218: irix5* | irix6* | nonstopux*) ! 10219: if test "$GCC" = yes; then ! 10220: 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' ! 10221: else ! 10222: 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' ! 10223: hardcode_libdir_flag_spec_ld='-rpath $libdir' ! 10224: fi ! 10225: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 10226: hardcode_libdir_separator=: ! 10227: link_all_deplibs=yes ! 10228: ;; ! 10229: ! 10230: netbsd*) ! 10231: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 10232: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 10233: else ! 10234: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 10235: fi ! 10236: hardcode_libdir_flag_spec='-R$libdir' ! 10237: hardcode_direct=yes ! 10238: hardcode_shlibpath_var=no ! 10239: ;; ! 10240: ! 10241: newsos6) ! 10242: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10243: hardcode_direct=yes ! 10244: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 10245: hardcode_libdir_separator=: ! 10246: hardcode_shlibpath_var=no ! 10247: ;; ! 10248: ! 10249: openbsd*) ! 10250: hardcode_direct=yes ! 10251: hardcode_shlibpath_var=no ! 10252: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 10253: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 10254: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ! 10255: export_dynamic_flag_spec='${wl}-E' ! 10256: else ! 10257: case $host_os in ! 10258: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 10259: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 10260: hardcode_libdir_flag_spec='-R$libdir' ! 10261: ;; ! 10262: *) ! 10263: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 10264: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ! 10265: ;; ! 10266: esac ! 10267: fi ! 10268: ;; ! 10269: ! 10270: os2*) ! 10271: hardcode_libdir_flag_spec='-L$libdir' ! 10272: hardcode_minus_L=yes ! 10273: allow_undefined_flag=unsupported ! 10274: 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' ! 10275: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 10276: ;; ! 10277: ! 10278: osf3*) ! 10279: if test "$GCC" = yes; then ! 10280: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ! 10281: 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' ! 10282: else ! 10283: allow_undefined_flag=' -expect_unresolved \*' ! 10284: 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' ! 10285: fi ! 10286: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 10287: hardcode_libdir_separator=: ! 10288: ;; ! 10289: ! 10290: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 10291: if test "$GCC" = yes; then ! 10292: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ! 10293: 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' ! 10294: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 10295: else ! 10296: allow_undefined_flag=' -expect_unresolved \*' ! 10297: 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' ! 10298: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ ! 10299: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 10300: ! 10301: # Both c and cxx compiler support -rpath directly ! 10302: hardcode_libdir_flag_spec='-rpath $libdir' ! 10303: fi ! 10304: hardcode_libdir_separator=: ! 10305: ;; ! 10306: ! 10307: sco3.2v5*) ! 10308: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10309: hardcode_shlibpath_var=no ! 10310: export_dynamic_flag_spec='${wl}-Bexport' ! 10311: runpath_var=LD_RUN_PATH ! 10312: hardcode_runpath_var=yes ! 10313: ;; ! 10314: ! 10315: solaris*) ! 10316: no_undefined_flag=' -z text' ! 10317: if test "$GCC" = yes; then ! 10318: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 10319: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10320: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 10321: else ! 10322: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10323: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10324: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 10325: fi ! 10326: hardcode_libdir_flag_spec='-R$libdir' ! 10327: hardcode_shlibpath_var=no ! 10328: case $host_os in ! 10329: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 10330: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 10331: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; ! 10332: esac ! 10333: link_all_deplibs=yes ! 10334: ;; ! 10335: ! 10336: sunos4*) ! 10337: if test "x$host_vendor" = xsequent; then ! 10338: # Use $CC to link under sequent, because it throws in some extra .o ! 10339: # files that make .init and .fini sections work. ! 10340: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 10341: else ! 10342: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 10343: fi ! 10344: hardcode_libdir_flag_spec='-L$libdir' ! 10345: hardcode_direct=yes ! 10346: hardcode_minus_L=yes ! 10347: hardcode_shlibpath_var=no ! 10348: ;; ! 10349: ! 10350: sysv4) ! 10351: case $host_vendor in ! 10352: sni) ! 10353: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10354: hardcode_direct=yes # is this really true??? ! 10355: ;; ! 10356: siemens) ! 10357: ## LD is ld it makes a PLAMLIB ! 10358: ## CC just makes a GrossModule. ! 10359: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 10360: reload_cmds='$CC -r -o $output$reload_objs' ! 10361: hardcode_direct=no ! 10362: ;; ! 10363: motorola) ! 10364: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10365: hardcode_direct=no #Motorola manual says yes, but my tests say they lie ! 10366: ;; ! 10367: esac ! 10368: runpath_var='LD_RUN_PATH' ! 10369: hardcode_shlibpath_var=no ! 10370: ;; ! 10371: ! 10372: sysv4.3*) ! 10373: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10374: hardcode_shlibpath_var=no ! 10375: export_dynamic_flag_spec='-Bexport' ! 10376: ;; ! 10377: ! 10378: sysv4*MP*) ! 10379: if test -d /usr/nec; then ! 10380: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10381: hardcode_shlibpath_var=no ! 10382: runpath_var=LD_RUN_PATH ! 10383: hardcode_runpath_var=yes ! 10384: ld_shlibs=yes ! 10385: fi ! 10386: ;; ! 10387: ! 10388: sysv4.2uw2*) ! 10389: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 10390: hardcode_direct=yes ! 10391: hardcode_minus_L=no ! 10392: hardcode_shlibpath_var=no ! 10393: hardcode_runpath_var=yes ! 10394: runpath_var=LD_RUN_PATH ! 10395: ;; ! 10396: ! 10397: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 10398: no_undefined_flag='${wl}-z ${wl}text' ! 10399: if test "$GCC" = yes; then ! 10400: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 10401: else ! 10402: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 10403: fi ! 10404: runpath_var='LD_RUN_PATH' ! 10405: hardcode_shlibpath_var=no ! 10406: ;; ! 10407: ! 10408: sysv5*) ! 10409: no_undefined_flag=' -z text' ! 10410: # $CC -shared without GNU ld will not create a library from C++ ! 10411: # object files and a static libstdc++, better avoid it by now ! 10412: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10413: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10414: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 10415: hardcode_libdir_flag_spec= ! 10416: hardcode_shlibpath_var=no ! 10417: runpath_var='LD_RUN_PATH' ! 10418: ;; ! 10419: ! 10420: uts4*) ! 10421: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 10422: hardcode_libdir_flag_spec='-L$libdir' ! 10423: hardcode_shlibpath_var=no ! 10424: ;; ! 10425: ! 10426: *) ! 10427: ld_shlibs=no ! 10428: ;; ! 10429: esac ! 10430: fi ! 10431: ! 10432: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 ! 10433: echo "${ECHO_T}$ld_shlibs" >&6 ! 10434: test "$ld_shlibs" = no && can_build_shared=no ! 10435: ! 10436: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 10437: if test "$GCC" = yes; then ! 10438: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 10439: fi ! 10440: ! 10441: # ! 10442: # Do we need to explicitly link libc? ! 10443: # ! 10444: case "x$archive_cmds_need_lc" in ! 10445: x|xyes) ! 10446: # Assume -lc should be added ! 10447: archive_cmds_need_lc=yes ! 10448: ! 10449: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 10450: case $archive_cmds in ! 10451: *'~'*) ! 10452: # FIXME: we may have to deal with multi-command sequences. ! 10453: ;; ! 10454: '$CC '*) ! 10455: # Test whether the compiler implicitly links with -lc since on some ! 10456: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 10457: # to ld, don't add -lc before -lgcc. ! 10458: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 10459: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 10460: $rm conftest* ! 10461: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 10462: ! 10463: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 10464: (eval $ac_compile) 2>&5 ! 10465: ac_status=$? ! 10466: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 10467: (exit $ac_status); } 2>conftest.err; then ! 10468: soname=conftest ! 10469: lib=conftest ! 10470: libobjs=conftest.$ac_objext ! 10471: deplibs= ! 10472: wl=$lt_prog_compiler_wl ! 10473: compiler_flags=-v ! 10474: linker_flags=-v ! 10475: verstring= ! 10476: output_objdir=. ! 10477: libname=conftest ! 10478: lt_save_allow_undefined_flag=$allow_undefined_flag ! 10479: allow_undefined_flag= ! 10480: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 10481: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 10482: ac_status=$? ! 10483: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 10484: (exit $ac_status); } ! 10485: then ! 10486: archive_cmds_need_lc=no ! 10487: else ! 10488: archive_cmds_need_lc=yes ! 10489: fi ! 10490: allow_undefined_flag=$lt_save_allow_undefined_flag ! 10491: else ! 10492: cat conftest.err 1>&5 ! 10493: fi ! 10494: $rm conftest* ! 10495: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 ! 10496: echo "${ECHO_T}$archive_cmds_need_lc" >&6 ! 10497: ;; ! 10498: esac ! 10499: fi ! 10500: ;; ! 10501: esac ! 10502: ! 10503: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 10504: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 10505: hardcode_action= ! 10506: if test -n "$hardcode_libdir_flag_spec" || \ ! 10507: test -n "$runpath_var " || \ ! 10508: test "X$hardcode_automatic"="Xyes" ; then ! 10509: ! 10510: # We can hardcode non-existant directories. ! 10511: if test "$hardcode_direct" != no && ! 10512: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 10513: # have to relink, otherwise we might link with an installed library ! 10514: # when we should be linking with a yet-to-be-installed one ! 10515: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && ! 10516: test "$hardcode_minus_L" != no; then ! 10517: # Linking always hardcodes the temporary library directory. ! 10518: hardcode_action=relink ! 10519: else ! 10520: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 10521: hardcode_action=immediate ! 10522: fi ! 10523: else ! 10524: # We cannot hardcode anything, or else we can only hardcode existing ! 10525: # directories. ! 10526: hardcode_action=unsupported ! 10527: fi ! 10528: echo "$as_me:$LINENO: result: $hardcode_action" >&5 ! 10529: echo "${ECHO_T}$hardcode_action" >&6 ! 10530: ! 10531: if test "$hardcode_action" = relink; then ! 10532: # Fast installation is not supported ! 10533: enable_fast_install=no ! 10534: elif test "$shlibpath_overrides_runpath" = yes || ! 10535: test "$enable_shared" = no; then ! 10536: # Fast installation is not necessary ! 10537: enable_fast_install=needless ! 10538: fi ! 10539: ! 10540: striplib= ! 10541: old_striplib= ! 10542: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 10543: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 10544: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 10545: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 10546: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 10547: echo "$as_me:$LINENO: result: yes" >&5 ! 10548: echo "${ECHO_T}yes" >&6 ! 10549: else ! 10550: # FIXME - insert some real tests, host_os isn't really good enough ! 10551: case $host_os in ! 10552: darwin*) ! 10553: if test -n "$STRIP" ; then ! 10554: striplib="$STRIP -x" ! 10555: echo "$as_me:$LINENO: result: yes" >&5 ! 10556: echo "${ECHO_T}yes" >&6 ! 10557: else ! 10558: echo "$as_me:$LINENO: result: no" >&5 ! 10559: echo "${ECHO_T}no" >&6 ! 10560: fi ! 10561: ;; ! 10562: *) ! 10563: echo "$as_me:$LINENO: result: no" >&5 ! 10564: echo "${ECHO_T}no" >&6 ! 10565: ;; ! 10566: esac ! 10567: fi ! 10568: ! 10569: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 10570: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 10571: library_names_spec= ! 10572: libname_spec='lib$name' ! 10573: soname_spec= ! 10574: shrext=".so" ! 10575: postinstall_cmds= ! 10576: postuninstall_cmds= ! 10577: finish_cmds= ! 10578: finish_eval= ! 10579: shlibpath_var= ! 10580: shlibpath_overrides_runpath=unknown ! 10581: version_type=none ! 10582: dynamic_linker="$host_os ld.so" ! 10583: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 10584: if test "$GCC" = yes; then ! 10585: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 10586: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 10587: # if the path contains ";" then we assume it to be the separator ! 10588: # otherwise default to the standard path separator (i.e. ":") - it is ! 10589: # assumed that no part of a normal pathname contains ";" but that should ! 10590: # okay in the real world where ";" in dirpaths is itself problematic. ! 10591: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 10592: else ! 10593: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 10594: fi ! 10595: else ! 10596: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 10597: fi ! 10598: need_lib_prefix=unknown ! 10599: hardcode_into_libs=no ! 10600: ! 10601: # when you set need_version to no, make sure it does not cause -set_version ! 10602: # flags to be left without arguments ! 10603: need_version=unknown ! 10604: ! 10605: case $host_os in ! 10606: aix3*) ! 10607: version_type=linux ! 10608: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 10609: shlibpath_var=LIBPATH ! 10610: ! 10611: # AIX 3 has no versioning support, so we append a major version to the name. ! 10612: soname_spec='${libname}${release}${shared_ext}$major' ! 10613: ;; ! 10614: ! 10615: aix4* | aix5*) ! 10616: version_type=linux ! 10617: need_lib_prefix=no ! 10618: need_version=no ! 10619: hardcode_into_libs=yes ! 10620: if test "$host_cpu" = ia64; then ! 10621: # AIX 5 supports IA64 ! 10622: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 10623: shlibpath_var=LD_LIBRARY_PATH ! 10624: else ! 10625: # With GCC up to 2.95.x, collect2 would create an import file ! 10626: # for dependence libraries. The import file would start with ! 10627: # the line `#! .'. This would cause the generated library to ! 10628: # depend on `.', always an invalid library. This was fixed in ! 10629: # development snapshots of GCC prior to 3.0. ! 10630: case $host_os in ! 10631: aix4 | aix4.[01] | aix4.[01].*) ! 10632: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 10633: echo ' yes ' ! 10634: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 10635: : ! 10636: else ! 10637: can_build_shared=no ! 10638: fi ! 10639: ;; ! 10640: esac ! 10641: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 10642: # soname into executable. Probably we can add versioning support to ! 10643: # collect2, so additional links can be useful in future. ! 10644: if test "$aix_use_runtimelinking" = yes; then ! 10645: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 10646: # instead of lib<name>.a to let people know that these are not ! 10647: # typical AIX shared libraries. ! 10648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10649: else ! 10650: # We preserve .a as extension for shared libraries through AIX4.2 ! 10651: # and later when we are not doing run time linking. ! 10652: library_names_spec='${libname}${release}.a $libname.a' ! 10653: soname_spec='${libname}${release}${shared_ext}$major' ! 10654: fi ! 10655: shlibpath_var=LIBPATH ! 10656: fi ! 10657: ;; ! 10658: ! 10659: amigaos*) ! 10660: library_names_spec='$libname.ixlibrary $libname.a' ! 10661: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 10662: 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' ! 10663: ;; ! 10664: ! 10665: beos*) ! 10666: library_names_spec='${libname}${shared_ext}' ! 10667: dynamic_linker="$host_os ld.so" ! 10668: shlibpath_var=LIBRARY_PATH ! 10669: ;; ! 10670: ! 10671: bsdi4*) ! 10672: version_type=linux ! 10673: need_version=no ! 10674: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10675: soname_spec='${libname}${release}${shared_ext}$major' ! 10676: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 10677: shlibpath_var=LD_LIBRARY_PATH ! 10678: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 10679: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 10680: # the default ld.so.conf also contains /usr/contrib/lib and ! 10681: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 10682: # libtool to hard-code these into programs ! 10683: ;; ! 10684: ! 10685: cygwin* | mingw* | pw32*) ! 10686: version_type=windows ! 10687: shrext=".dll" ! 10688: need_version=no ! 10689: need_lib_prefix=no ! 10690: ! 10691: case $GCC,$host_os in ! 10692: yes,cygwin* | yes,mingw* | yes,pw32*) ! 10693: library_names_spec='$libname.dll.a' ! 10694: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 10695: postinstall_cmds='base_file=`basename \${file}`~ ! 10696: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 10697: dldir=$destdir/`dirname \$dlpath`~ ! 10698: test -d \$dldir || mkdir -p \$dldir~ ! 10699: $install_prog $dir/$dlname \$dldir/$dlname' ! 10700: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 10701: dlpath=$dir/\$dldll~ ! 10702: $rm \$dlpath' ! 10703: shlibpath_overrides_runpath=yes ! 10704: ! 10705: case $host_os in ! 10706: cygwin*) ! 10707: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 10708: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 10709: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 10710: ;; ! 10711: mingw*) ! 10712: # MinGW DLLs use traditional 'lib' prefix ! 10713: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 10714: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 10715: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 10716: # It is most probably a Windows format PATH printed by ! 10717: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 10718: # path with ; separators, and with drive letters. We can handle the ! 10719: # drive letters (cygwin fileutils understands them), so leave them, ! 10720: # especially as we might pass files found there to a mingw objdump, ! 10721: # which wouldn't understand a cygwinified path. Ahh. ! 10722: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 10723: else ! 10724: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 10725: fi ! 10726: ;; ! 10727: pw32*) ! 10728: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 10729: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 10730: ;; ! 10731: esac ! 10732: ;; ! 10733: ! 10734: *) ! 10735: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 10736: ;; ! 10737: esac ! 10738: dynamic_linker='Win32 ld.exe' ! 10739: # FIXME: first we should search . and the directory the executable is in ! 10740: shlibpath_var=PATH ! 10741: ;; ! 10742: ! 10743: darwin* | rhapsody*) ! 10744: dynamic_linker="$host_os dyld" ! 10745: version_type=darwin ! 10746: need_lib_prefix=no ! 10747: need_version=no ! 10748: # FIXME: Relying on posixy $() will cause problems for ! 10749: # cross-compilation, but unfortunately the echo tests do not ! 10750: # yet detect zsh echo's removal of \ escapes. ! 10751: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 10752: soname_spec='${libname}${release}${major}$shared_ext' ! 10753: shlibpath_overrides_runpath=yes ! 10754: shlibpath_var=DYLD_LIBRARY_PATH ! 10755: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 10756: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 10757: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 10758: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 10759: fi ! 10760: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 10761: ;; ! 10762: ! 10763: dgux*) ! 10764: version_type=linux ! 10765: need_lib_prefix=no ! 10766: need_version=no ! 10767: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 10768: soname_spec='${libname}${release}${shared_ext}$major' ! 10769: shlibpath_var=LD_LIBRARY_PATH ! 10770: ;; ! 10771: ! 10772: freebsd1*) ! 10773: dynamic_linker=no ! 10774: ;; ! 10775: ! 10776: freebsd*) ! 10777: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 10778: version_type=freebsd-$objformat ! 10779: case $version_type in ! 10780: freebsd-elf*) ! 10781: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 10782: need_version=no ! 10783: need_lib_prefix=no ! 10784: ;; ! 10785: freebsd-*) ! 10786: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 10787: need_version=yes ! 10788: ;; ! 10789: esac ! 10790: shlibpath_var=LD_LIBRARY_PATH ! 10791: case $host_os in ! 10792: freebsd2*) ! 10793: shlibpath_overrides_runpath=yes ! 10794: ;; ! 10795: freebsd3.01* | freebsdelf3.01*) ! 10796: shlibpath_overrides_runpath=yes ! 10797: hardcode_into_libs=yes ! 10798: ;; ! 10799: *) # from 3.2 on ! 10800: shlibpath_overrides_runpath=no ! 10801: hardcode_into_libs=yes ! 10802: ;; ! 10803: esac ! 10804: ;; ! 10805: ! 10806: gnu*) ! 10807: version_type=linux ! 10808: need_lib_prefix=no ! 10809: need_version=no ! 10810: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 10811: soname_spec='${libname}${release}${shared_ext}$major' ! 10812: shlibpath_var=LD_LIBRARY_PATH ! 10813: hardcode_into_libs=yes ! 10814: ;; ! 10815: ! 10816: hpux9* | hpux10* | hpux11*) ! 10817: # Give a soname corresponding to the major version so that dld.sl refuses to ! 10818: # link against other versions. ! 10819: version_type=sunos ! 10820: need_lib_prefix=no ! 10821: need_version=no ! 10822: case "$host_cpu" in ! 10823: ia64*) ! 10824: shrext='.so' ! 10825: hardcode_into_libs=yes ! 10826: dynamic_linker="$host_os dld.so" ! 10827: shlibpath_var=LD_LIBRARY_PATH ! 10828: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 10829: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10830: soname_spec='${libname}${release}${shared_ext}$major' ! 10831: if test "X$HPUX_IA64_MODE" = X32; then ! 10832: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 10833: else ! 10834: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 10835: fi ! 10836: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 10837: ;; ! 10838: hppa*64*) ! 10839: shrext='.sl' ! 10840: hardcode_into_libs=yes ! 10841: dynamic_linker="$host_os dld.sl" ! 10842: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 10843: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 10844: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10845: soname_spec='${libname}${release}${shared_ext}$major' ! 10846: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 10847: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 10848: ;; ! 10849: *) ! 10850: shrext='.sl' ! 10851: dynamic_linker="$host_os dld.sl" ! 10852: shlibpath_var=SHLIB_PATH ! 10853: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 10854: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10855: soname_spec='${libname}${release}${shared_ext}$major' ! 10856: ;; ! 10857: esac ! 10858: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 10859: postinstall_cmds='chmod 555 $lib' ! 10860: ;; ! 10861: ! 10862: irix5* | irix6* | nonstopux*) ! 10863: case $host_os in ! 10864: nonstopux*) version_type=nonstopux ;; ! 10865: *) ! 10866: if test "$lt_cv_prog_gnu_ld" = yes; then ! 10867: version_type=linux ! 10868: else ! 10869: version_type=irix ! 10870: fi ;; ! 10871: esac ! 10872: need_lib_prefix=no ! 10873: need_version=no ! 10874: soname_spec='${libname}${release}${shared_ext}$major' ! 10875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 10876: case $host_os in ! 10877: irix5* | nonstopux*) ! 10878: libsuff= shlibsuff= ! 10879: ;; ! 10880: *) ! 10881: case $LD in # libtool.m4 will add one of these switches to LD ! 10882: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 10883: libsuff= shlibsuff= libmagic=32-bit;; ! 10884: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 10885: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 10886: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 10887: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 10888: *) libsuff= shlibsuff= libmagic=never-match;; ! 10889: esac ! 10890: ;; ! 10891: esac ! 10892: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 10893: shlibpath_overrides_runpath=no ! 10894: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 10895: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 10896: hardcode_into_libs=yes ! 10897: ;; ! 10898: ! 10899: # No shared lib support for Linux oldld, aout, or coff. ! 10900: linux*oldld* | linux*aout* | linux*coff*) ! 10901: dynamic_linker=no ! 10902: ;; ! 10903: ! 10904: # This must be Linux ELF. ! 10905: linux*) ! 10906: version_type=linux ! 10907: need_lib_prefix=no ! 10908: need_version=no ! 10909: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10910: soname_spec='${libname}${release}${shared_ext}$major' ! 10911: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 10912: shlibpath_var=LD_LIBRARY_PATH ! 10913: shlibpath_overrides_runpath=no ! 10914: # This implies no fast_install, which is unacceptable. ! 10915: # Some rework will be needed to allow for fast_install ! 10916: # before this can be enabled. ! 10917: hardcode_into_libs=yes ! 10918: ! 10919: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 10920: # powerpc, because MkLinux only supported shared libraries with the ! 10921: # GNU dynamic linker. Since this was broken with cross compilers, ! 10922: # most powerpc-linux boxes support dynamic linking these days and ! 10923: # people can always --disable-shared, the test was removed, and we ! 10924: # assume the GNU/Linux dynamic linker is in use. ! 10925: dynamic_linker='GNU/Linux ld.so' ! 10926: ;; ! 10927: ! 10928: netbsd*) ! 10929: version_type=sunos ! 10930: need_lib_prefix=no ! 10931: need_version=no ! 10932: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 10933: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 10934: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 10935: dynamic_linker='NetBSD (a.out) ld.so' ! 10936: else ! 10937: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 10938: soname_spec='${libname}${release}${shared_ext}$major' ! 10939: dynamic_linker='NetBSD ld.elf_so' ! 10940: fi ! 10941: shlibpath_var=LD_LIBRARY_PATH ! 10942: shlibpath_overrides_runpath=yes ! 10943: hardcode_into_libs=yes ! 10944: ;; ! 10945: ! 10946: newsos6) ! 10947: version_type=linux ! 10948: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10949: shlibpath_var=LD_LIBRARY_PATH ! 10950: shlibpath_overrides_runpath=yes ! 10951: ;; ! 10952: ! 10953: nto-qnx) ! 10954: version_type=linux ! 10955: need_lib_prefix=no ! 10956: need_version=no ! 10957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10958: soname_spec='${libname}${release}${shared_ext}$major' ! 10959: shlibpath_var=LD_LIBRARY_PATH ! 10960: shlibpath_overrides_runpath=yes ! 10961: ;; ! 10962: ! 10963: openbsd*) ! 10964: version_type=sunos ! 10965: need_lib_prefix=no ! 10966: need_version=no ! 10967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 10968: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 10969: shlibpath_var=LD_LIBRARY_PATH ! 10970: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 10971: case $host_os in ! 10972: openbsd2.[89] | openbsd2.[89].*) ! 10973: shlibpath_overrides_runpath=no ! 10974: ;; ! 10975: *) ! 10976: shlibpath_overrides_runpath=yes ! 10977: ;; ! 10978: esac ! 10979: else ! 10980: shlibpath_overrides_runpath=yes ! 10981: fi ! 10982: ;; ! 10983: ! 10984: os2*) ! 10985: libname_spec='$name' ! 10986: shrext=".dll" ! 10987: need_lib_prefix=no ! 10988: library_names_spec='$libname${shared_ext} $libname.a' ! 10989: dynamic_linker='OS/2 ld.exe' ! 10990: shlibpath_var=LIBPATH ! 10991: ;; ! 10992: ! 10993: osf3* | osf4* | osf5*) ! 10994: version_type=osf ! 10995: need_lib_prefix=no ! 10996: need_version=no ! 10997: soname_spec='${libname}${release}${shared_ext}$major' ! 10998: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 10999: shlibpath_var=LD_LIBRARY_PATH ! 11000: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 11001: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 11002: ;; ! 11003: ! 11004: sco3.2v5*) ! 11005: version_type=osf ! 11006: soname_spec='${libname}${release}${shared_ext}$major' ! 11007: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11008: shlibpath_var=LD_LIBRARY_PATH ! 11009: ;; ! 11010: ! 11011: solaris*) ! 11012: version_type=linux ! 11013: need_lib_prefix=no ! 11014: need_version=no ! 11015: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11016: soname_spec='${libname}${release}${shared_ext}$major' ! 11017: shlibpath_var=LD_LIBRARY_PATH ! 11018: shlibpath_overrides_runpath=yes ! 11019: hardcode_into_libs=yes ! 11020: # ldd complains unless libraries are executable ! 11021: postinstall_cmds='chmod +x $lib' ! 11022: ;; ! 11023: ! 11024: sunos4*) ! 11025: version_type=sunos ! 11026: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 11027: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 11028: shlibpath_var=LD_LIBRARY_PATH ! 11029: shlibpath_overrides_runpath=yes ! 11030: if test "$with_gnu_ld" = yes; then ! 11031: need_lib_prefix=no ! 11032: fi ! 11033: need_version=yes ! 11034: ;; ! 11035: ! 11036: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 11037: version_type=linux ! 11038: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11039: soname_spec='${libname}${release}${shared_ext}$major' ! 11040: shlibpath_var=LD_LIBRARY_PATH ! 11041: case $host_vendor in ! 11042: sni) ! 11043: shlibpath_overrides_runpath=no ! 11044: need_lib_prefix=no ! 11045: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 11046: runpath_var=LD_RUN_PATH ! 11047: ;; ! 11048: siemens) ! 11049: need_lib_prefix=no ! 11050: ;; ! 11051: motorola) ! 11052: need_lib_prefix=no ! 11053: need_version=no ! 11054: shlibpath_overrides_runpath=no ! 11055: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 11056: ;; ! 11057: esac ! 11058: ;; ! 11059: ! 11060: sysv4*MP*) ! 11061: if test -d /usr/nec ;then ! 11062: version_type=linux ! 11063: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 11064: soname_spec='$libname${shared_ext}.$major' ! 11065: shlibpath_var=LD_LIBRARY_PATH ! 11066: fi ! 11067: ;; ! 11068: ! 11069: uts4*) ! 11070: version_type=linux ! 11071: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11072: soname_spec='${libname}${release}${shared_ext}$major' ! 11073: shlibpath_var=LD_LIBRARY_PATH ! 11074: ;; ! 11075: ! 11076: *) ! 11077: dynamic_linker=no ! 11078: ;; ! 11079: esac ! 11080: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 11081: echo "${ECHO_T}$dynamic_linker" >&6 ! 11082: test "$dynamic_linker" = no && can_build_shared=no ! 11083: ! 11084: if test "x$enable_dlopen" != xyes; then ! 11085: enable_dlopen=unknown ! 11086: enable_dlopen_self=unknown ! 11087: enable_dlopen_self_static=unknown ! 11088: else ! 11089: lt_cv_dlopen=no ! 11090: lt_cv_dlopen_libs= ! 11091: ! 11092: case $host_os in ! 11093: beos*) ! 11094: lt_cv_dlopen="load_add_on" ! 11095: lt_cv_dlopen_libs= ! 11096: lt_cv_dlopen_self=yes ! 11097: ;; ! 11098: ! 11099: mingw* | pw32*) ! 11100: lt_cv_dlopen="LoadLibrary" ! 11101: lt_cv_dlopen_libs= ! 11102: ;; ! 11103: ! 11104: cygwin*) ! 11105: lt_cv_dlopen="dlopen" ! 11106: lt_cv_dlopen_libs= ! 11107: ;; ! 11108: ! 11109: darwin*) ! 11110: # if libdl is installed we need to link against it ! 11111: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 11112: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 11113: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 11114: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11115: else ! 11116: ac_check_lib_save_LIBS=$LIBS ! 11117: LIBS="-ldl $LIBS" ! 11118: cat >conftest.$ac_ext <<_ACEOF ! 11119: #line $LINENO "configure" ! 11120: /* confdefs.h. */ ! 11121: _ACEOF ! 11122: cat confdefs.h >>conftest.$ac_ext ! 11123: cat >>conftest.$ac_ext <<_ACEOF ! 11124: /* end confdefs.h. */ ! 11125: ! 11126: /* Override any gcc2 internal prototype to avoid an error. */ ! 11127: #ifdef __cplusplus ! 11128: extern "C" ! 11129: #endif ! 11130: /* We use char because int might match the return type of a gcc2 ! 11131: builtin and then its argument prototype would still apply. */ ! 11132: char dlopen (); ! 11133: int ! 11134: main () ! 11135: { ! 11136: dlopen (); ! 11137: ; ! 11138: return 0; ! 11139: } ! 11140: _ACEOF ! 11141: rm -f conftest.$ac_objext conftest$ac_exeext ! 11142: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11143: (eval $ac_link) 2>&5 ! 11144: ac_status=$? ! 11145: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11146: (exit $ac_status); } && ! 11147: { ac_try='test -s conftest$ac_exeext' ! 11148: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11149: (eval $ac_try) 2>&5 ! 11150: ac_status=$? ! 11151: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11152: (exit $ac_status); }; }; then ! 11153: ac_cv_lib_dl_dlopen=yes ! 11154: else ! 11155: echo "$as_me: failed program was:" >&5 ! 11156: sed 's/^/| /' conftest.$ac_ext >&5 ! 11157: ! 11158: ac_cv_lib_dl_dlopen=no ! 11159: fi ! 11160: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11161: LIBS=$ac_check_lib_save_LIBS ! 11162: fi ! 11163: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 11164: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 11165: if test $ac_cv_lib_dl_dlopen = yes; then ! 11166: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 11167: else ! 11168: ! 11169: lt_cv_dlopen="dyld" ! 11170: lt_cv_dlopen_libs= ! 11171: lt_cv_dlopen_self=yes ! 11172: ! 11173: fi ! 11174: ! 11175: ;; ! 11176: ! 11177: *) ! 11178: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 11179: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 11180: if test "${ac_cv_func_shl_load+set}" = set; then ! 11181: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11182: else ! 11183: cat >conftest.$ac_ext <<_ACEOF ! 11184: #line $LINENO "configure" ! 11185: /* confdefs.h. */ ! 11186: _ACEOF ! 11187: cat confdefs.h >>conftest.$ac_ext ! 11188: cat >>conftest.$ac_ext <<_ACEOF ! 11189: /* end confdefs.h. */ ! 11190: /* System header to define __stub macros and hopefully few prototypes, ! 11191: which can conflict with char shl_load (); below. ! 11192: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 11193: <limits.h> exists even on freestanding compilers. */ ! 11194: #ifdef __STDC__ ! 11195: # include <limits.h> ! 11196: #else ! 11197: # include <assert.h> ! 11198: #endif ! 11199: /* Override any gcc2 internal prototype to avoid an error. */ ! 11200: #ifdef __cplusplus ! 11201: extern "C" ! 11202: { ! 11203: #endif ! 11204: /* We use char because int might match the return type of a gcc2 ! 11205: builtin and then its argument prototype would still apply. */ ! 11206: char shl_load (); ! 11207: /* The GNU C library defines this for functions which it implements ! 11208: to always fail with ENOSYS. Some functions are actually named ! 11209: something starting with __ and the normal name is an alias. */ ! 11210: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 11211: choke me ! 11212: #else ! 11213: char (*f) () = shl_load; ! 11214: #endif ! 11215: #ifdef __cplusplus ! 11216: } ! 11217: #endif ! 11218: ! 11219: int ! 11220: main () ! 11221: { ! 11222: return f != shl_load; ! 11223: ; ! 11224: return 0; ! 11225: } ! 11226: _ACEOF ! 11227: rm -f conftest.$ac_objext conftest$ac_exeext ! 11228: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11229: (eval $ac_link) 2>&5 ! 11230: ac_status=$? ! 11231: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11232: (exit $ac_status); } && ! 11233: { ac_try='test -s conftest$ac_exeext' ! 11234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11235: (eval $ac_try) 2>&5 ! 11236: ac_status=$? ! 11237: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11238: (exit $ac_status); }; }; then ! 11239: ac_cv_func_shl_load=yes ! 11240: else ! 11241: echo "$as_me: failed program was:" >&5 ! 11242: sed 's/^/| /' conftest.$ac_ext >&5 ! 11243: ! 11244: ac_cv_func_shl_load=no ! 11245: fi ! 11246: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11247: fi ! 11248: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 11249: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 11250: if test $ac_cv_func_shl_load = yes; then ! 11251: lt_cv_dlopen="shl_load" ! 11252: else ! 11253: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 11254: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 11255: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 11256: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11257: else ! 11258: ac_check_lib_save_LIBS=$LIBS ! 11259: LIBS="-ldld $LIBS" ! 11260: cat >conftest.$ac_ext <<_ACEOF ! 11261: #line $LINENO "configure" ! 11262: /* confdefs.h. */ ! 11263: _ACEOF ! 11264: cat confdefs.h >>conftest.$ac_ext ! 11265: cat >>conftest.$ac_ext <<_ACEOF ! 11266: /* end confdefs.h. */ ! 11267: ! 11268: /* Override any gcc2 internal prototype to avoid an error. */ ! 11269: #ifdef __cplusplus ! 11270: extern "C" ! 11271: #endif ! 11272: /* We use char because int might match the return type of a gcc2 ! 11273: builtin and then its argument prototype would still apply. */ ! 11274: char shl_load (); ! 11275: int ! 11276: main () ! 11277: { ! 11278: shl_load (); ! 11279: ; ! 11280: return 0; ! 11281: } ! 11282: _ACEOF ! 11283: rm -f conftest.$ac_objext conftest$ac_exeext ! 11284: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11285: (eval $ac_link) 2>&5 ! 11286: ac_status=$? ! 11287: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11288: (exit $ac_status); } && ! 11289: { ac_try='test -s conftest$ac_exeext' ! 11290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11291: (eval $ac_try) 2>&5 ! 11292: ac_status=$? ! 11293: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11294: (exit $ac_status); }; }; then ! 11295: ac_cv_lib_dld_shl_load=yes ! 11296: else ! 11297: echo "$as_me: failed program was:" >&5 ! 11298: sed 's/^/| /' conftest.$ac_ext >&5 ! 11299: ! 11300: ac_cv_lib_dld_shl_load=no ! 11301: fi ! 11302: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11303: LIBS=$ac_check_lib_save_LIBS ! 11304: fi ! 11305: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 11306: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 11307: if test $ac_cv_lib_dld_shl_load = yes; then ! 11308: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 11309: else ! 11310: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 11311: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 11312: if test "${ac_cv_func_dlopen+set}" = set; then ! 11313: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11314: else ! 11315: cat >conftest.$ac_ext <<_ACEOF ! 11316: #line $LINENO "configure" ! 11317: /* confdefs.h. */ ! 11318: _ACEOF ! 11319: cat confdefs.h >>conftest.$ac_ext ! 11320: cat >>conftest.$ac_ext <<_ACEOF ! 11321: /* end confdefs.h. */ ! 11322: /* System header to define __stub macros and hopefully few prototypes, ! 11323: which can conflict with char dlopen (); below. ! 11324: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 11325: <limits.h> exists even on freestanding compilers. */ ! 11326: #ifdef __STDC__ ! 11327: # include <limits.h> ! 11328: #else ! 11329: # include <assert.h> ! 11330: #endif ! 11331: /* Override any gcc2 internal prototype to avoid an error. */ ! 11332: #ifdef __cplusplus ! 11333: extern "C" ! 11334: { ! 11335: #endif ! 11336: /* We use char because int might match the return type of a gcc2 ! 11337: builtin and then its argument prototype would still apply. */ ! 11338: char dlopen (); ! 11339: /* The GNU C library defines this for functions which it implements ! 11340: to always fail with ENOSYS. Some functions are actually named ! 11341: something starting with __ and the normal name is an alias. */ ! 11342: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 11343: choke me ! 11344: #else ! 11345: char (*f) () = dlopen; ! 11346: #endif ! 11347: #ifdef __cplusplus ! 11348: } ! 11349: #endif ! 11350: ! 11351: int ! 11352: main () ! 11353: { ! 11354: return f != dlopen; ! 11355: ; ! 11356: return 0; ! 11357: } ! 11358: _ACEOF ! 11359: rm -f conftest.$ac_objext conftest$ac_exeext ! 11360: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11361: (eval $ac_link) 2>&5 ! 11362: ac_status=$? ! 11363: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11364: (exit $ac_status); } && ! 11365: { ac_try='test -s conftest$ac_exeext' ! 11366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11367: (eval $ac_try) 2>&5 ! 11368: ac_status=$? ! 11369: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11370: (exit $ac_status); }; }; then ! 11371: ac_cv_func_dlopen=yes ! 11372: else ! 11373: echo "$as_me: failed program was:" >&5 ! 11374: sed 's/^/| /' conftest.$ac_ext >&5 ! 11375: ! 11376: ac_cv_func_dlopen=no ! 11377: fi ! 11378: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11379: fi ! 11380: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 11381: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 11382: if test $ac_cv_func_dlopen = yes; then ! 11383: lt_cv_dlopen="dlopen" ! 11384: else ! 11385: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 11386: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 11387: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 11388: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11389: else ! 11390: ac_check_lib_save_LIBS=$LIBS ! 11391: LIBS="-ldl $LIBS" ! 11392: cat >conftest.$ac_ext <<_ACEOF ! 11393: #line $LINENO "configure" ! 11394: /* confdefs.h. */ ! 11395: _ACEOF ! 11396: cat confdefs.h >>conftest.$ac_ext ! 11397: cat >>conftest.$ac_ext <<_ACEOF ! 11398: /* end confdefs.h. */ ! 11399: ! 11400: /* Override any gcc2 internal prototype to avoid an error. */ ! 11401: #ifdef __cplusplus ! 11402: extern "C" ! 11403: #endif ! 11404: /* We use char because int might match the return type of a gcc2 ! 11405: builtin and then its argument prototype would still apply. */ ! 11406: char dlopen (); ! 11407: int ! 11408: main () ! 11409: { ! 11410: dlopen (); ! 11411: ; ! 11412: return 0; ! 11413: } ! 11414: _ACEOF ! 11415: rm -f conftest.$ac_objext conftest$ac_exeext ! 11416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11417: (eval $ac_link) 2>&5 ! 11418: ac_status=$? ! 11419: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11420: (exit $ac_status); } && ! 11421: { ac_try='test -s conftest$ac_exeext' ! 11422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11423: (eval $ac_try) 2>&5 ! 11424: ac_status=$? ! 11425: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11426: (exit $ac_status); }; }; then ! 11427: ac_cv_lib_dl_dlopen=yes ! 11428: else ! 11429: echo "$as_me: failed program was:" >&5 ! 11430: sed 's/^/| /' conftest.$ac_ext >&5 ! 11431: ! 11432: ac_cv_lib_dl_dlopen=no ! 11433: fi ! 11434: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11435: LIBS=$ac_check_lib_save_LIBS ! 11436: fi ! 11437: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 11438: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 11439: if test $ac_cv_lib_dl_dlopen = yes; then ! 11440: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 11441: else ! 11442: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 11443: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 11444: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 11445: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11446: else ! 11447: ac_check_lib_save_LIBS=$LIBS ! 11448: LIBS="-lsvld $LIBS" ! 11449: cat >conftest.$ac_ext <<_ACEOF ! 11450: #line $LINENO "configure" ! 11451: /* confdefs.h. */ ! 11452: _ACEOF ! 11453: cat confdefs.h >>conftest.$ac_ext ! 11454: cat >>conftest.$ac_ext <<_ACEOF ! 11455: /* end confdefs.h. */ ! 11456: ! 11457: /* Override any gcc2 internal prototype to avoid an error. */ ! 11458: #ifdef __cplusplus ! 11459: extern "C" ! 11460: #endif ! 11461: /* We use char because int might match the return type of a gcc2 ! 11462: builtin and then its argument prototype would still apply. */ ! 11463: char dlopen (); ! 11464: int ! 11465: main () ! 11466: { ! 11467: dlopen (); ! 11468: ; ! 11469: return 0; ! 11470: } ! 11471: _ACEOF ! 11472: rm -f conftest.$ac_objext conftest$ac_exeext ! 11473: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11474: (eval $ac_link) 2>&5 ! 11475: ac_status=$? ! 11476: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11477: (exit $ac_status); } && ! 11478: { ac_try='test -s conftest$ac_exeext' ! 11479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11480: (eval $ac_try) 2>&5 ! 11481: ac_status=$? ! 11482: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11483: (exit $ac_status); }; }; then ! 11484: ac_cv_lib_svld_dlopen=yes ! 11485: else ! 11486: echo "$as_me: failed program was:" >&5 ! 11487: sed 's/^/| /' conftest.$ac_ext >&5 ! 11488: ! 11489: ac_cv_lib_svld_dlopen=no ! 11490: fi ! 11491: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11492: LIBS=$ac_check_lib_save_LIBS ! 11493: fi ! 11494: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 11495: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 11496: if test $ac_cv_lib_svld_dlopen = yes; then ! 11497: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 11498: else ! 11499: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 11500: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 11501: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 11502: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11503: else ! 11504: ac_check_lib_save_LIBS=$LIBS ! 11505: LIBS="-ldld $LIBS" ! 11506: cat >conftest.$ac_ext <<_ACEOF ! 11507: #line $LINENO "configure" ! 11508: /* confdefs.h. */ ! 11509: _ACEOF ! 11510: cat confdefs.h >>conftest.$ac_ext ! 11511: cat >>conftest.$ac_ext <<_ACEOF ! 11512: /* end confdefs.h. */ ! 11513: ! 11514: /* Override any gcc2 internal prototype to avoid an error. */ ! 11515: #ifdef __cplusplus ! 11516: extern "C" ! 11517: #endif ! 11518: /* We use char because int might match the return type of a gcc2 ! 11519: builtin and then its argument prototype would still apply. */ ! 11520: char dld_link (); ! 11521: int ! 11522: main () ! 11523: { ! 11524: dld_link (); ! 11525: ; ! 11526: return 0; ! 11527: } ! 11528: _ACEOF ! 11529: rm -f conftest.$ac_objext conftest$ac_exeext ! 11530: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11531: (eval $ac_link) 2>&5 ! 11532: ac_status=$? ! 11533: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11534: (exit $ac_status); } && ! 11535: { ac_try='test -s conftest$ac_exeext' ! 11536: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11537: (eval $ac_try) 2>&5 ! 11538: ac_status=$? ! 11539: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11540: (exit $ac_status); }; }; then ! 11541: ac_cv_lib_dld_dld_link=yes ! 11542: else ! 11543: echo "$as_me: failed program was:" >&5 ! 11544: sed 's/^/| /' conftest.$ac_ext >&5 ! 11545: ! 11546: ac_cv_lib_dld_dld_link=no ! 11547: fi ! 11548: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11549: LIBS=$ac_check_lib_save_LIBS ! 11550: fi ! 11551: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 11552: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 11553: if test $ac_cv_lib_dld_dld_link = yes; then ! 11554: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 11555: fi ! 11556: ! 11557: ! 11558: fi ! 11559: ! 11560: ! 11561: fi ! 11562: ! 11563: ! 11564: fi ! 11565: ! 11566: ! 11567: fi ! 11568: ! 11569: ! 11570: fi ! 11571: ! 11572: ;; ! 11573: esac ! 11574: ! 11575: if test "x$lt_cv_dlopen" != xno; then ! 11576: enable_dlopen=yes ! 11577: else ! 11578: enable_dlopen=no ! 11579: fi ! 11580: ! 11581: case $lt_cv_dlopen in ! 11582: dlopen) ! 11583: save_CPPFLAGS="$CPPFLAGS" ! 11584: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 11585: ! 11586: save_LDFLAGS="$LDFLAGS" ! 11587: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 11588: ! 11589: save_LIBS="$LIBS" ! 11590: LIBS="$lt_cv_dlopen_libs $LIBS" ! 11591: ! 11592: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 11593: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 11594: if test "${lt_cv_dlopen_self+set}" = set; then ! 11595: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11596: else ! 11597: if test "$cross_compiling" = yes; then : ! 11598: lt_cv_dlopen_self=cross ! 11599: else ! 11600: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 11601: lt_status=$lt_dlunknown ! 11602: cat > conftest.$ac_ext <<EOF ! 11603: #line 11603 "configure" ! 11604: #include "confdefs.h" ! 11605: ! 11606: #if HAVE_DLFCN_H ! 11607: #include <dlfcn.h> ! 11608: #endif ! 11609: ! 11610: #include <stdio.h> ! 11611: ! 11612: #ifdef RTLD_GLOBAL ! 11613: # define LT_DLGLOBAL RTLD_GLOBAL ! 11614: #else ! 11615: # ifdef DL_GLOBAL ! 11616: # define LT_DLGLOBAL DL_GLOBAL ! 11617: # else ! 11618: # define LT_DLGLOBAL 0 ! 11619: # endif ! 11620: #endif ! 11621: ! 11622: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 11623: find out it does not work in some platform. */ ! 11624: #ifndef LT_DLLAZY_OR_NOW ! 11625: # ifdef RTLD_LAZY ! 11626: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 11627: # else ! 11628: # ifdef DL_LAZY ! 11629: # define LT_DLLAZY_OR_NOW DL_LAZY ! 11630: # else ! 11631: # ifdef RTLD_NOW ! 11632: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 11633: # else ! 11634: # ifdef DL_NOW ! 11635: # define LT_DLLAZY_OR_NOW DL_NOW ! 11636: # else ! 11637: # define LT_DLLAZY_OR_NOW 0 ! 11638: # endif ! 11639: # endif ! 11640: # endif ! 11641: # endif ! 11642: #endif ! 11643: ! 11644: #ifdef __cplusplus ! 11645: extern "C" void exit (int); ! 11646: #endif ! 11647: ! 11648: void fnord() { int i=42;} ! 11649: int main () ! 11650: { ! 11651: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 11652: int status = $lt_dlunknown; ! 11653: ! 11654: if (self) ! 11655: { ! 11656: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 11657: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 11658: /* dlclose (self); */ ! 11659: } ! 11660: ! 11661: exit (status); ! 11662: } ! 11663: EOF ! 11664: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11665: (eval $ac_link) 2>&5 ! 11666: ac_status=$? ! 11667: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11668: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 11669: (./conftest; exit; ) 2>/dev/null ! 11670: lt_status=$? ! 11671: case x$lt_status in ! 11672: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 11673: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 11674: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 11675: esac ! 11676: else : ! 11677: # compilation failed ! 11678: lt_cv_dlopen_self=no ! 11679: fi ! 11680: fi ! 11681: rm -fr conftest* ! 11682: ! 11683: ! 11684: fi ! 11685: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 11686: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 11687: ! 11688: if test "x$lt_cv_dlopen_self" = xyes; then ! 11689: LDFLAGS="$LDFLAGS $link_static_flag" ! 11690: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 11691: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 11692: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 11693: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11694: else ! 11695: if test "$cross_compiling" = yes; then : ! 11696: lt_cv_dlopen_self_static=cross ! 11697: else ! 11698: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 11699: lt_status=$lt_dlunknown ! 11700: cat > conftest.$ac_ext <<EOF ! 11701: #line 11701 "configure" ! 11702: #include "confdefs.h" ! 11703: ! 11704: #if HAVE_DLFCN_H ! 11705: #include <dlfcn.h> ! 11706: #endif ! 11707: ! 11708: #include <stdio.h> ! 11709: ! 11710: #ifdef RTLD_GLOBAL ! 11711: # define LT_DLGLOBAL RTLD_GLOBAL ! 11712: #else ! 11713: # ifdef DL_GLOBAL ! 11714: # define LT_DLGLOBAL DL_GLOBAL ! 11715: # else ! 11716: # define LT_DLGLOBAL 0 ! 11717: # endif ! 11718: #endif ! 11719: ! 11720: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 11721: find out it does not work in some platform. */ ! 11722: #ifndef LT_DLLAZY_OR_NOW ! 11723: # ifdef RTLD_LAZY ! 11724: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 11725: # else ! 11726: # ifdef DL_LAZY ! 11727: # define LT_DLLAZY_OR_NOW DL_LAZY ! 11728: # else ! 11729: # ifdef RTLD_NOW ! 11730: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 11731: # else ! 11732: # ifdef DL_NOW ! 11733: # define LT_DLLAZY_OR_NOW DL_NOW ! 11734: # else ! 11735: # define LT_DLLAZY_OR_NOW 0 ! 11736: # endif ! 11737: # endif ! 11738: # endif ! 11739: # endif ! 11740: #endif ! 11741: ! 11742: #ifdef __cplusplus ! 11743: extern "C" void exit (int); ! 11744: #endif ! 11745: ! 11746: void fnord() { int i=42;} ! 11747: int main () ! 11748: { ! 11749: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 11750: int status = $lt_dlunknown; ! 11751: ! 11752: if (self) ! 11753: { ! 11754: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 11755: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 11756: /* dlclose (self); */ ! 11757: } ! 11758: ! 11759: exit (status); ! 11760: } ! 11761: EOF ! 11762: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11763: (eval $ac_link) 2>&5 ! 11764: ac_status=$? ! 11765: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11766: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 11767: (./conftest; exit; ) 2>/dev/null ! 11768: lt_status=$? ! 11769: case x$lt_status in ! 11770: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 11771: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 11772: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 11773: esac ! 11774: else : ! 11775: # compilation failed ! 11776: lt_cv_dlopen_self_static=no ! 11777: fi ! 11778: fi ! 11779: rm -fr conftest* ! 11780: ! 11781: ! 11782: fi ! 11783: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 11784: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 11785: fi ! 11786: ! 11787: CPPFLAGS="$save_CPPFLAGS" ! 11788: LDFLAGS="$save_LDFLAGS" ! 11789: LIBS="$save_LIBS" ! 11790: ;; ! 11791: esac ! 11792: ! 11793: case $lt_cv_dlopen_self in ! 11794: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 11795: *) enable_dlopen_self=unknown ;; ! 11796: esac ! 11797: ! 11798: case $lt_cv_dlopen_self_static in ! 11799: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 11800: *) enable_dlopen_self_static=unknown ;; ! 11801: esac ! 11802: fi ! 11803: ! 11804: ! 11805: # Report which librarie types wil actually be built ! 11806: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ! 11807: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 ! 11808: echo "$as_me:$LINENO: result: $can_build_shared" >&5 ! 11809: echo "${ECHO_T}$can_build_shared" >&6 ! 11810: ! 11811: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ! 11812: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 ! 11813: test "$can_build_shared" = "no" && enable_shared=no ! 11814: ! 11815: # On AIX, shared libraries and static libraries use the same namespace, and ! 11816: # are all built from PIC. ! 11817: case "$host_os" in ! 11818: aix3*) ! 11819: test "$enable_shared" = yes && enable_static=no ! 11820: if test -n "$RANLIB"; then ! 11821: archive_cmds="$archive_cmds~\$RANLIB \$lib" ! 11822: postinstall_cmds='$RANLIB $lib' ! 11823: fi ! 11824: ;; ! 11825: ! 11826: aix4*) ! 11827: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ! 11828: test "$enable_shared" = yes && enable_static=no ! 11829: fi ! 11830: ;; ! 11831: darwin* | rhapsody*) ! 11832: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 11833: archive_cmds_need_lc=no ! 11834: case "$host_os" in ! 11835: rhapsody* | darwin1.[012]) ! 11836: allow_undefined_flag='-undefined suppress' ! 11837: ;; ! 11838: *) # Darwin 1.3 on ! 11839: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ! 11840: ;; ! 11841: esac ! 11842: # FIXME: Relying on posixy $() will cause problems for ! 11843: # cross-compilation, but unfortunately the echo tests do not ! 11844: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 11845: # `"' quotes if we put them in here... so don't! ! 11846: output_verbose_link_cmd='echo' ! 11847: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' ! 11848: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 11849: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 11850: 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}' ! 11851: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 11852: hardcode_direct=no ! 11853: hardcode_automatic=yes ! 11854: hardcode_shlibpath_var=unsupported ! 11855: whole_archive_flag_spec='-all_load $convenience' ! 11856: link_all_deplibs=yes ! 11857: fi ! 11858: ;; ! 11859: esac ! 11860: echo "$as_me:$LINENO: result: $enable_shared" >&5 ! 11861: echo "${ECHO_T}$enable_shared" >&6 ! 11862: ! 11863: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ! 11864: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 ! 11865: # Make sure either enable_shared or enable_static is yes. ! 11866: test "$enable_shared" = yes || enable_static=yes ! 11867: echo "$as_me:$LINENO: result: $enable_static" >&5 ! 11868: echo "${ECHO_T}$enable_static" >&6 ! 11869: ! 11870: # The else clause should only fire when bootstrapping the ! 11871: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 11872: # with your package, and you will get complaints that there are ! 11873: # no rules to generate ltmain.sh. ! 11874: if test -f "$ltmain"; then ! 11875: # See if we are running on zsh, and set the options which allow our commands through ! 11876: # without removal of \ escapes. ! 11877: if test -n "${ZSH_VERSION+set}" ; then ! 11878: setopt NO_GLOB_SUBST ! 11879: fi ! 11880: # Now quote all the things that may contain metacharacters while being ! 11881: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 11882: # variables and quote the copies for generation of the libtool script. ! 11883: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 11884: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 11885: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 11886: deplibs_check_method reload_flag reload_cmds need_locks \ ! 11887: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 11888: lt_cv_sys_global_symbol_to_c_name_address \ ! 11889: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 11890: old_postinstall_cmds old_postuninstall_cmds \ ! 11891: compiler \ ! 11892: CC \ ! 11893: LD \ ! 11894: lt_prog_compiler_wl \ ! 11895: lt_prog_compiler_pic \ ! 11896: lt_prog_compiler_static \ ! 11897: lt_prog_compiler_no_builtin_flag \ ! 11898: export_dynamic_flag_spec \ ! 11899: thread_safe_flag_spec \ ! 11900: whole_archive_flag_spec \ ! 11901: enable_shared_with_static_runtimes \ ! 11902: old_archive_cmds \ ! 11903: old_archive_from_new_cmds \ ! 11904: predep_objects \ ! 11905: postdep_objects \ ! 11906: predeps \ ! 11907: postdeps \ ! 11908: compiler_lib_search_path \ ! 11909: archive_cmds \ ! 11910: archive_expsym_cmds \ ! 11911: postinstall_cmds \ ! 11912: postuninstall_cmds \ ! 11913: old_archive_from_expsyms_cmds \ ! 11914: allow_undefined_flag \ ! 11915: no_undefined_flag \ ! 11916: export_symbols_cmds \ ! 11917: hardcode_libdir_flag_spec \ ! 11918: hardcode_libdir_flag_spec_ld \ ! 11919: hardcode_libdir_separator \ ! 11920: hardcode_automatic \ ! 11921: module_cmds \ ! 11922: module_expsym_cmds \ ! 11923: lt_cv_prog_compiler_c_o \ ! 11924: exclude_expsyms \ ! 11925: include_expsyms; do ! 11926: ! 11927: case $var in ! 11928: old_archive_cmds | \ ! 11929: old_archive_from_new_cmds | \ ! 11930: archive_cmds | \ ! 11931: archive_expsym_cmds | \ ! 11932: module_cmds | \ ! 11933: module_expsym_cmds | \ ! 11934: old_archive_from_expsyms_cmds | \ ! 11935: export_symbols_cmds | \ ! 11936: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 11937: postinstall_cmds | postuninstall_cmds | \ ! 11938: old_postinstall_cmds | old_postuninstall_cmds | \ ! 11939: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 11940: # Double-quote double-evaled strings. ! 11941: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 11942: ;; ! 11943: *) ! 11944: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 11945: ;; ! 11946: esac ! 11947: done ! 11948: ! 11949: case $lt_echo in ! 11950: *'\$0 --fallback-echo"') ! 11951: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 11952: ;; ! 11953: esac ! 11954: ! 11955: cfgfile="${ofile}T" ! 11956: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 ! 11957: $rm -f "$cfgfile" ! 11958: { echo "$as_me:$LINENO: creating $ofile" >&5 ! 11959: echo "$as_me: creating $ofile" >&6;} ! 11960: ! 11961: cat <<__EOF__ >> "$cfgfile" ! 11962: #! $SHELL ! 11963: ! 11964: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. ! 11965: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) ! 11966: # NOTE: Changes made to this file will be lost: look at ltmain.sh. ! 11967: # ! 11968: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 ! 11969: # Free Software Foundation, Inc. ! 11970: # ! 11971: # This file is part of GNU Libtool: ! 11972: # Originally by Gordon Matzigkeit <[email protected]>, 1996 ! 11973: # ! 11974: # This program is free software; you can redistribute it and/or modify ! 11975: # it under the terms of the GNU General Public License as published by ! 11976: # the Free Software Foundation; either version 2 of the License, or ! 11977: # (at your option) any later version. ! 11978: # ! 11979: # This program is distributed in the hope that it will be useful, but ! 11980: # WITHOUT ANY WARRANTY; without even the implied warranty of ! 11981: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! 11982: # General Public License for more details. ! 11983: # ! 11984: # You should have received a copy of the GNU General Public License ! 11985: # along with this program; if not, write to the Free Software ! 11986: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! 11987: # ! 11988: # As a special exception to the GNU General Public License, if you ! 11989: # distribute this file as part of a program that contains a ! 11990: # configuration script generated by Autoconf, you may include it under ! 11991: # the same distribution terms that you use for the rest of that program. ! 11992: ! 11993: # A sed program that does not truncate output. ! 11994: SED=$lt_SED ! 11995: ! 11996: # Sed that helps us avoid accidentally triggering echo(1) options like -n. ! 11997: Xsed="$SED -e s/^X//" ! 11998: ! 11999: # The HP-UX ksh and POSIX shell print the target directory to stdout ! 12000: # if CDPATH is set. ! 12001: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi ! 12002: ! 12003: # The names of the tagged configurations supported by this script. ! 12004: available_tags= ! 12005: ! 12006: # ### BEGIN LIBTOOL CONFIG ! 12007: ! 12008: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 12009: ! 12010: # Shell to use when invoking shell scripts. ! 12011: SHELL=$lt_SHELL ! 12012: ! 12013: # Whether or not to build shared libraries. ! 12014: build_libtool_libs=$enable_shared ! 12015: ! 12016: # Whether or not to build static libraries. ! 12017: build_old_libs=$enable_static ! 12018: ! 12019: # Whether or not to add -lc for building shared libraries. ! 12020: build_libtool_need_lc=$archive_cmds_need_lc ! 12021: ! 12022: # Whether or not to disallow shared libs when runtime libs are static ! 12023: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes ! 12024: ! 12025: # Whether or not to optimize for fast installation. ! 12026: fast_install=$enable_fast_install ! 12027: ! 12028: # The host system. ! 12029: host_alias=$host_alias ! 12030: host=$host ! 12031: ! 12032: # An echo program that does not interpret backslashes. ! 12033: echo=$lt_echo ! 12034: ! 12035: # The archiver. ! 12036: AR=$lt_AR ! 12037: AR_FLAGS=$lt_AR_FLAGS ! 12038: ! 12039: # A C compiler. ! 12040: LTCC=$lt_LTCC ! 12041: ! 12042: # A language-specific compiler. ! 12043: CC=$lt_compiler ! 12044: ! 12045: # Is the compiler the GNU C compiler? ! 12046: with_gcc=$GCC ! 12047: ! 12048: # An ERE matcher. ! 12049: EGREP=$lt_EGREP ! 12050: ! 12051: # The linker used to build libraries. ! 12052: LD=$lt_LD ! 12053: ! 12054: # Whether we need hard or soft links. ! 12055: LN_S=$lt_LN_S ! 12056: ! 12057: # A BSD-compatible nm program. ! 12058: NM=$lt_NM ! 12059: ! 12060: # A symbol stripping program ! 12061: STRIP=$STRIP ! 12062: ! 12063: # Used to examine libraries when file_magic_cmd begins "file" ! 12064: MAGIC_CMD=$MAGIC_CMD ! 12065: ! 12066: # Used on cygwin: DLL creation program. ! 12067: DLLTOOL="$DLLTOOL" ! 12068: ! 12069: # Used on cygwin: object dumper. ! 12070: OBJDUMP="$OBJDUMP" ! 12071: ! 12072: # Used on cygwin: assembler. ! 12073: AS="$AS" ! 12074: ! 12075: # The name of the directory that contains temporary libtool files. ! 12076: objdir=$objdir ! 12077: ! 12078: # How to create reloadable object files. ! 12079: reload_flag=$lt_reload_flag ! 12080: reload_cmds=$lt_reload_cmds ! 12081: ! 12082: # How to pass a linker flag through the compiler. ! 12083: wl=$lt_lt_prog_compiler_wl ! 12084: ! 12085: # Object file suffix (normally "o"). ! 12086: objext="$ac_objext" ! 12087: ! 12088: # Old archive suffix (normally "a"). ! 12089: libext="$libext" ! 12090: ! 12091: # Shared library suffix (normally ".so"). ! 12092: shrext='$shrext' ! 12093: ! 12094: # Executable file suffix (normally ""). ! 12095: exeext="$exeext" ! 12096: ! 12097: # Additional compiler flags for building library objects. ! 12098: pic_flag=$lt_lt_prog_compiler_pic ! 12099: pic_mode=$pic_mode ! 12100: ! 12101: # What is the maximum length of a command? ! 12102: max_cmd_len=$lt_cv_sys_max_cmd_len ! 12103: ! 12104: # Does compiler simultaneously support -c and -o options? ! 12105: compiler_c_o=$lt_lt_cv_prog_compiler_c_o ! 12106: ! 12107: # Must we lock files when doing compilation ? ! 12108: need_locks=$lt_need_locks ! 12109: ! 12110: # Do we need the lib prefix for modules? ! 12111: need_lib_prefix=$need_lib_prefix ! 12112: ! 12113: # Do we need a version for libraries? ! 12114: need_version=$need_version ! 12115: ! 12116: # Whether dlopen is supported. ! 12117: dlopen_support=$enable_dlopen ! 12118: ! 12119: # Whether dlopen of programs is supported. ! 12120: dlopen_self=$enable_dlopen_self ! 12121: ! 12122: # Whether dlopen of statically linked programs is supported. ! 12123: dlopen_self_static=$enable_dlopen_self_static ! 12124: ! 12125: # Compiler flag to prevent dynamic linking. ! 12126: link_static_flag=$lt_lt_prog_compiler_static ! 12127: ! 12128: # Compiler flag to turn off builtin functions. ! 12129: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag ! 12130: ! 12131: # Compiler flag to allow reflexive dlopens. ! 12132: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec ! 12133: ! 12134: # Compiler flag to generate shared objects directly from archives. ! 12135: whole_archive_flag_spec=$lt_whole_archive_flag_spec ! 12136: ! 12137: # Compiler flag to generate thread-safe objects. ! 12138: thread_safe_flag_spec=$lt_thread_safe_flag_spec ! 12139: ! 12140: # Library versioning type. ! 12141: version_type=$version_type ! 12142: ! 12143: # Format of library name prefix. ! 12144: libname_spec=$lt_libname_spec ! 12145: ! 12146: # List of archive names. First name is the real one, the rest are links. ! 12147: # The last name is the one that the linker finds with -lNAME. ! 12148: library_names_spec=$lt_library_names_spec ! 12149: ! 12150: # The coded name of the library, if different from the real name. ! 12151: soname_spec=$lt_soname_spec ! 12152: ! 12153: # Commands used to build and install an old-style archive. ! 12154: RANLIB=$lt_RANLIB ! 12155: old_archive_cmds=$lt_old_archive_cmds ! 12156: old_postinstall_cmds=$lt_old_postinstall_cmds ! 12157: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 12158: ! 12159: # Create an old-style archive from a shared archive. ! 12160: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds ! 12161: ! 12162: # Create a temporary old-style archive to link instead of a shared archive. ! 12163: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds ! 12164: ! 12165: # Commands used to build and install a shared archive. ! 12166: archive_cmds=$lt_archive_cmds ! 12167: archive_expsym_cmds=$lt_archive_expsym_cmds ! 12168: postinstall_cmds=$lt_postinstall_cmds ! 12169: postuninstall_cmds=$lt_postuninstall_cmds ! 12170: ! 12171: # Commands used to build a loadable module (assumed same as above if empty) ! 12172: module_cmds=$lt_module_cmds ! 12173: module_expsym_cmds=$lt_module_expsym_cmds ! 12174: ! 12175: # Commands to strip libraries. ! 12176: old_striplib=$lt_old_striplib ! 12177: striplib=$lt_striplib ! 12178: ! 12179: # Dependencies to place before the objects being linked to create a ! 12180: # shared library. ! 12181: predep_objects=$lt_predep_objects ! 12182: ! 12183: # Dependencies to place after the objects being linked to create a ! 12184: # shared library. ! 12185: postdep_objects=$lt_postdep_objects ! 12186: ! 12187: # Dependencies to place before the objects being linked to create a ! 12188: # shared library. ! 12189: predeps=$lt_predeps ! 12190: ! 12191: # Dependencies to place after the objects being linked to create a ! 12192: # shared library. ! 12193: postdeps=$lt_postdeps ! 12194: ! 12195: # The library search path used internally by the compiler when linking ! 12196: # a shared library. ! 12197: compiler_lib_search_path=$lt_compiler_lib_search_path ! 12198: ! 12199: # Method to check whether dependent libraries are shared objects. ! 12200: deplibs_check_method=$lt_deplibs_check_method ! 12201: ! 12202: # Command to use when deplibs_check_method == file_magic. ! 12203: file_magic_cmd=$lt_file_magic_cmd ! 12204: ! 12205: # Flag that allows shared libraries with undefined symbols to be built. ! 12206: allow_undefined_flag=$lt_allow_undefined_flag ! 12207: ! 12208: # Flag that forces no undefined symbols. ! 12209: no_undefined_flag=$lt_no_undefined_flag ! 12210: ! 12211: # Commands used to finish a libtool library installation in a directory. ! 12212: finish_cmds=$lt_finish_cmds ! 12213: ! 12214: # Same as above, but a single script fragment to be evaled but not shown. ! 12215: finish_eval=$lt_finish_eval ! 12216: ! 12217: # Take the output of nm and produce a listing of raw symbols and C names. ! 12218: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 12219: ! 12220: # Transform the output of nm in a proper C declaration ! 12221: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 12222: ! 12223: # Transform the output of nm in a C name address pair ! 12224: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 12225: ! 12226: # This is the shared library runtime path variable. ! 12227: runpath_var=$runpath_var ! 12228: ! 12229: # This is the shared library path variable. ! 12230: shlibpath_var=$shlibpath_var ! 12231: ! 12232: # Is shlibpath searched before the hard-coded library search path? ! 12233: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 12234: ! 12235: # How to hardcode a shared library path into an executable. ! 12236: hardcode_action=$hardcode_action ! 12237: ! 12238: # Whether we should hardcode library paths into libraries. ! 12239: hardcode_into_libs=$hardcode_into_libs ! 12240: ! 12241: # Flag to hardcode \$libdir into a binary during linking. ! 12242: # This must work even if \$libdir does not exist. ! 12243: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec ! 12244: ! 12245: # If ld is used when linking, flag to hardcode \$libdir into ! 12246: # a binary during linking. This must work even if \$libdir does ! 12247: # not exist. ! 12248: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld ! 12249: ! 12250: # Whether we need a single -rpath flag with a separated argument. ! 12251: hardcode_libdir_separator=$lt_hardcode_libdir_separator ! 12252: ! 12253: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 12254: # resulting binary. ! 12255: hardcode_direct=$hardcode_direct ! 12256: ! 12257: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 12258: # resulting binary. ! 12259: hardcode_minus_L=$hardcode_minus_L ! 12260: ! 12261: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 12262: # the resulting binary. ! 12263: hardcode_shlibpath_var=$hardcode_shlibpath_var ! 12264: ! 12265: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 12266: # and all subsequent libraries and executables linked against it. ! 12267: hardcode_automatic=$hardcode_automatic ! 12268: ! 12269: # Variables whose values should be saved in libtool wrapper scripts and ! 12270: # restored at relink time. ! 12271: variables_saved_for_relink="$variables_saved_for_relink" ! 12272: ! 12273: # Whether libtool must link a program against all its dependency libraries. ! 12274: link_all_deplibs=$link_all_deplibs ! 12275: ! 12276: # Compile-time system search path for libraries ! 12277: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 12278: ! 12279: # Run-time system search path for libraries ! 12280: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 12281: ! 12282: # Fix the shell variable \$srcfile for the compiler. ! 12283: fix_srcfile_path="$fix_srcfile_path" ! 12284: ! 12285: # Set to yes if exported symbols are required. ! 12286: always_export_symbols=$always_export_symbols ! 12287: ! 12288: # The commands to list exported symbols. ! 12289: export_symbols_cmds=$lt_export_symbols_cmds ! 12290: ! 12291: # The commands to extract the exported symbol list from a shared archive. ! 12292: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 12293: ! 12294: # Symbols that should not be listed in the preloaded symbols. ! 12295: exclude_expsyms=$lt_exclude_expsyms ! 12296: ! 12297: # Symbols that must always be exported. ! 12298: include_expsyms=$lt_include_expsyms ! 12299: ! 12300: # ### END LIBTOOL CONFIG ! 12301: ! 12302: __EOF__ ! 12303: ! 12304: ! 12305: case $host_os in ! 12306: aix3*) ! 12307: cat <<\EOF >> "$cfgfile" ! 12308: ! 12309: # AIX sometimes has problems with the GCC collect2 program. For some ! 12310: # reason, if we set the COLLECT_NAMES environment variable, the problems ! 12311: # vanish in a puff of smoke. ! 12312: if test "X${COLLECT_NAMES+set}" != Xset; then ! 12313: COLLECT_NAMES= ! 12314: export COLLECT_NAMES ! 12315: fi ! 12316: EOF ! 12317: ;; ! 12318: esac ! 12319: ! 12320: # We use sed instead of cat because bash on DJGPP gets confused if ! 12321: # if finds mixed CR/LF and LF-only lines. Since sed operates in ! 12322: # text mode, it properly converts lines to CR/LF. This bash problem ! 12323: # is reportedly fixed, but why not run on old versions too? ! 12324: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) ! 12325: ! 12326: mv -f "$cfgfile" "$ofile" || \ ! 12327: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") ! 12328: chmod +x "$ofile" ! 12329: ! 12330: else ! 12331: # If there is no Makefile yet, we rely on a make rule to execute ! 12332: # `config.status --recheck' to rerun these tests and create the ! 12333: # libtool script then. ! 12334: test -f Makefile && make "$ltmain" ! 12335: fi ! 12336: ! 12337: ! 12338: ac_ext=c ! 12339: ac_cpp='$CPP $CPPFLAGS' ! 12340: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 12341: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 12342: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 12343: ! 12344: CC="$lt_save_CC" ! 12345: ! 12346: ! 12347: # Check whether --with-tags or --without-tags was given. ! 12348: if test "${with_tags+set}" = set; then ! 12349: withval="$with_tags" ! 12350: tagnames="$withval" ! 12351: fi; ! 12352: ! 12353: if test -f "$ltmain" && test -n "$tagnames"; then ! 12354: if test ! -f "${ofile}"; then ! 12355: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 ! 12356: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} ! 12357: fi ! 12358: ! 12359: if test -z "$LTCC"; then ! 12360: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" ! 12361: if test -z "$LTCC"; then ! 12362: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 ! 12363: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} ! 12364: else ! 12365: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 ! 12366: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} ! 12367: fi ! 12368: fi ! 12369: ! 12370: # Extract list of available tagged configurations in $ofile. ! 12371: # Note that this assumes the entire list is on one line. ! 12372: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` ! 12373: ! 12374: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 12375: for tagname in $tagnames; do ! 12376: IFS="$lt_save_ifs" ! 12377: # Check whether tagname contains only valid characters ! 12378: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in ! 12379: "") ;; ! 12380: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 ! 12381: echo "$as_me: error: invalid tag name: $tagname" >&2;} ! 12382: { (exit 1); exit 1; }; } ! 12383: ;; ! 12384: esac ! 12385: ! 12386: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null ! 12387: then ! 12388: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 ! 12389: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} ! 12390: { (exit 1); exit 1; }; } ! 12391: fi ! 12392: ! 12393: # Update the list of available tags. ! 12394: if test -n "$tagname"; then ! 12395: echo appending configuration tag \"$tagname\" to $ofile ! 12396: ! 12397: case $tagname in ! 12398: CXX) ! 12399: if test -n "$CXX" && test "X$CXX" != "Xno"; then ! 12400: ac_ext=cc ! 12401: ac_cpp='$CXXCPP $CPPFLAGS' ! 12402: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 12403: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 12404: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 12405: ! 12406: ! 12407: ! 12408: ! 12409: archive_cmds_need_lc_CXX=no ! 12410: allow_undefined_flag_CXX= ! 12411: always_export_symbols_CXX=no ! 12412: archive_expsym_cmds_CXX= ! 12413: export_dynamic_flag_spec_CXX= ! 12414: hardcode_direct_CXX=no ! 12415: hardcode_libdir_flag_spec_CXX= ! 12416: hardcode_libdir_flag_spec_ld_CXX= ! 12417: hardcode_libdir_separator_CXX= ! 12418: hardcode_minus_L_CXX=no ! 12419: hardcode_automatic_CXX=no ! 12420: module_cmds_CXX= ! 12421: module_expsym_cmds_CXX= ! 12422: link_all_deplibs_CXX=unknown ! 12423: old_archive_cmds_CXX=$old_archive_cmds ! 12424: no_undefined_flag_CXX= ! 12425: whole_archive_flag_spec_CXX= ! 12426: enable_shared_with_static_runtimes_CXX=no ! 12427: ! 12428: # Dependencies to place before and after the object being linked: ! 12429: predep_objects_CXX= ! 12430: postdep_objects_CXX= ! 12431: predeps_CXX= ! 12432: postdeps_CXX= ! 12433: compiler_lib_search_path_CXX= ! 12434: ! 12435: # Source file extension for C++ test sources. ! 12436: ac_ext=cc ! 12437: ! 12438: # Object file extension for compiled C++ test sources. ! 12439: objext=o ! 12440: objext_CXX=$objext ! 12441: ! 12442: # Code to be used in simple compile tests ! 12443: lt_simple_compile_test_code="int some_variable = 0;\n" ! 12444: ! 12445: # Code to be used in simple link tests ! 12446: lt_simple_link_test_code='int main(int, char *) { return(0); }\n' ! 12447: ! 12448: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 12449: ! 12450: # If no C compiler was specified, use CC. ! 12451: LTCC=${LTCC-"$CC"} ! 12452: ! 12453: # Allow CC to be a program name with arguments. ! 12454: compiler=$CC ! 12455: ! 12456: ! 12457: # Allow CC to be a program name with arguments. ! 12458: lt_save_CC=$CC ! 12459: lt_save_LD=$LD ! 12460: lt_save_GCC=$GCC ! 12461: GCC=$GXX ! 12462: lt_save_with_gnu_ld=$with_gnu_ld ! 12463: lt_save_path_LD=$lt_cv_path_LD ! 12464: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then ! 12465: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx ! 12466: else ! 12467: unset lt_cv_prog_gnu_ld ! 12468: fi ! 12469: if test -n "${lt_cv_path_LDCXX+set}"; then ! 12470: lt_cv_path_LD=$lt_cv_path_LDCXX ! 12471: else ! 12472: unset lt_cv_path_LD ! 12473: fi ! 12474: test -z "${LDCXX+set}" || LD=$LDCXX ! 12475: CC=${CXX-"c++"} ! 12476: compiler=$CC ! 12477: compiler_CXX=$CC ! 12478: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` ! 12479: ! 12480: # We don't want -fno-exception wen compiling C++ code, so set the ! 12481: # no_builtin_flag separately ! 12482: if test "$GXX" = yes; then ! 12483: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' ! 12484: else ! 12485: lt_prog_compiler_no_builtin_flag_CXX= ! 12486: fi ! 12487: ! 12488: if test "$GXX" = yes; then ! 12489: # Set up default GNU C++ configuration ! 12490: ! 12491: ! 12492: # Check whether --with-gnu-ld or --without-gnu-ld was given. ! 12493: if test "${with_gnu_ld+set}" = set; then ! 12494: withval="$with_gnu_ld" ! 12495: test "$withval" = no || with_gnu_ld=yes ! 12496: else ! 12497: with_gnu_ld=no ! 12498: fi; ! 12499: ac_prog=ld ! 12500: if test "$GCC" = yes; then ! 12501: # Check if gcc -print-prog-name=ld gives a path. ! 12502: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ! 12503: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 ! 12504: case $host in ! 12505: *-*-mingw*) ! 12506: # gcc leaves a trailing carriage return which upsets mingw ! 12507: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ! 12508: *) ! 12509: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ! 12510: esac ! 12511: case $ac_prog in ! 12512: # Accept absolute paths. ! 12513: [\\/]* | ?:[\\/]*) ! 12514: re_direlt='/[^/][^/]*/\.\./' ! 12515: # Canonicalize the path of ld ! 12516: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` ! 12517: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ! 12518: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` ! 12519: done ! 12520: test -z "$LD" && LD="$ac_prog" ! 12521: ;; ! 12522: "") ! 12523: # If it fails, then pretend we aren't using GCC. ! 12524: ac_prog=ld ! 12525: ;; ! 12526: *) ! 12527: # If it is relative, then search for the first ld in PATH. ! 12528: with_gnu_ld=unknown ! 12529: ;; ! 12530: esac ! 12531: elif test "$with_gnu_ld" = yes; then ! 12532: echo "$as_me:$LINENO: checking for GNU ld" >&5 ! 12533: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 ! 12534: else ! 12535: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ! 12536: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 ! 12537: fi ! 12538: if test "${lt_cv_path_LD+set}" = set; then ! 12539: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12540: else ! 12541: if test -z "$LD"; then ! 12542: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 12543: for ac_dir in $PATH; do ! 12544: IFS="$lt_save_ifs" ! 12545: test -z "$ac_dir" && ac_dir=. ! 12546: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ! 12547: lt_cv_path_LD="$ac_dir/$ac_prog" ! 12548: # Check to see if the program is GNU ld. I'd rather use --version, ! 12549: # but apparently some GNU ld's only accept -v. ! 12550: # Break only if it was the GNU/non-GNU ld that we prefer. ! 12551: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in ! 12552: *GNU* | *'with BFD'*) ! 12553: test "$with_gnu_ld" != no && break ! 12554: ;; ! 12555: *) ! 12556: test "$with_gnu_ld" != yes && break ! 12557: ;; ! 12558: esac ! 12559: fi ! 12560: done ! 12561: IFS="$lt_save_ifs" ! 12562: else ! 12563: lt_cv_path_LD="$LD" # Let the user override the test with a path. ! 12564: fi ! 12565: fi ! 12566: ! 12567: LD="$lt_cv_path_LD" ! 12568: if test -n "$LD"; then ! 12569: echo "$as_me:$LINENO: result: $LD" >&5 ! 12570: echo "${ECHO_T}$LD" >&6 ! 12571: else ! 12572: echo "$as_me:$LINENO: result: no" >&5 ! 12573: echo "${ECHO_T}no" >&6 ! 12574: fi ! 12575: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ! 12576: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ! 12577: { (exit 1); exit 1; }; } ! 12578: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ! 12579: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 ! 12580: if test "${lt_cv_prog_gnu_ld+set}" = set; then ! 12581: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12582: else ! 12583: # I'd rather use --version here, but apparently some GNU ld's only accept -v. ! 12584: case `"$LD" -v 2>&1 </dev/null` in ! 12585: *GNU* | *'with BFD'*) ! 12586: lt_cv_prog_gnu_ld=yes ! 12587: ;; ! 12588: *) ! 12589: lt_cv_prog_gnu_ld=no ! 12590: ;; ! 12591: esac ! 12592: fi ! 12593: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 ! 12594: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 ! 12595: with_gnu_ld=$lt_cv_prog_gnu_ld ! 12596: ! 12597: ! 12598: ! 12599: # Check if GNU C++ uses GNU ld as the underlying linker, since the ! 12600: # archiving commands below assume that GNU ld is being used. ! 12601: if test "$with_gnu_ld" = yes; then ! 12602: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 12603: 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' ! 12604: ! 12605: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' ! 12606: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 12607: ! 12608: # If archive_cmds runs LD, not CC, wlarc should be empty ! 12609: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to ! 12610: # investigate it a little bit more. (MM) ! 12611: wlarc='${wl}' ! 12612: ! 12613: # ancient GNU ld didn't support --whole-archive et. al. ! 12614: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ ! 12615: grep 'no-whole-archive' > /dev/null; then ! 12616: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 12617: else ! 12618: whole_archive_flag_spec_CXX= ! 12619: fi ! 12620: else ! 12621: with_gnu_ld=no ! 12622: wlarc= ! 12623: ! 12624: # A generic and very simple default shared library creation ! 12625: # command for GNU C++ for the case where it uses the native ! 12626: # linker, instead of GNU ld. If possible, this setting should ! 12627: # overridden to take advantage of the native linker features on ! 12628: # the platform it is being used on. ! 12629: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ! 12630: fi ! 12631: ! 12632: # Commands to make compiler produce verbose output that lists ! 12633: # what "hidden" libraries, object files and flags are used when ! 12634: # linking a shared library. ! 12635: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 12636: ! 12637: else ! 12638: GXX=no ! 12639: with_gnu_ld=no ! 12640: wlarc= ! 12641: fi ! 12642: ! 12643: # PORTME: fill in a description of your system's C++ link characteristics ! 12644: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 12645: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 12646: ld_shlibs_CXX=yes ! 12647: case $host_os in ! 12648: aix3*) ! 12649: # FIXME: insert proper C++ library support ! 12650: ld_shlibs_CXX=no ! 12651: ;; ! 12652: aix4* | aix5*) ! 12653: if test "$host_cpu" = ia64; then ! 12654: # On IA64, the linker does run time linking by default, so we don't ! 12655: # have to do anything special. ! 12656: aix_use_runtimelinking=no ! 12657: exp_sym_flag='-Bexport' ! 12658: no_entry_flag="" ! 12659: else ! 12660: aix_use_runtimelinking=no ! 12661: ! 12662: # Test if we are trying to use run time linking or normal ! 12663: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 12664: # need to do runtime linking. ! 12665: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 12666: for ld_flag in $LDFLAGS; do ! 12667: case $ld_flag in ! 12668: *-brtl*) ! 12669: aix_use_runtimelinking=yes ! 12670: break ! 12671: ;; ! 12672: esac ! 12673: done ! 12674: esac ! 12675: ! 12676: exp_sym_flag='-bexport' ! 12677: no_entry_flag='-bnoentry' ! 12678: fi ! 12679: ! 12680: # When large executables or shared objects are built, AIX ld can ! 12681: # have problems creating the table of contents. If linking a library ! 12682: # or program results in "error TOC overflow" add -mminimal-toc to ! 12683: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 12684: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 12685: ! 12686: archive_cmds_CXX='' ! 12687: hardcode_direct_CXX=yes ! 12688: hardcode_libdir_separator_CXX=':' ! 12689: link_all_deplibs_CXX=yes ! 12690: ! 12691: if test "$GXX" = yes; then ! 12692: case $host_os in aix4.012|aix4.012.*) ! 12693: # We only want to do this on AIX 4.2 and lower, the check ! 12694: # below for broken collect2 doesn't work under 4.3+ ! 12695: collect2name=`${CC} -print-prog-name=collect2` ! 12696: if test -f "$collect2name" && \ ! 12697: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 12698: then ! 12699: # We have reworked collect2 ! 12700: hardcode_direct_CXX=yes ! 12701: else ! 12702: # We have old collect2 ! 12703: hardcode_direct_CXX=unsupported ! 12704: # It fails to find uninstalled libraries when the uninstalled ! 12705: # path is not listed in the libpath. Setting hardcode_minus_L ! 12706: # to unsupported forces relinking ! 12707: hardcode_minus_L_CXX=yes ! 12708: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 12709: hardcode_libdir_separator_CXX= ! 12710: fi ! 12711: esac ! 12712: shared_flag='-shared' ! 12713: else ! 12714: # not using gcc ! 12715: if test "$host_cpu" = ia64; then ! 12716: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 12717: # chokes on -Wl,-G. The following line is correct: ! 12718: shared_flag='-G' ! 12719: else ! 12720: if test "$aix_use_runtimelinking" = yes; then ! 12721: shared_flag='${wl}-G' ! 12722: else ! 12723: shared_flag='${wl}-bM:SRE' ! 12724: fi ! 12725: fi ! 12726: fi ! 12727: ! 12728: # It seems that -bexpall does not export symbols beginning with ! 12729: # underscore (_), so it is better to generate a list of symbols to export. ! 12730: always_export_symbols_CXX=yes ! 12731: if test "$aix_use_runtimelinking" = yes; then ! 12732: # Warning - without using the other runtime loading flags (-brtl), ! 12733: # -berok will link without error, but may produce a broken library. ! 12734: allow_undefined_flag_CXX='-berok' ! 12735: # Determine the default libpath from the value encoded in an empty executable. ! 12736: cat >conftest.$ac_ext <<_ACEOF ! 12737: #line $LINENO "configure" ! 12738: /* confdefs.h. */ ! 12739: _ACEOF ! 12740: cat confdefs.h >>conftest.$ac_ext ! 12741: cat >>conftest.$ac_ext <<_ACEOF ! 12742: /* end confdefs.h. */ ! 12743: ! 12744: int ! 12745: main () ! 12746: { ! 12747: ! 12748: ; ! 12749: return 0; ! 12750: } ! 12751: _ACEOF ! 12752: rm -f conftest.$ac_objext conftest$ac_exeext ! 12753: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12754: (eval $ac_link) 2>&5 ! 12755: ac_status=$? ! 12756: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12757: (exit $ac_status); } && ! 12758: { ac_try='test -s conftest$ac_exeext' ! 12759: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12760: (eval $ac_try) 2>&5 ! 12761: ac_status=$? ! 12762: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12763: (exit $ac_status); }; }; then ! 12764: ! 12765: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 12766: }'` ! 12767: # Check for a 64-bit object if we didn't find anything. ! 12768: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 12769: }'`; fi ! 12770: else ! 12771: echo "$as_me: failed program was:" >&5 ! 12772: sed 's/^/| /' conftest.$ac_ext >&5 ! 12773: ! 12774: fi ! 12775: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12776: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 12777: ! 12778: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ! 12779: ! 12780: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 12781: else ! 12782: if test "$host_cpu" = ia64; then ! 12783: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' ! 12784: allow_undefined_flag_CXX="-z nodefs" ! 12785: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 12786: else ! 12787: # Determine the default libpath from the value encoded in an empty executable. ! 12788: cat >conftest.$ac_ext <<_ACEOF ! 12789: #line $LINENO "configure" ! 12790: /* confdefs.h. */ ! 12791: _ACEOF ! 12792: cat confdefs.h >>conftest.$ac_ext ! 12793: cat >>conftest.$ac_ext <<_ACEOF ! 12794: /* end confdefs.h. */ ! 12795: ! 12796: int ! 12797: main () ! 12798: { ! 12799: ! 12800: ; ! 12801: return 0; ! 12802: } ! 12803: _ACEOF ! 12804: rm -f conftest.$ac_objext conftest$ac_exeext ! 12805: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12806: (eval $ac_link) 2>&5 ! 12807: ac_status=$? ! 12808: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12809: (exit $ac_status); } && ! 12810: { ac_try='test -s conftest$ac_exeext' ! 12811: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12812: (eval $ac_try) 2>&5 ! 12813: ac_status=$? ! 12814: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12815: (exit $ac_status); }; }; then ! 12816: ! 12817: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 12818: }'` ! 12819: # Check for a 64-bit object if we didn't find anything. ! 12820: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 12821: }'`; fi ! 12822: else ! 12823: echo "$as_me: failed program was:" >&5 ! 12824: sed 's/^/| /' conftest.$ac_ext >&5 ! 12825: ! 12826: fi ! 12827: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12828: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 12829: ! 12830: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ! 12831: # Warning - without using the other run time loading flags, ! 12832: # -berok will link without error, but may produce a broken library. ! 12833: no_undefined_flag_CXX=' ${wl}-bernotok' ! 12834: allow_undefined_flag_CXX=' ${wl}-berok' ! 12835: # -bexpall does not export symbols beginning with underscore (_) ! 12836: always_export_symbols_CXX=yes ! 12837: # Exported symbols can be pulled into shared objects from archives ! 12838: whole_archive_flag_spec_CXX=' ' ! 12839: archive_cmds_need_lc_CXX=yes ! 12840: # This is similar to how AIX traditionally builds it's shared libraries. ! 12841: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 12842: fi ! 12843: fi ! 12844: ;; ! 12845: chorus*) ! 12846: case $cc_basename in ! 12847: *) ! 12848: # FIXME: insert proper C++ library support ! 12849: ld_shlibs_CXX=no ! 12850: ;; ! 12851: esac ! 12852: ;; ! 12853: ! 12854: cygwin* | mingw* | pw32*) ! 12855: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, ! 12856: # as there is no search path for DLLs. ! 12857: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 12858: allow_undefined_flag_CXX=unsupported ! 12859: always_export_symbols_CXX=no ! 12860: enable_shared_with_static_runtimes_CXX=yes ! 12861: ! 12862: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 12863: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 12864: # If the export-symbols file already is a .def file (1st line ! 12865: # is EXPORTS), use it as is; otherwise, prepend... ! 12866: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 12867: cp $export_symbols $output_objdir/$soname.def; ! 12868: else ! 12869: echo EXPORTS > $output_objdir/$soname.def; ! 12870: cat $export_symbols >> $output_objdir/$soname.def; ! 12871: fi~ ! 12872: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 12873: else ! 12874: ld_shlibs_CXX=no ! 12875: fi ! 12876: ;; ! 12877: ! 12878: darwin* | rhapsody*) ! 12879: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 12880: archive_cmds_need_lc_CXX=no ! 12881: case "$host_os" in ! 12882: rhapsody* | darwin1.[012]) ! 12883: allow_undefined_flag_CXX='-undefined suppress' ! 12884: ;; ! 12885: *) # Darwin 1.3 on ! 12886: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' ! 12887: ;; ! 12888: esac ! 12889: lt_int_apple_cc_single_mod=no ! 12890: output_verbose_link_cmd='echo' ! 12891: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 12892: lt_int_apple_cc_single_mod=yes ! 12893: fi ! 12894: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 12895: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 12896: else ! 12897: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' ! 12898: fi ! 12899: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 12900: ! 12901: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 12902: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 12903: 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}' ! 12904: else ! 12905: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' ! 12906: fi ! 12907: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 12908: hardcode_direct_CXX=no ! 12909: hardcode_automatic_CXX=yes ! 12910: hardcode_shlibpath_var_CXX=unsupported ! 12911: whole_archive_flag_spec_CXX='-all_load $convenience' ! 12912: link_all_deplibs_CXX=yes ! 12913: fi ! 12914: ;; ! 12915: ! 12916: dgux*) ! 12917: case $cc_basename in ! 12918: ec++) ! 12919: # FIXME: insert proper C++ library support ! 12920: ld_shlibs_CXX=no ! 12921: ;; ! 12922: ghcx) ! 12923: # Green Hills C++ Compiler ! 12924: # FIXME: insert proper C++ library support ! 12925: ld_shlibs_CXX=no ! 12926: ;; ! 12927: *) ! 12928: # FIXME: insert proper C++ library support ! 12929: ld_shlibs_CXX=no ! 12930: ;; ! 12931: esac ! 12932: ;; ! 12933: freebsd12*) ! 12934: # C++ shared libraries reported to be fairly broken before switch to ELF ! 12935: ld_shlibs_CXX=no ! 12936: ;; ! 12937: freebsd-elf*) ! 12938: archive_cmds_need_lc_CXX=no ! 12939: ;; ! 12940: freebsd*) ! 12941: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF ! 12942: # conventions ! 12943: ld_shlibs_CXX=yes ! 12944: ;; ! 12945: gnu*) ! 12946: ;; ! 12947: hpux9*) ! 12948: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 12949: hardcode_libdir_separator_CXX=: ! 12950: export_dynamic_flag_spec_CXX='${wl}-E' ! 12951: hardcode_direct_CXX=yes ! 12952: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 12953: # but as the default ! 12954: # location of the library. ! 12955: ! 12956: case $cc_basename in ! 12957: CC) ! 12958: # FIXME: insert proper C++ library support ! 12959: ld_shlibs_CXX=no ! 12960: ;; ! 12961: aCC) ! 12962: 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' ! 12963: # Commands to make compiler produce verbose output that lists ! 12964: # what "hidden" libraries, object files and flags are used when ! 12965: # linking a shared library. ! 12966: # ! 12967: # There doesn't appear to be a way to prevent this compiler from ! 12968: # explicitly linking system object files so we need to strip them ! 12969: # from the output so that they don't get included in the library ! 12970: # dependencies. ! 12971: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 12972: ;; ! 12973: *) ! 12974: if test "$GXX" = yes; then ! 12975: 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' ! 12976: else ! 12977: # FIXME: insert proper C++ library support ! 12978: ld_shlibs_CXX=no ! 12979: fi ! 12980: ;; ! 12981: esac ! 12982: ;; ! 12983: hpux10*|hpux11*) ! 12984: if test $with_gnu_ld = no; then ! 12985: case "$host_cpu" in ! 12986: hppa*64*) ! 12987: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 12988: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ! 12989: hardcode_libdir_separator_CXX=: ! 12990: ;; ! 12991: ia64*) ! 12992: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 12993: ;; ! 12994: *) ! 12995: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 12996: hardcode_libdir_separator_CXX=: ! 12997: export_dynamic_flag_spec_CXX='${wl}-E' ! 12998: ;; ! 12999: esac ! 13000: fi ! 13001: case "$host_cpu" in ! 13002: hppa*64*) ! 13003: hardcode_direct_CXX=no ! 13004: hardcode_shlibpath_var_CXX=no ! 13005: ;; ! 13006: ia64*) ! 13007: hardcode_direct_CXX=no ! 13008: hardcode_shlibpath_var_CXX=no ! 13009: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 13010: # but as the default ! 13011: # location of the library. ! 13012: ;; ! 13013: *) ! 13014: hardcode_direct_CXX=yes ! 13015: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 13016: # but as the default ! 13017: # location of the library. ! 13018: ;; ! 13019: esac ! 13020: ! 13021: case $cc_basename in ! 13022: CC) ! 13023: # FIXME: insert proper C++ library support ! 13024: ld_shlibs_CXX=no ! 13025: ;; ! 13026: aCC) ! 13027: case "$host_cpu" in ! 13028: hppa*64*|ia64*) ! 13029: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ! 13030: ;; ! 13031: *) ! 13032: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ! 13033: ;; ! 13034: esac ! 13035: # Commands to make compiler produce verbose output that lists ! 13036: # what "hidden" libraries, object files and flags are used when ! 13037: # linking a shared library. ! 13038: # ! 13039: # There doesn't appear to be a way to prevent this compiler from ! 13040: # explicitly linking system object files so we need to strip them ! 13041: # from the output so that they don't get included in the library ! 13042: # dependencies. ! 13043: 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' ! 13044: ;; ! 13045: *) ! 13046: if test "$GXX" = yes; then ! 13047: if test $with_gnu_ld = no; then ! 13048: case "$host_cpu" in ! 13049: ia64*|hppa*64*) ! 13050: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ! 13051: ;; ! 13052: *) ! 13053: 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' ! 13054: ;; ! 13055: esac ! 13056: fi ! 13057: else ! 13058: # FIXME: insert proper C++ library support ! 13059: ld_shlibs_CXX=no ! 13060: fi ! 13061: ;; ! 13062: esac ! 13063: ;; ! 13064: irix5* | irix6*) ! 13065: case $cc_basename in ! 13066: CC) ! 13067: # SGI C++ ! 13068: 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 ${objdir}/so_locations -o $lib' ! 13069: ! 13070: # Archives containing C++ object files must be created using ! 13071: # "CC -ar", where "CC" is the IRIX C++ compiler. This is ! 13072: # necessary to make sure instantiated templates are included ! 13073: # in the archive. ! 13074: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ! 13075: ;; ! 13076: *) ! 13077: if test "$GXX" = yes; then ! 13078: if test "$with_gnu_ld" = no; then ! 13079: 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}${objdir}/so_locations -o $lib' ! 13080: else ! 13081: 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' ! 13082: fi ! 13083: fi ! 13084: link_all_deplibs_CXX=yes ! 13085: ;; ! 13086: esac ! 13087: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 13088: hardcode_libdir_separator_CXX=: ! 13089: ;; ! 13090: linux*) ! 13091: case $cc_basename in ! 13092: KCC) ! 13093: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 13094: ! 13095: # KCC will only create a shared library if the output file ! 13096: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 13097: # to its proper name (with version) after linking. ! 13098: 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' ! 13099: 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' ! 13100: # Commands to make compiler produce verbose output that lists ! 13101: # what "hidden" libraries, object files and flags are used when ! 13102: # linking a shared library. ! 13103: # ! 13104: # There doesn't appear to be a way to prevent this compiler from ! 13105: # explicitly linking system object files so we need to strip them ! 13106: # from the output so that they don't get included in the library ! 13107: # dependencies. ! 13108: 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' ! 13109: ! 13110: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' ! 13111: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 13112: ! 13113: # Archives containing C++ object files must be created using ! 13114: # "CC -Bstatic", where "CC" is the KAI C++ compiler. ! 13115: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ! 13116: ;; ! 13117: icpc) ! 13118: # Intel C++ ! 13119: with_gnu_ld=yes ! 13120: archive_cmds_need_lc_CXX=no ! 13121: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13122: 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' ! 13123: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 13124: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 13125: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ! 13126: ;; ! 13127: cxx) ! 13128: # Compaq C++ ! 13129: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13130: 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' ! 13131: ! 13132: runpath_var=LD_RUN_PATH ! 13133: hardcode_libdir_flag_spec_CXX='-rpath $libdir' ! 13134: hardcode_libdir_separator_CXX=: ! 13135: ! 13136: # Commands to make compiler produce verbose output that lists ! 13137: # what "hidden" libraries, object files and flags are used when ! 13138: # linking a shared library. ! 13139: # ! 13140: # There doesn't appear to be a way to prevent this compiler from ! 13141: # explicitly linking system object files so we need to strip them ! 13142: # from the output so that they don't get included in the library ! 13143: # dependencies. ! 13144: 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' ! 13145: ;; ! 13146: esac ! 13147: ;; ! 13148: lynxos*) ! 13149: # FIXME: insert proper C++ library support ! 13150: ld_shlibs_CXX=no ! 13151: ;; ! 13152: m88k*) ! 13153: # FIXME: insert proper C++ library support ! 13154: ld_shlibs_CXX=no ! 13155: ;; ! 13156: mvs*) ! 13157: case $cc_basename in ! 13158: cxx) ! 13159: # FIXME: insert proper C++ library support ! 13160: ld_shlibs_CXX=no ! 13161: ;; ! 13162: *) ! 13163: # FIXME: insert proper C++ library support ! 13164: ld_shlibs_CXX=no ! 13165: ;; ! 13166: esac ! 13167: ;; ! 13168: netbsd*) ! 13169: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 13170: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ! 13171: wlarc= ! 13172: hardcode_libdir_flag_spec_CXX='-R$libdir' ! 13173: hardcode_direct_CXX=yes ! 13174: hardcode_shlibpath_var_CXX=no ! 13175: fi ! 13176: # Workaround some broken pre-1.5 toolchains ! 13177: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ! 13178: ;; ! 13179: osf3*) ! 13180: case $cc_basename in ! 13181: KCC) ! 13182: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 13183: ! 13184: # KCC will only create a shared library if the output file ! 13185: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 13186: # to its proper name (with version) after linking. ! 13187: 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' ! 13188: ! 13189: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 13190: hardcode_libdir_separator_CXX=: ! 13191: ! 13192: # Archives containing C++ object files must be created using ! 13193: # "CC -Bstatic", where "CC" is the KAI C++ compiler. ! 13194: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ! 13195: ! 13196: ;; ! 13197: RCC) ! 13198: # Rational C++ 2.4.1 ! 13199: # FIXME: insert proper C++ library support ! 13200: ld_shlibs_CXX=no ! 13201: ;; ! 13202: cxx) ! 13203: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 13204: 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 ${objdir}/so_locations -o $lib' ! 13205: ! 13206: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 13207: hardcode_libdir_separator_CXX=: ! 13208: ! 13209: # Commands to make compiler produce verbose output that lists ! 13210: # what "hidden" libraries, object files and flags are used when ! 13211: # linking a shared library. ! 13212: # ! 13213: # There doesn't appear to be a way to prevent this compiler from ! 13214: # explicitly linking system object files so we need to strip them ! 13215: # from the output so that they don't get included in the library ! 13216: # dependencies. ! 13217: 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' ! 13218: ;; ! 13219: *) ! 13220: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 13221: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 13222: 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}${objdir}/so_locations -o $lib' ! 13223: ! 13224: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 13225: hardcode_libdir_separator_CXX=: ! 13226: ! 13227: # Commands to make compiler produce verbose output that lists ! 13228: # what "hidden" libraries, object files and flags are used when ! 13229: # linking a shared library. ! 13230: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 13231: ! 13232: else ! 13233: # FIXME: insert proper C++ library support ! 13234: ld_shlibs_CXX=no ! 13235: fi ! 13236: ;; ! 13237: esac ! 13238: ;; ! 13239: osf4* | osf5*) ! 13240: case $cc_basename in ! 13241: KCC) ! 13242: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 13243: ! 13244: # KCC will only create a shared library if the output file ! 13245: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 13246: # to its proper name (with version) after linking. ! 13247: 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' ! 13248: ! 13249: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 13250: hardcode_libdir_separator_CXX=: ! 13251: ! 13252: # Archives containing C++ object files must be created using ! 13253: # the KAI C++ compiler. ! 13254: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ! 13255: ;; ! 13256: RCC) ! 13257: # Rational C++ 2.4.1 ! 13258: # FIXME: insert proper C++ library support ! 13259: ld_shlibs_CXX=no ! 13260: ;; ! 13261: cxx) ! 13262: allow_undefined_flag_CXX=' -expect_unresolved \*' ! 13263: 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 ${objdir}/so_locations -o $lib' ! 13264: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ ! 13265: echo "-hidden">> $lib.exp~ ! 13266: $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 $objdir/so_locations -o $lib~ ! 13267: $rm $lib.exp' ! 13268: ! 13269: hardcode_libdir_flag_spec_CXX='-rpath $libdir' ! 13270: hardcode_libdir_separator_CXX=: ! 13271: ! 13272: # Commands to make compiler produce verbose output that lists ! 13273: # what "hidden" libraries, object files and flags are used when ! 13274: # linking a shared library. ! 13275: # ! 13276: # There doesn't appear to be a way to prevent this compiler from ! 13277: # explicitly linking system object files so we need to strip them ! 13278: # from the output so that they don't get included in the library ! 13279: # dependencies. ! 13280: 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' ! 13281: ;; ! 13282: *) ! 13283: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 13284: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 13285: 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}${objdir}/so_locations -o $lib' ! 13286: ! 13287: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 13288: hardcode_libdir_separator_CXX=: ! 13289: ! 13290: # Commands to make compiler produce verbose output that lists ! 13291: # what "hidden" libraries, object files and flags are used when ! 13292: # linking a shared library. ! 13293: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 13294: ! 13295: else ! 13296: # FIXME: insert proper C++ library support ! 13297: ld_shlibs_CXX=no ! 13298: fi ! 13299: ;; ! 13300: esac ! 13301: ;; ! 13302: psos*) ! 13303: # FIXME: insert proper C++ library support ! 13304: ld_shlibs_CXX=no ! 13305: ;; ! 13306: sco*) ! 13307: archive_cmds_need_lc_CXX=no ! 13308: case $cc_basename in ! 13309: CC) ! 13310: # FIXME: insert proper C++ library support ! 13311: ld_shlibs_CXX=no ! 13312: ;; ! 13313: *) ! 13314: # FIXME: insert proper C++ library support ! 13315: ld_shlibs_CXX=no ! 13316: ;; ! 13317: esac ! 13318: ;; ! 13319: sunos4*) ! 13320: case $cc_basename in ! 13321: CC) ! 13322: # Sun C++ 4.x ! 13323: # FIXME: insert proper C++ library support ! 13324: ld_shlibs_CXX=no ! 13325: ;; ! 13326: lcc) ! 13327: # Lucid ! 13328: # FIXME: insert proper C++ library support ! 13329: ld_shlibs_CXX=no ! 13330: ;; ! 13331: *) ! 13332: # FIXME: insert proper C++ library support ! 13333: ld_shlibs_CXX=no ! 13334: ;; ! 13335: esac ! 13336: ;; ! 13337: solaris*) ! 13338: case $cc_basename in ! 13339: CC) ! 13340: # Sun C++ 4.2, 5.x and Centerline C++ ! 13341: no_undefined_flag_CXX=' -zdefs' ! 13342: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ! 13343: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 13344: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 13345: ! 13346: hardcode_libdir_flag_spec_CXX='-R$libdir' ! 13347: hardcode_shlibpath_var_CXX=no ! 13348: case $host_os in ! 13349: solaris2.0-5 | solaris2.0-5.*) ;; ! 13350: *) ! 13351: # The C++ compiler is used as linker so we must use $wl ! 13352: # flag to pass the commands to the underlying system ! 13353: # linker. ! 13354: # Supported since Solaris 2.6 (maybe 2.5.1?) ! 13355: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ! 13356: ;; ! 13357: esac ! 13358: link_all_deplibs_CXX=yes ! 13359: ! 13360: # Commands to make compiler produce verbose output that lists ! 13361: # what "hidden" libraries, object files and flags are used when ! 13362: # linking a shared library. ! 13363: # ! 13364: # There doesn't appear to be a way to prevent this compiler from ! 13365: # explicitly linking system object files so we need to strip them ! 13366: # from the output so that they don't get included in the library ! 13367: # dependencies. ! 13368: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 13369: ! 13370: # Archives containing C++ object files must be created using ! 13371: # "CC -xar", where "CC" is the Sun C++ compiler. This is ! 13372: # necessary to make sure instantiated templates are included ! 13373: # in the archive. ! 13374: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ! 13375: ;; ! 13376: gcx) ! 13377: # Green Hills C++ Compiler ! 13378: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 13379: ! 13380: # The C++ compiler must be used to create the archive. ! 13381: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ! 13382: ;; ! 13383: *) ! 13384: # GNU C++ compiler with Solaris linker ! 13385: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 13386: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' ! 13387: if $CC --version | grep -v '^2\.7' > /dev/null; then ! 13388: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 13389: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 13390: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 13391: ! 13392: # Commands to make compiler produce verbose output that lists ! 13393: # what "hidden" libraries, object files and flags are used when ! 13394: # linking a shared library. ! 13395: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" ! 13396: else ! 13397: # g++ 2.7 appears to require `-G' NOT `-shared' on this ! 13398: # platform. ! 13399: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 13400: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 13401: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 13402: ! 13403: # Commands to make compiler produce verbose output that lists ! 13404: # what "hidden" libraries, object files and flags are used when ! 13405: # linking a shared library. ! 13406: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" ! 13407: fi ! 13408: ! 13409: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' ! 13410: fi ! 13411: ;; ! 13412: esac ! 13413: ;; ! 13414: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 13415: archive_cmds_need_lc_CXX=no ! 13416: ;; ! 13417: tandem*) ! 13418: case $cc_basename in ! 13419: NCC) ! 13420: # NonStop-UX NCC 3.20 ! 13421: # FIXME: insert proper C++ library support ! 13422: ld_shlibs_CXX=no ! 13423: ;; ! 13424: *) ! 13425: # FIXME: insert proper C++ library support ! 13426: ld_shlibs_CXX=no ! 13427: ;; ! 13428: esac ! 13429: ;; ! 13430: vxworks*) ! 13431: # FIXME: insert proper C++ library support ! 13432: ld_shlibs_CXX=no ! 13433: ;; ! 13434: *) ! 13435: # FIXME: insert proper C++ library support ! 13436: ld_shlibs_CXX=no ! 13437: ;; ! 13438: esac ! 13439: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ! 13440: echo "${ECHO_T}$ld_shlibs_CXX" >&6 ! 13441: test "$ld_shlibs_CXX" = no && can_build_shared=no ! 13442: ! 13443: GCC_CXX="$GXX" ! 13444: LD_CXX="$LD" ! 13445: ! 13446: ! 13447: cat > conftest.$ac_ext <<EOF ! 13448: class Foo ! 13449: { ! 13450: public: ! 13451: Foo (void) { a = 0; } ! 13452: private: ! 13453: int a; ! 13454: }; ! 13455: EOF ! 13456: ! 13457: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 13458: (eval $ac_compile) 2>&5 ! 13459: ac_status=$? ! 13460: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 13461: (exit $ac_status); }; then ! 13462: # Parse the compiler output and extract the necessary ! 13463: # objects, libraries and library flags. ! 13464: ! 13465: # Sentinel used to keep track of whether or not we are before ! 13466: # the conftest object file. ! 13467: pre_test_object_deps_done=no ! 13468: ! 13469: # The `*' in the case matches for architectures that use `case' in ! 13470: # $output_verbose_cmd can trigger glob expansion during the loop ! 13471: # eval without this substitution. ! 13472: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" ! 13473: ! 13474: for p in `eval $output_verbose_link_cmd`; do ! 13475: case $p in ! 13476: ! 13477: -L* | -R* | -l*) ! 13478: # Some compilers place space between "-{L,R}" and the path. ! 13479: # Remove the space. ! 13480: if test $p = "-L" \ ! 13481: || test $p = "-R"; then ! 13482: prev=$p ! 13483: continue ! 13484: else ! 13485: prev= ! 13486: fi ! 13487: ! 13488: if test "$pre_test_object_deps_done" = no; then ! 13489: case $p in ! 13490: -L* | -R*) ! 13491: # Internal compiler library paths should come after those ! 13492: # provided the user. The postdeps already come after the ! 13493: # user supplied libs so there is no need to process them. ! 13494: if test -z "$compiler_lib_search_path_CXX"; then ! 13495: compiler_lib_search_path_CXX="${prev}${p}" ! 13496: else ! 13497: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" ! 13498: fi ! 13499: ;; ! 13500: # The "-l" case would never come before the object being ! 13501: # linked, so don't bother handling this case. ! 13502: esac ! 13503: else ! 13504: if test -z "$postdeps_CXX"; then ! 13505: postdeps_CXX="${prev}${p}" ! 13506: else ! 13507: postdeps_CXX="${postdeps_CXX} ${prev}${p}" ! 13508: fi ! 13509: fi ! 13510: ;; ! 13511: ! 13512: *.$objext) ! 13513: # This assumes that the test object file only shows up ! 13514: # once in the compiler output. ! 13515: if test "$p" = "conftest.$objext"; then ! 13516: pre_test_object_deps_done=yes ! 13517: continue ! 13518: fi ! 13519: ! 13520: if test "$pre_test_object_deps_done" = no; then ! 13521: if test -z "$predep_objects_CXX"; then ! 13522: predep_objects_CXX="$p" ! 13523: else ! 13524: predep_objects_CXX="$predep_objects_CXX $p" ! 13525: fi ! 13526: else ! 13527: if test -z "$postdep_objects_CXX"; then ! 13528: postdep_objects_CXX="$p" ! 13529: else ! 13530: postdep_objects_CXX="$postdep_objects_CXX $p" ! 13531: fi ! 13532: fi ! 13533: ;; ! 13534: ! 13535: *) ;; # Ignore the rest. ! 13536: ! 13537: esac ! 13538: done ! 13539: ! 13540: # Clean up. ! 13541: rm -f a.out a.exe ! 13542: else ! 13543: echo "libtool.m4: error: problem compiling CXX test program" ! 13544: fi ! 13545: ! 13546: $rm -f confest.$objext ! 13547: ! 13548: case " $postdeps_CXX " in ! 13549: *" -lc "*) archive_cmds_need_lc_CXX=no ;; ! 13550: esac ! 13551: ! 13552: lt_prog_compiler_wl_CXX= ! 13553: lt_prog_compiler_pic_CXX= ! 13554: lt_prog_compiler_static_CXX= ! 13555: ! 13556: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 13557: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 13558: ! 13559: # C++ specific cases for pic, static, wl, etc. ! 13560: if test "$GXX" = yes; then ! 13561: lt_prog_compiler_wl_CXX='-Wl,' ! 13562: lt_prog_compiler_static_CXX='-static' ! 13563: ! 13564: case $host_os in ! 13565: aix*) ! 13566: # All AIX code is PIC. ! 13567: if test "$host_cpu" = ia64; then ! 13568: # AIX 5 now supports IA64 processor ! 13569: lt_prog_compiler_static_CXX='-Bstatic' ! 13570: fi ! 13571: ;; ! 13572: amigaos*) ! 13573: # FIXME: we need at least 68020 code to build shared libraries, but ! 13574: # adding the `-m68020' flag to GCC prevents building anything better, ! 13575: # like `-m68040'. ! 13576: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ! 13577: ;; ! 13578: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 13579: # PIC is the default for these OSes. ! 13580: ;; ! 13581: mingw* | os2* | pw32*) ! 13582: # This hack is so that the source file can tell whether it is being ! 13583: # built for inclusion in a dll (and should export symbols for example). ! 13584: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ! 13585: ;; ! 13586: darwin* | rhapsody*) ! 13587: # PIC is the default on this platform ! 13588: # Common symbols not allowed in MH_DYLIB files ! 13589: lt_prog_compiler_pic_CXX='-fno-common' ! 13590: ;; ! 13591: *djgpp*) ! 13592: # DJGPP does not support shared libraries at all ! 13593: lt_prog_compiler_pic_CXX= ! 13594: ;; ! 13595: sysv4*MP*) ! 13596: if test -d /usr/nec; then ! 13597: lt_prog_compiler_pic_CXX=-Kconform_pic ! 13598: fi ! 13599: ;; ! 13600: hpux*) ! 13601: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 13602: # not for PA HP-UX. ! 13603: case "$host_cpu" in ! 13604: hppa*64*|ia64*) ! 13605: ;; ! 13606: *) ! 13607: lt_prog_compiler_pic_CXX='-fPIC' ! 13608: ;; ! 13609: esac ! 13610: ;; ! 13611: *) ! 13612: lt_prog_compiler_pic_CXX='-fPIC' ! 13613: ;; ! 13614: esac ! 13615: else ! 13616: case $host_os in ! 13617: aix4* | aix5*) ! 13618: # All AIX code is PIC. ! 13619: if test "$host_cpu" = ia64; then ! 13620: # AIX 5 now supports IA64 processor ! 13621: lt_prog_compiler_static_CXX='-Bstatic' ! 13622: else ! 13623: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' ! 13624: fi ! 13625: ;; ! 13626: chorus*) ! 13627: case $cc_basename in ! 13628: cxch68) ! 13629: # Green Hills C++ Compiler ! 13630: # _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" ! 13631: ;; ! 13632: esac ! 13633: ;; ! 13634: dgux*) ! 13635: case $cc_basename in ! 13636: ec++) ! 13637: lt_prog_compiler_pic_CXX='-KPIC' ! 13638: ;; ! 13639: ghcx) ! 13640: # Green Hills C++ Compiler ! 13641: lt_prog_compiler_pic_CXX='-pic' ! 13642: ;; ! 13643: *) ! 13644: ;; ! 13645: esac ! 13646: ;; ! 13647: freebsd*) ! 13648: # FreeBSD uses GNU C++ ! 13649: ;; ! 13650: hpux9* | hpux10* | hpux11*) ! 13651: case $cc_basename in ! 13652: CC) ! 13653: lt_prog_compiler_wl_CXX='-Wl,' ! 13654: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" ! 13655: if test "$host_cpu" != ia64; then ! 13656: lt_prog_compiler_pic_CXX='+Z' ! 13657: fi ! 13658: ;; ! 13659: aCC) ! 13660: lt_prog_compiler_wl_CXX='-Wl,' ! 13661: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" ! 13662: case "$host_cpu" in ! 13663: hppa*64*|ia64*) ! 13664: # +Z the default ! 13665: ;; ! 13666: *) ! 13667: lt_prog_compiler_pic_CXX='+Z' ! 13668: ;; ! 13669: esac ! 13670: ;; ! 13671: *) ! 13672: ;; ! 13673: esac ! 13674: ;; ! 13675: irix5* | irix6* | nonstopux*) ! 13676: case $cc_basename in ! 13677: CC) ! 13678: lt_prog_compiler_wl_CXX='-Wl,' ! 13679: lt_prog_compiler_static_CXX='-non_shared' ! 13680: # CC pic flag -KPIC is the default. ! 13681: ;; ! 13682: *) ! 13683: ;; ! 13684: esac ! 13685: ;; ! 13686: linux*) ! 13687: case $cc_basename in ! 13688: KCC) ! 13689: # KAI C++ Compiler ! 13690: lt_prog_compiler_wl_CXX='--backend -Wl,' ! 13691: lt_prog_compiler_pic_CXX='-fPIC' ! 13692: ;; ! 13693: icpc) ! 13694: # Intel C++ ! 13695: lt_prog_compiler_wl_CXX='-Wl,' ! 13696: lt_prog_compiler_pic_CXX='-KPIC' ! 13697: lt_prog_compiler_static_CXX='-static' ! 13698: ;; ! 13699: cxx) ! 13700: # Compaq C++ ! 13701: # Make sure the PIC flag is empty. It appears that all Alpha ! 13702: # Linux and Compaq Tru64 Unix objects are PIC. ! 13703: lt_prog_compiler_pic_CXX= ! 13704: lt_prog_compiler_static_CXX='-non_shared' ! 13705: ;; ! 13706: *) ! 13707: ;; ! 13708: esac ! 13709: ;; ! 13710: lynxos*) ! 13711: ;; ! 13712: m88k*) ! 13713: ;; ! 13714: mvs*) ! 13715: case $cc_basename in ! 13716: cxx) ! 13717: lt_prog_compiler_pic_CXX='-W c,exportall' ! 13718: ;; ! 13719: *) ! 13720: ;; ! 13721: esac ! 13722: ;; ! 13723: netbsd*) ! 13724: ;; ! 13725: osf3* | osf4* | osf5*) ! 13726: case $cc_basename in ! 13727: KCC) ! 13728: lt_prog_compiler_wl_CXX='--backend -Wl,' ! 13729: ;; ! 13730: RCC) ! 13731: # Rational C++ 2.4.1 ! 13732: lt_prog_compiler_pic_CXX='-pic' ! 13733: ;; ! 13734: cxx) ! 13735: # Digital/Compaq C++ ! 13736: lt_prog_compiler_wl_CXX='-Wl,' ! 13737: # Make sure the PIC flag is empty. It appears that all Alpha ! 13738: # Linux and Compaq Tru64 Unix objects are PIC. ! 13739: lt_prog_compiler_pic_CXX= ! 13740: lt_prog_compiler_static_CXX='-non_shared' ! 13741: ;; ! 13742: *) ! 13743: ;; ! 13744: esac ! 13745: ;; ! 13746: psos*) ! 13747: ;; ! 13748: sco*) ! 13749: case $cc_basename in ! 13750: CC) ! 13751: lt_prog_compiler_pic_CXX='-fPIC' ! 13752: ;; ! 13753: *) ! 13754: ;; ! 13755: esac ! 13756: ;; ! 13757: solaris*) ! 13758: case $cc_basename in ! 13759: CC) ! 13760: # Sun C++ 4.2, 5.x and Centerline C++ ! 13761: lt_prog_compiler_pic_CXX='-KPIC' ! 13762: lt_prog_compiler_static_CXX='-Bstatic' ! 13763: lt_prog_compiler_wl_CXX='-Qoption ld ' ! 13764: ;; ! 13765: gcx) ! 13766: # Green Hills C++ Compiler ! 13767: lt_prog_compiler_pic_CXX='-PIC' ! 13768: ;; ! 13769: *) ! 13770: ;; ! 13771: esac ! 13772: ;; ! 13773: sunos4*) ! 13774: case $cc_basename in ! 13775: CC) ! 13776: # Sun C++ 4.x ! 13777: lt_prog_compiler_pic_CXX='-pic' ! 13778: lt_prog_compiler_static_CXX='-Bstatic' ! 13779: ;; ! 13780: lcc) ! 13781: # Lucid ! 13782: lt_prog_compiler_pic_CXX='-pic' ! 13783: ;; ! 13784: *) ! 13785: ;; ! 13786: esac ! 13787: ;; ! 13788: tandem*) ! 13789: case $cc_basename in ! 13790: NCC) ! 13791: # NonStop-UX NCC 3.20 ! 13792: lt_prog_compiler_pic_CXX='-KPIC' ! 13793: ;; ! 13794: *) ! 13795: ;; ! 13796: esac ! 13797: ;; ! 13798: unixware*) ! 13799: ;; ! 13800: vxworks*) ! 13801: ;; ! 13802: *) ! 13803: lt_prog_compiler_can_build_shared_CXX=no ! 13804: ;; ! 13805: esac ! 13806: fi ! 13807: ! 13808: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 ! 13809: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 ! 13810: ! 13811: # ! 13812: # Check to make sure the PIC flag actually works. ! 13813: # ! 13814: if test -n "$lt_prog_compiler_pic_CXX"; then ! 13815: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 ! 13816: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 ! 13817: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then ! 13818: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 13819: else ! 13820: lt_prog_compiler_pic_works_CXX=no ! 13821: ac_outfile=conftest.$ac_objext ! 13822: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 13823: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ! 13824: # Insert the option either (1) after the last *FLAGS variable, or ! 13825: # (2) before a word containing "conftest.", or (3) at the end. ! 13826: # Note that $ac_compile itself does not contain backslashes and begins ! 13827: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 13828: # The option is referenced via a variable to avoid confusing sed. ! 13829: lt_compile=`echo "$ac_compile" | $SED \ ! 13830: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 13831: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 13832: -e 's:$: $lt_compiler_flag:'` ! 13833: (eval echo "\"\$as_me:13833: $lt_compile\"" >&5) ! 13834: (eval "$lt_compile" 2>conftest.err) ! 13835: ac_status=$? ! 13836: cat conftest.err >&5 ! 13837: echo "$as_me:13837: \$? = $ac_status" >&5 ! 13838: if (exit $ac_status) && test -s "$ac_outfile"; then ! 13839: # The compiler can only warn and ignore the option if not recognized ! 13840: # So say no if there are warnings ! 13841: if test ! -s conftest.err; then ! 13842: lt_prog_compiler_pic_works_CXX=yes ! 13843: fi ! 13844: fi ! 13845: $rm conftest* ! 13846: ! 13847: fi ! 13848: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 ! 13849: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 ! 13850: ! 13851: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then ! 13852: case $lt_prog_compiler_pic_CXX in ! 13853: "" | " "*) ;; ! 13854: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; ! 13855: esac ! 13856: else ! 13857: lt_prog_compiler_pic_CXX= ! 13858: lt_prog_compiler_can_build_shared_CXX=no ! 13859: fi ! 13860: ! 13861: fi ! 13862: case "$host_os" in ! 13863: # For platforms which do not support PIC, -DPIC is meaningless: ! 13864: *djgpp*) ! 13865: lt_prog_compiler_pic_CXX= ! 13866: ;; ! 13867: *) ! 13868: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ! 13869: ;; ! 13870: esac ! 13871: ! 13872: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 13873: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 13874: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ! 13875: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 13876: else ! 13877: lt_cv_prog_compiler_c_o_CXX=no ! 13878: $rm -r conftest 2>/dev/null ! 13879: mkdir conftest ! 13880: cd conftest ! 13881: mkdir out ! 13882: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 13883: ! 13884: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 13885: # that will create temporary files in the current directory regardless of ! 13886: # the output directory. Thus, making CWD read-only will cause this test ! 13887: # to fail, enabling locking or at least warning the user not to do parallel ! 13888: # builds. ! 13889: chmod -w . ! 13890: ! 13891: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 13892: # Insert the option either (1) after the last *FLAGS variable, or ! 13893: # (2) before a word containing "conftest.", or (3) at the end. ! 13894: # Note that $ac_compile itself does not contain backslashes and begins ! 13895: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 13896: lt_compile=`echo "$ac_compile" | $SED \ ! 13897: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 13898: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 13899: -e 's:$: $lt_compiler_flag:'` ! 13900: (eval echo "\"\$as_me:13900: $lt_compile\"" >&5) ! 13901: (eval "$lt_compile" 2>out/conftest.err) ! 13902: ac_status=$? ! 13903: cat out/conftest.err >&5 ! 13904: echo "$as_me:13904: \$? = $ac_status" >&5 ! 13905: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 13906: then ! 13907: # The compiler can only warn and ignore the option if not recognized ! 13908: # So say no if there are warnings ! 13909: if test ! -s out/conftest.err; then ! 13910: lt_cv_prog_compiler_c_o_CXX=yes ! 13911: fi ! 13912: fi ! 13913: chmod u+w . ! 13914: $rm conftest* out/* ! 13915: rmdir out ! 13916: cd .. ! 13917: rmdir conftest ! 13918: $rm conftest* ! 13919: ! 13920: fi ! 13921: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ! 13922: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 ! 13923: ! 13924: ! 13925: hard_links="nottested" ! 13926: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then ! 13927: # do not overwrite the value of need_locks provided by the user ! 13928: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 13929: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 13930: hard_links=yes ! 13931: $rm conftest* ! 13932: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 13933: touch conftest.a ! 13934: ln conftest.a conftest.b 2>&5 || hard_links=no ! 13935: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 13936: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 13937: echo "${ECHO_T}$hard_links" >&6 ! 13938: if test "$hard_links" = no; then ! 13939: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 13940: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 13941: need_locks=warn ! 13942: fi ! 13943: else ! 13944: need_locks=no ! 13945: fi ! 13946: ! 13947: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 13948: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 13949: ! 13950: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 13951: case $host_os in ! 13952: aix4* | aix5*) ! 13953: # If we're using GNU nm, then we don't want the "-C" option. ! 13954: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 13955: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 13956: 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' ! 13957: else ! 13958: 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' ! 13959: fi ! 13960: ;; ! 13961: pw32*) ! 13962: export_symbols_cmds_CXX="$ltdll_cmds" ! 13963: ;; ! 13964: cygwin* | mingw*) ! 13965: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 13966: ;; ! 13967: *) ! 13968: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 13969: ;; ! 13970: esac ! 13971: ! 13972: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ! 13973: echo "${ECHO_T}$ld_shlibs_CXX" >&6 ! 13974: test "$ld_shlibs_CXX" = no && can_build_shared=no ! 13975: ! 13976: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 13977: if test "$GCC" = yes; then ! 13978: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 13979: fi ! 13980: ! 13981: # ! 13982: # Do we need to explicitly link libc? ! 13983: # ! 13984: case "x$archive_cmds_need_lc_CXX" in ! 13985: x|xyes) ! 13986: # Assume -lc should be added ! 13987: archive_cmds_need_lc_CXX=yes ! 13988: ! 13989: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 13990: case $archive_cmds_CXX in ! 13991: *'~'*) ! 13992: # FIXME: we may have to deal with multi-command sequences. ! 13993: ;; ! 13994: '$CC '*) ! 13995: # Test whether the compiler implicitly links with -lc since on some ! 13996: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 13997: # to ld, don't add -lc before -lgcc. ! 13998: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 13999: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 14000: $rm conftest* ! 14001: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 14002: ! 14003: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 14004: (eval $ac_compile) 2>&5 ! 14005: ac_status=$? ! 14006: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14007: (exit $ac_status); } 2>conftest.err; then ! 14008: soname=conftest ! 14009: lib=conftest ! 14010: libobjs=conftest.$ac_objext ! 14011: deplibs= ! 14012: wl=$lt_prog_compiler_wl_CXX ! 14013: compiler_flags=-v ! 14014: linker_flags=-v ! 14015: verstring= ! 14016: output_objdir=. ! 14017: libname=conftest ! 14018: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX ! 14019: allow_undefined_flag_CXX= ! 14020: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 14021: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 14022: ac_status=$? ! 14023: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14024: (exit $ac_status); } ! 14025: then ! 14026: archive_cmds_need_lc_CXX=no ! 14027: else ! 14028: archive_cmds_need_lc_CXX=yes ! 14029: fi ! 14030: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag ! 14031: else ! 14032: cat conftest.err 1>&5 ! 14033: fi ! 14034: $rm conftest* ! 14035: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 ! 14036: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ! 14037: ;; ! 14038: esac ! 14039: fi ! 14040: ;; ! 14041: esac ! 14042: ! 14043: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 14044: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 14045: hardcode_action_CXX= ! 14046: if test -n "$hardcode_libdir_flag_spec_CXX" || \ ! 14047: test -n "$runpath_var CXX" || \ ! 14048: test "X$hardcode_automatic_CXX"="Xyes" ; then ! 14049: ! 14050: # We can hardcode non-existant directories. ! 14051: if test "$hardcode_direct_CXX" != no && ! 14052: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 14053: # have to relink, otherwise we might link with an installed library ! 14054: # when we should be linking with a yet-to-be-installed one ! 14055: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && ! 14056: test "$hardcode_minus_L_CXX" != no; then ! 14057: # Linking always hardcodes the temporary library directory. ! 14058: hardcode_action_CXX=relink ! 14059: else ! 14060: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 14061: hardcode_action_CXX=immediate ! 14062: fi ! 14063: else ! 14064: # We cannot hardcode anything, or else we can only hardcode existing ! 14065: # directories. ! 14066: hardcode_action_CXX=unsupported ! 14067: fi ! 14068: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 ! 14069: echo "${ECHO_T}$hardcode_action_CXX" >&6 ! 14070: ! 14071: if test "$hardcode_action_CXX" = relink; then ! 14072: # Fast installation is not supported ! 14073: enable_fast_install=no ! 14074: elif test "$shlibpath_overrides_runpath" = yes || ! 14075: test "$enable_shared" = no; then ! 14076: # Fast installation is not necessary ! 14077: enable_fast_install=needless ! 14078: fi ! 14079: ! 14080: striplib= ! 14081: old_striplib= ! 14082: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 14083: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 14084: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 14085: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 14086: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 14087: echo "$as_me:$LINENO: result: yes" >&5 ! 14088: echo "${ECHO_T}yes" >&6 ! 14089: else ! 14090: # FIXME - insert some real tests, host_os isn't really good enough ! 14091: case $host_os in ! 14092: darwin*) ! 14093: if test -n "$STRIP" ; then ! 14094: striplib="$STRIP -x" ! 14095: echo "$as_me:$LINENO: result: yes" >&5 ! 14096: echo "${ECHO_T}yes" >&6 ! 14097: else ! 14098: echo "$as_me:$LINENO: result: no" >&5 ! 14099: echo "${ECHO_T}no" >&6 ! 14100: fi ! 14101: ;; ! 14102: *) ! 14103: echo "$as_me:$LINENO: result: no" >&5 ! 14104: echo "${ECHO_T}no" >&6 ! 14105: ;; ! 14106: esac ! 14107: fi ! 14108: ! 14109: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 14110: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 14111: library_names_spec= ! 14112: libname_spec='lib$name' ! 14113: soname_spec= ! 14114: shrext=".so" ! 14115: postinstall_cmds= ! 14116: postuninstall_cmds= ! 14117: finish_cmds= ! 14118: finish_eval= ! 14119: shlibpath_var= ! 14120: shlibpath_overrides_runpath=unknown ! 14121: version_type=none ! 14122: dynamic_linker="$host_os ld.so" ! 14123: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 14124: if test "$GCC" = yes; then ! 14125: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 14126: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 14127: # if the path contains ";" then we assume it to be the separator ! 14128: # otherwise default to the standard path separator (i.e. ":") - it is ! 14129: # assumed that no part of a normal pathname contains ";" but that should ! 14130: # okay in the real world where ";" in dirpaths is itself problematic. ! 14131: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 14132: else ! 14133: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 14134: fi ! 14135: else ! 14136: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 14137: fi ! 14138: need_lib_prefix=unknown ! 14139: hardcode_into_libs=no ! 14140: ! 14141: # when you set need_version to no, make sure it does not cause -set_version ! 14142: # flags to be left without arguments ! 14143: need_version=unknown ! 14144: ! 14145: case $host_os in ! 14146: aix3*) ! 14147: version_type=linux ! 14148: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 14149: shlibpath_var=LIBPATH ! 14150: ! 14151: # AIX 3 has no versioning support, so we append a major version to the name. ! 14152: soname_spec='${libname}${release}${shared_ext}$major' ! 14153: ;; ! 14154: ! 14155: aix4* | aix5*) ! 14156: version_type=linux ! 14157: need_lib_prefix=no ! 14158: need_version=no ! 14159: hardcode_into_libs=yes ! 14160: if test "$host_cpu" = ia64; then ! 14161: # AIX 5 supports IA64 ! 14162: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 14163: shlibpath_var=LD_LIBRARY_PATH ! 14164: else ! 14165: # With GCC up to 2.95.x, collect2 would create an import file ! 14166: # for dependence libraries. The import file would start with ! 14167: # the line `#! .'. This would cause the generated library to ! 14168: # depend on `.', always an invalid library. This was fixed in ! 14169: # development snapshots of GCC prior to 3.0. ! 14170: case $host_os in ! 14171: aix4 | aix4.[01] | aix4.[01].*) ! 14172: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 14173: echo ' yes ' ! 14174: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 14175: : ! 14176: else ! 14177: can_build_shared=no ! 14178: fi ! 14179: ;; ! 14180: esac ! 14181: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 14182: # soname into executable. Probably we can add versioning support to ! 14183: # collect2, so additional links can be useful in future. ! 14184: if test "$aix_use_runtimelinking" = yes; then ! 14185: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 14186: # instead of lib<name>.a to let people know that these are not ! 14187: # typical AIX shared libraries. ! 14188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14189: else ! 14190: # We preserve .a as extension for shared libraries through AIX4.2 ! 14191: # and later when we are not doing run time linking. ! 14192: library_names_spec='${libname}${release}.a $libname.a' ! 14193: soname_spec='${libname}${release}${shared_ext}$major' ! 14194: fi ! 14195: shlibpath_var=LIBPATH ! 14196: fi ! 14197: ;; ! 14198: ! 14199: amigaos*) ! 14200: library_names_spec='$libname.ixlibrary $libname.a' ! 14201: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 14202: 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' ! 14203: ;; ! 14204: ! 14205: beos*) ! 14206: library_names_spec='${libname}${shared_ext}' ! 14207: dynamic_linker="$host_os ld.so" ! 14208: shlibpath_var=LIBRARY_PATH ! 14209: ;; ! 14210: ! 14211: bsdi4*) ! 14212: version_type=linux ! 14213: need_version=no ! 14214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14215: soname_spec='${libname}${release}${shared_ext}$major' ! 14216: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 14217: shlibpath_var=LD_LIBRARY_PATH ! 14218: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 14219: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 14220: # the default ld.so.conf also contains /usr/contrib/lib and ! 14221: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 14222: # libtool to hard-code these into programs ! 14223: ;; ! 14224: ! 14225: cygwin* | mingw* | pw32*) ! 14226: version_type=windows ! 14227: shrext=".dll" ! 14228: need_version=no ! 14229: need_lib_prefix=no ! 14230: ! 14231: case $GCC,$host_os in ! 14232: yes,cygwin* | yes,mingw* | yes,pw32*) ! 14233: library_names_spec='$libname.dll.a' ! 14234: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 14235: postinstall_cmds='base_file=`basename \${file}`~ ! 14236: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 14237: dldir=$destdir/`dirname \$dlpath`~ ! 14238: test -d \$dldir || mkdir -p \$dldir~ ! 14239: $install_prog $dir/$dlname \$dldir/$dlname' ! 14240: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 14241: dlpath=$dir/\$dldll~ ! 14242: $rm \$dlpath' ! 14243: shlibpath_overrides_runpath=yes ! 14244: ! 14245: case $host_os in ! 14246: cygwin*) ! 14247: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 14248: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 14249: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 14250: ;; ! 14251: mingw*) ! 14252: # MinGW DLLs use traditional 'lib' prefix ! 14253: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 14254: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 14255: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 14256: # It is most probably a Windows format PATH printed by ! 14257: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 14258: # path with ; separators, and with drive letters. We can handle the ! 14259: # drive letters (cygwin fileutils understands them), so leave them, ! 14260: # especially as we might pass files found there to a mingw objdump, ! 14261: # which wouldn't understand a cygwinified path. Ahh. ! 14262: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 14263: else ! 14264: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 14265: fi ! 14266: ;; ! 14267: pw32*) ! 14268: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 14269: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 14270: ;; ! 14271: esac ! 14272: ;; ! 14273: ! 14274: *) ! 14275: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 14276: ;; ! 14277: esac ! 14278: dynamic_linker='Win32 ld.exe' ! 14279: # FIXME: first we should search . and the directory the executable is in ! 14280: shlibpath_var=PATH ! 14281: ;; ! 14282: ! 14283: darwin* | rhapsody*) ! 14284: dynamic_linker="$host_os dyld" ! 14285: version_type=darwin ! 14286: need_lib_prefix=no ! 14287: need_version=no ! 14288: # FIXME: Relying on posixy $() will cause problems for ! 14289: # cross-compilation, but unfortunately the echo tests do not ! 14290: # yet detect zsh echo's removal of \ escapes. ! 14291: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 14292: soname_spec='${libname}${release}${major}$shared_ext' ! 14293: shlibpath_overrides_runpath=yes ! 14294: shlibpath_var=DYLD_LIBRARY_PATH ! 14295: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 14296: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 14297: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 14298: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 14299: fi ! 14300: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 14301: ;; ! 14302: ! 14303: dgux*) ! 14304: version_type=linux ! 14305: need_lib_prefix=no ! 14306: need_version=no ! 14307: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 14308: soname_spec='${libname}${release}${shared_ext}$major' ! 14309: shlibpath_var=LD_LIBRARY_PATH ! 14310: ;; ! 14311: ! 14312: freebsd1*) ! 14313: dynamic_linker=no ! 14314: ;; ! 14315: ! 14316: freebsd*) ! 14317: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 14318: version_type=freebsd-$objformat ! 14319: case $version_type in ! 14320: freebsd-elf*) ! 14321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 14322: need_version=no ! 14323: need_lib_prefix=no ! 14324: ;; ! 14325: freebsd-*) ! 14326: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 14327: need_version=yes ! 14328: ;; ! 14329: esac ! 14330: shlibpath_var=LD_LIBRARY_PATH ! 14331: case $host_os in ! 14332: freebsd2*) ! 14333: shlibpath_overrides_runpath=yes ! 14334: ;; ! 14335: freebsd3.01* | freebsdelf3.01*) ! 14336: shlibpath_overrides_runpath=yes ! 14337: hardcode_into_libs=yes ! 14338: ;; ! 14339: *) # from 3.2 on ! 14340: shlibpath_overrides_runpath=no ! 14341: hardcode_into_libs=yes ! 14342: ;; ! 14343: esac ! 14344: ;; ! 14345: ! 14346: gnu*) ! 14347: version_type=linux ! 14348: need_lib_prefix=no ! 14349: need_version=no ! 14350: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 14351: soname_spec='${libname}${release}${shared_ext}$major' ! 14352: shlibpath_var=LD_LIBRARY_PATH ! 14353: hardcode_into_libs=yes ! 14354: ;; ! 14355: ! 14356: hpux9* | hpux10* | hpux11*) ! 14357: # Give a soname corresponding to the major version so that dld.sl refuses to ! 14358: # link against other versions. ! 14359: version_type=sunos ! 14360: need_lib_prefix=no ! 14361: need_version=no ! 14362: case "$host_cpu" in ! 14363: ia64*) ! 14364: shrext='.so' ! 14365: hardcode_into_libs=yes ! 14366: dynamic_linker="$host_os dld.so" ! 14367: shlibpath_var=LD_LIBRARY_PATH ! 14368: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 14369: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14370: soname_spec='${libname}${release}${shared_ext}$major' ! 14371: if test "X$HPUX_IA64_MODE" = X32; then ! 14372: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 14373: else ! 14374: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 14375: fi ! 14376: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 14377: ;; ! 14378: hppa*64*) ! 14379: shrext='.sl' ! 14380: hardcode_into_libs=yes ! 14381: dynamic_linker="$host_os dld.sl" ! 14382: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 14383: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 14384: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14385: soname_spec='${libname}${release}${shared_ext}$major' ! 14386: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 14387: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 14388: ;; ! 14389: *) ! 14390: shrext='.sl' ! 14391: dynamic_linker="$host_os dld.sl" ! 14392: shlibpath_var=SHLIB_PATH ! 14393: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 14394: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14395: soname_spec='${libname}${release}${shared_ext}$major' ! 14396: ;; ! 14397: esac ! 14398: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 14399: postinstall_cmds='chmod 555 $lib' ! 14400: ;; ! 14401: ! 14402: irix5* | irix6* | nonstopux*) ! 14403: case $host_os in ! 14404: nonstopux*) version_type=nonstopux ;; ! 14405: *) ! 14406: if test "$lt_cv_prog_gnu_ld" = yes; then ! 14407: version_type=linux ! 14408: else ! 14409: version_type=irix ! 14410: fi ;; ! 14411: esac ! 14412: need_lib_prefix=no ! 14413: need_version=no ! 14414: soname_spec='${libname}${release}${shared_ext}$major' ! 14415: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 14416: case $host_os in ! 14417: irix5* | nonstopux*) ! 14418: libsuff= shlibsuff= ! 14419: ;; ! 14420: *) ! 14421: case $LD in # libtool.m4 will add one of these switches to LD ! 14422: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 14423: libsuff= shlibsuff= libmagic=32-bit;; ! 14424: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 14425: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 14426: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 14427: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 14428: *) libsuff= shlibsuff= libmagic=never-match;; ! 14429: esac ! 14430: ;; ! 14431: esac ! 14432: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 14433: shlibpath_overrides_runpath=no ! 14434: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 14435: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 14436: hardcode_into_libs=yes ! 14437: ;; ! 14438: ! 14439: # No shared lib support for Linux oldld, aout, or coff. ! 14440: linux*oldld* | linux*aout* | linux*coff*) ! 14441: dynamic_linker=no ! 14442: ;; ! 14443: ! 14444: # This must be Linux ELF. ! 14445: linux*) ! 14446: version_type=linux ! 14447: need_lib_prefix=no ! 14448: need_version=no ! 14449: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14450: soname_spec='${libname}${release}${shared_ext}$major' ! 14451: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 14452: shlibpath_var=LD_LIBRARY_PATH ! 14453: shlibpath_overrides_runpath=no ! 14454: # This implies no fast_install, which is unacceptable. ! 14455: # Some rework will be needed to allow for fast_install ! 14456: # before this can be enabled. ! 14457: hardcode_into_libs=yes ! 14458: ! 14459: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 14460: # powerpc, because MkLinux only supported shared libraries with the ! 14461: # GNU dynamic linker. Since this was broken with cross compilers, ! 14462: # most powerpc-linux boxes support dynamic linking these days and ! 14463: # people can always --disable-shared, the test was removed, and we ! 14464: # assume the GNU/Linux dynamic linker is in use. ! 14465: dynamic_linker='GNU/Linux ld.so' ! 14466: ;; ! 14467: ! 14468: netbsd*) ! 14469: version_type=sunos ! 14470: need_lib_prefix=no ! 14471: need_version=no ! 14472: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 14473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14474: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 14475: dynamic_linker='NetBSD (a.out) ld.so' ! 14476: else ! 14477: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 14478: soname_spec='${libname}${release}${shared_ext}$major' ! 14479: dynamic_linker='NetBSD ld.elf_so' ! 14480: fi ! 14481: shlibpath_var=LD_LIBRARY_PATH ! 14482: shlibpath_overrides_runpath=yes ! 14483: hardcode_into_libs=yes ! 14484: ;; ! 14485: ! 14486: newsos6) ! 14487: version_type=linux ! 14488: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14489: shlibpath_var=LD_LIBRARY_PATH ! 14490: shlibpath_overrides_runpath=yes ! 14491: ;; ! 14492: ! 14493: nto-qnx) ! 14494: version_type=linux ! 14495: need_lib_prefix=no ! 14496: need_version=no ! 14497: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14498: soname_spec='${libname}${release}${shared_ext}$major' ! 14499: shlibpath_var=LD_LIBRARY_PATH ! 14500: shlibpath_overrides_runpath=yes ! 14501: ;; ! 14502: ! 14503: openbsd*) ! 14504: version_type=sunos ! 14505: need_lib_prefix=no ! 14506: need_version=no ! 14507: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14508: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 14509: shlibpath_var=LD_LIBRARY_PATH ! 14510: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 14511: case $host_os in ! 14512: openbsd2.[89] | openbsd2.[89].*) ! 14513: shlibpath_overrides_runpath=no ! 14514: ;; ! 14515: *) ! 14516: shlibpath_overrides_runpath=yes ! 14517: ;; ! 14518: esac ! 14519: else ! 14520: shlibpath_overrides_runpath=yes ! 14521: fi ! 14522: ;; ! 14523: ! 14524: os2*) ! 14525: libname_spec='$name' ! 14526: shrext=".dll" ! 14527: need_lib_prefix=no ! 14528: library_names_spec='$libname${shared_ext} $libname.a' ! 14529: dynamic_linker='OS/2 ld.exe' ! 14530: shlibpath_var=LIBPATH ! 14531: ;; ! 14532: ! 14533: osf3* | osf4* | osf5*) ! 14534: version_type=osf ! 14535: need_lib_prefix=no ! 14536: need_version=no ! 14537: soname_spec='${libname}${release}${shared_ext}$major' ! 14538: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14539: shlibpath_var=LD_LIBRARY_PATH ! 14540: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 14541: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 14542: ;; ! 14543: ! 14544: sco3.2v5*) ! 14545: version_type=osf ! 14546: soname_spec='${libname}${release}${shared_ext}$major' ! 14547: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14548: shlibpath_var=LD_LIBRARY_PATH ! 14549: ;; ! 14550: ! 14551: solaris*) ! 14552: version_type=linux ! 14553: need_lib_prefix=no ! 14554: need_version=no ! 14555: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14556: soname_spec='${libname}${release}${shared_ext}$major' ! 14557: shlibpath_var=LD_LIBRARY_PATH ! 14558: shlibpath_overrides_runpath=yes ! 14559: hardcode_into_libs=yes ! 14560: # ldd complains unless libraries are executable ! 14561: postinstall_cmds='chmod +x $lib' ! 14562: ;; ! 14563: ! 14564: sunos4*) ! 14565: version_type=sunos ! 14566: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14567: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 14568: shlibpath_var=LD_LIBRARY_PATH ! 14569: shlibpath_overrides_runpath=yes ! 14570: if test "$with_gnu_ld" = yes; then ! 14571: need_lib_prefix=no ! 14572: fi ! 14573: need_version=yes ! 14574: ;; ! 14575: ! 14576: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 14577: version_type=linux ! 14578: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14579: soname_spec='${libname}${release}${shared_ext}$major' ! 14580: shlibpath_var=LD_LIBRARY_PATH ! 14581: case $host_vendor in ! 14582: sni) ! 14583: shlibpath_overrides_runpath=no ! 14584: need_lib_prefix=no ! 14585: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 14586: runpath_var=LD_RUN_PATH ! 14587: ;; ! 14588: siemens) ! 14589: need_lib_prefix=no ! 14590: ;; ! 14591: motorola) ! 14592: need_lib_prefix=no ! 14593: need_version=no ! 14594: shlibpath_overrides_runpath=no ! 14595: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 14596: ;; ! 14597: esac ! 14598: ;; ! 14599: ! 14600: sysv4*MP*) ! 14601: if test -d /usr/nec ;then ! 14602: version_type=linux ! 14603: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 14604: soname_spec='$libname${shared_ext}.$major' ! 14605: shlibpath_var=LD_LIBRARY_PATH ! 14606: fi ! 14607: ;; ! 14608: ! 14609: uts4*) ! 14610: version_type=linux ! 14611: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14612: soname_spec='${libname}${release}${shared_ext}$major' ! 14613: shlibpath_var=LD_LIBRARY_PATH ! 14614: ;; ! 14615: ! 14616: *) ! 14617: dynamic_linker=no ! 14618: ;; ! 14619: esac ! 14620: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 14621: echo "${ECHO_T}$dynamic_linker" >&6 ! 14622: test "$dynamic_linker" = no && can_build_shared=no ! 14623: ! 14624: if test "x$enable_dlopen" != xyes; then ! 14625: enable_dlopen=unknown ! 14626: enable_dlopen_self=unknown ! 14627: enable_dlopen_self_static=unknown ! 14628: else ! 14629: lt_cv_dlopen=no ! 14630: lt_cv_dlopen_libs= ! 14631: ! 14632: case $host_os in ! 14633: beos*) ! 14634: lt_cv_dlopen="load_add_on" ! 14635: lt_cv_dlopen_libs= ! 14636: lt_cv_dlopen_self=yes ! 14637: ;; ! 14638: ! 14639: mingw* | pw32*) ! 14640: lt_cv_dlopen="LoadLibrary" ! 14641: lt_cv_dlopen_libs= ! 14642: ;; ! 14643: ! 14644: cygwin*) ! 14645: lt_cv_dlopen="dlopen" ! 14646: lt_cv_dlopen_libs= ! 14647: ;; ! 14648: ! 14649: darwin*) ! 14650: # if libdl is installed we need to link against it ! 14651: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 14652: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 14653: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 14654: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14655: else ! 14656: ac_check_lib_save_LIBS=$LIBS ! 14657: LIBS="-ldl $LIBS" ! 14658: cat >conftest.$ac_ext <<_ACEOF ! 14659: #line $LINENO "configure" ! 14660: /* confdefs.h. */ ! 14661: _ACEOF ! 14662: cat confdefs.h >>conftest.$ac_ext ! 14663: cat >>conftest.$ac_ext <<_ACEOF ! 14664: /* end confdefs.h. */ ! 14665: ! 14666: /* Override any gcc2 internal prototype to avoid an error. */ ! 14667: #ifdef __cplusplus ! 14668: extern "C" ! 14669: #endif ! 14670: /* We use char because int might match the return type of a gcc2 ! 14671: builtin and then its argument prototype would still apply. */ ! 14672: char dlopen (); ! 14673: int ! 14674: main () ! 14675: { ! 14676: dlopen (); ! 14677: ; ! 14678: return 0; ! 14679: } ! 14680: _ACEOF ! 14681: rm -f conftest.$ac_objext conftest$ac_exeext ! 14682: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 14683: (eval $ac_link) 2>&5 ! 14684: ac_status=$? ! 14685: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14686: (exit $ac_status); } && ! 14687: { ac_try='test -s conftest$ac_exeext' ! 14688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 14689: (eval $ac_try) 2>&5 ! 14690: ac_status=$? ! 14691: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14692: (exit $ac_status); }; }; then ! 14693: ac_cv_lib_dl_dlopen=yes ! 14694: else ! 14695: echo "$as_me: failed program was:" >&5 ! 14696: sed 's/^/| /' conftest.$ac_ext >&5 ! 14697: ! 14698: ac_cv_lib_dl_dlopen=no ! 14699: fi ! 14700: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 14701: LIBS=$ac_check_lib_save_LIBS ! 14702: fi ! 14703: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 14704: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 14705: if test $ac_cv_lib_dl_dlopen = yes; then ! 14706: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 14707: else ! 14708: ! 14709: lt_cv_dlopen="dyld" ! 14710: lt_cv_dlopen_libs= ! 14711: lt_cv_dlopen_self=yes ! 14712: ! 14713: fi ! 14714: ! 14715: ;; ! 14716: ! 14717: *) ! 14718: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 14719: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 14720: if test "${ac_cv_func_shl_load+set}" = set; then ! 14721: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14722: else ! 14723: cat >conftest.$ac_ext <<_ACEOF ! 14724: #line $LINENO "configure" ! 14725: /* confdefs.h. */ ! 14726: _ACEOF ! 14727: cat confdefs.h >>conftest.$ac_ext ! 14728: cat >>conftest.$ac_ext <<_ACEOF ! 14729: /* end confdefs.h. */ ! 14730: /* System header to define __stub macros and hopefully few prototypes, ! 14731: which can conflict with char shl_load (); below. ! 14732: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 14733: <limits.h> exists even on freestanding compilers. */ ! 14734: #ifdef __STDC__ ! 14735: # include <limits.h> ! 14736: #else ! 14737: # include <assert.h> ! 14738: #endif ! 14739: /* Override any gcc2 internal prototype to avoid an error. */ ! 14740: #ifdef __cplusplus ! 14741: extern "C" ! 14742: { ! 14743: #endif ! 14744: /* We use char because int might match the return type of a gcc2 ! 14745: builtin and then its argument prototype would still apply. */ ! 14746: char shl_load (); ! 14747: /* The GNU C library defines this for functions which it implements ! 14748: to always fail with ENOSYS. Some functions are actually named ! 14749: something starting with __ and the normal name is an alias. */ ! 14750: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 14751: choke me ! 14752: #else ! 14753: char (*f) () = shl_load; ! 14754: #endif ! 14755: #ifdef __cplusplus ! 14756: } ! 14757: #endif ! 14758: ! 14759: int ! 14760: main () ! 14761: { ! 14762: return f != shl_load; ! 14763: ; ! 14764: return 0; ! 14765: } ! 14766: _ACEOF ! 14767: rm -f conftest.$ac_objext conftest$ac_exeext ! 14768: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 14769: (eval $ac_link) 2>&5 ! 14770: ac_status=$? ! 14771: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14772: (exit $ac_status); } && ! 14773: { ac_try='test -s conftest$ac_exeext' ! 14774: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 14775: (eval $ac_try) 2>&5 ! 14776: ac_status=$? ! 14777: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14778: (exit $ac_status); }; }; then ! 14779: ac_cv_func_shl_load=yes ! 14780: else ! 14781: echo "$as_me: failed program was:" >&5 ! 14782: sed 's/^/| /' conftest.$ac_ext >&5 ! 14783: ! 14784: ac_cv_func_shl_load=no ! 14785: fi ! 14786: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 14787: fi ! 14788: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 14789: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 14790: if test $ac_cv_func_shl_load = yes; then ! 14791: lt_cv_dlopen="shl_load" ! 14792: else ! 14793: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 14794: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 14795: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 14796: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14797: else ! 14798: ac_check_lib_save_LIBS=$LIBS ! 14799: LIBS="-ldld $LIBS" ! 14800: cat >conftest.$ac_ext <<_ACEOF ! 14801: #line $LINENO "configure" ! 14802: /* confdefs.h. */ ! 14803: _ACEOF ! 14804: cat confdefs.h >>conftest.$ac_ext ! 14805: cat >>conftest.$ac_ext <<_ACEOF ! 14806: /* end confdefs.h. */ ! 14807: ! 14808: /* Override any gcc2 internal prototype to avoid an error. */ ! 14809: #ifdef __cplusplus ! 14810: extern "C" ! 14811: #endif ! 14812: /* We use char because int might match the return type of a gcc2 ! 14813: builtin and then its argument prototype would still apply. */ ! 14814: char shl_load (); ! 14815: int ! 14816: main () ! 14817: { ! 14818: shl_load (); ! 14819: ; ! 14820: return 0; ! 14821: } ! 14822: _ACEOF ! 14823: rm -f conftest.$ac_objext conftest$ac_exeext ! 14824: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 14825: (eval $ac_link) 2>&5 ! 14826: ac_status=$? ! 14827: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14828: (exit $ac_status); } && ! 14829: { ac_try='test -s conftest$ac_exeext' ! 14830: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 14831: (eval $ac_try) 2>&5 ! 14832: ac_status=$? ! 14833: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14834: (exit $ac_status); }; }; then ! 14835: ac_cv_lib_dld_shl_load=yes ! 14836: else ! 14837: echo "$as_me: failed program was:" >&5 ! 14838: sed 's/^/| /' conftest.$ac_ext >&5 ! 14839: ! 14840: ac_cv_lib_dld_shl_load=no ! 14841: fi ! 14842: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 14843: LIBS=$ac_check_lib_save_LIBS ! 14844: fi ! 14845: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 14846: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 14847: if test $ac_cv_lib_dld_shl_load = yes; then ! 14848: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 14849: else ! 14850: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 14851: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 14852: if test "${ac_cv_func_dlopen+set}" = set; then ! 14853: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14854: else ! 14855: cat >conftest.$ac_ext <<_ACEOF ! 14856: #line $LINENO "configure" ! 14857: /* confdefs.h. */ ! 14858: _ACEOF ! 14859: cat confdefs.h >>conftest.$ac_ext ! 14860: cat >>conftest.$ac_ext <<_ACEOF ! 14861: /* end confdefs.h. */ ! 14862: /* System header to define __stub macros and hopefully few prototypes, ! 14863: which can conflict with char dlopen (); below. ! 14864: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 14865: <limits.h> exists even on freestanding compilers. */ ! 14866: #ifdef __STDC__ ! 14867: # include <limits.h> ! 14868: #else ! 14869: # include <assert.h> ! 14870: #endif ! 14871: /* Override any gcc2 internal prototype to avoid an error. */ ! 14872: #ifdef __cplusplus ! 14873: extern "C" ! 14874: { ! 14875: #endif ! 14876: /* We use char because int might match the return type of a gcc2 ! 14877: builtin and then its argument prototype would still apply. */ ! 14878: char dlopen (); ! 14879: /* The GNU C library defines this for functions which it implements ! 14880: to always fail with ENOSYS. Some functions are actually named ! 14881: something starting with __ and the normal name is an alias. */ ! 14882: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 14883: choke me ! 14884: #else ! 14885: char (*f) () = dlopen; ! 14886: #endif ! 14887: #ifdef __cplusplus ! 14888: } ! 14889: #endif ! 14890: ! 14891: int ! 14892: main () ! 14893: { ! 14894: return f != dlopen; ! 14895: ; ! 14896: return 0; ! 14897: } ! 14898: _ACEOF ! 14899: rm -f conftest.$ac_objext conftest$ac_exeext ! 14900: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 14901: (eval $ac_link) 2>&5 ! 14902: ac_status=$? ! 14903: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14904: (exit $ac_status); } && ! 14905: { ac_try='test -s conftest$ac_exeext' ! 14906: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 14907: (eval $ac_try) 2>&5 ! 14908: ac_status=$? ! 14909: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14910: (exit $ac_status); }; }; then ! 14911: ac_cv_func_dlopen=yes ! 14912: else ! 14913: echo "$as_me: failed program was:" >&5 ! 14914: sed 's/^/| /' conftest.$ac_ext >&5 ! 14915: ! 14916: ac_cv_func_dlopen=no ! 14917: fi ! 14918: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 14919: fi ! 14920: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 14921: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 14922: if test $ac_cv_func_dlopen = yes; then ! 14923: lt_cv_dlopen="dlopen" ! 14924: else ! 14925: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 14926: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 14927: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 14928: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14929: else ! 14930: ac_check_lib_save_LIBS=$LIBS ! 14931: LIBS="-ldl $LIBS" ! 14932: cat >conftest.$ac_ext <<_ACEOF ! 14933: #line $LINENO "configure" ! 14934: /* confdefs.h. */ ! 14935: _ACEOF ! 14936: cat confdefs.h >>conftest.$ac_ext ! 14937: cat >>conftest.$ac_ext <<_ACEOF ! 14938: /* end confdefs.h. */ ! 14939: ! 14940: /* Override any gcc2 internal prototype to avoid an error. */ ! 14941: #ifdef __cplusplus ! 14942: extern "C" ! 14943: #endif ! 14944: /* We use char because int might match the return type of a gcc2 ! 14945: builtin and then its argument prototype would still apply. */ ! 14946: char dlopen (); ! 14947: int ! 14948: main () ! 14949: { ! 14950: dlopen (); ! 14951: ; ! 14952: return 0; ! 14953: } ! 14954: _ACEOF ! 14955: rm -f conftest.$ac_objext conftest$ac_exeext ! 14956: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 14957: (eval $ac_link) 2>&5 ! 14958: ac_status=$? ! 14959: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14960: (exit $ac_status); } && ! 14961: { ac_try='test -s conftest$ac_exeext' ! 14962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 14963: (eval $ac_try) 2>&5 ! 14964: ac_status=$? ! 14965: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14966: (exit $ac_status); }; }; then ! 14967: ac_cv_lib_dl_dlopen=yes ! 14968: else ! 14969: echo "$as_me: failed program was:" >&5 ! 14970: sed 's/^/| /' conftest.$ac_ext >&5 ! 14971: ! 14972: ac_cv_lib_dl_dlopen=no ! 14973: fi ! 14974: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 14975: LIBS=$ac_check_lib_save_LIBS ! 14976: fi ! 14977: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 14978: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 14979: if test $ac_cv_lib_dl_dlopen = yes; then ! 14980: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 14981: else ! 14982: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 14983: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 14984: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 14985: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 14986: else ! 14987: ac_check_lib_save_LIBS=$LIBS ! 14988: LIBS="-lsvld $LIBS" ! 14989: cat >conftest.$ac_ext <<_ACEOF ! 14990: #line $LINENO "configure" ! 14991: /* confdefs.h. */ ! 14992: _ACEOF ! 14993: cat confdefs.h >>conftest.$ac_ext ! 14994: cat >>conftest.$ac_ext <<_ACEOF ! 14995: /* end confdefs.h. */ ! 14996: ! 14997: /* Override any gcc2 internal prototype to avoid an error. */ ! 14998: #ifdef __cplusplus ! 14999: extern "C" ! 15000: #endif ! 15001: /* We use char because int might match the return type of a gcc2 ! 15002: builtin and then its argument prototype would still apply. */ ! 15003: char dlopen (); ! 15004: int ! 15005: main () ! 15006: { ! 15007: dlopen (); ! 15008: ; ! 15009: return 0; ! 15010: } ! 15011: _ACEOF ! 15012: rm -f conftest.$ac_objext conftest$ac_exeext ! 15013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15014: (eval $ac_link) 2>&5 ! 15015: ac_status=$? ! 15016: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15017: (exit $ac_status); } && ! 15018: { ac_try='test -s conftest$ac_exeext' ! 15019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 15020: (eval $ac_try) 2>&5 ! 15021: ac_status=$? ! 15022: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15023: (exit $ac_status); }; }; then ! 15024: ac_cv_lib_svld_dlopen=yes ! 15025: else ! 15026: echo "$as_me: failed program was:" >&5 ! 15027: sed 's/^/| /' conftest.$ac_ext >&5 ! 15028: ! 15029: ac_cv_lib_svld_dlopen=no ! 15030: fi ! 15031: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 15032: LIBS=$ac_check_lib_save_LIBS ! 15033: fi ! 15034: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 15035: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 15036: if test $ac_cv_lib_svld_dlopen = yes; then ! 15037: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 15038: else ! 15039: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 15040: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 15041: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 15042: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15043: else ! 15044: ac_check_lib_save_LIBS=$LIBS ! 15045: LIBS="-ldld $LIBS" ! 15046: cat >conftest.$ac_ext <<_ACEOF ! 15047: #line $LINENO "configure" ! 15048: /* confdefs.h. */ ! 15049: _ACEOF ! 15050: cat confdefs.h >>conftest.$ac_ext ! 15051: cat >>conftest.$ac_ext <<_ACEOF ! 15052: /* end confdefs.h. */ ! 15053: ! 15054: /* Override any gcc2 internal prototype to avoid an error. */ ! 15055: #ifdef __cplusplus ! 15056: extern "C" ! 15057: #endif ! 15058: /* We use char because int might match the return type of a gcc2 ! 15059: builtin and then its argument prototype would still apply. */ ! 15060: char dld_link (); ! 15061: int ! 15062: main () ! 15063: { ! 15064: dld_link (); ! 15065: ; ! 15066: return 0; ! 15067: } ! 15068: _ACEOF ! 15069: rm -f conftest.$ac_objext conftest$ac_exeext ! 15070: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15071: (eval $ac_link) 2>&5 ! 15072: ac_status=$? ! 15073: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15074: (exit $ac_status); } && ! 15075: { ac_try='test -s conftest$ac_exeext' ! 15076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 15077: (eval $ac_try) 2>&5 ! 15078: ac_status=$? ! 15079: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15080: (exit $ac_status); }; }; then ! 15081: ac_cv_lib_dld_dld_link=yes ! 15082: else ! 15083: echo "$as_me: failed program was:" >&5 ! 15084: sed 's/^/| /' conftest.$ac_ext >&5 ! 15085: ! 15086: ac_cv_lib_dld_dld_link=no ! 15087: fi ! 15088: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 15089: LIBS=$ac_check_lib_save_LIBS ! 15090: fi ! 15091: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 15092: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 15093: if test $ac_cv_lib_dld_dld_link = yes; then ! 15094: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 15095: fi ! 15096: ! 15097: ! 15098: fi ! 15099: ! 15100: ! 15101: fi ! 15102: ! 15103: ! 15104: fi ! 15105: ! 15106: ! 15107: fi ! 15108: ! 15109: ! 15110: fi ! 15111: ! 15112: ;; ! 15113: esac ! 15114: ! 15115: if test "x$lt_cv_dlopen" != xno; then ! 15116: enable_dlopen=yes ! 15117: else ! 15118: enable_dlopen=no ! 15119: fi ! 15120: ! 15121: case $lt_cv_dlopen in ! 15122: dlopen) ! 15123: save_CPPFLAGS="$CPPFLAGS" ! 15124: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 15125: ! 15126: save_LDFLAGS="$LDFLAGS" ! 15127: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 15128: ! 15129: save_LIBS="$LIBS" ! 15130: LIBS="$lt_cv_dlopen_libs $LIBS" ! 15131: ! 15132: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 15133: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 15134: if test "${lt_cv_dlopen_self+set}" = set; then ! 15135: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15136: else ! 15137: if test "$cross_compiling" = yes; then : ! 15138: lt_cv_dlopen_self=cross ! 15139: else ! 15140: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 15141: lt_status=$lt_dlunknown ! 15142: cat > conftest.$ac_ext <<EOF ! 15143: #line 15143 "configure" ! 15144: #include "confdefs.h" ! 15145: ! 15146: #if HAVE_DLFCN_H ! 15147: #include <dlfcn.h> ! 15148: #endif ! 15149: ! 15150: #include <stdio.h> ! 15151: ! 15152: #ifdef RTLD_GLOBAL ! 15153: # define LT_DLGLOBAL RTLD_GLOBAL ! 15154: #else ! 15155: # ifdef DL_GLOBAL ! 15156: # define LT_DLGLOBAL DL_GLOBAL ! 15157: # else ! 15158: # define LT_DLGLOBAL 0 ! 15159: # endif ! 15160: #endif ! 15161: ! 15162: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 15163: find out it does not work in some platform. */ ! 15164: #ifndef LT_DLLAZY_OR_NOW ! 15165: # ifdef RTLD_LAZY ! 15166: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 15167: # else ! 15168: # ifdef DL_LAZY ! 15169: # define LT_DLLAZY_OR_NOW DL_LAZY ! 15170: # else ! 15171: # ifdef RTLD_NOW ! 15172: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 15173: # else ! 15174: # ifdef DL_NOW ! 15175: # define LT_DLLAZY_OR_NOW DL_NOW ! 15176: # else ! 15177: # define LT_DLLAZY_OR_NOW 0 ! 15178: # endif ! 15179: # endif ! 15180: # endif ! 15181: # endif ! 15182: #endif ! 15183: ! 15184: #ifdef __cplusplus ! 15185: extern "C" void exit (int); ! 15186: #endif ! 15187: ! 15188: void fnord() { int i=42;} ! 15189: int main () ! 15190: { ! 15191: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 15192: int status = $lt_dlunknown; ! 15193: ! 15194: if (self) ! 15195: { ! 15196: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 15197: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 15198: /* dlclose (self); */ ! 15199: } ! 15200: ! 15201: exit (status); ! 15202: } ! 15203: EOF ! 15204: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15205: (eval $ac_link) 2>&5 ! 15206: ac_status=$? ! 15207: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15208: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 15209: (./conftest; exit; ) 2>/dev/null ! 15210: lt_status=$? ! 15211: case x$lt_status in ! 15212: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 15213: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 15214: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 15215: esac ! 15216: else : ! 15217: # compilation failed ! 15218: lt_cv_dlopen_self=no ! 15219: fi ! 15220: fi ! 15221: rm -fr conftest* ! 15222: ! 15223: ! 15224: fi ! 15225: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 15226: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 15227: ! 15228: if test "x$lt_cv_dlopen_self" = xyes; then ! 15229: LDFLAGS="$LDFLAGS $link_static_flag" ! 15230: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 15231: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 15232: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 15233: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15234: else ! 15235: if test "$cross_compiling" = yes; then : ! 15236: lt_cv_dlopen_self_static=cross ! 15237: else ! 15238: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 15239: lt_status=$lt_dlunknown ! 15240: cat > conftest.$ac_ext <<EOF ! 15241: #line 15241 "configure" ! 15242: #include "confdefs.h" ! 15243: ! 15244: #if HAVE_DLFCN_H ! 15245: #include <dlfcn.h> ! 15246: #endif ! 15247: ! 15248: #include <stdio.h> ! 15249: ! 15250: #ifdef RTLD_GLOBAL ! 15251: # define LT_DLGLOBAL RTLD_GLOBAL ! 15252: #else ! 15253: # ifdef DL_GLOBAL ! 15254: # define LT_DLGLOBAL DL_GLOBAL ! 15255: # else ! 15256: # define LT_DLGLOBAL 0 ! 15257: # endif ! 15258: #endif ! 15259: ! 15260: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 15261: find out it does not work in some platform. */ ! 15262: #ifndef LT_DLLAZY_OR_NOW ! 15263: # ifdef RTLD_LAZY ! 15264: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 15265: # else ! 15266: # ifdef DL_LAZY ! 15267: # define LT_DLLAZY_OR_NOW DL_LAZY ! 15268: # else ! 15269: # ifdef RTLD_NOW ! 15270: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 15271: # else ! 15272: # ifdef DL_NOW ! 15273: # define LT_DLLAZY_OR_NOW DL_NOW ! 15274: # else ! 15275: # define LT_DLLAZY_OR_NOW 0 ! 15276: # endif ! 15277: # endif ! 15278: # endif ! 15279: # endif ! 15280: #endif ! 15281: ! 15282: #ifdef __cplusplus ! 15283: extern "C" void exit (int); ! 15284: #endif ! 15285: ! 15286: void fnord() { int i=42;} ! 15287: int main () ! 15288: { ! 15289: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 15290: int status = $lt_dlunknown; ! 15291: ! 15292: if (self) ! 15293: { ! 15294: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 15295: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 15296: /* dlclose (self); */ ! 15297: } ! 15298: ! 15299: exit (status); ! 15300: } ! 15301: EOF ! 15302: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15303: (eval $ac_link) 2>&5 ! 15304: ac_status=$? ! 15305: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15306: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 15307: (./conftest; exit; ) 2>/dev/null ! 15308: lt_status=$? ! 15309: case x$lt_status in ! 15310: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 15311: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 15312: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 15313: esac ! 15314: else : ! 15315: # compilation failed ! 15316: lt_cv_dlopen_self_static=no ! 15317: fi ! 15318: fi ! 15319: rm -fr conftest* ! 15320: ! 15321: ! 15322: fi ! 15323: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 15324: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 15325: fi ! 15326: ! 15327: CPPFLAGS="$save_CPPFLAGS" ! 15328: LDFLAGS="$save_LDFLAGS" ! 15329: LIBS="$save_LIBS" ! 15330: ;; ! 15331: esac ! 15332: ! 15333: case $lt_cv_dlopen_self in ! 15334: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 15335: *) enable_dlopen_self=unknown ;; ! 15336: esac ! 15337: ! 15338: case $lt_cv_dlopen_self_static in ! 15339: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 15340: *) enable_dlopen_self_static=unknown ;; ! 15341: esac ! 15342: fi ! 15343: ! 15344: ! 15345: # The else clause should only fire when bootstrapping the ! 15346: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 15347: # with your package, and you will get complaints that there are ! 15348: # no rules to generate ltmain.sh. ! 15349: if test -f "$ltmain"; then ! 15350: # See if we are running on zsh, and set the options which allow our commands through ! 15351: # without removal of \ escapes. ! 15352: if test -n "${ZSH_VERSION+set}" ; then ! 15353: setopt NO_GLOB_SUBST ! 15354: fi ! 15355: # Now quote all the things that may contain metacharacters while being ! 15356: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 15357: # variables and quote the copies for generation of the libtool script. ! 15358: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 15359: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 15360: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 15361: deplibs_check_method reload_flag reload_cmds need_locks \ ! 15362: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 15363: lt_cv_sys_global_symbol_to_c_name_address \ ! 15364: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 15365: old_postinstall_cmds old_postuninstall_cmds \ ! 15366: compiler_CXX \ ! 15367: CC_CXX \ ! 15368: LD_CXX \ ! 15369: lt_prog_compiler_wl_CXX \ ! 15370: lt_prog_compiler_pic_CXX \ ! 15371: lt_prog_compiler_static_CXX \ ! 15372: lt_prog_compiler_no_builtin_flag_CXX \ ! 15373: export_dynamic_flag_spec_CXX \ ! 15374: thread_safe_flag_spec_CXX \ ! 15375: whole_archive_flag_spec_CXX \ ! 15376: enable_shared_with_static_runtimes_CXX \ ! 15377: old_archive_cmds_CXX \ ! 15378: old_archive_from_new_cmds_CXX \ ! 15379: predep_objects_CXX \ ! 15380: postdep_objects_CXX \ ! 15381: predeps_CXX \ ! 15382: postdeps_CXX \ ! 15383: compiler_lib_search_path_CXX \ ! 15384: archive_cmds_CXX \ ! 15385: archive_expsym_cmds_CXX \ ! 15386: postinstall_cmds_CXX \ ! 15387: postuninstall_cmds_CXX \ ! 15388: old_archive_from_expsyms_cmds_CXX \ ! 15389: allow_undefined_flag_CXX \ ! 15390: no_undefined_flag_CXX \ ! 15391: export_symbols_cmds_CXX \ ! 15392: hardcode_libdir_flag_spec_CXX \ ! 15393: hardcode_libdir_flag_spec_ld_CXX \ ! 15394: hardcode_libdir_separator_CXX \ ! 15395: hardcode_automatic_CXX \ ! 15396: module_cmds_CXX \ ! 15397: module_expsym_cmds_CXX \ ! 15398: lt_cv_prog_compiler_c_o_CXX \ ! 15399: exclude_expsyms_CXX \ ! 15400: include_expsyms_CXX; do ! 15401: ! 15402: case $var in ! 15403: old_archive_cmds_CXX | \ ! 15404: old_archive_from_new_cmds_CXX | \ ! 15405: archive_cmds_CXX | \ ! 15406: archive_expsym_cmds_CXX | \ ! 15407: module_cmds_CXX | \ ! 15408: module_expsym_cmds_CXX | \ ! 15409: old_archive_from_expsyms_cmds_CXX | \ ! 15410: export_symbols_cmds_CXX | \ ! 15411: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 15412: postinstall_cmds | postuninstall_cmds | \ ! 15413: old_postinstall_cmds | old_postuninstall_cmds | \ ! 15414: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 15415: # Double-quote double-evaled strings. ! 15416: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 15417: ;; ! 15418: *) ! 15419: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 15420: ;; ! 15421: esac ! 15422: done ! 15423: ! 15424: case $lt_echo in ! 15425: *'\$0 --fallback-echo"') ! 15426: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 15427: ;; ! 15428: esac ! 15429: ! 15430: cfgfile="$ofile" ! 15431: ! 15432: cat <<__EOF__ >> "$cfgfile" ! 15433: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 15434: ! 15435: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 15436: ! 15437: # Shell to use when invoking shell scripts. ! 15438: SHELL=$lt_SHELL ! 15439: ! 15440: # Whether or not to build shared libraries. ! 15441: build_libtool_libs=$enable_shared ! 15442: ! 15443: # Whether or not to build static libraries. ! 15444: build_old_libs=$enable_static ! 15445: ! 15446: # Whether or not to add -lc for building shared libraries. ! 15447: build_libtool_need_lc=$archive_cmds_need_lc_CXX ! 15448: ! 15449: # Whether or not to disallow shared libs when runtime libs are static ! 15450: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX ! 15451: ! 15452: # Whether or not to optimize for fast installation. ! 15453: fast_install=$enable_fast_install ! 15454: ! 15455: # The host system. ! 15456: host_alias=$host_alias ! 15457: host=$host ! 15458: ! 15459: # An echo program that does not interpret backslashes. ! 15460: echo=$lt_echo ! 15461: ! 15462: # The archiver. ! 15463: AR=$lt_AR ! 15464: AR_FLAGS=$lt_AR_FLAGS ! 15465: ! 15466: # A C compiler. ! 15467: LTCC=$lt_LTCC ! 15468: ! 15469: # A language-specific compiler. ! 15470: CC=$lt_compiler_CXX ! 15471: ! 15472: # Is the compiler the GNU C compiler? ! 15473: with_gcc=$GCC_CXX ! 15474: ! 15475: # An ERE matcher. ! 15476: EGREP=$lt_EGREP ! 15477: ! 15478: # The linker used to build libraries. ! 15479: LD=$lt_LD_CXX ! 15480: ! 15481: # Whether we need hard or soft links. ! 15482: LN_S=$lt_LN_S ! 15483: ! 15484: # A BSD-compatible nm program. ! 15485: NM=$lt_NM ! 15486: ! 15487: # A symbol stripping program ! 15488: STRIP=$STRIP ! 15489: ! 15490: # Used to examine libraries when file_magic_cmd begins "file" ! 15491: MAGIC_CMD=$MAGIC_CMD ! 15492: ! 15493: # Used on cygwin: DLL creation program. ! 15494: DLLTOOL="$DLLTOOL" ! 15495: ! 15496: # Used on cygwin: object dumper. ! 15497: OBJDUMP="$OBJDUMP" ! 15498: ! 15499: # Used on cygwin: assembler. ! 15500: AS="$AS" ! 15501: ! 15502: # The name of the directory that contains temporary libtool files. ! 15503: objdir=$objdir ! 15504: ! 15505: # How to create reloadable object files. ! 15506: reload_flag=$lt_reload_flag ! 15507: reload_cmds=$lt_reload_cmds ! 15508: ! 15509: # How to pass a linker flag through the compiler. ! 15510: wl=$lt_lt_prog_compiler_wl_CXX ! 15511: ! 15512: # Object file suffix (normally "o"). ! 15513: objext="$ac_objext" ! 15514: ! 15515: # Old archive suffix (normally "a"). ! 15516: libext="$libext" ! 15517: ! 15518: # Shared library suffix (normally ".so"). ! 15519: shrext='$shrext' ! 15520: ! 15521: # Executable file suffix (normally ""). ! 15522: exeext="$exeext" ! 15523: ! 15524: # Additional compiler flags for building library objects. ! 15525: pic_flag=$lt_lt_prog_compiler_pic_CXX ! 15526: pic_mode=$pic_mode ! 15527: ! 15528: # What is the maximum length of a command? ! 15529: max_cmd_len=$lt_cv_sys_max_cmd_len ! 15530: ! 15531: # Does compiler simultaneously support -c and -o options? ! 15532: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX ! 15533: ! 15534: # Must we lock files when doing compilation ? ! 15535: need_locks=$lt_need_locks ! 15536: ! 15537: # Do we need the lib prefix for modules? ! 15538: need_lib_prefix=$need_lib_prefix ! 15539: ! 15540: # Do we need a version for libraries? ! 15541: need_version=$need_version ! 15542: ! 15543: # Whether dlopen is supported. ! 15544: dlopen_support=$enable_dlopen ! 15545: ! 15546: # Whether dlopen of programs is supported. ! 15547: dlopen_self=$enable_dlopen_self ! 15548: ! 15549: # Whether dlopen of statically linked programs is supported. ! 15550: dlopen_self_static=$enable_dlopen_self_static ! 15551: ! 15552: # Compiler flag to prevent dynamic linking. ! 15553: link_static_flag=$lt_lt_prog_compiler_static_CXX ! 15554: ! 15555: # Compiler flag to turn off builtin functions. ! 15556: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX ! 15557: ! 15558: # Compiler flag to allow reflexive dlopens. ! 15559: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX ! 15560: ! 15561: # Compiler flag to generate shared objects directly from archives. ! 15562: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX ! 15563: ! 15564: # Compiler flag to generate thread-safe objects. ! 15565: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX ! 15566: ! 15567: # Library versioning type. ! 15568: version_type=$version_type ! 15569: ! 15570: # Format of library name prefix. ! 15571: libname_spec=$lt_libname_spec ! 15572: ! 15573: # List of archive names. First name is the real one, the rest are links. ! 15574: # The last name is the one that the linker finds with -lNAME. ! 15575: library_names_spec=$lt_library_names_spec ! 15576: ! 15577: # The coded name of the library, if different from the real name. ! 15578: soname_spec=$lt_soname_spec ! 15579: ! 15580: # Commands used to build and install an old-style archive. ! 15581: RANLIB=$lt_RANLIB ! 15582: old_archive_cmds=$lt_old_archive_cmds_CXX ! 15583: old_postinstall_cmds=$lt_old_postinstall_cmds ! 15584: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 15585: ! 15586: # Create an old-style archive from a shared archive. ! 15587: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX ! 15588: ! 15589: # Create a temporary old-style archive to link instead of a shared archive. ! 15590: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX ! 15591: ! 15592: # Commands used to build and install a shared archive. ! 15593: archive_cmds=$lt_archive_cmds_CXX ! 15594: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX ! 15595: postinstall_cmds=$lt_postinstall_cmds ! 15596: postuninstall_cmds=$lt_postuninstall_cmds ! 15597: ! 15598: # Commands used to build a loadable module (assumed same as above if empty) ! 15599: module_cmds=$lt_module_cmds_CXX ! 15600: module_expsym_cmds=$lt_module_expsym_cmds_CXX ! 15601: ! 15602: # Commands to strip libraries. ! 15603: old_striplib=$lt_old_striplib ! 15604: striplib=$lt_striplib ! 15605: ! 15606: # Dependencies to place before the objects being linked to create a ! 15607: # shared library. ! 15608: predep_objects=$lt_predep_objects_CXX ! 15609: ! 15610: # Dependencies to place after the objects being linked to create a ! 15611: # shared library. ! 15612: postdep_objects=$lt_postdep_objects_CXX ! 15613: ! 15614: # Dependencies to place before the objects being linked to create a ! 15615: # shared library. ! 15616: predeps=$lt_predeps_CXX ! 15617: ! 15618: # Dependencies to place after the objects being linked to create a ! 15619: # shared library. ! 15620: postdeps=$lt_postdeps_CXX ! 15621: ! 15622: # The library search path used internally by the compiler when linking ! 15623: # a shared library. ! 15624: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX ! 15625: ! 15626: # Method to check whether dependent libraries are shared objects. ! 15627: deplibs_check_method=$lt_deplibs_check_method ! 15628: ! 15629: # Command to use when deplibs_check_method == file_magic. ! 15630: file_magic_cmd=$lt_file_magic_cmd ! 15631: ! 15632: # Flag that allows shared libraries with undefined symbols to be built. ! 15633: allow_undefined_flag=$lt_allow_undefined_flag_CXX ! 15634: ! 15635: # Flag that forces no undefined symbols. ! 15636: no_undefined_flag=$lt_no_undefined_flag_CXX ! 15637: ! 15638: # Commands used to finish a libtool library installation in a directory. ! 15639: finish_cmds=$lt_finish_cmds ! 15640: ! 15641: # Same as above, but a single script fragment to be evaled but not shown. ! 15642: finish_eval=$lt_finish_eval ! 15643: ! 15644: # Take the output of nm and produce a listing of raw symbols and C names. ! 15645: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 15646: ! 15647: # Transform the output of nm in a proper C declaration ! 15648: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 15649: ! 15650: # Transform the output of nm in a C name address pair ! 15651: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 15652: ! 15653: # This is the shared library runtime path variable. ! 15654: runpath_var=$runpath_var ! 15655: ! 15656: # This is the shared library path variable. ! 15657: shlibpath_var=$shlibpath_var ! 15658: ! 15659: # Is shlibpath searched before the hard-coded library search path? ! 15660: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 15661: ! 15662: # How to hardcode a shared library path into an executable. ! 15663: hardcode_action=$hardcode_action_CXX ! 15664: ! 15665: # Whether we should hardcode library paths into libraries. ! 15666: hardcode_into_libs=$hardcode_into_libs ! 15667: ! 15668: # Flag to hardcode \$libdir into a binary during linking. ! 15669: # This must work even if \$libdir does not exist. ! 15670: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX ! 15671: ! 15672: # If ld is used when linking, flag to hardcode \$libdir into ! 15673: # a binary during linking. This must work even if \$libdir does ! 15674: # not exist. ! 15675: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX ! 15676: ! 15677: # Whether we need a single -rpath flag with a separated argument. ! 15678: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX ! 15679: ! 15680: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 15681: # resulting binary. ! 15682: hardcode_direct=$hardcode_direct_CXX ! 15683: ! 15684: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 15685: # resulting binary. ! 15686: hardcode_minus_L=$hardcode_minus_L_CXX ! 15687: ! 15688: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 15689: # the resulting binary. ! 15690: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX ! 15691: ! 15692: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 15693: # and all subsequent libraries and executables linked against it. ! 15694: hardcode_automatic=$hardcode_automatic_CXX ! 15695: ! 15696: # Variables whose values should be saved in libtool wrapper scripts and ! 15697: # restored at relink time. ! 15698: variables_saved_for_relink="$variables_saved_for_relink" ! 15699: ! 15700: # Whether libtool must link a program against all its dependency libraries. ! 15701: link_all_deplibs=$link_all_deplibs_CXX ! 15702: ! 15703: # Compile-time system search path for libraries ! 15704: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 15705: ! 15706: # Run-time system search path for libraries ! 15707: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 15708: ! 15709: # Fix the shell variable \$srcfile for the compiler. ! 15710: fix_srcfile_path="$fix_srcfile_path_CXX" ! 15711: ! 15712: # Set to yes if exported symbols are required. ! 15713: always_export_symbols=$always_export_symbols_CXX ! 15714: ! 15715: # The commands to list exported symbols. ! 15716: export_symbols_cmds=$lt_export_symbols_cmds_CXX ! 15717: ! 15718: # The commands to extract the exported symbol list from a shared archive. ! 15719: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 15720: ! 15721: # Symbols that should not be listed in the preloaded symbols. ! 15722: exclude_expsyms=$lt_exclude_expsyms_CXX ! 15723: ! 15724: # Symbols that must always be exported. ! 15725: include_expsyms=$lt_include_expsyms_CXX ! 15726: ! 15727: # ### END LIBTOOL TAG CONFIG: $tagname ! 15728: ! 15729: __EOF__ ! 15730: ! 15731: ! 15732: else ! 15733: # If there is no Makefile yet, we rely on a make rule to execute ! 15734: # `config.status --recheck' to rerun these tests and create the ! 15735: # libtool script then. ! 15736: test -f Makefile && make "$ltmain" ! 15737: fi ! 15738: ! 15739: ! 15740: ac_ext=c ! 15741: ac_cpp='$CPP $CPPFLAGS' ! 15742: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 15743: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 15744: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 15745: ! 15746: CC=$lt_save_CC ! 15747: LDCXX=$LD ! 15748: LD=$lt_save_LD ! 15749: GCC=$lt_save_GCC ! 15750: with_gnu_ldcxx=$with_gnu_ld ! 15751: with_gnu_ld=$lt_save_with_gnu_ld ! 15752: lt_cv_path_LDCXX=$lt_cv_path_LD ! 15753: lt_cv_path_LD=$lt_save_path_LD ! 15754: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld ! 15755: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ! 15756: ! 15757: else ! 15758: tagname="" ! 15759: fi ! 15760: ;; ! 15761: ! 15762: F77) ! 15763: if test -n "$F77" && test "X$F77" != "Xno"; then ! 15764: ! 15765: ac_ext=f ! 15766: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! 15767: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 15768: ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! 15769: ! 15770: ! 15771: archive_cmds_need_lc_F77=no ! 15772: allow_undefined_flag_F77= ! 15773: always_export_symbols_F77=no ! 15774: archive_expsym_cmds_F77= ! 15775: export_dynamic_flag_spec_F77= ! 15776: hardcode_direct_F77=no ! 15777: hardcode_libdir_flag_spec_F77= ! 15778: hardcode_libdir_flag_spec_ld_F77= ! 15779: hardcode_libdir_separator_F77= ! 15780: hardcode_minus_L_F77=no ! 15781: hardcode_automatic_F77=no ! 15782: module_cmds_F77= ! 15783: module_expsym_cmds_F77= ! 15784: link_all_deplibs_F77=unknown ! 15785: old_archive_cmds_F77=$old_archive_cmds ! 15786: no_undefined_flag_F77= ! 15787: whole_archive_flag_spec_F77= ! 15788: enable_shared_with_static_runtimes_F77=no ! 15789: ! 15790: # Source file extension for f77 test sources. ! 15791: ac_ext=f ! 15792: ! 15793: # Object file extension for compiled f77 test sources. ! 15794: objext=o ! 15795: objext_F77=$objext ! 15796: ! 15797: # Code to be used in simple compile tests ! 15798: lt_simple_compile_test_code=" subroutine t\n return\n end\n" ! 15799: ! 15800: # Code to be used in simple link tests ! 15801: lt_simple_link_test_code=" program t\n end\n" ! 15802: ! 15803: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 15804: ! 15805: # If no C compiler was specified, use CC. ! 15806: LTCC=${LTCC-"$CC"} ! 15807: ! 15808: # Allow CC to be a program name with arguments. ! 15809: compiler=$CC ! 15810: ! 15811: ! 15812: # Allow CC to be a program name with arguments. ! 15813: lt_save_CC="$CC" ! 15814: CC=${F77-"f77"} ! 15815: compiler=$CC ! 15816: compiler_F77=$CC ! 15817: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` ! 15818: ! 15819: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ! 15820: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 ! 15821: echo "$as_me:$LINENO: result: $can_build_shared" >&5 ! 15822: echo "${ECHO_T}$can_build_shared" >&6 ! 15823: ! 15824: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ! 15825: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 ! 15826: test "$can_build_shared" = "no" && enable_shared=no ! 15827: ! 15828: # On AIX, shared libraries and static libraries use the same namespace, and ! 15829: # are all built from PIC. ! 15830: case "$host_os" in ! 15831: aix3*) ! 15832: test "$enable_shared" = yes && enable_static=no ! 15833: if test -n "$RANLIB"; then ! 15834: archive_cmds="$archive_cmds~\$RANLIB \$lib" ! 15835: postinstall_cmds='$RANLIB $lib' ! 15836: fi ! 15837: ;; ! 15838: aix4*) ! 15839: test "$enable_shared" = yes && enable_static=no ! 15840: ;; ! 15841: esac ! 15842: echo "$as_me:$LINENO: result: $enable_shared" >&5 ! 15843: echo "${ECHO_T}$enable_shared" >&6 ! 15844: ! 15845: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ! 15846: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 ! 15847: # Make sure either enable_shared or enable_static is yes. ! 15848: test "$enable_shared" = yes || enable_static=yes ! 15849: echo "$as_me:$LINENO: result: $enable_static" >&5 ! 15850: echo "${ECHO_T}$enable_static" >&6 ! 15851: ! 15852: test "$ld_shlibs_F77" = no && can_build_shared=no ! 15853: ! 15854: GCC_F77="$G77" ! 15855: LD_F77="$LD" ! 15856: ! 15857: lt_prog_compiler_wl_F77= ! 15858: lt_prog_compiler_pic_F77= ! 15859: lt_prog_compiler_static_F77= ! 15860: ! 15861: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 15862: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 15863: ! 15864: if test "$GCC" = yes; then ! 15865: lt_prog_compiler_wl_F77='-Wl,' ! 15866: lt_prog_compiler_static_F77='-static' ! 15867: ! 15868: case $host_os in ! 15869: aix*) ! 15870: # All AIX code is PIC. ! 15871: if test "$host_cpu" = ia64; then ! 15872: # AIX 5 now supports IA64 processor ! 15873: lt_prog_compiler_static_F77='-Bstatic' ! 15874: fi ! 15875: ;; ! 15876: ! 15877: amigaos*) ! 15878: # FIXME: we need at least 68020 code to build shared libraries, but ! 15879: # adding the `-m68020' flag to GCC prevents building anything better, ! 15880: # like `-m68040'. ! 15881: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ! 15882: ;; ! 15883: ! 15884: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 15885: # PIC is the default for these OSes. ! 15886: ;; ! 15887: ! 15888: mingw* | pw32* | os2*) ! 15889: # This hack is so that the source file can tell whether it is being ! 15890: # built for inclusion in a dll (and should export symbols for example). ! 15891: lt_prog_compiler_pic_F77='-DDLL_EXPORT' ! 15892: ;; ! 15893: ! 15894: darwin* | rhapsody*) ! 15895: # PIC is the default on this platform ! 15896: # Common symbols not allowed in MH_DYLIB files ! 15897: lt_prog_compiler_pic_F77='-fno-common' ! 15898: ;; ! 15899: ! 15900: msdosdjgpp*) ! 15901: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 15902: # on systems that don't support them. ! 15903: lt_prog_compiler_can_build_shared_F77=no ! 15904: enable_shared=no ! 15905: ;; ! 15906: ! 15907: sysv4*MP*) ! 15908: if test -d /usr/nec; then ! 15909: lt_prog_compiler_pic_F77=-Kconform_pic ! 15910: fi ! 15911: ;; ! 15912: ! 15913: hpux*) ! 15914: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 15915: # not for PA HP-UX. ! 15916: case "$host_cpu" in ! 15917: hppa*64*|ia64*) ! 15918: # +Z the default ! 15919: ;; ! 15920: *) ! 15921: lt_prog_compiler_pic_F77='-fPIC' ! 15922: ;; ! 15923: esac ! 15924: ;; ! 15925: ! 15926: *) ! 15927: lt_prog_compiler_pic_F77='-fPIC' ! 15928: ;; ! 15929: esac ! 15930: else ! 15931: # PORTME Check for flag to pass linker flags through the system compiler. ! 15932: case $host_os in ! 15933: aix*) ! 15934: lt_prog_compiler_wl_F77='-Wl,' ! 15935: if test "$host_cpu" = ia64; then ! 15936: # AIX 5 now supports IA64 processor ! 15937: lt_prog_compiler_static_F77='-Bstatic' ! 15938: else ! 15939: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' ! 15940: fi ! 15941: ;; ! 15942: ! 15943: mingw* | pw32* | os2*) ! 15944: # This hack is so that the source file can tell whether it is being ! 15945: # built for inclusion in a dll (and should export symbols for example). ! 15946: lt_prog_compiler_pic_F77='-DDLL_EXPORT' ! 15947: ;; ! 15948: ! 15949: hpux9* | hpux10* | hpux11*) ! 15950: lt_prog_compiler_wl_F77='-Wl,' ! 15951: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 15952: # not for PA HP-UX. ! 15953: case "$host_cpu" in ! 15954: hppa*64*|ia64*) ! 15955: # +Z the default ! 15956: ;; ! 15957: *) ! 15958: lt_prog_compiler_pic_F77='+Z' ! 15959: ;; ! 15960: esac ! 15961: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 15962: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ! 15963: ;; ! 15964: ! 15965: irix5* | irix6* | nonstopux*) ! 15966: lt_prog_compiler_wl_F77='-Wl,' ! 15967: # PIC (with -KPIC) is the default. ! 15968: lt_prog_compiler_static_F77='-non_shared' ! 15969: ;; ! 15970: ! 15971: newsos6) ! 15972: lt_prog_compiler_pic_F77='-KPIC' ! 15973: lt_prog_compiler_static_F77='-Bstatic' ! 15974: ;; ! 15975: ! 15976: linux*) ! 15977: case $CC in ! 15978: icc|ecc) ! 15979: lt_prog_compiler_wl_F77='-Wl,' ! 15980: lt_prog_compiler_pic_F77='-KPIC' ! 15981: lt_prog_compiler_static_F77='-static' ! 15982: ;; ! 15983: ccc) ! 15984: lt_prog_compiler_wl_F77='-Wl,' ! 15985: # All Alpha code is PIC. ! 15986: lt_prog_compiler_static_F77='-non_shared' ! 15987: ;; ! 15988: esac ! 15989: ;; ! 15990: ! 15991: osf3* | osf4* | osf5*) ! 15992: lt_prog_compiler_wl_F77='-Wl,' ! 15993: # All OSF/1 code is PIC. ! 15994: lt_prog_compiler_static_F77='-non_shared' ! 15995: ;; ! 15996: ! 15997: sco3.2v5*) ! 15998: lt_prog_compiler_pic_F77='-Kpic' ! 15999: lt_prog_compiler_static_F77='-dn' ! 16000: ;; ! 16001: ! 16002: solaris*) ! 16003: lt_prog_compiler_wl_F77='-Wl,' ! 16004: lt_prog_compiler_pic_F77='-KPIC' ! 16005: lt_prog_compiler_static_F77='-Bstatic' ! 16006: ;; ! 16007: ! 16008: sunos4*) ! 16009: lt_prog_compiler_wl_F77='-Qoption ld ' ! 16010: lt_prog_compiler_pic_F77='-PIC' ! 16011: lt_prog_compiler_static_F77='-Bstatic' ! 16012: ;; ! 16013: ! 16014: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 16015: lt_prog_compiler_wl_F77='-Wl,' ! 16016: lt_prog_compiler_pic_F77='-KPIC' ! 16017: lt_prog_compiler_static_F77='-Bstatic' ! 16018: ;; ! 16019: ! 16020: sysv4*MP*) ! 16021: if test -d /usr/nec ;then ! 16022: lt_prog_compiler_pic_F77='-Kconform_pic' ! 16023: lt_prog_compiler_static_F77='-Bstatic' ! 16024: fi ! 16025: ;; ! 16026: ! 16027: uts4*) ! 16028: lt_prog_compiler_pic_F77='-pic' ! 16029: lt_prog_compiler_static_F77='-Bstatic' ! 16030: ;; ! 16031: ! 16032: *) ! 16033: lt_prog_compiler_can_build_shared_F77=no ! 16034: ;; ! 16035: esac ! 16036: fi ! 16037: ! 16038: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 ! 16039: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 ! 16040: ! 16041: # ! 16042: # Check to make sure the PIC flag actually works. ! 16043: # ! 16044: if test -n "$lt_prog_compiler_pic_F77"; then ! 16045: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 ! 16046: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 ! 16047: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then ! 16048: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 16049: else ! 16050: lt_prog_compiler_pic_works_F77=no ! 16051: ac_outfile=conftest.$ac_objext ! 16052: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 16053: lt_compiler_flag="$lt_prog_compiler_pic_F77" ! 16054: # Insert the option either (1) after the last *FLAGS variable, or ! 16055: # (2) before a word containing "conftest.", or (3) at the end. ! 16056: # Note that $ac_compile itself does not contain backslashes and begins ! 16057: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 16058: # The option is referenced via a variable to avoid confusing sed. ! 16059: lt_compile=`echo "$ac_compile" | $SED \ ! 16060: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 16061: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 16062: -e 's:$: $lt_compiler_flag:'` ! 16063: (eval echo "\"\$as_me:16063: $lt_compile\"" >&5) ! 16064: (eval "$lt_compile" 2>conftest.err) ! 16065: ac_status=$? ! 16066: cat conftest.err >&5 ! 16067: echo "$as_me:16067: \$? = $ac_status" >&5 ! 16068: if (exit $ac_status) && test -s "$ac_outfile"; then ! 16069: # The compiler can only warn and ignore the option if not recognized ! 16070: # So say no if there are warnings ! 16071: if test ! -s conftest.err; then ! 16072: lt_prog_compiler_pic_works_F77=yes ! 16073: fi ! 16074: fi ! 16075: $rm conftest* ! 16076: ! 16077: fi ! 16078: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 ! 16079: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 ! 16080: ! 16081: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then ! 16082: case $lt_prog_compiler_pic_F77 in ! 16083: "" | " "*) ;; ! 16084: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; ! 16085: esac ! 16086: else ! 16087: lt_prog_compiler_pic_F77= ! 16088: lt_prog_compiler_can_build_shared_F77=no ! 16089: fi ! 16090: ! 16091: fi ! 16092: case "$host_os" in ! 16093: # For platforms which do not support PIC, -DPIC is meaningless: ! 16094: *djgpp*) ! 16095: lt_prog_compiler_pic_F77= ! 16096: ;; ! 16097: *) ! 16098: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ! 16099: ;; ! 16100: esac ! 16101: ! 16102: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 16103: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 16104: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ! 16105: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 16106: else ! 16107: lt_cv_prog_compiler_c_o_F77=no ! 16108: $rm -r conftest 2>/dev/null ! 16109: mkdir conftest ! 16110: cd conftest ! 16111: mkdir out ! 16112: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 16113: ! 16114: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 16115: # that will create temporary files in the current directory regardless of ! 16116: # the output directory. Thus, making CWD read-only will cause this test ! 16117: # to fail, enabling locking or at least warning the user not to do parallel ! 16118: # builds. ! 16119: chmod -w . ! 16120: ! 16121: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 16122: # Insert the option either (1) after the last *FLAGS variable, or ! 16123: # (2) before a word containing "conftest.", or (3) at the end. ! 16124: # Note that $ac_compile itself does not contain backslashes and begins ! 16125: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 16126: lt_compile=`echo "$ac_compile" | $SED \ ! 16127: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 16128: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 16129: -e 's:$: $lt_compiler_flag:'` ! 16130: (eval echo "\"\$as_me:16130: $lt_compile\"" >&5) ! 16131: (eval "$lt_compile" 2>out/conftest.err) ! 16132: ac_status=$? ! 16133: cat out/conftest.err >&5 ! 16134: echo "$as_me:16134: \$? = $ac_status" >&5 ! 16135: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 16136: then ! 16137: # The compiler can only warn and ignore the option if not recognized ! 16138: # So say no if there are warnings ! 16139: if test ! -s out/conftest.err; then ! 16140: lt_cv_prog_compiler_c_o_F77=yes ! 16141: fi ! 16142: fi ! 16143: chmod u+w . ! 16144: $rm conftest* out/* ! 16145: rmdir out ! 16146: cd .. ! 16147: rmdir conftest ! 16148: $rm conftest* ! 16149: ! 16150: fi ! 16151: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ! 16152: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 ! 16153: ! 16154: ! 16155: hard_links="nottested" ! 16156: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then ! 16157: # do not overwrite the value of need_locks provided by the user ! 16158: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 16159: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 16160: hard_links=yes ! 16161: $rm conftest* ! 16162: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 16163: touch conftest.a ! 16164: ln conftest.a conftest.b 2>&5 || hard_links=no ! 16165: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 16166: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 16167: echo "${ECHO_T}$hard_links" >&6 ! 16168: if test "$hard_links" = no; then ! 16169: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 16170: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 16171: need_locks=warn ! 16172: fi ! 16173: else ! 16174: need_locks=no ! 16175: fi ! 16176: ! 16177: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 16178: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 16179: ! 16180: runpath_var= ! 16181: allow_undefined_flag_F77= ! 16182: enable_shared_with_static_runtimes_F77=no ! 16183: archive_cmds_F77= ! 16184: archive_expsym_cmds_F77= ! 16185: old_archive_From_new_cmds_F77= ! 16186: old_archive_from_expsyms_cmds_F77= ! 16187: export_dynamic_flag_spec_F77= ! 16188: whole_archive_flag_spec_F77= ! 16189: thread_safe_flag_spec_F77= ! 16190: hardcode_libdir_flag_spec_F77= ! 16191: hardcode_libdir_flag_spec_ld_F77= ! 16192: hardcode_libdir_separator_F77= ! 16193: hardcode_direct_F77=no ! 16194: hardcode_minus_L_F77=no ! 16195: hardcode_shlibpath_var_F77=unsupported ! 16196: link_all_deplibs_F77=unknown ! 16197: hardcode_automatic_F77=no ! 16198: module_cmds_F77= ! 16199: module_expsym_cmds_F77= ! 16200: always_export_symbols_F77=no ! 16201: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 16202: # include_expsyms should be a list of space-separated symbols to be *always* ! 16203: # included in the symbol list ! 16204: include_expsyms_F77= ! 16205: # exclude_expsyms can be an extended regexp of symbols to exclude ! 16206: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 16207: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 16208: # as well as any symbol that contains `d'. ! 16209: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" ! 16210: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 16211: # platforms (ab)use it in PIC code, but their linkers get confused if ! 16212: # the symbol is explicitly referenced. Since portable code cannot ! 16213: # rely on this symbol name, it's probably fine to never include it in ! 16214: # preloaded symbol tables. ! 16215: extract_expsyms_cmds= ! 16216: ! 16217: case $host_os in ! 16218: cygwin* | mingw* | pw32*) ! 16219: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 16220: # When not using gcc, we currently assume that we are using ! 16221: # Microsoft Visual C++. ! 16222: if test "$GCC" != yes; then ! 16223: with_gnu_ld=no ! 16224: fi ! 16225: ;; ! 16226: openbsd*) ! 16227: with_gnu_ld=no ! 16228: ;; ! 16229: esac ! 16230: ! 16231: ld_shlibs_F77=yes ! 16232: if test "$with_gnu_ld" = yes; then ! 16233: # If archive_cmds runs LD, not CC, wlarc should be empty ! 16234: wlarc='${wl}' ! 16235: ! 16236: # See if GNU ld supports shared libraries. ! 16237: case $host_os in ! 16238: aix3* | aix4* | aix5*) ! 16239: # On AIX/PPC, the GNU linker is very broken ! 16240: if test "$host_cpu" != ia64; then ! 16241: ld_shlibs_F77=no ! 16242: cat <<EOF 1>&2 ! 16243: ! 16244: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 16245: *** to be unable to reliably create shared libraries on AIX. ! 16246: *** Therefore, libtool is disabling shared libraries support. If you ! 16247: *** really care for shared libraries, you may want to modify your PATH ! 16248: *** so that a non-GNU linker is found, and then restart. ! 16249: ! 16250: EOF ! 16251: fi ! 16252: ;; ! 16253: ! 16254: amigaos*) ! 16255: 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)' ! 16256: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16257: hardcode_minus_L_F77=yes ! 16258: ! 16259: # Samuel A. Falvo II <[email protected]> reports ! 16260: # that the semantics of dynamic libraries on AmigaOS, at least up ! 16261: # to version 4, is to share data among multiple programs linked ! 16262: # with the same dynamic library. Since this doesn't match the ! 16263: # behavior of shared libraries on other platforms, we can't use ! 16264: # them. ! 16265: ld_shlibs_F77=no ! 16266: ;; ! 16267: ! 16268: beos*) ! 16269: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 16270: allow_undefined_flag_F77=unsupported ! 16271: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 16272: # support --undefined. This deserves some investigation. FIXME ! 16273: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 16274: else ! 16275: ld_shlibs_F77=no ! 16276: fi ! 16277: ;; ! 16278: ! 16279: cygwin* | mingw* | pw32*) ! 16280: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, ! 16281: # as there is no search path for DLLs. ! 16282: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16283: allow_undefined_flag_F77=unsupported ! 16284: always_export_symbols_F77=no ! 16285: enable_shared_with_static_runtimes_F77=yes ! 16286: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 16287: ! 16288: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 16289: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 16290: # If the export-symbols file already is a .def file (1st line ! 16291: # is EXPORTS), use it as is; otherwise, prepend... ! 16292: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 16293: cp $export_symbols $output_objdir/$soname.def; ! 16294: else ! 16295: echo EXPORTS > $output_objdir/$soname.def; ! 16296: cat $export_symbols >> $output_objdir/$soname.def; ! 16297: fi~ ! 16298: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 16299: else ! 16300: ld_shlibs=no ! 16301: fi ! 16302: ;; ! 16303: ! 16304: netbsd*) ! 16305: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 16306: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 16307: wlarc= ! 16308: else ! 16309: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 16310: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 16311: fi ! 16312: ;; ! 16313: ! 16314: solaris* | sysv5*) ! 16315: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 16316: ld_shlibs_F77=no ! 16317: cat <<EOF 1>&2 ! 16318: ! 16319: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 16320: *** create shared libraries on Solaris systems. Therefore, libtool ! 16321: *** is disabling shared libraries support. We urge you to upgrade GNU ! 16322: *** binutils to release 2.9.1 or newer. Another option is to modify ! 16323: *** your PATH or compiler configuration so that the native linker is ! 16324: *** used, and then restart. ! 16325: ! 16326: EOF ! 16327: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 16328: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 16329: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 16330: else ! 16331: ld_shlibs_F77=no ! 16332: fi ! 16333: ;; ! 16334: ! 16335: sunos4*) ! 16336: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 16337: wlarc= ! 16338: hardcode_direct_F77=yes ! 16339: hardcode_shlibpath_var_F77=no ! 16340: ;; ! 16341: ! 16342: *) ! 16343: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 16344: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 16345: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 16346: else ! 16347: ld_shlibs_F77=no ! 16348: fi ! 16349: ;; ! 16350: esac ! 16351: ! 16352: if test "$ld_shlibs_F77" = yes; then ! 16353: runpath_var=LD_RUN_PATH ! 16354: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' ! 16355: export_dynamic_flag_spec_F77='${wl}--export-dynamic' ! 16356: # ancient GNU ld didn't support --whole-archive et. al. ! 16357: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 16358: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 16359: else ! 16360: whole_archive_flag_spec_F77= ! 16361: fi ! 16362: fi ! 16363: else ! 16364: # PORTME fill in a description of your system's linker (not GNU ld) ! 16365: case $host_os in ! 16366: aix3*) ! 16367: allow_undefined_flag_F77=unsupported ! 16368: always_export_symbols_F77=yes ! 16369: 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' ! 16370: # Note: this linker hardcodes the directories in LIBPATH if there ! 16371: # are no directories specified by -L. ! 16372: hardcode_minus_L_F77=yes ! 16373: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 16374: # Neither direct hardcoding nor static linking is supported with a ! 16375: # broken collect2. ! 16376: hardcode_direct_F77=unsupported ! 16377: fi ! 16378: ;; ! 16379: ! 16380: aix4* | aix5*) ! 16381: if test "$host_cpu" = ia64; then ! 16382: # On IA64, the linker does run time linking by default, so we don't ! 16383: # have to do anything special. ! 16384: aix_use_runtimelinking=no ! 16385: exp_sym_flag='-Bexport' ! 16386: no_entry_flag="" ! 16387: else ! 16388: # If we're using GNU nm, then we don't want the "-C" option. ! 16389: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 16390: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 16391: 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' ! 16392: else ! 16393: 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' ! 16394: fi ! 16395: aix_use_runtimelinking=no ! 16396: ! 16397: # Test if we are trying to use run time linking or normal ! 16398: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 16399: # need to do runtime linking. ! 16400: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 16401: for ld_flag in $LDFLAGS; do ! 16402: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 16403: aix_use_runtimelinking=yes ! 16404: break ! 16405: fi ! 16406: done ! 16407: esac ! 16408: ! 16409: exp_sym_flag='-bexport' ! 16410: no_entry_flag='-bnoentry' ! 16411: fi ! 16412: ! 16413: # When large executables or shared objects are built, AIX ld can ! 16414: # have problems creating the table of contents. If linking a library ! 16415: # or program results in "error TOC overflow" add -mminimal-toc to ! 16416: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 16417: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 16418: ! 16419: archive_cmds_F77='' ! 16420: hardcode_direct_F77=yes ! 16421: hardcode_libdir_separator_F77=':' ! 16422: link_all_deplibs_F77=yes ! 16423: ! 16424: if test "$GCC" = yes; then ! 16425: case $host_os in aix4.012|aix4.012.*) ! 16426: # We only want to do this on AIX 4.2 and lower, the check ! 16427: # below for broken collect2 doesn't work under 4.3+ ! 16428: collect2name=`${CC} -print-prog-name=collect2` ! 16429: if test -f "$collect2name" && \ ! 16430: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 16431: then ! 16432: # We have reworked collect2 ! 16433: hardcode_direct_F77=yes ! 16434: else ! 16435: # We have old collect2 ! 16436: hardcode_direct_F77=unsupported ! 16437: # It fails to find uninstalled libraries when the uninstalled ! 16438: # path is not listed in the libpath. Setting hardcode_minus_L ! 16439: # to unsupported forces relinking ! 16440: hardcode_minus_L_F77=yes ! 16441: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16442: hardcode_libdir_separator_F77= ! 16443: fi ! 16444: esac ! 16445: shared_flag='-shared' ! 16446: else ! 16447: # not using gcc ! 16448: if test "$host_cpu" = ia64; then ! 16449: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 16450: # chokes on -Wl,-G. The following line is correct: ! 16451: shared_flag='-G' ! 16452: else ! 16453: if test "$aix_use_runtimelinking" = yes; then ! 16454: shared_flag='${wl}-G' ! 16455: else ! 16456: shared_flag='${wl}-bM:SRE' ! 16457: fi ! 16458: fi ! 16459: fi ! 16460: ! 16461: # It seems that -bexpall does not export symbols beginning with ! 16462: # underscore (_), so it is better to generate a list of symbols to export. ! 16463: always_export_symbols_F77=yes ! 16464: if test "$aix_use_runtimelinking" = yes; then ! 16465: # Warning - without using the other runtime loading flags (-brtl), ! 16466: # -berok will link without error, but may produce a broken library. ! 16467: allow_undefined_flag_F77='-berok' ! 16468: # Determine the default libpath from the value encoded in an empty executable. ! 16469: cat >conftest.$ac_ext <<_ACEOF ! 16470: program main ! 16471: ! 16472: end ! 16473: _ACEOF ! 16474: rm -f conftest.$ac_objext conftest$ac_exeext ! 16475: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 16476: (eval $ac_link) 2>&5 ! 16477: ac_status=$? ! 16478: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16479: (exit $ac_status); } && ! 16480: { ac_try='test -s conftest$ac_exeext' ! 16481: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 16482: (eval $ac_try) 2>&5 ! 16483: ac_status=$? ! 16484: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16485: (exit $ac_status); }; }; then ! 16486: ! 16487: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 16488: }'` ! 16489: # Check for a 64-bit object if we didn't find anything. ! 16490: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 16491: }'`; fi ! 16492: else ! 16493: echo "$as_me: failed program was:" >&5 ! 16494: sed 's/^/| /' conftest.$ac_ext >&5 ! 16495: ! 16496: fi ! 16497: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 16498: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 16499: ! 16500: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ! 16501: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 16502: else ! 16503: if test "$host_cpu" = ia64; then ! 16504: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' ! 16505: allow_undefined_flag_F77="-z nodefs" ! 16506: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 16507: else ! 16508: # Determine the default libpath from the value encoded in an empty executable. ! 16509: cat >conftest.$ac_ext <<_ACEOF ! 16510: program main ! 16511: ! 16512: end ! 16513: _ACEOF ! 16514: rm -f conftest.$ac_objext conftest$ac_exeext ! 16515: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 16516: (eval $ac_link) 2>&5 ! 16517: ac_status=$? ! 16518: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16519: (exit $ac_status); } && ! 16520: { ac_try='test -s conftest$ac_exeext' ! 16521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 16522: (eval $ac_try) 2>&5 ! 16523: ac_status=$? ! 16524: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16525: (exit $ac_status); }; }; then ! 16526: ! 16527: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 16528: }'` ! 16529: # Check for a 64-bit object if we didn't find anything. ! 16530: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 16531: }'`; fi ! 16532: else ! 16533: echo "$as_me: failed program was:" >&5 ! 16534: sed 's/^/| /' conftest.$ac_ext >&5 ! 16535: ! 16536: fi ! 16537: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 16538: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 16539: ! 16540: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ! 16541: # Warning - without using the other run time loading flags, ! 16542: # -berok will link without error, but may produce a broken library. ! 16543: no_undefined_flag_F77=' ${wl}-bernotok' ! 16544: allow_undefined_flag_F77=' ${wl}-berok' ! 16545: # -bexpall does not export symbols beginning with underscore (_) ! 16546: always_export_symbols_F77=yes ! 16547: # Exported symbols can be pulled into shared objects from archives ! 16548: whole_archive_flag_spec_F77=' ' ! 16549: archive_cmds_need_lc_F77=yes ! 16550: # This is similar to how AIX traditionally builds it's shared libraries. ! 16551: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 16552: fi ! 16553: fi ! 16554: ;; ! 16555: ! 16556: amigaos*) ! 16557: 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)' ! 16558: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16559: hardcode_minus_L_F77=yes ! 16560: # see comment about different semantics on the GNU ld section ! 16561: ld_shlibs_F77=no ! 16562: ;; ! 16563: ! 16564: bsdi4*) ! 16565: export_dynamic_flag_spec_F77=-rdynamic ! 16566: ;; ! 16567: ! 16568: cygwin* | mingw* | pw32*) ! 16569: # When not using gcc, we currently assume that we are using ! 16570: # Microsoft Visual C++. ! 16571: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 16572: # no search path for DLLs. ! 16573: hardcode_libdir_flag_spec_F77=' ' ! 16574: allow_undefined_flag_F77=unsupported ! 16575: # Tell ltmain to make .lib files, not .a files. ! 16576: libext=lib ! 16577: # Tell ltmain to make .dll files, not .so files. ! 16578: shrext=".dll" ! 16579: # FIXME: Setting linknames here is a bad hack. ! 16580: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 16581: # The linker will automatically build a .lib file if we build a DLL. ! 16582: old_archive_From_new_cmds_F77='true' ! 16583: # FIXME: Should let the user specify the lib program. ! 16584: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 16585: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 16586: enable_shared_with_static_runtimes_F77=yes ! 16587: ;; ! 16588: ! 16589: darwin* | rhapsody*) ! 16590: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 16591: archive_cmds_need_lc_F77=no ! 16592: case "$host_os" in ! 16593: rhapsody* | darwin1.[012]) ! 16594: allow_undefined_flag_F77='-undefined suppress' ! 16595: ;; ! 16596: *) # Darwin 1.3 on ! 16597: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' ! 16598: ;; ! 16599: esac ! 16600: # FIXME: Relying on posixy $() will cause problems for ! 16601: # cross-compilation, but unfortunately the echo tests do not ! 16602: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 16603: # `"' quotes if we put them in here... so don't! ! 16604: lt_int_apple_cc_single_mod=no ! 16605: output_verbose_link_cmd='echo' ! 16606: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 16607: lt_int_apple_cc_single_mod=yes ! 16608: fi ! 16609: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 16610: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 16611: else ! 16612: archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' ! 16613: fi ! 16614: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 16615: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 16616: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 16617: archive_expsym_cmds_F77='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}' ! 16618: else ! 16619: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' ! 16620: fi ! 16621: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 16622: hardcode_direct_F77=no ! 16623: hardcode_automatic_F77=yes ! 16624: hardcode_shlibpath_var_F77=unsupported ! 16625: whole_archive_flag_spec_F77='-all_load $convenience' ! 16626: link_all_deplibs_F77=yes ! 16627: fi ! 16628: ;; ! 16629: ! 16630: dgux*) ! 16631: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16632: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16633: hardcode_shlibpath_var_F77=no ! 16634: ;; ! 16635: ! 16636: freebsd1*) ! 16637: ld_shlibs_F77=no ! 16638: ;; ! 16639: ! 16640: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 16641: # support. Future versions do this automatically, but an explicit c++rt0.o ! 16642: # does not break anything, and helps significantly (at the cost of a little ! 16643: # extra space). ! 16644: freebsd2.2*) ! 16645: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 16646: hardcode_libdir_flag_spec_F77='-R$libdir' ! 16647: hardcode_direct_F77=yes ! 16648: hardcode_shlibpath_var_F77=no ! 16649: ;; ! 16650: ! 16651: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 16652: freebsd2*) ! 16653: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 16654: hardcode_direct_F77=yes ! 16655: hardcode_minus_L_F77=yes ! 16656: hardcode_shlibpath_var_F77=no ! 16657: ;; ! 16658: ! 16659: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 16660: freebsd*) ! 16661: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 16662: hardcode_libdir_flag_spec_F77='-R$libdir' ! 16663: hardcode_direct_F77=yes ! 16664: hardcode_shlibpath_var_F77=no ! 16665: ;; ! 16666: ! 16667: hpux9*) ! 16668: if test "$GCC" = yes; then ! 16669: 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' ! 16670: else ! 16671: 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' ! 16672: fi ! 16673: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 16674: hardcode_libdir_separator_F77=: ! 16675: hardcode_direct_F77=yes ! 16676: ! 16677: # hardcode_minus_L: Not really in the search PATH, ! 16678: # but as the default location of the library. ! 16679: hardcode_minus_L_F77=yes ! 16680: export_dynamic_flag_spec_F77='${wl}-E' ! 16681: ;; ! 16682: ! 16683: hpux10* | hpux11*) ! 16684: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 16685: case "$host_cpu" in ! 16686: hppa*64*|ia64*) ! 16687: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16688: ;; ! 16689: *) ! 16690: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 16691: ;; ! 16692: esac ! 16693: else ! 16694: case "$host_cpu" in ! 16695: hppa*64*|ia64*) ! 16696: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16697: ;; ! 16698: *) ! 16699: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 16700: ;; ! 16701: esac ! 16702: fi ! 16703: if test "$with_gnu_ld" = no; then ! 16704: case "$host_cpu" in ! 16705: hppa*64*) ! 16706: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 16707: hardcode_libdir_flag_spec_ld_F77='+b $libdir' ! 16708: hardcode_libdir_separator_F77=: ! 16709: hardcode_direct_F77=no ! 16710: hardcode_shlibpath_var_F77=no ! 16711: ;; ! 16712: ia64*) ! 16713: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16714: hardcode_direct_F77=no ! 16715: hardcode_shlibpath_var_F77=no ! 16716: ! 16717: # hardcode_minus_L: Not really in the search PATH, ! 16718: # but as the default location of the library. ! 16719: hardcode_minus_L_F77=yes ! 16720: ;; ! 16721: *) ! 16722: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 16723: hardcode_libdir_separator_F77=: ! 16724: hardcode_direct_F77=yes ! 16725: export_dynamic_flag_spec_F77='${wl}-E' ! 16726: ! 16727: # hardcode_minus_L: Not really in the search PATH, ! 16728: # but as the default location of the library. ! 16729: hardcode_minus_L_F77=yes ! 16730: ;; ! 16731: esac ! 16732: fi ! 16733: ;; ! 16734: ! 16735: irix5* | irix6* | nonstopux*) ! 16736: if test "$GCC" = yes; then ! 16737: 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' ! 16738: else ! 16739: 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' ! 16740: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' ! 16741: fi ! 16742: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 16743: hardcode_libdir_separator_F77=: ! 16744: link_all_deplibs_F77=yes ! 16745: ;; ! 16746: ! 16747: netbsd*) ! 16748: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 16749: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 16750: else ! 16751: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 16752: fi ! 16753: hardcode_libdir_flag_spec_F77='-R$libdir' ! 16754: hardcode_direct_F77=yes ! 16755: hardcode_shlibpath_var_F77=no ! 16756: ;; ! 16757: ! 16758: newsos6) ! 16759: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16760: hardcode_direct_F77=yes ! 16761: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 16762: hardcode_libdir_separator_F77=: ! 16763: hardcode_shlibpath_var_F77=no ! 16764: ;; ! 16765: ! 16766: openbsd*) ! 16767: hardcode_direct_F77=yes ! 16768: hardcode_shlibpath_var_F77=no ! 16769: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 16770: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 16771: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ! 16772: export_dynamic_flag_spec_F77='${wl}-E' ! 16773: else ! 16774: case $host_os in ! 16775: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 16776: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 16777: hardcode_libdir_flag_spec_F77='-R$libdir' ! 16778: ;; ! 16779: *) ! 16780: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 16781: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ! 16782: ;; ! 16783: esac ! 16784: fi ! 16785: ;; ! 16786: ! 16787: os2*) ! 16788: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16789: hardcode_minus_L_F77=yes ! 16790: allow_undefined_flag_F77=unsupported ! 16791: 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' ! 16792: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 16793: ;; ! 16794: ! 16795: osf3*) ! 16796: if test "$GCC" = yes; then ! 16797: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ! 16798: 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' ! 16799: else ! 16800: allow_undefined_flag_F77=' -expect_unresolved \*' ! 16801: 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' ! 16802: fi ! 16803: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 16804: hardcode_libdir_separator_F77=: ! 16805: ;; ! 16806: ! 16807: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 16808: if test "$GCC" = yes; then ! 16809: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ! 16810: 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' ! 16811: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 16812: else ! 16813: allow_undefined_flag_F77=' -expect_unresolved \*' ! 16814: 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' ! 16815: 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~ ! 16816: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 16817: ! 16818: # Both c and cxx compiler support -rpath directly ! 16819: hardcode_libdir_flag_spec_F77='-rpath $libdir' ! 16820: fi ! 16821: hardcode_libdir_separator_F77=: ! 16822: ;; ! 16823: ! 16824: sco3.2v5*) ! 16825: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16826: hardcode_shlibpath_var_F77=no ! 16827: export_dynamic_flag_spec_F77='${wl}-Bexport' ! 16828: runpath_var=LD_RUN_PATH ! 16829: hardcode_runpath_var=yes ! 16830: ;; ! 16831: ! 16832: solaris*) ! 16833: no_undefined_flag_F77=' -z text' ! 16834: if test "$GCC" = yes; then ! 16835: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16836: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16837: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 16838: else ! 16839: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16840: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16841: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 16842: fi ! 16843: hardcode_libdir_flag_spec_F77='-R$libdir' ! 16844: hardcode_shlibpath_var_F77=no ! 16845: case $host_os in ! 16846: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 16847: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 16848: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; ! 16849: esac ! 16850: link_all_deplibs_F77=yes ! 16851: ;; ! 16852: ! 16853: sunos4*) ! 16854: if test "x$host_vendor" = xsequent; then ! 16855: # Use $CC to link under sequent, because it throws in some extra .o ! 16856: # files that make .init and .fini sections work. ! 16857: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 16858: else ! 16859: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 16860: fi ! 16861: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16862: hardcode_direct_F77=yes ! 16863: hardcode_minus_L_F77=yes ! 16864: hardcode_shlibpath_var_F77=no ! 16865: ;; ! 16866: ! 16867: sysv4) ! 16868: case $host_vendor in ! 16869: sni) ! 16870: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16871: hardcode_direct_F77=yes # is this really true??? ! 16872: ;; ! 16873: siemens) ! 16874: ## LD is ld it makes a PLAMLIB ! 16875: ## CC just makes a GrossModule. ! 16876: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 16877: reload_cmds_F77='$CC -r -o $output$reload_objs' ! 16878: hardcode_direct_F77=no ! 16879: ;; ! 16880: motorola) ! 16881: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16882: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ! 16883: ;; ! 16884: esac ! 16885: runpath_var='LD_RUN_PATH' ! 16886: hardcode_shlibpath_var_F77=no ! 16887: ;; ! 16888: ! 16889: sysv4.3*) ! 16890: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16891: hardcode_shlibpath_var_F77=no ! 16892: export_dynamic_flag_spec_F77='-Bexport' ! 16893: ;; ! 16894: ! 16895: sysv4*MP*) ! 16896: if test -d /usr/nec; then ! 16897: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16898: hardcode_shlibpath_var_F77=no ! 16899: runpath_var=LD_RUN_PATH ! 16900: hardcode_runpath_var=yes ! 16901: ld_shlibs_F77=yes ! 16902: fi ! 16903: ;; ! 16904: ! 16905: sysv4.2uw2*) ! 16906: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 16907: hardcode_direct_F77=yes ! 16908: hardcode_minus_L_F77=no ! 16909: hardcode_shlibpath_var_F77=no ! 16910: hardcode_runpath_var=yes ! 16911: runpath_var=LD_RUN_PATH ! 16912: ;; ! 16913: ! 16914: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 16915: no_undefined_flag_F77='${wl}-z ${wl}text' ! 16916: if test "$GCC" = yes; then ! 16917: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16918: else ! 16919: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16920: fi ! 16921: runpath_var='LD_RUN_PATH' ! 16922: hardcode_shlibpath_var_F77=no ! 16923: ;; ! 16924: ! 16925: sysv5*) ! 16926: no_undefined_flag_F77=' -z text' ! 16927: # $CC -shared without GNU ld will not create a library from C++ ! 16928: # object files and a static libstdc++, better avoid it by now ! 16929: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16930: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16931: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 16932: hardcode_libdir_flag_spec_F77= ! 16933: hardcode_shlibpath_var_F77=no ! 16934: runpath_var='LD_RUN_PATH' ! 16935: ;; ! 16936: ! 16937: uts4*) ! 16938: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16939: hardcode_libdir_flag_spec_F77='-L$libdir' ! 16940: hardcode_shlibpath_var_F77=no ! 16941: ;; ! 16942: ! 16943: *) ! 16944: ld_shlibs_F77=no ! 16945: ;; ! 16946: esac ! 16947: fi ! 16948: ! 16949: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 ! 16950: echo "${ECHO_T}$ld_shlibs_F77" >&6 ! 16951: test "$ld_shlibs_F77" = no && can_build_shared=no ! 16952: ! 16953: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 16954: if test "$GCC" = yes; then ! 16955: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 16956: fi ! 16957: ! 16958: # ! 16959: # Do we need to explicitly link libc? ! 16960: # ! 16961: case "x$archive_cmds_need_lc_F77" in ! 16962: x|xyes) ! 16963: # Assume -lc should be added ! 16964: archive_cmds_need_lc_F77=yes ! 16965: ! 16966: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 16967: case $archive_cmds_F77 in ! 16968: *'~'*) ! 16969: # FIXME: we may have to deal with multi-command sequences. ! 16970: ;; ! 16971: '$CC '*) ! 16972: # Test whether the compiler implicitly links with -lc since on some ! 16973: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 16974: # to ld, don't add -lc before -lgcc. ! 16975: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 16976: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 16977: $rm conftest* ! 16978: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 16979: ! 16980: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 16981: (eval $ac_compile) 2>&5 ! 16982: ac_status=$? ! 16983: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16984: (exit $ac_status); } 2>conftest.err; then ! 16985: soname=conftest ! 16986: lib=conftest ! 16987: libobjs=conftest.$ac_objext ! 16988: deplibs= ! 16989: wl=$lt_prog_compiler_wl_F77 ! 16990: compiler_flags=-v ! 16991: linker_flags=-v ! 16992: verstring= ! 16993: output_objdir=. ! 16994: libname=conftest ! 16995: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 ! 16996: allow_undefined_flag_F77= ! 16997: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 16998: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 16999: ac_status=$? ! 17000: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17001: (exit $ac_status); } ! 17002: then ! 17003: archive_cmds_need_lc_F77=no ! 17004: else ! 17005: archive_cmds_need_lc_F77=yes ! 17006: fi ! 17007: allow_undefined_flag_F77=$lt_save_allow_undefined_flag ! 17008: else ! 17009: cat conftest.err 1>&5 ! 17010: fi ! 17011: $rm conftest* ! 17012: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 ! 17013: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 ! 17014: ;; ! 17015: esac ! 17016: fi ! 17017: ;; ! 17018: esac ! 17019: ! 17020: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 17021: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 17022: hardcode_action_F77= ! 17023: if test -n "$hardcode_libdir_flag_spec_F77" || \ ! 17024: test -n "$runpath_var F77" || \ ! 17025: test "X$hardcode_automatic_F77"="Xyes" ; then ! 17026: ! 17027: # We can hardcode non-existant directories. ! 17028: if test "$hardcode_direct_F77" != no && ! 17029: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 17030: # have to relink, otherwise we might link with an installed library ! 17031: # when we should be linking with a yet-to-be-installed one ! 17032: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && ! 17033: test "$hardcode_minus_L_F77" != no; then ! 17034: # Linking always hardcodes the temporary library directory. ! 17035: hardcode_action_F77=relink ! 17036: else ! 17037: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 17038: hardcode_action_F77=immediate ! 17039: fi ! 17040: else ! 17041: # We cannot hardcode anything, or else we can only hardcode existing ! 17042: # directories. ! 17043: hardcode_action_F77=unsupported ! 17044: fi ! 17045: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 ! 17046: echo "${ECHO_T}$hardcode_action_F77" >&6 ! 17047: ! 17048: if test "$hardcode_action_F77" = relink; then ! 17049: # Fast installation is not supported ! 17050: enable_fast_install=no ! 17051: elif test "$shlibpath_overrides_runpath" = yes || ! 17052: test "$enable_shared" = no; then ! 17053: # Fast installation is not necessary ! 17054: enable_fast_install=needless ! 17055: fi ! 17056: ! 17057: striplib= ! 17058: old_striplib= ! 17059: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 17060: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 17061: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 17062: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 17063: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 17064: echo "$as_me:$LINENO: result: yes" >&5 ! 17065: echo "${ECHO_T}yes" >&6 ! 17066: else ! 17067: # FIXME - insert some real tests, host_os isn't really good enough ! 17068: case $host_os in ! 17069: darwin*) ! 17070: if test -n "$STRIP" ; then ! 17071: striplib="$STRIP -x" ! 17072: echo "$as_me:$LINENO: result: yes" >&5 ! 17073: echo "${ECHO_T}yes" >&6 ! 17074: else ! 17075: echo "$as_me:$LINENO: result: no" >&5 ! 17076: echo "${ECHO_T}no" >&6 ! 17077: fi ! 17078: ;; ! 17079: *) ! 17080: echo "$as_me:$LINENO: result: no" >&5 ! 17081: echo "${ECHO_T}no" >&6 ! 17082: ;; ! 17083: esac ! 17084: fi ! 17085: ! 17086: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 17087: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 17088: library_names_spec= ! 17089: libname_spec='lib$name' ! 17090: soname_spec= ! 17091: shrext=".so" ! 17092: postinstall_cmds= ! 17093: postuninstall_cmds= ! 17094: finish_cmds= ! 17095: finish_eval= ! 17096: shlibpath_var= ! 17097: shlibpath_overrides_runpath=unknown ! 17098: version_type=none ! 17099: dynamic_linker="$host_os ld.so" ! 17100: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 17101: if test "$GCC" = yes; then ! 17102: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 17103: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 17104: # if the path contains ";" then we assume it to be the separator ! 17105: # otherwise default to the standard path separator (i.e. ":") - it is ! 17106: # assumed that no part of a normal pathname contains ";" but that should ! 17107: # okay in the real world where ";" in dirpaths is itself problematic. ! 17108: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 17109: else ! 17110: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 17111: fi ! 17112: else ! 17113: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 17114: fi ! 17115: need_lib_prefix=unknown ! 17116: hardcode_into_libs=no ! 17117: ! 17118: # when you set need_version to no, make sure it does not cause -set_version ! 17119: # flags to be left without arguments ! 17120: need_version=unknown ! 17121: ! 17122: case $host_os in ! 17123: aix3*) ! 17124: version_type=linux ! 17125: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 17126: shlibpath_var=LIBPATH ! 17127: ! 17128: # AIX 3 has no versioning support, so we append a major version to the name. ! 17129: soname_spec='${libname}${release}${shared_ext}$major' ! 17130: ;; ! 17131: ! 17132: aix4* | aix5*) ! 17133: version_type=linux ! 17134: need_lib_prefix=no ! 17135: need_version=no ! 17136: hardcode_into_libs=yes ! 17137: if test "$host_cpu" = ia64; then ! 17138: # AIX 5 supports IA64 ! 17139: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 17140: shlibpath_var=LD_LIBRARY_PATH ! 17141: else ! 17142: # With GCC up to 2.95.x, collect2 would create an import file ! 17143: # for dependence libraries. The import file would start with ! 17144: # the line `#! .'. This would cause the generated library to ! 17145: # depend on `.', always an invalid library. This was fixed in ! 17146: # development snapshots of GCC prior to 3.0. ! 17147: case $host_os in ! 17148: aix4 | aix4.[01] | aix4.[01].*) ! 17149: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 17150: echo ' yes ' ! 17151: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 17152: : ! 17153: else ! 17154: can_build_shared=no ! 17155: fi ! 17156: ;; ! 17157: esac ! 17158: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 17159: # soname into executable. Probably we can add versioning support to ! 17160: # collect2, so additional links can be useful in future. ! 17161: if test "$aix_use_runtimelinking" = yes; then ! 17162: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 17163: # instead of lib<name>.a to let people know that these are not ! 17164: # typical AIX shared libraries. ! 17165: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17166: else ! 17167: # We preserve .a as extension for shared libraries through AIX4.2 ! 17168: # and later when we are not doing run time linking. ! 17169: library_names_spec='${libname}${release}.a $libname.a' ! 17170: soname_spec='${libname}${release}${shared_ext}$major' ! 17171: fi ! 17172: shlibpath_var=LIBPATH ! 17173: fi ! 17174: ;; ! 17175: ! 17176: amigaos*) ! 17177: library_names_spec='$libname.ixlibrary $libname.a' ! 17178: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 17179: 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' ! 17180: ;; ! 17181: ! 17182: beos*) ! 17183: library_names_spec='${libname}${shared_ext}' ! 17184: dynamic_linker="$host_os ld.so" ! 17185: shlibpath_var=LIBRARY_PATH ! 17186: ;; ! 17187: ! 17188: bsdi4*) ! 17189: version_type=linux ! 17190: need_version=no ! 17191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17192: soname_spec='${libname}${release}${shared_ext}$major' ! 17193: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 17194: shlibpath_var=LD_LIBRARY_PATH ! 17195: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 17196: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 17197: # the default ld.so.conf also contains /usr/contrib/lib and ! 17198: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 17199: # libtool to hard-code these into programs ! 17200: ;; ! 17201: ! 17202: cygwin* | mingw* | pw32*) ! 17203: version_type=windows ! 17204: shrext=".dll" ! 17205: need_version=no ! 17206: need_lib_prefix=no ! 17207: ! 17208: case $GCC,$host_os in ! 17209: yes,cygwin* | yes,mingw* | yes,pw32*) ! 17210: library_names_spec='$libname.dll.a' ! 17211: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 17212: postinstall_cmds='base_file=`basename \${file}`~ ! 17213: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 17214: dldir=$destdir/`dirname \$dlpath`~ ! 17215: test -d \$dldir || mkdir -p \$dldir~ ! 17216: $install_prog $dir/$dlname \$dldir/$dlname' ! 17217: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 17218: dlpath=$dir/\$dldll~ ! 17219: $rm \$dlpath' ! 17220: shlibpath_overrides_runpath=yes ! 17221: ! 17222: case $host_os in ! 17223: cygwin*) ! 17224: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 17225: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 17226: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 17227: ;; ! 17228: mingw*) ! 17229: # MinGW DLLs use traditional 'lib' prefix ! 17230: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 17231: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 17232: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 17233: # It is most probably a Windows format PATH printed by ! 17234: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 17235: # path with ; separators, and with drive letters. We can handle the ! 17236: # drive letters (cygwin fileutils understands them), so leave them, ! 17237: # especially as we might pass files found there to a mingw objdump, ! 17238: # which wouldn't understand a cygwinified path. Ahh. ! 17239: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 17240: else ! 17241: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 17242: fi ! 17243: ;; ! 17244: pw32*) ! 17245: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 17246: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 17247: ;; ! 17248: esac ! 17249: ;; ! 17250: ! 17251: *) ! 17252: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 17253: ;; ! 17254: esac ! 17255: dynamic_linker='Win32 ld.exe' ! 17256: # FIXME: first we should search . and the directory the executable is in ! 17257: shlibpath_var=PATH ! 17258: ;; ! 17259: ! 17260: darwin* | rhapsody*) ! 17261: dynamic_linker="$host_os dyld" ! 17262: version_type=darwin ! 17263: need_lib_prefix=no ! 17264: need_version=no ! 17265: # FIXME: Relying on posixy $() will cause problems for ! 17266: # cross-compilation, but unfortunately the echo tests do not ! 17267: # yet detect zsh echo's removal of \ escapes. ! 17268: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 17269: soname_spec='${libname}${release}${major}$shared_ext' ! 17270: shlibpath_overrides_runpath=yes ! 17271: shlibpath_var=DYLD_LIBRARY_PATH ! 17272: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 17273: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 17274: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 17275: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 17276: fi ! 17277: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 17278: ;; ! 17279: ! 17280: dgux*) ! 17281: version_type=linux ! 17282: need_lib_prefix=no ! 17283: need_version=no ! 17284: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 17285: soname_spec='${libname}${release}${shared_ext}$major' ! 17286: shlibpath_var=LD_LIBRARY_PATH ! 17287: ;; ! 17288: ! 17289: freebsd1*) ! 17290: dynamic_linker=no ! 17291: ;; ! 17292: ! 17293: freebsd*) ! 17294: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 17295: version_type=freebsd-$objformat ! 17296: case $version_type in ! 17297: freebsd-elf*) ! 17298: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 17299: need_version=no ! 17300: need_lib_prefix=no ! 17301: ;; ! 17302: freebsd-*) ! 17303: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 17304: need_version=yes ! 17305: ;; ! 17306: esac ! 17307: shlibpath_var=LD_LIBRARY_PATH ! 17308: case $host_os in ! 17309: freebsd2*) ! 17310: shlibpath_overrides_runpath=yes ! 17311: ;; ! 17312: freebsd3.01* | freebsdelf3.01*) ! 17313: shlibpath_overrides_runpath=yes ! 17314: hardcode_into_libs=yes ! 17315: ;; ! 17316: *) # from 3.2 on ! 17317: shlibpath_overrides_runpath=no ! 17318: hardcode_into_libs=yes ! 17319: ;; ! 17320: esac ! 17321: ;; ! 17322: ! 17323: gnu*) ! 17324: version_type=linux ! 17325: need_lib_prefix=no ! 17326: need_version=no ! 17327: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 17328: soname_spec='${libname}${release}${shared_ext}$major' ! 17329: shlibpath_var=LD_LIBRARY_PATH ! 17330: hardcode_into_libs=yes ! 17331: ;; ! 17332: ! 17333: hpux9* | hpux10* | hpux11*) ! 17334: # Give a soname corresponding to the major version so that dld.sl refuses to ! 17335: # link against other versions. ! 17336: version_type=sunos ! 17337: need_lib_prefix=no ! 17338: need_version=no ! 17339: case "$host_cpu" in ! 17340: ia64*) ! 17341: shrext='.so' ! 17342: hardcode_into_libs=yes ! 17343: dynamic_linker="$host_os dld.so" ! 17344: shlibpath_var=LD_LIBRARY_PATH ! 17345: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 17346: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17347: soname_spec='${libname}${release}${shared_ext}$major' ! 17348: if test "X$HPUX_IA64_MODE" = X32; then ! 17349: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 17350: else ! 17351: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 17352: fi ! 17353: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 17354: ;; ! 17355: hppa*64*) ! 17356: shrext='.sl' ! 17357: hardcode_into_libs=yes ! 17358: dynamic_linker="$host_os dld.sl" ! 17359: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 17360: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 17361: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17362: soname_spec='${libname}${release}${shared_ext}$major' ! 17363: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 17364: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 17365: ;; ! 17366: *) ! 17367: shrext='.sl' ! 17368: dynamic_linker="$host_os dld.sl" ! 17369: shlibpath_var=SHLIB_PATH ! 17370: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 17371: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17372: soname_spec='${libname}${release}${shared_ext}$major' ! 17373: ;; ! 17374: esac ! 17375: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 17376: postinstall_cmds='chmod 555 $lib' ! 17377: ;; ! 17378: ! 17379: irix5* | irix6* | nonstopux*) ! 17380: case $host_os in ! 17381: nonstopux*) version_type=nonstopux ;; ! 17382: *) ! 17383: if test "$lt_cv_prog_gnu_ld" = yes; then ! 17384: version_type=linux ! 17385: else ! 17386: version_type=irix ! 17387: fi ;; ! 17388: esac ! 17389: need_lib_prefix=no ! 17390: need_version=no ! 17391: soname_spec='${libname}${release}${shared_ext}$major' ! 17392: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 17393: case $host_os in ! 17394: irix5* | nonstopux*) ! 17395: libsuff= shlibsuff= ! 17396: ;; ! 17397: *) ! 17398: case $LD in # libtool.m4 will add one of these switches to LD ! 17399: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 17400: libsuff= shlibsuff= libmagic=32-bit;; ! 17401: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 17402: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 17403: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 17404: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 17405: *) libsuff= shlibsuff= libmagic=never-match;; ! 17406: esac ! 17407: ;; ! 17408: esac ! 17409: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 17410: shlibpath_overrides_runpath=no ! 17411: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 17412: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 17413: hardcode_into_libs=yes ! 17414: ;; ! 17415: ! 17416: # No shared lib support for Linux oldld, aout, or coff. ! 17417: linux*oldld* | linux*aout* | linux*coff*) ! 17418: dynamic_linker=no ! 17419: ;; ! 17420: ! 17421: # This must be Linux ELF. ! 17422: linux*) ! 17423: version_type=linux ! 17424: need_lib_prefix=no ! 17425: need_version=no ! 17426: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17427: soname_spec='${libname}${release}${shared_ext}$major' ! 17428: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 17429: shlibpath_var=LD_LIBRARY_PATH ! 17430: shlibpath_overrides_runpath=no ! 17431: # This implies no fast_install, which is unacceptable. ! 17432: # Some rework will be needed to allow for fast_install ! 17433: # before this can be enabled. ! 17434: hardcode_into_libs=yes ! 17435: ! 17436: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 17437: # powerpc, because MkLinux only supported shared libraries with the ! 17438: # GNU dynamic linker. Since this was broken with cross compilers, ! 17439: # most powerpc-linux boxes support dynamic linking these days and ! 17440: # people can always --disable-shared, the test was removed, and we ! 17441: # assume the GNU/Linux dynamic linker is in use. ! 17442: dynamic_linker='GNU/Linux ld.so' ! 17443: ;; ! 17444: ! 17445: netbsd*) ! 17446: version_type=sunos ! 17447: need_lib_prefix=no ! 17448: need_version=no ! 17449: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 17450: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 17451: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 17452: dynamic_linker='NetBSD (a.out) ld.so' ! 17453: else ! 17454: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 17455: soname_spec='${libname}${release}${shared_ext}$major' ! 17456: dynamic_linker='NetBSD ld.elf_so' ! 17457: fi ! 17458: shlibpath_var=LD_LIBRARY_PATH ! 17459: shlibpath_overrides_runpath=yes ! 17460: hardcode_into_libs=yes ! 17461: ;; ! 17462: ! 17463: newsos6) ! 17464: version_type=linux ! 17465: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17466: shlibpath_var=LD_LIBRARY_PATH ! 17467: shlibpath_overrides_runpath=yes ! 17468: ;; ! 17469: ! 17470: nto-qnx) ! 17471: version_type=linux ! 17472: need_lib_prefix=no ! 17473: need_version=no ! 17474: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17475: soname_spec='${libname}${release}${shared_ext}$major' ! 17476: shlibpath_var=LD_LIBRARY_PATH ! 17477: shlibpath_overrides_runpath=yes ! 17478: ;; ! 17479: ! 17480: openbsd*) ! 17481: version_type=sunos ! 17482: need_lib_prefix=no ! 17483: need_version=no ! 17484: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 17485: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 17486: shlibpath_var=LD_LIBRARY_PATH ! 17487: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 17488: case $host_os in ! 17489: openbsd2.[89] | openbsd2.[89].*) ! 17490: shlibpath_overrides_runpath=no ! 17491: ;; ! 17492: *) ! 17493: shlibpath_overrides_runpath=yes ! 17494: ;; ! 17495: esac ! 17496: else ! 17497: shlibpath_overrides_runpath=yes ! 17498: fi ! 17499: ;; ! 17500: ! 17501: os2*) ! 17502: libname_spec='$name' ! 17503: shrext=".dll" ! 17504: need_lib_prefix=no ! 17505: library_names_spec='$libname${shared_ext} $libname.a' ! 17506: dynamic_linker='OS/2 ld.exe' ! 17507: shlibpath_var=LIBPATH ! 17508: ;; ! 17509: ! 17510: osf3* | osf4* | osf5*) ! 17511: version_type=osf ! 17512: need_lib_prefix=no ! 17513: need_version=no ! 17514: soname_spec='${libname}${release}${shared_ext}$major' ! 17515: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17516: shlibpath_var=LD_LIBRARY_PATH ! 17517: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 17518: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 17519: ;; ! 17520: ! 17521: sco3.2v5*) ! 17522: version_type=osf ! 17523: soname_spec='${libname}${release}${shared_ext}$major' ! 17524: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17525: shlibpath_var=LD_LIBRARY_PATH ! 17526: ;; ! 17527: ! 17528: solaris*) ! 17529: version_type=linux ! 17530: need_lib_prefix=no ! 17531: need_version=no ! 17532: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17533: soname_spec='${libname}${release}${shared_ext}$major' ! 17534: shlibpath_var=LD_LIBRARY_PATH ! 17535: shlibpath_overrides_runpath=yes ! 17536: hardcode_into_libs=yes ! 17537: # ldd complains unless libraries are executable ! 17538: postinstall_cmds='chmod +x $lib' ! 17539: ;; ! 17540: ! 17541: sunos4*) ! 17542: version_type=sunos ! 17543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 17544: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 17545: shlibpath_var=LD_LIBRARY_PATH ! 17546: shlibpath_overrides_runpath=yes ! 17547: if test "$with_gnu_ld" = yes; then ! 17548: need_lib_prefix=no ! 17549: fi ! 17550: need_version=yes ! 17551: ;; ! 17552: ! 17553: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 17554: version_type=linux ! 17555: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17556: soname_spec='${libname}${release}${shared_ext}$major' ! 17557: shlibpath_var=LD_LIBRARY_PATH ! 17558: case $host_vendor in ! 17559: sni) ! 17560: shlibpath_overrides_runpath=no ! 17561: need_lib_prefix=no ! 17562: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 17563: runpath_var=LD_RUN_PATH ! 17564: ;; ! 17565: siemens) ! 17566: need_lib_prefix=no ! 17567: ;; ! 17568: motorola) ! 17569: need_lib_prefix=no ! 17570: need_version=no ! 17571: shlibpath_overrides_runpath=no ! 17572: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 17573: ;; ! 17574: esac ! 17575: ;; ! 17576: ! 17577: sysv4*MP*) ! 17578: if test -d /usr/nec ;then ! 17579: version_type=linux ! 17580: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 17581: soname_spec='$libname${shared_ext}.$major' ! 17582: shlibpath_var=LD_LIBRARY_PATH ! 17583: fi ! 17584: ;; ! 17585: ! 17586: uts4*) ! 17587: version_type=linux ! 17588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 17589: soname_spec='${libname}${release}${shared_ext}$major' ! 17590: shlibpath_var=LD_LIBRARY_PATH ! 17591: ;; ! 17592: ! 17593: *) ! 17594: dynamic_linker=no ! 17595: ;; ! 17596: esac ! 17597: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 17598: echo "${ECHO_T}$dynamic_linker" >&6 ! 17599: test "$dynamic_linker" = no && can_build_shared=no ! 17600: ! 17601: ! 17602: # The else clause should only fire when bootstrapping the ! 17603: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 17604: # with your package, and you will get complaints that there are ! 17605: # no rules to generate ltmain.sh. ! 17606: if test -f "$ltmain"; then ! 17607: # See if we are running on zsh, and set the options which allow our commands through ! 17608: # without removal of \ escapes. ! 17609: if test -n "${ZSH_VERSION+set}" ; then ! 17610: setopt NO_GLOB_SUBST ! 17611: fi ! 17612: # Now quote all the things that may contain metacharacters while being ! 17613: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 17614: # variables and quote the copies for generation of the libtool script. ! 17615: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 17616: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 17617: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 17618: deplibs_check_method reload_flag reload_cmds need_locks \ ! 17619: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 17620: lt_cv_sys_global_symbol_to_c_name_address \ ! 17621: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 17622: old_postinstall_cmds old_postuninstall_cmds \ ! 17623: compiler_F77 \ ! 17624: CC_F77 \ ! 17625: LD_F77 \ ! 17626: lt_prog_compiler_wl_F77 \ ! 17627: lt_prog_compiler_pic_F77 \ ! 17628: lt_prog_compiler_static_F77 \ ! 17629: lt_prog_compiler_no_builtin_flag_F77 \ ! 17630: export_dynamic_flag_spec_F77 \ ! 17631: thread_safe_flag_spec_F77 \ ! 17632: whole_archive_flag_spec_F77 \ ! 17633: enable_shared_with_static_runtimes_F77 \ ! 17634: old_archive_cmds_F77 \ ! 17635: old_archive_from_new_cmds_F77 \ ! 17636: predep_objects_F77 \ ! 17637: postdep_objects_F77 \ ! 17638: predeps_F77 \ ! 17639: postdeps_F77 \ ! 17640: compiler_lib_search_path_F77 \ ! 17641: archive_cmds_F77 \ ! 17642: archive_expsym_cmds_F77 \ ! 17643: postinstall_cmds_F77 \ ! 17644: postuninstall_cmds_F77 \ ! 17645: old_archive_from_expsyms_cmds_F77 \ ! 17646: allow_undefined_flag_F77 \ ! 17647: no_undefined_flag_F77 \ ! 17648: export_symbols_cmds_F77 \ ! 17649: hardcode_libdir_flag_spec_F77 \ ! 17650: hardcode_libdir_flag_spec_ld_F77 \ ! 17651: hardcode_libdir_separator_F77 \ ! 17652: hardcode_automatic_F77 \ ! 17653: module_cmds_F77 \ ! 17654: module_expsym_cmds_F77 \ ! 17655: lt_cv_prog_compiler_c_o_F77 \ ! 17656: exclude_expsyms_F77 \ ! 17657: include_expsyms_F77; do ! 17658: ! 17659: case $var in ! 17660: old_archive_cmds_F77 | \ ! 17661: old_archive_from_new_cmds_F77 | \ ! 17662: archive_cmds_F77 | \ ! 17663: archive_expsym_cmds_F77 | \ ! 17664: module_cmds_F77 | \ ! 17665: module_expsym_cmds_F77 | \ ! 17666: old_archive_from_expsyms_cmds_F77 | \ ! 17667: export_symbols_cmds_F77 | \ ! 17668: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 17669: postinstall_cmds | postuninstall_cmds | \ ! 17670: old_postinstall_cmds | old_postuninstall_cmds | \ ! 17671: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 17672: # Double-quote double-evaled strings. ! 17673: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 17674: ;; ! 17675: *) ! 17676: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 17677: ;; ! 17678: esac ! 17679: done ! 17680: ! 17681: case $lt_echo in ! 17682: *'\$0 --fallback-echo"') ! 17683: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 17684: ;; ! 17685: esac ! 17686: ! 17687: cfgfile="$ofile" ! 17688: ! 17689: cat <<__EOF__ >> "$cfgfile" ! 17690: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 17691: ! 17692: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 17693: ! 17694: # Shell to use when invoking shell scripts. ! 17695: SHELL=$lt_SHELL ! 17696: ! 17697: # Whether or not to build shared libraries. ! 17698: build_libtool_libs=$enable_shared ! 17699: ! 17700: # Whether or not to build static libraries. ! 17701: build_old_libs=$enable_static ! 17702: ! 17703: # Whether or not to add -lc for building shared libraries. ! 17704: build_libtool_need_lc=$archive_cmds_need_lc_F77 ! 17705: ! 17706: # Whether or not to disallow shared libs when runtime libs are static ! 17707: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 ! 17708: ! 17709: # Whether or not to optimize for fast installation. ! 17710: fast_install=$enable_fast_install ! 17711: ! 17712: # The host system. ! 17713: host_alias=$host_alias ! 17714: host=$host ! 17715: ! 17716: # An echo program that does not interpret backslashes. ! 17717: echo=$lt_echo ! 17718: ! 17719: # The archiver. ! 17720: AR=$lt_AR ! 17721: AR_FLAGS=$lt_AR_FLAGS ! 17722: ! 17723: # A C compiler. ! 17724: LTCC=$lt_LTCC ! 17725: ! 17726: # A language-specific compiler. ! 17727: CC=$lt_compiler_F77 ! 17728: ! 17729: # Is the compiler the GNU C compiler? ! 17730: with_gcc=$GCC_F77 ! 17731: ! 17732: # An ERE matcher. ! 17733: EGREP=$lt_EGREP ! 17734: ! 17735: # The linker used to build libraries. ! 17736: LD=$lt_LD_F77 ! 17737: ! 17738: # Whether we need hard or soft links. ! 17739: LN_S=$lt_LN_S ! 17740: ! 17741: # A BSD-compatible nm program. ! 17742: NM=$lt_NM ! 17743: ! 17744: # A symbol stripping program ! 17745: STRIP=$STRIP ! 17746: ! 17747: # Used to examine libraries when file_magic_cmd begins "file" ! 17748: MAGIC_CMD=$MAGIC_CMD ! 17749: ! 17750: # Used on cygwin: DLL creation program. ! 17751: DLLTOOL="$DLLTOOL" ! 17752: ! 17753: # Used on cygwin: object dumper. ! 17754: OBJDUMP="$OBJDUMP" ! 17755: ! 17756: # Used on cygwin: assembler. ! 17757: AS="$AS" ! 17758: ! 17759: # The name of the directory that contains temporary libtool files. ! 17760: objdir=$objdir ! 17761: ! 17762: # How to create reloadable object files. ! 17763: reload_flag=$lt_reload_flag ! 17764: reload_cmds=$lt_reload_cmds ! 17765: ! 17766: # How to pass a linker flag through the compiler. ! 17767: wl=$lt_lt_prog_compiler_wl_F77 ! 17768: ! 17769: # Object file suffix (normally "o"). ! 17770: objext="$ac_objext" ! 17771: ! 17772: # Old archive suffix (normally "a"). ! 17773: libext="$libext" ! 17774: ! 17775: # Shared library suffix (normally ".so"). ! 17776: shrext='$shrext' ! 17777: ! 17778: # Executable file suffix (normally ""). ! 17779: exeext="$exeext" ! 17780: ! 17781: # Additional compiler flags for building library objects. ! 17782: pic_flag=$lt_lt_prog_compiler_pic_F77 ! 17783: pic_mode=$pic_mode ! 17784: ! 17785: # What is the maximum length of a command? ! 17786: max_cmd_len=$lt_cv_sys_max_cmd_len ! 17787: ! 17788: # Does compiler simultaneously support -c and -o options? ! 17789: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 ! 17790: ! 17791: # Must we lock files when doing compilation ? ! 17792: need_locks=$lt_need_locks ! 17793: ! 17794: # Do we need the lib prefix for modules? ! 17795: need_lib_prefix=$need_lib_prefix ! 17796: ! 17797: # Do we need a version for libraries? ! 17798: need_version=$need_version ! 17799: ! 17800: # Whether dlopen is supported. ! 17801: dlopen_support=$enable_dlopen ! 17802: ! 17803: # Whether dlopen of programs is supported. ! 17804: dlopen_self=$enable_dlopen_self ! 17805: ! 17806: # Whether dlopen of statically linked programs is supported. ! 17807: dlopen_self_static=$enable_dlopen_self_static ! 17808: ! 17809: # Compiler flag to prevent dynamic linking. ! 17810: link_static_flag=$lt_lt_prog_compiler_static_F77 ! 17811: ! 17812: # Compiler flag to turn off builtin functions. ! 17813: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 ! 17814: ! 17815: # Compiler flag to allow reflexive dlopens. ! 17816: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 ! 17817: ! 17818: # Compiler flag to generate shared objects directly from archives. ! 17819: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 ! 17820: ! 17821: # Compiler flag to generate thread-safe objects. ! 17822: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 ! 17823: ! 17824: # Library versioning type. ! 17825: version_type=$version_type ! 17826: ! 17827: # Format of library name prefix. ! 17828: libname_spec=$lt_libname_spec ! 17829: ! 17830: # List of archive names. First name is the real one, the rest are links. ! 17831: # The last name is the one that the linker finds with -lNAME. ! 17832: library_names_spec=$lt_library_names_spec ! 17833: ! 17834: # The coded name of the library, if different from the real name. ! 17835: soname_spec=$lt_soname_spec ! 17836: ! 17837: # Commands used to build and install an old-style archive. ! 17838: RANLIB=$lt_RANLIB ! 17839: old_archive_cmds=$lt_old_archive_cmds_F77 ! 17840: old_postinstall_cmds=$lt_old_postinstall_cmds ! 17841: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 17842: ! 17843: # Create an old-style archive from a shared archive. ! 17844: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 ! 17845: ! 17846: # Create a temporary old-style archive to link instead of a shared archive. ! 17847: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 ! 17848: ! 17849: # Commands used to build and install a shared archive. ! 17850: archive_cmds=$lt_archive_cmds_F77 ! 17851: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 ! 17852: postinstall_cmds=$lt_postinstall_cmds ! 17853: postuninstall_cmds=$lt_postuninstall_cmds ! 17854: ! 17855: # Commands used to build a loadable module (assumed same as above if empty) ! 17856: module_cmds=$lt_module_cmds_F77 ! 17857: module_expsym_cmds=$lt_module_expsym_cmds_F77 ! 17858: ! 17859: # Commands to strip libraries. ! 17860: old_striplib=$lt_old_striplib ! 17861: striplib=$lt_striplib ! 17862: ! 17863: # Dependencies to place before the objects being linked to create a ! 17864: # shared library. ! 17865: predep_objects=$lt_predep_objects_F77 ! 17866: ! 17867: # Dependencies to place after the objects being linked to create a ! 17868: # shared library. ! 17869: postdep_objects=$lt_postdep_objects_F77 ! 17870: ! 17871: # Dependencies to place before the objects being linked to create a ! 17872: # shared library. ! 17873: predeps=$lt_predeps_F77 ! 17874: ! 17875: # Dependencies to place after the objects being linked to create a ! 17876: # shared library. ! 17877: postdeps=$lt_postdeps_F77 ! 17878: ! 17879: # The library search path used internally by the compiler when linking ! 17880: # a shared library. ! 17881: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 ! 17882: ! 17883: # Method to check whether dependent libraries are shared objects. ! 17884: deplibs_check_method=$lt_deplibs_check_method ! 17885: ! 17886: # Command to use when deplibs_check_method == file_magic. ! 17887: file_magic_cmd=$lt_file_magic_cmd ! 17888: ! 17889: # Flag that allows shared libraries with undefined symbols to be built. ! 17890: allow_undefined_flag=$lt_allow_undefined_flag_F77 ! 17891: ! 17892: # Flag that forces no undefined symbols. ! 17893: no_undefined_flag=$lt_no_undefined_flag_F77 ! 17894: ! 17895: # Commands used to finish a libtool library installation in a directory. ! 17896: finish_cmds=$lt_finish_cmds ! 17897: ! 17898: # Same as above, but a single script fragment to be evaled but not shown. ! 17899: finish_eval=$lt_finish_eval ! 17900: ! 17901: # Take the output of nm and produce a listing of raw symbols and C names. ! 17902: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 17903: ! 17904: # Transform the output of nm in a proper C declaration ! 17905: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 17906: ! 17907: # Transform the output of nm in a C name address pair ! 17908: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 17909: ! 17910: # This is the shared library runtime path variable. ! 17911: runpath_var=$runpath_var ! 17912: ! 17913: # This is the shared library path variable. ! 17914: shlibpath_var=$shlibpath_var ! 17915: ! 17916: # Is shlibpath searched before the hard-coded library search path? ! 17917: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 17918: ! 17919: # How to hardcode a shared library path into an executable. ! 17920: hardcode_action=$hardcode_action_F77 ! 17921: ! 17922: # Whether we should hardcode library paths into libraries. ! 17923: hardcode_into_libs=$hardcode_into_libs ! 17924: ! 17925: # Flag to hardcode \$libdir into a binary during linking. ! 17926: # This must work even if \$libdir does not exist. ! 17927: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 ! 17928: ! 17929: # If ld is used when linking, flag to hardcode \$libdir into ! 17930: # a binary during linking. This must work even if \$libdir does ! 17931: # not exist. ! 17932: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 ! 17933: ! 17934: # Whether we need a single -rpath flag with a separated argument. ! 17935: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 ! 17936: ! 17937: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 17938: # resulting binary. ! 17939: hardcode_direct=$hardcode_direct_F77 ! 17940: ! 17941: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 17942: # resulting binary. ! 17943: hardcode_minus_L=$hardcode_minus_L_F77 ! 17944: ! 17945: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 17946: # the resulting binary. ! 17947: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 ! 17948: ! 17949: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 17950: # and all subsequent libraries and executables linked against it. ! 17951: hardcode_automatic=$hardcode_automatic_F77 ! 17952: ! 17953: # Variables whose values should be saved in libtool wrapper scripts and ! 17954: # restored at relink time. ! 17955: variables_saved_for_relink="$variables_saved_for_relink" ! 17956: ! 17957: # Whether libtool must link a program against all its dependency libraries. ! 17958: link_all_deplibs=$link_all_deplibs_F77 ! 17959: ! 17960: # Compile-time system search path for libraries ! 17961: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 17962: ! 17963: # Run-time system search path for libraries ! 17964: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 17965: ! 17966: # Fix the shell variable \$srcfile for the compiler. ! 17967: fix_srcfile_path="$fix_srcfile_path_F77" ! 17968: ! 17969: # Set to yes if exported symbols are required. ! 17970: always_export_symbols=$always_export_symbols_F77 ! 17971: ! 17972: # The commands to list exported symbols. ! 17973: export_symbols_cmds=$lt_export_symbols_cmds_F77 ! 17974: ! 17975: # The commands to extract the exported symbol list from a shared archive. ! 17976: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 17977: ! 17978: # Symbols that should not be listed in the preloaded symbols. ! 17979: exclude_expsyms=$lt_exclude_expsyms_F77 ! 17980: ! 17981: # Symbols that must always be exported. ! 17982: include_expsyms=$lt_include_expsyms_F77 ! 17983: ! 17984: # ### END LIBTOOL TAG CONFIG: $tagname ! 17985: ! 17986: __EOF__ ! 17987: ! 17988: ! 17989: else ! 17990: # If there is no Makefile yet, we rely on a make rule to execute ! 17991: # `config.status --recheck' to rerun these tests and create the ! 17992: # libtool script then. ! 17993: test -f Makefile && make "$ltmain" ! 17994: fi ! 17995: ! 17996: ! 17997: ac_ext=c ! 17998: ac_cpp='$CPP $CPPFLAGS' ! 17999: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 18000: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 18001: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 18002: ! 18003: CC="$lt_save_CC" ! 18004: ! 18005: else ! 18006: tagname="" ! 18007: fi ! 18008: ;; ! 18009: ! 18010: GCJ) ! 18011: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then ! 18012: ! 18013: ! 18014: ! 18015: # Source file extension for Java test sources. ! 18016: ac_ext=java ! 18017: ! 18018: # Object file extension for compiled Java test sources. ! 18019: objext=o ! 18020: objext_GCJ=$objext ! 18021: ! 18022: # Code to be used in simple compile tests ! 18023: lt_simple_compile_test_code="class foo {}\n" ! 18024: ! 18025: # Code to be used in simple link tests ! 18026: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' ! 18027: ! 18028: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 18029: ! 18030: # If no C compiler was specified, use CC. ! 18031: LTCC=${LTCC-"$CC"} ! 18032: ! 18033: # Allow CC to be a program name with arguments. ! 18034: compiler=$CC ! 18035: ! 18036: ! 18037: # Allow CC to be a program name with arguments. ! 18038: lt_save_CC="$CC" ! 18039: CC=${GCJ-"gcj"} ! 18040: compiler=$CC ! 18041: compiler_GCJ=$CC ! 18042: ! 18043: # GCJ did not exist at the time GCC didn't implicitly link libc in. ! 18044: archive_cmds_need_lc_GCJ=no ! 18045: ! 18046: ! 18047: lt_prog_compiler_no_builtin_flag_GCJ= ! 18048: ! 18049: if test "$GCC" = yes; then ! 18050: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ! 18051: ! 18052: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ! 18053: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 ! 18054: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ! 18055: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18056: else ! 18057: lt_cv_prog_compiler_rtti_exceptions=no ! 18058: ac_outfile=conftest.$ac_objext ! 18059: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 18060: lt_compiler_flag="-fno-rtti -fno-exceptions" ! 18061: # Insert the option either (1) after the last *FLAGS variable, or ! 18062: # (2) before a word containing "conftest.", or (3) at the end. ! 18063: # Note that $ac_compile itself does not contain backslashes and begins ! 18064: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 18065: # The option is referenced via a variable to avoid confusing sed. ! 18066: lt_compile=`echo "$ac_compile" | $SED \ ! 18067: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 18068: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 18069: -e 's:$: $lt_compiler_flag:'` ! 18070: (eval echo "\"\$as_me:18070: $lt_compile\"" >&5) ! 18071: (eval "$lt_compile" 2>conftest.err) ! 18072: ac_status=$? ! 18073: cat conftest.err >&5 ! 18074: echo "$as_me:18074: \$? = $ac_status" >&5 ! 18075: if (exit $ac_status) && test -s "$ac_outfile"; then ! 18076: # The compiler can only warn and ignore the option if not recognized ! 18077: # So say no if there are warnings ! 18078: if test ! -s conftest.err; then ! 18079: lt_cv_prog_compiler_rtti_exceptions=yes ! 18080: fi ! 18081: fi ! 18082: $rm conftest* ! 18083: ! 18084: fi ! 18085: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ! 18086: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 ! 18087: ! 18088: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ! 18089: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" ! 18090: else ! 18091: : ! 18092: fi ! 18093: ! 18094: fi ! 18095: ! 18096: lt_prog_compiler_wl_GCJ= ! 18097: lt_prog_compiler_pic_GCJ= ! 18098: lt_prog_compiler_static_GCJ= ! 18099: ! 18100: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 18101: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 18102: ! 18103: if test "$GCC" = yes; then ! 18104: lt_prog_compiler_wl_GCJ='-Wl,' ! 18105: lt_prog_compiler_static_GCJ='-static' ! 18106: ! 18107: case $host_os in ! 18108: aix*) ! 18109: # All AIX code is PIC. ! 18110: if test "$host_cpu" = ia64; then ! 18111: # AIX 5 now supports IA64 processor ! 18112: lt_prog_compiler_static_GCJ='-Bstatic' ! 18113: fi ! 18114: ;; ! 18115: ! 18116: amigaos*) ! 18117: # FIXME: we need at least 68020 code to build shared libraries, but ! 18118: # adding the `-m68020' flag to GCC prevents building anything better, ! 18119: # like `-m68040'. ! 18120: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ! 18121: ;; ! 18122: ! 18123: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 18124: # PIC is the default for these OSes. ! 18125: ;; ! 18126: ! 18127: mingw* | pw32* | os2*) ! 18128: # This hack is so that the source file can tell whether it is being ! 18129: # built for inclusion in a dll (and should export symbols for example). ! 18130: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ! 18131: ;; ! 18132: ! 18133: darwin* | rhapsody*) ! 18134: # PIC is the default on this platform ! 18135: # Common symbols not allowed in MH_DYLIB files ! 18136: lt_prog_compiler_pic_GCJ='-fno-common' ! 18137: ;; ! 18138: ! 18139: msdosdjgpp*) ! 18140: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 18141: # on systems that don't support them. ! 18142: lt_prog_compiler_can_build_shared_GCJ=no ! 18143: enable_shared=no ! 18144: ;; ! 18145: ! 18146: sysv4*MP*) ! 18147: if test -d /usr/nec; then ! 18148: lt_prog_compiler_pic_GCJ=-Kconform_pic ! 18149: fi ! 18150: ;; ! 18151: ! 18152: hpux*) ! 18153: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 18154: # not for PA HP-UX. ! 18155: case "$host_cpu" in ! 18156: hppa*64*|ia64*) ! 18157: # +Z the default ! 18158: ;; ! 18159: *) ! 18160: lt_prog_compiler_pic_GCJ='-fPIC' ! 18161: ;; ! 18162: esac ! 18163: ;; ! 18164: ! 18165: *) ! 18166: lt_prog_compiler_pic_GCJ='-fPIC' ! 18167: ;; ! 18168: esac ! 18169: else ! 18170: # PORTME Check for flag to pass linker flags through the system compiler. ! 18171: case $host_os in ! 18172: aix*) ! 18173: lt_prog_compiler_wl_GCJ='-Wl,' ! 18174: if test "$host_cpu" = ia64; then ! 18175: # AIX 5 now supports IA64 processor ! 18176: lt_prog_compiler_static_GCJ='-Bstatic' ! 18177: else ! 18178: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' ! 18179: fi ! 18180: ;; ! 18181: ! 18182: mingw* | pw32* | os2*) ! 18183: # This hack is so that the source file can tell whether it is being ! 18184: # built for inclusion in a dll (and should export symbols for example). ! 18185: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ! 18186: ;; ! 18187: ! 18188: hpux9* | hpux10* | hpux11*) ! 18189: lt_prog_compiler_wl_GCJ='-Wl,' ! 18190: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 18191: # not for PA HP-UX. ! 18192: case "$host_cpu" in ! 18193: hppa*64*|ia64*) ! 18194: # +Z the default ! 18195: ;; ! 18196: *) ! 18197: lt_prog_compiler_pic_GCJ='+Z' ! 18198: ;; ! 18199: esac ! 18200: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 18201: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ! 18202: ;; ! 18203: ! 18204: irix5* | irix6* | nonstopux*) ! 18205: lt_prog_compiler_wl_GCJ='-Wl,' ! 18206: # PIC (with -KPIC) is the default. ! 18207: lt_prog_compiler_static_GCJ='-non_shared' ! 18208: ;; ! 18209: ! 18210: newsos6) ! 18211: lt_prog_compiler_pic_GCJ='-KPIC' ! 18212: lt_prog_compiler_static_GCJ='-Bstatic' ! 18213: ;; ! 18214: ! 18215: linux*) ! 18216: case $CC in ! 18217: icc|ecc) ! 18218: lt_prog_compiler_wl_GCJ='-Wl,' ! 18219: lt_prog_compiler_pic_GCJ='-KPIC' ! 18220: lt_prog_compiler_static_GCJ='-static' ! 18221: ;; ! 18222: ccc) ! 18223: lt_prog_compiler_wl_GCJ='-Wl,' ! 18224: # All Alpha code is PIC. ! 18225: lt_prog_compiler_static_GCJ='-non_shared' ! 18226: ;; ! 18227: esac ! 18228: ;; ! 18229: ! 18230: osf3* | osf4* | osf5*) ! 18231: lt_prog_compiler_wl_GCJ='-Wl,' ! 18232: # All OSF/1 code is PIC. ! 18233: lt_prog_compiler_static_GCJ='-non_shared' ! 18234: ;; ! 18235: ! 18236: sco3.2v5*) ! 18237: lt_prog_compiler_pic_GCJ='-Kpic' ! 18238: lt_prog_compiler_static_GCJ='-dn' ! 18239: ;; ! 18240: ! 18241: solaris*) ! 18242: lt_prog_compiler_wl_GCJ='-Wl,' ! 18243: lt_prog_compiler_pic_GCJ='-KPIC' ! 18244: lt_prog_compiler_static_GCJ='-Bstatic' ! 18245: ;; ! 18246: ! 18247: sunos4*) ! 18248: lt_prog_compiler_wl_GCJ='-Qoption ld ' ! 18249: lt_prog_compiler_pic_GCJ='-PIC' ! 18250: lt_prog_compiler_static_GCJ='-Bstatic' ! 18251: ;; ! 18252: ! 18253: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 18254: lt_prog_compiler_wl_GCJ='-Wl,' ! 18255: lt_prog_compiler_pic_GCJ='-KPIC' ! 18256: lt_prog_compiler_static_GCJ='-Bstatic' ! 18257: ;; ! 18258: ! 18259: sysv4*MP*) ! 18260: if test -d /usr/nec ;then ! 18261: lt_prog_compiler_pic_GCJ='-Kconform_pic' ! 18262: lt_prog_compiler_static_GCJ='-Bstatic' ! 18263: fi ! 18264: ;; ! 18265: ! 18266: uts4*) ! 18267: lt_prog_compiler_pic_GCJ='-pic' ! 18268: lt_prog_compiler_static_GCJ='-Bstatic' ! 18269: ;; ! 18270: ! 18271: *) ! 18272: lt_prog_compiler_can_build_shared_GCJ=no ! 18273: ;; ! 18274: esac ! 18275: fi ! 18276: ! 18277: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 ! 18278: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 ! 18279: ! 18280: # ! 18281: # Check to make sure the PIC flag actually works. ! 18282: # ! 18283: if test -n "$lt_prog_compiler_pic_GCJ"; then ! 18284: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 ! 18285: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 ! 18286: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then ! 18287: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18288: else ! 18289: lt_prog_compiler_pic_works_GCJ=no ! 18290: ac_outfile=conftest.$ac_objext ! 18291: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 18292: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" ! 18293: # Insert the option either (1) after the last *FLAGS variable, or ! 18294: # (2) before a word containing "conftest.", or (3) at the end. ! 18295: # Note that $ac_compile itself does not contain backslashes and begins ! 18296: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 18297: # The option is referenced via a variable to avoid confusing sed. ! 18298: lt_compile=`echo "$ac_compile" | $SED \ ! 18299: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 18300: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 18301: -e 's:$: $lt_compiler_flag:'` ! 18302: (eval echo "\"\$as_me:18302: $lt_compile\"" >&5) ! 18303: (eval "$lt_compile" 2>conftest.err) ! 18304: ac_status=$? ! 18305: cat conftest.err >&5 ! 18306: echo "$as_me:18306: \$? = $ac_status" >&5 ! 18307: if (exit $ac_status) && test -s "$ac_outfile"; then ! 18308: # The compiler can only warn and ignore the option if not recognized ! 18309: # So say no if there are warnings ! 18310: if test ! -s conftest.err; then ! 18311: lt_prog_compiler_pic_works_GCJ=yes ! 18312: fi ! 18313: fi ! 18314: $rm conftest* ! 18315: ! 18316: fi ! 18317: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 ! 18318: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 ! 18319: ! 18320: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then ! 18321: case $lt_prog_compiler_pic_GCJ in ! 18322: "" | " "*) ;; ! 18323: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; ! 18324: esac ! 18325: else ! 18326: lt_prog_compiler_pic_GCJ= ! 18327: lt_prog_compiler_can_build_shared_GCJ=no ! 18328: fi ! 18329: ! 18330: fi ! 18331: case "$host_os" in ! 18332: # For platforms which do not support PIC, -DPIC is meaningless: ! 18333: *djgpp*) ! 18334: lt_prog_compiler_pic_GCJ= ! 18335: ;; ! 18336: *) ! 18337: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ! 18338: ;; ! 18339: esac ! 18340: ! 18341: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 18342: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 18343: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then ! 18344: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18345: else ! 18346: lt_cv_prog_compiler_c_o_GCJ=no ! 18347: $rm -r conftest 2>/dev/null ! 18348: mkdir conftest ! 18349: cd conftest ! 18350: mkdir out ! 18351: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 18352: ! 18353: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 18354: # that will create temporary files in the current directory regardless of ! 18355: # the output directory. Thus, making CWD read-only will cause this test ! 18356: # to fail, enabling locking or at least warning the user not to do parallel ! 18357: # builds. ! 18358: chmod -w . ! 18359: ! 18360: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 18361: # Insert the option either (1) after the last *FLAGS variable, or ! 18362: # (2) before a word containing "conftest.", or (3) at the end. ! 18363: # Note that $ac_compile itself does not contain backslashes and begins ! 18364: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 18365: lt_compile=`echo "$ac_compile" | $SED \ ! 18366: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 18367: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 18368: -e 's:$: $lt_compiler_flag:'` ! 18369: (eval echo "\"\$as_me:18369: $lt_compile\"" >&5) ! 18370: (eval "$lt_compile" 2>out/conftest.err) ! 18371: ac_status=$? ! 18372: cat out/conftest.err >&5 ! 18373: echo "$as_me:18373: \$? = $ac_status" >&5 ! 18374: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 18375: then ! 18376: # The compiler can only warn and ignore the option if not recognized ! 18377: # So say no if there are warnings ! 18378: if test ! -s out/conftest.err; then ! 18379: lt_cv_prog_compiler_c_o_GCJ=yes ! 18380: fi ! 18381: fi ! 18382: chmod u+w . ! 18383: $rm conftest* out/* ! 18384: rmdir out ! 18385: cd .. ! 18386: rmdir conftest ! 18387: $rm conftest* ! 18388: ! 18389: fi ! 18390: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 ! 18391: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 ! 18392: ! 18393: ! 18394: hard_links="nottested" ! 18395: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then ! 18396: # do not overwrite the value of need_locks provided by the user ! 18397: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 18398: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 18399: hard_links=yes ! 18400: $rm conftest* ! 18401: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 18402: touch conftest.a ! 18403: ln conftest.a conftest.b 2>&5 || hard_links=no ! 18404: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 18405: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 18406: echo "${ECHO_T}$hard_links" >&6 ! 18407: if test "$hard_links" = no; then ! 18408: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 18409: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 18410: need_locks=warn ! 18411: fi ! 18412: else ! 18413: need_locks=no ! 18414: fi ! 18415: ! 18416: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 18417: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 18418: ! 18419: runpath_var= ! 18420: allow_undefined_flag_GCJ= ! 18421: enable_shared_with_static_runtimes_GCJ=no ! 18422: archive_cmds_GCJ= ! 18423: archive_expsym_cmds_GCJ= ! 18424: old_archive_From_new_cmds_GCJ= ! 18425: old_archive_from_expsyms_cmds_GCJ= ! 18426: export_dynamic_flag_spec_GCJ= ! 18427: whole_archive_flag_spec_GCJ= ! 18428: thread_safe_flag_spec_GCJ= ! 18429: hardcode_libdir_flag_spec_GCJ= ! 18430: hardcode_libdir_flag_spec_ld_GCJ= ! 18431: hardcode_libdir_separator_GCJ= ! 18432: hardcode_direct_GCJ=no ! 18433: hardcode_minus_L_GCJ=no ! 18434: hardcode_shlibpath_var_GCJ=unsupported ! 18435: link_all_deplibs_GCJ=unknown ! 18436: hardcode_automatic_GCJ=no ! 18437: module_cmds_GCJ= ! 18438: module_expsym_cmds_GCJ= ! 18439: always_export_symbols_GCJ=no ! 18440: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 18441: # include_expsyms should be a list of space-separated symbols to be *always* ! 18442: # included in the symbol list ! 18443: include_expsyms_GCJ= ! 18444: # exclude_expsyms can be an extended regexp of symbols to exclude ! 18445: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 18446: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 18447: # as well as any symbol that contains `d'. ! 18448: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" ! 18449: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 18450: # platforms (ab)use it in PIC code, but their linkers get confused if ! 18451: # the symbol is explicitly referenced. Since portable code cannot ! 18452: # rely on this symbol name, it's probably fine to never include it in ! 18453: # preloaded symbol tables. ! 18454: extract_expsyms_cmds= ! 18455: ! 18456: case $host_os in ! 18457: cygwin* | mingw* | pw32*) ! 18458: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 18459: # When not using gcc, we currently assume that we are using ! 18460: # Microsoft Visual C++. ! 18461: if test "$GCC" != yes; then ! 18462: with_gnu_ld=no ! 18463: fi ! 18464: ;; ! 18465: openbsd*) ! 18466: with_gnu_ld=no ! 18467: ;; ! 18468: esac ! 18469: ! 18470: ld_shlibs_GCJ=yes ! 18471: if test "$with_gnu_ld" = yes; then ! 18472: # If archive_cmds runs LD, not CC, wlarc should be empty ! 18473: wlarc='${wl}' ! 18474: ! 18475: # See if GNU ld supports shared libraries. ! 18476: case $host_os in ! 18477: aix3* | aix4* | aix5*) ! 18478: # On AIX/PPC, the GNU linker is very broken ! 18479: if test "$host_cpu" != ia64; then ! 18480: ld_shlibs_GCJ=no ! 18481: cat <<EOF 1>&2 ! 18482: ! 18483: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 18484: *** to be unable to reliably create shared libraries on AIX. ! 18485: *** Therefore, libtool is disabling shared libraries support. If you ! 18486: *** really care for shared libraries, you may want to modify your PATH ! 18487: *** so that a non-GNU linker is found, and then restart. ! 18488: ! 18489: EOF ! 18490: fi ! 18491: ;; ! 18492: ! 18493: amigaos*) ! 18494: 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)' ! 18495: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18496: hardcode_minus_L_GCJ=yes ! 18497: ! 18498: # Samuel A. Falvo II <[email protected]> reports ! 18499: # that the semantics of dynamic libraries on AmigaOS, at least up ! 18500: # to version 4, is to share data among multiple programs linked ! 18501: # with the same dynamic library. Since this doesn't match the ! 18502: # behavior of shared libraries on other platforms, we can't use ! 18503: # them. ! 18504: ld_shlibs_GCJ=no ! 18505: ;; ! 18506: ! 18507: beos*) ! 18508: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 18509: allow_undefined_flag_GCJ=unsupported ! 18510: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 18511: # support --undefined. This deserves some investigation. FIXME ! 18512: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 18513: else ! 18514: ld_shlibs_GCJ=no ! 18515: fi ! 18516: ;; ! 18517: ! 18518: cygwin* | mingw* | pw32*) ! 18519: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, ! 18520: # as there is no search path for DLLs. ! 18521: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18522: allow_undefined_flag_GCJ=unsupported ! 18523: always_export_symbols_GCJ=no ! 18524: enable_shared_with_static_runtimes_GCJ=yes ! 18525: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 18526: ! 18527: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 18528: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 18529: # If the export-symbols file already is a .def file (1st line ! 18530: # is EXPORTS), use it as is; otherwise, prepend... ! 18531: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 18532: cp $export_symbols $output_objdir/$soname.def; ! 18533: else ! 18534: echo EXPORTS > $output_objdir/$soname.def; ! 18535: cat $export_symbols >> $output_objdir/$soname.def; ! 18536: fi~ ! 18537: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 18538: else ! 18539: ld_shlibs=no ! 18540: fi ! 18541: ;; ! 18542: ! 18543: netbsd*) ! 18544: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 18545: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 18546: wlarc= ! 18547: else ! 18548: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 18549: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 18550: fi ! 18551: ;; ! 18552: ! 18553: solaris* | sysv5*) ! 18554: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 18555: ld_shlibs_GCJ=no ! 18556: cat <<EOF 1>&2 ! 18557: ! 18558: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 18559: *** create shared libraries on Solaris systems. Therefore, libtool ! 18560: *** is disabling shared libraries support. We urge you to upgrade GNU ! 18561: *** binutils to release 2.9.1 or newer. Another option is to modify ! 18562: *** your PATH or compiler configuration so that the native linker is ! 18563: *** used, and then restart. ! 18564: ! 18565: EOF ! 18566: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 18567: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 18568: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 18569: else ! 18570: ld_shlibs_GCJ=no ! 18571: fi ! 18572: ;; ! 18573: ! 18574: sunos4*) ! 18575: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 18576: wlarc= ! 18577: hardcode_direct_GCJ=yes ! 18578: hardcode_shlibpath_var_GCJ=no ! 18579: ;; ! 18580: ! 18581: *) ! 18582: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 18583: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 18584: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 18585: else ! 18586: ld_shlibs_GCJ=no ! 18587: fi ! 18588: ;; ! 18589: esac ! 18590: ! 18591: if test "$ld_shlibs_GCJ" = yes; then ! 18592: runpath_var=LD_RUN_PATH ! 18593: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' ! 18594: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' ! 18595: # ancient GNU ld didn't support --whole-archive et. al. ! 18596: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 18597: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 18598: else ! 18599: whole_archive_flag_spec_GCJ= ! 18600: fi ! 18601: fi ! 18602: else ! 18603: # PORTME fill in a description of your system's linker (not GNU ld) ! 18604: case $host_os in ! 18605: aix3*) ! 18606: allow_undefined_flag_GCJ=unsupported ! 18607: always_export_symbols_GCJ=yes ! 18608: 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' ! 18609: # Note: this linker hardcodes the directories in LIBPATH if there ! 18610: # are no directories specified by -L. ! 18611: hardcode_minus_L_GCJ=yes ! 18612: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 18613: # Neither direct hardcoding nor static linking is supported with a ! 18614: # broken collect2. ! 18615: hardcode_direct_GCJ=unsupported ! 18616: fi ! 18617: ;; ! 18618: ! 18619: aix4* | aix5*) ! 18620: if test "$host_cpu" = ia64; then ! 18621: # On IA64, the linker does run time linking by default, so we don't ! 18622: # have to do anything special. ! 18623: aix_use_runtimelinking=no ! 18624: exp_sym_flag='-Bexport' ! 18625: no_entry_flag="" ! 18626: else ! 18627: # If we're using GNU nm, then we don't want the "-C" option. ! 18628: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 18629: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 18630: 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' ! 18631: else ! 18632: 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' ! 18633: fi ! 18634: aix_use_runtimelinking=no ! 18635: ! 18636: # Test if we are trying to use run time linking or normal ! 18637: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 18638: # need to do runtime linking. ! 18639: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 18640: for ld_flag in $LDFLAGS; do ! 18641: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 18642: aix_use_runtimelinking=yes ! 18643: break ! 18644: fi ! 18645: done ! 18646: esac ! 18647: ! 18648: exp_sym_flag='-bexport' ! 18649: no_entry_flag='-bnoentry' ! 18650: fi ! 18651: ! 18652: # When large executables or shared objects are built, AIX ld can ! 18653: # have problems creating the table of contents. If linking a library ! 18654: # or program results in "error TOC overflow" add -mminimal-toc to ! 18655: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 18656: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 18657: ! 18658: archive_cmds_GCJ='' ! 18659: hardcode_direct_GCJ=yes ! 18660: hardcode_libdir_separator_GCJ=':' ! 18661: link_all_deplibs_GCJ=yes ! 18662: ! 18663: if test "$GCC" = yes; then ! 18664: case $host_os in aix4.012|aix4.012.*) ! 18665: # We only want to do this on AIX 4.2 and lower, the check ! 18666: # below for broken collect2 doesn't work under 4.3+ ! 18667: collect2name=`${CC} -print-prog-name=collect2` ! 18668: if test -f "$collect2name" && \ ! 18669: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 18670: then ! 18671: # We have reworked collect2 ! 18672: hardcode_direct_GCJ=yes ! 18673: else ! 18674: # We have old collect2 ! 18675: hardcode_direct_GCJ=unsupported ! 18676: # It fails to find uninstalled libraries when the uninstalled ! 18677: # path is not listed in the libpath. Setting hardcode_minus_L ! 18678: # to unsupported forces relinking ! 18679: hardcode_minus_L_GCJ=yes ! 18680: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18681: hardcode_libdir_separator_GCJ= ! 18682: fi ! 18683: esac ! 18684: shared_flag='-shared' ! 18685: else ! 18686: # not using gcc ! 18687: if test "$host_cpu" = ia64; then ! 18688: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 18689: # chokes on -Wl,-G. The following line is correct: ! 18690: shared_flag='-G' ! 18691: else ! 18692: if test "$aix_use_runtimelinking" = yes; then ! 18693: shared_flag='${wl}-G' ! 18694: else ! 18695: shared_flag='${wl}-bM:SRE' ! 18696: fi ! 18697: fi ! 18698: fi ! 18699: ! 18700: # It seems that -bexpall does not export symbols beginning with ! 18701: # underscore (_), so it is better to generate a list of symbols to export. ! 18702: always_export_symbols_GCJ=yes ! 18703: if test "$aix_use_runtimelinking" = yes; then ! 18704: # Warning - without using the other runtime loading flags (-brtl), ! 18705: # -berok will link without error, but may produce a broken library. ! 18706: allow_undefined_flag_GCJ='-berok' ! 18707: # Determine the default libpath from the value encoded in an empty executable. ! 18708: cat >conftest.$ac_ext <<_ACEOF ! 18709: #line $LINENO "configure" ! 18710: /* confdefs.h. */ ! 18711: _ACEOF ! 18712: cat confdefs.h >>conftest.$ac_ext ! 18713: cat >>conftest.$ac_ext <<_ACEOF ! 18714: /* end confdefs.h. */ ! 18715: ! 18716: int ! 18717: main () ! 18718: { ! 18719: ! 18720: ; ! 18721: return 0; ! 18722: } ! 18723: _ACEOF ! 18724: rm -f conftest.$ac_objext conftest$ac_exeext ! 18725: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18726: (eval $ac_link) 2>&5 ! 18727: ac_status=$? ! 18728: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18729: (exit $ac_status); } && ! 18730: { ac_try='test -s conftest$ac_exeext' ! 18731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18732: (eval $ac_try) 2>&5 ! 18733: ac_status=$? ! 18734: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18735: (exit $ac_status); }; }; then ! 18736: ! 18737: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 18738: }'` ! 18739: # Check for a 64-bit object if we didn't find anything. ! 18740: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 18741: }'`; fi ! 18742: else ! 18743: echo "$as_me: failed program was:" >&5 ! 18744: sed 's/^/| /' conftest.$ac_ext >&5 ! 18745: ! 18746: fi ! 18747: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18748: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 18749: ! 18750: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" ! 18751: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 18752: else ! 18753: if test "$host_cpu" = ia64; then ! 18754: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' ! 18755: allow_undefined_flag_GCJ="-z nodefs" ! 18756: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 18757: else ! 18758: # Determine the default libpath from the value encoded in an empty executable. ! 18759: cat >conftest.$ac_ext <<_ACEOF ! 18760: #line $LINENO "configure" ! 18761: /* confdefs.h. */ ! 18762: _ACEOF ! 18763: cat confdefs.h >>conftest.$ac_ext ! 18764: cat >>conftest.$ac_ext <<_ACEOF ! 18765: /* end confdefs.h. */ ! 18766: ! 18767: int ! 18768: main () ! 18769: { ! 18770: ! 18771: ; ! 18772: return 0; ! 18773: } ! 18774: _ACEOF ! 18775: rm -f conftest.$ac_objext conftest$ac_exeext ! 18776: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18777: (eval $ac_link) 2>&5 ! 18778: ac_status=$? ! 18779: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18780: (exit $ac_status); } && ! 18781: { ac_try='test -s conftest$ac_exeext' ! 18782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18783: (eval $ac_try) 2>&5 ! 18784: ac_status=$? ! 18785: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18786: (exit $ac_status); }; }; then ! 18787: ! 18788: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 18789: }'` ! 18790: # Check for a 64-bit object if we didn't find anything. ! 18791: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 18792: }'`; fi ! 18793: else ! 18794: echo "$as_me: failed program was:" >&5 ! 18795: sed 's/^/| /' conftest.$ac_ext >&5 ! 18796: ! 18797: fi ! 18798: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18799: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 18800: ! 18801: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" ! 18802: # Warning - without using the other run time loading flags, ! 18803: # -berok will link without error, but may produce a broken library. ! 18804: no_undefined_flag_GCJ=' ${wl}-bernotok' ! 18805: allow_undefined_flag_GCJ=' ${wl}-berok' ! 18806: # -bexpall does not export symbols beginning with underscore (_) ! 18807: always_export_symbols_GCJ=yes ! 18808: # Exported symbols can be pulled into shared objects from archives ! 18809: whole_archive_flag_spec_GCJ=' ' ! 18810: archive_cmds_need_lc_GCJ=yes ! 18811: # This is similar to how AIX traditionally builds it's shared libraries. ! 18812: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 18813: fi ! 18814: fi ! 18815: ;; ! 18816: ! 18817: amigaos*) ! 18818: 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)' ! 18819: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18820: hardcode_minus_L_GCJ=yes ! 18821: # see comment about different semantics on the GNU ld section ! 18822: ld_shlibs_GCJ=no ! 18823: ;; ! 18824: ! 18825: bsdi4*) ! 18826: export_dynamic_flag_spec_GCJ=-rdynamic ! 18827: ;; ! 18828: ! 18829: cygwin* | mingw* | pw32*) ! 18830: # When not using gcc, we currently assume that we are using ! 18831: # Microsoft Visual C++. ! 18832: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 18833: # no search path for DLLs. ! 18834: hardcode_libdir_flag_spec_GCJ=' ' ! 18835: allow_undefined_flag_GCJ=unsupported ! 18836: # Tell ltmain to make .lib files, not .a files. ! 18837: libext=lib ! 18838: # Tell ltmain to make .dll files, not .so files. ! 18839: shrext=".dll" ! 18840: # FIXME: Setting linknames here is a bad hack. ! 18841: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 18842: # The linker will automatically build a .lib file if we build a DLL. ! 18843: old_archive_From_new_cmds_GCJ='true' ! 18844: # FIXME: Should let the user specify the lib program. ! 18845: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 18846: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 18847: enable_shared_with_static_runtimes_GCJ=yes ! 18848: ;; ! 18849: ! 18850: darwin* | rhapsody*) ! 18851: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 18852: archive_cmds_need_lc_GCJ=no ! 18853: case "$host_os" in ! 18854: rhapsody* | darwin1.[012]) ! 18855: allow_undefined_flag_GCJ='-undefined suppress' ! 18856: ;; ! 18857: *) # Darwin 1.3 on ! 18858: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' ! 18859: ;; ! 18860: esac ! 18861: # FIXME: Relying on posixy $() will cause problems for ! 18862: # cross-compilation, but unfortunately the echo tests do not ! 18863: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 18864: # `"' quotes if we put them in here... so don't! ! 18865: lt_int_apple_cc_single_mod=no ! 18866: output_verbose_link_cmd='echo' ! 18867: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 18868: lt_int_apple_cc_single_mod=yes ! 18869: fi ! 18870: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 18871: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 18872: else ! 18873: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' ! 18874: fi ! 18875: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 18876: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 18877: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 18878: archive_expsym_cmds_GCJ='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}' ! 18879: else ! 18880: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' ! 18881: fi ! 18882: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 18883: hardcode_direct_GCJ=no ! 18884: hardcode_automatic_GCJ=yes ! 18885: hardcode_shlibpath_var_GCJ=unsupported ! 18886: whole_archive_flag_spec_GCJ='-all_load $convenience' ! 18887: link_all_deplibs_GCJ=yes ! 18888: fi ! 18889: ;; ! 18890: ! 18891: dgux*) ! 18892: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 18893: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18894: hardcode_shlibpath_var_GCJ=no ! 18895: ;; ! 18896: ! 18897: freebsd1*) ! 18898: ld_shlibs_GCJ=no ! 18899: ;; ! 18900: ! 18901: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 18902: # support. Future versions do this automatically, but an explicit c++rt0.o ! 18903: # does not break anything, and helps significantly (at the cost of a little ! 18904: # extra space). ! 18905: freebsd2.2*) ! 18906: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 18907: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 18908: hardcode_direct_GCJ=yes ! 18909: hardcode_shlibpath_var_GCJ=no ! 18910: ;; ! 18911: ! 18912: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 18913: freebsd2*) ! 18914: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 18915: hardcode_direct_GCJ=yes ! 18916: hardcode_minus_L_GCJ=yes ! 18917: hardcode_shlibpath_var_GCJ=no ! 18918: ;; ! 18919: ! 18920: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 18921: freebsd*) ! 18922: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 18923: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 18924: hardcode_direct_GCJ=yes ! 18925: hardcode_shlibpath_var_GCJ=no ! 18926: ;; ! 18927: ! 18928: hpux9*) ! 18929: if test "$GCC" = yes; then ! 18930: 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' ! 18931: else ! 18932: 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' ! 18933: fi ! 18934: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 18935: hardcode_libdir_separator_GCJ=: ! 18936: hardcode_direct_GCJ=yes ! 18937: ! 18938: # hardcode_minus_L: Not really in the search PATH, ! 18939: # but as the default location of the library. ! 18940: hardcode_minus_L_GCJ=yes ! 18941: export_dynamic_flag_spec_GCJ='${wl}-E' ! 18942: ;; ! 18943: ! 18944: hpux10* | hpux11*) ! 18945: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 18946: case "$host_cpu" in ! 18947: hppa*64*|ia64*) ! 18948: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 18949: ;; ! 18950: *) ! 18951: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 18952: ;; ! 18953: esac ! 18954: else ! 18955: case "$host_cpu" in ! 18956: hppa*64*|ia64*) ! 18957: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 18958: ;; ! 18959: *) ! 18960: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 18961: ;; ! 18962: esac ! 18963: fi ! 18964: if test "$with_gnu_ld" = no; then ! 18965: case "$host_cpu" in ! 18966: hppa*64*) ! 18967: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 18968: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' ! 18969: hardcode_libdir_separator_GCJ=: ! 18970: hardcode_direct_GCJ=no ! 18971: hardcode_shlibpath_var_GCJ=no ! 18972: ;; ! 18973: ia64*) ! 18974: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 18975: hardcode_direct_GCJ=no ! 18976: hardcode_shlibpath_var_GCJ=no ! 18977: ! 18978: # hardcode_minus_L: Not really in the search PATH, ! 18979: # but as the default location of the library. ! 18980: hardcode_minus_L_GCJ=yes ! 18981: ;; ! 18982: *) ! 18983: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 18984: hardcode_libdir_separator_GCJ=: ! 18985: hardcode_direct_GCJ=yes ! 18986: export_dynamic_flag_spec_GCJ='${wl}-E' ! 18987: ! 18988: # hardcode_minus_L: Not really in the search PATH, ! 18989: # but as the default location of the library. ! 18990: hardcode_minus_L_GCJ=yes ! 18991: ;; ! 18992: esac ! 18993: fi ! 18994: ;; ! 18995: ! 18996: irix5* | irix6* | nonstopux*) ! 18997: if test "$GCC" = yes; then ! 18998: 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' ! 18999: else ! 19000: 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' ! 19001: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' ! 19002: fi ! 19003: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 19004: hardcode_libdir_separator_GCJ=: ! 19005: link_all_deplibs_GCJ=yes ! 19006: ;; ! 19007: ! 19008: netbsd*) ! 19009: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 19010: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 19011: else ! 19012: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 19013: fi ! 19014: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 19015: hardcode_direct_GCJ=yes ! 19016: hardcode_shlibpath_var_GCJ=no ! 19017: ;; ! 19018: ! 19019: newsos6) ! 19020: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19021: hardcode_direct_GCJ=yes ! 19022: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 19023: hardcode_libdir_separator_GCJ=: ! 19024: hardcode_shlibpath_var_GCJ=no ! 19025: ;; ! 19026: ! 19027: openbsd*) ! 19028: hardcode_direct_GCJ=yes ! 19029: hardcode_shlibpath_var_GCJ=no ! 19030: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 19031: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 19032: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ! 19033: export_dynamic_flag_spec_GCJ='${wl}-E' ! 19034: else ! 19035: case $host_os in ! 19036: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 19037: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 19038: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 19039: ;; ! 19040: *) ! 19041: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 19042: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ! 19043: ;; ! 19044: esac ! 19045: fi ! 19046: ;; ! 19047: ! 19048: os2*) ! 19049: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 19050: hardcode_minus_L_GCJ=yes ! 19051: allow_undefined_flag_GCJ=unsupported ! 19052: 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' ! 19053: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 19054: ;; ! 19055: ! 19056: osf3*) ! 19057: if test "$GCC" = yes; then ! 19058: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' ! 19059: 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' ! 19060: else ! 19061: allow_undefined_flag_GCJ=' -expect_unresolved \*' ! 19062: 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' ! 19063: fi ! 19064: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 19065: hardcode_libdir_separator_GCJ=: ! 19066: ;; ! 19067: ! 19068: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 19069: if test "$GCC" = yes; then ! 19070: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' ! 19071: 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' ! 19072: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 19073: else ! 19074: allow_undefined_flag_GCJ=' -expect_unresolved \*' ! 19075: 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' ! 19076: 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~ ! 19077: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 19078: ! 19079: # Both c and cxx compiler support -rpath directly ! 19080: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' ! 19081: fi ! 19082: hardcode_libdir_separator_GCJ=: ! 19083: ;; ! 19084: ! 19085: sco3.2v5*) ! 19086: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19087: hardcode_shlibpath_var_GCJ=no ! 19088: export_dynamic_flag_spec_GCJ='${wl}-Bexport' ! 19089: runpath_var=LD_RUN_PATH ! 19090: hardcode_runpath_var=yes ! 19091: ;; ! 19092: ! 19093: solaris*) ! 19094: no_undefined_flag_GCJ=' -z text' ! 19095: if test "$GCC" = yes; then ! 19096: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 19097: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 19098: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 19099: else ! 19100: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19101: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 19102: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 19103: fi ! 19104: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 19105: hardcode_shlibpath_var_GCJ=no ! 19106: case $host_os in ! 19107: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 19108: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 19109: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; ! 19110: esac ! 19111: link_all_deplibs_GCJ=yes ! 19112: ;; ! 19113: ! 19114: sunos4*) ! 19115: if test "x$host_vendor" = xsequent; then ! 19116: # Use $CC to link under sequent, because it throws in some extra .o ! 19117: # files that make .init and .fini sections work. ! 19118: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 19119: else ! 19120: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 19121: fi ! 19122: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 19123: hardcode_direct_GCJ=yes ! 19124: hardcode_minus_L_GCJ=yes ! 19125: hardcode_shlibpath_var_GCJ=no ! 19126: ;; ! 19127: ! 19128: sysv4) ! 19129: case $host_vendor in ! 19130: sni) ! 19131: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19132: hardcode_direct_GCJ=yes # is this really true??? ! 19133: ;; ! 19134: siemens) ! 19135: ## LD is ld it makes a PLAMLIB ! 19136: ## CC just makes a GrossModule. ! 19137: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 19138: reload_cmds_GCJ='$CC -r -o $output$reload_objs' ! 19139: hardcode_direct_GCJ=no ! 19140: ;; ! 19141: motorola) ! 19142: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19143: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ! 19144: ;; ! 19145: esac ! 19146: runpath_var='LD_RUN_PATH' ! 19147: hardcode_shlibpath_var_GCJ=no ! 19148: ;; ! 19149: ! 19150: sysv4.3*) ! 19151: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19152: hardcode_shlibpath_var_GCJ=no ! 19153: export_dynamic_flag_spec_GCJ='-Bexport' ! 19154: ;; ! 19155: ! 19156: sysv4*MP*) ! 19157: if test -d /usr/nec; then ! 19158: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19159: hardcode_shlibpath_var_GCJ=no ! 19160: runpath_var=LD_RUN_PATH ! 19161: hardcode_runpath_var=yes ! 19162: ld_shlibs_GCJ=yes ! 19163: fi ! 19164: ;; ! 19165: ! 19166: sysv4.2uw2*) ! 19167: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 19168: hardcode_direct_GCJ=yes ! 19169: hardcode_minus_L_GCJ=no ! 19170: hardcode_shlibpath_var_GCJ=no ! 19171: hardcode_runpath_var=yes ! 19172: runpath_var=LD_RUN_PATH ! 19173: ;; ! 19174: ! 19175: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 19176: no_undefined_flag_GCJ='${wl}-z ${wl}text' ! 19177: if test "$GCC" = yes; then ! 19178: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 19179: else ! 19180: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 19181: fi ! 19182: runpath_var='LD_RUN_PATH' ! 19183: hardcode_shlibpath_var_GCJ=no ! 19184: ;; ! 19185: ! 19186: sysv5*) ! 19187: no_undefined_flag_GCJ=' -z text' ! 19188: # $CC -shared without GNU ld will not create a library from C++ ! 19189: # object files and a static libstdc++, better avoid it by now ! 19190: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19191: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 19192: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 19193: hardcode_libdir_flag_spec_GCJ= ! 19194: hardcode_shlibpath_var_GCJ=no ! 19195: runpath_var='LD_RUN_PATH' ! 19196: ;; ! 19197: ! 19198: uts4*) ! 19199: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 19200: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 19201: hardcode_shlibpath_var_GCJ=no ! 19202: ;; ! 19203: ! 19204: *) ! 19205: ld_shlibs_GCJ=no ! 19206: ;; ! 19207: esac ! 19208: fi ! 19209: ! 19210: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 ! 19211: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 ! 19212: test "$ld_shlibs_GCJ" = no && can_build_shared=no ! 19213: ! 19214: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 19215: if test "$GCC" = yes; then ! 19216: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 19217: fi ! 19218: ! 19219: # ! 19220: # Do we need to explicitly link libc? ! 19221: # ! 19222: case "x$archive_cmds_need_lc_GCJ" in ! 19223: x|xyes) ! 19224: # Assume -lc should be added ! 19225: archive_cmds_need_lc_GCJ=yes ! 19226: ! 19227: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 19228: case $archive_cmds_GCJ in ! 19229: *'~'*) ! 19230: # FIXME: we may have to deal with multi-command sequences. ! 19231: ;; ! 19232: '$CC '*) ! 19233: # Test whether the compiler implicitly links with -lc since on some ! 19234: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 19235: # to ld, don't add -lc before -lgcc. ! 19236: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 19237: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 19238: $rm conftest* ! 19239: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 19240: ! 19241: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 19242: (eval $ac_compile) 2>&5 ! 19243: ac_status=$? ! 19244: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19245: (exit $ac_status); } 2>conftest.err; then ! 19246: soname=conftest ! 19247: lib=conftest ! 19248: libobjs=conftest.$ac_objext ! 19249: deplibs= ! 19250: wl=$lt_prog_compiler_wl_GCJ ! 19251: compiler_flags=-v ! 19252: linker_flags=-v ! 19253: verstring= ! 19254: output_objdir=. ! 19255: libname=conftest ! 19256: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ ! 19257: allow_undefined_flag_GCJ= ! 19258: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 19259: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 19260: ac_status=$? ! 19261: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19262: (exit $ac_status); } ! 19263: then ! 19264: archive_cmds_need_lc_GCJ=no ! 19265: else ! 19266: archive_cmds_need_lc_GCJ=yes ! 19267: fi ! 19268: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag ! 19269: else ! 19270: cat conftest.err 1>&5 ! 19271: fi ! 19272: $rm conftest* ! 19273: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 ! 19274: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ! 19275: ;; ! 19276: esac ! 19277: fi ! 19278: ;; ! 19279: esac ! 19280: ! 19281: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 19282: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 19283: hardcode_action_GCJ= ! 19284: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ ! 19285: test -n "$runpath_var GCJ" || \ ! 19286: test "X$hardcode_automatic_GCJ"="Xyes" ; then ! 19287: ! 19288: # We can hardcode non-existant directories. ! 19289: if test "$hardcode_direct_GCJ" != no && ! 19290: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 19291: # have to relink, otherwise we might link with an installed library ! 19292: # when we should be linking with a yet-to-be-installed one ! 19293: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && ! 19294: test "$hardcode_minus_L_GCJ" != no; then ! 19295: # Linking always hardcodes the temporary library directory. ! 19296: hardcode_action_GCJ=relink ! 19297: else ! 19298: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 19299: hardcode_action_GCJ=immediate ! 19300: fi ! 19301: else ! 19302: # We cannot hardcode anything, or else we can only hardcode existing ! 19303: # directories. ! 19304: hardcode_action_GCJ=unsupported ! 19305: fi ! 19306: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 ! 19307: echo "${ECHO_T}$hardcode_action_GCJ" >&6 ! 19308: ! 19309: if test "$hardcode_action_GCJ" = relink; then ! 19310: # Fast installation is not supported ! 19311: enable_fast_install=no ! 19312: elif test "$shlibpath_overrides_runpath" = yes || ! 19313: test "$enable_shared" = no; then ! 19314: # Fast installation is not necessary ! 19315: enable_fast_install=needless ! 19316: fi ! 19317: ! 19318: striplib= ! 19319: old_striplib= ! 19320: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 19321: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 19322: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 19323: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 19324: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 19325: echo "$as_me:$LINENO: result: yes" >&5 ! 19326: echo "${ECHO_T}yes" >&6 ! 19327: else ! 19328: # FIXME - insert some real tests, host_os isn't really good enough ! 19329: case $host_os in ! 19330: darwin*) ! 19331: if test -n "$STRIP" ; then ! 19332: striplib="$STRIP -x" ! 19333: echo "$as_me:$LINENO: result: yes" >&5 ! 19334: echo "${ECHO_T}yes" >&6 ! 19335: else ! 19336: echo "$as_me:$LINENO: result: no" >&5 ! 19337: echo "${ECHO_T}no" >&6 ! 19338: fi ! 19339: ;; ! 19340: *) ! 19341: echo "$as_me:$LINENO: result: no" >&5 ! 19342: echo "${ECHO_T}no" >&6 ! 19343: ;; ! 19344: esac ! 19345: fi ! 19346: ! 19347: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 19348: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 19349: library_names_spec= ! 19350: libname_spec='lib$name' ! 19351: soname_spec= ! 19352: shrext=".so" ! 19353: postinstall_cmds= ! 19354: postuninstall_cmds= ! 19355: finish_cmds= ! 19356: finish_eval= ! 19357: shlibpath_var= ! 19358: shlibpath_overrides_runpath=unknown ! 19359: version_type=none ! 19360: dynamic_linker="$host_os ld.so" ! 19361: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 19362: if test "$GCC" = yes; then ! 19363: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 19364: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 19365: # if the path contains ";" then we assume it to be the separator ! 19366: # otherwise default to the standard path separator (i.e. ":") - it is ! 19367: # assumed that no part of a normal pathname contains ";" but that should ! 19368: # okay in the real world where ";" in dirpaths is itself problematic. ! 19369: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 19370: else ! 19371: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 19372: fi ! 19373: else ! 19374: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 19375: fi ! 19376: need_lib_prefix=unknown ! 19377: hardcode_into_libs=no ! 19378: ! 19379: # when you set need_version to no, make sure it does not cause -set_version ! 19380: # flags to be left without arguments ! 19381: need_version=unknown ! 19382: ! 19383: case $host_os in ! 19384: aix3*) ! 19385: version_type=linux ! 19386: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 19387: shlibpath_var=LIBPATH ! 19388: ! 19389: # AIX 3 has no versioning support, so we append a major version to the name. ! 19390: soname_spec='${libname}${release}${shared_ext}$major' ! 19391: ;; ! 19392: ! 19393: aix4* | aix5*) ! 19394: version_type=linux ! 19395: need_lib_prefix=no ! 19396: need_version=no ! 19397: hardcode_into_libs=yes ! 19398: if test "$host_cpu" = ia64; then ! 19399: # AIX 5 supports IA64 ! 19400: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 19401: shlibpath_var=LD_LIBRARY_PATH ! 19402: else ! 19403: # With GCC up to 2.95.x, collect2 would create an import file ! 19404: # for dependence libraries. The import file would start with ! 19405: # the line `#! .'. This would cause the generated library to ! 19406: # depend on `.', always an invalid library. This was fixed in ! 19407: # development snapshots of GCC prior to 3.0. ! 19408: case $host_os in ! 19409: aix4 | aix4.[01] | aix4.[01].*) ! 19410: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 19411: echo ' yes ' ! 19412: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 19413: : ! 19414: else ! 19415: can_build_shared=no ! 19416: fi ! 19417: ;; ! 19418: esac ! 19419: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 19420: # soname into executable. Probably we can add versioning support to ! 19421: # collect2, so additional links can be useful in future. ! 19422: if test "$aix_use_runtimelinking" = yes; then ! 19423: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 19424: # instead of lib<name>.a to let people know that these are not ! 19425: # typical AIX shared libraries. ! 19426: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19427: else ! 19428: # We preserve .a as extension for shared libraries through AIX4.2 ! 19429: # and later when we are not doing run time linking. ! 19430: library_names_spec='${libname}${release}.a $libname.a' ! 19431: soname_spec='${libname}${release}${shared_ext}$major' ! 19432: fi ! 19433: shlibpath_var=LIBPATH ! 19434: fi ! 19435: ;; ! 19436: ! 19437: amigaos*) ! 19438: library_names_spec='$libname.ixlibrary $libname.a' ! 19439: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 19440: 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' ! 19441: ;; ! 19442: ! 19443: beos*) ! 19444: library_names_spec='${libname}${shared_ext}' ! 19445: dynamic_linker="$host_os ld.so" ! 19446: shlibpath_var=LIBRARY_PATH ! 19447: ;; ! 19448: ! 19449: bsdi4*) ! 19450: version_type=linux ! 19451: need_version=no ! 19452: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19453: soname_spec='${libname}${release}${shared_ext}$major' ! 19454: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 19455: shlibpath_var=LD_LIBRARY_PATH ! 19456: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 19457: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 19458: # the default ld.so.conf also contains /usr/contrib/lib and ! 19459: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 19460: # libtool to hard-code these into programs ! 19461: ;; ! 19462: ! 19463: cygwin* | mingw* | pw32*) ! 19464: version_type=windows ! 19465: shrext=".dll" ! 19466: need_version=no ! 19467: need_lib_prefix=no ! 19468: ! 19469: case $GCC,$host_os in ! 19470: yes,cygwin* | yes,mingw* | yes,pw32*) ! 19471: library_names_spec='$libname.dll.a' ! 19472: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 19473: postinstall_cmds='base_file=`basename \${file}`~ ! 19474: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 19475: dldir=$destdir/`dirname \$dlpath`~ ! 19476: test -d \$dldir || mkdir -p \$dldir~ ! 19477: $install_prog $dir/$dlname \$dldir/$dlname' ! 19478: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 19479: dlpath=$dir/\$dldll~ ! 19480: $rm \$dlpath' ! 19481: shlibpath_overrides_runpath=yes ! 19482: ! 19483: case $host_os in ! 19484: cygwin*) ! 19485: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 19486: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 19487: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 19488: ;; ! 19489: mingw*) ! 19490: # MinGW DLLs use traditional 'lib' prefix ! 19491: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 19492: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 19493: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 19494: # It is most probably a Windows format PATH printed by ! 19495: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 19496: # path with ; separators, and with drive letters. We can handle the ! 19497: # drive letters (cygwin fileutils understands them), so leave them, ! 19498: # especially as we might pass files found there to a mingw objdump, ! 19499: # which wouldn't understand a cygwinified path. Ahh. ! 19500: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 19501: else ! 19502: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 19503: fi ! 19504: ;; ! 19505: pw32*) ! 19506: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 19507: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 19508: ;; ! 19509: esac ! 19510: ;; ! 19511: ! 19512: *) ! 19513: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 19514: ;; ! 19515: esac ! 19516: dynamic_linker='Win32 ld.exe' ! 19517: # FIXME: first we should search . and the directory the executable is in ! 19518: shlibpath_var=PATH ! 19519: ;; ! 19520: ! 19521: darwin* | rhapsody*) ! 19522: dynamic_linker="$host_os dyld" ! 19523: version_type=darwin ! 19524: need_lib_prefix=no ! 19525: need_version=no ! 19526: # FIXME: Relying on posixy $() will cause problems for ! 19527: # cross-compilation, but unfortunately the echo tests do not ! 19528: # yet detect zsh echo's removal of \ escapes. ! 19529: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 19530: soname_spec='${libname}${release}${major}$shared_ext' ! 19531: shlibpath_overrides_runpath=yes ! 19532: shlibpath_var=DYLD_LIBRARY_PATH ! 19533: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 19534: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 19535: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 19536: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 19537: fi ! 19538: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 19539: ;; ! 19540: ! 19541: dgux*) ! 19542: version_type=linux ! 19543: need_lib_prefix=no ! 19544: need_version=no ! 19545: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 19546: soname_spec='${libname}${release}${shared_ext}$major' ! 19547: shlibpath_var=LD_LIBRARY_PATH ! 19548: ;; ! 19549: ! 19550: freebsd1*) ! 19551: dynamic_linker=no ! 19552: ;; ! 19553: ! 19554: freebsd*) ! 19555: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 19556: version_type=freebsd-$objformat ! 19557: case $version_type in ! 19558: freebsd-elf*) ! 19559: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 19560: need_version=no ! 19561: need_lib_prefix=no ! 19562: ;; ! 19563: freebsd-*) ! 19564: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 19565: need_version=yes ! 19566: ;; ! 19567: esac ! 19568: shlibpath_var=LD_LIBRARY_PATH ! 19569: case $host_os in ! 19570: freebsd2*) ! 19571: shlibpath_overrides_runpath=yes ! 19572: ;; ! 19573: freebsd3.01* | freebsdelf3.01*) ! 19574: shlibpath_overrides_runpath=yes ! 19575: hardcode_into_libs=yes ! 19576: ;; ! 19577: *) # from 3.2 on ! 19578: shlibpath_overrides_runpath=no ! 19579: hardcode_into_libs=yes ! 19580: ;; ! 19581: esac ! 19582: ;; ! 19583: ! 19584: gnu*) ! 19585: version_type=linux ! 19586: need_lib_prefix=no ! 19587: need_version=no ! 19588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 19589: soname_spec='${libname}${release}${shared_ext}$major' ! 19590: shlibpath_var=LD_LIBRARY_PATH ! 19591: hardcode_into_libs=yes ! 19592: ;; ! 19593: ! 19594: hpux9* | hpux10* | hpux11*) ! 19595: # Give a soname corresponding to the major version so that dld.sl refuses to ! 19596: # link against other versions. ! 19597: version_type=sunos ! 19598: need_lib_prefix=no ! 19599: need_version=no ! 19600: case "$host_cpu" in ! 19601: ia64*) ! 19602: shrext='.so' ! 19603: hardcode_into_libs=yes ! 19604: dynamic_linker="$host_os dld.so" ! 19605: shlibpath_var=LD_LIBRARY_PATH ! 19606: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 19607: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19608: soname_spec='${libname}${release}${shared_ext}$major' ! 19609: if test "X$HPUX_IA64_MODE" = X32; then ! 19610: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 19611: else ! 19612: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 19613: fi ! 19614: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 19615: ;; ! 19616: hppa*64*) ! 19617: shrext='.sl' ! 19618: hardcode_into_libs=yes ! 19619: dynamic_linker="$host_os dld.sl" ! 19620: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 19621: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 19622: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19623: soname_spec='${libname}${release}${shared_ext}$major' ! 19624: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 19625: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 19626: ;; ! 19627: *) ! 19628: shrext='.sl' ! 19629: dynamic_linker="$host_os dld.sl" ! 19630: shlibpath_var=SHLIB_PATH ! 19631: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 19632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19633: soname_spec='${libname}${release}${shared_ext}$major' ! 19634: ;; ! 19635: esac ! 19636: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 19637: postinstall_cmds='chmod 555 $lib' ! 19638: ;; ! 19639: ! 19640: irix5* | irix6* | nonstopux*) ! 19641: case $host_os in ! 19642: nonstopux*) version_type=nonstopux ;; ! 19643: *) ! 19644: if test "$lt_cv_prog_gnu_ld" = yes; then ! 19645: version_type=linux ! 19646: else ! 19647: version_type=irix ! 19648: fi ;; ! 19649: esac ! 19650: need_lib_prefix=no ! 19651: need_version=no ! 19652: soname_spec='${libname}${release}${shared_ext}$major' ! 19653: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 19654: case $host_os in ! 19655: irix5* | nonstopux*) ! 19656: libsuff= shlibsuff= ! 19657: ;; ! 19658: *) ! 19659: case $LD in # libtool.m4 will add one of these switches to LD ! 19660: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 19661: libsuff= shlibsuff= libmagic=32-bit;; ! 19662: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 19663: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 19664: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 19665: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 19666: *) libsuff= shlibsuff= libmagic=never-match;; ! 19667: esac ! 19668: ;; ! 19669: esac ! 19670: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 19671: shlibpath_overrides_runpath=no ! 19672: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 19673: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 19674: hardcode_into_libs=yes ! 19675: ;; ! 19676: ! 19677: # No shared lib support for Linux oldld, aout, or coff. ! 19678: linux*oldld* | linux*aout* | linux*coff*) ! 19679: dynamic_linker=no ! 19680: ;; ! 19681: ! 19682: # This must be Linux ELF. ! 19683: linux*) ! 19684: version_type=linux ! 19685: need_lib_prefix=no ! 19686: need_version=no ! 19687: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19688: soname_spec='${libname}${release}${shared_ext}$major' ! 19689: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 19690: shlibpath_var=LD_LIBRARY_PATH ! 19691: shlibpath_overrides_runpath=no ! 19692: # This implies no fast_install, which is unacceptable. ! 19693: # Some rework will be needed to allow for fast_install ! 19694: # before this can be enabled. ! 19695: hardcode_into_libs=yes ! 19696: ! 19697: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 19698: # powerpc, because MkLinux only supported shared libraries with the ! 19699: # GNU dynamic linker. Since this was broken with cross compilers, ! 19700: # most powerpc-linux boxes support dynamic linking these days and ! 19701: # people can always --disable-shared, the test was removed, and we ! 19702: # assume the GNU/Linux dynamic linker is in use. ! 19703: dynamic_linker='GNU/Linux ld.so' ! 19704: ;; ! 19705: ! 19706: netbsd*) ! 19707: version_type=sunos ! 19708: need_lib_prefix=no ! 19709: need_version=no ! 19710: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 19711: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 19712: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 19713: dynamic_linker='NetBSD (a.out) ld.so' ! 19714: else ! 19715: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 19716: soname_spec='${libname}${release}${shared_ext}$major' ! 19717: dynamic_linker='NetBSD ld.elf_so' ! 19718: fi ! 19719: shlibpath_var=LD_LIBRARY_PATH ! 19720: shlibpath_overrides_runpath=yes ! 19721: hardcode_into_libs=yes ! 19722: ;; ! 19723: ! 19724: newsos6) ! 19725: version_type=linux ! 19726: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19727: shlibpath_var=LD_LIBRARY_PATH ! 19728: shlibpath_overrides_runpath=yes ! 19729: ;; ! 19730: ! 19731: nto-qnx) ! 19732: version_type=linux ! 19733: need_lib_prefix=no ! 19734: need_version=no ! 19735: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19736: soname_spec='${libname}${release}${shared_ext}$major' ! 19737: shlibpath_var=LD_LIBRARY_PATH ! 19738: shlibpath_overrides_runpath=yes ! 19739: ;; ! 19740: ! 19741: openbsd*) ! 19742: version_type=sunos ! 19743: need_lib_prefix=no ! 19744: need_version=no ! 19745: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 19746: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 19747: shlibpath_var=LD_LIBRARY_PATH ! 19748: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 19749: case $host_os in ! 19750: openbsd2.[89] | openbsd2.[89].*) ! 19751: shlibpath_overrides_runpath=no ! 19752: ;; ! 19753: *) ! 19754: shlibpath_overrides_runpath=yes ! 19755: ;; ! 19756: esac ! 19757: else ! 19758: shlibpath_overrides_runpath=yes ! 19759: fi ! 19760: ;; ! 19761: ! 19762: os2*) ! 19763: libname_spec='$name' ! 19764: shrext=".dll" ! 19765: need_lib_prefix=no ! 19766: library_names_spec='$libname${shared_ext} $libname.a' ! 19767: dynamic_linker='OS/2 ld.exe' ! 19768: shlibpath_var=LIBPATH ! 19769: ;; ! 19770: ! 19771: osf3* | osf4* | osf5*) ! 19772: version_type=osf ! 19773: need_lib_prefix=no ! 19774: need_version=no ! 19775: soname_spec='${libname}${release}${shared_ext}$major' ! 19776: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19777: shlibpath_var=LD_LIBRARY_PATH ! 19778: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 19779: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 19780: ;; ! 19781: ! 19782: sco3.2v5*) ! 19783: version_type=osf ! 19784: soname_spec='${libname}${release}${shared_ext}$major' ! 19785: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19786: shlibpath_var=LD_LIBRARY_PATH ! 19787: ;; ! 19788: ! 19789: solaris*) ! 19790: version_type=linux ! 19791: need_lib_prefix=no ! 19792: need_version=no ! 19793: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19794: soname_spec='${libname}${release}${shared_ext}$major' ! 19795: shlibpath_var=LD_LIBRARY_PATH ! 19796: shlibpath_overrides_runpath=yes ! 19797: hardcode_into_libs=yes ! 19798: # ldd complains unless libraries are executable ! 19799: postinstall_cmds='chmod +x $lib' ! 19800: ;; ! 19801: ! 19802: sunos4*) ! 19803: version_type=sunos ! 19804: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 19805: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 19806: shlibpath_var=LD_LIBRARY_PATH ! 19807: shlibpath_overrides_runpath=yes ! 19808: if test "$with_gnu_ld" = yes; then ! 19809: need_lib_prefix=no ! 19810: fi ! 19811: need_version=yes ! 19812: ;; ! 19813: ! 19814: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 19815: version_type=linux ! 19816: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19817: soname_spec='${libname}${release}${shared_ext}$major' ! 19818: shlibpath_var=LD_LIBRARY_PATH ! 19819: case $host_vendor in ! 19820: sni) ! 19821: shlibpath_overrides_runpath=no ! 19822: need_lib_prefix=no ! 19823: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 19824: runpath_var=LD_RUN_PATH ! 19825: ;; ! 19826: siemens) ! 19827: need_lib_prefix=no ! 19828: ;; ! 19829: motorola) ! 19830: need_lib_prefix=no ! 19831: need_version=no ! 19832: shlibpath_overrides_runpath=no ! 19833: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 19834: ;; ! 19835: esac ! 19836: ;; ! 19837: ! 19838: sysv4*MP*) ! 19839: if test -d /usr/nec ;then ! 19840: version_type=linux ! 19841: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 19842: soname_spec='$libname${shared_ext}.$major' ! 19843: shlibpath_var=LD_LIBRARY_PATH ! 19844: fi ! 19845: ;; ! 19846: ! 19847: uts4*) ! 19848: version_type=linux ! 19849: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 19850: soname_spec='${libname}${release}${shared_ext}$major' ! 19851: shlibpath_var=LD_LIBRARY_PATH ! 19852: ;; ! 19853: ! 19854: *) ! 19855: dynamic_linker=no ! 19856: ;; ! 19857: esac ! 19858: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 19859: echo "${ECHO_T}$dynamic_linker" >&6 ! 19860: test "$dynamic_linker" = no && can_build_shared=no ! 19861: ! 19862: if test "x$enable_dlopen" != xyes; then ! 19863: enable_dlopen=unknown ! 19864: enable_dlopen_self=unknown ! 19865: enable_dlopen_self_static=unknown ! 19866: else ! 19867: lt_cv_dlopen=no ! 19868: lt_cv_dlopen_libs= ! 19869: ! 19870: case $host_os in ! 19871: beos*) ! 19872: lt_cv_dlopen="load_add_on" ! 19873: lt_cv_dlopen_libs= ! 19874: lt_cv_dlopen_self=yes ! 19875: ;; ! 19876: ! 19877: mingw* | pw32*) ! 19878: lt_cv_dlopen="LoadLibrary" ! 19879: lt_cv_dlopen_libs= ! 19880: ;; ! 19881: ! 19882: cygwin*) ! 19883: lt_cv_dlopen="dlopen" ! 19884: lt_cv_dlopen_libs= ! 19885: ;; ! 19886: ! 19887: darwin*) ! 19888: # if libdl is installed we need to link against it ! 19889: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 19890: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 19891: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 19892: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19893: else ! 19894: ac_check_lib_save_LIBS=$LIBS ! 19895: LIBS="-ldl $LIBS" ! 19896: cat >conftest.$ac_ext <<_ACEOF ! 19897: #line $LINENO "configure" ! 19898: /* confdefs.h. */ ! 19899: _ACEOF ! 19900: cat confdefs.h >>conftest.$ac_ext ! 19901: cat >>conftest.$ac_ext <<_ACEOF ! 19902: /* end confdefs.h. */ ! 19903: ! 19904: /* Override any gcc2 internal prototype to avoid an error. */ ! 19905: #ifdef __cplusplus ! 19906: extern "C" ! 19907: #endif ! 19908: /* We use char because int might match the return type of a gcc2 ! 19909: builtin and then its argument prototype would still apply. */ ! 19910: char dlopen (); ! 19911: int ! 19912: main () ! 19913: { ! 19914: dlopen (); ! 19915: ; ! 19916: return 0; ! 19917: } ! 19918: _ACEOF ! 19919: rm -f conftest.$ac_objext conftest$ac_exeext ! 19920: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19921: (eval $ac_link) 2>&5 ! 19922: ac_status=$? ! 19923: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19924: (exit $ac_status); } && ! 19925: { ac_try='test -s conftest$ac_exeext' ! 19926: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19927: (eval $ac_try) 2>&5 ! 19928: ac_status=$? ! 19929: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19930: (exit $ac_status); }; }; then ! 19931: ac_cv_lib_dl_dlopen=yes ! 19932: else ! 19933: echo "$as_me: failed program was:" >&5 ! 19934: sed 's/^/| /' conftest.$ac_ext >&5 ! 19935: ! 19936: ac_cv_lib_dl_dlopen=no ! 19937: fi ! 19938: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19939: LIBS=$ac_check_lib_save_LIBS ! 19940: fi ! 19941: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 19942: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 19943: if test $ac_cv_lib_dl_dlopen = yes; then ! 19944: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 19945: else ! 19946: ! 19947: lt_cv_dlopen="dyld" ! 19948: lt_cv_dlopen_libs= ! 19949: lt_cv_dlopen_self=yes ! 19950: ! 19951: fi ! 19952: ! 19953: ;; ! 19954: ! 19955: *) ! 19956: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 19957: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 19958: if test "${ac_cv_func_shl_load+set}" = set; then ! 19959: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19960: else ! 19961: cat >conftest.$ac_ext <<_ACEOF ! 19962: #line $LINENO "configure" ! 19963: /* confdefs.h. */ ! 19964: _ACEOF ! 19965: cat confdefs.h >>conftest.$ac_ext ! 19966: cat >>conftest.$ac_ext <<_ACEOF ! 19967: /* end confdefs.h. */ ! 19968: /* System header to define __stub macros and hopefully few prototypes, ! 19969: which can conflict with char shl_load (); below. ! 19970: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 19971: <limits.h> exists even on freestanding compilers. */ ! 19972: #ifdef __STDC__ ! 19973: # include <limits.h> ! 19974: #else ! 19975: # include <assert.h> ! 19976: #endif ! 19977: /* Override any gcc2 internal prototype to avoid an error. */ ! 19978: #ifdef __cplusplus ! 19979: extern "C" ! 19980: { ! 19981: #endif ! 19982: /* We use char because int might match the return type of a gcc2 ! 19983: builtin and then its argument prototype would still apply. */ ! 19984: char shl_load (); ! 19985: /* The GNU C library defines this for functions which it implements ! 19986: to always fail with ENOSYS. Some functions are actually named ! 19987: something starting with __ and the normal name is an alias. */ ! 19988: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 19989: choke me ! 19990: #else ! 19991: char (*f) () = shl_load; ! 19992: #endif ! 19993: #ifdef __cplusplus ! 19994: } ! 19995: #endif ! 19996: ! 19997: int ! 19998: main () ! 19999: { ! 20000: return f != shl_load; ! 20001: ; ! 20002: return 0; ! 20003: } ! 20004: _ACEOF ! 20005: rm -f conftest.$ac_objext conftest$ac_exeext ! 20006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20007: (eval $ac_link) 2>&5 ! 20008: ac_status=$? ! 20009: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20010: (exit $ac_status); } && ! 20011: { ac_try='test -s conftest$ac_exeext' ! 20012: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20013: (eval $ac_try) 2>&5 ! 20014: ac_status=$? ! 20015: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20016: (exit $ac_status); }; }; then ! 20017: ac_cv_func_shl_load=yes ! 20018: else ! 20019: echo "$as_me: failed program was:" >&5 ! 20020: sed 's/^/| /' conftest.$ac_ext >&5 ! 20021: ! 20022: ac_cv_func_shl_load=no ! 20023: fi ! 20024: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20025: fi ! 20026: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 20027: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 20028: if test $ac_cv_func_shl_load = yes; then ! 20029: lt_cv_dlopen="shl_load" ! 20030: else ! 20031: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 20032: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 20033: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 20034: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20035: else ! 20036: ac_check_lib_save_LIBS=$LIBS ! 20037: LIBS="-ldld $LIBS" ! 20038: cat >conftest.$ac_ext <<_ACEOF ! 20039: #line $LINENO "configure" ! 20040: /* confdefs.h. */ ! 20041: _ACEOF ! 20042: cat confdefs.h >>conftest.$ac_ext ! 20043: cat >>conftest.$ac_ext <<_ACEOF ! 20044: /* end confdefs.h. */ ! 20045: ! 20046: /* Override any gcc2 internal prototype to avoid an error. */ ! 20047: #ifdef __cplusplus ! 20048: extern "C" ! 20049: #endif ! 20050: /* We use char because int might match the return type of a gcc2 ! 20051: builtin and then its argument prototype would still apply. */ ! 20052: char shl_load (); ! 20053: int ! 20054: main () ! 20055: { ! 20056: shl_load (); ! 20057: ; ! 20058: return 0; ! 20059: } ! 20060: _ACEOF ! 20061: rm -f conftest.$ac_objext conftest$ac_exeext ! 20062: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20063: (eval $ac_link) 2>&5 ! 20064: ac_status=$? ! 20065: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20066: (exit $ac_status); } && ! 20067: { ac_try='test -s conftest$ac_exeext' ! 20068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20069: (eval $ac_try) 2>&5 ! 20070: ac_status=$? ! 20071: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20072: (exit $ac_status); }; }; then ! 20073: ac_cv_lib_dld_shl_load=yes ! 20074: else ! 20075: echo "$as_me: failed program was:" >&5 ! 20076: sed 's/^/| /' conftest.$ac_ext >&5 ! 20077: ! 20078: ac_cv_lib_dld_shl_load=no ! 20079: fi ! 20080: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20081: LIBS=$ac_check_lib_save_LIBS ! 20082: fi ! 20083: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 20084: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 20085: if test $ac_cv_lib_dld_shl_load = yes; then ! 20086: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 20087: else ! 20088: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 20089: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 20090: if test "${ac_cv_func_dlopen+set}" = set; then ! 20091: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20092: else ! 20093: cat >conftest.$ac_ext <<_ACEOF ! 20094: #line $LINENO "configure" ! 20095: /* confdefs.h. */ ! 20096: _ACEOF ! 20097: cat confdefs.h >>conftest.$ac_ext ! 20098: cat >>conftest.$ac_ext <<_ACEOF ! 20099: /* end confdefs.h. */ ! 20100: /* System header to define __stub macros and hopefully few prototypes, ! 20101: which can conflict with char dlopen (); below. ! 20102: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20103: <limits.h> exists even on freestanding compilers. */ ! 20104: #ifdef __STDC__ ! 20105: # include <limits.h> ! 20106: #else ! 20107: # include <assert.h> ! 20108: #endif ! 20109: /* Override any gcc2 internal prototype to avoid an error. */ ! 20110: #ifdef __cplusplus ! 20111: extern "C" ! 20112: { ! 20113: #endif ! 20114: /* We use char because int might match the return type of a gcc2 ! 20115: builtin and then its argument prototype would still apply. */ ! 20116: char dlopen (); ! 20117: /* The GNU C library defines this for functions which it implements ! 20118: to always fail with ENOSYS. Some functions are actually named ! 20119: something starting with __ and the normal name is an alias. */ ! 20120: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 20121: choke me ! 20122: #else ! 20123: char (*f) () = dlopen; ! 20124: #endif ! 20125: #ifdef __cplusplus ! 20126: } ! 20127: #endif ! 20128: ! 20129: int ! 20130: main () ! 20131: { ! 20132: return f != dlopen; ! 20133: ; ! 20134: return 0; ! 20135: } ! 20136: _ACEOF ! 20137: rm -f conftest.$ac_objext conftest$ac_exeext ! 20138: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20139: (eval $ac_link) 2>&5 ! 20140: ac_status=$? ! 20141: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20142: (exit $ac_status); } && ! 20143: { ac_try='test -s conftest$ac_exeext' ! 20144: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20145: (eval $ac_try) 2>&5 ! 20146: ac_status=$? ! 20147: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20148: (exit $ac_status); }; }; then ! 20149: ac_cv_func_dlopen=yes ! 20150: else ! 20151: echo "$as_me: failed program was:" >&5 ! 20152: sed 's/^/| /' conftest.$ac_ext >&5 ! 20153: ! 20154: ac_cv_func_dlopen=no ! 20155: fi ! 20156: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20157: fi ! 20158: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 20159: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 20160: if test $ac_cv_func_dlopen = yes; then ! 20161: lt_cv_dlopen="dlopen" ! 20162: else ! 20163: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 20164: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 20165: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 20166: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20167: else ! 20168: ac_check_lib_save_LIBS=$LIBS ! 20169: LIBS="-ldl $LIBS" ! 20170: cat >conftest.$ac_ext <<_ACEOF ! 20171: #line $LINENO "configure" ! 20172: /* confdefs.h. */ ! 20173: _ACEOF ! 20174: cat confdefs.h >>conftest.$ac_ext ! 20175: cat >>conftest.$ac_ext <<_ACEOF ! 20176: /* end confdefs.h. */ ! 20177: ! 20178: /* Override any gcc2 internal prototype to avoid an error. */ ! 20179: #ifdef __cplusplus ! 20180: extern "C" ! 20181: #endif ! 20182: /* We use char because int might match the return type of a gcc2 ! 20183: builtin and then its argument prototype would still apply. */ ! 20184: char dlopen (); ! 20185: int ! 20186: main () ! 20187: { ! 20188: dlopen (); ! 20189: ; ! 20190: return 0; ! 20191: } ! 20192: _ACEOF ! 20193: rm -f conftest.$ac_objext conftest$ac_exeext ! 20194: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20195: (eval $ac_link) 2>&5 ! 20196: ac_status=$? ! 20197: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20198: (exit $ac_status); } && ! 20199: { ac_try='test -s conftest$ac_exeext' ! 20200: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20201: (eval $ac_try) 2>&5 ! 20202: ac_status=$? ! 20203: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20204: (exit $ac_status); }; }; then ! 20205: ac_cv_lib_dl_dlopen=yes ! 20206: else ! 20207: echo "$as_me: failed program was:" >&5 ! 20208: sed 's/^/| /' conftest.$ac_ext >&5 ! 20209: ! 20210: ac_cv_lib_dl_dlopen=no ! 20211: fi ! 20212: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20213: LIBS=$ac_check_lib_save_LIBS ! 20214: fi ! 20215: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 20216: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 20217: if test $ac_cv_lib_dl_dlopen = yes; then ! 20218: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 20219: else ! 20220: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 20221: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 20222: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 20223: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20224: else ! 20225: ac_check_lib_save_LIBS=$LIBS ! 20226: LIBS="-lsvld $LIBS" ! 20227: cat >conftest.$ac_ext <<_ACEOF ! 20228: #line $LINENO "configure" ! 20229: /* confdefs.h. */ ! 20230: _ACEOF ! 20231: cat confdefs.h >>conftest.$ac_ext ! 20232: cat >>conftest.$ac_ext <<_ACEOF ! 20233: /* end confdefs.h. */ ! 20234: ! 20235: /* Override any gcc2 internal prototype to avoid an error. */ ! 20236: #ifdef __cplusplus ! 20237: extern "C" ! 20238: #endif ! 20239: /* We use char because int might match the return type of a gcc2 ! 20240: builtin and then its argument prototype would still apply. */ ! 20241: char dlopen (); ! 20242: int ! 20243: main () ! 20244: { ! 20245: dlopen (); ! 20246: ; ! 20247: return 0; ! 20248: } ! 20249: _ACEOF ! 20250: rm -f conftest.$ac_objext conftest$ac_exeext ! 20251: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20252: (eval $ac_link) 2>&5 ! 20253: ac_status=$? ! 20254: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20255: (exit $ac_status); } && ! 20256: { ac_try='test -s conftest$ac_exeext' ! 20257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20258: (eval $ac_try) 2>&5 ! 20259: ac_status=$? ! 20260: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20261: (exit $ac_status); }; }; then ! 20262: ac_cv_lib_svld_dlopen=yes ! 20263: else ! 20264: echo "$as_me: failed program was:" >&5 ! 20265: sed 's/^/| /' conftest.$ac_ext >&5 ! 20266: ! 20267: ac_cv_lib_svld_dlopen=no ! 20268: fi ! 20269: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20270: LIBS=$ac_check_lib_save_LIBS ! 20271: fi ! 20272: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 20273: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 20274: if test $ac_cv_lib_svld_dlopen = yes; then ! 20275: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 20276: else ! 20277: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 20278: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 20279: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 20280: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20281: else ! 20282: ac_check_lib_save_LIBS=$LIBS ! 20283: LIBS="-ldld $LIBS" ! 20284: cat >conftest.$ac_ext <<_ACEOF ! 20285: #line $LINENO "configure" ! 20286: /* confdefs.h. */ ! 20287: _ACEOF ! 20288: cat confdefs.h >>conftest.$ac_ext ! 20289: cat >>conftest.$ac_ext <<_ACEOF ! 20290: /* end confdefs.h. */ ! 20291: ! 20292: /* Override any gcc2 internal prototype to avoid an error. */ ! 20293: #ifdef __cplusplus ! 20294: extern "C" ! 20295: #endif ! 20296: /* We use char because int might match the return type of a gcc2 ! 20297: builtin and then its argument prototype would still apply. */ ! 20298: char dld_link (); ! 20299: int ! 20300: main () ! 20301: { ! 20302: dld_link (); ! 20303: ; ! 20304: return 0; ! 20305: } ! 20306: _ACEOF ! 20307: rm -f conftest.$ac_objext conftest$ac_exeext ! 20308: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20309: (eval $ac_link) 2>&5 ! 20310: ac_status=$? ! 20311: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20312: (exit $ac_status); } && ! 20313: { ac_try='test -s conftest$ac_exeext' ! 20314: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20315: (eval $ac_try) 2>&5 ! 20316: ac_status=$? ! 20317: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20318: (exit $ac_status); }; }; then ! 20319: ac_cv_lib_dld_dld_link=yes ! 20320: else ! 20321: echo "$as_me: failed program was:" >&5 ! 20322: sed 's/^/| /' conftest.$ac_ext >&5 ! 20323: ! 20324: ac_cv_lib_dld_dld_link=no ! 20325: fi ! 20326: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20327: LIBS=$ac_check_lib_save_LIBS ! 20328: fi ! 20329: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 20330: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 20331: if test $ac_cv_lib_dld_dld_link = yes; then ! 20332: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 20333: fi ! 20334: ! 20335: ! 20336: fi ! 20337: ! 20338: ! 20339: fi ! 20340: ! 20341: ! 20342: fi ! 20343: ! 20344: ! 20345: fi ! 20346: ! 20347: ! 20348: fi ! 20349: ! 20350: ;; ! 20351: esac ! 20352: ! 20353: if test "x$lt_cv_dlopen" != xno; then ! 20354: enable_dlopen=yes ! 20355: else ! 20356: enable_dlopen=no ! 20357: fi ! 20358: ! 20359: case $lt_cv_dlopen in ! 20360: dlopen) ! 20361: save_CPPFLAGS="$CPPFLAGS" ! 20362: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 20363: ! 20364: save_LDFLAGS="$LDFLAGS" ! 20365: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 20366: ! 20367: save_LIBS="$LIBS" ! 20368: LIBS="$lt_cv_dlopen_libs $LIBS" ! 20369: ! 20370: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 20371: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 20372: if test "${lt_cv_dlopen_self+set}" = set; then ! 20373: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20374: else ! 20375: if test "$cross_compiling" = yes; then : ! 20376: lt_cv_dlopen_self=cross ! 20377: else ! 20378: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 20379: lt_status=$lt_dlunknown ! 20380: cat > conftest.$ac_ext <<EOF ! 20381: #line 20381 "configure" ! 20382: #include "confdefs.h" ! 20383: ! 20384: #if HAVE_DLFCN_H ! 20385: #include <dlfcn.h> ! 20386: #endif ! 20387: ! 20388: #include <stdio.h> ! 20389: ! 20390: #ifdef RTLD_GLOBAL ! 20391: # define LT_DLGLOBAL RTLD_GLOBAL ! 20392: #else ! 20393: # ifdef DL_GLOBAL ! 20394: # define LT_DLGLOBAL DL_GLOBAL ! 20395: # else ! 20396: # define LT_DLGLOBAL 0 ! 20397: # endif ! 20398: #endif ! 20399: ! 20400: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 20401: find out it does not work in some platform. */ ! 20402: #ifndef LT_DLLAZY_OR_NOW ! 20403: # ifdef RTLD_LAZY ! 20404: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 20405: # else ! 20406: # ifdef DL_LAZY ! 20407: # define LT_DLLAZY_OR_NOW DL_LAZY ! 20408: # else ! 20409: # ifdef RTLD_NOW ! 20410: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 20411: # else ! 20412: # ifdef DL_NOW ! 20413: # define LT_DLLAZY_OR_NOW DL_NOW ! 20414: # else ! 20415: # define LT_DLLAZY_OR_NOW 0 ! 20416: # endif ! 20417: # endif ! 20418: # endif ! 20419: # endif ! 20420: #endif ! 20421: ! 20422: #ifdef __cplusplus ! 20423: extern "C" void exit (int); ! 20424: #endif ! 20425: ! 20426: void fnord() { int i=42;} ! 20427: int main () ! 20428: { ! 20429: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 20430: int status = $lt_dlunknown; ! 20431: ! 20432: if (self) ! 20433: { ! 20434: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 20435: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 20436: /* dlclose (self); */ ! 20437: } ! 20438: ! 20439: exit (status); ! 20440: } ! 20441: EOF ! 20442: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20443: (eval $ac_link) 2>&5 ! 20444: ac_status=$? ! 20445: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20446: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 20447: (./conftest; exit; ) 2>/dev/null ! 20448: lt_status=$? ! 20449: case x$lt_status in ! 20450: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 20451: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 20452: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 20453: esac ! 20454: else : ! 20455: # compilation failed ! 20456: lt_cv_dlopen_self=no ! 20457: fi ! 20458: fi ! 20459: rm -fr conftest* ! 20460: ! 20461: ! 20462: fi ! 20463: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 20464: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 20465: ! 20466: if test "x$lt_cv_dlopen_self" = xyes; then ! 20467: LDFLAGS="$LDFLAGS $link_static_flag" ! 20468: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 20469: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 20470: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 20471: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20472: else ! 20473: if test "$cross_compiling" = yes; then : ! 20474: lt_cv_dlopen_self_static=cross ! 20475: else ! 20476: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 20477: lt_status=$lt_dlunknown ! 20478: cat > conftest.$ac_ext <<EOF ! 20479: #line 20479 "configure" ! 20480: #include "confdefs.h" ! 20481: ! 20482: #if HAVE_DLFCN_H ! 20483: #include <dlfcn.h> ! 20484: #endif ! 20485: ! 20486: #include <stdio.h> ! 20487: ! 20488: #ifdef RTLD_GLOBAL ! 20489: # define LT_DLGLOBAL RTLD_GLOBAL ! 20490: #else ! 20491: # ifdef DL_GLOBAL ! 20492: # define LT_DLGLOBAL DL_GLOBAL ! 20493: # else ! 20494: # define LT_DLGLOBAL 0 ! 20495: # endif ! 20496: #endif ! 20497: ! 20498: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 20499: find out it does not work in some platform. */ ! 20500: #ifndef LT_DLLAZY_OR_NOW ! 20501: # ifdef RTLD_LAZY ! 20502: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 20503: # else ! 20504: # ifdef DL_LAZY ! 20505: # define LT_DLLAZY_OR_NOW DL_LAZY ! 20506: # else ! 20507: # ifdef RTLD_NOW ! 20508: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 20509: # else ! 20510: # ifdef DL_NOW ! 20511: # define LT_DLLAZY_OR_NOW DL_NOW ! 20512: # else ! 20513: # define LT_DLLAZY_OR_NOW 0 ! 20514: # endif ! 20515: # endif ! 20516: # endif ! 20517: # endif ! 20518: #endif ! 20519: ! 20520: #ifdef __cplusplus ! 20521: extern "C" void exit (int); ! 20522: #endif ! 20523: ! 20524: void fnord() { int i=42;} ! 20525: int main () ! 20526: { ! 20527: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 20528: int status = $lt_dlunknown; ! 20529: ! 20530: if (self) ! 20531: { ! 20532: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 20533: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 20534: /* dlclose (self); */ ! 20535: } ! 20536: ! 20537: exit (status); ! 20538: } ! 20539: EOF ! 20540: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20541: (eval $ac_link) 2>&5 ! 20542: ac_status=$? ! 20543: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20544: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 20545: (./conftest; exit; ) 2>/dev/null ! 20546: lt_status=$? ! 20547: case x$lt_status in ! 20548: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 20549: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 20550: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 20551: esac ! 20552: else : ! 20553: # compilation failed ! 20554: lt_cv_dlopen_self_static=no ! 20555: fi ! 20556: fi ! 20557: rm -fr conftest* ! 20558: ! 20559: ! 20560: fi ! 20561: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 20562: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 20563: fi ! 20564: ! 20565: CPPFLAGS="$save_CPPFLAGS" ! 20566: LDFLAGS="$save_LDFLAGS" ! 20567: LIBS="$save_LIBS" ! 20568: ;; ! 20569: esac ! 20570: ! 20571: case $lt_cv_dlopen_self in ! 20572: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 20573: *) enable_dlopen_self=unknown ;; ! 20574: esac ! 20575: ! 20576: case $lt_cv_dlopen_self_static in ! 20577: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 20578: *) enable_dlopen_self_static=unknown ;; ! 20579: esac ! 20580: fi ! 20581: ! 20582: ! 20583: # The else clause should only fire when bootstrapping the ! 20584: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 20585: # with your package, and you will get complaints that there are ! 20586: # no rules to generate ltmain.sh. ! 20587: if test -f "$ltmain"; then ! 20588: # See if we are running on zsh, and set the options which allow our commands through ! 20589: # without removal of \ escapes. ! 20590: if test -n "${ZSH_VERSION+set}" ; then ! 20591: setopt NO_GLOB_SUBST ! 20592: fi ! 20593: # Now quote all the things that may contain metacharacters while being ! 20594: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 20595: # variables and quote the copies for generation of the libtool script. ! 20596: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 20597: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 20598: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 20599: deplibs_check_method reload_flag reload_cmds need_locks \ ! 20600: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 20601: lt_cv_sys_global_symbol_to_c_name_address \ ! 20602: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 20603: old_postinstall_cmds old_postuninstall_cmds \ ! 20604: compiler_GCJ \ ! 20605: CC_GCJ \ ! 20606: LD_GCJ \ ! 20607: lt_prog_compiler_wl_GCJ \ ! 20608: lt_prog_compiler_pic_GCJ \ ! 20609: lt_prog_compiler_static_GCJ \ ! 20610: lt_prog_compiler_no_builtin_flag_GCJ \ ! 20611: export_dynamic_flag_spec_GCJ \ ! 20612: thread_safe_flag_spec_GCJ \ ! 20613: whole_archive_flag_spec_GCJ \ ! 20614: enable_shared_with_static_runtimes_GCJ \ ! 20615: old_archive_cmds_GCJ \ ! 20616: old_archive_from_new_cmds_GCJ \ ! 20617: predep_objects_GCJ \ ! 20618: postdep_objects_GCJ \ ! 20619: predeps_GCJ \ ! 20620: postdeps_GCJ \ ! 20621: compiler_lib_search_path_GCJ \ ! 20622: archive_cmds_GCJ \ ! 20623: archive_expsym_cmds_GCJ \ ! 20624: postinstall_cmds_GCJ \ ! 20625: postuninstall_cmds_GCJ \ ! 20626: old_archive_from_expsyms_cmds_GCJ \ ! 20627: allow_undefined_flag_GCJ \ ! 20628: no_undefined_flag_GCJ \ ! 20629: export_symbols_cmds_GCJ \ ! 20630: hardcode_libdir_flag_spec_GCJ \ ! 20631: hardcode_libdir_flag_spec_ld_GCJ \ ! 20632: hardcode_libdir_separator_GCJ \ ! 20633: hardcode_automatic_GCJ \ ! 20634: module_cmds_GCJ \ ! 20635: module_expsym_cmds_GCJ \ ! 20636: lt_cv_prog_compiler_c_o_GCJ \ ! 20637: exclude_expsyms_GCJ \ ! 20638: include_expsyms_GCJ; do ! 20639: ! 20640: case $var in ! 20641: old_archive_cmds_GCJ | \ ! 20642: old_archive_from_new_cmds_GCJ | \ ! 20643: archive_cmds_GCJ | \ ! 20644: archive_expsym_cmds_GCJ | \ ! 20645: module_cmds_GCJ | \ ! 20646: module_expsym_cmds_GCJ | \ ! 20647: old_archive_from_expsyms_cmds_GCJ | \ ! 20648: export_symbols_cmds_GCJ | \ ! 20649: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 20650: postinstall_cmds | postuninstall_cmds | \ ! 20651: old_postinstall_cmds | old_postuninstall_cmds | \ ! 20652: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 20653: # Double-quote double-evaled strings. ! 20654: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 20655: ;; ! 20656: *) ! 20657: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 20658: ;; ! 20659: esac ! 20660: done ! 20661: ! 20662: case $lt_echo in ! 20663: *'\$0 --fallback-echo"') ! 20664: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 20665: ;; ! 20666: esac ! 20667: ! 20668: cfgfile="$ofile" ! 20669: ! 20670: cat <<__EOF__ >> "$cfgfile" ! 20671: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 20672: ! 20673: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 20674: ! 20675: # Shell to use when invoking shell scripts. ! 20676: SHELL=$lt_SHELL ! 20677: ! 20678: # Whether or not to build shared libraries. ! 20679: build_libtool_libs=$enable_shared ! 20680: ! 20681: # Whether or not to build static libraries. ! 20682: build_old_libs=$enable_static ! 20683: ! 20684: # Whether or not to add -lc for building shared libraries. ! 20685: build_libtool_need_lc=$archive_cmds_need_lc_GCJ ! 20686: ! 20687: # Whether or not to disallow shared libs when runtime libs are static ! 20688: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ ! 20689: ! 20690: # Whether or not to optimize for fast installation. ! 20691: fast_install=$enable_fast_install ! 20692: ! 20693: # The host system. ! 20694: host_alias=$host_alias ! 20695: host=$host ! 20696: ! 20697: # An echo program that does not interpret backslashes. ! 20698: echo=$lt_echo ! 20699: ! 20700: # The archiver. ! 20701: AR=$lt_AR ! 20702: AR_FLAGS=$lt_AR_FLAGS ! 20703: ! 20704: # A C compiler. ! 20705: LTCC=$lt_LTCC ! 20706: ! 20707: # A language-specific compiler. ! 20708: CC=$lt_compiler_GCJ ! 20709: ! 20710: # Is the compiler the GNU C compiler? ! 20711: with_gcc=$GCC_GCJ ! 20712: ! 20713: # An ERE matcher. ! 20714: EGREP=$lt_EGREP ! 20715: ! 20716: # The linker used to build libraries. ! 20717: LD=$lt_LD_GCJ ! 20718: ! 20719: # Whether we need hard or soft links. ! 20720: LN_S=$lt_LN_S ! 20721: ! 20722: # A BSD-compatible nm program. ! 20723: NM=$lt_NM ! 20724: ! 20725: # A symbol stripping program ! 20726: STRIP=$STRIP ! 20727: ! 20728: # Used to examine libraries when file_magic_cmd begins "file" ! 20729: MAGIC_CMD=$MAGIC_CMD ! 20730: ! 20731: # Used on cygwin: DLL creation program. ! 20732: DLLTOOL="$DLLTOOL" ! 20733: ! 20734: # Used on cygwin: object dumper. ! 20735: OBJDUMP="$OBJDUMP" ! 20736: ! 20737: # Used on cygwin: assembler. ! 20738: AS="$AS" ! 20739: ! 20740: # The name of the directory that contains temporary libtool files. ! 20741: objdir=$objdir ! 20742: ! 20743: # How to create reloadable object files. ! 20744: reload_flag=$lt_reload_flag ! 20745: reload_cmds=$lt_reload_cmds ! 20746: ! 20747: # How to pass a linker flag through the compiler. ! 20748: wl=$lt_lt_prog_compiler_wl_GCJ ! 20749: ! 20750: # Object file suffix (normally "o"). ! 20751: objext="$ac_objext" ! 20752: ! 20753: # Old archive suffix (normally "a"). ! 20754: libext="$libext" ! 20755: ! 20756: # Shared library suffix (normally ".so"). ! 20757: shrext='$shrext' ! 20758: ! 20759: # Executable file suffix (normally ""). ! 20760: exeext="$exeext" ! 20761: ! 20762: # Additional compiler flags for building library objects. ! 20763: pic_flag=$lt_lt_prog_compiler_pic_GCJ ! 20764: pic_mode=$pic_mode ! 20765: ! 20766: # What is the maximum length of a command? ! 20767: max_cmd_len=$lt_cv_sys_max_cmd_len ! 20768: ! 20769: # Does compiler simultaneously support -c and -o options? ! 20770: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ ! 20771: ! 20772: # Must we lock files when doing compilation ? ! 20773: need_locks=$lt_need_locks ! 20774: ! 20775: # Do we need the lib prefix for modules? ! 20776: need_lib_prefix=$need_lib_prefix ! 20777: ! 20778: # Do we need a version for libraries? ! 20779: need_version=$need_version ! 20780: ! 20781: # Whether dlopen is supported. ! 20782: dlopen_support=$enable_dlopen ! 20783: ! 20784: # Whether dlopen of programs is supported. ! 20785: dlopen_self=$enable_dlopen_self ! 20786: ! 20787: # Whether dlopen of statically linked programs is supported. ! 20788: dlopen_self_static=$enable_dlopen_self_static ! 20789: ! 20790: # Compiler flag to prevent dynamic linking. ! 20791: link_static_flag=$lt_lt_prog_compiler_static_GCJ ! 20792: ! 20793: # Compiler flag to turn off builtin functions. ! 20794: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ ! 20795: ! 20796: # Compiler flag to allow reflexive dlopens. ! 20797: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ ! 20798: ! 20799: # Compiler flag to generate shared objects directly from archives. ! 20800: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ ! 20801: ! 20802: # Compiler flag to generate thread-safe objects. ! 20803: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ ! 20804: ! 20805: # Library versioning type. ! 20806: version_type=$version_type ! 20807: ! 20808: # Format of library name prefix. ! 20809: libname_spec=$lt_libname_spec ! 20810: ! 20811: # List of archive names. First name is the real one, the rest are links. ! 20812: # The last name is the one that the linker finds with -lNAME. ! 20813: library_names_spec=$lt_library_names_spec ! 20814: ! 20815: # The coded name of the library, if different from the real name. ! 20816: soname_spec=$lt_soname_spec ! 20817: ! 20818: # Commands used to build and install an old-style archive. ! 20819: RANLIB=$lt_RANLIB ! 20820: old_archive_cmds=$lt_old_archive_cmds_GCJ ! 20821: old_postinstall_cmds=$lt_old_postinstall_cmds ! 20822: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 20823: ! 20824: # Create an old-style archive from a shared archive. ! 20825: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ ! 20826: ! 20827: # Create a temporary old-style archive to link instead of a shared archive. ! 20828: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ ! 20829: ! 20830: # Commands used to build and install a shared archive. ! 20831: archive_cmds=$lt_archive_cmds_GCJ ! 20832: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ ! 20833: postinstall_cmds=$lt_postinstall_cmds ! 20834: postuninstall_cmds=$lt_postuninstall_cmds ! 20835: ! 20836: # Commands used to build a loadable module (assumed same as above if empty) ! 20837: module_cmds=$lt_module_cmds_GCJ ! 20838: module_expsym_cmds=$lt_module_expsym_cmds_GCJ ! 20839: ! 20840: # Commands to strip libraries. ! 20841: old_striplib=$lt_old_striplib ! 20842: striplib=$lt_striplib ! 20843: ! 20844: # Dependencies to place before the objects being linked to create a ! 20845: # shared library. ! 20846: predep_objects=$lt_predep_objects_GCJ ! 20847: ! 20848: # Dependencies to place after the objects being linked to create a ! 20849: # shared library. ! 20850: postdep_objects=$lt_postdep_objects_GCJ ! 20851: ! 20852: # Dependencies to place before the objects being linked to create a ! 20853: # shared library. ! 20854: predeps=$lt_predeps_GCJ ! 20855: ! 20856: # Dependencies to place after the objects being linked to create a ! 20857: # shared library. ! 20858: postdeps=$lt_postdeps_GCJ ! 20859: ! 20860: # The library search path used internally by the compiler when linking ! 20861: # a shared library. ! 20862: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ ! 20863: ! 20864: # Method to check whether dependent libraries are shared objects. ! 20865: deplibs_check_method=$lt_deplibs_check_method ! 20866: ! 20867: # Command to use when deplibs_check_method == file_magic. ! 20868: file_magic_cmd=$lt_file_magic_cmd ! 20869: ! 20870: # Flag that allows shared libraries with undefined symbols to be built. ! 20871: allow_undefined_flag=$lt_allow_undefined_flag_GCJ ! 20872: ! 20873: # Flag that forces no undefined symbols. ! 20874: no_undefined_flag=$lt_no_undefined_flag_GCJ ! 20875: ! 20876: # Commands used to finish a libtool library installation in a directory. ! 20877: finish_cmds=$lt_finish_cmds ! 20878: ! 20879: # Same as above, but a single script fragment to be evaled but not shown. ! 20880: finish_eval=$lt_finish_eval ! 20881: ! 20882: # Take the output of nm and produce a listing of raw symbols and C names. ! 20883: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 20884: ! 20885: # Transform the output of nm in a proper C declaration ! 20886: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 20887: ! 20888: # Transform the output of nm in a C name address pair ! 20889: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 20890: ! 20891: # This is the shared library runtime path variable. ! 20892: runpath_var=$runpath_var ! 20893: ! 20894: # This is the shared library path variable. ! 20895: shlibpath_var=$shlibpath_var ! 20896: ! 20897: # Is shlibpath searched before the hard-coded library search path? ! 20898: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 20899: ! 20900: # How to hardcode a shared library path into an executable. ! 20901: hardcode_action=$hardcode_action_GCJ ! 20902: ! 20903: # Whether we should hardcode library paths into libraries. ! 20904: hardcode_into_libs=$hardcode_into_libs ! 20905: ! 20906: # Flag to hardcode \$libdir into a binary during linking. ! 20907: # This must work even if \$libdir does not exist. ! 20908: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ ! 20909: ! 20910: # If ld is used when linking, flag to hardcode \$libdir into ! 20911: # a binary during linking. This must work even if \$libdir does ! 20912: # not exist. ! 20913: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ ! 20914: ! 20915: # Whether we need a single -rpath flag with a separated argument. ! 20916: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ ! 20917: ! 20918: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 20919: # resulting binary. ! 20920: hardcode_direct=$hardcode_direct_GCJ ! 20921: ! 20922: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 20923: # resulting binary. ! 20924: hardcode_minus_L=$hardcode_minus_L_GCJ ! 20925: ! 20926: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 20927: # the resulting binary. ! 20928: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ ! 20929: ! 20930: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 20931: # and all subsequent libraries and executables linked against it. ! 20932: hardcode_automatic=$hardcode_automatic_GCJ ! 20933: ! 20934: # Variables whose values should be saved in libtool wrapper scripts and ! 20935: # restored at relink time. ! 20936: variables_saved_for_relink="$variables_saved_for_relink" ! 20937: ! 20938: # Whether libtool must link a program against all its dependency libraries. ! 20939: link_all_deplibs=$link_all_deplibs_GCJ ! 20940: ! 20941: # Compile-time system search path for libraries ! 20942: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 20943: ! 20944: # Run-time system search path for libraries ! 20945: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 20946: ! 20947: # Fix the shell variable \$srcfile for the compiler. ! 20948: fix_srcfile_path="$fix_srcfile_path_GCJ" ! 20949: ! 20950: # Set to yes if exported symbols are required. ! 20951: always_export_symbols=$always_export_symbols_GCJ ! 20952: ! 20953: # The commands to list exported symbols. ! 20954: export_symbols_cmds=$lt_export_symbols_cmds_GCJ ! 20955: ! 20956: # The commands to extract the exported symbol list from a shared archive. ! 20957: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 20958: ! 20959: # Symbols that should not be listed in the preloaded symbols. ! 20960: exclude_expsyms=$lt_exclude_expsyms_GCJ ! 20961: ! 20962: # Symbols that must always be exported. ! 20963: include_expsyms=$lt_include_expsyms_GCJ ! 20964: ! 20965: # ### END LIBTOOL TAG CONFIG: $tagname ! 20966: ! 20967: __EOF__ ! 20968: ! 20969: ! 20970: else ! 20971: # If there is no Makefile yet, we rely on a make rule to execute ! 20972: # `config.status --recheck' to rerun these tests and create the ! 20973: # libtool script then. ! 20974: test -f Makefile && make "$ltmain" ! 20975: fi ! 20976: ! 20977: ! 20978: ac_ext=c ! 20979: ac_cpp='$CPP $CPPFLAGS' ! 20980: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 20981: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 20982: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 20983: ! 20984: CC="$lt_save_CC" ! 20985: ! 20986: else ! 20987: tagname="" ! 20988: fi ! 20989: ;; ! 20990: ! 20991: RC) ! 20992: ! 20993: ! 20994: ! 20995: # Source file extension for RC test sources. ! 20996: ac_ext=rc ! 20997: ! 20998: # Object file extension for compiled RC test sources. ! 20999: objext=o ! 21000: objext_RC=$objext ! 21001: ! 21002: # Code to be used in simple compile tests ! 21003: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' ! 21004: ! 21005: # Code to be used in simple link tests ! 21006: lt_simple_link_test_code="$lt_simple_compile_test_code" ! 21007: ! 21008: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 21009: ! 21010: # If no C compiler was specified, use CC. ! 21011: LTCC=${LTCC-"$CC"} ! 21012: ! 21013: # Allow CC to be a program name with arguments. ! 21014: compiler=$CC ! 21015: ! 21016: ! 21017: # Allow CC to be a program name with arguments. ! 21018: lt_save_CC="$CC" ! 21019: CC=${RC-"windres"} ! 21020: compiler=$CC ! 21021: compiler_RC=$CC ! 21022: lt_cv_prog_compiler_c_o_RC=yes ! 21023: ! 21024: # The else clause should only fire when bootstrapping the ! 21025: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 21026: # with your package, and you will get complaints that there are ! 21027: # no rules to generate ltmain.sh. ! 21028: if test -f "$ltmain"; then ! 21029: # See if we are running on zsh, and set the options which allow our commands through ! 21030: # without removal of \ escapes. ! 21031: if test -n "${ZSH_VERSION+set}" ; then ! 21032: setopt NO_GLOB_SUBST ! 21033: fi ! 21034: # Now quote all the things that may contain metacharacters while being ! 21035: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 21036: # variables and quote the copies for generation of the libtool script. ! 21037: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 21038: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 21039: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 21040: deplibs_check_method reload_flag reload_cmds need_locks \ ! 21041: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 21042: lt_cv_sys_global_symbol_to_c_name_address \ ! 21043: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 21044: old_postinstall_cmds old_postuninstall_cmds \ ! 21045: compiler_RC \ ! 21046: CC_RC \ ! 21047: LD_RC \ ! 21048: lt_prog_compiler_wl_RC \ ! 21049: lt_prog_compiler_pic_RC \ ! 21050: lt_prog_compiler_static_RC \ ! 21051: lt_prog_compiler_no_builtin_flag_RC \ ! 21052: export_dynamic_flag_spec_RC \ ! 21053: thread_safe_flag_spec_RC \ ! 21054: whole_archive_flag_spec_RC \ ! 21055: enable_shared_with_static_runtimes_RC \ ! 21056: old_archive_cmds_RC \ ! 21057: old_archive_from_new_cmds_RC \ ! 21058: predep_objects_RC \ ! 21059: postdep_objects_RC \ ! 21060: predeps_RC \ ! 21061: postdeps_RC \ ! 21062: compiler_lib_search_path_RC \ ! 21063: archive_cmds_RC \ ! 21064: archive_expsym_cmds_RC \ ! 21065: postinstall_cmds_RC \ ! 21066: postuninstall_cmds_RC \ ! 21067: old_archive_from_expsyms_cmds_RC \ ! 21068: allow_undefined_flag_RC \ ! 21069: no_undefined_flag_RC \ ! 21070: export_symbols_cmds_RC \ ! 21071: hardcode_libdir_flag_spec_RC \ ! 21072: hardcode_libdir_flag_spec_ld_RC \ ! 21073: hardcode_libdir_separator_RC \ ! 21074: hardcode_automatic_RC \ ! 21075: module_cmds_RC \ ! 21076: module_expsym_cmds_RC \ ! 21077: lt_cv_prog_compiler_c_o_RC \ ! 21078: exclude_expsyms_RC \ ! 21079: include_expsyms_RC; do ! 21080: ! 21081: case $var in ! 21082: old_archive_cmds_RC | \ ! 21083: old_archive_from_new_cmds_RC | \ ! 21084: archive_cmds_RC | \ ! 21085: archive_expsym_cmds_RC | \ ! 21086: module_cmds_RC | \ ! 21087: module_expsym_cmds_RC | \ ! 21088: old_archive_from_expsyms_cmds_RC | \ ! 21089: export_symbols_cmds_RC | \ ! 21090: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 21091: postinstall_cmds | postuninstall_cmds | \ ! 21092: old_postinstall_cmds | old_postuninstall_cmds | \ ! 21093: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 21094: # Double-quote double-evaled strings. ! 21095: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 21096: ;; ! 21097: *) ! 21098: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 21099: ;; ! 21100: esac ! 21101: done ! 21102: ! 21103: case $lt_echo in ! 21104: *'\$0 --fallback-echo"') ! 21105: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 21106: ;; ! 21107: esac ! 21108: ! 21109: cfgfile="$ofile" ! 21110: ! 21111: cat <<__EOF__ >> "$cfgfile" ! 21112: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 21113: ! 21114: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 21115: ! 21116: # Shell to use when invoking shell scripts. ! 21117: SHELL=$lt_SHELL ! 21118: ! 21119: # Whether or not to build shared libraries. ! 21120: build_libtool_libs=$enable_shared ! 21121: ! 21122: # Whether or not to build static libraries. ! 21123: build_old_libs=$enable_static ! 21124: ! 21125: # Whether or not to add -lc for building shared libraries. ! 21126: build_libtool_need_lc=$archive_cmds_need_lc_RC ! 21127: ! 21128: # Whether or not to disallow shared libs when runtime libs are static ! 21129: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC ! 21130: ! 21131: # Whether or not to optimize for fast installation. ! 21132: fast_install=$enable_fast_install ! 21133: ! 21134: # The host system. ! 21135: host_alias=$host_alias ! 21136: host=$host ! 21137: ! 21138: # An echo program that does not interpret backslashes. ! 21139: echo=$lt_echo ! 21140: ! 21141: # The archiver. ! 21142: AR=$lt_AR ! 21143: AR_FLAGS=$lt_AR_FLAGS ! 21144: ! 21145: # A C compiler. ! 21146: LTCC=$lt_LTCC ! 21147: ! 21148: # A language-specific compiler. ! 21149: CC=$lt_compiler_RC ! 21150: ! 21151: # Is the compiler the GNU C compiler? ! 21152: with_gcc=$GCC_RC ! 21153: ! 21154: # An ERE matcher. ! 21155: EGREP=$lt_EGREP ! 21156: ! 21157: # The linker used to build libraries. ! 21158: LD=$lt_LD_RC ! 21159: ! 21160: # Whether we need hard or soft links. ! 21161: LN_S=$lt_LN_S ! 21162: ! 21163: # A BSD-compatible nm program. ! 21164: NM=$lt_NM ! 21165: ! 21166: # A symbol stripping program ! 21167: STRIP=$STRIP ! 21168: ! 21169: # Used to examine libraries when file_magic_cmd begins "file" ! 21170: MAGIC_CMD=$MAGIC_CMD ! 21171: ! 21172: # Used on cygwin: DLL creation program. ! 21173: DLLTOOL="$DLLTOOL" ! 21174: ! 21175: # Used on cygwin: object dumper. ! 21176: OBJDUMP="$OBJDUMP" ! 21177: ! 21178: # Used on cygwin: assembler. ! 21179: AS="$AS" ! 21180: ! 21181: # The name of the directory that contains temporary libtool files. ! 21182: objdir=$objdir ! 21183: ! 21184: # How to create reloadable object files. ! 21185: reload_flag=$lt_reload_flag ! 21186: reload_cmds=$lt_reload_cmds ! 21187: ! 21188: # How to pass a linker flag through the compiler. ! 21189: wl=$lt_lt_prog_compiler_wl_RC ! 21190: ! 21191: # Object file suffix (normally "o"). ! 21192: objext="$ac_objext" ! 21193: ! 21194: # Old archive suffix (normally "a"). ! 21195: libext="$libext" ! 21196: ! 21197: # Shared library suffix (normally ".so"). ! 21198: shrext='$shrext' ! 21199: ! 21200: # Executable file suffix (normally ""). ! 21201: exeext="$exeext" ! 21202: ! 21203: # Additional compiler flags for building library objects. ! 21204: pic_flag=$lt_lt_prog_compiler_pic_RC ! 21205: pic_mode=$pic_mode ! 21206: ! 21207: # What is the maximum length of a command? ! 21208: max_cmd_len=$lt_cv_sys_max_cmd_len ! 21209: ! 21210: # Does compiler simultaneously support -c and -o options? ! 21211: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC ! 21212: ! 21213: # Must we lock files when doing compilation ? ! 21214: need_locks=$lt_need_locks ! 21215: ! 21216: # Do we need the lib prefix for modules? ! 21217: need_lib_prefix=$need_lib_prefix ! 21218: ! 21219: # Do we need a version for libraries? ! 21220: need_version=$need_version ! 21221: ! 21222: # Whether dlopen is supported. ! 21223: dlopen_support=$enable_dlopen ! 21224: ! 21225: # Whether dlopen of programs is supported. ! 21226: dlopen_self=$enable_dlopen_self ! 21227: ! 21228: # Whether dlopen of statically linked programs is supported. ! 21229: dlopen_self_static=$enable_dlopen_self_static ! 21230: ! 21231: # Compiler flag to prevent dynamic linking. ! 21232: link_static_flag=$lt_lt_prog_compiler_static_RC ! 21233: ! 21234: # Compiler flag to turn off builtin functions. ! 21235: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC ! 21236: ! 21237: # Compiler flag to allow reflexive dlopens. ! 21238: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC ! 21239: ! 21240: # Compiler flag to generate shared objects directly from archives. ! 21241: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC ! 21242: ! 21243: # Compiler flag to generate thread-safe objects. ! 21244: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC ! 21245: ! 21246: # Library versioning type. ! 21247: version_type=$version_type ! 21248: ! 21249: # Format of library name prefix. ! 21250: libname_spec=$lt_libname_spec ! 21251: ! 21252: # List of archive names. First name is the real one, the rest are links. ! 21253: # The last name is the one that the linker finds with -lNAME. ! 21254: library_names_spec=$lt_library_names_spec ! 21255: ! 21256: # The coded name of the library, if different from the real name. ! 21257: soname_spec=$lt_soname_spec ! 21258: ! 21259: # Commands used to build and install an old-style archive. ! 21260: RANLIB=$lt_RANLIB ! 21261: old_archive_cmds=$lt_old_archive_cmds_RC ! 21262: old_postinstall_cmds=$lt_old_postinstall_cmds ! 21263: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 21264: ! 21265: # Create an old-style archive from a shared archive. ! 21266: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC ! 21267: ! 21268: # Create a temporary old-style archive to link instead of a shared archive. ! 21269: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC ! 21270: ! 21271: # Commands used to build and install a shared archive. ! 21272: archive_cmds=$lt_archive_cmds_RC ! 21273: archive_expsym_cmds=$lt_archive_expsym_cmds_RC ! 21274: postinstall_cmds=$lt_postinstall_cmds ! 21275: postuninstall_cmds=$lt_postuninstall_cmds ! 21276: ! 21277: # Commands used to build a loadable module (assumed same as above if empty) ! 21278: module_cmds=$lt_module_cmds_RC ! 21279: module_expsym_cmds=$lt_module_expsym_cmds_RC ! 21280: ! 21281: # Commands to strip libraries. ! 21282: old_striplib=$lt_old_striplib ! 21283: striplib=$lt_striplib ! 21284: ! 21285: # Dependencies to place before the objects being linked to create a ! 21286: # shared library. ! 21287: predep_objects=$lt_predep_objects_RC ! 21288: ! 21289: # Dependencies to place after the objects being linked to create a ! 21290: # shared library. ! 21291: postdep_objects=$lt_postdep_objects_RC ! 21292: ! 21293: # Dependencies to place before the objects being linked to create a ! 21294: # shared library. ! 21295: predeps=$lt_predeps_RC ! 21296: ! 21297: # Dependencies to place after the objects being linked to create a ! 21298: # shared library. ! 21299: postdeps=$lt_postdeps_RC ! 21300: ! 21301: # The library search path used internally by the compiler when linking ! 21302: # a shared library. ! 21303: compiler_lib_search_path=$lt_compiler_lib_search_path_RC ! 21304: ! 21305: # Method to check whether dependent libraries are shared objects. ! 21306: deplibs_check_method=$lt_deplibs_check_method ! 21307: ! 21308: # Command to use when deplibs_check_method == file_magic. ! 21309: file_magic_cmd=$lt_file_magic_cmd ! 21310: ! 21311: # Flag that allows shared libraries with undefined symbols to be built. ! 21312: allow_undefined_flag=$lt_allow_undefined_flag_RC ! 21313: ! 21314: # Flag that forces no undefined symbols. ! 21315: no_undefined_flag=$lt_no_undefined_flag_RC ! 21316: ! 21317: # Commands used to finish a libtool library installation in a directory. ! 21318: finish_cmds=$lt_finish_cmds ! 21319: ! 21320: # Same as above, but a single script fragment to be evaled but not shown. ! 21321: finish_eval=$lt_finish_eval ! 21322: ! 21323: # Take the output of nm and produce a listing of raw symbols and C names. ! 21324: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 21325: ! 21326: # Transform the output of nm in a proper C declaration ! 21327: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 21328: ! 21329: # Transform the output of nm in a C name address pair ! 21330: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 21331: ! 21332: # This is the shared library runtime path variable. ! 21333: runpath_var=$runpath_var ! 21334: ! 21335: # This is the shared library path variable. ! 21336: shlibpath_var=$shlibpath_var ! 21337: ! 21338: # Is shlibpath searched before the hard-coded library search path? ! 21339: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 21340: ! 21341: # How to hardcode a shared library path into an executable. ! 21342: hardcode_action=$hardcode_action_RC ! 21343: ! 21344: # Whether we should hardcode library paths into libraries. ! 21345: hardcode_into_libs=$hardcode_into_libs ! 21346: ! 21347: # Flag to hardcode \$libdir into a binary during linking. ! 21348: # This must work even if \$libdir does not exist. ! 21349: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC ! 21350: ! 21351: # If ld is used when linking, flag to hardcode \$libdir into ! 21352: # a binary during linking. This must work even if \$libdir does ! 21353: # not exist. ! 21354: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC ! 21355: ! 21356: # Whether we need a single -rpath flag with a separated argument. ! 21357: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC ! 21358: ! 21359: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 21360: # resulting binary. ! 21361: hardcode_direct=$hardcode_direct_RC ! 21362: ! 21363: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 21364: # resulting binary. ! 21365: hardcode_minus_L=$hardcode_minus_L_RC ! 21366: ! 21367: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 21368: # the resulting binary. ! 21369: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC ! 21370: ! 21371: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 21372: # and all subsequent libraries and executables linked against it. ! 21373: hardcode_automatic=$hardcode_automatic_RC ! 21374: ! 21375: # Variables whose values should be saved in libtool wrapper scripts and ! 21376: # restored at relink time. ! 21377: variables_saved_for_relink="$variables_saved_for_relink" ! 21378: ! 21379: # Whether libtool must link a program against all its dependency libraries. ! 21380: link_all_deplibs=$link_all_deplibs_RC ! 21381: ! 21382: # Compile-time system search path for libraries ! 21383: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 21384: ! 21385: # Run-time system search path for libraries ! 21386: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 21387: ! 21388: # Fix the shell variable \$srcfile for the compiler. ! 21389: fix_srcfile_path="$fix_srcfile_path_RC" ! 21390: ! 21391: # Set to yes if exported symbols are required. ! 21392: always_export_symbols=$always_export_symbols_RC ! 21393: ! 21394: # The commands to list exported symbols. ! 21395: export_symbols_cmds=$lt_export_symbols_cmds_RC ! 21396: ! 21397: # The commands to extract the exported symbol list from a shared archive. ! 21398: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 21399: ! 21400: # Symbols that should not be listed in the preloaded symbols. ! 21401: exclude_expsyms=$lt_exclude_expsyms_RC ! 21402: ! 21403: # Symbols that must always be exported. ! 21404: include_expsyms=$lt_include_expsyms_RC ! 21405: ! 21406: # ### END LIBTOOL TAG CONFIG: $tagname ! 21407: ! 21408: __EOF__ ! 21409: ! 21410: ! 21411: else ! 21412: # If there is no Makefile yet, we rely on a make rule to execute ! 21413: # `config.status --recheck' to rerun these tests and create the ! 21414: # libtool script then. ! 21415: test -f Makefile && make "$ltmain" ! 21416: fi ! 21417: ! 21418: ! 21419: ac_ext=c ! 21420: ac_cpp='$CPP $CPPFLAGS' ! 21421: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 21422: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 21423: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 21424: ! 21425: CC="$lt_save_CC" ! 21426: ! 21427: ;; ! 21428: ! 21429: *) ! 21430: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 ! 21431: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} ! 21432: { (exit 1); exit 1; }; } ! 21433: ;; ! 21434: esac ! 21435: ! 21436: # Append the new tag name to the list of available tags. ! 21437: if test -n "$tagname" ; then ! 21438: available_tags="$available_tags $tagname" ! 21439: fi ! 21440: fi ! 21441: done ! 21442: IFS="$lt_save_ifs" ! 21443: ! 21444: # Now substitute the updated list of available tags. ! 21445: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then ! 21446: mv "${ofile}T" "$ofile" ! 21447: chmod +x "$ofile" ! 21448: else ! 21449: rm -f "${ofile}T" ! 21450: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 ! 21451: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} ! 21452: { (exit 1); exit 1; }; } ! 21453: fi ! 21454: fi ! 21455: ! 21456: ! 21457: ! 21458: # This can be used to rebuild libtool when needed ! 21459: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ! 21460: ! 21461: # Always use our own libtool. ! 21462: LIBTOOL='$(SHELL) $(top_builddir)/libtool' ! 21463: ! 21464: # Prevent multiple expansion ! 21465: ! 21466: ! 21467: ! 21468: ! 21469: ! 21470: ! 21471: ! 21472: ! 21473: ! 21474: ! 21475: ! 21476: ! 21477: ! 21478: ! 21479: ! 21480: ! 21481: ! 21482: ! 21483: ! 21484: ! 21485: ! 21486: ! 21487: ! 21488: subdirs="$subdirs libltdl" ! 21489: ! 21490: TME_PREOPEN= ! 21491: if test $enable_shared = no; then ! 21492: TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`' ! 21493: fi ! 21494: ! 21495: ! 21496: # Check whether --enable-debug or --disable-debug was given. ! 21497: if test "${enable_debug+set}" = set; then ! 21498: enableval="$enable_debug" ! 21499: ! 21500: else ! 21501: enable_debug=yes ! 21502: fi; ! 21503: if test "x$enable_debug" = "xyes"; then ! 21504: CFLAGS="${CFLAGS-} -g -O0" ! 21505: CXXFLAGS="${CXXFLAGS-} -g3 -O0" ! 21506: fi ! 21507: # Check whether --enable-warnings or --disable-warnings was given. ! 21508: if test "${enable_warnings+set}" = set; then ! 21509: enableval="$enable_warnings" ! 21510: ! 21511: else ! 21512: enable_warnings=yes ! 21513: fi; ! 21514: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then ! 21515: CFLAGS="${CFLAGS-} -Wall -Werror" ! 21516: CXXFLAGS="${CXXFLAGS-} -W" ! 21517: fi ! 21518: ! 21519: ac_config_commands="$ac_config_commands default-1" ! 21520: ! 21521: ! 21522: ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile libtme/Makefile ic/Makefile ic/m68k/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile bus/Makefile bus/multibus/Makefile generic/Makefile tmesh/Makefile" ! 21523: cat >confcache <<\_ACEOF ! 21524: # This file is a shell script that caches the results of configure ! 21525: # tests run on this system so they can be shared between configure ! 21526: # scripts and configure runs, see configure's option --config-cache. ! 21527: # It is not useful on other systems. If it contains results you don't ! 21528: # want to keep, you may remove or edit it. ! 21529: # ! 21530: # config.status only pays attention to the cache file if you give it ! 21531: # the --recheck option to rerun configure. ! 21532: # ! 21533: # `ac_cv_env_foo' variables (set or unset) will be overridden when ! 21534: # loading this file, other *unset* `ac_cv_foo' will be assigned the ! 21535: # following values. ! 21536: ! 21537: _ACEOF ! 21538: ! 21539: # The following way of writing the cache mishandles newlines in values, ! 21540: # but we know of no workaround that is simple, portable, and efficient. ! 21541: # So, don't put newlines in cache variables' values. ! 21542: # Ultrix sh set writes to stderr and can't be redirected directly, ! 21543: # and sets the high bit in the cache file unless we assign to the vars. ! 21544: { ! 21545: (set) 2>&1 | ! 21546: case `(ac_space=' '; set | grep ac_space) 2>&1` in ! 21547: *ac_space=\ *) ! 21548: # `set' does not quote correctly, so add quotes (double-quote ! 21549: # substitution turns \\\\ into \\, and sed turns \\ into \). ! 21550: sed -n \ ! 21551: "s/'/'\\\\''/g; ! 21552: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ! 21553: ;; ! 21554: *) ! 21555: # `set' quotes correctly as required by POSIX, so do not add quotes. ! 21556: sed -n \ ! 21557: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 21558: ;; ! 21559: esac; ! 21560: } | ! 21561: sed ' ! 21562: t clear ! 21563: : clear ! 21564: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ! 21565: t end ! 21566: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ! 21567: : end' >>confcache ! 21568: if diff $cache_file confcache >/dev/null 2>&1; then :; else ! 21569: if test -w $cache_file; then ! 21570: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" ! 21571: cat confcache >$cache_file ! 21572: else ! 21573: echo "not updating unwritable cache $cache_file" ! 21574: fi ! 21575: fi ! 21576: rm -f confcache ! 21577: ! 21578: test "x$prefix" = xNONE && prefix=$ac_default_prefix ! 21579: # Let make expand exec_prefix. ! 21580: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ! 21581: ! 21582: # VPATH may cause trouble with some makes, so we remove $(srcdir), ! 21583: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ! 21584: # trailing colons and then remove the whole line if VPATH becomes empty ! 21585: # (actually we leave an empty line to preserve line numbers). ! 21586: if test "x$srcdir" = x.; then ! 21587: ac_vpsub='/^[ ]*VPATH[ ]*=/{ ! 21588: s/:*\$(srcdir):*/:/; ! 21589: s/:*\${srcdir}:*/:/; ! 21590: s/:*@srcdir@:*/:/; ! 21591: s/^\([^=]*=[ ]*\):*/\1/; ! 21592: s/:*$//; ! 21593: s/^[^=]*=[ ]*$//; ! 21594: }' ! 21595: fi ! 21596: ! 21597: DEFS=-DHAVE_CONFIG_H ! 21598: ! 21599: ac_libobjs= ! 21600: ac_ltlibobjs= ! 21601: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue ! 21602: # 1. Remove the extension, and $U if already installed. ! 21603: ac_i=`echo "$ac_i" | ! 21604: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` ! 21605: # 2. Add them. ! 21606: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ! 21607: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' ! 21608: done ! 21609: LIBOBJS=$ac_libobjs ! 21610: ! 21611: LTLIBOBJS=$ac_ltlibobjs ! 21612: ! 21613: ! 21614: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then ! 21615: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. ! 21616: Usually this means the macro was only invoked conditionally." >&5 ! 21617: echo "$as_me: error: conditional \"AMDEP\" was never defined. ! 21618: Usually this means the macro was only invoked conditionally." >&2;} ! 21619: { (exit 1); exit 1; }; } ! 21620: fi ! 21621: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then ! 21622: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. ! 21623: Usually this means the macro was only invoked conditionally." >&5 ! 21624: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. ! 21625: Usually this means the macro was only invoked conditionally." >&2;} ! 21626: { (exit 1); exit 1; }; } ! 21627: fi ! 21628: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ! 21629: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ! 21630: Usually this means the macro was only invoked conditionally." >&5 ! 21631: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ! 21632: Usually this means the macro was only invoked conditionally." >&2;} ! 21633: { (exit 1); exit 1; }; } ! 21634: fi ! 21635: ! 21636: : ${CONFIG_STATUS=./config.status} ! 21637: ac_clean_files_save=$ac_clean_files ! 21638: ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! 21639: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ! 21640: echo "$as_me: creating $CONFIG_STATUS" >&6;} ! 21641: cat >$CONFIG_STATUS <<_ACEOF ! 21642: #! $SHELL ! 21643: # Generated by $as_me. ! 21644: # Run this file to recreate the current configuration. ! 21645: # Compiler output produced by configure, useful for debugging ! 21646: # configure, is in config.log if it exists. ! 21647: ! 21648: debug=false ! 21649: ac_cs_recheck=false ! 21650: ac_cs_silent=false ! 21651: SHELL=\${CONFIG_SHELL-$SHELL} ! 21652: _ACEOF ! 21653: ! 21654: cat >>$CONFIG_STATUS <<\_ACEOF ! 21655: ## --------------------- ## ! 21656: ## M4sh Initialization. ## ! 21657: ## --------------------- ## ! 21658: ! 21659: # Be Bourne compatible ! 21660: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 21661: emulate sh ! 21662: NULLCMD=: ! 21663: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! 21664: # is contrary to our usage. Disable this feature. ! 21665: alias -g '${1+"$@"}'='"$@"' ! 21666: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 21667: set -o posix ! 21668: fi ! 21669: ! 21670: # Support unset when possible. ! 21671: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 21672: as_unset=unset ! 21673: else ! 21674: as_unset=false ! 21675: fi ! 21676: ! 21677: ! 21678: # Work around bugs in pre-3.0 UWIN ksh. ! 21679: $as_unset ENV MAIL MAILPATH ! 21680: PS1='$ ' ! 21681: PS2='> ' ! 21682: PS4='+ ' ! 21683: ! 21684: # NLS nuisances. ! 21685: for as_var in \ ! 21686: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! 21687: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! 21688: LC_TELEPHONE LC_TIME ! 21689: do ! 21690: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then ! 21691: eval $as_var=C; export $as_var ! 21692: else ! 21693: $as_unset $as_var ! 21694: fi ! 21695: done ! 21696: ! 21697: # Required to use basename. ! 21698: if expr a : '\(a\)' >/dev/null 2>&1; then ! 21699: as_expr=expr ! 21700: else ! 21701: as_expr=false ! 21702: fi ! 21703: ! 21704: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ! 21705: as_basename=basename ! 21706: else ! 21707: as_basename=false ! 21708: fi ! 21709: ! 21710: ! 21711: # Name of the executable. ! 21712: as_me=`$as_basename "$0" || ! 21713: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 21714: X"$0" : 'X\(//\)$' \| \ ! 21715: X"$0" : 'X\(/\)$' \| \ ! 21716: . : '\(.\)' 2>/dev/null || ! 21717: echo X/"$0" | ! 21718: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 21719: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 21720: /^X\/\(\/\).*/{ s//\1/; q; } ! 21721: s/.*/./; q'` ! 21722: ! 21723: ! 21724: # PATH needs CR, and LINENO needs CR and PATH. ! 21725: # Avoid depending upon Character Ranges. ! 21726: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 21727: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 21728: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 21729: as_cr_digits='0123456789' ! 21730: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 21731: ! 21732: # The user is always right. ! 21733: if test "${PATH_SEPARATOR+set}" != set; then ! 21734: echo "#! /bin/sh" >conf$$.sh ! 21735: echo "exit 0" >>conf$$.sh ! 21736: chmod +x conf$$.sh ! 21737: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! 21738: PATH_SEPARATOR=';' ! 21739: else ! 21740: PATH_SEPARATOR=: ! 21741: fi ! 21742: rm -f conf$$.sh ! 21743: fi ! 21744: ! 21745: ! 21746: as_lineno_1=$LINENO ! 21747: as_lineno_2=$LINENO ! 21748: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 21749: test "x$as_lineno_1" != "x$as_lineno_2" && ! 21750: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 21751: # Find who we are. Look in the path if we contain no path at all ! 21752: # relative or not. ! 21753: case $0 in ! 21754: *[\\/]* ) as_myself=$0 ;; ! 21755: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 21756: for as_dir in $PATH ! 21757: do ! 21758: IFS=$as_save_IFS ! 21759: test -z "$as_dir" && as_dir=. ! 21760: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 21761: done ! 21762: ! 21763: ;; ! 21764: esac ! 21765: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 21766: # in which case we are not to be found in the path. ! 21767: if test "x$as_myself" = x; then ! 21768: as_myself=$0 ! 21769: fi ! 21770: if test ! -f "$as_myself"; then ! 21771: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 ! 21772: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} ! 21773: { (exit 1); exit 1; }; } ! 21774: fi ! 21775: case $CONFIG_SHELL in ! 21776: '') ! 21777: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 21778: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 21779: do ! 21780: IFS=$as_save_IFS ! 21781: test -z "$as_dir" && as_dir=. ! 21782: for as_base in sh bash ksh sh5; do ! 21783: case $as_dir in ! 21784: /*) ! 21785: if ("$as_dir/$as_base" -c ' ! 21786: as_lineno_1=$LINENO ! 21787: as_lineno_2=$LINENO ! 21788: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 21789: test "x$as_lineno_1" != "x$as_lineno_2" && ! 21790: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 21791: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ! 21792: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ! 21793: CONFIG_SHELL=$as_dir/$as_base ! 21794: export CONFIG_SHELL ! 21795: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 21796: fi;; ! 21797: esac ! 21798: done ! 21799: done ! 21800: ;; ! 21801: esac ! 21802: ! 21803: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 21804: # uniformly replaced by the line number. The first 'sed' inserts a ! 21805: # line-number line before each line; the second 'sed' does the real ! 21806: # work. The second script uses 'N' to pair each line-number line ! 21807: # with the numbered line, and appends trailing '-' during ! 21808: # substitution so that $LINENO is not a special case at line end. ! 21809: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 21810: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 21811: sed '=' <$as_myself | ! 21812: sed ' ! 21813: N ! 21814: s,$,-, ! 21815: : loop ! 21816: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 21817: t loop ! 21818: s,-$,, ! 21819: s,^['$as_cr_digits']*\n,, ! 21820: ' >$as_me.lineno && ! 21821: chmod +x $as_me.lineno || ! 21822: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 ! 21823: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} ! 21824: { (exit 1); exit 1; }; } ! 21825: ! 21826: # Don't try to exec as it changes $[0], causing all sort of problems ! 21827: # (the dirname of $[0] is not the place where we might find the ! 21828: # original and so on. Autoconf is especially sensible to this). ! 21829: . ./$as_me.lineno ! 21830: # Exit status is that of the last command. ! 21831: exit ! 21832: } ! 21833: ! 21834: ! 21835: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 21836: *c*,-n*) ECHO_N= ECHO_C=' ! 21837: ' ECHO_T=' ' ;; ! 21838: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 21839: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 21840: esac ! 21841: ! 21842: if expr a : '\(a\)' >/dev/null 2>&1; then ! 21843: as_expr=expr ! 21844: else ! 21845: as_expr=false ! 21846: fi ! 21847: ! 21848: rm -f conf$$ conf$$.exe conf$$.file ! 21849: echo >conf$$.file ! 21850: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 21851: # We could just check for DJGPP; but this test a) works b) is more generic ! 21852: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 21853: if test -f conf$$.exe; then ! 21854: # Don't use ln at all; we don't have any links ! 21855: as_ln_s='cp -p' ! 21856: else ! 21857: as_ln_s='ln -s' ! 21858: fi ! 21859: elif ln conf$$.file conf$$ 2>/dev/null; then ! 21860: as_ln_s=ln ! 21861: else ! 21862: as_ln_s='cp -p' ! 21863: fi ! 21864: rm -f conf$$ conf$$.exe conf$$.file ! 21865: ! 21866: if mkdir -p . 2>/dev/null; then ! 21867: as_mkdir_p=: ! 21868: else ! 21869: as_mkdir_p=false ! 21870: fi ! 21871: ! 21872: as_executable_p="test -f" ! 21873: ! 21874: # Sed expression to map a string onto a valid CPP name. ! 21875: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 21876: ! 21877: # Sed expression to map a string onto a valid variable name. ! 21878: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 21879: ! 21880: ! 21881: # IFS ! 21882: # We need space, tab and new line, in precisely that order. ! 21883: as_nl=' ! 21884: ' ! 21885: IFS=" $as_nl" ! 21886: ! 21887: # CDPATH. ! 21888: $as_unset CDPATH ! 21889: ! 21890: exec 6>&1 ! 21891: ! 21892: # Open the log real soon, to keep \$[0] and so on meaningful, and to ! 21893: # report actual input values of CONFIG_FILES etc. instead of their ! 21894: # values after options handling. Logging --version etc. is OK. ! 21895: exec 5>>config.log ! 21896: { ! 21897: echo ! 21898: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ! 21899: ## Running $as_me. ## ! 21900: _ASBOX ! 21901: } >&5 ! 21902: cat >&5 <<_CSEOF ! 21903: ! 21904: This file was extended by $as_me, which was ! 21905: generated by GNU Autoconf 2.57. Invocation command line was ! 21906: ! 21907: CONFIG_FILES = $CONFIG_FILES ! 21908: CONFIG_HEADERS = $CONFIG_HEADERS ! 21909: CONFIG_LINKS = $CONFIG_LINKS ! 21910: CONFIG_COMMANDS = $CONFIG_COMMANDS ! 21911: $ $0 $@ ! 21912: ! 21913: _CSEOF ! 21914: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 ! 21915: echo >&5 ! 21916: _ACEOF ! 21917: ! 21918: # Files that config.status was made for. ! 21919: if test -n "$ac_config_files"; then ! 21920: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS ! 21921: fi ! 21922: ! 21923: if test -n "$ac_config_headers"; then ! 21924: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS ! 21925: fi ! 21926: ! 21927: if test -n "$ac_config_links"; then ! 21928: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS ! 21929: fi ! 21930: ! 21931: if test -n "$ac_config_commands"; then ! 21932: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS ! 21933: fi ! 21934: ! 21935: cat >>$CONFIG_STATUS <<\_ACEOF ! 21936: ! 21937: ac_cs_usage="\ ! 21938: \`$as_me' instantiates files from templates according to the ! 21939: current configuration. ! 21940: ! 21941: Usage: $0 [OPTIONS] [FILE]... ! 21942: ! 21943: -h, --help print this help, then exit ! 21944: -V, --version print version number, then exit ! 21945: -q, --quiet do not print progress messages ! 21946: -d, --debug don't remove temporary files ! 21947: --recheck update $as_me by reconfiguring in the same conditions ! 21948: --file=FILE[:TEMPLATE] ! 21949: instantiate the configuration file FILE ! 21950: --header=FILE[:TEMPLATE] ! 21951: instantiate the configuration header FILE ! 21952: ! 21953: Configuration files: ! 21954: $config_files ! 21955: ! 21956: Configuration headers: ! 21957: $config_headers ! 21958: ! 21959: Configuration commands: ! 21960: $config_commands ! 21961: ! 21962: Report bugs to <[email protected]>." ! 21963: _ACEOF ! 21964: ! 21965: cat >>$CONFIG_STATUS <<_ACEOF ! 21966: ac_cs_version="\\ ! 21967: config.status ! 21968: configured by $0, generated by GNU Autoconf 2.57, ! 21969: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" ! 21970: ! 21971: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 ! 21972: Free Software Foundation, Inc. ! 21973: This config.status script is free software; the Free Software Foundation ! 21974: gives unlimited permission to copy, distribute and modify it." ! 21975: srcdir=$srcdir ! 21976: INSTALL="$INSTALL" ! 21977: _ACEOF ! 21978: ! 21979: cat >>$CONFIG_STATUS <<\_ACEOF ! 21980: # If no file are specified by the user, then we need to provide default ! 21981: # value. By we need to know if files were specified by the user. ! 21982: ac_need_defaults=: ! 21983: while test $# != 0 ! 21984: do ! 21985: case $1 in ! 21986: --*=*) ! 21987: ac_option=`expr "x$1" : 'x\([^=]*\)='` ! 21988: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ! 21989: ac_shift=: ! 21990: ;; ! 21991: -*) ! 21992: ac_option=$1 ! 21993: ac_optarg=$2 ! 21994: ac_shift=shift ! 21995: ;; ! 21996: *) # This is not an option, so the user has probably given explicit ! 21997: # arguments. ! 21998: ac_option=$1 ! 21999: ac_need_defaults=false;; ! 22000: esac ! 22001: ! 22002: case $ac_option in ! 22003: # Handling of the options. ! 22004: _ACEOF ! 22005: cat >>$CONFIG_STATUS <<\_ACEOF ! 22006: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 22007: ac_cs_recheck=: ;; ! 22008: --version | --vers* | -V ) ! 22009: echo "$ac_cs_version"; exit 0 ;; ! 22010: --he | --h) ! 22011: # Conflict between --help and --header ! 22012: { { echo "$as_me:$LINENO: error: ambiguous option: $1 ! 22013: Try \`$0 --help' for more information." >&5 ! 22014: echo "$as_me: error: ambiguous option: $1 ! 22015: Try \`$0 --help' for more information." >&2;} ! 22016: { (exit 1); exit 1; }; };; ! 22017: --help | --hel | -h ) ! 22018: echo "$ac_cs_usage"; exit 0 ;; ! 22019: --debug | --d* | -d ) ! 22020: debug=: ;; ! 22021: --file | --fil | --fi | --f ) ! 22022: $ac_shift ! 22023: CONFIG_FILES="$CONFIG_FILES $ac_optarg" ! 22024: ac_need_defaults=false;; ! 22025: --header | --heade | --head | --hea ) ! 22026: $ac_shift ! 22027: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ! 22028: ac_need_defaults=false;; ! 22029: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 22030: | -silent | --silent | --silen | --sile | --sil | --si | --s) ! 22031: ac_cs_silent=: ;; ! 22032: ! 22033: # This is an error. ! 22034: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 ! 22035: Try \`$0 --help' for more information." >&5 ! 22036: echo "$as_me: error: unrecognized option: $1 ! 22037: Try \`$0 --help' for more information." >&2;} ! 22038: { (exit 1); exit 1; }; } ;; ! 22039: ! 22040: *) ac_config_targets="$ac_config_targets $1" ;; ! 22041: ! 22042: esac ! 22043: shift ! 22044: done ! 22045: ! 22046: ac_configure_extra_args= ! 22047: ! 22048: if $ac_cs_silent; then ! 22049: exec 6>/dev/null ! 22050: ac_configure_extra_args="$ac_configure_extra_args --silent" ! 22051: fi ! 22052: ! 22053: _ACEOF ! 22054: cat >>$CONFIG_STATUS <<_ACEOF ! 22055: if \$ac_cs_recheck; then ! 22056: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ! 22057: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ! 22058: fi ! 22059: ! 22060: _ACEOF ! 22061: ! 22062: cat >>$CONFIG_STATUS <<_ACEOF ! 22063: # ! 22064: # INIT-COMMANDS section. ! 22065: # ! 22066: ! 22067: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" ! 22068: ! 22069: PACKAGE="$PACKAGE" ! 22070: VERSION="$VERSION" ! 22071: target="$target" ! 22072: ac_cv_sizeof_int="$ac_cv_sizeof_int" ! 22073: ac_cv_sizeof_long="$ac_cv_sizeof_long" ! 22074: ac_cv_sizeof_short="$ac_cv_sizeof_short" ! 22075: ! 22076: ! 22077: _ACEOF ! 22078: ! 22079: ! 22080: ! 22081: cat >>$CONFIG_STATUS <<\_ACEOF ! 22082: for ac_config_target in $ac_config_targets ! 22083: do ! 22084: case "$ac_config_target" in ! 22085: # Handling of arguments. ! 22086: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; ! 22087: "tme/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;; ! 22088: "tme/ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;; ! 22089: "tme/machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;; ! 22090: "tme/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;; ! 22091: "libtme/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;; ! 22092: "ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;; ! 22093: "ic/m68k/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;; ! 22094: "machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;; ! 22095: "machine/sun/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;; ! 22096: "machine/sun2/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;; ! 22097: "host/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/Makefile" ;; ! 22098: "host/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;; ! 22099: "host/bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;; ! 22100: "bus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;; ! 22101: "bus/multibus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;; ! 22102: "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;; ! 22103: "tmesh/Makefile" ) CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;; ! 22104: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ! 22105: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; ! 22106: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; ! 22107: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ! 22108: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ! 22109: { (exit 1); exit 1; }; };; ! 22110: esac ! 22111: done ! 22112: ! 22113: # If the user did not use the arguments to specify the items to instantiate, ! 22114: # then the envvar interface is used. Set only those that are not. ! 22115: # We use the long form for the default assignment because of an extremely ! 22116: # bizarre bug on SunOS 4.1.3. ! 22117: if $ac_need_defaults; then ! 22118: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ! 22119: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ! 22120: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ! 22121: fi ! 22122: ! 22123: # Have a temporary directory for convenience. Make it in the build tree ! 22124: # simply because there is no reason to put it here, and in addition, ! 22125: # creating and moving files from /tmp can sometimes cause problems. ! 22126: # Create a temporary directory, and hook for its removal unless debugging. ! 22127: $debug || ! 22128: { ! 22129: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 ! 22130: trap '{ (exit 1); exit 1; }' 1 2 13 15 ! 22131: } ! 22132: ! 22133: # Create a (secure) tmp directory for tmp files. ! 22134: ! 22135: { ! 22136: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && ! 22137: test -n "$tmp" && test -d "$tmp" ! 22138: } || ! 22139: { ! 22140: tmp=./confstat$$-$RANDOM ! 22141: (umask 077 && mkdir $tmp) ! 22142: } || ! 22143: { ! 22144: echo "$me: cannot create a temporary directory in ." >&2 ! 22145: { (exit 1); exit 1; } ! 22146: } ! 22147: ! 22148: _ACEOF ! 22149: ! 22150: cat >>$CONFIG_STATUS <<_ACEOF ! 22151: ! 22152: # ! 22153: # CONFIG_FILES section. ! 22154: # ! 22155: ! 22156: # No need to generate the scripts if there are no CONFIG_FILES. ! 22157: # This happens for instance when ./config.status config.h ! 22158: if test -n "\$CONFIG_FILES"; then ! 22159: # Protect against being on the right side of a sed subst in config.status. ! 22160: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; ! 22161: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF ! 22162: s,@SHELL@,$SHELL,;t t ! 22163: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t ! 22164: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t ! 22165: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t ! 22166: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t ! 22167: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t ! 22168: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t ! 22169: s,@exec_prefix@,$exec_prefix,;t t ! 22170: s,@prefix@,$prefix,;t t ! 22171: s,@program_transform_name@,$program_transform_name,;t t ! 22172: s,@bindir@,$bindir,;t t ! 22173: s,@sbindir@,$sbindir,;t t ! 22174: s,@libexecdir@,$libexecdir,;t t ! 22175: s,@datadir@,$datadir,;t t ! 22176: s,@sysconfdir@,$sysconfdir,;t t ! 22177: s,@sharedstatedir@,$sharedstatedir,;t t ! 22178: s,@localstatedir@,$localstatedir,;t t ! 22179: s,@libdir@,$libdir,;t t ! 22180: s,@includedir@,$includedir,;t t ! 22181: s,@oldincludedir@,$oldincludedir,;t t ! 22182: s,@infodir@,$infodir,;t t ! 22183: s,@mandir@,$mandir,;t t ! 22184: s,@build_alias@,$build_alias,;t t ! 22185: s,@host_alias@,$host_alias,;t t ! 22186: s,@target_alias@,$target_alias,;t t ! 22187: s,@DEFS@,$DEFS,;t t ! 22188: s,@ECHO_C@,$ECHO_C,;t t ! 22189: s,@ECHO_N@,$ECHO_N,;t t ! 22190: s,@ECHO_T@,$ECHO_T,;t t ! 22191: s,@LIBS@,$LIBS,;t t ! 22192: s,@build@,$build,;t t ! 22193: s,@build_cpu@,$build_cpu,;t t ! 22194: s,@build_vendor@,$build_vendor,;t t ! 22195: s,@build_os@,$build_os,;t t ! 22196: s,@host@,$host,;t t ! 22197: s,@host_cpu@,$host_cpu,;t t ! 22198: s,@host_vendor@,$host_vendor,;t t ! 22199: s,@host_os@,$host_os,;t t ! 22200: s,@target@,$target,;t t ! 22201: s,@target_cpu@,$target_cpu,;t t ! 22202: s,@target_vendor@,$target_vendor,;t t ! 22203: s,@target_os@,$target_os,;t t ! 22204: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t ! 22205: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t ! 22206: s,@INSTALL_DATA@,$INSTALL_DATA,;t t ! 22207: s,@CYGPATH_W@,$CYGPATH_W,;t t ! 22208: s,@PACKAGE@,$PACKAGE,;t t ! 22209: s,@VERSION@,$VERSION,;t t ! 22210: s,@ACLOCAL@,$ACLOCAL,;t t ! 22211: s,@AUTOCONF@,$AUTOCONF,;t t ! 22212: s,@AUTOMAKE@,$AUTOMAKE,;t t ! 22213: s,@AUTOHEADER@,$AUTOHEADER,;t t ! 22214: s,@MAKEINFO@,$MAKEINFO,;t t ! 22215: s,@AMTAR@,$AMTAR,;t t ! 22216: s,@install_sh@,$install_sh,;t t ! 22217: s,@STRIP@,$STRIP,;t t ! 22218: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t ! 22219: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t ! 22220: s,@AWK@,$AWK,;t t ! 22221: s,@SET_MAKE@,$SET_MAKE,;t t ! 22222: s,@CC@,$CC,;t t ! 22223: s,@CFLAGS@,$CFLAGS,;t t ! 22224: s,@LDFLAGS@,$LDFLAGS,;t t ! 22225: s,@CPPFLAGS@,$CPPFLAGS,;t t ! 22226: s,@ac_ct_CC@,$ac_ct_CC,;t t ! 22227: s,@EXEEXT@,$EXEEXT,;t t ! 22228: s,@OBJEXT@,$OBJEXT,;t t ! 22229: s,@DEPDIR@,$DEPDIR,;t t ! 22230: s,@am__include@,$am__include,;t t ! 22231: s,@am__quote@,$am__quote,;t t ! 22232: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t ! 22233: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t ! 22234: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t ! 22235: s,@CCDEPMODE@,$CCDEPMODE,;t t ! 22236: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t ! 22237: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t ! 22238: s,@CPP@,$CPP,;t t ! 22239: s,@YACC@,$YACC,;t t ! 22240: s,@EGREP@,$EGREP,;t t ! 22241: s,@LIBOBJS@,$LIBOBJS,;t t ! 22242: s,@PERL@,$PERL,;t t ! 22243: s,@TME_MACHINE_SUBDIRS@,$TME_MACHINE_SUBDIRS,;t t ! 22244: s,@TME_IC_SUBDIRS@,$TME_IC_SUBDIRS,;t t ! 22245: s,@TME_ICS@,$TME_ICS,;t t ! 22246: s,@TME_BUS_SUBDIRS@,$TME_BUS_SUBDIRS,;t t ! 22247: s,@TME_HOSTS@,$TME_HOSTS,;t t ! 22248: s,@INCLTDL@,$INCLTDL,;t t ! 22249: s,@LIBLTDL@,$LIBLTDL,;t t ! 22250: s,@LN_S@,$LN_S,;t t ! 22251: s,@ECHO@,$ECHO,;t t ! 22252: s,@AR@,$AR,;t t ! 22253: s,@ac_ct_AR@,$ac_ct_AR,;t t ! 22254: s,@RANLIB@,$RANLIB,;t t ! 22255: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t ! 22256: s,@CXX@,$CXX,;t t ! 22257: s,@CXXFLAGS@,$CXXFLAGS,;t t ! 22258: s,@ac_ct_CXX@,$ac_ct_CXX,;t t ! 22259: s,@CXXDEPMODE@,$CXXDEPMODE,;t t ! 22260: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t ! 22261: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t ! 22262: s,@CXXCPP@,$CXXCPP,;t t ! 22263: s,@F77@,$F77,;t t ! 22264: s,@FFLAGS@,$FFLAGS,;t t ! 22265: s,@ac_ct_F77@,$ac_ct_F77,;t t ! 22266: s,@LIBTOOL@,$LIBTOOL,;t t ! 22267: s,@LTLIBOBJS@,$LTLIBOBJS,;t t ! 22268: s,@subdirs@,$subdirs,;t t ! 22269: s,@TME_PREOPEN@,$TME_PREOPEN,;t t ! 22270: CEOF ! 22271: ! 22272: _ACEOF ! 22273: ! 22274: cat >>$CONFIG_STATUS <<\_ACEOF ! 22275: # Split the substitutions into bite-sized pieces for seds with ! 22276: # small command number limits, like on Digital OSF/1 and HP-UX. ! 22277: ac_max_sed_lines=48 ! 22278: ac_sed_frag=1 # Number of current file. ! 22279: ac_beg=1 # First line for current file. ! 22280: ac_end=$ac_max_sed_lines # Line after last line for current file. ! 22281: ac_more_lines=: ! 22282: ac_sed_cmds= ! 22283: while $ac_more_lines; do ! 22284: if test $ac_beg -gt 1; then ! 22285: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 22286: else ! 22287: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 22288: fi ! 22289: if test ! -s $tmp/subs.frag; then ! 22290: ac_more_lines=false ! 22291: else ! 22292: # The purpose of the label and of the branching condition is to ! 22293: # speed up the sed processing (if there are no `@' at all, there ! 22294: # is no need to browse any of the substitutions). ! 22295: # These are the two extra sed commands mentioned above. ! 22296: (echo ':t ! 22297: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed ! 22298: if test -z "$ac_sed_cmds"; then ! 22299: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" ! 22300: else ! 22301: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" ! 22302: fi ! 22303: ac_sed_frag=`expr $ac_sed_frag + 1` ! 22304: ac_beg=$ac_end ! 22305: ac_end=`expr $ac_end + $ac_max_sed_lines` ! 22306: fi ! 22307: done ! 22308: if test -z "$ac_sed_cmds"; then ! 22309: ac_sed_cmds=cat ! 22310: fi ! 22311: fi # test -n "$CONFIG_FILES" ! 22312: ! 22313: _ACEOF ! 22314: cat >>$CONFIG_STATUS <<\_ACEOF ! 22315: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue ! 22316: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 22317: case $ac_file in ! 22318: - | *:- | *:-:* ) # input from stdin ! 22319: cat >$tmp/stdin ! 22320: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22321: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22322: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22323: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22324: * ) ac_file_in=$ac_file.in ;; ! 22325: esac ! 22326: ! 22327: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ! 22328: ac_dir=`(dirname "$ac_file") 2>/dev/null || ! 22329: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22330: X"$ac_file" : 'X\(//\)[^/]' \| \ ! 22331: X"$ac_file" : 'X\(//\)$' \| \ ! 22332: X"$ac_file" : 'X\(/\)' \| \ ! 22333: . : '\(.\)' 2>/dev/null || ! 22334: echo X"$ac_file" | ! 22335: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22336: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22337: /^X\(\/\/\)$/{ s//\1/; q; } ! 22338: /^X\(\/\).*/{ s//\1/; q; } ! 22339: s/.*/./; q'` ! 22340: { if $as_mkdir_p; then ! 22341: mkdir -p "$ac_dir" ! 22342: else ! 22343: as_dir="$ac_dir" ! 22344: as_dirs= ! 22345: while test ! -d "$as_dir"; do ! 22346: as_dirs="$as_dir $as_dirs" ! 22347: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 22348: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22349: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 22350: X"$as_dir" : 'X\(//\)$' \| \ ! 22351: X"$as_dir" : 'X\(/\)' \| \ ! 22352: . : '\(.\)' 2>/dev/null || ! 22353: echo X"$as_dir" | ! 22354: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22355: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22356: /^X\(\/\/\)$/{ s//\1/; q; } ! 22357: /^X\(\/\).*/{ s//\1/; q; } ! 22358: s/.*/./; q'` ! 22359: done ! 22360: test ! -n "$as_dirs" || mkdir $as_dirs ! 22361: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ! 22362: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ! 22363: { (exit 1); exit 1; }; }; } ! 22364: ! 22365: ac_builddir=. ! 22366: ! 22367: if test "$ac_dir" != .; then ! 22368: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 22369: # A "../" for each directory in $ac_dir_suffix. ! 22370: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 22371: else ! 22372: ac_dir_suffix= ac_top_builddir= ! 22373: fi ! 22374: ! 22375: case $srcdir in ! 22376: .) # No --srcdir option. We are building in place. ! 22377: ac_srcdir=. ! 22378: if test -z "$ac_top_builddir"; then ! 22379: ac_top_srcdir=. ! 22380: else ! 22381: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 22382: fi ;; ! 22383: [\\/]* | ?:[\\/]* ) # Absolute path. ! 22384: ac_srcdir=$srcdir$ac_dir_suffix; ! 22385: ac_top_srcdir=$srcdir ;; ! 22386: *) # Relative path. ! 22387: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 22388: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 22389: esac ! 22390: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 22391: # absolute. ! 22392: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 22393: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 22394: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 22395: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 22396: ! 22397: ! 22398: case $INSTALL in ! 22399: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ! 22400: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; ! 22401: esac ! 22402: ! 22403: if test x"$ac_file" != x-; then ! 22404: { echo "$as_me:$LINENO: creating $ac_file" >&5 ! 22405: echo "$as_me: creating $ac_file" >&6;} ! 22406: rm -f "$ac_file" ! 22407: fi ! 22408: # Let's still pretend it is `configure' which instantiates (i.e., don't ! 22409: # use $as_me), people would be surprised to read: ! 22410: # /* config.h. Generated by config.status. */ ! 22411: if test x"$ac_file" = x-; then ! 22412: configure_input= ! 22413: else ! 22414: configure_input="$ac_file. " ! 22415: fi ! 22416: configure_input=$configure_input"Generated from `echo $ac_file_in | ! 22417: sed 's,.*/,,'` by configure." ! 22418: ! 22419: # First look for the input files in the build tree, otherwise in the ! 22420: # src tree. ! 22421: ac_file_inputs=`IFS=: ! 22422: for f in $ac_file_in; do ! 22423: case $f in ! 22424: -) echo $tmp/stdin ;; ! 22425: [\\/$]*) ! 22426: # Absolute (can't be DOS-style, as IFS=:) ! 22427: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22428: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22429: { (exit 1); exit 1; }; } ! 22430: echo $f;; ! 22431: *) # Relative ! 22432: if test -f "$f"; then ! 22433: # Build tree ! 22434: echo $f ! 22435: elif test -f "$srcdir/$f"; then ! 22436: # Source tree ! 22437: echo $srcdir/$f ! 22438: else ! 22439: # /dev/null tree ! 22440: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22441: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22442: { (exit 1); exit 1; }; } ! 22443: fi;; ! 22444: esac ! 22445: done` || { (exit 1); exit 1; } ! 22446: _ACEOF ! 22447: cat >>$CONFIG_STATUS <<_ACEOF ! 22448: sed "$ac_vpsub ! 22449: $extrasub ! 22450: _ACEOF ! 22451: cat >>$CONFIG_STATUS <<\_ACEOF ! 22452: :t ! 22453: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! 22454: s,@configure_input@,$configure_input,;t t ! 22455: s,@srcdir@,$ac_srcdir,;t t ! 22456: s,@abs_srcdir@,$ac_abs_srcdir,;t t ! 22457: s,@top_srcdir@,$ac_top_srcdir,;t t ! 22458: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t ! 22459: s,@builddir@,$ac_builddir,;t t ! 22460: s,@abs_builddir@,$ac_abs_builddir,;t t ! 22461: s,@top_builddir@,$ac_top_builddir,;t t ! 22462: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t ! 22463: s,@INSTALL@,$ac_INSTALL,;t t ! 22464: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out ! 22465: rm -f $tmp/stdin ! 22466: if test x"$ac_file" != x-; then ! 22467: mv $tmp/out $ac_file ! 22468: else ! 22469: cat $tmp/out ! 22470: rm -f $tmp/out ! 22471: fi ! 22472: ! 22473: done ! 22474: _ACEOF ! 22475: cat >>$CONFIG_STATUS <<\_ACEOF ! 22476: ! 22477: # ! 22478: # CONFIG_HEADER section. ! 22479: # ! 22480: ! 22481: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where ! 22482: # NAME is the cpp macro being defined and VALUE is the value it is being given. ! 22483: # ! 22484: # ac_d sets the value in "#define NAME VALUE" lines. ! 22485: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ! 22486: ac_dB='[ ].*$,\1#\2' ! 22487: ac_dC=' ' ! 22488: ac_dD=',;t' ! 22489: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ! 22490: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 22491: ac_uB='$,\1#\2define\3' ! 22492: ac_uC=' ' ! 22493: ac_uD=',;t' ! 22494: ! 22495: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue ! 22496: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 22497: case $ac_file in ! 22498: - | *:- | *:-:* ) # input from stdin ! 22499: cat >$tmp/stdin ! 22500: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22501: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22502: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22503: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22504: * ) ac_file_in=$ac_file.in ;; ! 22505: esac ! 22506: ! 22507: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 ! 22508: echo "$as_me: creating $ac_file" >&6;} ! 22509: ! 22510: # First look for the input files in the build tree, otherwise in the ! 22511: # src tree. ! 22512: ac_file_inputs=`IFS=: ! 22513: for f in $ac_file_in; do ! 22514: case $f in ! 22515: -) echo $tmp/stdin ;; ! 22516: [\\/$]*) ! 22517: # Absolute (can't be DOS-style, as IFS=:) ! 22518: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22519: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22520: { (exit 1); exit 1; }; } ! 22521: echo $f;; ! 22522: *) # Relative ! 22523: if test -f "$f"; then ! 22524: # Build tree ! 22525: echo $f ! 22526: elif test -f "$srcdir/$f"; then ! 22527: # Source tree ! 22528: echo $srcdir/$f ! 22529: else ! 22530: # /dev/null tree ! 22531: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22532: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22533: { (exit 1); exit 1; }; } ! 22534: fi;; ! 22535: esac ! 22536: done` || { (exit 1); exit 1; } ! 22537: # Remove the trailing spaces. ! 22538: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in ! 22539: ! 22540: _ACEOF ! 22541: ! 22542: # Transform confdefs.h into two sed scripts, `conftest.defines' and ! 22543: # `conftest.undefs', that substitutes the proper values into ! 22544: # config.h.in to produce config.h. The first handles `#define' ! 22545: # templates, and the second `#undef' templates. ! 22546: # And first: Protect against being on the right side of a sed subst in ! 22547: # config.status. Protect against being in an unquoted here document ! 22548: # in config.status. ! 22549: rm -f conftest.defines conftest.undefs ! 22550: # Using a here document instead of a string reduces the quoting nightmare. ! 22551: # Putting comments in sed scripts is not portable. ! 22552: # ! 22553: # `end' is used to avoid that the second main sed command (meant for ! 22554: # 0-ary CPP macros) applies to n-ary macro definitions. ! 22555: # See the Autoconf documentation for `clear'. ! 22556: cat >confdef2sed.sed <<\_ACEOF ! 22557: s/[\\&,]/\\&/g ! 22558: s,[\\$`],\\&,g ! 22559: t clear ! 22560: : clear ! 22561: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp ! 22562: t end ! 22563: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp ! 22564: : end ! 22565: _ACEOF ! 22566: # If some macros were called several times there might be several times ! 22567: # the same #defines, which is useless. Nevertheless, we may not want to ! 22568: # sort them, since we want the *last* AC-DEFINE to be honored. ! 22569: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines ! 22570: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs ! 22571: rm -f confdef2sed.sed ! 22572: ! 22573: # This sed command replaces #undef with comments. This is necessary, for ! 22574: # example, in the case of _POSIX_SOURCE, which is predefined and required ! 22575: # on some systems where configure will not decide to define it. ! 22576: cat >>conftest.undefs <<\_ACEOF ! 22577: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, ! 22578: _ACEOF ! 22579: ! 22580: # Break up conftest.defines because some shells have a limit on the size ! 22581: # of here documents, and old seds have small limits too (100 cmds). ! 22582: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS ! 22583: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS ! 22584: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS ! 22585: echo ' :' >>$CONFIG_STATUS ! 22586: rm -f conftest.tail ! 22587: while grep . conftest.defines >/dev/null ! 22588: do ! 22589: # Write a limited-size here document to $tmp/defines.sed. ! 22590: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS ! 22591: # Speed up: don't consider the non `#define' lines. ! 22592: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS ! 22593: # Work around the forget-to-reset-the-flag bug. ! 22594: echo 't clr' >>$CONFIG_STATUS ! 22595: echo ': clr' >>$CONFIG_STATUS ! 22596: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS ! 22597: echo 'CEOF ! 22598: sed -f $tmp/defines.sed $tmp/in >$tmp/out ! 22599: rm -f $tmp/in ! 22600: mv $tmp/out $tmp/in ! 22601: ' >>$CONFIG_STATUS ! 22602: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail ! 22603: rm -f conftest.defines ! 22604: mv conftest.tail conftest.defines ! 22605: done ! 22606: rm -f conftest.defines ! 22607: echo ' fi # grep' >>$CONFIG_STATUS ! 22608: echo >>$CONFIG_STATUS ! 22609: ! 22610: # Break up conftest.undefs because some shells have a limit on the size ! 22611: # of here documents, and old seds have small limits too (100 cmds). ! 22612: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS ! 22613: rm -f conftest.tail ! 22614: while grep . conftest.undefs >/dev/null ! 22615: do ! 22616: # Write a limited-size here document to $tmp/undefs.sed. ! 22617: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS ! 22618: # Speed up: don't consider the non `#undef' ! 22619: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS ! 22620: # Work around the forget-to-reset-the-flag bug. ! 22621: echo 't clr' >>$CONFIG_STATUS ! 22622: echo ': clr' >>$CONFIG_STATUS ! 22623: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS ! 22624: echo 'CEOF ! 22625: sed -f $tmp/undefs.sed $tmp/in >$tmp/out ! 22626: rm -f $tmp/in ! 22627: mv $tmp/out $tmp/in ! 22628: ' >>$CONFIG_STATUS ! 22629: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail ! 22630: rm -f conftest.undefs ! 22631: mv conftest.tail conftest.undefs ! 22632: done ! 22633: rm -f conftest.undefs ! 22634: ! 22635: cat >>$CONFIG_STATUS <<\_ACEOF ! 22636: # Let's still pretend it is `configure' which instantiates (i.e., don't ! 22637: # use $as_me), people would be surprised to read: ! 22638: # /* config.h. Generated by config.status. */ ! 22639: if test x"$ac_file" = x-; then ! 22640: echo "/* Generated by configure. */" >$tmp/config.h ! 22641: else ! 22642: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h ! 22643: fi ! 22644: cat $tmp/in >>$tmp/config.h ! 22645: rm -f $tmp/in ! 22646: if test x"$ac_file" != x-; then ! 22647: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then ! 22648: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 ! 22649: echo "$as_me: $ac_file is unchanged" >&6;} ! 22650: else ! 22651: ac_dir=`(dirname "$ac_file") 2>/dev/null || ! 22652: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22653: X"$ac_file" : 'X\(//\)[^/]' \| \ ! 22654: X"$ac_file" : 'X\(//\)$' \| \ ! 22655: X"$ac_file" : 'X\(/\)' \| \ ! 22656: . : '\(.\)' 2>/dev/null || ! 22657: echo X"$ac_file" | ! 22658: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22659: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22660: /^X\(\/\/\)$/{ s//\1/; q; } ! 22661: /^X\(\/\).*/{ s//\1/; q; } ! 22662: s/.*/./; q'` ! 22663: { if $as_mkdir_p; then ! 22664: mkdir -p "$ac_dir" ! 22665: else ! 22666: as_dir="$ac_dir" ! 22667: as_dirs= ! 22668: while test ! -d "$as_dir"; do ! 22669: as_dirs="$as_dir $as_dirs" ! 22670: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 22671: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22672: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 22673: X"$as_dir" : 'X\(//\)$' \| \ ! 22674: X"$as_dir" : 'X\(/\)' \| \ ! 22675: . : '\(.\)' 2>/dev/null || ! 22676: echo X"$as_dir" | ! 22677: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22678: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22679: /^X\(\/\/\)$/{ s//\1/; q; } ! 22680: /^X\(\/\).*/{ s//\1/; q; } ! 22681: s/.*/./; q'` ! 22682: done ! 22683: test ! -n "$as_dirs" || mkdir $as_dirs ! 22684: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ! 22685: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ! 22686: { (exit 1); exit 1; }; }; } ! 22687: ! 22688: rm -f $ac_file ! 22689: mv $tmp/config.h $ac_file ! 22690: fi ! 22691: else ! 22692: cat $tmp/config.h ! 22693: rm -f $tmp/config.h ! 22694: fi ! 22695: _am_stamp_count=`expr ${_am_stamp_count-0} + 1` ! 22696: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || ! 22697: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22698: X$ac_file : 'X\(//\)[^/]' \| \ ! 22699: X$ac_file : 'X\(//\)$' \| \ ! 22700: X$ac_file : 'X\(/\)' \| \ ! 22701: . : '\(.\)' 2>/dev/null || ! 22702: echo X$ac_file | ! 22703: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22704: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22705: /^X\(\/\/\)$/{ s//\1/; q; } ! 22706: /^X\(\/\).*/{ s//\1/; q; } ! 22707: s/.*/./; q'`/stamp-h$_am_stamp_count ! 22708: done ! 22709: _ACEOF ! 22710: cat >>$CONFIG_STATUS <<\_ACEOF ! 22711: ! 22712: # ! 22713: # CONFIG_COMMANDS section. ! 22714: # ! 22715: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ! 22716: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ! 22717: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22718: ac_dir=`(dirname "$ac_dest") 2>/dev/null || ! 22719: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22720: X"$ac_dest" : 'X\(//\)[^/]' \| \ ! 22721: X"$ac_dest" : 'X\(//\)$' \| \ ! 22722: X"$ac_dest" : 'X\(/\)' \| \ ! 22723: . : '\(.\)' 2>/dev/null || ! 22724: echo X"$ac_dest" | ! 22725: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22726: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22727: /^X\(\/\/\)$/{ s//\1/; q; } ! 22728: /^X\(\/\).*/{ s//\1/; q; } ! 22729: s/.*/./; q'` ! 22730: ac_builddir=. ! 22731: ! 22732: if test "$ac_dir" != .; then ! 22733: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 22734: # A "../" for each directory in $ac_dir_suffix. ! 22735: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 22736: else ! 22737: ac_dir_suffix= ac_top_builddir= ! 22738: fi ! 22739: ! 22740: case $srcdir in ! 22741: .) # No --srcdir option. We are building in place. ! 22742: ac_srcdir=. ! 22743: if test -z "$ac_top_builddir"; then ! 22744: ac_top_srcdir=. ! 22745: else ! 22746: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 22747: fi ;; ! 22748: [\\/]* | ?:[\\/]* ) # Absolute path. ! 22749: ac_srcdir=$srcdir$ac_dir_suffix; ! 22750: ac_top_srcdir=$srcdir ;; ! 22751: *) # Relative path. ! 22752: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 22753: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 22754: esac ! 22755: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 22756: # absolute. ! 22757: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 22758: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 22759: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 22760: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 22761: ! 22762: ! 22763: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 ! 22764: echo "$as_me: executing $ac_dest commands" >&6;} ! 22765: case $ac_dest in ! 22766: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ! 22767: # Strip MF so we end up with the name of the file. ! 22768: mf=`echo "$mf" | sed -e 's/:.*$//'` ! 22769: # Check whether this is an Automake generated Makefile or not. ! 22770: # We used to match only the files named `Makefile.in', but ! 22771: # some people rename them; so instead we look at the file content. ! 22772: # Grep'ing the first line is not enough: some people post-process ! 22773: # each Makefile.in and add a new line on top of each file to say so. ! 22774: # So let's grep whole file. ! 22775: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then ! 22776: dirpart=`(dirname "$mf") 2>/dev/null || ! 22777: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22778: X"$mf" : 'X\(//\)[^/]' \| \ ! 22779: X"$mf" : 'X\(//\)$' \| \ ! 22780: X"$mf" : 'X\(/\)' \| \ ! 22781: . : '\(.\)' 2>/dev/null || ! 22782: echo X"$mf" | ! 22783: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22784: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22785: /^X\(\/\/\)$/{ s//\1/; q; } ! 22786: /^X\(\/\).*/{ s//\1/; q; } ! 22787: s/.*/./; q'` ! 22788: else ! 22789: continue ! 22790: fi ! 22791: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue ! 22792: # Extract the definition of DEP_FILES from the Makefile without ! 22793: # running `make'. ! 22794: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` ! 22795: test -z "$DEPDIR" && continue ! 22796: # When using ansi2knr, U may be empty or an underscore; expand it ! 22797: U=`sed -n -e '/^U = / s///p' < "$mf"` ! 22798: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" ! 22799: # We invoke sed twice because it is the simplest approach to ! 22800: # changing $(DEPDIR) to its actual value in the expansion. ! 22801: for file in `sed -n -e ' ! 22802: /^DEP_FILES = .*\\\\$/ { ! 22803: s/^DEP_FILES = // ! 22804: :loop ! 22805: s/\\\\$// ! 22806: p ! 22807: n ! 22808: /\\\\$/ b loop ! 22809: p ! 22810: } ! 22811: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ ! 22812: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ! 22813: # Make sure the directory exists. ! 22814: test -f "$dirpart/$file" && continue ! 22815: fdir=`(dirname "$file") 2>/dev/null || ! 22816: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22817: X"$file" : 'X\(//\)[^/]' \| \ ! 22818: X"$file" : 'X\(//\)$' \| \ ! 22819: X"$file" : 'X\(/\)' \| \ ! 22820: . : '\(.\)' 2>/dev/null || ! 22821: echo X"$file" | ! 22822: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22823: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22824: /^X\(\/\/\)$/{ s//\1/; q; } ! 22825: /^X\(\/\).*/{ s//\1/; q; } ! 22826: s/.*/./; q'` ! 22827: { if $as_mkdir_p; then ! 22828: mkdir -p $dirpart/$fdir ! 22829: else ! 22830: as_dir=$dirpart/$fdir ! 22831: as_dirs= ! 22832: while test ! -d "$as_dir"; do ! 22833: as_dirs="$as_dir $as_dirs" ! 22834: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 22835: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22836: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 22837: X"$as_dir" : 'X\(//\)$' \| \ ! 22838: X"$as_dir" : 'X\(/\)' \| \ ! 22839: . : '\(.\)' 2>/dev/null || ! 22840: echo X"$as_dir" | ! 22841: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22842: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22843: /^X\(\/\/\)$/{ s//\1/; q; } ! 22844: /^X\(\/\).*/{ s//\1/; q; } ! 22845: s/.*/./; q'` ! 22846: done ! 22847: test ! -n "$as_dirs" || mkdir $as_dirs ! 22848: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 ! 22849: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} ! 22850: { (exit 1); exit 1; }; }; } ! 22851: ! 22852: # echo "creating $dirpart/$file" ! 22853: echo '# dummy' > "$dirpart/$file" ! 22854: done ! 22855: done ! 22856: ;; ! 22857: default-1 ) ! 22858: ! 22859: ## Generate our configure-time sources in two ! 22860: ## cases: ! 22861: ## 1. `config.status' is run either explicitly, or via configure. ! 22862: ## Esp. not when it is run in `Makefile' to generate makefiles and ! 22863: ## config.h ! 22864: ## 2. CONFIG_OTHER is set explicitly ! 22865: ## ! 22866: ## Case 1 is difficult. We know that `automake' sets one of ! 22867: ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works ! 22868: ## only when AM_CONFIG_HEADER is set, however. ! 22869: ! 22870: case "x$CONFIG_OTHER" in ! 22871: *tmeconfig.h) gen_tmeconfig_h=yes ! 22872: ;; ! 22873: esac ! 22874: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then ! 22875: # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1 ! 22876: if test "x${CONFIG_OTHER}" = x; then ! 22877: gen_tmeconfig_h=yes ! 22878: fi ! 22879: fi ! 22880: ! 22881: ## If we're generating tmeconfig.h: ! 22882: if test "x$gen_tmeconfig_h" = xyes; then ! 22883: outfile=tmeconfig.h ! 22884: echo "$as_me: creating $outfile" ! 22885: cat <<TMEEOF > ${outfile}-tmp ! 22886: /* tmeconfig.h ! 22887: * ! 22888: * This is an automatically generated file - please modify 'configure.in'. ! 22889: */ ! 22890: ! 22891: #ifndef _TMECONFIG_H ! 22892: #define _TMECONFIG_H ! 22893: ! 22894: TMEEOF ! 22895: (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ WORDS_BIGENDIAN; do \ ! 22896: grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \ ! 22897: done) | sort | uniq >> ${outfile}-tmp ! 22898: echo '#define TME_RELEASE_MAJOR (' \ ! 22899: `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp ! 22900: echo '#define TME_RELEASE_MINOR (' \ ! 22901: `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp ! 22902: echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp ! 22903: if test $ac_cv_sizeof_int = 4; then ! 22904: echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp ! 22905: echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp ! 22906: elif test $ac_cv_sizeof_long = 4; then ! 22907: echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp ! 22908: echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp ! 22909: fi ! 22910: if test $ac_cv_sizeof_int = 2; then ! 22911: echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp ! 22912: echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp ! 22913: elif test $ac_cv_sizeof_short = 2; then ! 22914: echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp ! 22915: echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp ! 22916: fi ! 22917: echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp ! 22918: echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp ! 22919: cat <<TMEEOF >> ${outfile}-tmp ! 22920: ! 22921: /* features that aren't currently controlled by a configure option: */ ! 22922: #define TME_THREADS_SJLJ ! 22923: ! 22924: #endif /* !_TMECONFIG_H */ ! 22925: TMEEOF ! 22926: if cmp -s ${outfile}-tmp $outfile; then ! 22927: echo "$as_me: $outfile is unchanged" ! 22928: rm -f ${outfile}-tmp ! 22929: else ! 22930: mv ${outfile}-tmp ${outfile} ! 22931: fi ! 22932: fi ! 22933: ;; ! 22934: esac ! 22935: done ! 22936: _ACEOF ! 22937: ! 22938: cat >>$CONFIG_STATUS <<\_ACEOF ! 22939: ! 22940: { (exit 0); exit 0; } ! 22941: _ACEOF ! 22942: chmod +x $CONFIG_STATUS ! 22943: ac_clean_files=$ac_clean_files_save ! 22944: ! 22945: ! 22946: # configure is writing to config.log, and then calls config.status. ! 22947: # config.status does its own redirection, appending to config.log. ! 22948: # Unfortunately, on DOS this fails, as config.log is still kept open ! 22949: # by configure, so config.status won't be able to write to it; its ! 22950: # output is simply discarded. So we exec the FD to /dev/null, ! 22951: # effectively closing config.log, so it can be properly (re)opened and ! 22952: # appended to by config.status. When coming back to configure, we ! 22953: # need to make the FD available again. ! 22954: if test "$no_create" != yes; then ! 22955: ac_cs_success=: ! 22956: ac_config_status_args= ! 22957: test "$silent" = yes && ! 22958: ac_config_status_args="$ac_config_status_args --quiet" ! 22959: exec 5>/dev/null ! 22960: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false ! 22961: exec 5>>config.log ! 22962: # Use ||, not &&, to avoid exiting from the if with $? = 1, which ! 22963: # would make configure fail if this is the last instruction. ! 22964: $ac_cs_success || { (exit 1); exit 1; } ! 22965: fi ! 22966: ! 22967: # ! 22968: # CONFIG_SUBDIRS section. ! 22969: # ! 22970: if test "$no_recursion" != yes; then ! 22971: ! 22972: # Remove --cache-file and --srcdir arguments so they do not pile up. ! 22973: ac_sub_configure_args= ! 22974: ac_prev= ! 22975: for ac_arg in $ac_configure_args; do ! 22976: if test -n "$ac_prev"; then ! 22977: ac_prev= ! 22978: continue ! 22979: fi ! 22980: case $ac_arg in ! 22981: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 22982: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 22983: ac_prev=cache_file ;; ! 22984: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 22985: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ ! 22986: | --c=*) ! 22987: ;; ! 22988: --config-cache | -C) ! 22989: ;; ! 22990: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 22991: ac_prev=srcdir ;; ! 22992: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 22993: ;; ! 22994: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 22995: ac_prev=prefix ;; ! 22996: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 22997: ;; ! 22998: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; ! 22999: esac ! 23000: done ! 23001: ! 23002: # Always prepend --prefix to ensure using the same prefix ! 23003: # in subdir configurations. ! 23004: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" ! 23005: ! 23006: ac_popdir=`pwd` ! 23007: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue ! 23008: ! 23009: # Do not complain, so a configure script can configure whichever ! 23010: # parts of a large source tree are present. ! 23011: test -d $srcdir/$ac_dir || continue ! 23012: ! 23013: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 ! 23014: echo "$as_me: configuring in $ac_dir" >&6;} ! 23015: { if $as_mkdir_p; then ! 23016: mkdir -p "$ac_dir" ! 23017: else ! 23018: as_dir="$ac_dir" ! 23019: as_dirs= ! 23020: while test ! -d "$as_dir"; do ! 23021: as_dirs="$as_dir $as_dirs" ! 23022: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 23023: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 23024: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 23025: X"$as_dir" : 'X\(//\)$' \| \ ! 23026: X"$as_dir" : 'X\(/\)' \| \ ! 23027: . : '\(.\)' 2>/dev/null || ! 23028: echo X"$as_dir" | ! 23029: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 23030: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 23031: /^X\(\/\/\)$/{ s//\1/; q; } ! 23032: /^X\(\/\).*/{ s//\1/; q; } ! 23033: s/.*/./; q'` ! 23034: done ! 23035: test ! -n "$as_dirs" || mkdir $as_dirs ! 23036: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ! 23037: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ! 23038: { (exit 1); exit 1; }; }; } ! 23039: ! 23040: ac_builddir=. ! 23041: ! 23042: if test "$ac_dir" != .; then ! 23043: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 23044: # A "../" for each directory in $ac_dir_suffix. ! 23045: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 23046: else ! 23047: ac_dir_suffix= ac_top_builddir= ! 23048: fi ! 23049: ! 23050: case $srcdir in ! 23051: .) # No --srcdir option. We are building in place. ! 23052: ac_srcdir=. ! 23053: if test -z "$ac_top_builddir"; then ! 23054: ac_top_srcdir=. ! 23055: else ! 23056: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 23057: fi ;; ! 23058: [\\/]* | ?:[\\/]* ) # Absolute path. ! 23059: ac_srcdir=$srcdir$ac_dir_suffix; ! 23060: ac_top_srcdir=$srcdir ;; ! 23061: *) # Relative path. ! 23062: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 23063: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 23064: esac ! 23065: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 23066: # absolute. ! 23067: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 23068: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 23069: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 23070: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 23071: ! 23072: ! 23073: cd $ac_dir ! 23074: ! 23075: # Check for guested configure; otherwise get Cygnus style configure. ! 23076: if test -f $ac_srcdir/configure.gnu; then ! 23077: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" ! 23078: elif test -f $ac_srcdir/configure; then ! 23079: ac_sub_configure="$SHELL '$ac_srcdir/configure'" ! 23080: elif test -f $ac_srcdir/configure.in; then ! 23081: ac_sub_configure=$ac_configure ! 23082: else ! 23083: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 ! 23084: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ! 23085: ac_sub_configure= ! 23086: fi ! 23087: ! 23088: # The recursion is here. ! 23089: if test -n "$ac_sub_configure"; then ! 23090: # Make the cache file name correct relative to the subdirectory. ! 23091: case $cache_file in ! 23092: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; ! 23093: *) # Relative path. ! 23094: ac_sub_cache_file=$ac_top_builddir$cache_file ;; ! 23095: esac ! 23096: ! 23097: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 ! 23098: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} ! 23099: # The eval makes quoting arguments work. ! 23100: eval $ac_sub_configure $ac_sub_configure_args \ ! 23101: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || ! 23102: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 ! 23103: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} ! 23104: { (exit 1); exit 1; }; } ! 23105: fi ! 23106: ! 23107: cd $ac_popdir ! 23108: done ! 23109: fi ! 23110: ! 23111:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.