Annotation of sql/pgsql/configure, revision 1.10
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.10 ! paf 3: # Generated by GNU Autoconf 2.57.
1.1 parser 4: #
1.10 ! paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! 6: # Free Software Foundation, Inc.
1.1 parser 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.10 ! paf 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: # Find the correct PATH separator. Usually this is `:', but
! 244: # DJGPP uses `;' like DOS.
! 245: if test "X${PATH_SEPARATOR+set}" != Xset; then
! 246: UNAME=${UNAME-`uname 2>/dev/null`}
! 247: case X$UNAME in
! 248: *-DOS) lt_cv_sys_path_separator=';' ;;
! 249: *) lt_cv_sys_path_separator=':' ;;
! 250: esac
! 251: PATH_SEPARATOR=$lt_cv_sys_path_separator
! 252: fi
! 253:
! 254:
! 255: # Check that we are running under the correct shell.
! 256: SHELL=${CONFIG_SHELL-/bin/sh}
! 257:
! 258: case X$ECHO in
! 259: X*--fallback-echo)
! 260: # Remove one level of quotation (which was required for Make).
! 261: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
! 262: ;;
! 263: esac
! 264:
! 265: echo=${ECHO-echo}
! 266: if test "X$1" = X--no-reexec; then
! 267: # Discard the --no-reexec flag, and continue.
! 268: shift
! 269: elif test "X$1" = X--fallback-echo; then
! 270: # Avoid inline document here, it may be left over
! 271: :
! 272: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
! 273: # Yippee, $echo works!
! 274: :
! 275: else
! 276: # Restart under the correct shell.
! 277: exec $SHELL "$0" --no-reexec ${1+"$@"}
! 278: fi
! 279:
! 280: if test "X$1" = X--fallback-echo; then
! 281: # used as fallback echo
! 282: shift
! 283: cat <<EOF
! 284:
! 285: EOF
! 286: exit 0
! 287: fi
! 288:
! 289: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 290: # if CDPATH is set.
! 291: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 292:
! 293: if test -z "$ECHO"; then
! 294: if test "X${echo_test_string+set}" != Xset; then
! 295: # find a string as large as possible, as long as the shell can cope with it
! 296: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
! 297: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
! 298: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
! 299: echo_test_string="`eval $cmd`" &&
! 300: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
! 301: then
! 302: break
! 303: fi
! 304: done
! 305: fi
! 306:
! 307: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 308: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 309: test "X$echo_testing_string" = "X$echo_test_string"; then
! 310: :
! 311: else
! 312: # The Solaris, AIX, and Digital Unix default echo programs unquote
! 313: # backslashes. This makes it impossible to quote backslashes using
! 314: # echo "$something" | sed 's/\\/\\\\/g'
! 315: #
! 316: # So, first we look for a working echo in the user's PATH.
! 317:
! 318: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 319: for dir in $PATH /usr/ucb; do
! 320: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
! 321: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
! 322: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
! 323: test "X$echo_testing_string" = "X$echo_test_string"; then
! 324: echo="$dir/echo"
! 325: break
! 326: fi
! 327: done
! 328: IFS="$save_ifs"
! 329:
! 330: if test "X$echo" = Xecho; then
! 331: # We didn't find a better echo, so look for alternatives.
! 332: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
! 333: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
! 334: test "X$echo_testing_string" = "X$echo_test_string"; then
! 335: # This shell has a builtin print -r that does the trick.
! 336: echo='print -r'
! 337: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
! 338: test "X$CONFIG_SHELL" != X/bin/ksh; then
! 339: # If we have ksh, try running configure again with it.
! 340: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
! 341: export ORIGINAL_CONFIG_SHELL
! 342: CONFIG_SHELL=/bin/ksh
! 343: export CONFIG_SHELL
! 344: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
! 345: else
! 346: # Try using printf.
! 347: echo='printf %s\n'
! 348: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 349: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 350: test "X$echo_testing_string" = "X$echo_test_string"; then
! 351: # Cool, printf works
! 352: :
! 353: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 354: test "X$echo_testing_string" = 'X\t' &&
! 355: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 356: test "X$echo_testing_string" = "X$echo_test_string"; then
! 357: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
! 358: export CONFIG_SHELL
! 359: SHELL="$CONFIG_SHELL"
! 360: export SHELL
! 361: echo="$CONFIG_SHELL $0 --fallback-echo"
! 362: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 363: test "X$echo_testing_string" = 'X\t' &&
! 364: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 365: test "X$echo_testing_string" = "X$echo_test_string"; then
! 366: echo="$CONFIG_SHELL $0 --fallback-echo"
! 367: else
! 368: # maybe with a smaller string...
! 369: prev=:
! 370:
! 371: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
! 372: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
! 373: then
! 374: break
! 375: fi
! 376: prev="$cmd"
! 377: done
! 378:
! 379: if test "$prev" != 'sed 50q "$0"'; then
! 380: echo_test_string=`eval $prev`
! 381: export echo_test_string
! 382: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
! 383: else
! 384: # Oops. We lost completely, so just stick with echo.
! 385: echo=echo
! 386: fi
! 387: fi
! 388: fi
! 389: fi
! 390: fi
! 391: fi
! 392:
! 393: # Copy echo and quote the copy suitably for passing to libtool from
! 394: # the Makefile, instead of quoting the original, which is used later.
! 395: ECHO=$echo
! 396: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
! 397: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
! 398: fi
! 399:
! 400:
! 401:
! 402: # Name of the host.
! 403: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! 404: # so uname gets run too.
! 405: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 406:
1.10 ! paf 407: exec 6>&1
! 408:
! 409: #
! 410: # Initializations.
! 411: #
1.1 parser 412: ac_default_prefix=/usr/local
1.10 ! paf 413: ac_config_libobj_dir=.
! 414: cross_compiling=no
! 415: subdirs=
! 416: MFLAGS=
! 417: MAKEFLAGS=
! 418: SHELL=${CONFIG_SHELL-/bin/sh}
! 419:
! 420: # Maximum number of lines to put in a shell here document.
! 421: # This variable seems obsolete. It should probably be removed, and
! 422: # only ac_max_sed_lines should be used.
! 423: : ${ac_max_here_lines=38}
! 424:
! 425: # Identity of this package.
! 426: PACKAGE_NAME=
! 427: PACKAGE_TARNAME=
! 428: PACKAGE_VERSION=
! 429: PACKAGE_STRING=
! 430: PACKAGE_BUGREPORT=
! 431:
! 432: ac_unique_file="parser3pgsql.C"
! 433: # Factoring default headers for most tests.
! 434: ac_includes_default="\
! 435: #include <stdio.h>
! 436: #if HAVE_SYS_TYPES_H
! 437: # include <sys/types.h>
! 438: #endif
! 439: #if HAVE_SYS_STAT_H
! 440: # include <sys/stat.h>
! 441: #endif
! 442: #if STDC_HEADERS
! 443: # include <stdlib.h>
! 444: # include <stddef.h>
! 445: #else
! 446: # if HAVE_STDLIB_H
! 447: # include <stdlib.h>
! 448: # endif
! 449: #endif
! 450: #if HAVE_STRING_H
! 451: # if !STDC_HEADERS && HAVE_MEMORY_H
! 452: # include <memory.h>
! 453: # endif
! 454: # include <string.h>
! 455: #endif
! 456: #if HAVE_STRINGS_H
! 457: # include <strings.h>
! 458: #endif
! 459: #if HAVE_INTTYPES_H
! 460: # include <inttypes.h>
! 461: #else
! 462: # if HAVE_STDINT_H
! 463: # include <stdint.h>
! 464: # endif
! 465: #endif
! 466: #if HAVE_UNISTD_H
! 467: # include <unistd.h>
! 468: #endif"
! 469:
! 470: ac_subdirs_all="$ac_subdirs_all libltdl"
! 471: 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 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 PGSQL_INC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CXXCPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
! 472: ac_subst_files=''
1.1 parser 473:
474: # Initialize some variables set by options.
1.10 ! paf 475: ac_init_help=
! 476: ac_init_version=false
1.1 parser 477: # The variables have the same names as the options, with
478: # dashes changed to underlines.
1.10 ! paf 479: cache_file=/dev/null
1.1 parser 480: exec_prefix=NONE
481: no_create=
482: no_recursion=
483: prefix=NONE
484: program_prefix=NONE
485: program_suffix=NONE
486: program_transform_name=s,x,x,
487: silent=
488: site=
489: srcdir=
490: verbose=
491: x_includes=NONE
492: x_libraries=NONE
1.10 ! paf 493:
! 494: # Installation directory options.
! 495: # These are left unexpanded so users can "make install exec_prefix=/foo"
! 496: # and all the variables that are supposed to be based on exec_prefix
! 497: # by default will actually change.
! 498: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 499: bindir='${exec_prefix}/bin'
500: sbindir='${exec_prefix}/sbin'
501: libexecdir='${exec_prefix}/libexec'
502: datadir='${prefix}/share'
503: sysconfdir='${prefix}/etc'
504: sharedstatedir='${prefix}/com'
505: localstatedir='${prefix}/var'
506: libdir='${exec_prefix}/lib'
507: includedir='${prefix}/include'
508: oldincludedir='/usr/include'
509: infodir='${prefix}/info'
510: mandir='${prefix}/man'
511:
512: ac_prev=
513: for ac_option
514: do
515: # If the previous option needs an argument, assign it.
516: if test -n "$ac_prev"; then
517: eval "$ac_prev=\$ac_option"
518: ac_prev=
519: continue
520: fi
521:
1.10 ! paf 522: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 523:
524: # Accept the important Cygnus configure options, so we can diagnose typos.
525:
1.10 ! paf 526: case $ac_option in
1.1 parser 527:
528: -bindir | --bindir | --bindi | --bind | --bin | --bi)
529: ac_prev=bindir ;;
530: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 ! paf 531: bindir=$ac_optarg ;;
1.1 parser 532:
533: -build | --build | --buil | --bui | --bu)
1.10 ! paf 534: ac_prev=build_alias ;;
1.1 parser 535: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 ! paf 536: build_alias=$ac_optarg ;;
1.1 parser 537:
538: -cache-file | --cache-file | --cache-fil | --cache-fi \
539: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540: ac_prev=cache_file ;;
541: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.10 ! paf 543: cache_file=$ac_optarg ;;
! 544:
! 545: --config-cache | -C)
! 546: cache_file=config.cache ;;
1.1 parser 547:
548: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549: ac_prev=datadir ;;
550: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551: | --da=*)
1.10 ! paf 552: datadir=$ac_optarg ;;
1.1 parser 553:
554: -disable-* | --disable-*)
1.10 ! paf 555: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 556: # Reject names that are not valid shell variable names.
1.10 ! paf 557: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 558: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 559: { (exit 1); exit 1; }; }
! 560: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 561: eval "enable_$ac_feature=no" ;;
1.1 parser 562:
563: -enable-* | --enable-*)
1.10 ! paf 564: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 565: # Reject names that are not valid shell variable names.
1.10 ! paf 566: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 567: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 568: { (exit 1); exit 1; }; }
! 569: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 570: case $ac_option in
! 571: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 572: *) ac_optarg=yes ;;
573: esac
1.10 ! paf 574: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 575:
576: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578: | --exec | --exe | --ex)
579: ac_prev=exec_prefix ;;
580: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582: | --exec=* | --exe=* | --ex=*)
1.10 ! paf 583: exec_prefix=$ac_optarg ;;
1.1 parser 584:
585: -gas | --gas | --ga | --g)
586: # Obsolete; use --with-gas.
587: with_gas=yes ;;
588:
1.10 ! paf 589: -help | --help | --hel | --he | -h)
! 590: ac_init_help=long ;;
! 591: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
! 592: ac_init_help=recursive ;;
! 593: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
! 594: ac_init_help=short ;;
1.1 parser 595:
596: -host | --host | --hos | --ho)
1.10 ! paf 597: ac_prev=host_alias ;;
1.1 parser 598: -host=* | --host=* | --hos=* | --ho=*)
1.10 ! paf 599: host_alias=$ac_optarg ;;
1.1 parser 600:
601: -includedir | --includedir | --includedi | --included | --include \
602: | --includ | --inclu | --incl | --inc)
603: ac_prev=includedir ;;
604: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.10 ! paf 606: includedir=$ac_optarg ;;
1.1 parser 607:
608: -infodir | --infodir | --infodi | --infod | --info | --inf)
609: ac_prev=infodir ;;
610: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 ! paf 611: infodir=$ac_optarg ;;
1.1 parser 612:
613: -libdir | --libdir | --libdi | --libd)
614: ac_prev=libdir ;;
615: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 ! paf 616: libdir=$ac_optarg ;;
1.1 parser 617:
618: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619: | --libexe | --libex | --libe)
620: ac_prev=libexecdir ;;
621: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622: | --libexe=* | --libex=* | --libe=*)
1.10 ! paf 623: libexecdir=$ac_optarg ;;
1.1 parser 624:
625: -localstatedir | --localstatedir | --localstatedi | --localstated \
626: | --localstate | --localstat | --localsta | --localst \
627: | --locals | --local | --loca | --loc | --lo)
628: ac_prev=localstatedir ;;
629: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.10 ! paf 632: localstatedir=$ac_optarg ;;
1.1 parser 633:
634: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635: ac_prev=mandir ;;
636: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 ! paf 637: mandir=$ac_optarg ;;
1.1 parser 638:
639: -nfp | --nfp | --nf)
640: # Obsolete; use --without-fp.
641: with_fp=no ;;
642:
643: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.10 ! paf 644: | --no-cr | --no-c | -n)
1.1 parser 645: no_create=yes ;;
646:
647: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649: no_recursion=yes ;;
650:
651: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653: | --oldin | --oldi | --old | --ol | --o)
654: ac_prev=oldincludedir ;;
655: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.10 ! paf 658: oldincludedir=$ac_optarg ;;
1.1 parser 659:
660: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661: ac_prev=prefix ;;
662: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 ! paf 663: prefix=$ac_optarg ;;
1.1 parser 664:
665: -program-prefix | --program-prefix | --program-prefi | --program-pref \
666: | --program-pre | --program-pr | --program-p)
667: ac_prev=program_prefix ;;
668: -program-prefix=* | --program-prefix=* | --program-prefi=* \
669: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.10 ! paf 670: program_prefix=$ac_optarg ;;
1.1 parser 671:
672: -program-suffix | --program-suffix | --program-suffi | --program-suff \
673: | --program-suf | --program-su | --program-s)
674: ac_prev=program_suffix ;;
675: -program-suffix=* | --program-suffix=* | --program-suffi=* \
676: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.10 ! paf 677: program_suffix=$ac_optarg ;;
1.1 parser 678:
679: -program-transform-name | --program-transform-name \
680: | --program-transform-nam | --program-transform-na \
681: | --program-transform-n | --program-transform- \
682: | --program-transform | --program-transfor \
683: | --program-transfo | --program-transf \
684: | --program-trans | --program-tran \
685: | --progr-tra | --program-tr | --program-t)
686: ac_prev=program_transform_name ;;
687: -program-transform-name=* | --program-transform-name=* \
688: | --program-transform-nam=* | --program-transform-na=* \
689: | --program-transform-n=* | --program-transform-=* \
690: | --program-transform=* | --program-transfor=* \
691: | --program-transfo=* | --program-transf=* \
692: | --program-trans=* | --program-tran=* \
693: | --progr-tra=* | --program-tr=* | --program-t=*)
1.10 ! paf 694: program_transform_name=$ac_optarg ;;
1.1 parser 695:
696: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697: | -silent | --silent | --silen | --sile | --sil)
698: silent=yes ;;
699:
700: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701: ac_prev=sbindir ;;
702: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703: | --sbi=* | --sb=*)
1.10 ! paf 704: sbindir=$ac_optarg ;;
1.1 parser 705:
706: -sharedstatedir | --sharedstatedir | --sharedstatedi \
707: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708: | --sharedst | --shareds | --shared | --share | --shar \
709: | --sha | --sh)
710: ac_prev=sharedstatedir ;;
711: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714: | --sha=* | --sh=*)
1.10 ! paf 715: sharedstatedir=$ac_optarg ;;
1.1 parser 716:
717: -site | --site | --sit)
718: ac_prev=site ;;
719: -site=* | --site=* | --sit=*)
1.10 ! paf 720: site=$ac_optarg ;;
1.1 parser 721:
722: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723: ac_prev=srcdir ;;
724: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 ! paf 725: srcdir=$ac_optarg ;;
1.1 parser 726:
727: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728: | --syscon | --sysco | --sysc | --sys | --sy)
729: ac_prev=sysconfdir ;;
730: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.10 ! paf 732: sysconfdir=$ac_optarg ;;
1.1 parser 733:
734: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 ! paf 735: ac_prev=target_alias ;;
1.1 parser 736: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 ! paf 737: target_alias=$ac_optarg ;;
1.1 parser 738:
739: -v | -verbose | --verbose | --verbos | --verbo | --verb)
740: verbose=yes ;;
741:
1.10 ! paf 742: -version | --version | --versio | --versi | --vers | -V)
! 743: ac_init_version=: ;;
1.1 parser 744:
745: -with-* | --with-*)
1.10 ! paf 746: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 747: # Reject names that are not valid shell variable names.
1.10 ! paf 748: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 749: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 750: { (exit 1); exit 1; }; }
1.1 parser 751: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.10 ! paf 752: case $ac_option in
! 753: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 754: *) ac_optarg=yes ;;
755: esac
1.10 ! paf 756: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 757:
758: -without-* | --without-*)
1.10 ! paf 759: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 760: # Reject names that are not valid shell variable names.
1.10 ! paf 761: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 762: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 763: { (exit 1); exit 1; }; }
! 764: ac_package=`echo $ac_package | sed 's/-/_/g'`
! 765: eval "with_$ac_package=no" ;;
1.1 parser 766:
767: --x)
768: # Obsolete; use --with-x.
769: with_x=yes ;;
770:
771: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772: | --x-incl | --x-inc | --x-in | --x-i)
773: ac_prev=x_includes ;;
774: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.10 ! paf 776: x_includes=$ac_optarg ;;
1.1 parser 777:
778: -x-libraries | --x-libraries | --x-librarie | --x-librari \
779: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780: ac_prev=x_libraries ;;
781: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.10 ! paf 783: x_libraries=$ac_optarg ;;
1.1 parser 784:
1.10 ! paf 785: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 786: Try \`$0 --help' for more information." >&2
! 787: { (exit 1); exit 1; }; }
1.1 parser 788: ;;
789:
1.10 ! paf 790: *=*)
! 791: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
! 792: # Reject names that are not valid shell variable names.
! 793: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 794: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 795: { (exit 1); exit 1; }; }
! 796: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
! 797: eval "$ac_envvar='$ac_optarg'"
! 798: export $ac_envvar ;;
! 799:
1.1 parser 800: *)
1.10 ! paf 801: # FIXME: should be removed in autoconf 3.0.
! 802: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
! 803: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 804: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 805: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 806: ;;
807:
808: esac
809: done
810:
811: if test -n "$ac_prev"; then
1.10 ! paf 812: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
! 813: { echo "$as_me: error: missing argument to $ac_option" >&2
! 814: { (exit 1); exit 1; }; }
1.1 parser 815: fi
816:
1.10 ! paf 817: # Be sure to have absolute paths.
! 818: for ac_var in exec_prefix prefix
! 819: do
! 820: eval ac_val=$`echo $ac_var`
! 821: case $ac_val in
! 822: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
! 823: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 824: { (exit 1); exit 1; }; };;
! 825: esac
! 826: done
1.1 parser 827:
1.10 ! paf 828: # Be sure to have absolute paths.
! 829: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
! 830: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 831: do
1.10 ! paf 832: eval ac_val=$`echo $ac_var`
! 833: case $ac_val in
! 834: [\\/$]* | ?:[\\/]* ) ;;
! 835: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 836: { (exit 1); exit 1; }; };;
1.1 parser 837: esac
838: done
839:
1.10 ! paf 840: # There might be people who depend on the old broken behavior: `$host'
! 841: # used to hold the argument of --host etc.
! 842: # FIXME: To remove some day.
! 843: build=$build_alias
! 844: host=$host_alias
! 845: target=$target_alias
! 846:
! 847: # FIXME: To remove some day.
! 848: if test "x$host_alias" != x; then
! 849: if test "x$build_alias" = x; then
! 850: cross_compiling=maybe
! 851: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 852: If a cross compiler is detected then cross compile mode will be used." >&2
! 853: elif test "x$build_alias" != "x$host_alias"; then
! 854: cross_compiling=yes
! 855: fi
! 856: fi
! 857:
! 858: ac_tool_prefix=
! 859: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 860:
1.10 ! paf 861: test "$silent" = yes && exec 6>/dev/null
1.1 parser 862:
863:
864: # Find the source files, if location was not specified.
865: if test -z "$srcdir"; then
866: ac_srcdir_defaulted=yes
867: # Try the directory containing this script, then its parent.
1.10 ! paf 868: ac_confdir=`(dirname "$0") 2>/dev/null ||
! 869: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 870: X"$0" : 'X\(//\)[^/]' \| \
! 871: X"$0" : 'X\(//\)$' \| \
! 872: X"$0" : 'X\(/\)' \| \
! 873: . : '\(.\)' 2>/dev/null ||
! 874: echo X"$0" |
! 875: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 876: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 877: /^X\(\/\/\)$/{ s//\1/; q; }
! 878: /^X\(\/\).*/{ s//\1/; q; }
! 879: s/.*/./; q'`
1.1 parser 880: srcdir=$ac_confdir
881: if test ! -r $srcdir/$ac_unique_file; then
882: srcdir=..
883: fi
884: else
885: ac_srcdir_defaulted=no
886: fi
887: if test ! -r $srcdir/$ac_unique_file; then
888: if test "$ac_srcdir_defaulted" = yes; then
1.10 ! paf 889: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
! 890: { (exit 1); exit 1; }; }
1.1 parser 891: else
1.10 ! paf 892: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 893: { (exit 1); exit 1; }; }
1.1 parser 894: fi
895: fi
1.10 ! paf 896: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
! 897: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
! 898: { (exit 1); exit 1; }; }
! 899: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! 900: ac_env_build_alias_set=${build_alias+set}
! 901: ac_env_build_alias_value=$build_alias
! 902: ac_cv_env_build_alias_set=${build_alias+set}
! 903: ac_cv_env_build_alias_value=$build_alias
! 904: ac_env_host_alias_set=${host_alias+set}
! 905: ac_env_host_alias_value=$host_alias
! 906: ac_cv_env_host_alias_set=${host_alias+set}
! 907: ac_cv_env_host_alias_value=$host_alias
! 908: ac_env_target_alias_set=${target_alias+set}
! 909: ac_env_target_alias_value=$target_alias
! 910: ac_cv_env_target_alias_set=${target_alias+set}
! 911: ac_cv_env_target_alias_value=$target_alias
! 912: ac_env_CXX_set=${CXX+set}
! 913: ac_env_CXX_value=$CXX
! 914: ac_cv_env_CXX_set=${CXX+set}
! 915: ac_cv_env_CXX_value=$CXX
! 916: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
! 917: ac_env_CXXFLAGS_value=$CXXFLAGS
! 918: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
! 919: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
! 920: ac_env_LDFLAGS_set=${LDFLAGS+set}
! 921: ac_env_LDFLAGS_value=$LDFLAGS
! 922: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! 923: ac_cv_env_LDFLAGS_value=$LDFLAGS
! 924: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! 925: ac_env_CPPFLAGS_value=$CPPFLAGS
! 926: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! 927: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! 928: ac_env_CC_set=${CC+set}
! 929: ac_env_CC_value=$CC
! 930: ac_cv_env_CC_set=${CC+set}
! 931: ac_cv_env_CC_value=$CC
! 932: ac_env_CFLAGS_set=${CFLAGS+set}
! 933: ac_env_CFLAGS_value=$CFLAGS
! 934: ac_cv_env_CFLAGS_set=${CFLAGS+set}
! 935: ac_cv_env_CFLAGS_value=$CFLAGS
! 936: ac_env_CXXCPP_set=${CXXCPP+set}
! 937: ac_env_CXXCPP_value=$CXXCPP
! 938: ac_cv_env_CXXCPP_set=${CXXCPP+set}
! 939: ac_cv_env_CXXCPP_value=$CXXCPP
! 940:
! 941: #
! 942: # Report the --help message.
! 943: #
! 944: if test "$ac_init_help" = "long"; then
! 945: # Omit some internal or obsolete options to make the list less imposing.
! 946: # This message is too long to be a string in the A/UX 3.1 sh.
! 947: cat <<_ACEOF
! 948: \`configure' configures this package to adapt to many kinds of systems.
! 949:
! 950: Usage: $0 [OPTION]... [VAR=VALUE]...
! 951:
! 952: To assign environment variables (e.g., CC, CFLAGS...), specify them as
! 953: VAR=VALUE. See below for descriptions of some of the useful variables.
! 954:
! 955: Defaults for the options are specified in brackets.
! 956:
! 957: Configuration:
! 958: -h, --help display this help and exit
! 959: --help=short display options specific to this package
! 960: --help=recursive display the short help of all the included packages
! 961: -V, --version display version information and exit
! 962: -q, --quiet, --silent do not print \`checking...' messages
! 963: --cache-file=FILE cache test results in FILE [disabled]
! 964: -C, --config-cache alias for \`--cache-file=config.cache'
! 965: -n, --no-create do not create output files
! 966: --srcdir=DIR find the sources in DIR [configure dir or \`..']
! 967:
! 968: _ACEOF
! 969:
! 970: cat <<_ACEOF
! 971: Installation directories:
! 972: --prefix=PREFIX install architecture-independent files in PREFIX
! 973: [$ac_default_prefix]
! 974: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 975: [PREFIX]
! 976:
! 977: By default, \`make install' will install all the files in
! 978: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
! 979: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
! 980: for instance \`--prefix=\$HOME'.
! 981:
! 982: For better control, use the options below.
! 983:
! 984: Fine tuning of the installation directories:
! 985: --bindir=DIR user executables [EPREFIX/bin]
! 986: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 987: --libexecdir=DIR program executables [EPREFIX/libexec]
! 988: --datadir=DIR read-only architecture-independent data [PREFIX/share]
! 989: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 990: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 991: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 992: --libdir=DIR object code libraries [EPREFIX/lib]
! 993: --includedir=DIR C header files [PREFIX/include]
! 994: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 995: --infodir=DIR info documentation [PREFIX/info]
! 996: --mandir=DIR man documentation [PREFIX/man]
! 997: _ACEOF
! 998:
! 999: cat <<\_ACEOF
! 1000:
! 1001: Program names:
! 1002: --program-prefix=PREFIX prepend PREFIX to installed program names
! 1003: --program-suffix=SUFFIX append SUFFIX to installed program names
! 1004: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
! 1005:
! 1006: System types:
! 1007: --build=BUILD configure for building on BUILD [guessed]
! 1008: --host=HOST cross-compile to build programs to run on HOST [BUILD]
! 1009: _ACEOF
! 1010: fi
! 1011:
! 1012: if test -n "$ac_init_help"; then
! 1013:
! 1014: cat <<\_ACEOF
! 1015:
! 1016: Optional Features:
! 1017: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 1018: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 1019: --disable-dependency-tracking Speeds up one-time builds
! 1020: --enable-dependency-tracking Do not reject slow dependency extractors
! 1021: --enable-static=PKGS build static libraries default=no
! 1022: --enable-shared=PKGS build shared libraries default=yes
! 1023: --enable-fast-install=PKGS optimize for fast installation default=yes
! 1024: --disable-libtool-lock avoid locking (might break parallel builds)
! 1025:
! 1026: Optional Packages:
! 1027: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
! 1028: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
! 1029: --with-pgsql-inc=DIR DIR is the PgSQL includes directory
! 1030: --with-gnu-ld assume the C compiler uses GNU ld default=no
! 1031: --with-pic try to use only PIC/non-PIC objects default=use both
! 1032:
! 1033: Some influential environment variables:
! 1034: CXX C++ compiler command
! 1035: CXXFLAGS C++ compiler flags
! 1036: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
! 1037: nonstandard directory <lib dir>
! 1038: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! 1039: headers in a nonstandard directory <include dir>
! 1040: CC C compiler command
! 1041: CFLAGS C compiler flags
! 1042: CXXCPP C++ preprocessor
! 1043:
! 1044: Use these variables to override the choices made by `configure' or to help
! 1045: it to find libraries and programs with nonstandard names/locations.
! 1046:
! 1047: _ACEOF
! 1048: fi
! 1049:
! 1050: if test "$ac_init_help" = "recursive"; then
! 1051: # If there are subdirs, report their specific --help.
! 1052: ac_popdir=`pwd`
! 1053: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
! 1054: test -d $ac_dir || continue
! 1055: ac_builddir=.
! 1056:
! 1057: if test "$ac_dir" != .; then
! 1058: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 1059: # A "../" for each directory in $ac_dir_suffix.
! 1060: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 1061: else
! 1062: ac_dir_suffix= ac_top_builddir=
! 1063: fi
! 1064:
! 1065: case $srcdir in
! 1066: .) # No --srcdir option. We are building in place.
! 1067: ac_srcdir=.
! 1068: if test -z "$ac_top_builddir"; then
! 1069: ac_top_srcdir=.
! 1070: else
! 1071: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 1072: fi ;;
! 1073: [\\/]* | ?:[\\/]* ) # Absolute path.
! 1074: ac_srcdir=$srcdir$ac_dir_suffix;
! 1075: ac_top_srcdir=$srcdir ;;
! 1076: *) # Relative path.
! 1077: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 1078: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 1079: esac
! 1080: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 1081: # absolute.
! 1082: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 1083: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 1084: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 1085: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 1086:
! 1087: cd $ac_dir
! 1088: # Check for guested configure; otherwise get Cygnus style configure.
! 1089: if test -f $ac_srcdir/configure.gnu; then
! 1090: echo
! 1091: $SHELL $ac_srcdir/configure.gnu --help=recursive
! 1092: elif test -f $ac_srcdir/configure; then
! 1093: echo
! 1094: $SHELL $ac_srcdir/configure --help=recursive
! 1095: elif test -f $ac_srcdir/configure.ac ||
! 1096: test -f $ac_srcdir/configure.in; then
! 1097: echo
! 1098: $ac_configure --help
! 1099: else
! 1100: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 1101: fi
! 1102: cd $ac_popdir
! 1103: done
! 1104: fi
1.1 parser 1105:
1.10 ! paf 1106: test -n "$ac_init_help" && exit 0
! 1107: if $ac_init_version; then
! 1108: cat <<\_ACEOF
! 1109:
! 1110: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! 1111: Free Software Foundation, Inc.
! 1112: This configure script is free software; the Free Software Foundation
! 1113: gives unlimited permission to copy, distribute and modify it.
! 1114: _ACEOF
! 1115: exit 0
! 1116: fi
! 1117: exec 5>config.log
! 1118: cat >&5 <<_ACEOF
! 1119: This file contains any messages produced by compilers while
! 1120: running configure, to aid debugging if configure makes a mistake.
! 1121:
! 1122: It was created by $as_me, which was
! 1123: generated by GNU Autoconf 2.57. Invocation command line was
! 1124:
! 1125: $ $0 $@
! 1126:
! 1127: _ACEOF
! 1128: {
! 1129: cat <<_ASUNAME
! 1130: ## --------- ##
! 1131: ## Platform. ##
! 1132: ## --------- ##
! 1133:
! 1134: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 1135: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 1136: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 1137: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 1138: uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 1139:
! 1140: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! 1141: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
! 1142:
! 1143: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
! 1144: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
! 1145: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! 1146: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
! 1147: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
! 1148: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
! 1149: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
! 1150:
! 1151: _ASUNAME
! 1152:
! 1153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1154: for as_dir in $PATH
! 1155: do
! 1156: IFS=$as_save_IFS
! 1157: test -z "$as_dir" && as_dir=.
! 1158: echo "PATH: $as_dir"
! 1159: done
! 1160:
! 1161: } >&5
! 1162:
! 1163: cat >&5 <<_ACEOF
! 1164:
! 1165:
! 1166: ## ----------- ##
! 1167: ## Core tests. ##
! 1168: ## ----------- ##
! 1169:
! 1170: _ACEOF
! 1171:
! 1172:
! 1173: # Keep a trace of the command line.
! 1174: # Strip out --no-create and --no-recursion so they do not pile up.
! 1175: # Strip out --silent because we don't want to record it for future runs.
! 1176: # Also quote any args containing shell meta-characters.
! 1177: # Make two passes to allow for proper duplicate-argument suppression.
! 1178: ac_configure_args=
! 1179: ac_configure_args0=
! 1180: ac_configure_args1=
! 1181: ac_sep=
! 1182: ac_must_keep_next=false
! 1183: for ac_pass in 1 2
! 1184: do
! 1185: for ac_arg
! 1186: do
! 1187: case $ac_arg in
! 1188: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
! 1189: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 1190: | -silent | --silent | --silen | --sile | --sil)
! 1191: continue ;;
! 1192: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1193: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1194: esac
! 1195: case $ac_pass in
! 1196: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
! 1197: 2)
! 1198: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
! 1199: if test $ac_must_keep_next = true; then
! 1200: ac_must_keep_next=false # Got value, back to normal.
! 1201: else
! 1202: case $ac_arg in
! 1203: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1204: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1205: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1206: | -with-* | --with-* | -without-* | --without-* | --x)
! 1207: case "$ac_configure_args0 " in
! 1208: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1209: esac
! 1210: ;;
! 1211: -* ) ac_must_keep_next=true ;;
! 1212: esac
! 1213: fi
! 1214: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
! 1215: # Get rid of the leading space.
! 1216: ac_sep=" "
! 1217: ;;
! 1218: esac
! 1219: done
! 1220: done
! 1221: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
! 1222: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
! 1223:
! 1224: # When interrupted or exit'd, cleanup temporary files, and complete
! 1225: # config.log. We remove comments because anyway the quotes in there
! 1226: # would cause problems or look ugly.
! 1227: # WARNING: Be sure not to use single quotes in there, as some shells,
! 1228: # such as our DU 5.0 friend, will then `close' the trap.
! 1229: trap 'exit_status=$?
! 1230: # Save into config.log some information that might help in debugging.
! 1231: {
! 1232: echo
! 1233:
! 1234: cat <<\_ASBOX
! 1235: ## ---------------- ##
! 1236: ## Cache variables. ##
! 1237: ## ---------------- ##
! 1238: _ASBOX
! 1239: echo
! 1240: # The following way of writing the cache mishandles newlines in values,
! 1241: {
! 1242: (set) 2>&1 |
! 1243: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
! 1244: *ac_space=\ *)
! 1245: sed -n \
! 1246: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 1247: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
! 1248: ;;
! 1249: *)
! 1250: sed -n \
! 1251: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 1252: ;;
! 1253: esac;
! 1254: }
! 1255: echo
! 1256:
! 1257: cat <<\_ASBOX
! 1258: ## ----------------- ##
! 1259: ## Output variables. ##
! 1260: ## ----------------- ##
! 1261: _ASBOX
! 1262: echo
! 1263: for ac_var in $ac_subst_vars
! 1264: do
! 1265: eval ac_val=$`echo $ac_var`
! 1266: echo "$ac_var='"'"'$ac_val'"'"'"
! 1267: done | sort
! 1268: echo
! 1269:
! 1270: if test -n "$ac_subst_files"; then
! 1271: cat <<\_ASBOX
! 1272: ## ------------- ##
! 1273: ## Output files. ##
! 1274: ## ------------- ##
! 1275: _ASBOX
! 1276: echo
! 1277: for ac_var in $ac_subst_files
! 1278: do
! 1279: eval ac_val=$`echo $ac_var`
! 1280: echo "$ac_var='"'"'$ac_val'"'"'"
! 1281: done | sort
! 1282: echo
! 1283: fi
! 1284:
! 1285: if test -s confdefs.h; then
! 1286: cat <<\_ASBOX
! 1287: ## ----------- ##
! 1288: ## confdefs.h. ##
! 1289: ## ----------- ##
! 1290: _ASBOX
! 1291: echo
! 1292: sed "/^$/d" confdefs.h | sort
! 1293: echo
! 1294: fi
! 1295: test "$ac_signal" != 0 &&
! 1296: echo "$as_me: caught signal $ac_signal"
! 1297: echo "$as_me: exit $exit_status"
! 1298: } >&5
! 1299: rm -f core core.* *.core &&
! 1300: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
! 1301: exit $exit_status
! 1302: ' 0
! 1303: for ac_signal in 1 2 13 15; do
! 1304: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
! 1305: done
! 1306: ac_signal=0
! 1307:
! 1308: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 1309: rm -rf conftest* confdefs.h
! 1310: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 1311: echo >confdefs.h
! 1312:
! 1313: # Predefined preprocessor variables.
! 1314:
! 1315: cat >>confdefs.h <<_ACEOF
! 1316: #define PACKAGE_NAME "$PACKAGE_NAME"
! 1317: _ACEOF
! 1318:
! 1319:
! 1320: cat >>confdefs.h <<_ACEOF
! 1321: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
! 1322: _ACEOF
! 1323:
! 1324:
! 1325: cat >>confdefs.h <<_ACEOF
! 1326: #define PACKAGE_VERSION "$PACKAGE_VERSION"
! 1327: _ACEOF
! 1328:
! 1329:
! 1330: cat >>confdefs.h <<_ACEOF
! 1331: #define PACKAGE_STRING "$PACKAGE_STRING"
! 1332: _ACEOF
! 1333:
! 1334:
! 1335: cat >>confdefs.h <<_ACEOF
! 1336: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 1337: _ACEOF
! 1338:
! 1339:
! 1340: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1341: # Prefer explicitly selected file to automatically selected ones.
1342: if test -z "$CONFIG_SITE"; then
1343: if test "x$prefix" != xNONE; then
1344: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1345: else
1346: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1347: fi
1348: fi
1349: for ac_site_file in $CONFIG_SITE; do
1350: if test -r "$ac_site_file"; then
1.10 ! paf 1351: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! 1352: echo "$as_me: loading site script $ac_site_file" >&6;}
! 1353: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1354: . "$ac_site_file"
1355: fi
1356: done
1357:
1358: if test -r "$cache_file"; then
1.10 ! paf 1359: # Some versions of bash will fail to source /dev/null (special
! 1360: # files actually), so we avoid doing that.
! 1361: if test -f "$cache_file"; then
! 1362: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
! 1363: echo "$as_me: loading cache $cache_file" >&6;}
! 1364: case $cache_file in
! 1365: [\\/]* | ?:[\\/]* ) . $cache_file;;
! 1366: *) . ./$cache_file;;
! 1367: esac
! 1368: fi
1.1 parser 1369: else
1.10 ! paf 1370: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
! 1371: echo "$as_me: creating cache $cache_file" >&6;}
! 1372: >$cache_file
! 1373: fi
! 1374:
! 1375: # Check that the precious variables saved in the cache have kept the same
! 1376: # value.
! 1377: ac_cache_corrupted=false
! 1378: for ac_var in `(set) 2>&1 |
! 1379: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
! 1380: eval ac_old_set=\$ac_cv_env_${ac_var}_set
! 1381: eval ac_new_set=\$ac_env_${ac_var}_set
! 1382: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
! 1383: eval ac_new_val="\$ac_env_${ac_var}_value"
! 1384: case $ac_old_set,$ac_new_set in
! 1385: set,)
! 1386: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 1387: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
! 1388: ac_cache_corrupted=: ;;
! 1389: ,set)
! 1390: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! 1391: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
! 1392: ac_cache_corrupted=: ;;
! 1393: ,);;
! 1394: *)
! 1395: if test "x$ac_old_val" != "x$ac_new_val"; then
! 1396: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! 1397: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 1398: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
! 1399: echo "$as_me: former value: $ac_old_val" >&2;}
! 1400: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
! 1401: echo "$as_me: current value: $ac_new_val" >&2;}
! 1402: ac_cache_corrupted=:
! 1403: fi;;
! 1404: esac
! 1405: # Pass precious variables to config.status.
! 1406: if test "$ac_new_set" = set; then
! 1407: case $ac_new_val in
! 1408: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1409: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1410: *) ac_arg=$ac_var=$ac_new_val ;;
! 1411: esac
! 1412: case " $ac_configure_args " in
! 1413: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
! 1414: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
! 1415: esac
! 1416: fi
! 1417: done
! 1418: if $ac_cache_corrupted; then
! 1419: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! 1420: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1421: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1422: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 1423: { (exit 1); exit 1; }; }
1.1 parser 1424: fi
1425:
1426: ac_ext=c
1427: ac_cpp='$CPP $CPPFLAGS'
1.10 ! paf 1428: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1429: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1430: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1431:
1432:
1.10 ! paf 1433:
! 1434:
! 1435:
! 1436:
! 1437:
! 1438:
! 1439:
! 1440:
! 1441:
! 1442:
! 1443:
! 1444:
! 1445:
! 1446:
! 1447:
! 1448:
! 1449:
! 1450: am__api_version="1.7"
1.1 parser 1451: ac_aux_dir=
1452: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1453: if test -f $ac_dir/install-sh; then
1454: ac_aux_dir=$ac_dir
1455: ac_install_sh="$ac_aux_dir/install-sh -c"
1456: break
1457: elif test -f $ac_dir/install.sh; then
1458: ac_aux_dir=$ac_dir
1459: ac_install_sh="$ac_aux_dir/install.sh -c"
1460: break
1.10 ! paf 1461: elif test -f $ac_dir/shtool; then
! 1462: ac_aux_dir=$ac_dir
! 1463: ac_install_sh="$ac_aux_dir/shtool install -c"
! 1464: break
1.1 parser 1465: fi
1466: done
1467: if test -z "$ac_aux_dir"; then
1.10 ! paf 1468: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1469: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1470: { (exit 1); exit 1; }; }
! 1471: fi
! 1472: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 1473: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 1474: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1475:
1476: # Find a good install program. We prefer a C program (faster),
1477: # so one script is as good as another. But avoid the broken or
1478: # incompatible versions:
1479: # SysV /etc/install, /usr/sbin/install
1480: # SunOS /usr/etc/install
1481: # IRIX /sbin/install
1482: # AIX /bin/install
1.10 ! paf 1483: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1484: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1485: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1486: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1487: # ./install, which can be erroneously created by make from ./install.sh.
1.10 ! paf 1488: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1489: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1490: if test -z "$INSTALL"; then
1.10 ! paf 1491: if test "${ac_cv_path_install+set}" = set; then
! 1492: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1493: else
1.10 ! paf 1494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1495: for as_dir in $PATH
! 1496: do
! 1497: IFS=$as_save_IFS
! 1498: test -z "$as_dir" && as_dir=.
! 1499: # Account for people who put trailing slashes in PATH elements.
! 1500: case $as_dir/ in
! 1501: ./ | .// | /cC/* | \
! 1502: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1503: /usr/ucb/* ) ;;
! 1504: *)
! 1505: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1506: # Don't use installbsd from OSF since it installs stuff as root
! 1507: # by default.
! 1508: for ac_prog in ginstall scoinst install; do
! 1509: for ac_exec_ext in '' $ac_executable_extensions; do
! 1510: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1511: if test $ac_prog = install &&
! 1512: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1513: # AIX install. It has an incompatible calling convention.
! 1514: :
! 1515: elif test $ac_prog = install &&
! 1516: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1517: # program-specific install script used by HP pwplus--don't use.
! 1518: :
! 1519: else
! 1520: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1521: break 3
! 1522: fi
! 1523: fi
1.1 parser 1524: done
1.10 ! paf 1525: done
! 1526: ;;
! 1527: esac
! 1528: done
! 1529:
1.1 parser 1530:
1531: fi
1532: if test "${ac_cv_path_install+set}" = set; then
1.10 ! paf 1533: INSTALL=$ac_cv_path_install
1.1 parser 1534: else
1535: # As a last resort, use the slow shell script. We don't cache a
1536: # path for INSTALL within a source directory, because that will
1537: # break other packages using the cache if that directory is
1538: # removed, or if the path is relative.
1.10 ! paf 1539: INSTALL=$ac_install_sh
1.1 parser 1540: fi
1541: fi
1.10 ! paf 1542: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1543: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1544:
1545: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1546: # It thinks the first close brace ends the variable substitution.
1547: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1548:
1.10 ! paf 1549: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1550:
1551: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1552:
1.10 ! paf 1553: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 1554: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1555: # Just in case
1556: sleep 1
1.10 ! paf 1557: echo timestamp > conftest.file
1.1 parser 1558: # Do `set' in a subshell so we don't clobber the current shell's
1559: # arguments. Must try -L first in case configure is actually a
1560: # symlink; some systems play weird games with the mod time of symlinks
1561: # (eg FreeBSD returns the mod time of the symlink's containing
1562: # directory).
1563: if (
1.10 ! paf 1564: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1565: if test "$*" = "X"; then
1566: # -L didn't work.
1.10 ! paf 1567: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1568: fi
1.10 ! paf 1569: rm -f conftest.file
! 1570: if test "$*" != "X $srcdir/configure conftest.file" \
! 1571: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1572:
1573: # If neither matched, then we have a broken ls. This can happen
1574: # if, for instance, CONFIG_SHELL is bash and it inherits a
1575: # broken ls alias from the environment. This has actually
1576: # happened. Such a system could not be considered "sane".
1.10 ! paf 1577: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
! 1578: alias in your environment" >&5
! 1579: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
! 1580: alias in your environment" >&2;}
! 1581: { (exit 1); exit 1; }; }
1.1 parser 1582: fi
1583:
1.10 ! paf 1584: test "$2" = conftest.file
1.1 parser 1585: )
1586: then
1587: # Ok.
1588: :
1589: else
1.10 ! paf 1590: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
! 1591: Check your system clock" >&5
! 1592: echo "$as_me: error: newly created file is older than distributed files!
! 1593: Check your system clock" >&2;}
! 1594: { (exit 1); exit 1; }; }
1.1 parser 1595: fi
1.10 ! paf 1596: echo "$as_me:$LINENO: result: yes" >&5
! 1597: echo "${ECHO_T}yes" >&6
1.1 parser 1598: test "$program_prefix" != NONE &&
1.10 ! paf 1599: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1600: # Use a double $ so make ignores it.
1601: test "$program_suffix" != NONE &&
1.10 ! paf 1602: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
! 1603: # Double any \ or $. echo might interpret backslashes.
! 1604: # By default was `s,x,x', remove it if useless.
! 1605: cat <<\_ACEOF >conftest.sed
! 1606: s/[\\$]/&&/g;s/;s,x,x,$//
! 1607: _ACEOF
! 1608: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
! 1609: rm conftest.sed
! 1610:
! 1611:
! 1612: # expand $ac_aux_dir to an absolute path
! 1613: am_aux_dir=`cd $ac_aux_dir && pwd`
! 1614:
! 1615: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
! 1616: # Use eval to expand $SHELL
! 1617: if eval "$MISSING --run true"; then
! 1618: am_missing_run="$MISSING --run "
! 1619: else
! 1620: am_missing_run=
! 1621: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
! 1622: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
! 1623: fi
! 1624:
! 1625: for ac_prog in gawk mawk nawk awk
! 1626: do
! 1627: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 1628: set dummy $ac_prog; ac_word=$2
! 1629: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1630: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1631: if test "${ac_cv_prog_AWK+set}" = set; then
! 1632: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1633: else
! 1634: if test -n "$AWK"; then
! 1635: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 1636: else
! 1637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1638: for as_dir in $PATH
! 1639: do
! 1640: IFS=$as_save_IFS
! 1641: test -z "$as_dir" && as_dir=.
! 1642: for ac_exec_ext in '' $ac_executable_extensions; do
! 1643: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1644: ac_cv_prog_AWK="$ac_prog"
! 1645: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1646: break 2
! 1647: fi
! 1648: done
! 1649: done
! 1650:
! 1651: fi
! 1652: fi
! 1653: AWK=$ac_cv_prog_AWK
! 1654: if test -n "$AWK"; then
! 1655: echo "$as_me:$LINENO: result: $AWK" >&5
! 1656: echo "${ECHO_T}$AWK" >&6
! 1657: else
! 1658: echo "$as_me:$LINENO: result: no" >&5
! 1659: echo "${ECHO_T}no" >&6
! 1660: fi
1.1 parser 1661:
1.10 ! paf 1662: test -n "$AWK" && break
! 1663: done
1.1 parser 1664:
1.10 ! paf 1665: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1666: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1667: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
! 1668: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1669: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1670: else
1.10 ! paf 1671: cat >conftest.make <<\_ACEOF
1.1 parser 1672: all:
1.10 ! paf 1673: @echo 'ac_maketemp="$(MAKE)"'
! 1674: _ACEOF
1.1 parser 1675: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 ! paf 1676: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1677: if test -n "$ac_maketemp"; then
1678: eval ac_cv_prog_make_${ac_make}_set=yes
1679: else
1680: eval ac_cv_prog_make_${ac_make}_set=no
1681: fi
1.10 ! paf 1682: rm -f conftest.make
1.1 parser 1683: fi
1684: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 ! paf 1685: echo "$as_me:$LINENO: result: yes" >&5
! 1686: echo "${ECHO_T}yes" >&6
1.1 parser 1687: SET_MAKE=
1688: else
1.10 ! paf 1689: echo "$as_me:$LINENO: result: no" >&5
! 1690: echo "${ECHO_T}no" >&6
1.1 parser 1691: SET_MAKE="MAKE=${MAKE-make}"
1692: fi
1693:
1.10 ! paf 1694: # test to see if srcdir already configured
! 1695: if test "`cd $srcdir && pwd`" != "`pwd`" &&
! 1696: test -f $srcdir/config.status; then
! 1697: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
! 1698: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 1699: { (exit 1); exit 1; }; }
! 1700: fi
! 1701:
! 1702: # test whether we have cygpath
! 1703: if test -z "$CYGPATH_W"; then
! 1704: if (cygpath --version) >/dev/null 2>/dev/null; then
! 1705: CYGPATH_W='cygpath -w'
! 1706: else
! 1707: CYGPATH_W=echo
! 1708: fi
! 1709: fi
! 1710:
! 1711:
! 1712: # Define the identity of the package.
! 1713: PACKAGE=parser3pgsql
! 1714: VERSION=3.0.HEAD
1.1 parser 1715:
1716:
1.10 ! paf 1717: # Some tools Automake needs.
! 1718:
! 1719: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
! 1720:
! 1721:
! 1722: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
! 1723:
! 1724:
! 1725: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
! 1726:
! 1727:
! 1728: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
! 1729:
! 1730:
! 1731: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1732:
1733:
1.10 ! paf 1734: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 parser 1735:
1.10 ! paf 1736: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1737:
1.10 ! paf 1738: # Installed binaries are usually stripped using `strip' when the user
! 1739: # run `make install-strip'. However `strip' might not be the right
! 1740: # tool to use in cross-compilation environments, therefore Automake
! 1741: # will honor the `STRIP' environment variable to overrule this program.
! 1742: if test "$cross_compiling" != no; then
! 1743: if test -n "$ac_tool_prefix"; then
! 1744: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 1745: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 1746: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1747: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1748: if test "${ac_cv_prog_STRIP+set}" = set; then
! 1749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1750: else
1.10 ! paf 1751: if test -n "$STRIP"; then
! 1752: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 1753: else
! 1754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1755: for as_dir in $PATH
! 1756: do
! 1757: IFS=$as_save_IFS
! 1758: test -z "$as_dir" && as_dir=.
! 1759: for ac_exec_ext in '' $ac_executable_extensions; do
! 1760: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1761: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 1762: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1763: break 2
! 1764: fi
! 1765: done
! 1766: done
! 1767:
! 1768: fi
! 1769: fi
! 1770: STRIP=$ac_cv_prog_STRIP
! 1771: if test -n "$STRIP"; then
! 1772: echo "$as_me:$LINENO: result: $STRIP" >&5
! 1773: echo "${ECHO_T}$STRIP" >&6
! 1774: else
! 1775: echo "$as_me:$LINENO: result: no" >&5
! 1776: echo "${ECHO_T}no" >&6
1.1 parser 1777: fi
1778:
1.10 ! paf 1779: fi
! 1780: if test -z "$ac_cv_prog_STRIP"; then
! 1781: ac_ct_STRIP=$STRIP
! 1782: # Extract the first word of "strip", so it can be a program name with args.
! 1783: set dummy strip; ac_word=$2
! 1784: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1785: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1786: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 1787: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1788: else
! 1789: if test -n "$ac_ct_STRIP"; then
! 1790: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1791: else
1.10 ! paf 1792: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1793: for as_dir in $PATH
! 1794: do
! 1795: IFS=$as_save_IFS
! 1796: test -z "$as_dir" && as_dir=.
! 1797: for ac_exec_ext in '' $ac_executable_extensions; do
! 1798: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1799: ac_cv_prog_ac_ct_STRIP="strip"
! 1800: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1801: break 2
! 1802: fi
! 1803: done
! 1804: done
! 1805:
! 1806: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 1807: fi
1.1 parser 1808: fi
1.10 ! paf 1809: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 1810: if test -n "$ac_ct_STRIP"; then
! 1811: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 1812: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1813: else
1.10 ! paf 1814: echo "$as_me:$LINENO: result: no" >&5
! 1815: echo "${ECHO_T}no" >&6
1.1 parser 1816: fi
1817:
1.10 ! paf 1818: STRIP=$ac_ct_STRIP
1.1 parser 1819: else
1.10 ! paf 1820: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1821: fi
1822:
1823: fi
1.10 ! paf 1824: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1825:
1.10 ! paf 1826: # We need awk for the "check" target. The system "awk" is bad on
! 1827: # some platforms.
1.1 parser 1828:
1829:
1830:
1831:
1.10 ! paf 1832: ac_config_headers="$ac_config_headers config_auto.h"
! 1833:
1.1 parser 1834:
1835:
1836:
1.2 parser 1837: # Check whether --with-pgsql-inc or --without-pgsql-inc was given.
1.1 parser 1838: if test "${with_pgsql_inc+set}" = set; then
1839: withval="$with_pgsql_inc"
1.10 ! paf 1840:
1.1 parser 1841: else
1842: withval="/usr/local/pgsql/include"
1843:
1.10 ! paf 1844: fi;
1.1 parser 1845: PGSQL_INC=$withval
1846:
1847:
1.2 parser 1848: if test \! -f "$PGSQL_INC/libpq-fe.h"; then
1.10 ! paf 1849: { { echo "$as_me:$LINENO: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&5
! 1850: echo "$as_me: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&2;}
! 1851: { (exit 1); exit 1; }; }
1.2 parser 1852: fi
1.1 parser 1853:
1854: # Find a good install program. We prefer a C program (faster),
1855: # so one script is as good as another. But avoid the broken or
1856: # incompatible versions:
1857: # SysV /etc/install, /usr/sbin/install
1858: # SunOS /usr/etc/install
1859: # IRIX /sbin/install
1860: # AIX /bin/install
1.10 ! paf 1861: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1862: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1863: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1864: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1865: # ./install, which can be erroneously created by make from ./install.sh.
1.10 ! paf 1866: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1867: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1868: if test -z "$INSTALL"; then
1.10 ! paf 1869: if test "${ac_cv_path_install+set}" = set; then
! 1870: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1871: else
1.10 ! paf 1872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1873: for as_dir in $PATH
! 1874: do
! 1875: IFS=$as_save_IFS
! 1876: test -z "$as_dir" && as_dir=.
! 1877: # Account for people who put trailing slashes in PATH elements.
! 1878: case $as_dir/ in
! 1879: ./ | .// | /cC/* | \
! 1880: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1881: /usr/ucb/* ) ;;
! 1882: *)
! 1883: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1884: # Don't use installbsd from OSF since it installs stuff as root
! 1885: # by default.
! 1886: for ac_prog in ginstall scoinst install; do
! 1887: for ac_exec_ext in '' $ac_executable_extensions; do
! 1888: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1889: if test $ac_prog = install &&
! 1890: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1891: # AIX install. It has an incompatible calling convention.
! 1892: :
! 1893: elif test $ac_prog = install &&
! 1894: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1895: # program-specific install script used by HP pwplus--don't use.
! 1896: :
! 1897: else
! 1898: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1899: break 3
! 1900: fi
! 1901: fi
1.1 parser 1902: done
1.10 ! paf 1903: done
! 1904: ;;
! 1905: esac
! 1906: done
! 1907:
1.1 parser 1908:
1909: fi
1910: if test "${ac_cv_path_install+set}" = set; then
1.10 ! paf 1911: INSTALL=$ac_cv_path_install
1.1 parser 1912: else
1913: # As a last resort, use the slow shell script. We don't cache a
1914: # path for INSTALL within a source directory, because that will
1915: # break other packages using the cache if that directory is
1916: # removed, or if the path is relative.
1.10 ! paf 1917: INSTALL=$ac_install_sh
1.1 parser 1918: fi
1919: fi
1.10 ! paf 1920: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1921: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1922:
1923: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924: # It thinks the first close brace ends the variable substitution.
1925: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1926:
1.10 ! paf 1927: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1928:
1929: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1930:
1.10 ! paf 1931: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1932: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1933: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
! 1934: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1935: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1936: else
1.10 ! paf 1937: cat >conftest.make <<\_ACEOF
1.1 parser 1938: all:
1.10 ! paf 1939: @echo 'ac_maketemp="$(MAKE)"'
! 1940: _ACEOF
1.1 parser 1941: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 ! paf 1942: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1943: if test -n "$ac_maketemp"; then
1944: eval ac_cv_prog_make_${ac_make}_set=yes
1945: else
1946: eval ac_cv_prog_make_${ac_make}_set=no
1947: fi
1.10 ! paf 1948: rm -f conftest.make
1.1 parser 1949: fi
1950: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 ! paf 1951: echo "$as_me:$LINENO: result: yes" >&5
! 1952: echo "${ECHO_T}yes" >&6
1.1 parser 1953: SET_MAKE=
1954: else
1.10 ! paf 1955: echo "$as_me:$LINENO: result: no" >&5
! 1956: echo "${ECHO_T}no" >&6
1.1 parser 1957: SET_MAKE="MAKE=${MAKE-make}"
1958: fi
1959:
1.10 ! paf 1960: for ac_prog in gawk mawk nawk awk
1.1 parser 1961: do
1.10 ! paf 1962: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 1963: set dummy $ac_prog; ac_word=$2
1.10 ! paf 1964: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1965: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1966: if test "${ac_cv_prog_AWK+set}" = set; then
! 1967: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1968: else
1969: if test -n "$AWK"; then
1970: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1971: else
1.10 ! paf 1972: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1973: for as_dir in $PATH
! 1974: do
! 1975: IFS=$as_save_IFS
! 1976: test -z "$as_dir" && as_dir=.
! 1977: for ac_exec_ext in '' $ac_executable_extensions; do
! 1978: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1979: ac_cv_prog_AWK="$ac_prog"
! 1980: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1981: break 2
! 1982: fi
! 1983: done
! 1984: done
! 1985:
1.1 parser 1986: fi
1987: fi
1.10 ! paf 1988: AWK=$ac_cv_prog_AWK
1.1 parser 1989: if test -n "$AWK"; then
1.10 ! paf 1990: echo "$as_me:$LINENO: result: $AWK" >&5
! 1991: echo "${ECHO_T}$AWK" >&6
1.1 parser 1992: else
1.10 ! paf 1993: echo "$as_me:$LINENO: result: no" >&5
! 1994: echo "${ECHO_T}no" >&6
1.1 parser 1995: fi
1996:
1.10 ! paf 1997: test -n "$AWK" && break
1.1 parser 1998: done
1999:
2000:
1.10 ! paf 2001: ac_ext=cc
1.1 parser 2002: ac_cpp='$CXXCPP $CPPFLAGS'
1.10 ! paf 2003: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2004: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2005: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2006:
! 2007: ac_ext=cc
! 2008: ac_cpp='$CXXCPP $CPPFLAGS'
! 2009: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2010: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2011: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2012: if test -n "$ac_tool_prefix"; then
! 2013: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 2014: do
! 2015: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 2016: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 2017: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2018: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2019: if test "${ac_cv_prog_CXX+set}" = set; then
! 2020: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2021: else
2022: if test -n "$CXX"; then
2023: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2024: else
1.10 ! paf 2025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2026: for as_dir in $PATH
! 2027: do
! 2028: IFS=$as_save_IFS
! 2029: test -z "$as_dir" && as_dir=.
! 2030: for ac_exec_ext in '' $ac_executable_extensions; do
! 2031: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2032: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 2033: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2034: break 2
! 2035: fi
! 2036: done
! 2037: done
! 2038:
1.1 parser 2039: fi
2040: fi
1.10 ! paf 2041: CXX=$ac_cv_prog_CXX
1.1 parser 2042: if test -n "$CXX"; then
1.10 ! paf 2043: echo "$as_me:$LINENO: result: $CXX" >&5
! 2044: echo "${ECHO_T}$CXX" >&6
1.1 parser 2045: else
1.10 ! paf 2046: echo "$as_me:$LINENO: result: no" >&5
! 2047: echo "${ECHO_T}no" >&6
1.1 parser 2048: fi
2049:
1.10 ! paf 2050: test -n "$CXX" && break
! 2051: done
! 2052: fi
! 2053: if test -z "$CXX"; then
! 2054: ac_ct_CXX=$CXX
! 2055: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 2056: do
! 2057: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 2058: set dummy $ac_prog; ac_word=$2
! 2059: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2060: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2061: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 2062: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2063: else
! 2064: if test -n "$ac_ct_CXX"; then
! 2065: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 2066: else
! 2067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2068: for as_dir in $PATH
! 2069: do
! 2070: IFS=$as_save_IFS
! 2071: test -z "$as_dir" && as_dir=.
! 2072: for ac_exec_ext in '' $ac_executable_extensions; do
! 2073: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2074: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 2075: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2076: break 2
! 2077: fi
! 2078: done
1.1 parser 2079: done
2080:
1.10 ! paf 2081: fi
! 2082: fi
! 2083: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 2084: if test -n "$ac_ct_CXX"; then
! 2085: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 2086: echo "${ECHO_T}$ac_ct_CXX" >&6
! 2087: else
! 2088: echo "$as_me:$LINENO: result: no" >&5
! 2089: echo "${ECHO_T}no" >&6
! 2090: fi
1.1 parser 2091:
1.10 ! paf 2092: test -n "$ac_ct_CXX" && break
! 2093: done
! 2094: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2095:
1.10 ! paf 2096: CXX=$ac_ct_CXX
! 2097: fi
1.1 parser 2098:
2099:
1.10 ! paf 2100: # Provide some information about the compiler.
! 2101: echo "$as_me:$LINENO:" \
! 2102: "checking for C++ compiler version" >&5
! 2103: ac_compiler=`set X $ac_compile; echo $2`
! 2104: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 2105: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 2106: ac_status=$?
! 2107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2108: (exit $ac_status); }
! 2109: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 2110: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 2111: ac_status=$?
! 2112: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2113: (exit $ac_status); }
! 2114: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 2115: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 2116: ac_status=$?
! 2117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2118: (exit $ac_status); }
! 2119:
! 2120: cat >conftest.$ac_ext <<_ACEOF
! 2121: #line $LINENO "configure"
! 2122: /* confdefs.h. */
! 2123: _ACEOF
! 2124: cat confdefs.h >>conftest.$ac_ext
! 2125: cat >>conftest.$ac_ext <<_ACEOF
! 2126: /* end confdefs.h. */
! 2127:
! 2128: int
! 2129: main ()
! 2130: {
! 2131:
! 2132: ;
! 2133: return 0;
! 2134: }
! 2135: _ACEOF
! 2136: ac_clean_files_save=$ac_clean_files
! 2137: ac_clean_files="$ac_clean_files a.out a.exe b.out"
! 2138: # Try to create an executable without -o first, disregard a.out.
! 2139: # It will help us diagnose broken compilers, and finding out an intuition
! 2140: # of exeext.
! 2141: echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
! 2142: echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
! 2143: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2144: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
! 2145: (eval $ac_link_default) 2>&5
! 2146: ac_status=$?
! 2147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2148: (exit $ac_status); }; then
! 2149: # Find the output, starting from the most likely. This scheme is
! 2150: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 2151: # resort.
! 2152:
! 2153: # Be careful to initialize this variable, since it used to be cached.
! 2154: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! 2155: ac_cv_exeext=
! 2156: # b.out is created by i960 compilers.
! 2157: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
! 2158: do
! 2159: test -f "$ac_file" || continue
! 2160: case $ac_file in
! 2161: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
! 2162: ;;
! 2163: conftest.$ac_ext )
! 2164: # This is the source file.
! 2165: ;;
! 2166: [ab].out )
! 2167: # We found the default executable, but exeext='' is most
! 2168: # certainly right.
! 2169: break;;
! 2170: *.* )
! 2171: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2172: # FIXME: I believe we export ac_cv_exeext for Libtool,
! 2173: # but it would be cool to find out if it's true. Does anybody
! 2174: # maintain Libtool? --akim.
! 2175: export ac_cv_exeext
! 2176: break;;
! 2177: * )
! 2178: break;;
! 2179: esac
! 2180: done
! 2181: else
! 2182: echo "$as_me: failed program was:" >&5
! 2183: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2184:
1.10 ! paf 2185: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
! 2186: See \`config.log' for more details." >&5
! 2187: echo "$as_me: error: C++ compiler cannot create executables
! 2188: See \`config.log' for more details." >&2;}
! 2189: { (exit 77); exit 77; }; }
! 2190: fi
! 2191:
! 2192: ac_exeext=$ac_cv_exeext
! 2193: echo "$as_me:$LINENO: result: $ac_file" >&5
! 2194: echo "${ECHO_T}$ac_file" >&6
! 2195:
! 2196: # Check the compiler produces executables we can run. If not, either
! 2197: # the compiler is broken, or we cross compile.
! 2198: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
! 2199: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
! 2200: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 2201: # If not cross compiling, check that we can run a simple program.
! 2202: if test "$cross_compiling" != yes; then
! 2203: if { ac_try='./$ac_file'
! 2204: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2205: (eval $ac_try) 2>&5
! 2206: ac_status=$?
! 2207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2208: (exit $ac_status); }; }; then
! 2209: cross_compiling=no
! 2210: else
! 2211: if test "$cross_compiling" = maybe; then
! 2212: cross_compiling=yes
! 2213: else
! 2214: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
! 2215: If you meant to cross compile, use \`--host'.
! 2216: See \`config.log' for more details." >&5
! 2217: echo "$as_me: error: cannot run C++ compiled programs.
! 2218: If you meant to cross compile, use \`--host'.
! 2219: See \`config.log' for more details." >&2;}
! 2220: { (exit 1); exit 1; }; }
! 2221: fi
1.1 parser 2222: fi
1.10 ! paf 2223: fi
! 2224: echo "$as_me:$LINENO: result: yes" >&5
! 2225: echo "${ECHO_T}yes" >&6
! 2226:
! 2227: rm -f a.out a.exe conftest$ac_cv_exeext b.out
! 2228: ac_clean_files=$ac_clean_files_save
! 2229: # Check the compiler produces executables we can run. If not, either
! 2230: # the compiler is broken, or we cross compile.
! 2231: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2232: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 2233: echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2234: echo "${ECHO_T}$cross_compiling" >&6
! 2235:
! 2236: echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2237: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
! 2238: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 2239: (eval $ac_link) 2>&5
! 2240: ac_status=$?
! 2241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2242: (exit $ac_status); }; then
! 2243: # If both `conftest.exe' and `conftest' are `present' (well, observable)
! 2244: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
! 2245: # work properly (i.e., refer to `conftest.exe'), while it won't with
! 2246: # `rm'.
! 2247: for ac_file in conftest.exe conftest conftest.*; do
! 2248: test -f "$ac_file" || continue
! 2249: case $ac_file in
! 2250: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
! 2251: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2252: export ac_cv_exeext
! 2253: break;;
! 2254: * ) break;;
! 2255: esac
! 2256: done
1.1 parser 2257: else
1.10 ! paf 2258: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 2259: See \`config.log' for more details." >&5
! 2260: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 2261: See \`config.log' for more details." >&2;}
! 2262: { (exit 1); exit 1; }; }
! 2263: fi
! 2264:
! 2265: rm -f conftest$ac_cv_exeext
! 2266: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2267: echo "${ECHO_T}$ac_cv_exeext" >&6
! 2268:
! 2269: rm -f conftest.$ac_ext
! 2270: EXEEXT=$ac_cv_exeext
! 2271: ac_exeext=$EXEEXT
! 2272: echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2273: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
! 2274: if test "${ac_cv_objext+set}" = set; then
! 2275: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2276: else
! 2277: cat >conftest.$ac_ext <<_ACEOF
! 2278: #line $LINENO "configure"
! 2279: /* confdefs.h. */
! 2280: _ACEOF
! 2281: cat confdefs.h >>conftest.$ac_ext
! 2282: cat >>conftest.$ac_ext <<_ACEOF
! 2283: /* end confdefs.h. */
! 2284:
! 2285: int
! 2286: main ()
! 2287: {
! 2288:
! 2289: ;
! 2290: return 0;
! 2291: }
! 2292: _ACEOF
! 2293: rm -f conftest.o conftest.obj
! 2294: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2295: (eval $ac_compile) 2>&5
! 2296: ac_status=$?
! 2297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2298: (exit $ac_status); }; then
! 2299: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
! 2300: case $ac_file in
! 2301: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
! 2302: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
! 2303: break;;
! 2304: esac
! 2305: done
1.1 parser 2306: else
1.10 ! paf 2307: echo "$as_me: failed program was:" >&5
! 2308: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2309:
1.10 ! paf 2310: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 2311: See \`config.log' for more details." >&5
! 2312: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 2313: See \`config.log' for more details." >&2;}
! 2314: { (exit 1); exit 1; }; }
! 2315: fi
! 2316:
! 2317: rm -f conftest.$ac_cv_objext conftest.$ac_ext
! 2318: fi
! 2319: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2320: echo "${ECHO_T}$ac_cv_objext" >&6
! 2321: OBJEXT=$ac_cv_objext
! 2322: ac_objext=$OBJEXT
! 2323: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 2324: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
! 2325: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 2326: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2327: else
! 2328: cat >conftest.$ac_ext <<_ACEOF
! 2329: #line $LINENO "configure"
! 2330: /* confdefs.h. */
! 2331: _ACEOF
! 2332: cat confdefs.h >>conftest.$ac_ext
! 2333: cat >>conftest.$ac_ext <<_ACEOF
! 2334: /* end confdefs.h. */
! 2335:
! 2336: int
! 2337: main ()
! 2338: {
! 2339: #ifndef __GNUC__
! 2340: choke me
! 2341: #endif
1.1 parser 2342:
1.10 ! paf 2343: ;
! 2344: return 0;
! 2345: }
! 2346: _ACEOF
! 2347: rm -f conftest.$ac_objext
! 2348: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2349: (eval $ac_compile) 2>&5
! 2350: ac_status=$?
! 2351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2352: (exit $ac_status); } &&
! 2353: { ac_try='test -s conftest.$ac_objext'
! 2354: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2355: (eval $ac_try) 2>&5
! 2356: ac_status=$?
! 2357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2358: (exit $ac_status); }; }; then
! 2359: ac_compiler_gnu=yes
! 2360: else
! 2361: echo "$as_me: failed program was:" >&5
! 2362: sed 's/^/| /' conftest.$ac_ext >&5
! 2363:
! 2364: ac_compiler_gnu=no
! 2365: fi
! 2366: rm -f conftest.$ac_objext conftest.$ac_ext
! 2367: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 2368:
! 2369: fi
! 2370: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 2371: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
! 2372: GXX=`test $ac_compiler_gnu = yes && echo yes`
! 2373: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 2374: ac_save_CXXFLAGS=$CXXFLAGS
! 2375: CXXFLAGS="-g"
! 2376: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 2377: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
! 2378: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 2379: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2380: else
! 2381: cat >conftest.$ac_ext <<_ACEOF
! 2382: #line $LINENO "configure"
! 2383: /* confdefs.h. */
! 2384: _ACEOF
! 2385: cat confdefs.h >>conftest.$ac_ext
! 2386: cat >>conftest.$ac_ext <<_ACEOF
! 2387: /* end confdefs.h. */
! 2388:
! 2389: int
! 2390: main ()
! 2391: {
! 2392:
! 2393: ;
! 2394: return 0;
! 2395: }
! 2396: _ACEOF
! 2397: rm -f conftest.$ac_objext
! 2398: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2399: (eval $ac_compile) 2>&5
! 2400: ac_status=$?
! 2401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2402: (exit $ac_status); } &&
! 2403: { ac_try='test -s conftest.$ac_objext'
! 2404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2405: (eval $ac_try) 2>&5
! 2406: ac_status=$?
! 2407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2408: (exit $ac_status); }; }; then
! 2409: ac_cv_prog_cxx_g=yes
1.1 parser 2410: else
1.10 ! paf 2411: echo "$as_me: failed program was:" >&5
! 2412: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2413:
1.10 ! paf 2414: ac_cv_prog_cxx_g=no
1.1 parser 2415: fi
1.10 ! paf 2416: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 2417: fi
1.10 ! paf 2418: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 2419: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2420: if test "$ac_test_CXXFLAGS" = set; then
1.10 ! paf 2421: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2422: elif test $ac_cv_prog_cxx_g = yes; then
2423: if test "$GXX" = yes; then
2424: CXXFLAGS="-g -O2"
2425: else
2426: CXXFLAGS="-g"
2427: fi
2428: else
2429: if test "$GXX" = yes; then
2430: CXXFLAGS="-O2"
2431: else
2432: CXXFLAGS=
2433: fi
2434: fi
1.10 ! paf 2435: for ac_declaration in \
! 2436: ''\
! 2437: '#include <stdlib.h>' \
! 2438: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 2439: 'extern "C" void std::exit (int); using std::exit;' \
! 2440: 'extern "C" void exit (int) throw ();' \
! 2441: 'extern "C" void exit (int);' \
! 2442: 'void exit (int);'
! 2443: do
! 2444: cat >conftest.$ac_ext <<_ACEOF
! 2445: #line $LINENO "configure"
! 2446: /* confdefs.h. */
! 2447: _ACEOF
! 2448: cat confdefs.h >>conftest.$ac_ext
! 2449: cat >>conftest.$ac_ext <<_ACEOF
! 2450: /* end confdefs.h. */
! 2451: #include <stdlib.h>
! 2452: $ac_declaration
! 2453: int
! 2454: main ()
! 2455: {
! 2456: exit (42);
! 2457: ;
! 2458: return 0;
! 2459: }
! 2460: _ACEOF
! 2461: rm -f conftest.$ac_objext
! 2462: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2463: (eval $ac_compile) 2>&5
! 2464: ac_status=$?
! 2465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2466: (exit $ac_status); } &&
! 2467: { ac_try='test -s conftest.$ac_objext'
! 2468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2469: (eval $ac_try) 2>&5
! 2470: ac_status=$?
! 2471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2472: (exit $ac_status); }; }; then
! 2473: :
! 2474: else
! 2475: echo "$as_me: failed program was:" >&5
! 2476: sed 's/^/| /' conftest.$ac_ext >&5
! 2477:
! 2478: continue
! 2479: fi
! 2480: rm -f conftest.$ac_objext conftest.$ac_ext
! 2481: cat >conftest.$ac_ext <<_ACEOF
! 2482: #line $LINENO "configure"
! 2483: /* confdefs.h. */
! 2484: _ACEOF
! 2485: cat confdefs.h >>conftest.$ac_ext
! 2486: cat >>conftest.$ac_ext <<_ACEOF
! 2487: /* end confdefs.h. */
! 2488: $ac_declaration
! 2489: int
! 2490: main ()
! 2491: {
! 2492: exit (42);
! 2493: ;
! 2494: return 0;
! 2495: }
! 2496: _ACEOF
! 2497: rm -f conftest.$ac_objext
! 2498: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2499: (eval $ac_compile) 2>&5
! 2500: ac_status=$?
! 2501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2502: (exit $ac_status); } &&
! 2503: { ac_try='test -s conftest.$ac_objext'
! 2504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2505: (eval $ac_try) 2>&5
! 2506: ac_status=$?
! 2507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2508: (exit $ac_status); }; }; then
! 2509: break
! 2510: else
! 2511: echo "$as_me: failed program was:" >&5
! 2512: sed 's/^/| /' conftest.$ac_ext >&5
! 2513:
! 2514: fi
! 2515: rm -f conftest.$ac_objext conftest.$ac_ext
! 2516: done
! 2517: rm -f conftest*
! 2518: if test -n "$ac_declaration"; then
! 2519: echo '#ifdef __cplusplus' >>confdefs.h
! 2520: echo $ac_declaration >>confdefs.h
! 2521: echo '#endif' >>confdefs.h
! 2522: fi
! 2523:
! 2524: ac_ext=cc
! 2525: ac_cpp='$CXXCPP $CPPFLAGS'
! 2526: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2527: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2528: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2529: rm -f .deps 2>/dev/null
! 2530: mkdir .deps 2>/dev/null
! 2531: if test -d .deps; then
! 2532: DEPDIR=.deps
! 2533: else
! 2534: # MS-DOS does not allow filenames that begin with a dot.
! 2535: DEPDIR=_deps
! 2536: fi
! 2537: rmdir .deps 2>/dev/null
! 2538:
! 2539:
! 2540: ac_config_commands="$ac_config_commands depfiles"
! 2541:
! 2542:
! 2543: am_make=${MAKE-make}
! 2544: cat > confinc << 'END'
! 2545: doit:
! 2546: @echo done
! 2547: END
! 2548: # If we don't find an include directive, just comment out the code.
! 2549: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 2550: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
! 2551: am__include="#"
! 2552: am__quote=
! 2553: _am_result=none
! 2554: # First try GNU make style include.
! 2555: echo "include confinc" > confmf
! 2556: # We grep out `Entering directory' and `Leaving directory'
! 2557: # messages which can occur if `w' ends up in MAKEFLAGS.
! 2558: # In particular we don't look at `^make:' because GNU make might
! 2559: # be invoked under some other name (usually "gmake"), in which
! 2560: # case it prints its new name instead of `make'.
! 2561: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
! 2562: am__include=include
! 2563: am__quote=
! 2564: _am_result=GNU
! 2565: fi
! 2566: # Now try BSD make style include.
! 2567: if test "$am__include" = "#"; then
! 2568: echo '.include "confinc"' > confmf
! 2569: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
! 2570: am__include=.include
! 2571: am__quote="\""
! 2572: _am_result=BSD
! 2573: fi
! 2574: fi
! 2575:
! 2576:
! 2577: echo "$as_me:$LINENO: result: $_am_result" >&5
! 2578: echo "${ECHO_T}$_am_result" >&6
! 2579: rm -f confinc confmf
! 2580:
! 2581: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
! 2582: if test "${enable_dependency_tracking+set}" = set; then
! 2583: enableval="$enable_dependency_tracking"
! 2584:
! 2585: fi;
! 2586: if test "x$enable_dependency_tracking" != xno; then
! 2587: am_depcomp="$ac_aux_dir/depcomp"
! 2588: AMDEPBACKSLASH='\'
! 2589: fi
! 2590:
! 2591:
! 2592: if test "x$enable_dependency_tracking" != xno; then
! 2593: AMDEP_TRUE=
! 2594: AMDEP_FALSE='#'
! 2595: else
! 2596: AMDEP_TRUE='#'
! 2597: AMDEP_FALSE=
! 2598: fi
! 2599:
! 2600:
! 2601:
! 2602:
! 2603: depcc="$CXX" am_compiler_list=
! 2604:
! 2605: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 2606: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 2607: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
! 2608: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2609: else
! 2610: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 2611: # We make a subdir and do the tests there. Otherwise we can end up
! 2612: # making bogus files that we don't know about and never remove. For
! 2613: # instance it was reported that on HP-UX the gcc test will end up
! 2614: # making a dummy file named `D' -- because `-MD' means `put the output
! 2615: # in D'.
! 2616: mkdir conftest.dir
! 2617: # Copy depcomp to subdir because otherwise we won't find it if we're
! 2618: # using a relative directory.
! 2619: cp "$am_depcomp" conftest.dir
! 2620: cd conftest.dir
! 2621:
! 2622: am_cv_CXX_dependencies_compiler_type=none
! 2623: if test "$am_compiler_list" = ""; then
! 2624: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 2625: fi
! 2626: for depmode in $am_compiler_list; do
! 2627: # We need to recreate these files for each test, as the compiler may
! 2628: # overwrite some of them when testing with obscure command lines.
! 2629: # This happens at least with the AIX C compiler.
! 2630: echo '#include "conftest.h"' > conftest.c
! 2631: echo 'int i;' > conftest.h
! 2632: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 2633:
! 2634: case $depmode in
! 2635: nosideeffect)
! 2636: # after this tag, mechanisms are not by side-effect, so they'll
! 2637: # only be used when explicitly requested
! 2638: if test "x$enable_dependency_tracking" = xyes; then
! 2639: continue
! 2640: else
! 2641: break
! 2642: fi
! 2643: ;;
! 2644: none) break ;;
! 2645: esac
! 2646: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 2647: # mode. It turns out that the SunPro C++ compiler does not properly
! 2648: # handle `-M -o', and we need to detect this.
! 2649: if depmode=$depmode \
! 2650: source=conftest.c object=conftest.o \
! 2651: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 2652: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
! 2653: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 2654: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 2655: am_cv_CXX_dependencies_compiler_type=$depmode
! 2656: break
! 2657: fi
! 2658: done
! 2659:
! 2660: cd ..
! 2661: rm -rf conftest.dir
! 2662: else
! 2663: am_cv_CXX_dependencies_compiler_type=none
! 2664: fi
! 2665:
! 2666: fi
! 2667: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 2668: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
! 2669: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
! 2670:
! 2671:
! 2672:
! 2673: if
! 2674: test "x$enable_dependency_tracking" != xno \
! 2675: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
! 2676: am__fastdepCXX_TRUE=
! 2677: am__fastdepCXX_FALSE='#'
! 2678: else
! 2679: am__fastdepCXX_TRUE='#'
! 2680: am__fastdepCXX_FALSE=
! 2681: fi
! 2682:
1.1 parser 2683:
2684:
1.10 ! paf 2685: case $enable_ltdl_convenience in
! 2686: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
! 2687: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
! 2688: { (exit 1); exit 1; }; } ;;
! 2689: "") enable_ltdl_convenience=yes
! 2690: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
! 2691: esac
1.1 parser 2692: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1.10 ! paf 2693: LTDLINCL='-I${top_srcdir}/''libltdl'
! 2694: # For backwards non-gettext consistent compatibility...
! 2695: INCLTDL="$LTDLINCL"
1.1 parser 2696:
2697:
2698:
2699:
1.4 paf 2700: # Check whether --enable-static or --disable-static was given.
2701: if test "${enable_static+set}" = set; then
2702: enableval="$enable_static"
1.1 parser 2703: p=${PACKAGE-default}
1.10 ! paf 2704: case $enableval in
1.4 paf 2705: yes) enable_static=yes ;;
2706: no) enable_static=no ;;
1.1 parser 2707: *)
1.4 paf 2708: enable_static=no
1.1 parser 2709: # Look at the argument we got. We use all the common list separators.
2710: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2711: for pkg in $enableval; do
2712: if test "X$pkg" = "X$p"; then
1.4 paf 2713: enable_static=yes
1.1 parser 2714: fi
2715: done
2716: IFS="$ac_save_ifs"
2717: ;;
2718: esac
2719: else
1.4 paf 2720: enable_static=no
1.10 ! paf 2721: fi;
1.6 paf 2722:
1.4 paf 2723: # Check whether --enable-shared or --disable-shared was given.
2724: if test "${enable_shared+set}" = set; then
2725: enableval="$enable_shared"
1.1 parser 2726: p=${PACKAGE-default}
1.10 ! paf 2727: case $enableval in
1.4 paf 2728: yes) enable_shared=yes ;;
2729: no) enable_shared=no ;;
1.1 parser 2730: *)
1.4 paf 2731: enable_shared=no
1.1 parser 2732: # Look at the argument we got. We use all the common list separators.
2733: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2734: for pkg in $enableval; do
2735: if test "X$pkg" = "X$p"; then
1.4 paf 2736: enable_shared=yes
1.1 parser 2737: fi
2738: done
2739: IFS="$ac_save_ifs"
2740: ;;
2741: esac
2742: else
1.4 paf 2743: enable_shared=yes
1.10 ! paf 2744: fi;
1.1 parser 2745: # Check whether --enable-fast-install or --disable-fast-install was given.
2746: if test "${enable_fast_install+set}" = set; then
2747: enableval="$enable_fast_install"
2748: p=${PACKAGE-default}
1.10 ! paf 2749: case $enableval in
1.1 parser 2750: yes) enable_fast_install=yes ;;
2751: no) enable_fast_install=no ;;
2752: *)
2753: enable_fast_install=no
2754: # Look at the argument we got. We use all the common list separators.
2755: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2756: for pkg in $enableval; do
2757: if test "X$pkg" = "X$p"; then
2758: enable_fast_install=yes
2759: fi
2760: done
2761: IFS="$ac_save_ifs"
2762: ;;
2763: esac
2764: else
2765: enable_fast_install=yes
1.10 ! paf 2766: fi;
1.1 parser 2767: # Make sure we can run config.sub.
1.10 ! paf 2768: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 2769: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 2770: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 2771: { (exit 1); exit 1; }; }
! 2772:
! 2773: echo "$as_me:$LINENO: checking build system type" >&5
! 2774: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 2775: if test "${ac_cv_build+set}" = set; then
! 2776: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2777: else
! 2778: ac_cv_build_alias=$build_alias
! 2779: test -z "$ac_cv_build_alias" &&
! 2780: ac_cv_build_alias=`$ac_config_guess`
! 2781: test -z "$ac_cv_build_alias" &&
! 2782: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 2783: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 2784: { (exit 1); exit 1; }; }
! 2785: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 2786: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 2787: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 2788: { (exit 1); exit 1; }; }
! 2789:
! 2790: fi
! 2791: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 2792: echo "${ECHO_T}$ac_cv_build" >&6
! 2793: build=$ac_cv_build
! 2794: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 2795: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 2796: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 2797:
! 2798:
! 2799: echo "$as_me:$LINENO: checking host system type" >&5
! 2800: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 2801: if test "${ac_cv_host+set}" = set; then
! 2802: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2803: else
! 2804: ac_cv_host_alias=$host_alias
! 2805: test -z "$ac_cv_host_alias" &&
! 2806: ac_cv_host_alias=$ac_cv_build_alias
! 2807: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 2808: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 2809: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 2810: { (exit 1); exit 1; }; }
! 2811:
! 2812: fi
! 2813: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 2814: echo "${ECHO_T}$ac_cv_host" >&6
! 2815: host=$ac_cv_host
! 2816: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 2817: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 2818: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 parser 2819:
2820:
1.10 ! paf 2821: ac_ext=c
! 2822: ac_cpp='$CPP $CPPFLAGS'
! 2823: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2824: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2825: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2826: if test -n "$ac_tool_prefix"; then
! 2827: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 2828: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 2829: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2830: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2831: if test "${ac_cv_prog_CC+set}" = set; then
! 2832: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2833: else
! 2834: if test -n "$CC"; then
! 2835: ac_cv_prog_CC="$CC" # Let the user override the test.
! 2836: else
! 2837: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2838: for as_dir in $PATH
! 2839: do
! 2840: IFS=$as_save_IFS
! 2841: test -z "$as_dir" && as_dir=.
! 2842: for ac_exec_ext in '' $ac_executable_extensions; do
! 2843: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2844: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 2845: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2846: break 2
! 2847: fi
! 2848: done
! 2849: done
1.1 parser 2850:
1.10 ! paf 2851: fi
! 2852: fi
! 2853: CC=$ac_cv_prog_CC
! 2854: if test -n "$CC"; then
! 2855: echo "$as_me:$LINENO: result: $CC" >&5
! 2856: echo "${ECHO_T}$CC" >&6
! 2857: else
! 2858: echo "$as_me:$LINENO: result: no" >&5
! 2859: echo "${ECHO_T}no" >&6
! 2860: fi
1.1 parser 2861:
1.10 ! paf 2862: fi
! 2863: if test -z "$ac_cv_prog_CC"; then
! 2864: ac_ct_CC=$CC
! 2865: # Extract the first word of "gcc", so it can be a program name with args.
! 2866: set dummy gcc; ac_word=$2
! 2867: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2868: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2869: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2870: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2871: else
1.10 ! paf 2872: if test -n "$ac_ct_CC"; then
! 2873: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2874: else
1.10 ! paf 2875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2876: for as_dir in $PATH
! 2877: do
! 2878: IFS=$as_save_IFS
! 2879: test -z "$as_dir" && as_dir=.
! 2880: for ac_exec_ext in '' $ac_executable_extensions; do
! 2881: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2882: ac_cv_prog_ac_ct_CC="gcc"
! 2883: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2884: break 2
! 2885: fi
! 2886: done
! 2887: done
! 2888:
! 2889: fi
1.1 parser 2890: fi
1.10 ! paf 2891: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 2892: if test -n "$ac_ct_CC"; then
! 2893: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2894: echo "${ECHO_T}$ac_ct_CC" >&6
! 2895: else
! 2896: echo "$as_me:$LINENO: result: no" >&5
! 2897: echo "${ECHO_T}no" >&6
1.1 parser 2898: fi
1.10 ! paf 2899:
! 2900: CC=$ac_ct_CC
1.1 parser 2901: else
1.10 ! paf 2902: CC="$ac_cv_prog_CC"
1.1 parser 2903: fi
2904:
1.10 ! paf 2905: if test -z "$CC"; then
! 2906: if test -n "$ac_tool_prefix"; then
! 2907: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 2908: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 2909: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2910: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2911: if test "${ac_cv_prog_CC+set}" = set; then
! 2912: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2913: else
2914: if test -n "$CC"; then
2915: ac_cv_prog_CC="$CC" # Let the user override the test.
2916: else
1.10 ! paf 2917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2918: for as_dir in $PATH
! 2919: do
! 2920: IFS=$as_save_IFS
! 2921: test -z "$as_dir" && as_dir=.
! 2922: for ac_exec_ext in '' $ac_executable_extensions; do
! 2923: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2924: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 2925: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2926: break 2
! 2927: fi
! 2928: done
! 2929: done
! 2930:
1.1 parser 2931: fi
2932: fi
1.10 ! paf 2933: CC=$ac_cv_prog_CC
1.1 parser 2934: if test -n "$CC"; then
1.10 ! paf 2935: echo "$as_me:$LINENO: result: $CC" >&5
! 2936: echo "${ECHO_T}$CC" >&6
! 2937: else
! 2938: echo "$as_me:$LINENO: result: no" >&5
! 2939: echo "${ECHO_T}no" >&6
! 2940: fi
! 2941:
! 2942: fi
! 2943: if test -z "$ac_cv_prog_CC"; then
! 2944: ac_ct_CC=$CC
! 2945: # Extract the first word of "cc", so it can be a program name with args.
! 2946: set dummy cc; ac_word=$2
! 2947: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2948: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2949: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2950: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2951: else
! 2952: if test -n "$ac_ct_CC"; then
! 2953: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 2954: else
! 2955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2956: for as_dir in $PATH
! 2957: do
! 2958: IFS=$as_save_IFS
! 2959: test -z "$as_dir" && as_dir=.
! 2960: for ac_exec_ext in '' $ac_executable_extensions; do
! 2961: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2962: ac_cv_prog_ac_ct_CC="cc"
! 2963: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2964: break 2
! 2965: fi
! 2966: done
! 2967: done
! 2968:
! 2969: fi
! 2970: fi
! 2971: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 2972: if test -n "$ac_ct_CC"; then
! 2973: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2974: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 parser 2975: else
1.10 ! paf 2976: echo "$as_me:$LINENO: result: no" >&5
! 2977: echo "${ECHO_T}no" >&6
1.1 parser 2978: fi
2979:
1.10 ! paf 2980: CC=$ac_ct_CC
! 2981: else
! 2982: CC="$ac_cv_prog_CC"
! 2983: fi
! 2984:
! 2985: fi
1.1 parser 2986: if test -z "$CC"; then
2987: # Extract the first word of "cc", so it can be a program name with args.
2988: set dummy cc; ac_word=$2
1.10 ! paf 2989: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2990: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2991: if test "${ac_cv_prog_CC+set}" = set; then
! 2992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2993: else
2994: if test -n "$CC"; then
2995: ac_cv_prog_CC="$CC" # Let the user override the test.
2996: else
2997: ac_prog_rejected=no
1.10 ! paf 2998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2999: for as_dir in $PATH
! 3000: do
! 3001: IFS=$as_save_IFS
! 3002: test -z "$as_dir" && as_dir=.
! 3003: for ac_exec_ext in '' $ac_executable_extensions; do
! 3004: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3005: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
! 3006: ac_prog_rejected=yes
! 3007: continue
! 3008: fi
! 3009: ac_cv_prog_CC="cc"
! 3010: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3011: break 2
! 3012: fi
! 3013: done
! 3014: done
! 3015:
1.1 parser 3016: if test $ac_prog_rejected = yes; then
3017: # We found a bogon in the path, so make sure we never use it.
3018: set dummy $ac_cv_prog_CC
3019: shift
1.10 ! paf 3020: if test $# != 0; then
1.1 parser 3021: # We chose a different compiler from the bogus one.
3022: # However, it has the same basename, so the bogon will be chosen
3023: # first if we set CC to just the basename; use the full file name.
3024: shift
1.10 ! paf 3025: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3026: fi
3027: fi
3028: fi
3029: fi
1.10 ! paf 3030: CC=$ac_cv_prog_CC
1.1 parser 3031: if test -n "$CC"; then
1.10 ! paf 3032: echo "$as_me:$LINENO: result: $CC" >&5
! 3033: echo "${ECHO_T}$CC" >&6
1.1 parser 3034: else
1.10 ! paf 3035: echo "$as_me:$LINENO: result: no" >&5
! 3036: echo "${ECHO_T}no" >&6
1.1 parser 3037: fi
3038:
1.10 ! paf 3039: fi
! 3040: if test -z "$CC"; then
! 3041: if test -n "$ac_tool_prefix"; then
! 3042: for ac_prog in cl
! 3043: do
! 3044: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 3045: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 3046: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3047: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3048: if test "${ac_cv_prog_CC+set}" = set; then
! 3049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3050: else
3051: if test -n "$CC"; then
3052: ac_cv_prog_CC="$CC" # Let the user override the test.
3053: else
1.10 ! paf 3054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3055: for as_dir in $PATH
! 3056: do
! 3057: IFS=$as_save_IFS
! 3058: test -z "$as_dir" && as_dir=.
! 3059: for ac_exec_ext in '' $ac_executable_extensions; do
! 3060: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3061: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 3062: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3063: break 2
! 3064: fi
! 3065: done
! 3066: done
! 3067:
1.1 parser 3068: fi
3069: fi
1.10 ! paf 3070: CC=$ac_cv_prog_CC
1.1 parser 3071: if test -n "$CC"; then
1.10 ! paf 3072: echo "$as_me:$LINENO: result: $CC" >&5
! 3073: echo "${ECHO_T}$CC" >&6
1.1 parser 3074: else
1.10 ! paf 3075: echo "$as_me:$LINENO: result: no" >&5
! 3076: echo "${ECHO_T}no" >&6
! 3077: fi
! 3078:
! 3079: test -n "$CC" && break
! 3080: done
1.1 parser 3081: fi
1.10 ! paf 3082: if test -z "$CC"; then
! 3083: ac_ct_CC=$CC
! 3084: for ac_prog in cl
! 3085: do
! 3086: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3087: set dummy $ac_prog; ac_word=$2
! 3088: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3089: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3090: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3091: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3092: else
! 3093: if test -n "$ac_ct_CC"; then
! 3094: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 3095: else
! 3096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3097: for as_dir in $PATH
! 3098: do
! 3099: IFS=$as_save_IFS
! 3100: test -z "$as_dir" && as_dir=.
! 3101: for ac_exec_ext in '' $ac_executable_extensions; do
! 3102: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3103: ac_cv_prog_ac_ct_CC="$ac_prog"
! 3104: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3105: break 2
1.1 parser 3106: fi
1.10 ! paf 3107: done
! 3108: done
! 3109:
! 3110: fi
! 3111: fi
! 3112: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3113: if test -n "$ac_ct_CC"; then
! 3114: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 3115: echo "${ECHO_T}$ac_ct_CC" >&6
! 3116: else
! 3117: echo "$as_me:$LINENO: result: no" >&5
! 3118: echo "${ECHO_T}no" >&6
1.1 parser 3119: fi
3120:
1.10 ! paf 3121: test -n "$ac_ct_CC" && break
! 3122: done
1.1 parser 3123:
1.10 ! paf 3124: CC=$ac_ct_CC
! 3125: fi
1.1 parser 3126:
1.10 ! paf 3127: fi
1.1 parser 3128:
3129:
1.10 ! paf 3130: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 3131: See \`config.log' for more details." >&5
! 3132: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 3133: See \`config.log' for more details." >&2;}
! 3134: { (exit 1); exit 1; }; }
! 3135:
! 3136: # Provide some information about the compiler.
! 3137: echo "$as_me:$LINENO:" \
! 3138: "checking for C compiler version" >&5
! 3139: ac_compiler=`set X $ac_compile; echo $2`
! 3140: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 3141: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 3142: ac_status=$?
! 3143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3144: (exit $ac_status); }
! 3145: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 3146: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 3147: ac_status=$?
! 3148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3149: (exit $ac_status); }
! 3150: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 3151: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 3152: ac_status=$?
! 3153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3154: (exit $ac_status); }
! 3155:
! 3156: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3157: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 3158: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 3159: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3160: else
! 3161: cat >conftest.$ac_ext <<_ACEOF
! 3162: #line $LINENO "configure"
! 3163: /* confdefs.h. */
! 3164: _ACEOF
! 3165: cat confdefs.h >>conftest.$ac_ext
! 3166: cat >>conftest.$ac_ext <<_ACEOF
! 3167: /* end confdefs.h. */
! 3168:
! 3169: int
! 3170: main ()
! 3171: {
! 3172: #ifndef __GNUC__
! 3173: choke me
1.1 parser 3174: #endif
3175:
1.10 ! paf 3176: ;
! 3177: return 0;
! 3178: }
! 3179: _ACEOF
! 3180: rm -f conftest.$ac_objext
! 3181: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3182: (eval $ac_compile) 2>&5
! 3183: ac_status=$?
! 3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3185: (exit $ac_status); } &&
! 3186: { ac_try='test -s conftest.$ac_objext'
! 3187: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3188: (eval $ac_try) 2>&5
! 3189: ac_status=$?
! 3190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3191: (exit $ac_status); }; }; then
! 3192: ac_compiler_gnu=yes
! 3193: else
! 3194: echo "$as_me: failed program was:" >&5
! 3195: sed 's/^/| /' conftest.$ac_ext >&5
! 3196:
! 3197: ac_compiler_gnu=no
! 3198: fi
! 3199: rm -f conftest.$ac_objext conftest.$ac_ext
! 3200: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 3201:
! 3202: fi
! 3203: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3204: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 3205: GCC=`test $ac_compiler_gnu = yes && echo yes`
! 3206: ac_test_CFLAGS=${CFLAGS+set}
! 3207: ac_save_CFLAGS=$CFLAGS
! 3208: CFLAGS="-g"
! 3209: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3210: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 3211: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3212: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3213: else
! 3214: cat >conftest.$ac_ext <<_ACEOF
! 3215: #line $LINENO "configure"
! 3216: /* confdefs.h. */
! 3217: _ACEOF
! 3218: cat confdefs.h >>conftest.$ac_ext
! 3219: cat >>conftest.$ac_ext <<_ACEOF
! 3220: /* end confdefs.h. */
! 3221:
! 3222: int
! 3223: main ()
! 3224: {
! 3225:
! 3226: ;
! 3227: return 0;
! 3228: }
! 3229: _ACEOF
! 3230: rm -f conftest.$ac_objext
! 3231: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3232: (eval $ac_compile) 2>&5
! 3233: ac_status=$?
! 3234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3235: (exit $ac_status); } &&
! 3236: { ac_try='test -s conftest.$ac_objext'
! 3237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3238: (eval $ac_try) 2>&5
! 3239: ac_status=$?
! 3240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3241: (exit $ac_status); }; }; then
! 3242: ac_cv_prog_cc_g=yes
1.1 parser 3243: else
1.10 ! paf 3244: echo "$as_me: failed program was:" >&5
! 3245: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3246:
1.10 ! paf 3247: ac_cv_prog_cc_g=no
1.1 parser 3248: fi
1.10 ! paf 3249: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 3250: fi
1.10 ! paf 3251: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3252: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3253: if test "$ac_test_CFLAGS" = set; then
1.10 ! paf 3254: CFLAGS=$ac_save_CFLAGS
1.1 parser 3255: elif test $ac_cv_prog_cc_g = yes; then
3256: if test "$GCC" = yes; then
3257: CFLAGS="-g -O2"
3258: else
3259: CFLAGS="-g"
3260: fi
3261: else
3262: if test "$GCC" = yes; then
3263: CFLAGS="-O2"
3264: else
3265: CFLAGS=
3266: fi
3267: fi
1.10 ! paf 3268: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
! 3269: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 3270: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 3271: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3272: else
! 3273: ac_cv_prog_cc_stdc=no
! 3274: ac_save_CC=$CC
! 3275: cat >conftest.$ac_ext <<_ACEOF
! 3276: #line $LINENO "configure"
! 3277: /* confdefs.h. */
! 3278: _ACEOF
! 3279: cat confdefs.h >>conftest.$ac_ext
! 3280: cat >>conftest.$ac_ext <<_ACEOF
! 3281: /* end confdefs.h. */
! 3282: #include <stdarg.h>
! 3283: #include <stdio.h>
! 3284: #include <sys/types.h>
! 3285: #include <sys/stat.h>
! 3286: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 3287: struct buf { int x; };
! 3288: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 3289: static char *e (p, i)
! 3290: char **p;
! 3291: int i;
! 3292: {
! 3293: return p[i];
! 3294: }
! 3295: static char *f (char * (*g) (char **, int), char **p, ...)
! 3296: {
! 3297: char *s;
! 3298: va_list v;
! 3299: va_start (v,p);
! 3300: s = g (p, va_arg (v,int));
! 3301: va_end (v);
! 3302: return s;
! 3303: }
! 3304: int test (int i, double x);
! 3305: struct s1 {int (*f) (int a);};
! 3306: struct s2 {int (*f) (double a);};
! 3307: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 3308: int argc;
! 3309: char **argv;
! 3310: int
! 3311: main ()
! 3312: {
! 3313: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 3314: ;
! 3315: return 0;
! 3316: }
! 3317: _ACEOF
! 3318: # Don't try gcc -ansi; that turns off useful extensions and
! 3319: # breaks some systems' header files.
! 3320: # AIX -qlanglvl=ansi
! 3321: # Ultrix and OSF/1 -std1
! 3322: # HP-UX 10.20 and later -Ae
! 3323: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 3324: # SVR4 -Xc -D__EXTENSIONS__
! 3325: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 3326: do
! 3327: CC="$ac_save_CC $ac_arg"
! 3328: rm -f conftest.$ac_objext
! 3329: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3330: (eval $ac_compile) 2>&5
! 3331: ac_status=$?
! 3332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3333: (exit $ac_status); } &&
! 3334: { ac_try='test -s conftest.$ac_objext'
! 3335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3336: (eval $ac_try) 2>&5
! 3337: ac_status=$?
! 3338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3339: (exit $ac_status); }; }; then
! 3340: ac_cv_prog_cc_stdc=$ac_arg
! 3341: break
! 3342: else
! 3343: echo "$as_me: failed program was:" >&5
! 3344: sed 's/^/| /' conftest.$ac_ext >&5
! 3345:
! 3346: fi
! 3347: rm -f conftest.$ac_objext
! 3348: done
! 3349: rm -f conftest.$ac_ext conftest.$ac_objext
! 3350: CC=$ac_save_CC
! 3351:
! 3352: fi
! 3353:
! 3354: case "x$ac_cv_prog_cc_stdc" in
! 3355: x|xno)
! 3356: echo "$as_me:$LINENO: result: none needed" >&5
! 3357: echo "${ECHO_T}none needed" >&6 ;;
! 3358: *)
! 3359: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
! 3360: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 3361: CC="$CC $ac_cv_prog_cc_stdc" ;;
! 3362: esac
! 3363:
! 3364: # Some people use a C++ compiler to compile C. Since we use `exit',
! 3365: # in C++ we need to declare it. In case someone uses the same compiler
! 3366: # for both compiling C and C++ we need to have the C++ compiler decide
! 3367: # the declaration of exit, since it's the most demanding environment.
! 3368: cat >conftest.$ac_ext <<_ACEOF
! 3369: #ifndef __cplusplus
! 3370: choke me
! 3371: #endif
! 3372: _ACEOF
! 3373: rm -f conftest.$ac_objext
! 3374: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3375: (eval $ac_compile) 2>&5
! 3376: ac_status=$?
! 3377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3378: (exit $ac_status); } &&
! 3379: { ac_try='test -s conftest.$ac_objext'
! 3380: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3381: (eval $ac_try) 2>&5
! 3382: ac_status=$?
! 3383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3384: (exit $ac_status); }; }; then
! 3385: for ac_declaration in \
! 3386: ''\
! 3387: '#include <stdlib.h>' \
! 3388: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 3389: 'extern "C" void std::exit (int); using std::exit;' \
! 3390: 'extern "C" void exit (int) throw ();' \
! 3391: 'extern "C" void exit (int);' \
! 3392: 'void exit (int);'
! 3393: do
! 3394: cat >conftest.$ac_ext <<_ACEOF
! 3395: #line $LINENO "configure"
! 3396: /* confdefs.h. */
! 3397: _ACEOF
! 3398: cat confdefs.h >>conftest.$ac_ext
! 3399: cat >>conftest.$ac_ext <<_ACEOF
! 3400: /* end confdefs.h. */
! 3401: #include <stdlib.h>
! 3402: $ac_declaration
! 3403: int
! 3404: main ()
! 3405: {
! 3406: exit (42);
! 3407: ;
! 3408: return 0;
! 3409: }
! 3410: _ACEOF
! 3411: rm -f conftest.$ac_objext
! 3412: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3413: (eval $ac_compile) 2>&5
! 3414: ac_status=$?
! 3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3416: (exit $ac_status); } &&
! 3417: { ac_try='test -s conftest.$ac_objext'
! 3418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3419: (eval $ac_try) 2>&5
! 3420: ac_status=$?
! 3421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3422: (exit $ac_status); }; }; then
! 3423: :
! 3424: else
! 3425: echo "$as_me: failed program was:" >&5
! 3426: sed 's/^/| /' conftest.$ac_ext >&5
! 3427:
! 3428: continue
! 3429: fi
! 3430: rm -f conftest.$ac_objext conftest.$ac_ext
! 3431: cat >conftest.$ac_ext <<_ACEOF
! 3432: #line $LINENO "configure"
! 3433: /* confdefs.h. */
! 3434: _ACEOF
! 3435: cat confdefs.h >>conftest.$ac_ext
! 3436: cat >>conftest.$ac_ext <<_ACEOF
! 3437: /* end confdefs.h. */
! 3438: $ac_declaration
! 3439: int
! 3440: main ()
! 3441: {
! 3442: exit (42);
! 3443: ;
! 3444: return 0;
! 3445: }
! 3446: _ACEOF
! 3447: rm -f conftest.$ac_objext
! 3448: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3449: (eval $ac_compile) 2>&5
! 3450: ac_status=$?
! 3451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3452: (exit $ac_status); } &&
! 3453: { ac_try='test -s conftest.$ac_objext'
! 3454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3455: (eval $ac_try) 2>&5
! 3456: ac_status=$?
! 3457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3458: (exit $ac_status); }; }; then
! 3459: break
! 3460: else
! 3461: echo "$as_me: failed program was:" >&5
! 3462: sed 's/^/| /' conftest.$ac_ext >&5
! 3463:
! 3464: fi
! 3465: rm -f conftest.$ac_objext conftest.$ac_ext
! 3466: done
! 3467: rm -f conftest*
! 3468: if test -n "$ac_declaration"; then
! 3469: echo '#ifdef __cplusplus' >>confdefs.h
! 3470: echo $ac_declaration >>confdefs.h
! 3471: echo '#endif' >>confdefs.h
! 3472: fi
! 3473:
! 3474: else
! 3475: echo "$as_me: failed program was:" >&5
! 3476: sed 's/^/| /' conftest.$ac_ext >&5
! 3477:
! 3478: fi
! 3479: rm -f conftest.$ac_objext conftest.$ac_ext
! 3480: ac_ext=cc
! 3481: ac_cpp='$CXXCPP $CPPFLAGS'
! 3482: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3483: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3484: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 3485:
! 3486: depcc="$CC" am_compiler_list=
! 3487:
! 3488: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3489: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 3490: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
! 3491: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3492: else
! 3493: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 3494: # We make a subdir and do the tests there. Otherwise we can end up
! 3495: # making bogus files that we don't know about and never remove. For
! 3496: # instance it was reported that on HP-UX the gcc test will end up
! 3497: # making a dummy file named `D' -- because `-MD' means `put the output
! 3498: # in D'.
! 3499: mkdir conftest.dir
! 3500: # Copy depcomp to subdir because otherwise we won't find it if we're
! 3501: # using a relative directory.
! 3502: cp "$am_depcomp" conftest.dir
! 3503: cd conftest.dir
! 3504:
! 3505: am_cv_CC_dependencies_compiler_type=none
! 3506: if test "$am_compiler_list" = ""; then
! 3507: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 3508: fi
! 3509: for depmode in $am_compiler_list; do
! 3510: # We need to recreate these files for each test, as the compiler may
! 3511: # overwrite some of them when testing with obscure command lines.
! 3512: # This happens at least with the AIX C compiler.
! 3513: echo '#include "conftest.h"' > conftest.c
! 3514: echo 'int i;' > conftest.h
! 3515: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 3516:
! 3517: case $depmode in
! 3518: nosideeffect)
! 3519: # after this tag, mechanisms are not by side-effect, so they'll
! 3520: # only be used when explicitly requested
! 3521: if test "x$enable_dependency_tracking" = xyes; then
! 3522: continue
! 3523: else
! 3524: break
! 3525: fi
! 3526: ;;
! 3527: none) break ;;
! 3528: esac
! 3529: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 3530: # mode. It turns out that the SunPro C++ compiler does not properly
! 3531: # handle `-M -o', and we need to detect this.
! 3532: if depmode=$depmode \
! 3533: source=conftest.c object=conftest.o \
! 3534: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 3535: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
! 3536: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 3537: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 3538: am_cv_CC_dependencies_compiler_type=$depmode
! 3539: break
! 3540: fi
! 3541: done
! 3542:
! 3543: cd ..
! 3544: rm -rf conftest.dir
! 3545: else
! 3546: am_cv_CC_dependencies_compiler_type=none
! 3547: fi
! 3548:
! 3549: fi
! 3550: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3551: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
! 3552: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
! 3553:
! 3554:
! 3555:
! 3556: if
! 3557: test "x$enable_dependency_tracking" != xno \
! 3558: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 3559: am__fastdepCC_TRUE=
! 3560: am__fastdepCC_FALSE='#'
! 3561: else
! 3562: am__fastdepCC_TRUE='#'
! 3563: am__fastdepCC_FALSE=
! 3564: fi
! 3565:
! 3566:
! 3567: # Find the correct PATH separator. Usually this is `:', but
! 3568: # DJGPP uses `;' like DOS.
! 3569: if test "X${PATH_SEPARATOR+set}" != Xset; then
! 3570: UNAME=${UNAME-`uname 2>/dev/null`}
! 3571: case X$UNAME in
! 3572: *-DOS) lt_cv_sys_path_separator=';' ;;
! 3573: *) lt_cv_sys_path_separator=':' ;;
! 3574: esac
! 3575: PATH_SEPARATOR=$lt_cv_sys_path_separator
! 3576: fi
! 3577:
1.1 parser 3578:
3579: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3580: if test "${with_gnu_ld+set}" = set; then
3581: withval="$with_gnu_ld"
3582: test "$withval" = no || with_gnu_ld=yes
3583: else
3584: with_gnu_ld=no
1.10 ! paf 3585: fi;
1.1 parser 3586: ac_prog=ld
1.10 ! paf 3587: if test "$GCC" = yes; then
1.1 parser 3588: # Check if gcc -print-prog-name=ld gives a path.
1.10 ! paf 3589: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
! 3590: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
! 3591: case $host in
! 3592: *-*-mingw*)
! 3593: # gcc leaves a trailing carriage return which upsets mingw
! 3594: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 3595: *)
! 3596: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 3597: esac
! 3598: case $ac_prog in
1.1 parser 3599: # Accept absolute paths.
3600: [\\/]* | [A-Za-z]:[\\/]*)
3601: re_direlt='/[^/][^/]*/\.\./'
3602: # Canonicalize the path of ld
3603: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3604: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3605: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3606: done
3607: test -z "$LD" && LD="$ac_prog"
3608: ;;
3609: "")
3610: # If it fails, then pretend we aren't using GCC.
3611: ac_prog=ld
3612: ;;
3613: *)
3614: # If it is relative, then search for the first ld in PATH.
3615: with_gnu_ld=unknown
3616: ;;
3617: esac
3618: elif test "$with_gnu_ld" = yes; then
1.10 ! paf 3619: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 3620: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3621: else
1.10 ! paf 3622: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 3623: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3624: fi
1.10 ! paf 3625: if test "${lt_cv_path_LD+set}" = set; then
! 3626: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3627: else
3628: if test -z "$LD"; then
1.10 ! paf 3629: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3630: for ac_dir in $PATH; do
3631: test -z "$ac_dir" && ac_dir=.
3632: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 ! paf 3633: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3634: # Check to see if the program is GNU ld. I'd rather use --version,
3635: # but apparently some GNU ld's only accept -v.
3636: # Break only if it was the GNU/non-GNU ld that we prefer.
1.10 ! paf 3637: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3638: test "$with_gnu_ld" != no && break
3639: else
3640: test "$with_gnu_ld" != yes && break
3641: fi
3642: fi
3643: done
3644: IFS="$ac_save_ifs"
3645: else
1.10 ! paf 3646: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3647: fi
3648: fi
3649:
1.10 ! paf 3650: LD="$lt_cv_path_LD"
1.1 parser 3651: if test -n "$LD"; then
1.10 ! paf 3652: echo "$as_me:$LINENO: result: $LD" >&5
! 3653: echo "${ECHO_T}$LD" >&6
1.1 parser 3654: else
1.10 ! paf 3655: echo "$as_me:$LINENO: result: no" >&5
! 3656: echo "${ECHO_T}no" >&6
1.1 parser 3657: fi
1.10 ! paf 3658: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 3659: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 3660: { (exit 1); exit 1; }; }
! 3661: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 3662: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 3663: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 3664: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3665: else
3666: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3667: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.10 ! paf 3668: lt_cv_prog_gnu_ld=yes
1.1 parser 3669: else
1.10 ! paf 3670: lt_cv_prog_gnu_ld=no
1.1 parser 3671: fi
3672: fi
1.10 ! paf 3673: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 3674: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
! 3675: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3676:
3677:
1.10 ! paf 3678: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 3679: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 3680: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 3681: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3682: else
! 3683: lt_cv_ld_reload_flag='-r'
! 3684: fi
! 3685: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 3686: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
! 3687: reload_flag=$lt_cv_ld_reload_flag
! 3688: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3689:
1.10 ! paf 3690: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 3691: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 3692: if test "${lt_cv_path_NM+set}" = set; then
! 3693: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3694: else
3695: if test -n "$NM"; then
3696: # Let the user override the test.
1.10 ! paf 3697: lt_cv_path_NM="$NM"
1.1 parser 3698: else
1.10 ! paf 3699: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3700: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3701: test -z "$ac_dir" && ac_dir=.
1.10 ! paf 3702: tmp_nm=$ac_dir/${ac_tool_prefix}nm
! 3703: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3704: # Check to see if the nm accepts a BSD-compat flag.
3705: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3706: # nm: unknown option "B" ignored
1.10 ! paf 3707: # Tru64's nm complains that /dev/null is an invalid object file
! 3708: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
! 3709: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3710: break
1.10 ! paf 3711: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 3712: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3713: break
3714: else
1.10 ! paf 3715: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3716: continue # so that we can try to find one that supports BSD flags
3717: fi
3718: fi
3719: done
3720: IFS="$ac_save_ifs"
1.10 ! paf 3721: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3722: fi
3723: fi
3724:
1.10 ! paf 3725: NM="$lt_cv_path_NM"
! 3726: echo "$as_me:$LINENO: result: $NM" >&5
! 3727: echo "${ECHO_T}$NM" >&6
1.1 parser 3728:
1.10 ! paf 3729: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 3730: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
! 3731: if test "${lt_cv_path_SED+set}" = set; then
! 3732: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3733: else
1.10 ! paf 3734: # Loop through the user's path and test for sed and gsed.
! 3735: # Then use that list of sed's as ones to test for truncation.
! 3736: as_executable_p="test -f"
! 3737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3738: for as_dir in $PATH
! 3739: do
! 3740: IFS=$as_save_IFS
! 3741: test -z "$as_dir" && as_dir=.
! 3742: for ac_prog in sed gsed; do
! 3743: for ac_exec_ext in '' $ac_executable_extensions; do
! 3744: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 3745: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
! 3746: fi
! 3747: done
! 3748: done
! 3749: done
! 3750:
! 3751: # Create a temporary directory, and hook for its removal unless debugging.
! 3752: $debug ||
! 3753: {
! 3754: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 3755: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 3756: }
! 3757:
! 3758: # Create a (secure) tmp directory for tmp files.
! 3759: : ${TMPDIR=/tmp}
! 3760: {
! 3761: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
! 3762: test -n "$tmp" && test -d "$tmp"
! 3763: } ||
! 3764: {
! 3765: tmp=$TMPDIR/sed$$-$RANDOM
! 3766: (umask 077 && mkdir $tmp)
! 3767: } ||
! 3768: {
! 3769: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
! 3770: { (exit 1); exit 1; }
! 3771: }
! 3772: _max=0
! 3773: _count=0
! 3774: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
! 3775: # along with /bin/sed that truncates output.
! 3776: for _sed in $_sed_list /usr/xpg4/bin/sed; do
! 3777: test ! -f ${_sed} && break
! 3778: cat /dev/null > "$tmp/sed.in"
! 3779: _count=0
! 3780: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
! 3781: # Check for GNU sed and select it if it is found.
! 3782: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
! 3783: lt_cv_path_SED=${_sed}
! 3784: break
! 3785: fi
! 3786: while true; do
! 3787: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
! 3788: mv "$tmp/sed.tmp" "$tmp/sed.in"
! 3789: cp "$tmp/sed.in" "$tmp/sed.nl"
! 3790: echo >>"$tmp/sed.nl"
! 3791: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
! 3792: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
! 3793: # 40000 chars as input seems more than enough
! 3794: test $_count -gt 10 && break
! 3795: _count=`expr $_count + 1`
! 3796: if test $_count -gt $_max; then
! 3797: _max=$_count
! 3798: lt_cv_path_SED=$_sed
! 3799: fi
! 3800: done
! 3801: done
! 3802: rm -rf "$tmp"
! 3803:
1.1 parser 3804: fi
3805:
1.10 ! paf 3806: if test "X$SED" != "X"; then
! 3807: lt_cv_path_SED=$SED
1.6 paf 3808: else
1.10 ! paf 3809: SED=$lt_cv_path_SED
1.6 paf 3810: fi
1.10 ! paf 3811: echo "$as_me:$LINENO: result: $SED" >&5
! 3812: echo "${ECHO_T}$SED" >&6
! 3813:
! 3814: echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 3815: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
! 3816: LN_S=$as_ln_s
! 3817: if test "$LN_S" = "ln -s"; then
! 3818: echo "$as_me:$LINENO: result: yes" >&5
! 3819: echo "${ECHO_T}yes" >&6
! 3820: else
! 3821: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 3822: echo "${ECHO_T}no, using $LN_S" >&6
! 3823: fi
! 3824:
! 3825: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
! 3826: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
! 3827: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 3828: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3829: else
! 3830: lt_cv_file_magic_cmd='$MAGIC_CMD'
! 3831: lt_cv_file_magic_test_file=
! 3832: lt_cv_deplibs_check_method='unknown'
! 3833: # Need to set the preceding variable on all platforms that support
! 3834: # interlibrary dependencies.
! 3835: # 'none' -- dependencies not supported.
! 3836: # `unknown' -- same as none, but documents that we really don't know.
! 3837: # 'pass_all' -- all dependencies passed with no checks.
! 3838: # 'test_compile' -- check by making test program.
! 3839: # 'file_magic [[regex]]' -- check by looking for files in library path
! 3840: # which responds to the $file_magic_cmd with a given egrep regex.
! 3841: # If you have `file' or equivalent on your system and you're not sure
! 3842: # whether `pass_all' will *always* work, you probably want this one.
! 3843:
! 3844: case $host_os in
! 3845: aix4* | aix5*)
! 3846: lt_cv_deplibs_check_method=pass_all
! 3847: ;;
1.6 paf 3848:
1.10 ! paf 3849: beos*)
! 3850: lt_cv_deplibs_check_method=pass_all
! 3851: ;;
1.1 parser 3852:
1.10 ! paf 3853: bsdi4*)
! 3854: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
! 3855: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 3856: lt_cv_file_magic_test_file=/shlib/libc.so
! 3857: ;;
1.1 parser 3858:
1.10 ! paf 3859: cygwin* | mingw* | pw32*)
! 3860: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 3861: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 3862: ;;
1.1 parser 3863:
1.10 ! paf 3864: darwin* | rhapsody*)
! 3865: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
! 3866: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 3867: case "$host_os" in
! 3868: rhapsody* | darwin1.[012])
! 3869: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
! 3870: ;;
! 3871: *) # Darwin 1.3 on
! 3872: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
! 3873: ;;
! 3874: esac
! 3875: ;;
1.1 parser 3876:
1.10 ! paf 3877: freebsd*)
! 3878: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 3879: case $host_cpu in
! 3880: i*86 )
! 3881: # Not sure whether the presence of OpenBSD here was a mistake.
! 3882: # Let's accept both of them until this is cleared up.
! 3883: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
! 3884: lt_cv_file_magic_cmd=/usr/bin/file
! 3885: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 3886: ;;
3887: esac
1.10 ! paf 3888: else
! 3889: lt_cv_deplibs_check_method=pass_all
1.1 parser 3890: fi
3891: ;;
3892:
1.10 ! paf 3893: gnu*)
! 3894: lt_cv_deplibs_check_method=pass_all
! 3895: ;;
! 3896:
! 3897: hpux10.20*|hpux11*)
! 3898: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
! 3899: lt_cv_file_magic_cmd=/usr/bin/file
! 3900: lt_cv_file_magic_test_file=/usr/lib/libc.sl
! 3901: ;;
1.1 parser 3902:
1.10 ! paf 3903: irix5* | irix6* | nonstopux*)
! 3904: case $host_os in
! 3905: irix5* | nonstopux*)
! 3906: # this will be overridden with pass_all, but let us keep it just in case
! 3907: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
! 3908: ;;
! 3909: *)
! 3910: case $LD in
! 3911: *-32|*"-32 ") libmagic=32-bit;;
! 3912: *-n32|*"-n32 ") libmagic=N32;;
! 3913: *-64|*"-64 ") libmagic=64-bit;;
! 3914: *) libmagic=never-match;;
! 3915: esac
! 3916: # this will be overridden with pass_all, but let us keep it just in case
! 3917: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
! 3918: ;;
! 3919: esac
! 3920: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
! 3921: lt_cv_deplibs_check_method=pass_all
! 3922: ;;
1.1 parser 3923:
1.10 ! paf 3924: # This must be Linux ELF.
! 3925: linux-gnu*)
! 3926: case $host_cpu in
! 3927: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
! 3928: lt_cv_deplibs_check_method=pass_all ;;
! 3929: *)
! 3930: # glibc up to 2.1.1 does not perform some relocations on ARM
! 3931: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
! 3932: esac
! 3933: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
! 3934: ;;
! 3935:
! 3936: netbsd*)
! 3937: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 3938: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
! 3939: else
! 3940: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
! 3941: fi
! 3942: ;;
! 3943:
! 3944: newos6*)
! 3945: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
! 3946: lt_cv_file_magic_cmd=/usr/bin/file
! 3947: lt_cv_file_magic_test_file=/usr/lib/libnls.so
! 3948: ;;
1.1 parser 3949:
1.10 ! paf 3950: openbsd*)
! 3951: lt_cv_file_magic_cmd=/usr/bin/file
! 3952: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 3953: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 3954: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
! 3955: else
! 3956: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.1 parser 3957: fi
3958: ;;
3959:
1.10 ! paf 3960: osf3* | osf4* | osf5*)
! 3961: # this will be overridden with pass_all, but let us keep it just in case
! 3962: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
! 3963: lt_cv_file_magic_test_file=/shlib/libc.so
! 3964: lt_cv_deplibs_check_method=pass_all
! 3965: ;;
! 3966:
! 3967: sco3.2v5*)
! 3968: lt_cv_deplibs_check_method=pass_all
! 3969: ;;
! 3970:
! 3971: solaris*)
! 3972: lt_cv_deplibs_check_method=pass_all
! 3973: lt_cv_file_magic_test_file=/lib/libc.so
! 3974: ;;
! 3975:
! 3976: sysv5uw[78]* | sysv4*uw2*)
! 3977: lt_cv_deplibs_check_method=pass_all
! 3978: ;;
! 3979:
! 3980: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 3981: case $host_vendor in
! 3982: motorola)
! 3983: 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]'
! 3984: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 3985: ;;
! 3986: ncr)
! 3987: lt_cv_deplibs_check_method=pass_all
! 3988: ;;
! 3989: sequent)
! 3990: lt_cv_file_magic_cmd='/bin/file'
! 3991: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 3992: ;;
! 3993: sni)
! 3994: lt_cv_file_magic_cmd='/bin/file'
! 3995: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 3996: lt_cv_file_magic_test_file=/lib/libc.so
! 3997: ;;
! 3998: siemens)
! 3999: lt_cv_deplibs_check_method=pass_all
! 4000: ;;
! 4001: esac
! 4002: ;;
! 4003: esac
! 4004:
! 4005: fi
! 4006: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 4007: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
! 4008: file_magic_cmd=$lt_cv_file_magic_cmd
! 4009: deplibs_check_method=$lt_cv_deplibs_check_method
! 4010:
! 4011:
! 4012:
! 4013:
! 4014:
! 4015:
! 4016:
! 4017:
! 4018: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 4019: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
! 4020: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
! 4021: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 4022: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4023: else
1.10 ! paf 4024:
! 4025: # These are sane defaults that work on at least a few old systems.
! 4026: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 4027:
! 4028: # Character class describing NM global symbol codes.
! 4029: symcode='[BCDEGRST]'
! 4030:
! 4031: # Regexp to match symbols that can be accessed directly from C.
! 4032: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 4033:
! 4034: # Transform the above into a raw symbol and a C symbol.
! 4035: symxfrm='\1 \2\3 \3'
! 4036:
! 4037: # Transform an extracted symbol line into a proper C declaration
! 4038: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
! 4039:
! 4040: # Transform an extracted symbol line into symbol name and symbol address
! 4041: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
! 4042:
! 4043: # Define system-specific variables.
! 4044: case $host_os in
! 4045: aix*)
! 4046: symcode='[BCDT]'
! 4047: ;;
! 4048: cygwin* | mingw* | pw32*)
! 4049: symcode='[ABCDGISTW]'
! 4050: ;;
! 4051: hpux*) # Its linker distinguishes data from code symbols
! 4052: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 4053: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
! 4054: ;;
! 4055: irix* | nonstopux*)
! 4056: symcode='[BCDEGRST]'
! 4057: ;;
! 4058: osf*)
! 4059: symcode='[BCDEGQRST]'
! 4060: ;;
! 4061: solaris* | sysv5*)
! 4062: symcode='[BDT]'
! 4063: ;;
! 4064: sysv4)
! 4065: symcode='[DFNSTU]'
! 4066: ;;
! 4067: esac
! 4068:
! 4069: # Handle CRLF in mingw tool chain
! 4070: opt_cr=
! 4071: case $host_os in
! 4072: mingw*)
! 4073: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 4074: ;;
! 4075: esac
! 4076:
! 4077: # If we're using GNU nm, then use its standard symbol codes.
! 4078: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
! 4079: symcode='[ABCDGISTW]'
! 4080: fi
! 4081:
! 4082: # Try without a prefix undercore, then with it.
! 4083: for ac_symprfx in "" "_"; do
! 4084:
! 4085: # Write the raw and C identifiers.
! 4086: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
! 4087:
! 4088: # Check to see that the pipe works correctly.
! 4089: pipe_works=no
! 4090: rm -f conftest*
! 4091: cat > conftest.$ac_ext <<EOF
! 4092: #ifdef __cplusplus
! 4093: extern "C" {
! 4094: #endif
! 4095: char nm_test_var;
! 4096: void nm_test_func(){}
! 4097: #ifdef __cplusplus
! 4098: }
! 4099: #endif
! 4100: int main(){nm_test_var='a';nm_test_func();return(0);}
! 4101: EOF
! 4102:
! 4103: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4104: (eval $ac_compile) 2>&5
! 4105: ac_status=$?
! 4106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4107: (exit $ac_status); }; then
! 4108: # Now try to grab the symbols.
! 4109: nlist=conftest.nm
! 4110: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 4111: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
! 4112: ac_status=$?
! 4113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4114: (exit $ac_status); } && test -s "$nlist"; then
! 4115: # Try sorting and uniquifying the output.
! 4116: if sort "$nlist" | uniq > "$nlist"T; then
! 4117: mv -f "$nlist"T "$nlist"
! 4118: else
! 4119: rm -f "$nlist"T
! 4120: fi
! 4121:
! 4122: # Make sure that we snagged all the symbols we need.
! 4123: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
! 4124: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
! 4125: cat <<EOF > conftest.$ac_ext
! 4126: #ifdef __cplusplus
! 4127: extern "C" {
! 4128: #endif
! 4129:
! 4130: EOF
! 4131: # Now generate the symbol file.
! 4132: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
! 4133:
! 4134: cat <<EOF >> conftest.$ac_ext
! 4135: #if defined (__STDC__) && __STDC__
! 4136: # define lt_ptr void *
! 4137: #else
! 4138: # define lt_ptr char *
! 4139: # define const
! 4140: #endif
! 4141:
! 4142: /* The mapping between symbol names and symbols. */
! 4143: const struct {
! 4144: const char *name;
! 4145: lt_ptr address;
! 4146: }
! 4147: lt_preloaded_symbols[] =
! 4148: {
! 4149: EOF
! 4150: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
! 4151: cat <<\EOF >> conftest.$ac_ext
! 4152: {0, (lt_ptr) 0}
! 4153: };
! 4154:
! 4155: #ifdef __cplusplus
! 4156: }
! 4157: #endif
! 4158: EOF
! 4159: # Now try linking the two files.
! 4160: mv conftest.$ac_objext conftstm.$ac_objext
! 4161: save_LIBS="$LIBS"
! 4162: save_CFLAGS="$CFLAGS"
! 4163: LIBS="conftstm.$ac_objext"
! 4164: CFLAGS="$CFLAGS$no_builtin_flag"
! 4165: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4166: (eval $ac_link) 2>&5
! 4167: ac_status=$?
! 4168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4169: (exit $ac_status); } && test -s conftest$ac_exeext; then
! 4170: pipe_works=yes
! 4171: fi
! 4172: LIBS="$save_LIBS"
! 4173: CFLAGS="$save_CFLAGS"
! 4174: else
! 4175: echo "cannot find nm_test_func in $nlist" >&5
! 4176: fi
! 4177: else
! 4178: echo "cannot find nm_test_var in $nlist" >&5
! 4179: fi
! 4180: else
! 4181: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.6 paf 4182: fi
1.10 ! paf 4183: else
! 4184: echo "$progname: failed program was:" >&5
! 4185: cat conftest.$ac_ext >&5
! 4186: fi
! 4187: rm -f conftest* conftst*
! 4188:
! 4189: # Do not use the global_symbol_pipe unless it works.
! 4190: if test "$pipe_works" = yes; then
! 4191: break
! 4192: else
! 4193: lt_cv_sys_global_symbol_pipe=
! 4194: fi
! 4195: done
! 4196:
1.6 paf 4197: fi
1.10 ! paf 4198:
! 4199: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
! 4200: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 4201: global_symbol_to_cdecl=
! 4202: global_symbol_to_c_name_address=
! 4203: else
! 4204: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
! 4205: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1.6 paf 4206: fi
1.10 ! paf 4207: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
! 4208: then
! 4209: echo "$as_me:$LINENO: result: failed" >&5
! 4210: echo "${ECHO_T}failed" >&6
1.6 paf 4211: else
1.10 ! paf 4212: echo "$as_me:$LINENO: result: ok" >&5
! 4213: echo "${ECHO_T}ok" >&6
1.6 paf 4214: fi
4215:
4216:
1.10 ! paf 4217: ac_ext=cc
! 4218: ac_cpp='$CXXCPP $CPPFLAGS'
! 4219: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4220: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4221: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4222: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 4223: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
! 4224: if test -z "$CXXCPP"; then
! 4225: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 4226: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4227: else
1.10 ! paf 4228: # Double quotes because CXXCPP needs to be expanded
! 4229: for CXXCPP in "$CXX -E" "/lib/cpp"
! 4230: do
! 4231: ac_preproc_ok=false
! 4232: for ac_cxx_preproc_warn_flag in '' yes
! 4233: do
! 4234: # Use a header file that comes with gcc, so configuring glibc
! 4235: # with a fresh cross-compiler works.
! 4236: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4237: # <limits.h> exists even on freestanding compilers.
! 4238: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4239: # not just through cpp. "Syntax error" is here to catch this case.
! 4240: cat >conftest.$ac_ext <<_ACEOF
! 4241: #line $LINENO "configure"
! 4242: /* confdefs.h. */
! 4243: _ACEOF
! 4244: cat confdefs.h >>conftest.$ac_ext
! 4245: cat >>conftest.$ac_ext <<_ACEOF
! 4246: /* end confdefs.h. */
! 4247: #ifdef __STDC__
! 4248: # include <limits.h>
! 4249: #else
! 4250: # include <assert.h>
! 4251: #endif
! 4252: Syntax error
! 4253: _ACEOF
! 4254: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4255: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4256: ac_status=$?
! 4257: grep -v '^ *+' conftest.er1 >conftest.err
! 4258: rm -f conftest.er1
! 4259: cat conftest.err >&5
! 4260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4261: (exit $ac_status); } >/dev/null; then
! 4262: if test -s conftest.err; then
! 4263: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4264: else
! 4265: ac_cpp_err=
! 4266: fi
1.6 paf 4267: else
1.10 ! paf 4268: ac_cpp_err=yes
1.6 paf 4269: fi
1.10 ! paf 4270: if test -z "$ac_cpp_err"; then
! 4271: :
! 4272: else
! 4273: echo "$as_me: failed program was:" >&5
! 4274: sed 's/^/| /' conftest.$ac_ext >&5
! 4275:
! 4276: # Broken: fails on valid input.
! 4277: continue
1.6 paf 4278: fi
1.10 ! paf 4279: rm -f conftest.err conftest.$ac_ext
! 4280:
! 4281: # OK, works on sane cases. Now check whether non-existent headers
! 4282: # can be detected and how.
! 4283: cat >conftest.$ac_ext <<_ACEOF
! 4284: #line $LINENO "configure"
! 4285: /* confdefs.h. */
! 4286: _ACEOF
! 4287: cat confdefs.h >>conftest.$ac_ext
! 4288: cat >>conftest.$ac_ext <<_ACEOF
! 4289: /* end confdefs.h. */
! 4290: #include <ac_nonexistent.h>
! 4291: _ACEOF
! 4292: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4293: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4294: ac_status=$?
! 4295: grep -v '^ *+' conftest.er1 >conftest.err
! 4296: rm -f conftest.er1
! 4297: cat conftest.err >&5
! 4298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4299: (exit $ac_status); } >/dev/null; then
! 4300: if test -s conftest.err; then
! 4301: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4302: else
! 4303: ac_cpp_err=
! 4304: fi
1.6 paf 4305: else
1.10 ! paf 4306: ac_cpp_err=yes
1.6 paf 4307: fi
1.10 ! paf 4308: if test -z "$ac_cpp_err"; then
! 4309: # Broken: success on invalid input.
! 4310: continue
! 4311: else
! 4312: echo "$as_me: failed program was:" >&5
! 4313: sed 's/^/| /' conftest.$ac_ext >&5
1.6 paf 4314:
1.10 ! paf 4315: # Passes both tests.
! 4316: ac_preproc_ok=:
! 4317: break
1.6 paf 4318: fi
1.10 ! paf 4319: rm -f conftest.err conftest.$ac_ext
! 4320:
! 4321: done
! 4322: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4323: rm -f conftest.err conftest.$ac_ext
! 4324: if $ac_preproc_ok; then
! 4325: break
1.6 paf 4326: fi
4327:
1.10 ! paf 4328: done
! 4329: ac_cv_prog_CXXCPP=$CXXCPP
! 4330:
! 4331: fi
! 4332: CXXCPP=$ac_cv_prog_CXXCPP
1.6 paf 4333: else
1.10 ! paf 4334: ac_cv_prog_CXXCPP=$CXXCPP
! 4335: fi
! 4336: echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 4337: echo "${ECHO_T}$CXXCPP" >&6
! 4338: ac_preproc_ok=false
! 4339: for ac_cxx_preproc_warn_flag in '' yes
! 4340: do
! 4341: # Use a header file that comes with gcc, so configuring glibc
! 4342: # with a fresh cross-compiler works.
! 4343: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4344: # <limits.h> exists even on freestanding compilers.
! 4345: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4346: # not just through cpp. "Syntax error" is here to catch this case.
! 4347: cat >conftest.$ac_ext <<_ACEOF
! 4348: #line $LINENO "configure"
! 4349: /* confdefs.h. */
! 4350: _ACEOF
! 4351: cat confdefs.h >>conftest.$ac_ext
! 4352: cat >>conftest.$ac_ext <<_ACEOF
! 4353: /* end confdefs.h. */
! 4354: #ifdef __STDC__
! 4355: # include <limits.h>
! 4356: #else
! 4357: # include <assert.h>
! 4358: #endif
! 4359: Syntax error
! 4360: _ACEOF
! 4361: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4362: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4363: ac_status=$?
! 4364: grep -v '^ *+' conftest.er1 >conftest.err
! 4365: rm -f conftest.er1
! 4366: cat conftest.err >&5
! 4367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4368: (exit $ac_status); } >/dev/null; then
! 4369: if test -s conftest.err; then
! 4370: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4371: else
! 4372: ac_cpp_err=
! 4373: fi
1.6 paf 4374: else
1.10 ! paf 4375: ac_cpp_err=yes
1.6 paf 4376: fi
1.10 ! paf 4377: if test -z "$ac_cpp_err"; then
! 4378: :
1.6 paf 4379: else
1.10 ! paf 4380: echo "$as_me: failed program was:" >&5
! 4381: sed 's/^/| /' conftest.$ac_ext >&5
! 4382:
! 4383: # Broken: fails on valid input.
! 4384: continue
1.6 paf 4385: fi
1.10 ! paf 4386: rm -f conftest.err conftest.$ac_ext
1.6 paf 4387:
1.10 ! paf 4388: # OK, works on sane cases. Now check whether non-existent headers
! 4389: # can be detected and how.
! 4390: cat >conftest.$ac_ext <<_ACEOF
! 4391: #line $LINENO "configure"
! 4392: /* confdefs.h. */
! 4393: _ACEOF
! 4394: cat confdefs.h >>conftest.$ac_ext
! 4395: cat >>conftest.$ac_ext <<_ACEOF
! 4396: /* end confdefs.h. */
! 4397: #include <ac_nonexistent.h>
! 4398: _ACEOF
! 4399: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4400: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4401: ac_status=$?
! 4402: grep -v '^ *+' conftest.er1 >conftest.err
! 4403: rm -f conftest.er1
! 4404: cat conftest.err >&5
! 4405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4406: (exit $ac_status); } >/dev/null; then
! 4407: if test -s conftest.err; then
! 4408: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4409: else
! 4410: ac_cpp_err=
! 4411: fi
1.6 paf 4412: else
1.10 ! paf 4413: ac_cpp_err=yes
1.6 paf 4414: fi
1.10 ! paf 4415: if test -z "$ac_cpp_err"; then
! 4416: # Broken: success on invalid input.
! 4417: continue
1.6 paf 4418: else
1.10 ! paf 4419: echo "$as_me: failed program was:" >&5
! 4420: sed 's/^/| /' conftest.$ac_ext >&5
! 4421:
! 4422: # Passes both tests.
! 4423: ac_preproc_ok=:
! 4424: break
1.6 paf 4425: fi
1.10 ! paf 4426: rm -f conftest.err conftest.$ac_ext
1.6 paf 4427:
1.10 ! paf 4428: done
! 4429: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4430: rm -f conftest.err conftest.$ac_ext
! 4431: if $ac_preproc_ok; then
! 4432: :
1.6 paf 4433: else
1.10 ! paf 4434: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 4435: See \`config.log' for more details." >&5
! 4436: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 4437: See \`config.log' for more details." >&2;}
! 4438: { (exit 1); exit 1; }; }
1.6 paf 4439: fi
4440:
1.10 ! paf 4441: ac_ext=cc
! 4442: ac_cpp='$CXXCPP $CPPFLAGS'
! 4443: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4444: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4445: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4446:
! 4447:
! 4448: echo "$as_me:$LINENO: checking for egrep" >&5
! 4449: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
! 4450: if test "${ac_cv_prog_egrep+set}" = set; then
! 4451: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4452: else
! 4453: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
! 4454: then ac_cv_prog_egrep='grep -E'
! 4455: else ac_cv_prog_egrep='egrep'
1.6 paf 4456: fi
4457: fi
1.10 ! paf 4458: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
! 4459: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
! 4460: EGREP=$ac_cv_prog_egrep
! 4461:
! 4462:
! 4463: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 4464: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 4465: if test "${ac_cv_header_stdc+set}" = set; then
! 4466: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4467: else
! 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: #include <stdlib.h>
! 4476: #include <stdarg.h>
! 4477: #include <string.h>
! 4478: #include <float.h>
! 4479:
! 4480: int
! 4481: main ()
! 4482: {
! 4483:
! 4484: ;
! 4485: return 0;
! 4486: }
! 4487: _ACEOF
! 4488: rm -f conftest.$ac_objext
! 4489: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4490: (eval $ac_compile) 2>&5
! 4491: ac_status=$?
! 4492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4493: (exit $ac_status); } &&
! 4494: { ac_try='test -s conftest.$ac_objext'
! 4495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4496: (eval $ac_try) 2>&5
! 4497: ac_status=$?
! 4498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4499: (exit $ac_status); }; }; then
! 4500: ac_cv_header_stdc=yes
1.6 paf 4501: else
1.10 ! paf 4502: echo "$as_me: failed program was:" >&5
! 4503: sed 's/^/| /' conftest.$ac_ext >&5
! 4504:
! 4505: ac_cv_header_stdc=no
1.6 paf 4506: fi
1.10 ! paf 4507: rm -f conftest.$ac_objext conftest.$ac_ext
1.6 paf 4508:
1.10 ! paf 4509: if test $ac_cv_header_stdc = yes; then
! 4510: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 4511: cat >conftest.$ac_ext <<_ACEOF
! 4512: #line $LINENO "configure"
! 4513: /* confdefs.h. */
! 4514: _ACEOF
! 4515: cat confdefs.h >>conftest.$ac_ext
! 4516: cat >>conftest.$ac_ext <<_ACEOF
! 4517: /* end confdefs.h. */
! 4518: #include <string.h>
1.6 paf 4519:
1.10 ! paf 4520: _ACEOF
! 4521: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4522: $EGREP "memchr" >/dev/null 2>&1; then
! 4523: :
1.6 paf 4524: else
1.10 ! paf 4525: ac_cv_header_stdc=no
1.6 paf 4526: fi
1.10 ! paf 4527: rm -f conftest*
! 4528:
1.6 paf 4529: fi
1.10 ! paf 4530:
! 4531: if test $ac_cv_header_stdc = yes; then
! 4532: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 4533: cat >conftest.$ac_ext <<_ACEOF
! 4534: #line $LINENO "configure"
! 4535: /* confdefs.h. */
! 4536: _ACEOF
! 4537: cat confdefs.h >>conftest.$ac_ext
! 4538: cat >>conftest.$ac_ext <<_ACEOF
! 4539: /* end confdefs.h. */
! 4540: #include <stdlib.h>
! 4541:
! 4542: _ACEOF
! 4543: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4544: $EGREP "free" >/dev/null 2>&1; then
! 4545: :
1.6 paf 4546: else
1.10 ! paf 4547: ac_cv_header_stdc=no
1.6 paf 4548: fi
1.10 ! paf 4549: rm -f conftest*
1.6 paf 4550:
4551: fi
4552:
1.10 ! paf 4553: if test $ac_cv_header_stdc = yes; then
! 4554: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 4555: if test "$cross_compiling" = yes; then
! 4556: :
! 4557: else
! 4558: cat >conftest.$ac_ext <<_ACEOF
! 4559: #line $LINENO "configure"
! 4560: /* confdefs.h. */
! 4561: _ACEOF
! 4562: cat confdefs.h >>conftest.$ac_ext
! 4563: cat >>conftest.$ac_ext <<_ACEOF
! 4564: /* end confdefs.h. */
! 4565: #include <ctype.h>
! 4566: #if ((' ' & 0x0FF) == 0x020)
! 4567: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 4568: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 4569: #else
! 4570: # define ISLOWER(c) \
! 4571: (('a' <= (c) && (c) <= 'i') \
! 4572: || ('j' <= (c) && (c) <= 'r') \
! 4573: || ('s' <= (c) && (c) <= 'z'))
! 4574: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 4575: #endif
1.1 parser 4576:
1.10 ! paf 4577: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 4578: int
! 4579: main ()
! 4580: {
! 4581: int i;
! 4582: for (i = 0; i < 256; i++)
! 4583: if (XOR (islower (i), ISLOWER (i))
! 4584: || toupper (i) != TOUPPER (i))
! 4585: exit(2);
! 4586: exit (0);
! 4587: }
! 4588: _ACEOF
! 4589: rm -f conftest$ac_exeext
! 4590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4591: (eval $ac_link) 2>&5
! 4592: ac_status=$?
! 4593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4594: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 4595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4596: (eval $ac_try) 2>&5
! 4597: ac_status=$?
! 4598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4599: (exit $ac_status); }; }; then
1.1 parser 4600: :
4601: else
1.10 ! paf 4602: echo "$as_me: program exited with status $ac_status" >&5
! 4603: echo "$as_me: failed program was:" >&5
! 4604: sed 's/^/| /' conftest.$ac_ext >&5
! 4605:
! 4606: ( exit $ac_status )
! 4607: ac_cv_header_stdc=no
! 4608: fi
! 4609: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 4610: fi
! 4611: fi
1.1 parser 4612: fi
1.10 ! paf 4613: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 4614: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 4615: if test $ac_cv_header_stdc = yes; then
! 4616:
! 4617: cat >>confdefs.h <<\_ACEOF
! 4618: #define STDC_HEADERS 1
! 4619: _ACEOF
1.1 parser 4620:
1.10 ! paf 4621: fi
1.1 parser 4622:
1.10 ! paf 4623: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 parser 4624:
4625:
4626:
4627:
4628:
4629:
4630:
4631:
4632:
1.10 ! paf 4633: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 4634: inttypes.h stdint.h unistd.h
! 4635: do
! 4636: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4637: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4638: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4639: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4640: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4641: else
! 4642: cat >conftest.$ac_ext <<_ACEOF
! 4643: #line $LINENO "configure"
! 4644: /* confdefs.h. */
! 4645: _ACEOF
! 4646: cat confdefs.h >>conftest.$ac_ext
! 4647: cat >>conftest.$ac_ext <<_ACEOF
! 4648: /* end confdefs.h. */
! 4649: $ac_includes_default
! 4650:
! 4651: #include <$ac_header>
! 4652: _ACEOF
! 4653: rm -f conftest.$ac_objext
! 4654: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4655: (eval $ac_compile) 2>&5
! 4656: ac_status=$?
! 4657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4658: (exit $ac_status); } &&
! 4659: { ac_try='test -s conftest.$ac_objext'
! 4660: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4661: (eval $ac_try) 2>&5
! 4662: ac_status=$?
! 4663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4664: (exit $ac_status); }; }; then
! 4665: eval "$as_ac_Header=yes"
! 4666: else
! 4667: echo "$as_me: failed program was:" >&5
! 4668: sed 's/^/| /' conftest.$ac_ext >&5
! 4669:
! 4670: eval "$as_ac_Header=no"
! 4671: fi
! 4672: rm -f conftest.$ac_objext conftest.$ac_ext
! 4673: fi
! 4674: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4675: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4676: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4677: cat >>confdefs.h <<_ACEOF
! 4678: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4679: _ACEOF
1.1 parser 4680:
1.10 ! paf 4681: fi
! 4682:
! 4683: done
! 4684:
! 4685:
! 4686:
! 4687: for ac_header in dlfcn.h
! 4688: do
! 4689: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4690: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4691: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4692: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4693: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4694: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4695: fi
! 4696: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4697: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4698: else
! 4699: # Is the header compilable?
! 4700: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4701: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 4702: cat >conftest.$ac_ext <<_ACEOF
! 4703: #line $LINENO "configure"
! 4704: /* confdefs.h. */
! 4705: _ACEOF
! 4706: cat confdefs.h >>conftest.$ac_ext
! 4707: cat >>conftest.$ac_ext <<_ACEOF
! 4708: /* end confdefs.h. */
! 4709: $ac_includes_default
! 4710: #include <$ac_header>
! 4711: _ACEOF
! 4712: rm -f conftest.$ac_objext
! 4713: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4714: (eval $ac_compile) 2>&5
! 4715: ac_status=$?
! 4716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4717: (exit $ac_status); } &&
! 4718: { ac_try='test -s conftest.$ac_objext'
! 4719: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4720: (eval $ac_try) 2>&5
! 4721: ac_status=$?
! 4722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4723: (exit $ac_status); }; }; then
! 4724: ac_header_compiler=yes
! 4725: else
! 4726: echo "$as_me: failed program was:" >&5
! 4727: sed 's/^/| /' conftest.$ac_ext >&5
! 4728:
! 4729: ac_header_compiler=no
! 4730: fi
! 4731: rm -f conftest.$ac_objext conftest.$ac_ext
! 4732: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4733: echo "${ECHO_T}$ac_header_compiler" >&6
! 4734:
! 4735: # Is the header present?
! 4736: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4737: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 4738: cat >conftest.$ac_ext <<_ACEOF
! 4739: #line $LINENO "configure"
! 4740: /* confdefs.h. */
! 4741: _ACEOF
! 4742: cat confdefs.h >>conftest.$ac_ext
! 4743: cat >>conftest.$ac_ext <<_ACEOF
! 4744: /* end confdefs.h. */
! 4745: #include <$ac_header>
! 4746: _ACEOF
! 4747: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4748: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4749: ac_status=$?
! 4750: grep -v '^ *+' conftest.er1 >conftest.err
! 4751: rm -f conftest.er1
! 4752: cat conftest.err >&5
! 4753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4754: (exit $ac_status); } >/dev/null; then
! 4755: if test -s conftest.err; then
! 4756: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4757: else
! 4758: ac_cpp_err=
! 4759: fi
! 4760: else
! 4761: ac_cpp_err=yes
! 4762: fi
! 4763: if test -z "$ac_cpp_err"; then
! 4764: ac_header_preproc=yes
! 4765: else
! 4766: echo "$as_me: failed program was:" >&5
! 4767: sed 's/^/| /' conftest.$ac_ext >&5
! 4768:
! 4769: ac_header_preproc=no
! 4770: fi
! 4771: rm -f conftest.err conftest.$ac_ext
! 4772: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4773: echo "${ECHO_T}$ac_header_preproc" >&6
! 4774:
! 4775: # So? What about this header?
! 4776: case $ac_header_compiler:$ac_header_preproc in
! 4777: yes:no )
! 4778: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4779: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4780: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4781: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4782: (
! 4783: cat <<\_ASBOX
! 4784: ## ------------------------------------ ##
! 4785: ## Report this to bug-autoconf@gnu.org. ##
! 4786: ## ------------------------------------ ##
! 4787: _ASBOX
! 4788: ) |
! 4789: sed "s/^/$as_me: WARNING: /" >&2
! 4790: ;;
! 4791: no:yes )
! 4792: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4793: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4794: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4795: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4796: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4797: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4798: (
! 4799: cat <<\_ASBOX
! 4800: ## ------------------------------------ ##
! 4801: ## Report this to bug-autoconf@gnu.org. ##
! 4802: ## ------------------------------------ ##
! 4803: _ASBOX
! 4804: ) |
! 4805: sed "s/^/$as_me: WARNING: /" >&2
! 4806: ;;
! 4807: esac
! 4808: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4809: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4810: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4811: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 4812: else
1.10 ! paf 4813: eval "$as_ac_Header=$ac_header_preproc"
! 4814: fi
! 4815: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4816: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4817:
! 4818: fi
! 4819: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4820: cat >>confdefs.h <<_ACEOF
! 4821: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4822: _ACEOF
! 4823:
! 4824: fi
! 4825:
! 4826: done
! 4827:
! 4828:
! 4829:
! 4830:
! 4831:
! 4832:
! 4833: # Only perform the check for file, if the check method requires it
! 4834: case $deplibs_check_method in
! 4835: file_magic*)
! 4836: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 4837: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 4838: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 4839: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 4840: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4841: else
! 4842: case $MAGIC_CMD in
! 4843: /*)
! 4844: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 4845: ;;
! 4846: ?:/*)
! 4847: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
! 4848: ;;
! 4849: *)
! 4850: ac_save_MAGIC_CMD="$MAGIC_CMD"
! 4851: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 4852: ac_dummy="/usr/bin:$PATH"
! 4853: for ac_dir in $ac_dummy; do
! 4854: test -z "$ac_dir" && ac_dir=.
! 4855: if test -f $ac_dir/${ac_tool_prefix}file; then
! 4856: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 4857: if test -n "$file_magic_test_file"; then
! 4858: case $deplibs_check_method in
! 4859: "file_magic "*)
! 4860: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 4861: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4862: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 4863: egrep "$file_magic_regex" > /dev/null; then
! 4864: :
! 4865: else
! 4866: cat <<EOF 1>&2
! 4867:
! 4868: *** Warning: the command libtool uses to detect shared libraries,
! 4869: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 4870: *** The result is that libtool may fail to recognize shared libraries
! 4871: *** as such. This will affect the creation of libtool libraries that
! 4872: *** depend on shared libraries, but programs linked with such libtool
! 4873: *** libraries will work regardless of this problem. Nevertheless, you
! 4874: *** may want to report the problem to your system manager and/or to
! 4875: *** bug-libtool@gnu.org
! 4876:
! 4877: EOF
! 4878: fi ;;
! 4879: esac
! 4880: fi
! 4881: break
! 4882: fi
! 4883: done
! 4884: IFS="$ac_save_ifs"
! 4885: MAGIC_CMD="$ac_save_MAGIC_CMD"
! 4886: ;;
! 4887: esac
! 4888: fi
! 4889:
! 4890: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4891: if test -n "$MAGIC_CMD"; then
! 4892: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 4893: echo "${ECHO_T}$MAGIC_CMD" >&6
! 4894: else
! 4895: echo "$as_me:$LINENO: result: no" >&5
! 4896: echo "${ECHO_T}no" >&6
! 4897: fi
! 4898:
! 4899: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 4900: if test -n "$ac_tool_prefix"; then
! 4901: echo "$as_me:$LINENO: checking for file" >&5
! 4902: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 4903: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 4904: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4905: else
! 4906: case $MAGIC_CMD in
! 4907: /*)
! 4908: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 4909: ;;
! 4910: ?:/*)
! 4911: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
! 4912: ;;
! 4913: *)
! 4914: ac_save_MAGIC_CMD="$MAGIC_CMD"
! 4915: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 4916: ac_dummy="/usr/bin:$PATH"
! 4917: for ac_dir in $ac_dummy; do
! 4918: test -z "$ac_dir" && ac_dir=.
! 4919: if test -f $ac_dir/file; then
! 4920: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 4921: if test -n "$file_magic_test_file"; then
! 4922: case $deplibs_check_method in
! 4923: "file_magic "*)
! 4924: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 4925: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4926: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 4927: egrep "$file_magic_regex" > /dev/null; then
! 4928: :
! 4929: else
! 4930: cat <<EOF 1>&2
! 4931:
! 4932: *** Warning: the command libtool uses to detect shared libraries,
! 4933: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 4934: *** The result is that libtool may fail to recognize shared libraries
! 4935: *** as such. This will affect the creation of libtool libraries that
! 4936: *** depend on shared libraries, but programs linked with such libtool
! 4937: *** libraries will work regardless of this problem. Nevertheless, you
! 4938: *** may want to report the problem to your system manager and/or to
! 4939: *** bug-libtool@gnu.org
! 4940:
1.1 parser 4941: EOF
1.10 ! paf 4942: fi ;;
! 4943: esac
! 4944: fi
! 4945: break
! 4946: fi
! 4947: done
! 4948: IFS="$ac_save_ifs"
! 4949: MAGIC_CMD="$ac_save_MAGIC_CMD"
! 4950: ;;
! 4951: esac
! 4952: fi
! 4953:
! 4954: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4955: if test -n "$MAGIC_CMD"; then
! 4956: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 4957: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 parser 4958: else
1.10 ! paf 4959: echo "$as_me:$LINENO: result: no" >&5
! 4960: echo "${ECHO_T}no" >&6
1.1 parser 4961: fi
1.10 ! paf 4962:
! 4963: else
! 4964: MAGIC_CMD=:
! 4965: fi
1.1 parser 4966: fi
4967:
1.10 ! paf 4968: fi
! 4969: ;;
! 4970: esac
1.1 parser 4971:
1.10 ! paf 4972: if test -n "$ac_tool_prefix"; then
! 4973: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 4974: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 4975: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4976: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4977: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 4978: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4979: else
! 4980: if test -n "$RANLIB"; then
! 4981: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 4982: else
! 4983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4984: for as_dir in $PATH
1.1 parser 4985: do
1.10 ! paf 4986: IFS=$as_save_IFS
! 4987: test -z "$as_dir" && as_dir=.
! 4988: for ac_exec_ext in '' $ac_executable_extensions; do
! 4989: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4990: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 4991: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4992: break 2
! 4993: fi
! 4994: done
! 4995: done
! 4996:
! 4997: fi
! 4998: fi
! 4999: RANLIB=$ac_cv_prog_RANLIB
! 5000: if test -n "$RANLIB"; then
! 5001: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 5002: echo "${ECHO_T}$RANLIB" >&6
! 5003: else
! 5004: echo "$as_me:$LINENO: result: no" >&5
! 5005: echo "${ECHO_T}no" >&6
! 5006: fi
! 5007:
! 5008: fi
! 5009: if test -z "$ac_cv_prog_RANLIB"; then
! 5010: ac_ct_RANLIB=$RANLIB
! 5011: # Extract the first word of "ranlib", so it can be a program name with args.
! 5012: set dummy ranlib; ac_word=$2
! 5013: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5014: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5015: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 5016: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5017: else
1.10 ! paf 5018: if test -n "$ac_ct_RANLIB"; then
! 5019: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.1 parser 5020: else
1.10 ! paf 5021: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5022: for as_dir in $PATH
! 5023: do
! 5024: IFS=$as_save_IFS
! 5025: test -z "$as_dir" && as_dir=.
! 5026: for ac_exec_ext in '' $ac_executable_extensions; do
! 5027: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5028: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 5029: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5030: break 2
! 5031: fi
! 5032: done
! 5033: done
! 5034:
! 5035: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
! 5036: fi
1.1 parser 5037: fi
1.10 ! paf 5038: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 5039: if test -n "$ac_ct_RANLIB"; then
! 5040: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 5041: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 5042: else
! 5043: echo "$as_me:$LINENO: result: no" >&5
! 5044: echo "${ECHO_T}no" >&6
1.1 parser 5045: fi
1.10 ! paf 5046:
! 5047: RANLIB=$ac_ct_RANLIB
1.1 parser 5048: else
1.10 ! paf 5049: RANLIB="$ac_cv_prog_RANLIB"
1.1 parser 5050: fi
1.10 ! paf 5051:
! 5052: if test -n "$ac_tool_prefix"; then
! 5053: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 5054: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 5055: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5056: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5057: if test "${ac_cv_prog_STRIP+set}" = set; then
! 5058: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5059: else
! 5060: if test -n "$STRIP"; then
! 5061: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 5062: else
! 5063: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5064: for as_dir in $PATH
! 5065: do
! 5066: IFS=$as_save_IFS
! 5067: test -z "$as_dir" && as_dir=.
! 5068: for ac_exec_ext in '' $ac_executable_extensions; do
! 5069: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5070: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 5071: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5072: break 2
! 5073: fi
! 5074: done
1.1 parser 5075: done
5076:
1.10 ! paf 5077: fi
! 5078: fi
! 5079: STRIP=$ac_cv_prog_STRIP
! 5080: if test -n "$STRIP"; then
! 5081: echo "$as_me:$LINENO: result: $STRIP" >&5
! 5082: echo "${ECHO_T}$STRIP" >&6
! 5083: else
! 5084: echo "$as_me:$LINENO: result: no" >&5
! 5085: echo "${ECHO_T}no" >&6
! 5086: fi
! 5087:
! 5088: fi
! 5089: if test -z "$ac_cv_prog_STRIP"; then
! 5090: ac_ct_STRIP=$STRIP
! 5091: # Extract the first word of "strip", so it can be a program name with args.
! 5092: set dummy strip; ac_word=$2
! 5093: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5094: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5095: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 5096: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5097: else
! 5098: if test -n "$ac_ct_STRIP"; then
! 5099: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 5100: else
! 5101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5102: for as_dir in $PATH
! 5103: do
! 5104: IFS=$as_save_IFS
! 5105: test -z "$as_dir" && as_dir=.
! 5106: for ac_exec_ext in '' $ac_executable_extensions; do
! 5107: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5108: ac_cv_prog_ac_ct_STRIP="strip"
! 5109: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5110: break 2
! 5111: fi
! 5112: done
! 5113: done
1.1 parser 5114:
1.10 ! paf 5115: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 5116: fi
! 5117: fi
! 5118: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 5119: if test -n "$ac_ct_STRIP"; then
! 5120: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 5121: echo "${ECHO_T}$ac_ct_STRIP" >&6
! 5122: else
! 5123: echo "$as_me:$LINENO: result: no" >&5
! 5124: echo "${ECHO_T}no" >&6
! 5125: fi
1.1 parser 5126:
1.10 ! paf 5127: STRIP=$ac_ct_STRIP
1.1 parser 5128: else
1.10 ! paf 5129: STRIP="$ac_cv_prog_STRIP"
! 5130: fi
! 5131:
! 5132:
! 5133: enable_dlopen=no
! 5134: enable_win32_dll=no
! 5135:
! 5136: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 5137: if test "${enable_libtool_lock+set}" = set; then
! 5138: enableval="$enable_libtool_lock"
! 5139:
! 5140: fi;
! 5141: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 5142:
! 5143: # Some flags need to be propagated to the compiler or linker for good
! 5144: # libtool support.
! 5145: case $host in
! 5146: *-*-irix6*)
! 5147: # Find out which ABI we are using.
! 5148: echo '#line 5148 "configure"' > conftest.$ac_ext
! 5149: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5150: (eval $ac_compile) 2>&5
! 5151: ac_status=$?
! 5152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5153: (exit $ac_status); }; then
! 5154: case `/usr/bin/file conftest.$ac_objext` in
! 5155: *32-bit*)
! 5156: LD="${LD-ld} -32"
! 5157: ;;
! 5158: *N32*)
! 5159: LD="${LD-ld} -n32"
! 5160: ;;
! 5161: *64-bit*)
! 5162: LD="${LD-ld} -64"
! 5163: ;;
! 5164: esac
! 5165: fi
1.1 parser 5166: rm -rf conftest*
1.10 ! paf 5167: ;;
! 5168:
! 5169: *-*-sco3.2v5*)
! 5170: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 5171: SAVE_CFLAGS="$CFLAGS"
! 5172: CFLAGS="$CFLAGS -belf"
! 5173: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 5174: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 5175: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 5176: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5177: else
5178:
1.10 ! paf 5179:
! 5180: ac_ext=c
! 5181: ac_cpp='$CPP $CPPFLAGS'
! 5182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5184: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5185:
! 5186: cat >conftest.$ac_ext <<_ACEOF
! 5187: #line $LINENO "configure"
! 5188: /* confdefs.h. */
! 5189: _ACEOF
! 5190: cat confdefs.h >>conftest.$ac_ext
! 5191: cat >>conftest.$ac_ext <<_ACEOF
! 5192: /* end confdefs.h. */
! 5193:
! 5194: int
! 5195: main ()
! 5196: {
! 5197:
! 5198: ;
! 5199: return 0;
! 5200: }
! 5201: _ACEOF
! 5202: rm -f conftest.$ac_objext conftest$ac_exeext
! 5203: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5204: (eval $ac_link) 2>&5
! 5205: ac_status=$?
! 5206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5207: (exit $ac_status); } &&
! 5208: { ac_try='test -s conftest$ac_exeext'
! 5209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5210: (eval $ac_try) 2>&5
! 5211: ac_status=$?
! 5212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5213: (exit $ac_status); }; }; then
! 5214: lt_cv_cc_needs_belf=yes
1.1 parser 5215: else
1.10 ! paf 5216: echo "$as_me: failed program was:" >&5
! 5217: sed 's/^/| /' conftest.$ac_ext >&5
! 5218:
! 5219: lt_cv_cc_needs_belf=no
1.1 parser 5220: fi
1.10 ! paf 5221: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5222: ac_ext=cc
! 5223: ac_cpp='$CXXCPP $CPPFLAGS'
! 5224: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5225: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5226: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 parser 5227:
5228: fi
1.10 ! paf 5229: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 5230: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
! 5231: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 5232: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 5233: CFLAGS="$SAVE_CFLAGS"
! 5234: fi
! 5235: ;;
! 5236:
! 5237:
! 5238: esac
1.1 parser 5239:
1.10 ! paf 5240: # Sed substitution that helps us do robust quoting. It backslashifies
! 5241: # metacharacters that are still active within double-quoted strings.
! 5242: Xsed='sed -e s/^X//'
! 5243: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
! 5244:
! 5245: # Same as above, but do not quote variable references.
! 5246: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
! 5247:
! 5248: # Sed substitution to delay expansion of an escaped shell variable in a
! 5249: # double_quote_subst'ed string.
! 5250: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
! 5251:
! 5252: # Constants:
! 5253: rm="rm -f"
! 5254:
! 5255: # Global variables:
! 5256: default_ofile=libtool
! 5257: can_build_shared=yes
! 5258:
! 5259: # All known linkers require a `.a' archive for static linking (except M$VC,
! 5260: # which needs '.lib').
! 5261: libext=a
! 5262: ltmain="$ac_aux_dir/ltmain.sh"
! 5263: ofile="$default_ofile"
! 5264: with_gnu_ld="$lt_cv_prog_gnu_ld"
! 5265: need_locks="$enable_libtool_lock"
! 5266:
! 5267: old_CC="$CC"
! 5268: old_CFLAGS="$CFLAGS"
! 5269:
! 5270: # Set sane defaults for various variables
! 5271: test -z "$AR" && AR=ar
! 5272: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 5273: test -z "$AS" && AS=as
! 5274: test -z "$CC" && CC=cc
! 5275: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 5276: test -z "$LD" && LD=ld
! 5277: test -z "$LN_S" && LN_S="ln -s"
! 5278: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 5279: test -z "$NM" && NM=nm
! 5280: test -z "$OBJDUMP" && OBJDUMP=objdump
! 5281: test -z "$RANLIB" && RANLIB=:
! 5282: test -z "$STRIP" && STRIP=:
! 5283: test -z "$ac_objext" && ac_objext=o
! 5284:
! 5285: if test x"$host" != x"$build"; then
! 5286: ac_tool_prefix=${host_alias}-
1.1 parser 5287: else
1.10 ! paf 5288: ac_tool_prefix=
1.1 parser 5289: fi
5290:
1.10 ! paf 5291: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
! 5292: case $host_os in
! 5293: linux-gnu*) ;;
! 5294: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
! 5295: esac
! 5296:
! 5297: case $host_os in
! 5298: aix3*)
! 5299: # AIX sometimes has problems with the GCC collect2 program. For some
! 5300: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 5301: # vanish in a puff of smoke.
! 5302: if test "X${COLLECT_NAMES+set}" != Xset; then
! 5303: COLLECT_NAMES=
! 5304: export COLLECT_NAMES
! 5305: fi
! 5306: ;;
! 5307: esac
! 5308:
! 5309: # Determine commands to create old-style static archives.
! 5310: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 5311: old_postinstall_cmds='chmod 644 $oldlib'
! 5312: old_postuninstall_cmds=
! 5313:
! 5314: if test -n "$RANLIB"; then
! 5315: case $host_os in
! 5316: openbsd*)
! 5317: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
! 5318: ;;
! 5319: *)
! 5320: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
! 5321: ;;
! 5322: esac
! 5323: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.1 parser 5324: fi
5325:
1.10 ! paf 5326: # Allow CC to be a program name with arguments.
! 5327: set dummy $CC
! 5328: compiler="$2"
! 5329:
! 5330: echo "$as_me:$LINENO: checking for objdir" >&5
! 5331: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 5332: rm -f .libs 2>/dev/null
! 5333: mkdir .libs 2>/dev/null
! 5334: if test -d .libs; then
! 5335: objdir=.libs
! 5336: else
! 5337: # MS-DOS does not allow filenames that begin with a dot.
! 5338: objdir=_libs
! 5339: fi
! 5340: rmdir .libs 2>/dev/null
! 5341: echo "$as_me:$LINENO: result: $objdir" >&5
! 5342: echo "${ECHO_T}$objdir" >&6
! 5343:
! 5344:
! 5345:
! 5346: # Check whether --with-pic or --without-pic was given.
! 5347: if test "${with_pic+set}" = set; then
! 5348: withval="$with_pic"
! 5349: pic_mode="$withval"
! 5350: else
! 5351: pic_mode=default
! 5352: fi;
! 5353: test -z "$pic_mode" && pic_mode=default
! 5354:
! 5355: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
! 5356: # in isolation, and that seeing it set (from the cache) indicates that
! 5357: # the associated values are set (in the cache) correctly too.
! 5358: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 5359: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 5360: if test "${lt_cv_prog_cc_pic+set}" = set; then
! 5361: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5362: else
! 5363: lt_cv_prog_cc_pic=
! 5364: lt_cv_prog_cc_shlib=
! 5365: lt_cv_prog_cc_wl=
! 5366: lt_cv_prog_cc_static=
! 5367: lt_cv_prog_cc_no_builtin=
! 5368: lt_cv_prog_cc_can_build_shared=$can_build_shared
! 5369:
! 5370: if test "$GCC" = yes; then
! 5371: lt_cv_prog_cc_wl='-Wl,'
! 5372: lt_cv_prog_cc_static='-static'
1.1 parser 5373:
1.10 ! paf 5374: case $host_os in
! 5375: aix*)
! 5376: # Below there is a dirty hack to force normal static linking with -ldl
! 5377: # The problem is because libdl dynamically linked with both libc and
! 5378: # libC (AIX C++ library), which obviously doesn't included in libraries
! 5379: # list by gcc. This cause undefined symbols with -static flags.
! 5380: # This hack allows C programs to be linked with "-static -ldl", but
! 5381: # not sure about C++ programs.
! 5382: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
! 5383: ;;
! 5384: amigaos*)
! 5385: # FIXME: we need at least 68020 code to build shared libraries, but
! 5386: # adding the `-m68020' flag to GCC prevents building anything better,
! 5387: # like `-m68040'.
! 5388: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
! 5389: ;;
! 5390: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 5391: # PIC is the default for these OSes.
! 5392: ;;
! 5393: darwin* | rhapsody*)
! 5394: # PIC is the default on this platform
! 5395: # Common symbols not allowed in MH_DYLIB files
! 5396: lt_cv_prog_cc_pic='-fno-common'
! 5397: ;;
! 5398: cygwin* | mingw* | pw32* | os2*)
! 5399: # This hack is so that the source file can tell whether it is being
! 5400: # built for inclusion in a dll (and should export symbols for example).
! 5401: lt_cv_prog_cc_pic='-DDLL_EXPORT'
! 5402: ;;
! 5403: sysv4*MP*)
! 5404: if test -d /usr/nec; then
! 5405: lt_cv_prog_cc_pic=-Kconform_pic
! 5406: fi
! 5407: ;;
! 5408: *)
! 5409: lt_cv_prog_cc_pic='-fPIC'
! 5410: ;;
! 5411: esac
! 5412: else
! 5413: # PORTME Check for PIC flags for the system compiler.
! 5414: case $host_os in
! 5415: aix3* | aix4* | aix5*)
! 5416: lt_cv_prog_cc_wl='-Wl,'
! 5417: # All AIX code is PIC.
! 5418: if test "$host_cpu" = ia64; then
! 5419: # AIX 5 now supports IA64 processor
! 5420: lt_cv_prog_cc_static='-Bstatic'
! 5421: else
! 5422: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
! 5423: fi
! 5424: ;;
! 5425:
! 5426: hpux9* | hpux10* | hpux11*)
! 5427: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
! 5428: lt_cv_prog_cc_wl='-Wl,'
! 5429: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
! 5430: lt_cv_prog_cc_pic='+Z'
! 5431: ;;
! 5432:
! 5433: irix5* | irix6* | nonstopux*)
! 5434: lt_cv_prog_cc_wl='-Wl,'
! 5435: lt_cv_prog_cc_static='-non_shared'
! 5436: # PIC (with -KPIC) is the default.
! 5437: ;;
! 5438:
! 5439: cygwin* | mingw* | pw32* | os2*)
! 5440: # This hack is so that the source file can tell whether it is being
! 5441: # built for inclusion in a dll (and should export symbols for example).
! 5442: lt_cv_prog_cc_pic='-DDLL_EXPORT'
! 5443: ;;
! 5444:
! 5445: newsos6)
! 5446: lt_cv_prog_cc_pic='-KPIC'
! 5447: lt_cv_prog_cc_static='-Bstatic'
! 5448: ;;
! 5449:
! 5450: osf3* | osf4* | osf5*)
! 5451: # All OSF/1 code is PIC.
! 5452: lt_cv_prog_cc_wl='-Wl,'
! 5453: lt_cv_prog_cc_static='-non_shared'
! 5454: ;;
! 5455:
! 5456: sco3.2v5*)
! 5457: lt_cv_prog_cc_pic='-Kpic'
! 5458: lt_cv_prog_cc_static='-dn'
! 5459: lt_cv_prog_cc_shlib='-belf'
! 5460: ;;
! 5461:
! 5462: solaris*)
! 5463: lt_cv_prog_cc_pic='-KPIC'
! 5464: lt_cv_prog_cc_static='-Bstatic'
! 5465: lt_cv_prog_cc_wl='-Wl,'
! 5466: ;;
! 5467:
! 5468: sunos4*)
! 5469: lt_cv_prog_cc_pic='-PIC'
! 5470: lt_cv_prog_cc_static='-Bstatic'
! 5471: lt_cv_prog_cc_wl='-Qoption ld '
! 5472: ;;
! 5473:
! 5474: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 5475: lt_cv_prog_cc_pic='-KPIC'
! 5476: lt_cv_prog_cc_static='-Bstatic'
! 5477: lt_cv_prog_cc_wl='-Wl,'
! 5478: ;;
! 5479:
! 5480: uts4*)
! 5481: lt_cv_prog_cc_pic='-pic'
! 5482: lt_cv_prog_cc_static='-Bstatic'
! 5483: ;;
! 5484:
! 5485: sysv4*MP*)
! 5486: if test -d /usr/nec ;then
! 5487: lt_cv_prog_cc_pic='-Kconform_pic'
! 5488: lt_cv_prog_cc_static='-Bstatic'
! 5489: fi
! 5490: ;;
! 5491:
! 5492: *)
! 5493: lt_cv_prog_cc_can_build_shared=no
! 5494: ;;
! 5495: esac
! 5496: fi
! 5497:
! 5498: fi
! 5499:
! 5500: if test -z "$lt_cv_prog_cc_pic"; then
! 5501: echo "$as_me:$LINENO: result: none" >&5
! 5502: echo "${ECHO_T}none" >&6
! 5503: else
! 5504: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
! 5505: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
! 5506:
! 5507: # Check to make sure the pic_flag actually works.
! 5508: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
! 5509: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
! 5510: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
! 5511: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5512: else
! 5513: save_CFLAGS="$CFLAGS"
! 5514: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
! 5515: cat >conftest.$ac_ext <<_ACEOF
! 5516: #line $LINENO "configure"
! 5517: /* confdefs.h. */
! 5518: _ACEOF
! 5519: cat confdefs.h >>conftest.$ac_ext
! 5520: cat >>conftest.$ac_ext <<_ACEOF
! 5521: /* end confdefs.h. */
! 5522:
! 5523: int
! 5524: main ()
! 5525: {
! 5526:
! 5527: ;
! 5528: return 0;
! 5529: }
! 5530: _ACEOF
! 5531: rm -f conftest.$ac_objext
! 5532: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5533: (eval $ac_compile) 2>&5
! 5534: ac_status=$?
! 5535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5536: (exit $ac_status); } &&
! 5537: { ac_try='test -s conftest.$ac_objext'
! 5538: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5539: (eval $ac_try) 2>&5
! 5540: ac_status=$?
! 5541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5542: (exit $ac_status); }; }; then
! 5543: case $host_os in
! 5544: hpux9* | hpux10* | hpux11*)
! 5545: # On HP-UX, both CC and GCC only warn that PIC is supported... then
! 5546: # they create non-PIC objects. So, if there were any warnings, we
! 5547: # assume that PIC is not supported.
! 5548: if test -s conftest.err; then
! 5549: lt_cv_prog_cc_pic_works=no
! 5550: else
! 5551: lt_cv_prog_cc_pic_works=yes
! 5552: fi
! 5553: ;;
! 5554: *)
! 5555: lt_cv_prog_cc_pic_works=yes
! 5556: ;;
! 5557: esac
! 5558:
! 5559: else
! 5560: echo "$as_me: failed program was:" >&5
! 5561: sed 's/^/| /' conftest.$ac_ext >&5
! 5562:
! 5563: lt_cv_prog_cc_pic_works=no
! 5564:
! 5565: fi
! 5566: rm -f conftest.$ac_objext conftest.$ac_ext
! 5567: CFLAGS="$save_CFLAGS"
! 5568:
! 5569: fi
! 5570:
! 5571:
! 5572: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
! 5573: lt_cv_prog_cc_pic=
! 5574: lt_cv_prog_cc_can_build_shared=no
! 5575: else
! 5576: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
! 5577: fi
! 5578:
! 5579: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
! 5580: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
! 5581: fi
! 5582:
! 5583: # Check for any special shared library compilation flags.
! 5584: if test -n "$lt_cv_prog_cc_shlib"; then
! 5585: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
! 5586: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
! 5587: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
! 5588: else
! 5589: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
! 5590: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
! 5591: lt_cv_prog_cc_can_build_shared=no
! 5592: fi
! 5593: fi
! 5594:
! 5595: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
! 5596: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
! 5597: if test "${lt_cv_prog_cc_static_works+set}" = set; then
! 5598: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5599: else
! 5600: lt_cv_prog_cc_static_works=no
! 5601: save_LDFLAGS="$LDFLAGS"
! 5602: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
! 5603: cat >conftest.$ac_ext <<_ACEOF
! 5604: #line $LINENO "configure"
! 5605: /* confdefs.h. */
! 5606: _ACEOF
! 5607: cat confdefs.h >>conftest.$ac_ext
! 5608: cat >>conftest.$ac_ext <<_ACEOF
! 5609: /* end confdefs.h. */
! 5610:
! 5611: int
! 5612: main ()
! 5613: {
! 5614:
! 5615: ;
! 5616: return 0;
! 5617: }
! 5618: _ACEOF
! 5619: rm -f conftest.$ac_objext conftest$ac_exeext
! 5620: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5621: (eval $ac_link) 2>&5
! 5622: ac_status=$?
! 5623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5624: (exit $ac_status); } &&
! 5625: { ac_try='test -s conftest$ac_exeext'
! 5626: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5627: (eval $ac_try) 2>&5
! 5628: ac_status=$?
! 5629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5630: (exit $ac_status); }; }; then
! 5631: lt_cv_prog_cc_static_works=yes
! 5632: else
! 5633: echo "$as_me: failed program was:" >&5
! 5634: sed 's/^/| /' conftest.$ac_ext >&5
! 5635:
! 5636: fi
! 5637: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5638: LDFLAGS="$save_LDFLAGS"
! 5639:
! 5640: fi
! 5641:
! 5642:
! 5643: # Belt *and* braces to stop my trousers falling down:
! 5644: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
! 5645: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
! 5646: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
! 5647:
! 5648: pic_flag="$lt_cv_prog_cc_pic"
! 5649: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
! 5650: wl="$lt_cv_prog_cc_wl"
! 5651: link_static_flag="$lt_cv_prog_cc_static"
! 5652: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
! 5653: can_build_shared="$lt_cv_prog_cc_can_build_shared"
! 5654:
! 5655:
! 5656: # Check to see if options -o and -c are simultaneously supported by compiler
! 5657: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 5658: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 5659: if test "${lt_cv_compiler_c_o+set}" = set; then
! 5660: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5661: else
! 5662:
! 5663: $rm -r conftest 2>/dev/null
! 5664: mkdir conftest
! 5665: cd conftest
! 5666: echo "int some_variable = 0;" > conftest.$ac_ext
! 5667: mkdir out
! 5668: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 5669: # that will create temporary files in the current directory regardless of
! 5670: # the output directory. Thus, making CWD read-only will cause this test
! 5671: # to fail, enabling locking or at least warning the user not to do parallel
! 5672: # builds.
! 5673: chmod -w .
! 5674: save_CFLAGS="$CFLAGS"
! 5675: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
! 5676: compiler_c_o=no
! 5677: if { (eval echo configure:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
! 5678: # The compiler can only warn and ignore the option if not recognized
! 5679: # So say no if there are warnings
! 5680: if test -s out/conftest.err; then
! 5681: lt_cv_compiler_c_o=no
! 5682: else
! 5683: lt_cv_compiler_c_o=yes
! 5684: fi
! 5685: else
! 5686: # Append any errors to the config.log.
! 5687: cat out/conftest.err 1>&5
! 5688: lt_cv_compiler_c_o=no
! 5689: fi
! 5690: CFLAGS="$save_CFLAGS"
! 5691: chmod u+w .
! 5692: $rm conftest* out/*
! 5693: rmdir out
! 5694: cd ..
! 5695: rmdir conftest
! 5696: $rm -r conftest 2>/dev/null
! 5697:
! 5698: fi
! 5699:
! 5700: compiler_c_o=$lt_cv_compiler_c_o
! 5701: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
! 5702: echo "${ECHO_T}$compiler_c_o" >&6
! 5703:
! 5704: if test x"$compiler_c_o" = x"yes"; then
! 5705: # Check to see if we can write to a .lo
! 5706: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
! 5707: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
! 5708: if test "${lt_cv_compiler_o_lo+set}" = set; then
! 5709: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5710: else
! 5711:
! 5712: lt_cv_compiler_o_lo=no
! 5713: save_CFLAGS="$CFLAGS"
! 5714: CFLAGS="$CFLAGS -c -o conftest.lo"
! 5715: save_objext="$ac_objext"
! 5716: ac_objext=lo
! 5717: cat >conftest.$ac_ext <<_ACEOF
! 5718: #line $LINENO "configure"
! 5719: /* confdefs.h. */
! 5720: _ACEOF
! 5721: cat confdefs.h >>conftest.$ac_ext
! 5722: cat >>conftest.$ac_ext <<_ACEOF
! 5723: /* end confdefs.h. */
! 5724:
! 5725: int
! 5726: main ()
! 5727: {
! 5728: int some_variable = 0;
! 5729: ;
! 5730: return 0;
! 5731: }
! 5732: _ACEOF
! 5733: rm -f conftest.$ac_objext
! 5734: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5735: (eval $ac_compile) 2>&5
! 5736: ac_status=$?
! 5737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5738: (exit $ac_status); } &&
! 5739: { ac_try='test -s conftest.$ac_objext'
! 5740: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5741: (eval $ac_try) 2>&5
! 5742: ac_status=$?
! 5743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5744: (exit $ac_status); }; }; then
! 5745: # The compiler can only warn and ignore the option if not recognized
! 5746: # So say no if there are warnings
! 5747: if test -s conftest.err; then
! 5748: lt_cv_compiler_o_lo=no
! 5749: else
! 5750: lt_cv_compiler_o_lo=yes
! 5751: fi
! 5752:
! 5753: else
! 5754: echo "$as_me: failed program was:" >&5
! 5755: sed 's/^/| /' conftest.$ac_ext >&5
! 5756:
! 5757: fi
! 5758: rm -f conftest.$ac_objext conftest.$ac_ext
! 5759: ac_objext="$save_objext"
! 5760: CFLAGS="$save_CFLAGS"
! 5761:
! 5762: fi
! 5763:
! 5764: compiler_o_lo=$lt_cv_compiler_o_lo
! 5765: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
! 5766: echo "${ECHO_T}$compiler_o_lo" >&6
! 5767: else
! 5768: compiler_o_lo=no
! 5769: fi
! 5770:
! 5771: # Check to see if we can do hard links to lock some files if needed
! 5772: hard_links="nottested"
! 5773: if test "$compiler_c_o" = no && test "$need_locks" != no; then
! 5774: # do not overwrite the value of need_locks provided by the user
! 5775: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 5776: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 5777: hard_links=yes
! 5778: $rm conftest*
! 5779: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 5780: touch conftest.a
! 5781: ln conftest.a conftest.b 2>&5 || hard_links=no
! 5782: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 5783: echo "$as_me:$LINENO: result: $hard_links" >&5
! 5784: echo "${ECHO_T}$hard_links" >&6
! 5785: if test "$hard_links" = no; then
! 5786: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 5787: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 5788: need_locks=warn
! 5789: fi
! 5790: else
! 5791: need_locks=no
! 5792: fi
! 5793:
! 5794: if test "$GCC" = yes; then
! 5795: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
! 5796: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 5797: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 5798: echo "int some_variable = 0;" > conftest.$ac_ext
! 5799: save_CFLAGS="$CFLAGS"
! 5800: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
! 5801: compiler_rtti_exceptions=no
! 5802: cat >conftest.$ac_ext <<_ACEOF
! 5803: #line $LINENO "configure"
! 5804: /* confdefs.h. */
! 5805: _ACEOF
! 5806: cat confdefs.h >>conftest.$ac_ext
! 5807: cat >>conftest.$ac_ext <<_ACEOF
! 5808: /* end confdefs.h. */
! 5809:
! 5810: int
! 5811: main ()
! 5812: {
! 5813: int some_variable = 0;
! 5814: ;
! 5815: return 0;
! 5816: }
! 5817: _ACEOF
! 5818: rm -f conftest.$ac_objext
! 5819: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5820: (eval $ac_compile) 2>&5
! 5821: ac_status=$?
! 5822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5823: (exit $ac_status); } &&
! 5824: { ac_try='test -s conftest.$ac_objext'
! 5825: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5826: (eval $ac_try) 2>&5
! 5827: ac_status=$?
! 5828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5829: (exit $ac_status); }; }; then
! 5830: # The compiler can only warn and ignore the option if not recognized
! 5831: # So say no if there are warnings
! 5832: if test -s conftest.err; then
! 5833: compiler_rtti_exceptions=no
! 5834: else
! 5835: compiler_rtti_exceptions=yes
! 5836: fi
! 5837:
! 5838: else
! 5839: echo "$as_me: failed program was:" >&5
! 5840: sed 's/^/| /' conftest.$ac_ext >&5
! 5841:
! 5842: fi
! 5843: rm -f conftest.$ac_objext conftest.$ac_ext
! 5844: CFLAGS="$save_CFLAGS"
! 5845: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
! 5846: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
! 5847:
! 5848: if test "$compiler_rtti_exceptions" = "yes"; then
! 5849: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
! 5850: else
! 5851: no_builtin_flag=' -fno-builtin'
! 5852: fi
! 5853: fi
! 5854:
! 5855: # See if the linker supports building shared libraries.
! 5856: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
! 5857: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
! 5858:
! 5859: allow_undefined_flag=
! 5860: no_undefined_flag=
! 5861: need_lib_prefix=unknown
! 5862: need_version=unknown
! 5863: # when you set need_version to no, make sure it does not cause -set_version
! 5864: # flags to be left without arguments
! 5865: archive_cmds=
! 5866: archive_expsym_cmds=
! 5867: old_archive_from_new_cmds=
! 5868: old_archive_from_expsyms_cmds=
! 5869: export_dynamic_flag_spec=
! 5870: whole_archive_flag_spec=
! 5871: thread_safe_flag_spec=
! 5872: hardcode_into_libs=no
! 5873: hardcode_libdir_flag_spec=
! 5874: hardcode_libdir_separator=
! 5875: hardcode_direct=no
! 5876: hardcode_minus_L=no
! 5877: hardcode_shlibpath_var=unsupported
! 5878: runpath_var=
! 5879: link_all_deplibs=unknown
! 5880: always_export_symbols=no
! 5881: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 5882: # include_expsyms should be a list of space-separated symbols to be *always*
! 5883: # included in the symbol list
! 5884: include_expsyms=
! 5885: # exclude_expsyms can be an egrep regular expression of symbols to exclude
! 5886: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 5887: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 5888: # as well as any symbol that contains `d'.
! 5889: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 5890: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 5891: # platforms (ab)use it in PIC code, but their linkers get confused if
! 5892: # the symbol is explicitly referenced. Since portable code cannot
! 5893: # rely on this symbol name, it's probably fine to never include it in
! 5894: # preloaded symbol tables.
! 5895: extract_expsyms_cmds=
! 5896:
! 5897: case $host_os in
! 5898: cygwin* | mingw* | pw32*)
! 5899: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 5900: # When not using gcc, we currently assume that we are using
! 5901: # Microsoft Visual C++.
! 5902: if test "$GCC" != yes; then
! 5903: with_gnu_ld=no
! 5904: fi
! 5905: ;;
! 5906: openbsd*)
! 5907: with_gnu_ld=no
! 5908: ;;
! 5909: esac
! 5910:
! 5911: ld_shlibs=yes
! 5912: if test "$with_gnu_ld" = yes; then
! 5913: # If archive_cmds runs LD, not CC, wlarc should be empty
! 5914: wlarc='${wl}'
! 5915:
! 5916: # See if GNU ld supports shared libraries.
! 5917: case $host_os in
! 5918: aix3* | aix4* | aix5*)
! 5919: # On AIX, the GNU linker is very broken
! 5920: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
! 5921: ld_shlibs=no
! 5922: cat <<EOF 1>&2
! 5923:
! 5924: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 5925: *** to be unable to reliably create shared libraries on AIX.
! 5926: *** Therefore, libtool is disabling shared libraries support. If you
! 5927: *** really care for shared libraries, you may want to modify your PATH
! 5928: *** so that a non-GNU linker is found, and then restart.
! 5929:
! 5930: EOF
! 5931: ;;
! 5932:
! 5933: amigaos*)
! 5934: 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)'
! 5935: hardcode_libdir_flag_spec='-L$libdir'
! 5936: hardcode_minus_L=yes
! 5937:
! 5938: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 5939: # that the semantics of dynamic libraries on AmigaOS, at least up
! 5940: # to version 4, is to share data among multiple programs linked
! 5941: # with the same dynamic library. Since this doesn't match the
! 5942: # behavior of shared libraries on other platforms, we can use
! 5943: # them.
! 5944: ld_shlibs=no
! 5945: ;;
! 5946:
! 5947: beos*)
! 5948: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 5949: allow_undefined_flag=unsupported
! 5950: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 5951: # support --undefined. This deserves some investigation. FIXME
! 5952: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 5953: else
! 5954: ld_shlibs=no
! 5955: fi
! 5956: ;;
! 5957:
! 5958: cygwin* | mingw* | pw32*)
! 5959: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 5960: # no search path for DLLs.
! 5961: hardcode_libdir_flag_spec='-L$libdir'
! 5962: allow_undefined_flag=unsupported
! 5963: always_export_symbols=yes
! 5964:
! 5965: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
! 5966: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
! 5967: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
! 5968: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
! 5969: else $CC -o impgen impgen.c ; fi)~
! 5970: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
! 5971:
! 5972: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
! 5973:
! 5974: # cygwin and mingw dlls have different entry points and sets of symbols
! 5975: # to exclude.
! 5976: # FIXME: what about values for MSVC?
! 5977: dll_entry=__cygwin_dll_entry@12
! 5978: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
! 5979: case $host_os in
! 5980: mingw*)
! 5981: # mingw values
! 5982: dll_entry=_DllMainCRTStartup@12
! 5983: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
! 5984: ;;
! 5985: esac
! 5986:
! 5987: # mingw and cygwin differ, and it's simplest to just exclude the union
! 5988: # of the two symbol sets.
! 5989: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
! 5990:
! 5991: # recent cygwin and mingw systems supply a stub DllMain which the user
! 5992: # can override, but on older systems we have to supply one (in ltdll.c)
! 5993: if test "x$lt_cv_need_dllmain" = "xyes"; then
! 5994: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
! 5995: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
! 5996: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
! 5997: else
! 5998: ltdll_obj=
! 5999: ltdll_cmds=
! 6000: fi
! 6001:
! 6002: # Extract the symbol export list from an `--export-all' def file,
! 6003: # then regenerate the def file from the symbol export list, so that
! 6004: # the compiled dll only exports the symbol export list.
! 6005: # Be careful not to strip the DATA tag left be newer dlltools.
! 6006: export_symbols_cmds="$ltdll_cmds"'
! 6007: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
! 6008: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
! 6009:
! 6010: # If the export-symbols file already is a .def file (1st line
! 6011: # is EXPORTS), use it as is.
! 6012: # If DATA tags from a recent dlltool are present, honour them!
! 6013: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
! 6014: cp $export_symbols $output_objdir/$soname-def;
! 6015: else
! 6016: echo EXPORTS > $output_objdir/$soname-def;
! 6017: _lt_hint=1;
! 6018: cat $export_symbols | while read symbol; do
! 6019: set dummy \$symbol;
! 6020: case \$# in
! 6021: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
! 6022: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
! 6023: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
! 6024: esac;
! 6025: _lt_hint=`expr 1 + \$_lt_hint`;
! 6026: done;
! 6027: fi~
! 6028: '"$ltdll_cmds"'
! 6029: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
! 6030: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
! 6031: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
! 6032: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
! 6033: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
! 6034: ;;
! 6035:
! 6036: netbsd*)
! 6037: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6038: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 6039: wlarc=
! 6040: else
! 6041: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6042: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6043: fi
! 6044: ;;
! 6045:
! 6046: solaris* | sysv5*)
! 6047: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
! 6048: ld_shlibs=no
! 6049: cat <<EOF 1>&2
! 6050:
! 6051: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 6052: *** create shared libraries on Solaris systems. Therefore, libtool
! 6053: *** is disabling shared libraries support. We urge you to upgrade GNU
! 6054: *** binutils to release 2.9.1 or newer. Another option is to modify
! 6055: *** your PATH or compiler configuration so that the native linker is
! 6056: *** used, and then restart.
! 6057:
! 6058: EOF
! 6059: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 6060: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6061: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6062: else
! 6063: ld_shlibs=no
! 6064: fi
! 6065: ;;
! 6066:
! 6067: sunos4*)
! 6068: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6069: wlarc=
! 6070: hardcode_direct=yes
! 6071: hardcode_shlibpath_var=no
! 6072: ;;
! 6073:
! 6074: *)
! 6075: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 6076: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6077: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6078: else
! 6079: ld_shlibs=no
! 6080: fi
! 6081: ;;
! 6082: esac
! 6083:
! 6084: if test "$ld_shlibs" = yes; then
! 6085: runpath_var=LD_RUN_PATH
! 6086: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 6087: export_dynamic_flag_spec='${wl}--export-dynamic'
! 6088: case $host_os in
! 6089: cygwin* | mingw* | pw32*)
! 6090: # dlltool doesn't understand --whole-archive et. al.
! 6091: whole_archive_flag_spec=
! 6092: ;;
! 6093: *)
! 6094: # ancient GNU ld didn't support --whole-archive et. al.
! 6095: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
! 6096: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 6097: else
! 6098: whole_archive_flag_spec=
! 6099: fi
! 6100: ;;
! 6101: esac
! 6102: fi
! 6103: else
! 6104: # PORTME fill in a description of your system's linker (not GNU ld)
! 6105: case $host_os in
! 6106: aix3*)
! 6107: allow_undefined_flag=unsupported
! 6108: always_export_symbols=yes
! 6109: 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'
! 6110: # Note: this linker hardcodes the directories in LIBPATH if there
! 6111: # are no directories specified by -L.
! 6112: hardcode_minus_L=yes
! 6113: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 6114: # Neither direct hardcoding nor static linking is supported with a
! 6115: # broken collect2.
! 6116: hardcode_direct=unsupported
! 6117: fi
! 6118: ;;
! 6119:
! 6120: aix4* | aix5*)
! 6121: if test "$host_cpu" = ia64; then
! 6122: # On IA64, the linker does run time linking by default, so we don't
! 6123: # have to do anything special.
! 6124: aix_use_runtimelinking=no
! 6125: exp_sym_flag='-Bexport'
! 6126: no_entry_flag=""
! 6127: else
! 6128: aix_use_runtimelinking=no
! 6129:
! 6130: # Test if we are trying to use run time linking or normal
! 6131: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 6132: # need to do runtime linking.
! 6133: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 6134: for ld_flag in $LDFLAGS; do
! 6135: case $ld_flag in
! 6136: *-brtl*)
! 6137: aix_use_runtimelinking=yes
! 6138: break
! 6139: ;;
! 6140: esac
! 6141: done
! 6142: esac
! 6143:
! 6144: exp_sym_flag='-bexport'
! 6145: no_entry_flag='-bnoentry'
! 6146: fi
! 6147:
! 6148: # When large executables or shared objects are built, AIX ld can
! 6149: # have problems creating the table of contents. If linking a library
! 6150: # or program results in "error TOC overflow" add -mminimal-toc to
! 6151: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 6152: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 6153:
! 6154: hardcode_direct=yes
! 6155: archive_cmds=''
! 6156: hardcode_libdir_separator=':'
! 6157: if test "$GCC" = yes; then
! 6158: case $host_os in aix4.[012]|aix4.[012].*)
! 6159: collect2name=`${CC} -print-prog-name=collect2`
! 6160: if test -f "$collect2name" && \
! 6161: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 6162: then
! 6163: # We have reworked collect2
! 6164: hardcode_direct=yes
! 6165: else
! 6166: # We have old collect2
! 6167: hardcode_direct=unsupported
! 6168: # It fails to find uninstalled libraries when the uninstalled
! 6169: # path is not listed in the libpath. Setting hardcode_minus_L
! 6170: # to unsupported forces relinking
! 6171: hardcode_minus_L=yes
! 6172: hardcode_libdir_flag_spec='-L$libdir'
! 6173: hardcode_libdir_separator=
! 6174: fi
! 6175: esac
! 6176:
! 6177: shared_flag='-shared'
! 6178: else
! 6179: # not using gcc
! 6180: if test "$host_cpu" = ia64; then
! 6181: shared_flag='${wl}-G'
! 6182: else
! 6183: if test "$aix_use_runtimelinking" = yes; then
! 6184: shared_flag='${wl}-G'
! 6185: else
! 6186: shared_flag='${wl}-bM:SRE'
! 6187: fi
! 6188: fi
! 6189: fi
! 6190:
! 6191: # It seems that -bexpall can do strange things, so it is better to
! 6192: # generate a list of symbols to export.
! 6193: always_export_symbols=yes
! 6194: if test "$aix_use_runtimelinking" = yes; then
! 6195: # Warning - without using the other runtime loading flags (-brtl),
! 6196: # -berok will link without error, but may produce a broken library.
! 6197: allow_undefined_flag='-berok'
! 6198: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
! 6199: 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"
! 6200: else
! 6201: if test "$host_cpu" = ia64; then
! 6202: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 6203: allow_undefined_flag="-z nodefs"
! 6204: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
! 6205: else
! 6206: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
! 6207: # Warning - without using the other run time loading flags,
! 6208: # -berok will link without error, but may produce a broken library.
! 6209: allow_undefined_flag='${wl}-berok'
! 6210: # This is a bit strange, but is similar to how AIX traditionally builds
! 6211: # it's shared libraries.
! 6212: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
! 6213: fi
! 6214: fi
! 6215: ;;
! 6216:
! 6217: amigaos*)
! 6218: 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)'
! 6219: hardcode_libdir_flag_spec='-L$libdir'
! 6220: hardcode_minus_L=yes
! 6221: # see comment about different semantics on the GNU ld section
! 6222: ld_shlibs=no
! 6223: ;;
! 6224:
! 6225: cygwin* | mingw* | pw32*)
! 6226: # When not using gcc, we currently assume that we are using
! 6227: # Microsoft Visual C++.
! 6228: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 6229: # no search path for DLLs.
! 6230: hardcode_libdir_flag_spec=' '
! 6231: allow_undefined_flag=unsupported
! 6232: # Tell ltmain to make .lib files, not .a files.
! 6233: libext=lib
! 6234: # FIXME: Setting linknames here is a bad hack.
! 6235: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 6236: # The linker will automatically build a .lib file if we build a DLL.
! 6237: old_archive_from_new_cmds='true'
! 6238: # FIXME: Should let the user specify the lib program.
! 6239: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 6240: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 6241: ;;
! 6242:
! 6243: darwin* | rhapsody*)
! 6244: case "$host_os" in
! 6245: rhapsody* | darwin1.[012])
! 6246: allow_undefined_flag='-undefined suppress'
! 6247: ;;
! 6248: *) # Darwin 1.3 on
! 6249: allow_undefined_flag='-flat_namespace -undefined suppress'
! 6250: ;;
! 6251: esac
! 6252: # FIXME: Relying on posixy $() will cause problems for
! 6253: # cross-compilation, but unfortunately the echo tests do not
! 6254: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 6255: # `"' quotes if we put them in here... so don't!
! 6256: archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
! 6257: # We need to add '_' to the symbols in $export_symbols first
! 6258: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
! 6259: hardcode_direct=yes
! 6260: hardcode_shlibpath_var=no
! 6261: whole_archive_flag_spec='-all_load $convenience'
! 6262: ;;
! 6263:
! 6264: freebsd1*)
! 6265: ld_shlibs=no
! 6266: ;;
! 6267:
! 6268: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 6269: # support. Future versions do this automatically, but an explicit c++rt0.o
! 6270: # does not break anything, and helps significantly (at the cost of a little
! 6271: # extra space).
! 6272: freebsd2.2*)
! 6273: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 6274: hardcode_libdir_flag_spec='-R$libdir'
! 6275: hardcode_direct=yes
! 6276: hardcode_shlibpath_var=no
! 6277: ;;
! 6278:
! 6279: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 6280: freebsd2*)
! 6281: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6282: hardcode_direct=yes
! 6283: hardcode_minus_L=yes
! 6284: hardcode_shlibpath_var=no
! 6285: ;;
! 6286:
! 6287: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 6288: freebsd*)
! 6289: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 6290: hardcode_libdir_flag_spec='-R$libdir'
! 6291: hardcode_direct=yes
! 6292: hardcode_shlibpath_var=no
! 6293: ;;
! 6294:
! 6295: hpux9* | hpux10* | hpux11*)
! 6296: case $host_os in
! 6297: hpux9*) 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' ;;
! 6298: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
! 6299: esac
! 6300: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 6301: hardcode_libdir_separator=:
! 6302: hardcode_direct=yes
! 6303: hardcode_minus_L=yes # Not in the search PATH, but as the default
! 6304: # location of the library.
! 6305: export_dynamic_flag_spec='${wl}-E'
! 6306: ;;
! 6307:
! 6308: irix5* | irix6* | nonstopux*)
! 6309: if test "$GCC" = yes; then
! 6310: 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'
! 6311: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6312: else
! 6313: 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'
! 6314: hardcode_libdir_flag_spec='-rpath $libdir'
! 6315: fi
! 6316: hardcode_libdir_separator=:
! 6317: link_all_deplibs=yes
! 6318: ;;
! 6319:
! 6320: netbsd*)
! 6321: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6322: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 6323: else
! 6324: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 6325: fi
! 6326: hardcode_libdir_flag_spec='-R$libdir'
! 6327: hardcode_direct=yes
! 6328: hardcode_shlibpath_var=no
! 6329: ;;
! 6330:
! 6331: newsos6)
! 6332: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6333: hardcode_direct=yes
! 6334: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6335: hardcode_libdir_separator=:
! 6336: hardcode_shlibpath_var=no
! 6337: ;;
! 6338:
! 6339: openbsd*)
! 6340: hardcode_direct=yes
! 6341: hardcode_shlibpath_var=no
! 6342: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 6343: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 6344: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 6345: export_dynamic_flag_spec='${wl}-E'
! 6346: else
! 6347: case "$host_os" in
! 6348: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 6349: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6350: hardcode_libdir_flag_spec='-R$libdir'
! 6351: ;;
! 6352: *)
! 6353: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 6354: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 6355: ;;
! 6356: esac
! 6357: fi
! 6358: ;;
! 6359:
! 6360: os2*)
! 6361: hardcode_libdir_flag_spec='-L$libdir'
! 6362: hardcode_minus_L=yes
! 6363: allow_undefined_flag=unsupported
! 6364: 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'
! 6365: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 6366: ;;
! 6367:
! 6368: osf3*)
! 6369: if test "$GCC" = yes; then
! 6370: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 6371: 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'
! 6372: else
! 6373: allow_undefined_flag=' -expect_unresolved \*'
! 6374: 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'
! 6375: fi
! 6376: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6377: hardcode_libdir_separator=:
! 6378: ;;
! 6379:
! 6380: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 6381: if test "$GCC" = yes; then
! 6382: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 6383: 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'
! 6384: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6385: else
! 6386: allow_undefined_flag=' -expect_unresolved \*'
! 6387: 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'
! 6388: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 6389: $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'
! 6390:
! 6391: #Both c and cxx compiler support -rpath directly
! 6392: hardcode_libdir_flag_spec='-rpath $libdir'
! 6393: fi
! 6394: hardcode_libdir_separator=:
! 6395: ;;
! 6396:
! 6397: sco3.2v5*)
! 6398: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6399: hardcode_shlibpath_var=no
! 6400: runpath_var=LD_RUN_PATH
! 6401: hardcode_runpath_var=yes
! 6402: export_dynamic_flag_spec='${wl}-Bexport'
! 6403: ;;
! 6404:
! 6405: solaris*)
! 6406: # gcc --version < 3.0 without binutils cannot create self contained
! 6407: # shared libraries reliably, requiring libgcc.a to resolve some of
! 6408: # the object symbols generated in some cases. Libraries that use
! 6409: # assert need libgcc.a to resolve __eprintf, for example. Linking
! 6410: # a copy of libgcc.a into every shared library to guarantee resolving
! 6411: # such symbols causes other problems: According to Tim Van Holder
! 6412: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
! 6413: # (to the application) exception stack for one thing.
! 6414: no_undefined_flag=' -z defs'
! 6415: if test "$GCC" = yes; then
! 6416: case `$CC --version 2>/dev/null` in
! 6417: [12].*)
! 6418: cat <<EOF 1>&2
! 6419:
! 6420: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
! 6421: *** create self contained shared libraries on Solaris systems, without
! 6422: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
! 6423: *** -no-undefined support, which will at least allow you to build shared
! 6424: *** libraries. However, you may find that when you link such libraries
! 6425: *** into an application without using GCC, you have to manually add
! 6426: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
! 6427: *** upgrade to a newer version of GCC. Another option is to rebuild your
! 6428: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
! 6429:
! 6430: EOF
! 6431: no_undefined_flag=
! 6432: ;;
! 6433: esac
! 6434: fi
! 6435: # $CC -shared without GNU ld will not create a library from C++
! 6436: # object files and a static libstdc++, better avoid it by now
! 6437: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6438: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 6439: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 6440: hardcode_libdir_flag_spec='-R$libdir'
! 6441: hardcode_shlibpath_var=no
! 6442: case $host_os in
! 6443: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 6444: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 6445: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
! 6446: esac
! 6447: link_all_deplibs=yes
! 6448: ;;
! 6449:
! 6450: sunos4*)
! 6451: if test "x$host_vendor" = xsequent; then
! 6452: # Use $CC to link under sequent, because it throws in some extra .o
! 6453: # files that make .init and .fini sections work.
! 6454: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 6455: else
! 6456: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 6457: fi
! 6458: hardcode_libdir_flag_spec='-L$libdir'
! 6459: hardcode_direct=yes
! 6460: hardcode_minus_L=yes
! 6461: hardcode_shlibpath_var=no
! 6462: ;;
! 6463:
! 6464: sysv4)
! 6465: case $host_vendor in
! 6466: sni)
! 6467: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6468: hardcode_direct=yes # is this really true???
! 6469: ;;
! 6470: siemens)
! 6471: ## LD is ld it makes a PLAMLIB
! 6472: ## CC just makes a GrossModule.
! 6473: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 6474: reload_cmds='$CC -r -o $output$reload_objs'
! 6475: hardcode_direct=no
! 6476: ;;
! 6477: motorola)
! 6478: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6479: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 6480: ;;
! 6481: esac
! 6482: runpath_var='LD_RUN_PATH'
! 6483: hardcode_shlibpath_var=no
! 6484: ;;
! 6485:
! 6486: sysv4.3*)
! 6487: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6488: hardcode_shlibpath_var=no
! 6489: export_dynamic_flag_spec='-Bexport'
! 6490: ;;
! 6491:
! 6492: sysv5*)
! 6493: no_undefined_flag=' -z text'
! 6494: # $CC -shared without GNU ld will not create a library from C++
! 6495: # object files and a static libstdc++, better avoid it by now
! 6496: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6497: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 6498: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 6499: hardcode_libdir_flag_spec=
! 6500: hardcode_shlibpath_var=no
! 6501: runpath_var='LD_RUN_PATH'
! 6502: ;;
! 6503:
! 6504: uts4*)
! 6505: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6506: hardcode_libdir_flag_spec='-L$libdir'
! 6507: hardcode_shlibpath_var=no
! 6508: ;;
! 6509:
! 6510: dgux*)
! 6511: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6512: hardcode_libdir_flag_spec='-L$libdir'
! 6513: hardcode_shlibpath_var=no
! 6514: ;;
! 6515:
! 6516: sysv4*MP*)
! 6517: if test -d /usr/nec; then
! 6518: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6519: hardcode_shlibpath_var=no
! 6520: runpath_var=LD_RUN_PATH
! 6521: hardcode_runpath_var=yes
! 6522: ld_shlibs=yes
! 6523: fi
! 6524: ;;
! 6525:
! 6526: sysv4.2uw2*)
! 6527: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 6528: hardcode_direct=yes
! 6529: hardcode_minus_L=no
! 6530: hardcode_shlibpath_var=no
! 6531: hardcode_runpath_var=yes
! 6532: runpath_var=LD_RUN_PATH
! 6533: ;;
! 6534:
! 6535: sysv5uw7* | unixware7*)
! 6536: no_undefined_flag='${wl}-z ${wl}text'
! 6537: if test "$GCC" = yes; then
! 6538: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 6539: else
! 6540: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 6541: fi
! 6542: runpath_var='LD_RUN_PATH'
! 6543: hardcode_shlibpath_var=no
! 6544: ;;
! 6545:
! 6546: *)
! 6547: ld_shlibs=no
! 6548: ;;
! 6549: esac
! 6550: fi
! 6551: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 6552: echo "${ECHO_T}$ld_shlibs" >&6
! 6553: test "$ld_shlibs" = no && can_build_shared=no
! 6554:
! 6555: # Check hardcoding attributes.
! 6556: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 6557: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 6558: hardcode_action=
! 6559: if test -n "$hardcode_libdir_flag_spec" || \
! 6560: test -n "$runpath_var"; then
! 6561:
! 6562: # We can hardcode non-existant directories.
! 6563: if test "$hardcode_direct" != no &&
! 6564: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 6565: # have to relink, otherwise we might link with an installed library
! 6566: # when we should be linking with a yet-to-be-installed one
! 6567: ## test "$hardcode_shlibpath_var" != no &&
! 6568: test "$hardcode_minus_L" != no; then
! 6569: # Linking always hardcodes the temporary library directory.
! 6570: hardcode_action=relink
! 6571: else
! 6572: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 6573: hardcode_action=immediate
! 6574: fi
! 6575: else
! 6576: # We cannot hardcode anything, or else we can only hardcode existing
! 6577: # directories.
! 6578: hardcode_action=unsupported
! 6579: fi
! 6580: echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 6581: echo "${ECHO_T}$hardcode_action" >&6
! 6582:
! 6583: striplib=
! 6584: old_striplib=
! 6585: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 6586: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 6587: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 6588: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 6589: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 6590: echo "$as_me:$LINENO: result: yes" >&5
! 6591: echo "${ECHO_T}yes" >&6
! 6592: else
! 6593: echo "$as_me:$LINENO: result: no" >&5
! 6594: echo "${ECHO_T}no" >&6
! 6595: fi
! 6596:
! 6597: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 6598: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 6599:
! 6600: # PORTME Fill in your ld.so characteristics
! 6601: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 6602: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 6603: library_names_spec=
! 6604: libname_spec='lib$name'
! 6605: soname_spec=
! 6606: postinstall_cmds=
! 6607: postuninstall_cmds=
! 6608: finish_cmds=
! 6609: finish_eval=
! 6610: shlibpath_var=
! 6611: shlibpath_overrides_runpath=unknown
! 6612: version_type=none
! 6613: dynamic_linker="$host_os ld.so"
! 6614: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 6615: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 6616:
! 6617: case $host_os in
! 6618: aix3*)
! 6619: version_type=linux
! 6620: library_names_spec='${libname}${release}.so$versuffix $libname.a'
! 6621: shlibpath_var=LIBPATH
! 6622:
! 6623: # AIX has no versioning support, so we append a major version to the name.
! 6624: soname_spec='${libname}${release}.so$major'
! 6625: ;;
! 6626:
! 6627: aix4* | aix5*)
! 6628: version_type=linux
! 6629: need_lib_prefix=no
! 6630: need_version=no
! 6631: hardcode_into_libs=yes
! 6632: if test "$host_cpu" = ia64; then
! 6633: # AIX 5 supports IA64
! 6634: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
! 6635: shlibpath_var=LD_LIBRARY_PATH
! 6636: else
! 6637: # With GCC up to 2.95.x, collect2 would create an import file
! 6638: # for dependence libraries. The import file would start with
! 6639: # the line `#! .'. This would cause the generated library to
! 6640: # depend on `.', always an invalid library. This was fixed in
! 6641: # development snapshots of GCC prior to 3.0.
! 6642: case $host_os in
! 6643: aix4 | aix4.[01] | aix4.[01].*)
! 6644: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 6645: echo ' yes '
! 6646: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 6647: :
! 6648: else
! 6649: can_build_shared=no
! 6650: fi
! 6651: ;;
! 6652: esac
! 6653: # AIX (on Power*) has no versioning support, so currently we can
! 6654: # not hardcode correct soname into executable. Probably we can
! 6655: # add versioning support to collect2, so additional links can
! 6656: # be useful in future.
! 6657: if test "$aix_use_runtimelinking" = yes; then
! 6658: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 6659: # instead of lib<name>.a to let people know that these are not
! 6660: # typical AIX shared libraries.
! 6661: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6662: else
! 6663: # We preserve .a as extension for shared libraries through AIX4.2
! 6664: # and later when we are not doing run time linking.
! 6665: library_names_spec='${libname}${release}.a $libname.a'
! 6666: soname_spec='${libname}${release}.so$major'
! 6667: fi
! 6668: shlibpath_var=LIBPATH
! 6669: fi
! 6670: hardcode_into_libs=yes
! 6671: ;;
! 6672:
! 6673: amigaos*)
! 6674: library_names_spec='$libname.ixlibrary $libname.a'
! 6675: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 6676: 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'
! 6677: ;;
! 6678:
! 6679: beos*)
! 6680: library_names_spec='${libname}.so'
! 6681: dynamic_linker="$host_os ld.so"
! 6682: shlibpath_var=LIBRARY_PATH
! 6683: ;;
! 6684:
! 6685: bsdi4*)
! 6686: version_type=linux
! 6687: need_version=no
! 6688: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6689: soname_spec='${libname}${release}.so$major'
! 6690: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 6691: shlibpath_var=LD_LIBRARY_PATH
! 6692: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 6693: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 6694: export_dynamic_flag_spec=-rdynamic
! 6695: # the default ld.so.conf also contains /usr/contrib/lib and
! 6696: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 6697: # libtool to hard-code these into programs
! 6698: ;;
! 6699:
! 6700: cygwin* | mingw* | pw32*)
! 6701: version_type=windows
! 6702: need_version=no
! 6703: need_lib_prefix=no
! 6704: case $GCC,$host_os in
! 6705: yes,cygwin*)
! 6706: library_names_spec='$libname.dll.a'
! 6707: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 6708: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
! 6709: dldir=$destdir/`dirname \$dlpath`~
! 6710: test -d \$dldir || mkdir -p \$dldir~
! 6711: $install_prog .libs/$dlname \$dldir/$dlname'
! 6712: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 6713: dlpath=$dir/\$dldll~
! 6714: $rm \$dlpath'
! 6715: ;;
! 6716: yes,mingw*)
! 6717: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 6718: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
! 6719: ;;
! 6720: yes,pw32*)
! 6721: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
! 6722: ;;
! 6723: *)
! 6724: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
! 6725: ;;
! 6726: esac
! 6727: dynamic_linker='Win32 ld.exe'
! 6728: # FIXME: first we should search . and the directory the executable is in
! 6729: shlibpath_var=PATH
! 6730: ;;
! 6731:
! 6732: darwin* | rhapsody*)
! 6733: dynamic_linker="$host_os dyld"
! 6734: version_type=darwin
! 6735: need_lib_prefix=no
! 6736: need_version=no
! 6737: # FIXME: Relying on posixy $() will cause problems for
! 6738: # cross-compilation, but unfortunately the echo tests do not
! 6739: # yet detect zsh echo's removal of \ escapes.
! 6740: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
! 6741: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
! 6742: shlibpath_overrides_runpath=yes
! 6743: shlibpath_var=DYLD_LIBRARY_PATH
! 6744: ;;
! 6745:
! 6746: freebsd1*)
! 6747: dynamic_linker=no
! 6748: ;;
! 6749:
! 6750: freebsd*)
! 6751: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 6752: version_type=freebsd-$objformat
! 6753: case $version_type in
! 6754: freebsd-elf*)
! 6755: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 6756: need_version=no
! 6757: need_lib_prefix=no
! 6758: ;;
! 6759: freebsd-*)
! 6760: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
! 6761: need_version=yes
! 6762: ;;
! 6763: esac
! 6764: shlibpath_var=LD_LIBRARY_PATH
! 6765: case $host_os in
! 6766: freebsd2*)
! 6767: shlibpath_overrides_runpath=yes
! 6768: ;;
! 6769: *)
! 6770: shlibpath_overrides_runpath=no
! 6771: hardcode_into_libs=yes
! 6772: ;;
! 6773: esac
! 6774: ;;
! 6775:
! 6776: gnu*)
! 6777: version_type=linux
! 6778: need_lib_prefix=no
! 6779: need_version=no
! 6780: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
! 6781: soname_spec='${libname}${release}.so$major'
! 6782: shlibpath_var=LD_LIBRARY_PATH
! 6783: hardcode_into_libs=yes
! 6784: ;;
! 6785:
! 6786: hpux9* | hpux10* | hpux11*)
! 6787: # Give a soname corresponding to the major version so that dld.sl refuses to
! 6788: # link against other versions.
! 6789: dynamic_linker="$host_os dld.sl"
! 6790: version_type=sunos
! 6791: need_lib_prefix=no
! 6792: need_version=no
! 6793: shlibpath_var=SHLIB_PATH
! 6794: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 6795: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
! 6796: soname_spec='${libname}${release}.sl$major'
! 6797: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 6798: postinstall_cmds='chmod 555 $lib'
! 6799: ;;
! 6800:
! 6801: irix5* | irix6* | nonstopux*)
! 6802: case $host_os in
! 6803: nonstopux*) version_type=nonstopux ;;
! 6804: *) version_type=irix ;;
! 6805: esac
! 6806: need_lib_prefix=no
! 6807: need_version=no
! 6808: soname_spec='${libname}${release}.so$major'
! 6809: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
! 6810: case $host_os in
! 6811: irix5* | nonstopux*)
! 6812: libsuff= shlibsuff=
! 6813: ;;
! 6814: *)
! 6815: case $LD in # libtool.m4 will add one of these switches to LD
! 6816: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
! 6817: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
! 6818: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 6819: *) libsuff= shlibsuff= libmagic=never-match;;
! 6820: esac
! 6821: ;;
! 6822: esac
! 6823: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 6824: shlibpath_overrides_runpath=no
! 6825: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 6826: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 6827: ;;
! 6828:
! 6829: # No shared lib support for Linux oldld, aout, or coff.
! 6830: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
! 6831: dynamic_linker=no
! 6832: ;;
! 6833:
! 6834: # This must be Linux ELF.
! 6835: linux-gnu*)
! 6836: version_type=linux
! 6837: need_lib_prefix=no
! 6838: need_version=no
! 6839: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6840: soname_spec='${libname}${release}.so$major'
! 6841: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 6842: shlibpath_var=LD_LIBRARY_PATH
! 6843: shlibpath_overrides_runpath=no
! 6844: # This implies no fast_install, which is unacceptable.
! 6845: # Some rework will be needed to allow for fast_install
! 6846: # before this can be enabled.
! 6847: hardcode_into_libs=yes
! 6848:
! 6849: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 6850: # powerpc, because MkLinux only supported shared libraries with the
! 6851: # GNU dynamic linker. Since this was broken with cross compilers,
! 6852: # most powerpc-linux boxes support dynamic linking these days and
! 6853: # people can always --disable-shared, the test was removed, and we
! 6854: # assume the GNU/Linux dynamic linker is in use.
! 6855: dynamic_linker='GNU/Linux ld.so'
! 6856: ;;
! 6857:
! 6858: netbsd*)
! 6859: version_type=sunos
! 6860: need_lib_prefix=no
! 6861: need_version=no
! 6862: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6863: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6864: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 6865: dynamic_linker='NetBSD (a.out) ld.so'
! 6866: else
! 6867: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
! 6868: soname_spec='${libname}${release}.so$major'
! 6869: dynamic_linker='NetBSD ld.elf_so'
! 6870: fi
! 6871: shlibpath_var=LD_LIBRARY_PATH
! 6872: shlibpath_overrides_runpath=yes
! 6873: hardcode_into_libs=yes
! 6874: ;;
! 6875:
! 6876: newsos6)
! 6877: version_type=linux
! 6878: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6879: shlibpath_var=LD_LIBRARY_PATH
! 6880: shlibpath_overrides_runpath=yes
! 6881: ;;
! 6882:
! 6883: openbsd*)
! 6884: version_type=sunos
! 6885: need_lib_prefix=no
! 6886: need_version=no
! 6887: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 6888: case "$host_os" in
! 6889: openbsd2.[89] | openbsd2.[89].*)
! 6890: shlibpath_overrides_runpath=no
! 6891: ;;
! 6892: *)
! 6893: shlibpath_overrides_runpath=yes
! 6894: ;;
! 6895: esac
! 6896: else
! 6897: shlibpath_overrides_runpath=yes
! 6898: fi
! 6899: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6900: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 6901: shlibpath_var=LD_LIBRARY_PATH
! 6902: ;;
! 6903:
! 6904: os2*)
! 6905: libname_spec='$name'
! 6906: need_lib_prefix=no
! 6907: library_names_spec='$libname.dll $libname.a'
! 6908: dynamic_linker='OS/2 ld.exe'
! 6909: shlibpath_var=LIBPATH
! 6910: ;;
! 6911:
! 6912: osf3* | osf4* | osf5*)
! 6913: version_type=osf
! 6914: need_version=no
! 6915: soname_spec='${libname}${release}.so$major'
! 6916: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6917: shlibpath_var=LD_LIBRARY_PATH
! 6918: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 6919: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 6920: hardcode_into_libs=yes
! 6921: ;;
! 6922:
! 6923: sco3.2v5*)
! 6924: version_type=osf
! 6925: soname_spec='${libname}${release}.so$major'
! 6926: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6927: shlibpath_var=LD_LIBRARY_PATH
! 6928: ;;
! 6929:
! 6930: solaris*)
! 6931: version_type=linux
! 6932: need_lib_prefix=no
! 6933: need_version=no
! 6934: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6935: soname_spec='${libname}${release}.so$major'
! 6936: shlibpath_var=LD_LIBRARY_PATH
! 6937: shlibpath_overrides_runpath=yes
! 6938: hardcode_into_libs=yes
! 6939: # ldd complains unless libraries are executable
! 6940: postinstall_cmds='chmod +x $lib'
! 6941: ;;
! 6942:
! 6943: sunos4*)
! 6944: version_type=sunos
! 6945: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6946: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 6947: shlibpath_var=LD_LIBRARY_PATH
! 6948: shlibpath_overrides_runpath=yes
! 6949: if test "$with_gnu_ld" = yes; then
! 6950: need_lib_prefix=no
! 6951: fi
! 6952: need_version=yes
! 6953: ;;
! 6954:
! 6955: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 6956: version_type=linux
! 6957: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6958: soname_spec='${libname}${release}.so$major'
! 6959: shlibpath_var=LD_LIBRARY_PATH
! 6960: case $host_vendor in
! 6961: sni)
! 6962: shlibpath_overrides_runpath=no
! 6963: need_lib_prefix=no
! 6964: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 6965: runpath_var=LD_RUN_PATH
! 6966: ;;
! 6967: siemens)
! 6968: need_lib_prefix=no
! 6969: ;;
! 6970: motorola)
! 6971: need_lib_prefix=no
! 6972: need_version=no
! 6973: shlibpath_overrides_runpath=no
! 6974: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 6975: ;;
! 6976: esac
! 6977: ;;
! 6978:
! 6979: uts4*)
! 6980: version_type=linux
! 6981: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6982: soname_spec='${libname}${release}.so$major'
! 6983: shlibpath_var=LD_LIBRARY_PATH
! 6984: ;;
! 6985:
! 6986: dgux*)
! 6987: version_type=linux
! 6988: need_lib_prefix=no
! 6989: need_version=no
! 6990: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6991: soname_spec='${libname}${release}.so$major'
! 6992: shlibpath_var=LD_LIBRARY_PATH
! 6993: ;;
! 6994:
! 6995: sysv4*MP*)
! 6996: if test -d /usr/nec ;then
! 6997: version_type=linux
! 6998: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
! 6999: soname_spec='$libname.so.$major'
! 7000: shlibpath_var=LD_LIBRARY_PATH
! 7001: fi
! 7002: ;;
! 7003:
! 7004: *)
! 7005: dynamic_linker=no
! 7006: ;;
! 7007: esac
! 7008: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 7009: echo "${ECHO_T}$dynamic_linker" >&6
! 7010: test "$dynamic_linker" = no && can_build_shared=no
! 7011:
! 7012: # Report the final consequences.
! 7013: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 7014: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 7015: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 7016: echo "${ECHO_T}$can_build_shared" >&6
! 7017:
! 7018: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 7019: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 7020: test "$can_build_shared" = "no" && enable_shared=no
! 7021:
! 7022: # On AIX, shared libraries and static libraries use the same namespace, and
! 7023: # are all built from PIC.
! 7024: case "$host_os" in
! 7025: aix3*)
! 7026: test "$enable_shared" = yes && enable_static=no
! 7027: if test -n "$RANLIB"; then
! 7028: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 7029: postinstall_cmds='$RANLIB $lib'
! 7030: fi
! 7031: ;;
! 7032:
! 7033: aix4*)
! 7034: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 7035: test "$enable_shared" = yes && enable_static=no
! 7036: fi
! 7037: ;;
! 7038: esac
! 7039: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 7040: echo "${ECHO_T}$enable_shared" >&6
! 7041:
! 7042: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 7043: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 7044: # Make sure either enable_shared or enable_static is yes.
! 7045: test "$enable_shared" = yes || enable_static=yes
! 7046: echo "$as_me:$LINENO: result: $enable_static" >&5
! 7047: echo "${ECHO_T}$enable_static" >&6
! 7048:
! 7049: if test "$hardcode_action" = relink; then
! 7050: # Fast installation is not supported
! 7051: enable_fast_install=no
! 7052: elif test "$shlibpath_overrides_runpath" = yes ||
! 7053: test "$enable_shared" = no; then
! 7054: # Fast installation is not necessary
! 7055: enable_fast_install=needless
! 7056: fi
! 7057:
! 7058: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 7059: if test "$GCC" = yes; then
! 7060: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 7061: fi
! 7062:
! 7063: if test "x$enable_dlopen" != xyes; then
! 7064: enable_dlopen=unknown
! 7065: enable_dlopen_self=unknown
! 7066: enable_dlopen_self_static=unknown
! 7067: else
! 7068: lt_cv_dlopen=no
! 7069: lt_cv_dlopen_libs=
! 7070:
! 7071: case $host_os in
! 7072: beos*)
! 7073: lt_cv_dlopen="load_add_on"
! 7074: lt_cv_dlopen_libs=
! 7075: lt_cv_dlopen_self=yes
! 7076: ;;
! 7077:
! 7078: cygwin* | mingw* | pw32*)
! 7079: lt_cv_dlopen="LoadLibrary"
! 7080: lt_cv_dlopen_libs=
! 7081: ;;
! 7082:
! 7083: *)
! 7084: echo "$as_me:$LINENO: checking for shl_load" >&5
! 7085: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 7086: if test "${ac_cv_func_shl_load+set}" = set; then
! 7087: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7088: else
! 7089: cat >conftest.$ac_ext <<_ACEOF
! 7090: #line $LINENO "configure"
! 7091: /* confdefs.h. */
! 7092: _ACEOF
! 7093: cat confdefs.h >>conftest.$ac_ext
! 7094: cat >>conftest.$ac_ext <<_ACEOF
! 7095: /* end confdefs.h. */
! 7096: /* System header to define __stub macros and hopefully few prototypes,
! 7097: which can conflict with char shl_load (); below.
! 7098: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7099: <limits.h> exists even on freestanding compilers. */
! 7100: #ifdef __STDC__
! 7101: # include <limits.h>
! 7102: #else
! 7103: # include <assert.h>
! 7104: #endif
! 7105: /* Override any gcc2 internal prototype to avoid an error. */
! 7106: #ifdef __cplusplus
! 7107: extern "C"
! 7108: {
! 7109: #endif
! 7110: /* We use char because int might match the return type of a gcc2
! 7111: builtin and then its argument prototype would still apply. */
! 7112: char shl_load ();
! 7113: /* The GNU C library defines this for functions which it implements
! 7114: to always fail with ENOSYS. Some functions are actually named
! 7115: something starting with __ and the normal name is an alias. */
! 7116: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 7117: choke me
! 7118: #else
! 7119: char (*f) () = shl_load;
! 7120: #endif
! 7121: #ifdef __cplusplus
! 7122: }
! 7123: #endif
! 7124:
! 7125: int
! 7126: main ()
! 7127: {
! 7128: return f != shl_load;
! 7129: ;
! 7130: return 0;
! 7131: }
! 7132: _ACEOF
! 7133: rm -f conftest.$ac_objext conftest$ac_exeext
! 7134: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7135: (eval $ac_link) 2>&5
! 7136: ac_status=$?
! 7137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7138: (exit $ac_status); } &&
! 7139: { ac_try='test -s conftest$ac_exeext'
! 7140: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7141: (eval $ac_try) 2>&5
! 7142: ac_status=$?
! 7143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7144: (exit $ac_status); }; }; then
! 7145: ac_cv_func_shl_load=yes
! 7146: else
! 7147: echo "$as_me: failed program was:" >&5
! 7148: sed 's/^/| /' conftest.$ac_ext >&5
! 7149:
! 7150: ac_cv_func_shl_load=no
! 7151: fi
! 7152: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7153: fi
! 7154: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 7155: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 7156: if test $ac_cv_func_shl_load = yes; then
! 7157: lt_cv_dlopen="shl_load"
! 7158: else
! 7159: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 7160: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 7161: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 7162: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7163: else
! 7164: ac_check_lib_save_LIBS=$LIBS
! 7165: LIBS="-ldld $LIBS"
! 7166: cat >conftest.$ac_ext <<_ACEOF
! 7167: #line $LINENO "configure"
! 7168: /* confdefs.h. */
! 7169: _ACEOF
! 7170: cat confdefs.h >>conftest.$ac_ext
! 7171: cat >>conftest.$ac_ext <<_ACEOF
! 7172: /* end confdefs.h. */
! 7173:
! 7174: /* Override any gcc2 internal prototype to avoid an error. */
! 7175: #ifdef __cplusplus
! 7176: extern "C"
! 7177: #endif
! 7178: /* We use char because int might match the return type of a gcc2
! 7179: builtin and then its argument prototype would still apply. */
! 7180: char shl_load ();
! 7181: int
! 7182: main ()
! 7183: {
! 7184: shl_load ();
! 7185: ;
! 7186: return 0;
! 7187: }
! 7188: _ACEOF
! 7189: rm -f conftest.$ac_objext conftest$ac_exeext
! 7190: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7191: (eval $ac_link) 2>&5
! 7192: ac_status=$?
! 7193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7194: (exit $ac_status); } &&
! 7195: { ac_try='test -s conftest$ac_exeext'
! 7196: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7197: (eval $ac_try) 2>&5
! 7198: ac_status=$?
! 7199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7200: (exit $ac_status); }; }; then
! 7201: ac_cv_lib_dld_shl_load=yes
! 7202: else
! 7203: echo "$as_me: failed program was:" >&5
! 7204: sed 's/^/| /' conftest.$ac_ext >&5
! 7205:
! 7206: ac_cv_lib_dld_shl_load=no
! 7207: fi
! 7208: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7209: LIBS=$ac_check_lib_save_LIBS
! 7210: fi
! 7211: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 7212: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 7213: if test $ac_cv_lib_dld_shl_load = yes; then
! 7214: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 7215: else
! 7216: echo "$as_me:$LINENO: checking for dlopen" >&5
! 7217: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 7218: if test "${ac_cv_func_dlopen+set}" = set; then
! 7219: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7220: else
! 7221: cat >conftest.$ac_ext <<_ACEOF
! 7222: #line $LINENO "configure"
! 7223: /* confdefs.h. */
! 7224: _ACEOF
! 7225: cat confdefs.h >>conftest.$ac_ext
! 7226: cat >>conftest.$ac_ext <<_ACEOF
! 7227: /* end confdefs.h. */
! 7228: /* System header to define __stub macros and hopefully few prototypes,
! 7229: which can conflict with char dlopen (); below.
! 7230: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7231: <limits.h> exists even on freestanding compilers. */
! 7232: #ifdef __STDC__
! 7233: # include <limits.h>
! 7234: #else
! 7235: # include <assert.h>
! 7236: #endif
! 7237: /* Override any gcc2 internal prototype to avoid an error. */
! 7238: #ifdef __cplusplus
! 7239: extern "C"
! 7240: {
! 7241: #endif
! 7242: /* We use char because int might match the return type of a gcc2
! 7243: builtin and then its argument prototype would still apply. */
! 7244: char dlopen ();
! 7245: /* The GNU C library defines this for functions which it implements
! 7246: to always fail with ENOSYS. Some functions are actually named
! 7247: something starting with __ and the normal name is an alias. */
! 7248: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 7249: choke me
! 7250: #else
! 7251: char (*f) () = dlopen;
! 7252: #endif
! 7253: #ifdef __cplusplus
! 7254: }
! 7255: #endif
! 7256:
! 7257: int
! 7258: main ()
! 7259: {
! 7260: return f != dlopen;
! 7261: ;
! 7262: return 0;
! 7263: }
! 7264: _ACEOF
! 7265: rm -f conftest.$ac_objext conftest$ac_exeext
! 7266: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7267: (eval $ac_link) 2>&5
! 7268: ac_status=$?
! 7269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7270: (exit $ac_status); } &&
! 7271: { ac_try='test -s conftest$ac_exeext'
! 7272: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7273: (eval $ac_try) 2>&5
! 7274: ac_status=$?
! 7275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7276: (exit $ac_status); }; }; then
! 7277: ac_cv_func_dlopen=yes
! 7278: else
! 7279: echo "$as_me: failed program was:" >&5
! 7280: sed 's/^/| /' conftest.$ac_ext >&5
! 7281:
! 7282: ac_cv_func_dlopen=no
! 7283: fi
! 7284: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7285: fi
! 7286: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 7287: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 7288: if test $ac_cv_func_dlopen = yes; then
! 7289: lt_cv_dlopen="dlopen"
! 7290: else
! 7291: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 7292: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 7293: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 7294: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7295: else
! 7296: ac_check_lib_save_LIBS=$LIBS
! 7297: LIBS="-ldl $LIBS"
! 7298: cat >conftest.$ac_ext <<_ACEOF
! 7299: #line $LINENO "configure"
! 7300: /* confdefs.h. */
! 7301: _ACEOF
! 7302: cat confdefs.h >>conftest.$ac_ext
! 7303: cat >>conftest.$ac_ext <<_ACEOF
! 7304: /* end confdefs.h. */
! 7305:
! 7306: /* Override any gcc2 internal prototype to avoid an error. */
! 7307: #ifdef __cplusplus
! 7308: extern "C"
! 7309: #endif
! 7310: /* We use char because int might match the return type of a gcc2
! 7311: builtin and then its argument prototype would still apply. */
! 7312: char dlopen ();
! 7313: int
! 7314: main ()
! 7315: {
! 7316: dlopen ();
! 7317: ;
! 7318: return 0;
! 7319: }
! 7320: _ACEOF
! 7321: rm -f conftest.$ac_objext conftest$ac_exeext
! 7322: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7323: (eval $ac_link) 2>&5
! 7324: ac_status=$?
! 7325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7326: (exit $ac_status); } &&
! 7327: { ac_try='test -s conftest$ac_exeext'
! 7328: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7329: (eval $ac_try) 2>&5
! 7330: ac_status=$?
! 7331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7332: (exit $ac_status); }; }; then
! 7333: ac_cv_lib_dl_dlopen=yes
! 7334: else
! 7335: echo "$as_me: failed program was:" >&5
! 7336: sed 's/^/| /' conftest.$ac_ext >&5
! 7337:
! 7338: ac_cv_lib_dl_dlopen=no
! 7339: fi
! 7340: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7341: LIBS=$ac_check_lib_save_LIBS
! 7342: fi
! 7343: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 7344: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 7345: if test $ac_cv_lib_dl_dlopen = yes; then
! 7346: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 7347: else
! 7348: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 7349: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 7350: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 7351: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7352: else
! 7353: ac_check_lib_save_LIBS=$LIBS
! 7354: LIBS="-lsvld $LIBS"
! 7355: cat >conftest.$ac_ext <<_ACEOF
! 7356: #line $LINENO "configure"
! 7357: /* confdefs.h. */
! 7358: _ACEOF
! 7359: cat confdefs.h >>conftest.$ac_ext
! 7360: cat >>conftest.$ac_ext <<_ACEOF
! 7361: /* end confdefs.h. */
! 7362:
! 7363: /* Override any gcc2 internal prototype to avoid an error. */
! 7364: #ifdef __cplusplus
! 7365: extern "C"
! 7366: #endif
! 7367: /* We use char because int might match the return type of a gcc2
! 7368: builtin and then its argument prototype would still apply. */
! 7369: char dlopen ();
! 7370: int
! 7371: main ()
! 7372: {
! 7373: dlopen ();
! 7374: ;
! 7375: return 0;
! 7376: }
! 7377: _ACEOF
! 7378: rm -f conftest.$ac_objext conftest$ac_exeext
! 7379: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7380: (eval $ac_link) 2>&5
! 7381: ac_status=$?
! 7382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7383: (exit $ac_status); } &&
! 7384: { ac_try='test -s conftest$ac_exeext'
! 7385: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7386: (eval $ac_try) 2>&5
! 7387: ac_status=$?
! 7388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7389: (exit $ac_status); }; }; then
! 7390: ac_cv_lib_svld_dlopen=yes
! 7391: else
! 7392: echo "$as_me: failed program was:" >&5
! 7393: sed 's/^/| /' conftest.$ac_ext >&5
! 7394:
! 7395: ac_cv_lib_svld_dlopen=no
! 7396: fi
! 7397: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7398: LIBS=$ac_check_lib_save_LIBS
! 7399: fi
! 7400: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 7401: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 7402: if test $ac_cv_lib_svld_dlopen = yes; then
! 7403: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 7404: else
! 7405: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 7406: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 7407: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 7408: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7409: else
! 7410: ac_check_lib_save_LIBS=$LIBS
! 7411: LIBS="-ldld $LIBS"
! 7412: cat >conftest.$ac_ext <<_ACEOF
! 7413: #line $LINENO "configure"
! 7414: /* confdefs.h. */
! 7415: _ACEOF
! 7416: cat confdefs.h >>conftest.$ac_ext
! 7417: cat >>conftest.$ac_ext <<_ACEOF
! 7418: /* end confdefs.h. */
! 7419:
! 7420: /* Override any gcc2 internal prototype to avoid an error. */
! 7421: #ifdef __cplusplus
! 7422: extern "C"
! 7423: #endif
! 7424: /* We use char because int might match the return type of a gcc2
! 7425: builtin and then its argument prototype would still apply. */
! 7426: char dld_link ();
! 7427: int
! 7428: main ()
! 7429: {
! 7430: dld_link ();
! 7431: ;
! 7432: return 0;
! 7433: }
! 7434: _ACEOF
! 7435: rm -f conftest.$ac_objext conftest$ac_exeext
! 7436: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7437: (eval $ac_link) 2>&5
! 7438: ac_status=$?
! 7439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7440: (exit $ac_status); } &&
! 7441: { ac_try='test -s conftest$ac_exeext'
! 7442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7443: (eval $ac_try) 2>&5
! 7444: ac_status=$?
! 7445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7446: (exit $ac_status); }; }; then
! 7447: ac_cv_lib_dld_dld_link=yes
! 7448: else
! 7449: echo "$as_me: failed program was:" >&5
! 7450: sed 's/^/| /' conftest.$ac_ext >&5
! 7451:
! 7452: ac_cv_lib_dld_dld_link=no
! 7453: fi
! 7454: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7455: LIBS=$ac_check_lib_save_LIBS
! 7456: fi
! 7457: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 7458: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 7459: if test $ac_cv_lib_dld_dld_link = yes; then
! 7460: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 7461: fi
! 7462:
! 7463:
! 7464: fi
! 7465:
! 7466:
! 7467: fi
! 7468:
! 7469:
! 7470: fi
! 7471:
! 7472:
! 7473: fi
! 7474:
! 7475:
! 7476: fi
! 7477:
! 7478: ;;
! 7479: esac
! 7480:
! 7481: if test "x$lt_cv_dlopen" != xno; then
! 7482: enable_dlopen=yes
! 7483: else
! 7484: enable_dlopen=no
! 7485: fi
! 7486:
! 7487: case $lt_cv_dlopen in
! 7488: dlopen)
! 7489: save_CPPFLAGS="$CPPFLAGS"
! 7490: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 7491:
! 7492: save_LDFLAGS="$LDFLAGS"
! 7493: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 7494:
! 7495: save_LIBS="$LIBS"
! 7496: LIBS="$lt_cv_dlopen_libs $LIBS"
! 7497:
! 7498: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 7499: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 7500: if test "${lt_cv_dlopen_self+set}" = set; then
! 7501: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7502: else
! 7503: if test "$cross_compiling" = yes; then :
! 7504: lt_cv_dlopen_self=cross
! 7505: else
! 7506: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7507: lt_status=$lt_dlunknown
! 7508: cat > conftest.$ac_ext <<EOF
! 7509: #line 7509 "configure"
! 7510: #include "confdefs.h"
! 7511:
! 7512: #if HAVE_DLFCN_H
! 7513: #include <dlfcn.h>
! 7514: #endif
! 7515:
! 7516: #include <stdio.h>
! 7517:
! 7518: #ifdef RTLD_GLOBAL
! 7519: # define LT_DLGLOBAL RTLD_GLOBAL
! 7520: #else
! 7521: # ifdef DL_GLOBAL
! 7522: # define LT_DLGLOBAL DL_GLOBAL
! 7523: # else
! 7524: # define LT_DLGLOBAL 0
! 7525: # endif
! 7526: #endif
! 7527:
! 7528: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7529: find out it does not work in some platform. */
! 7530: #ifndef LT_DLLAZY_OR_NOW
! 7531: # ifdef RTLD_LAZY
! 7532: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7533: # else
! 7534: # ifdef DL_LAZY
! 7535: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7536: # else
! 7537: # ifdef RTLD_NOW
! 7538: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7539: # else
! 7540: # ifdef DL_NOW
! 7541: # define LT_DLLAZY_OR_NOW DL_NOW
! 7542: # else
! 7543: # define LT_DLLAZY_OR_NOW 0
! 7544: # endif
! 7545: # endif
! 7546: # endif
! 7547: # endif
! 7548: #endif
! 7549:
! 7550: #ifdef __cplusplus
! 7551: extern "C" void exit (int);
! 7552: #endif
! 7553:
! 7554: void fnord() { int i=42;}
! 7555: int main ()
! 7556: {
! 7557: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7558: int status = $lt_dlunknown;
! 7559:
! 7560: if (self)
! 7561: {
! 7562: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7563: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7564: /* dlclose (self); */
! 7565: }
! 7566:
! 7567: exit (status);
! 7568: }
! 7569: EOF
! 7570: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7571: (eval $ac_link) 2>&5
! 7572: ac_status=$?
! 7573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7574: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7575: (./conftest; exit; ) 2>/dev/null
! 7576: lt_status=$?
! 7577: case x$lt_status in
! 7578: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 7579: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 7580: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 7581: esac
! 7582: else :
! 7583: # compilation failed
! 7584: lt_cv_dlopen_self=no
! 7585: fi
! 7586: fi
! 7587: rm -fr conftest*
! 7588:
! 7589:
! 7590: fi
! 7591: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 7592: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 7593:
! 7594: if test "x$lt_cv_dlopen_self" = xyes; then
! 7595: LDFLAGS="$LDFLAGS $link_static_flag"
! 7596: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 7597: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 7598: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 7599: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7600: else
! 7601: if test "$cross_compiling" = yes; then :
! 7602: lt_cv_dlopen_self_static=cross
! 7603: else
! 7604: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7605: lt_status=$lt_dlunknown
! 7606: cat > conftest.$ac_ext <<EOF
! 7607: #line 7607 "configure"
! 7608: #include "confdefs.h"
! 7609:
! 7610: #if HAVE_DLFCN_H
! 7611: #include <dlfcn.h>
! 7612: #endif
! 7613:
! 7614: #include <stdio.h>
! 7615:
! 7616: #ifdef RTLD_GLOBAL
! 7617: # define LT_DLGLOBAL RTLD_GLOBAL
! 7618: #else
! 7619: # ifdef DL_GLOBAL
! 7620: # define LT_DLGLOBAL DL_GLOBAL
! 7621: # else
! 7622: # define LT_DLGLOBAL 0
! 7623: # endif
! 7624: #endif
! 7625:
! 7626: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7627: find out it does not work in some platform. */
! 7628: #ifndef LT_DLLAZY_OR_NOW
! 7629: # ifdef RTLD_LAZY
! 7630: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7631: # else
! 7632: # ifdef DL_LAZY
! 7633: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7634: # else
! 7635: # ifdef RTLD_NOW
! 7636: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7637: # else
! 7638: # ifdef DL_NOW
! 7639: # define LT_DLLAZY_OR_NOW DL_NOW
! 7640: # else
! 7641: # define LT_DLLAZY_OR_NOW 0
! 7642: # endif
! 7643: # endif
! 7644: # endif
! 7645: # endif
! 7646: #endif
! 7647:
! 7648: #ifdef __cplusplus
! 7649: extern "C" void exit (int);
! 7650: #endif
! 7651:
! 7652: void fnord() { int i=42;}
! 7653: int main ()
! 7654: {
! 7655: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7656: int status = $lt_dlunknown;
! 7657:
! 7658: if (self)
! 7659: {
! 7660: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7661: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7662: /* dlclose (self); */
! 7663: }
! 7664:
! 7665: exit (status);
! 7666: }
1.1 parser 7667: EOF
1.10 ! paf 7668: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7669: (eval $ac_link) 2>&5
! 7670: ac_status=$?
! 7671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7672: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7673: (./conftest; exit; ) 2>/dev/null
! 7674: lt_status=$?
! 7675: case x$lt_status in
! 7676: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 7677: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 7678: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 7679: esac
! 7680: else :
! 7681: # compilation failed
! 7682: lt_cv_dlopen_self_static=no
! 7683: fi
! 7684: fi
! 7685: rm -fr conftest*
! 7686:
! 7687:
! 7688: fi
! 7689: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 7690: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 7691: fi
! 7692:
! 7693: CPPFLAGS="$save_CPPFLAGS"
! 7694: LDFLAGS="$save_LDFLAGS"
! 7695: LIBS="$save_LIBS"
! 7696: ;;
! 7697: esac
! 7698:
! 7699: case $lt_cv_dlopen_self in
! 7700: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 7701: *) enable_dlopen_self=unknown ;;
! 7702: esac
! 7703:
! 7704: case $lt_cv_dlopen_self_static in
! 7705: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 7706: *) enable_dlopen_self_static=unknown ;;
! 7707: esac
! 7708: fi
! 7709:
! 7710:
! 7711: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 7712: case $archive_cmds in
! 7713: *'~'*)
! 7714: # FIXME: we may have to deal with multi-command sequences.
! 7715: ;;
! 7716: '$CC '*)
! 7717: # Test whether the compiler implicitly links with -lc since on some
! 7718: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 7719: # to ld, don't add -lc before -lgcc.
! 7720: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 7721: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 7722: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
! 7723: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7724: else
! 7725: $rm conftest*
! 7726: echo 'static int dummy;' > conftest.$ac_ext
! 7727:
! 7728: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7729: (eval $ac_compile) 2>&5
! 7730: ac_status=$?
! 7731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7732: (exit $ac_status); }; then
! 7733: soname=conftest
! 7734: lib=conftest
! 7735: libobjs=conftest.$ac_objext
! 7736: deplibs=
! 7737: wl=$lt_cv_prog_cc_wl
! 7738: compiler_flags=-v
! 7739: linker_flags=-v
! 7740: verstring=
! 7741: output_objdir=.
! 7742: libname=conftest
! 7743: save_allow_undefined_flag=$allow_undefined_flag
! 7744: allow_undefined_flag=
! 7745: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 7746: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 7747: ac_status=$?
! 7748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7749: (exit $ac_status); }
! 7750: then
! 7751: lt_cv_archive_cmds_need_lc=no
! 7752: else
! 7753: lt_cv_archive_cmds_need_lc=yes
! 7754: fi
! 7755: allow_undefined_flag=$save_allow_undefined_flag
! 7756: else
! 7757: cat conftest.err 1>&5
! 7758: fi
! 7759: fi
! 7760:
! 7761: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
! 7762: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
! 7763: ;;
! 7764: esac
! 7765: fi
! 7766: need_lc=${lt_cv_archive_cmds_need_lc-yes}
! 7767:
! 7768: # The second clause should only fire when bootstrapping the
! 7769: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 7770: # with your package, and you will get complaints that there are
! 7771: # no rules to generate ltmain.sh.
! 7772: if test -f "$ltmain"; then
1.1 parser 7773: :
7774: else
1.10 ! paf 7775: # If there is no Makefile yet, we rely on a make rule to execute
! 7776: # `config.status --recheck' to rerun these tests and create the
! 7777: # libtool script then.
! 7778: test -f Makefile && make "$ltmain"
! 7779: fi
! 7780:
! 7781: if test -f "$ltmain"; then
! 7782: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
! 7783: $rm -f "${ofile}T"
! 7784:
! 7785: echo creating $ofile
! 7786:
! 7787: # Now quote all the things that may contain metacharacters while being
! 7788: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 7789: # variables and quote the copies for generation of the libtool script.
! 7790: for var in echo old_CC old_CFLAGS SED \
! 7791: AR AR_FLAGS CC LD LN_S NM SHELL \
! 7792: reload_flag reload_cmds wl \
! 7793: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
! 7794: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
! 7795: library_names_spec soname_spec \
! 7796: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
! 7797: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
! 7798: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
! 7799: old_striplib striplib file_magic_cmd export_symbols_cmds \
! 7800: deplibs_check_method allow_undefined_flag no_undefined_flag \
! 7801: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
! 7802: global_symbol_to_c_name_address \
! 7803: hardcode_libdir_flag_spec hardcode_libdir_separator \
! 7804: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 7805: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
! 7806:
! 7807: case $var in
! 7808: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
! 7809: old_postinstall_cmds | old_postuninstall_cmds | \
! 7810: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
! 7811: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
! 7812: postinstall_cmds | postuninstall_cmds | \
! 7813: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 7814: # Double-quote double-evaled strings.
! 7815: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 7816: ;;
! 7817: *)
! 7818: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 7819: ;;
! 7820: esac
! 7821: done
! 7822:
! 7823: cat <<__EOF__ > "${ofile}T"
! 7824: #! $SHELL
! 7825:
! 7826: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 7827: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 7828: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 7829: #
! 7830: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
! 7831: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 7832: #
! 7833: # This program is free software; you can redistribute it and/or modify
! 7834: # it under the terms of the GNU General Public License as published by
! 7835: # the Free Software Foundation; either version 2 of the License, or
! 7836: # (at your option) any later version.
! 7837: #
! 7838: # This program is distributed in the hope that it will be useful, but
! 7839: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 7840: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 7841: # General Public License for more details.
! 7842: #
! 7843: # You should have received a copy of the GNU General Public License
! 7844: # along with this program; if not, write to the Free Software
! 7845: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 7846: #
! 7847: # As a special exception to the GNU General Public License, if you
! 7848: # distribute this file as part of a program that contains a
! 7849: # configuration script generated by Autoconf, you may include it under
! 7850: # the same distribution terms that you use for the rest of that program.
! 7851:
! 7852: # A sed that does not truncate output.
! 7853: SED=$lt_SED
! 7854:
! 7855: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 7856: Xsed="${SED} -e s/^X//"
! 7857:
! 7858: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 7859: # if CDPATH is set.
! 7860: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 7861:
! 7862: # ### BEGIN LIBTOOL CONFIG
! 7863:
! 7864: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 7865:
! 7866: # Shell to use when invoking shell scripts.
! 7867: SHELL=$lt_SHELL
! 7868:
! 7869: # Whether or not to build shared libraries.
! 7870: build_libtool_libs=$enable_shared
! 7871:
! 7872: # Whether or not to build static libraries.
! 7873: build_old_libs=$enable_static
! 7874:
! 7875: # Whether or not to add -lc for building shared libraries.
! 7876: build_libtool_need_lc=$need_lc
! 7877:
! 7878: # Whether or not to optimize for fast installation.
! 7879: fast_install=$enable_fast_install
! 7880:
! 7881: # The host system.
! 7882: host_alias=$host_alias
! 7883: host=$host
! 7884:
! 7885: # An echo program that does not interpret backslashes.
! 7886: echo=$lt_echo
! 7887:
! 7888: # The archiver.
! 7889: AR=$lt_AR
! 7890: AR_FLAGS=$lt_AR_FLAGS
! 7891:
! 7892: # The default C compiler.
! 7893: CC=$lt_CC
! 7894:
! 7895: # Is the compiler the GNU C compiler?
! 7896: with_gcc=$GCC
! 7897:
! 7898: # The linker used to build libraries.
! 7899: LD=$lt_LD
! 7900:
! 7901: # Whether we need hard or soft links.
! 7902: LN_S=$lt_LN_S
! 7903:
! 7904: # A BSD-compatible nm program.
! 7905: NM=$lt_NM
! 7906:
! 7907: # A symbol stripping program
! 7908: STRIP=$STRIP
! 7909:
! 7910: # Used to examine libraries when file_magic_cmd begins "file"
! 7911: MAGIC_CMD=$MAGIC_CMD
! 7912:
! 7913: # Used on cygwin: DLL creation program.
! 7914: DLLTOOL="$DLLTOOL"
! 7915:
! 7916: # Used on cygwin: object dumper.
! 7917: OBJDUMP="$OBJDUMP"
! 7918:
! 7919: # Used on cygwin: assembler.
! 7920: AS="$AS"
! 7921:
! 7922: # The name of the directory that contains temporary libtool files.
! 7923: objdir=$objdir
! 7924:
! 7925: # How to create reloadable object files.
! 7926: reload_flag=$lt_reload_flag
! 7927: reload_cmds=$lt_reload_cmds
! 7928:
! 7929: # How to pass a linker flag through the compiler.
! 7930: wl=$lt_wl
! 7931:
! 7932: # Object file suffix (normally "o").
! 7933: objext="$ac_objext"
! 7934:
! 7935: # Old archive suffix (normally "a").
! 7936: libext="$libext"
! 7937:
! 7938: # Executable file suffix (normally "").
! 7939: exeext="$exeext"
! 7940:
! 7941: # Additional compiler flags for building library objects.
! 7942: pic_flag=$lt_pic_flag
! 7943: pic_mode=$pic_mode
! 7944:
! 7945: # Does compiler simultaneously support -c and -o options?
! 7946: compiler_c_o=$lt_compiler_c_o
! 7947:
! 7948: # Can we write directly to a .lo ?
! 7949: compiler_o_lo=$lt_compiler_o_lo
! 7950:
! 7951: # Must we lock files when doing compilation ?
! 7952: need_locks=$lt_need_locks
! 7953:
! 7954: # Do we need the lib prefix for modules?
! 7955: need_lib_prefix=$need_lib_prefix
! 7956:
! 7957: # Do we need a version for libraries?
! 7958: need_version=$need_version
! 7959:
! 7960: # Whether dlopen is supported.
! 7961: dlopen_support=$enable_dlopen
! 7962:
! 7963: # Whether dlopen of programs is supported.
! 7964: dlopen_self=$enable_dlopen_self
! 7965:
! 7966: # Whether dlopen of statically linked programs is supported.
! 7967: dlopen_self_static=$enable_dlopen_self_static
! 7968:
! 7969: # Compiler flag to prevent dynamic linking.
! 7970: link_static_flag=$lt_link_static_flag
! 7971:
! 7972: # Compiler flag to turn off builtin functions.
! 7973: no_builtin_flag=$lt_no_builtin_flag
! 7974:
! 7975: # Compiler flag to allow reflexive dlopens.
! 7976: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
! 7977:
! 7978: # Compiler flag to generate shared objects directly from archives.
! 7979: whole_archive_flag_spec=$lt_whole_archive_flag_spec
! 7980:
! 7981: # Compiler flag to generate thread-safe objects.
! 7982: thread_safe_flag_spec=$lt_thread_safe_flag_spec
! 7983:
! 7984: # Library versioning type.
! 7985: version_type=$version_type
! 7986:
! 7987: # Format of library name prefix.
! 7988: libname_spec=$lt_libname_spec
! 7989:
! 7990: # List of archive names. First name is the real one, the rest are links.
! 7991: # The last name is the one that the linker finds with -lNAME.
! 7992: library_names_spec=$lt_library_names_spec
! 7993:
! 7994: # The coded name of the library, if different from the real name.
! 7995: soname_spec=$lt_soname_spec
! 7996:
! 7997: # Commands used to build and install an old-style archive.
! 7998: RANLIB=$lt_RANLIB
! 7999: old_archive_cmds=$lt_old_archive_cmds
! 8000: old_postinstall_cmds=$lt_old_postinstall_cmds
! 8001: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 8002:
! 8003: # Create an old-style archive from a shared archive.
! 8004: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
! 8005:
! 8006: # Create a temporary old-style archive to link instead of a shared archive.
! 8007: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
! 8008:
! 8009: # Commands used to build and install a shared archive.
! 8010: archive_cmds=$lt_archive_cmds
! 8011: archive_expsym_cmds=$lt_archive_expsym_cmds
! 8012: postinstall_cmds=$lt_postinstall_cmds
! 8013: postuninstall_cmds=$lt_postuninstall_cmds
! 8014:
! 8015: # Commands to strip libraries.
! 8016: old_striplib=$lt_old_striplib
! 8017: striplib=$lt_striplib
! 8018:
! 8019: # Method to check whether dependent libraries are shared objects.
! 8020: deplibs_check_method=$lt_deplibs_check_method
! 8021:
! 8022: # Command to use when deplibs_check_method == file_magic.
! 8023: file_magic_cmd=$lt_file_magic_cmd
! 8024:
! 8025: # Flag that allows shared libraries with undefined symbols to be built.
! 8026: allow_undefined_flag=$lt_allow_undefined_flag
! 8027:
! 8028: # Flag that forces no undefined symbols.
! 8029: no_undefined_flag=$lt_no_undefined_flag
! 8030:
! 8031: # Commands used to finish a libtool library installation in a directory.
! 8032: finish_cmds=$lt_finish_cmds
! 8033:
! 8034: # Same as above, but a single script fragment to be evaled but not shown.
! 8035: finish_eval=$lt_finish_eval
! 8036:
! 8037: # Take the output of nm and produce a listing of raw symbols and C names.
! 8038: global_symbol_pipe=$lt_global_symbol_pipe
! 8039:
! 8040: # Transform the output of nm in a proper C declaration
! 8041: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
! 8042:
! 8043: # Transform the output of nm in a C name address pair
! 8044: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
! 8045:
! 8046: # This is the shared library runtime path variable.
! 8047: runpath_var=$runpath_var
! 8048:
! 8049: # This is the shared library path variable.
! 8050: shlibpath_var=$shlibpath_var
! 8051:
! 8052: # Is shlibpath searched before the hard-coded library search path?
! 8053: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 8054:
! 8055: # How to hardcode a shared library path into an executable.
! 8056: hardcode_action=$hardcode_action
! 8057:
! 8058: # Whether we should hardcode library paths into libraries.
! 8059: hardcode_into_libs=$hardcode_into_libs
! 8060:
! 8061: # Flag to hardcode \$libdir into a binary during linking.
! 8062: # This must work even if \$libdir does not exist.
! 8063: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
! 8064:
! 8065: # Whether we need a single -rpath flag with a separated argument.
! 8066: hardcode_libdir_separator=$lt_hardcode_libdir_separator
! 8067:
! 8068: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 8069: # resulting binary.
! 8070: hardcode_direct=$hardcode_direct
! 8071:
! 8072: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 8073: # resulting binary.
! 8074: hardcode_minus_L=$hardcode_minus_L
! 8075:
! 8076: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 8077: # the resulting binary.
! 8078: hardcode_shlibpath_var=$hardcode_shlibpath_var
! 8079:
! 8080: # Variables whose values should be saved in libtool wrapper scripts and
! 8081: # restored at relink time.
! 8082: variables_saved_for_relink="$variables_saved_for_relink"
! 8083:
! 8084: # Whether libtool must link a program against all its dependency libraries.
! 8085: link_all_deplibs=$link_all_deplibs
! 8086:
! 8087: # Compile-time system search path for libraries
! 8088: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 8089:
! 8090: # Run-time system search path for libraries
! 8091: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 8092:
! 8093: # Fix the shell variable \$srcfile for the compiler.
! 8094: fix_srcfile_path="$fix_srcfile_path"
! 8095:
! 8096: # Set to yes if exported symbols are required.
! 8097: always_export_symbols=$always_export_symbols
! 8098:
! 8099: # The commands to list exported symbols.
! 8100: export_symbols_cmds=$lt_export_symbols_cmds
! 8101:
! 8102: # The commands to extract the exported symbol list from a shared archive.
! 8103: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 8104:
! 8105: # Symbols that should not be listed in the preloaded symbols.
! 8106: exclude_expsyms=$lt_exclude_expsyms
! 8107:
! 8108: # Symbols that must always be exported.
! 8109: include_expsyms=$lt_include_expsyms
! 8110:
! 8111: # ### END LIBTOOL CONFIG
! 8112:
! 8113: __EOF__
! 8114:
! 8115: case $host_os in
! 8116: aix3*)
! 8117: cat <<\EOF >> "${ofile}T"
! 8118:
! 8119: # AIX sometimes has problems with the GCC collect2 program. For some
! 8120: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 8121: # vanish in a puff of smoke.
! 8122: if test "X${COLLECT_NAMES+set}" != Xset; then
! 8123: COLLECT_NAMES=
! 8124: export COLLECT_NAMES
! 8125: fi
! 8126: EOF
! 8127: ;;
! 8128: esac
! 8129:
! 8130: case $host_os in
! 8131: cygwin* | mingw* | pw32* | os2*)
! 8132: cat <<'EOF' >> "${ofile}T"
! 8133: # This is a source program that is used to create dlls on Windows
! 8134: # Don't remove nor modify the starting and closing comments
! 8135: # /* ltdll.c starts here */
! 8136: # #define WIN32_LEAN_AND_MEAN
! 8137: # #include <windows.h>
! 8138: # #undef WIN32_LEAN_AND_MEAN
! 8139: # #include <stdio.h>
! 8140: #
! 8141: # #ifndef __CYGWIN__
! 8142: # # ifdef __CYGWIN32__
! 8143: # # define __CYGWIN__ __CYGWIN32__
! 8144: # # endif
! 8145: # #endif
! 8146: #
! 8147: # #ifdef __cplusplus
! 8148: # extern "C" {
! 8149: # #endif
! 8150: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
! 8151: # #ifdef __cplusplus
! 8152: # }
! 8153: # #endif
! 8154: #
! 8155: # #ifdef __CYGWIN__
! 8156: # #include <cygwin/cygwin_dll.h>
! 8157: # DECLARE_CYGWIN_DLL( DllMain );
! 8158: # #endif
! 8159: # HINSTANCE __hDllInstance_base;
! 8160: #
! 8161: # BOOL APIENTRY
! 8162: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
! 8163: # {
! 8164: # __hDllInstance_base = hInst;
! 8165: # return TRUE;
! 8166: # }
! 8167: # /* ltdll.c ends here */
! 8168: # This is a source program that is used to create import libraries
! 8169: # on Windows for dlls which lack them. Don't remove nor modify the
! 8170: # starting and closing comments
! 8171: # /* impgen.c starts here */
! 8172: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
! 8173: #
! 8174: # This file is part of GNU libtool.
! 8175: #
! 8176: # This program is free software; you can redistribute it and/or modify
! 8177: # it under the terms of the GNU General Public License as published by
! 8178: # the Free Software Foundation; either version 2 of the License, or
! 8179: # (at your option) any later version.
! 8180: #
! 8181: # This program is distributed in the hope that it will be useful,
! 8182: # but WITHOUT ANY WARRANTY; without even the implied warranty of
! 8183: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 8184: # GNU General Public License for more details.
! 8185: #
! 8186: # You should have received a copy of the GNU General Public License
! 8187: # along with this program; if not, write to the Free Software
! 8188: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 8189: # */
! 8190: #
! 8191: # #include <stdio.h> /* for printf() */
! 8192: # #include <unistd.h> /* for open(), lseek(), read() */
! 8193: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
! 8194: # #include <string.h> /* for strdup() */
! 8195: #
! 8196: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
! 8197: # #ifndef O_BINARY
! 8198: # #define O_BINARY 0
! 8199: # #endif
! 8200: #
! 8201: # static unsigned int
! 8202: # pe_get16 (fd, offset)
! 8203: # int fd;
! 8204: # int offset;
! 8205: # {
! 8206: # unsigned char b[2];
! 8207: # lseek (fd, offset, SEEK_SET);
! 8208: # read (fd, b, 2);
! 8209: # return b[0] + (b[1]<<8);
! 8210: # }
! 8211: #
! 8212: # static unsigned int
! 8213: # pe_get32 (fd, offset)
! 8214: # int fd;
! 8215: # int offset;
! 8216: # {
! 8217: # unsigned char b[4];
! 8218: # lseek (fd, offset, SEEK_SET);
! 8219: # read (fd, b, 4);
! 8220: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 8221: # }
! 8222: #
! 8223: # static unsigned int
! 8224: # pe_as32 (ptr)
! 8225: # void *ptr;
! 8226: # {
! 8227: # unsigned char *b = ptr;
! 8228: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 8229: # }
! 8230: #
! 8231: # int
! 8232: # main (argc, argv)
! 8233: # int argc;
! 8234: # char *argv[];
! 8235: # {
! 8236: # int dll;
! 8237: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
! 8238: # unsigned long export_rva, export_size, nsections, secptr, expptr;
! 8239: # unsigned long name_rvas, nexp;
! 8240: # unsigned char *expdata, *erva;
! 8241: # char *filename, *dll_name;
! 8242: #
! 8243: # filename = argv[1];
! 8244: #
! 8245: # dll = open(filename, O_RDONLY|O_BINARY);
! 8246: # if (dll < 1)
! 8247: # return 1;
! 8248: #
! 8249: # dll_name = filename;
! 8250: #
! 8251: # for (i=0; filename[i]; i++)
! 8252: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
! 8253: # dll_name = filename + i +1;
! 8254: #
! 8255: # pe_header_offset = pe_get32 (dll, 0x3c);
! 8256: # opthdr_ofs = pe_header_offset + 4 + 20;
! 8257: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
! 8258: #
! 8259: # if (num_entries < 1) /* no exports */
! 8260: # return 1;
! 8261: #
! 8262: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
! 8263: # export_size = pe_get32 (dll, opthdr_ofs + 100);
! 8264: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
! 8265: # secptr = (pe_header_offset + 4 + 20 +
! 8266: # pe_get16 (dll, pe_header_offset + 4 + 16));
! 8267: #
! 8268: # expptr = 0;
! 8269: # for (i = 0; i < nsections; i++)
! 8270: # {
! 8271: # char sname[8];
! 8272: # unsigned long secptr1 = secptr + 40 * i;
! 8273: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
! 8274: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
! 8275: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
! 8276: # lseek(dll, secptr1, SEEK_SET);
! 8277: # read(dll, sname, 8);
! 8278: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
! 8279: # {
! 8280: # expptr = fptr + (export_rva - vaddr);
! 8281: # if (export_rva + export_size > vaddr + vsize)
! 8282: # export_size = vsize - (export_rva - vaddr);
! 8283: # break;
! 8284: # }
! 8285: # }
! 8286: #
! 8287: # expdata = (unsigned char*)malloc(export_size);
! 8288: # lseek (dll, expptr, SEEK_SET);
! 8289: # read (dll, expdata, export_size);
! 8290: # erva = expdata - export_rva;
! 8291: #
! 8292: # nexp = pe_as32 (expdata+24);
! 8293: # name_rvas = pe_as32 (expdata+32);
! 8294: #
! 8295: # printf ("EXPORTS\n");
! 8296: # for (i = 0; i<nexp; i++)
! 8297: # {
! 8298: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
! 8299: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
! 8300: # }
! 8301: #
! 8302: # return 0;
! 8303: # }
! 8304: # /* impgen.c ends here */
! 8305:
! 8306: EOF
! 8307: ;;
! 8308: esac
! 8309:
! 8310: # We use sed instead of cat because bash on DJGPP gets confused if
! 8311: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 8312: # text mode, it properly converts lines to CR/LF. This bash problem
! 8313: # is reportedly fixed, but why not run on old versions too?
! 8314: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
! 8315:
! 8316: mv -f "${ofile}T" "$ofile" || \
! 8317: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
! 8318: chmod +x "$ofile"
! 8319: fi
! 8320:
! 8321:
! 8322:
! 8323:
! 8324:
! 8325: # This can be used to rebuild libtool when needed
! 8326: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
! 8327:
! 8328: # Always use rootdir libtool.
! 8329: LIBTOOL="$ac_aux_dir/libtool"
! 8330:
! 8331: # Prevent multiple expansion
! 8332:
! 8333:
! 8334:
! 8335:
! 8336: subdirs="$subdirs libltdl"
! 8337:
! 8338:
! 8339:
! 8340:
! 8341:
! 8342:
! 8343:
! 8344:
! 8345: for ac_header in stdio.h \
! 8346: stdlib.h \
! 8347: string.h \
! 8348: setjmp.h
! 8349:
! 8350: do
! 8351: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 8352: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8353: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8354: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8355: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8356: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8357: fi
! 8358: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8359: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8360: else
! 8361: # Is the header compilable?
! 8362: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 8363: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 8364: cat >conftest.$ac_ext <<_ACEOF
! 8365: #line $LINENO "configure"
! 8366: /* confdefs.h. */
! 8367: _ACEOF
! 8368: cat confdefs.h >>conftest.$ac_ext
! 8369: cat >>conftest.$ac_ext <<_ACEOF
! 8370: /* end confdefs.h. */
! 8371: $ac_includes_default
! 8372: #include <$ac_header>
! 8373: _ACEOF
! 8374: rm -f conftest.$ac_objext
! 8375: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8376: (eval $ac_compile) 2>&5
! 8377: ac_status=$?
! 8378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8379: (exit $ac_status); } &&
! 8380: { ac_try='test -s conftest.$ac_objext'
! 8381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8382: (eval $ac_try) 2>&5
! 8383: ac_status=$?
! 8384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8385: (exit $ac_status); }; }; then
! 8386: ac_header_compiler=yes
! 8387: else
! 8388: echo "$as_me: failed program was:" >&5
! 8389: sed 's/^/| /' conftest.$ac_ext >&5
! 8390:
! 8391: ac_header_compiler=no
! 8392: fi
! 8393: rm -f conftest.$ac_objext conftest.$ac_ext
! 8394: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 8395: echo "${ECHO_T}$ac_header_compiler" >&6
! 8396:
! 8397: # Is the header present?
! 8398: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 8399: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 8400: cat >conftest.$ac_ext <<_ACEOF
! 8401: #line $LINENO "configure"
! 8402: /* confdefs.h. */
! 8403: _ACEOF
! 8404: cat confdefs.h >>conftest.$ac_ext
! 8405: cat >>conftest.$ac_ext <<_ACEOF
! 8406: /* end confdefs.h. */
! 8407: #include <$ac_header>
! 8408: _ACEOF
! 8409: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 8410: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 8411: ac_status=$?
! 8412: grep -v '^ *+' conftest.er1 >conftest.err
! 8413: rm -f conftest.er1
! 8414: cat conftest.err >&5
! 8415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8416: (exit $ac_status); } >/dev/null; then
! 8417: if test -s conftest.err; then
! 8418: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 8419: else
! 8420: ac_cpp_err=
! 8421: fi
! 8422: else
! 8423: ac_cpp_err=yes
! 8424: fi
! 8425: if test -z "$ac_cpp_err"; then
! 8426: ac_header_preproc=yes
! 8427: else
! 8428: echo "$as_me: failed program was:" >&5
! 8429: sed 's/^/| /' conftest.$ac_ext >&5
! 8430:
! 8431: ac_header_preproc=no
! 8432: fi
! 8433: rm -f conftest.err conftest.$ac_ext
! 8434: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 8435: echo "${ECHO_T}$ac_header_preproc" >&6
! 8436:
! 8437: # So? What about this header?
! 8438: case $ac_header_compiler:$ac_header_preproc in
! 8439: yes:no )
! 8440: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 8441: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 8442: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8443: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8444: (
! 8445: cat <<\_ASBOX
! 8446: ## ------------------------------------ ##
! 8447: ## Report this to bug-autoconf@gnu.org. ##
! 8448: ## ------------------------------------ ##
! 8449: _ASBOX
! 8450: ) |
! 8451: sed "s/^/$as_me: WARNING: /" >&2
! 8452: ;;
! 8453: no:yes )
! 8454: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 8455: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 8456: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 8457: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 8458: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8459: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8460: (
! 8461: cat <<\_ASBOX
! 8462: ## ------------------------------------ ##
! 8463: ## Report this to bug-autoconf@gnu.org. ##
! 8464: ## ------------------------------------ ##
! 8465: _ASBOX
! 8466: ) |
! 8467: sed "s/^/$as_me: WARNING: /" >&2
! 8468: ;;
! 8469: esac
! 8470: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8471: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8472: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8473: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8474: else
! 8475: eval "$as_ac_Header=$ac_header_preproc"
1.1 parser 8476: fi
1.10 ! paf 8477: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8478: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8479:
1.1 parser 8480: fi
1.10 ! paf 8481: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 8482: cat >>confdefs.h <<_ACEOF
! 8483: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 8484: _ACEOF
1.1 parser 8485:
8486: fi
8487:
1.10 ! paf 8488: done
! 8489:
1.1 parser 8490:
8491:
1.10 ! paf 8492: echo "$as_me:$LINENO: checking for size_t" >&5
! 8493: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 8494: if test "${ac_cv_type_size_t+set}" = set; then
! 8495: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8496: else
! 8497: cat >conftest.$ac_ext <<_ACEOF
! 8498: #line $LINENO "configure"
! 8499: /* confdefs.h. */
! 8500: _ACEOF
! 8501: cat confdefs.h >>conftest.$ac_ext
! 8502: cat >>conftest.$ac_ext <<_ACEOF
! 8503: /* end confdefs.h. */
! 8504: $ac_includes_default
! 8505: int
! 8506: main ()
! 8507: {
! 8508: if ((size_t *) 0)
! 8509: return 0;
! 8510: if (sizeof (size_t))
! 8511: return 0;
! 8512: ;
! 8513: return 0;
! 8514: }
! 8515: _ACEOF
! 8516: rm -f conftest.$ac_objext
! 8517: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8518: (eval $ac_compile) 2>&5
! 8519: ac_status=$?
! 8520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8521: (exit $ac_status); } &&
! 8522: { ac_try='test -s conftest.$ac_objext'
! 8523: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8524: (eval $ac_try) 2>&5
! 8525: ac_status=$?
! 8526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8527: (exit $ac_status); }; }; then
1.1 parser 8528: ac_cv_type_size_t=yes
8529: else
1.10 ! paf 8530: echo "$as_me: failed program was:" >&5
! 8531: sed 's/^/| /' conftest.$ac_ext >&5
! 8532:
! 8533: ac_cv_type_size_t=no
! 8534: fi
! 8535: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 8536: fi
1.10 ! paf 8537: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 8538: echo "${ECHO_T}$ac_cv_type_size_t" >&6
! 8539: if test $ac_cv_type_size_t = yes; then
! 8540: :
! 8541: else
1.1 parser 8542:
1.10 ! paf 8543: cat >>confdefs.h <<_ACEOF
1.1 parser 8544: #define size_t unsigned
1.10 ! paf 8545: _ACEOF
1.1 parser 8546:
8547: fi
8548:
8549:
8550:
8551:
1.10 ! paf 8552: ac_config_files="$ac_config_files Makefile"
! 8553: cat >confcache <<\_ACEOF
1.1 parser 8554: # This file is a shell script that caches the results of configure
8555: # tests run on this system so they can be shared between configure
1.10 ! paf 8556: # scripts and configure runs, see configure's option --config-cache.
! 8557: # It is not useful on other systems. If it contains results you don't
! 8558: # want to keep, you may remove or edit it.
1.1 parser 8559: #
1.10 ! paf 8560: # config.status only pays attention to the cache file if you give it
! 8561: # the --recheck option to rerun configure.
1.1 parser 8562: #
1.10 ! paf 8563: # `ac_cv_env_foo' variables (set or unset) will be overridden when
! 8564: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 8565: # following values.
! 8566:
! 8567: _ACEOF
! 8568:
1.1 parser 8569: # The following way of writing the cache mishandles newlines in values,
8570: # but we know of no workaround that is simple, portable, and efficient.
8571: # So, don't put newlines in cache variables' values.
8572: # Ultrix sh set writes to stderr and can't be redirected directly,
8573: # and sets the high bit in the cache file unless we assign to the vars.
1.10 ! paf 8574: {
! 8575: (set) 2>&1 |
! 8576: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 8577: *ac_space=\ *)
! 8578: # `set' does not quote correctly, so add quotes (double-quote
! 8579: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 8580: sed -n \
! 8581: "s/'/'\\\\''/g;
! 8582: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 8583: ;;
! 8584: *)
! 8585: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 8586: sed -n \
! 8587: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 8588: ;;
! 8589: esac;
! 8590: } |
! 8591: sed '
! 8592: t clear
! 8593: : clear
! 8594: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 8595: t end
! 8596: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 8597: : end' >>confcache
! 8598: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 8599: if test -w $cache_file; then
1.10 ! paf 8600: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
! 8601: cat confcache >$cache_file
1.1 parser 8602: else
8603: echo "not updating unwritable cache $cache_file"
8604: fi
8605: fi
8606: rm -f confcache
8607:
8608: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8609: # Let make expand exec_prefix.
8610: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8611:
1.10 ! paf 8612: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 8613: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 8614: # trailing colons and then remove the whole line if VPATH becomes empty
! 8615: # (actually we leave an empty line to preserve line numbers).
1.1 parser 8616: if test "x$srcdir" = x.; then
1.10 ! paf 8617: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 8618: s/:*\$(srcdir):*/:/;
! 8619: s/:*\${srcdir}:*/:/;
! 8620: s/:*@srcdir@:*/:/;
! 8621: s/^\([^=]*=[ ]*\):*/\1/;
! 8622: s/:*$//;
! 8623: s/^[^=]*=[ ]*$//;
! 8624: }'
1.1 parser 8625: fi
8626:
1.10 ! paf 8627: DEFS=-DHAVE_CONFIG_H
! 8628:
! 8629: ac_libobjs=
! 8630: ac_ltlibobjs=
! 8631: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 8632: # 1. Remove the extension, and $U if already installed.
! 8633: ac_i=`echo "$ac_i" |
! 8634: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
! 8635: # 2. Add them.
! 8636: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
! 8637: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
! 8638: done
! 8639: LIBOBJS=$ac_libobjs
! 8640:
! 8641: LTLIBOBJS=$ac_ltlibobjs
! 8642:
1.1 parser 8643:
1.10 ! paf 8644: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
! 8645: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
! 8646: Usually this means the macro was only invoked conditionally." >&5
! 8647: echo "$as_me: error: conditional \"AMDEP\" was never defined.
! 8648: Usually this means the macro was only invoked conditionally." >&2;}
! 8649: { (exit 1); exit 1; }; }
! 8650: fi
! 8651: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
! 8652: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
! 8653: Usually this means the macro was only invoked conditionally." >&5
! 8654: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
! 8655: Usually this means the macro was only invoked conditionally." >&2;}
! 8656: { (exit 1); exit 1; }; }
! 8657: fi
! 8658: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
! 8659: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
! 8660: Usually this means the macro was only invoked conditionally." >&5
! 8661: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
! 8662: Usually this means the macro was only invoked conditionally." >&2;}
! 8663: { (exit 1); exit 1; }; }
! 8664: fi
1.1 parser 8665:
8666: : ${CONFIG_STATUS=./config.status}
1.10 ! paf 8667: ac_clean_files_save=$ac_clean_files
! 8668: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 8669: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 8670: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 8671: cat >$CONFIG_STATUS <<_ACEOF
! 8672: #! $SHELL
! 8673: # Generated by $as_me.
! 8674: # Run this file to recreate the current configuration.
! 8675: # Compiler output produced by configure, useful for debugging
! 8676: # configure, is in config.log if it exists.
! 8677:
! 8678: debug=false
! 8679: ac_cs_recheck=false
! 8680: ac_cs_silent=false
! 8681: SHELL=\${CONFIG_SHELL-$SHELL}
! 8682: _ACEOF
! 8683:
! 8684: cat >>$CONFIG_STATUS <<\_ACEOF
! 8685: ## --------------------- ##
! 8686: ## M4sh Initialization. ##
! 8687: ## --------------------- ##
! 8688:
! 8689: # Be Bourne compatible
! 8690: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 8691: emulate sh
! 8692: NULLCMD=:
! 8693: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 8694: # is contrary to our usage. Disable this feature.
! 8695: alias -g '${1+"$@"}'='"$@"'
! 8696: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 8697: set -o posix
! 8698: fi
! 8699:
! 8700: # Support unset when possible.
! 8701: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 8702: as_unset=unset
! 8703: else
! 8704: as_unset=false
! 8705: fi
! 8706:
! 8707:
! 8708: # Work around bugs in pre-3.0 UWIN ksh.
! 8709: $as_unset ENV MAIL MAILPATH
! 8710: PS1='$ '
! 8711: PS2='> '
! 8712: PS4='+ '
! 8713:
! 8714: # NLS nuisances.
! 8715: for as_var in \
! 8716: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 8717: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 8718: LC_TELEPHONE LC_TIME
! 8719: do
! 8720: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 8721: eval $as_var=C; export $as_var
! 8722: else
! 8723: $as_unset $as_var
! 8724: fi
! 8725: done
! 8726:
! 8727: # Required to use basename.
! 8728: if expr a : '\(a\)' >/dev/null 2>&1; then
! 8729: as_expr=expr
! 8730: else
! 8731: as_expr=false
! 8732: fi
! 8733:
! 8734: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
! 8735: as_basename=basename
! 8736: else
! 8737: as_basename=false
! 8738: fi
! 8739:
! 8740:
! 8741: # Name of the executable.
! 8742: as_me=`$as_basename "$0" ||
! 8743: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 8744: X"$0" : 'X\(//\)$' \| \
! 8745: X"$0" : 'X\(/\)$' \| \
! 8746: . : '\(.\)' 2>/dev/null ||
! 8747: echo X/"$0" |
! 8748: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 8749: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 8750: /^X\/\(\/\).*/{ s//\1/; q; }
! 8751: s/.*/./; q'`
! 8752:
! 8753:
! 8754: # PATH needs CR, and LINENO needs CR and PATH.
! 8755: # Avoid depending upon Character Ranges.
! 8756: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 8757: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 8758: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 8759: as_cr_digits='0123456789'
! 8760: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 8761:
! 8762: # The user is always right.
! 8763: if test "${PATH_SEPARATOR+set}" != set; then
! 8764: echo "#! /bin/sh" >conf$$.sh
! 8765: echo "exit 0" >>conf$$.sh
! 8766: chmod +x conf$$.sh
! 8767: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 8768: PATH_SEPARATOR=';'
! 8769: else
! 8770: PATH_SEPARATOR=:
! 8771: fi
! 8772: rm -f conf$$.sh
! 8773: fi
! 8774:
! 8775:
! 8776: as_lineno_1=$LINENO
! 8777: as_lineno_2=$LINENO
! 8778: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 8779: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 8780: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 8781: # Find who we are. Look in the path if we contain no path at all
! 8782: # relative or not.
! 8783: case $0 in
! 8784: *[\\/]* ) as_myself=$0 ;;
! 8785: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8786: for as_dir in $PATH
! 8787: do
! 8788: IFS=$as_save_IFS
! 8789: test -z "$as_dir" && as_dir=.
! 8790: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 8791: done
! 8792:
! 8793: ;;
! 8794: esac
! 8795: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 8796: # in which case we are not to be found in the path.
! 8797: if test "x$as_myself" = x; then
! 8798: as_myself=$0
! 8799: fi
! 8800: if test ! -f "$as_myself"; then
! 8801: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 8802: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 8803: { (exit 1); exit 1; }; }
! 8804: fi
! 8805: case $CONFIG_SHELL in
! 8806: '')
! 8807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8808: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 8809: do
! 8810: IFS=$as_save_IFS
! 8811: test -z "$as_dir" && as_dir=.
! 8812: for as_base in sh bash ksh sh5; do
! 8813: case $as_dir in
! 8814: /*)
! 8815: if ("$as_dir/$as_base" -c '
! 8816: as_lineno_1=$LINENO
! 8817: as_lineno_2=$LINENO
! 8818: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 8819: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 8820: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 8821: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 8822: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 8823: CONFIG_SHELL=$as_dir/$as_base
! 8824: export CONFIG_SHELL
! 8825: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 8826: fi;;
! 8827: esac
! 8828: done
! 8829: done
! 8830: ;;
! 8831: esac
! 8832:
! 8833: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 8834: # uniformly replaced by the line number. The first 'sed' inserts a
! 8835: # line-number line before each line; the second 'sed' does the real
! 8836: # work. The second script uses 'N' to pair each line-number line
! 8837: # with the numbered line, and appends trailing '-' during
! 8838: # substitution so that $LINENO is not a special case at line end.
! 8839: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 8840: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 8841: sed '=' <$as_myself |
! 8842: sed '
! 8843: N
! 8844: s,$,-,
! 8845: : loop
! 8846: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 8847: t loop
! 8848: s,-$,,
! 8849: s,^['$as_cr_digits']*\n,,
! 8850: ' >$as_me.lineno &&
! 8851: chmod +x $as_me.lineno ||
! 8852: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 8853: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 8854: { (exit 1); exit 1; }; }
! 8855:
! 8856: # Don't try to exec as it changes $[0], causing all sort of problems
! 8857: # (the dirname of $[0] is not the place where we might find the
! 8858: # original and so on. Autoconf is especially sensible to this).
! 8859: . ./$as_me.lineno
! 8860: # Exit status is that of the last command.
! 8861: exit
! 8862: }
! 8863:
! 8864:
! 8865: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 8866: *c*,-n*) ECHO_N= ECHO_C='
! 8867: ' ECHO_T=' ' ;;
! 8868: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 8869: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 8870: esac
! 8871:
! 8872: if expr a : '\(a\)' >/dev/null 2>&1; then
! 8873: as_expr=expr
! 8874: else
! 8875: as_expr=false
! 8876: fi
! 8877:
! 8878: rm -f conf$$ conf$$.exe conf$$.file
! 8879: echo >conf$$.file
! 8880: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 8881: # We could just check for DJGPP; but this test a) works b) is more generic
! 8882: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 8883: if test -f conf$$.exe; then
! 8884: # Don't use ln at all; we don't have any links
! 8885: as_ln_s='cp -p'
! 8886: else
! 8887: as_ln_s='ln -s'
! 8888: fi
! 8889: elif ln conf$$.file conf$$ 2>/dev/null; then
! 8890: as_ln_s=ln
! 8891: else
! 8892: as_ln_s='cp -p'
! 8893: fi
! 8894: rm -f conf$$ conf$$.exe conf$$.file
! 8895:
! 8896: if mkdir -p . 2>/dev/null; then
! 8897: as_mkdir_p=:
! 8898: else
! 8899: as_mkdir_p=false
! 8900: fi
! 8901:
! 8902: as_executable_p="test -f"
! 8903:
! 8904: # Sed expression to map a string onto a valid CPP name.
! 8905: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 8906:
! 8907: # Sed expression to map a string onto a valid variable name.
! 8908: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 8909:
! 8910:
! 8911: # IFS
! 8912: # We need space, tab and new line, in precisely that order.
! 8913: as_nl='
! 8914: '
! 8915: IFS=" $as_nl"
! 8916:
! 8917: # CDPATH.
! 8918: $as_unset CDPATH
! 8919:
! 8920: exec 6>&1
! 8921:
! 8922: # Open the log real soon, to keep \$[0] and so on meaningful, and to
! 8923: # report actual input values of CONFIG_FILES etc. instead of their
! 8924: # values after options handling. Logging --version etc. is OK.
! 8925: exec 5>>config.log
! 8926: {
! 8927: echo
! 8928: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 8929: ## Running $as_me. ##
! 8930: _ASBOX
! 8931: } >&5
! 8932: cat >&5 <<_CSEOF
! 8933:
! 8934: This file was extended by $as_me, which was
! 8935: generated by GNU Autoconf 2.57. Invocation command line was
! 8936:
! 8937: CONFIG_FILES = $CONFIG_FILES
! 8938: CONFIG_HEADERS = $CONFIG_HEADERS
! 8939: CONFIG_LINKS = $CONFIG_LINKS
! 8940: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 8941: $ $0 $@
! 8942:
! 8943: _CSEOF
! 8944: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 8945: echo >&5
! 8946: _ACEOF
! 8947:
! 8948: # Files that config.status was made for.
! 8949: if test -n "$ac_config_files"; then
! 8950: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 8951: fi
! 8952:
! 8953: if test -n "$ac_config_headers"; then
! 8954: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 8955: fi
! 8956:
! 8957: if test -n "$ac_config_links"; then
! 8958: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 8959: fi
! 8960:
! 8961: if test -n "$ac_config_commands"; then
! 8962: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 8963: fi
! 8964:
! 8965: cat >>$CONFIG_STATUS <<\_ACEOF
! 8966:
! 8967: ac_cs_usage="\
! 8968: \`$as_me' instantiates files from templates according to the
! 8969: current configuration.
! 8970:
! 8971: Usage: $0 [OPTIONS] [FILE]...
! 8972:
! 8973: -h, --help print this help, then exit
! 8974: -V, --version print version number, then exit
! 8975: -q, --quiet do not print progress messages
! 8976: -d, --debug don't remove temporary files
! 8977: --recheck update $as_me by reconfiguring in the same conditions
! 8978: --file=FILE[:TEMPLATE]
! 8979: instantiate the configuration file FILE
! 8980: --header=FILE[:TEMPLATE]
! 8981: instantiate the configuration header FILE
! 8982:
! 8983: Configuration files:
! 8984: $config_files
! 8985:
! 8986: Configuration headers:
! 8987: $config_headers
! 8988:
! 8989: Configuration commands:
! 8990: $config_commands
! 8991:
! 8992: Report bugs to <bug-autoconf@gnu.org>."
! 8993: _ACEOF
! 8994:
! 8995: cat >>$CONFIG_STATUS <<_ACEOF
! 8996: ac_cs_version="\\
! 8997: config.status
! 8998: configured by $0, generated by GNU Autoconf 2.57,
! 8999: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
! 9000:
! 9001: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 9002: Free Software Foundation, Inc.
! 9003: This config.status script is free software; the Free Software Foundation
! 9004: gives unlimited permission to copy, distribute and modify it."
! 9005: srcdir=$srcdir
! 9006: INSTALL="$INSTALL"
! 9007: _ACEOF
! 9008:
! 9009: cat >>$CONFIG_STATUS <<\_ACEOF
! 9010: # If no file are specified by the user, then we need to provide default
! 9011: # value. By we need to know if files were specified by the user.
! 9012: ac_need_defaults=:
! 9013: while test $# != 0
! 9014: do
! 9015: case $1 in
! 9016: --*=*)
! 9017: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 9018: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
! 9019: ac_shift=:
! 9020: ;;
! 9021: -*)
! 9022: ac_option=$1
! 9023: ac_optarg=$2
! 9024: ac_shift=shift
! 9025: ;;
! 9026: *) # This is not an option, so the user has probably given explicit
! 9027: # arguments.
! 9028: ac_option=$1
! 9029: ac_need_defaults=false;;
! 9030: esac
! 9031:
! 9032: case $ac_option in
! 9033: # Handling of the options.
! 9034: _ACEOF
! 9035: cat >>$CONFIG_STATUS <<\_ACEOF
! 9036: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 9037: ac_cs_recheck=: ;;
! 9038: --version | --vers* | -V )
! 9039: echo "$ac_cs_version"; exit 0 ;;
! 9040: --he | --h)
! 9041: # Conflict between --help and --header
! 9042: { { echo "$as_me:$LINENO: error: ambiguous option: $1
! 9043: Try \`$0 --help' for more information." >&5
! 9044: echo "$as_me: error: ambiguous option: $1
! 9045: Try \`$0 --help' for more information." >&2;}
! 9046: { (exit 1); exit 1; }; };;
! 9047: --help | --hel | -h )
! 9048: echo "$ac_cs_usage"; exit 0 ;;
! 9049: --debug | --d* | -d )
! 9050: debug=: ;;
! 9051: --file | --fil | --fi | --f )
! 9052: $ac_shift
! 9053: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
! 9054: ac_need_defaults=false;;
! 9055: --header | --heade | --head | --hea )
! 9056: $ac_shift
! 9057: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
! 9058: ac_need_defaults=false;;
! 9059: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 9060: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 9061: ac_cs_silent=: ;;
! 9062:
! 9063: # This is an error.
! 9064: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
! 9065: Try \`$0 --help' for more information." >&5
! 9066: echo "$as_me: error: unrecognized option: $1
! 9067: Try \`$0 --help' for more information." >&2;}
! 9068: { (exit 1); exit 1; }; } ;;
! 9069:
! 9070: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9071:
1.10 ! paf 9072: esac
! 9073: shift
! 9074: done
! 9075:
! 9076: ac_configure_extra_args=
! 9077:
! 9078: if $ac_cs_silent; then
! 9079: exec 6>/dev/null
! 9080: ac_configure_extra_args="$ac_configure_extra_args --silent"
! 9081: fi
! 9082:
! 9083: _ACEOF
! 9084: cat >>$CONFIG_STATUS <<_ACEOF
! 9085: if \$ac_cs_recheck; then
! 9086: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 9087: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 9088: fi
! 9089:
! 9090: _ACEOF
! 9091:
! 9092: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9093: #
1.10 ! paf 9094: # INIT-COMMANDS section.
1.1 parser 9095: #
9096:
1.10 ! paf 9097: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
! 9098:
! 9099: _ACEOF
! 9100:
! 9101:
! 9102:
! 9103: cat >>$CONFIG_STATUS <<\_ACEOF
! 9104: for ac_config_target in $ac_config_targets
1.1 parser 9105: do
1.10 ! paf 9106: case "$ac_config_target" in
! 9107: # Handling of arguments.
! 9108: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 9109: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 9110: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 9111: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 9112: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 9113: { (exit 1); exit 1; }; };;
1.1 parser 9114: esac
9115: done
9116:
1.10 ! paf 9117: # If the user did not use the arguments to specify the items to instantiate,
! 9118: # then the envvar interface is used. Set only those that are not.
! 9119: # We use the long form for the default assignment because of an extremely
! 9120: # bizarre bug on SunOS 4.1.3.
! 9121: if $ac_need_defaults; then
! 9122: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 9123: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 9124: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
! 9125: fi
! 9126:
! 9127: # Have a temporary directory for convenience. Make it in the build tree
! 9128: # simply because there is no reason to put it here, and in addition,
! 9129: # creating and moving files from /tmp can sometimes cause problems.
! 9130: # Create a temporary directory, and hook for its removal unless debugging.
! 9131: $debug ||
! 9132: {
! 9133: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 9134: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 9135: }
! 9136:
! 9137: # Create a (secure) tmp directory for tmp files.
! 9138:
! 9139: {
! 9140: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
! 9141: test -n "$tmp" && test -d "$tmp"
! 9142: } ||
! 9143: {
! 9144: tmp=./confstat$$-$RANDOM
! 9145: (umask 077 && mkdir $tmp)
! 9146: } ||
! 9147: {
! 9148: echo "$me: cannot create a temporary directory in ." >&2
! 9149: { (exit 1); exit 1; }
! 9150: }
! 9151:
! 9152: _ACEOF
1.1 parser 9153:
1.10 ! paf 9154: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9155:
1.10 ! paf 9156: #
! 9157: # CONFIG_FILES section.
! 9158: #
1.1 parser 9159:
1.10 ! paf 9160: # No need to generate the scripts if there are no CONFIG_FILES.
! 9161: # This happens for instance when ./config.status config.h
! 9162: if test -n "\$CONFIG_FILES"; then
! 9163: # Protect against being on the right side of a sed subst in config.status.
! 9164: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 9165: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 9166: s,@SHELL@,$SHELL,;t t
! 9167: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 9168: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 9169: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 9170: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 9171: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 9172: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 9173: s,@exec_prefix@,$exec_prefix,;t t
! 9174: s,@prefix@,$prefix,;t t
! 9175: s,@program_transform_name@,$program_transform_name,;t t
! 9176: s,@bindir@,$bindir,;t t
! 9177: s,@sbindir@,$sbindir,;t t
! 9178: s,@libexecdir@,$libexecdir,;t t
! 9179: s,@datadir@,$datadir,;t t
! 9180: s,@sysconfdir@,$sysconfdir,;t t
! 9181: s,@sharedstatedir@,$sharedstatedir,;t t
! 9182: s,@localstatedir@,$localstatedir,;t t
! 9183: s,@libdir@,$libdir,;t t
! 9184: s,@includedir@,$includedir,;t t
! 9185: s,@oldincludedir@,$oldincludedir,;t t
! 9186: s,@infodir@,$infodir,;t t
! 9187: s,@mandir@,$mandir,;t t
! 9188: s,@build_alias@,$build_alias,;t t
! 9189: s,@host_alias@,$host_alias,;t t
! 9190: s,@target_alias@,$target_alias,;t t
! 9191: s,@DEFS@,$DEFS,;t t
! 9192: s,@ECHO_C@,$ECHO_C,;t t
! 9193: s,@ECHO_N@,$ECHO_N,;t t
! 9194: s,@ECHO_T@,$ECHO_T,;t t
! 9195: s,@LIBS@,$LIBS,;t t
! 9196: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! 9197: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! 9198: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
! 9199: s,@CYGPATH_W@,$CYGPATH_W,;t t
! 9200: s,@PACKAGE@,$PACKAGE,;t t
! 9201: s,@VERSION@,$VERSION,;t t
! 9202: s,@ACLOCAL@,$ACLOCAL,;t t
! 9203: s,@AUTOCONF@,$AUTOCONF,;t t
! 9204: s,@AUTOMAKE@,$AUTOMAKE,;t t
! 9205: s,@AUTOHEADER@,$AUTOHEADER,;t t
! 9206: s,@MAKEINFO@,$MAKEINFO,;t t
! 9207: s,@AMTAR@,$AMTAR,;t t
! 9208: s,@install_sh@,$install_sh,;t t
! 9209: s,@STRIP@,$STRIP,;t t
! 9210: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 9211: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
! 9212: s,@AWK@,$AWK,;t t
! 9213: s,@SET_MAKE@,$SET_MAKE,;t t
! 9214: s,@PGSQL_INC@,$PGSQL_INC,;t t
! 9215: s,@CXX@,$CXX,;t t
! 9216: s,@CXXFLAGS@,$CXXFLAGS,;t t
! 9217: s,@LDFLAGS@,$LDFLAGS,;t t
! 9218: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 9219: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
! 9220: s,@EXEEXT@,$EXEEXT,;t t
! 9221: s,@OBJEXT@,$OBJEXT,;t t
! 9222: s,@DEPDIR@,$DEPDIR,;t t
! 9223: s,@am__include@,$am__include,;t t
! 9224: s,@am__quote@,$am__quote,;t t
! 9225: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
! 9226: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
! 9227: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
! 9228: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
! 9229: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
! 9230: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
! 9231: s,@INCLTDL@,$INCLTDL,;t t
! 9232: s,@LIBLTDL@,$LIBLTDL,;t t
! 9233: s,@LIBADD_DL@,$LIBADD_DL,;t t
! 9234: s,@build@,$build,;t t
! 9235: s,@build_cpu@,$build_cpu,;t t
! 9236: s,@build_vendor@,$build_vendor,;t t
! 9237: s,@build_os@,$build_os,;t t
! 9238: s,@host@,$host,;t t
! 9239: s,@host_cpu@,$host_cpu,;t t
! 9240: s,@host_vendor@,$host_vendor,;t t
! 9241: s,@host_os@,$host_os,;t t
! 9242: s,@CC@,$CC,;t t
! 9243: s,@CFLAGS@,$CFLAGS,;t t
! 9244: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 9245: s,@CCDEPMODE@,$CCDEPMODE,;t t
! 9246: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
! 9247: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
! 9248: s,@LN_S@,$LN_S,;t t
! 9249: s,@ECHO@,$ECHO,;t t
! 9250: s,@RANLIB@,$RANLIB,;t t
! 9251: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 9252: s,@CXXCPP@,$CXXCPP,;t t
! 9253: s,@EGREP@,$EGREP,;t t
! 9254: s,@LIBTOOL@,$LIBTOOL,;t t
! 9255: s,@subdirs@,$subdirs,;t t
! 9256: s,@LIBOBJS@,$LIBOBJS,;t t
! 9257: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9258: CEOF
9259:
1.10 ! paf 9260: _ACEOF
1.1 parser 9261:
1.10 ! paf 9262: cat >>$CONFIG_STATUS <<\_ACEOF
! 9263: # Split the substitutions into bite-sized pieces for seds with
! 9264: # small command number limits, like on Digital OSF/1 and HP-UX.
! 9265: ac_max_sed_lines=48
! 9266: ac_sed_frag=1 # Number of current file.
! 9267: ac_beg=1 # First line for current file.
! 9268: ac_end=$ac_max_sed_lines # Line after last line for current file.
! 9269: ac_more_lines=:
! 9270: ac_sed_cmds=
! 9271: while $ac_more_lines; do
! 9272: if test $ac_beg -gt 1; then
! 9273: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 9274: else
! 9275: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 9276: fi
! 9277: if test ! -s $tmp/subs.frag; then
! 9278: ac_more_lines=false
! 9279: else
! 9280: # The purpose of the label and of the branching condition is to
! 9281: # speed up the sed processing (if there are no `@' at all, there
! 9282: # is no need to browse any of the substitutions).
! 9283: # These are the two extra sed commands mentioned above.
! 9284: (echo ':t
! 9285: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
! 9286: if test -z "$ac_sed_cmds"; then
! 9287: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
! 9288: else
! 9289: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
! 9290: fi
! 9291: ac_sed_frag=`expr $ac_sed_frag + 1`
! 9292: ac_beg=$ac_end
! 9293: ac_end=`expr $ac_end + $ac_max_sed_lines`
! 9294: fi
! 9295: done
! 9296: if test -z "$ac_sed_cmds"; then
! 9297: ac_sed_cmds=cat
1.1 parser 9298: fi
1.10 ! paf 9299: fi # test -n "$CONFIG_FILES"
1.1 parser 9300:
1.10 ! paf 9301: _ACEOF
! 9302: cat >>$CONFIG_STATUS <<\_ACEOF
! 9303: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
! 9304: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 9305: case $ac_file in
! 9306: - | *:- | *:-:* ) # input from stdin
! 9307: cat >$tmp/stdin
! 9308: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9309: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9310: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9311: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9312: * ) ac_file_in=$ac_file.in ;;
! 9313: esac
1.1 parser 9314:
1.10 ! paf 9315: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 9316: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 9317: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9318: X"$ac_file" : 'X\(//\)[^/]' \| \
! 9319: X"$ac_file" : 'X\(//\)$' \| \
! 9320: X"$ac_file" : 'X\(/\)' \| \
! 9321: . : '\(.\)' 2>/dev/null ||
! 9322: echo X"$ac_file" |
! 9323: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9324: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9325: /^X\(\/\/\)$/{ s//\1/; q; }
! 9326: /^X\(\/\).*/{ s//\1/; q; }
! 9327: s/.*/./; q'`
! 9328: { if $as_mkdir_p; then
! 9329: mkdir -p "$ac_dir"
! 9330: else
! 9331: as_dir="$ac_dir"
! 9332: as_dirs=
! 9333: while test ! -d "$as_dir"; do
! 9334: as_dirs="$as_dir $as_dirs"
! 9335: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9336: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9337: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9338: X"$as_dir" : 'X\(//\)$' \| \
! 9339: X"$as_dir" : 'X\(/\)' \| \
! 9340: . : '\(.\)' 2>/dev/null ||
! 9341: echo X"$as_dir" |
! 9342: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9343: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9344: /^X\(\/\/\)$/{ s//\1/; q; }
! 9345: /^X\(\/\).*/{ s//\1/; q; }
! 9346: s/.*/./; q'`
! 9347: done
! 9348: test ! -n "$as_dirs" || mkdir $as_dirs
! 9349: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9350: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9351: { (exit 1); exit 1; }; }; }
! 9352:
! 9353: ac_builddir=.
! 9354:
! 9355: if test "$ac_dir" != .; then
! 9356: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9357: # A "../" for each directory in $ac_dir_suffix.
! 9358: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9359: else
! 9360: ac_dir_suffix= ac_top_builddir=
! 9361: fi
! 9362:
! 9363: case $srcdir in
! 9364: .) # No --srcdir option. We are building in place.
! 9365: ac_srcdir=.
! 9366: if test -z "$ac_top_builddir"; then
! 9367: ac_top_srcdir=.
! 9368: else
! 9369: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9370: fi ;;
! 9371: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9372: ac_srcdir=$srcdir$ac_dir_suffix;
! 9373: ac_top_srcdir=$srcdir ;;
1.1 parser 9374: *) # Relative path.
1.10 ! paf 9375: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9376: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9377: esac
! 9378: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9379: # absolute.
! 9380: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9381: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 9382: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9383: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9384:
! 9385:
! 9386: case $INSTALL in
! 9387: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
! 9388: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9389: esac
9390:
1.10 ! paf 9391: if test x"$ac_file" != x-; then
! 9392: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 9393: echo "$as_me: creating $ac_file" >&6;}
! 9394: rm -f "$ac_file"
! 9395: fi
! 9396: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 9397: # use $as_me), people would be surprised to read:
! 9398: # /* config.h. Generated by config.status. */
! 9399: if test x"$ac_file" = x-; then
! 9400: configure_input=
! 9401: else
! 9402: configure_input="$ac_file. "
! 9403: fi
! 9404: configure_input=$configure_input"Generated from `echo $ac_file_in |
! 9405: sed 's,.*/,,'` by configure."
! 9406:
! 9407: # First look for the input files in the build tree, otherwise in the
! 9408: # src tree.
! 9409: ac_file_inputs=`IFS=:
! 9410: for f in $ac_file_in; do
! 9411: case $f in
! 9412: -) echo $tmp/stdin ;;
! 9413: [\\/$]*)
! 9414: # Absolute (can't be DOS-style, as IFS=:)
! 9415: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9416: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9417: { (exit 1); exit 1; }; }
! 9418: echo $f;;
! 9419: *) # Relative
! 9420: if test -f "$f"; then
! 9421: # Build tree
! 9422: echo $f
! 9423: elif test -f "$srcdir/$f"; then
! 9424: # Source tree
! 9425: echo $srcdir/$f
! 9426: else
! 9427: # /dev/null tree
! 9428: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9429: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9430: { (exit 1); exit 1; }; }
! 9431: fi;;
! 9432: esac
! 9433: done` || { (exit 1); exit 1; }
! 9434: _ACEOF
! 9435: cat >>$CONFIG_STATUS <<_ACEOF
! 9436: sed "$ac_vpsub
! 9437: $extrasub
! 9438: _ACEOF
! 9439: cat >>$CONFIG_STATUS <<\_ACEOF
! 9440: :t
! 9441: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 9442: s,@configure_input@,$configure_input,;t t
! 9443: s,@srcdir@,$ac_srcdir,;t t
! 9444: s,@abs_srcdir@,$ac_abs_srcdir,;t t
! 9445: s,@top_srcdir@,$ac_top_srcdir,;t t
! 9446: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! 9447: s,@builddir@,$ac_builddir,;t t
! 9448: s,@abs_builddir@,$ac_abs_builddir,;t t
! 9449: s,@top_builddir@,$ac_top_builddir,;t t
! 9450: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
! 9451: s,@INSTALL@,$ac_INSTALL,;t t
! 9452: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 9453: rm -f $tmp/stdin
! 9454: if test x"$ac_file" != x-; then
! 9455: mv $tmp/out $ac_file
! 9456: else
! 9457: cat $tmp/out
! 9458: rm -f $tmp/out
! 9459: fi
! 9460:
! 9461: done
! 9462: _ACEOF
! 9463: cat >>$CONFIG_STATUS <<\_ACEOF
! 9464:
! 9465: #
! 9466: # CONFIG_HEADER section.
! 9467: #
1.1 parser 9468:
9469: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9470: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9471: #
9472: # ac_d sets the value in "#define NAME VALUE" lines.
1.10 ! paf 9473: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 9474: ac_dB='[ ].*$,\1#\2'
! 9475: ac_dC=' '
! 9476: ac_dD=',;t'
! 9477: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 9478: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 9479: ac_uB='$,\1#\2define\3'
1.1 parser 9480: ac_uC=' '
1.10 ! paf 9481: ac_uD=',;t'
1.1 parser 9482:
1.10 ! paf 9483: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9484: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.10 ! paf 9485: case $ac_file in
! 9486: - | *:- | *:-:* ) # input from stdin
! 9487: cat >$tmp/stdin
! 9488: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9489: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9490: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9491: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9492: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9493: esac
9494:
1.10 ! paf 9495: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! 9496: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9497:
1.10 ! paf 9498: # First look for the input files in the build tree, otherwise in the
! 9499: # src tree.
! 9500: ac_file_inputs=`IFS=:
! 9501: for f in $ac_file_in; do
! 9502: case $f in
! 9503: -) echo $tmp/stdin ;;
! 9504: [\\/$]*)
! 9505: # Absolute (can't be DOS-style, as IFS=:)
! 9506: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9507: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9508: { (exit 1); exit 1; }; }
! 9509: echo $f;;
! 9510: *) # Relative
! 9511: if test -f "$f"; then
! 9512: # Build tree
! 9513: echo $f
! 9514: elif test -f "$srcdir/$f"; then
! 9515: # Source tree
! 9516: echo $srcdir/$f
! 9517: else
! 9518: # /dev/null tree
! 9519: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9520: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9521: { (exit 1); exit 1; }; }
! 9522: fi;;
! 9523: esac
! 9524: done` || { (exit 1); exit 1; }
! 9525: # Remove the trailing spaces.
! 9526: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
! 9527:
! 9528: _ACEOF
! 9529:
! 9530: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 9531: # `conftest.undefs', that substitutes the proper values into
! 9532: # config.h.in to produce config.h. The first handles `#define'
! 9533: # templates, and the second `#undef' templates.
! 9534: # And first: Protect against being on the right side of a sed subst in
! 9535: # config.status. Protect against being in an unquoted here document
! 9536: # in config.status.
! 9537: rm -f conftest.defines conftest.undefs
! 9538: # Using a here document instead of a string reduces the quoting nightmare.
! 9539: # Putting comments in sed scripts is not portable.
! 9540: #
! 9541: # `end' is used to avoid that the second main sed command (meant for
! 9542: # 0-ary CPP macros) applies to n-ary macro definitions.
! 9543: # See the Autoconf documentation for `clear'.
! 9544: cat >confdef2sed.sed <<\_ACEOF
! 9545: s/[\\&,]/\\&/g
! 9546: s,[\\$`],\\&,g
! 9547: t clear
! 9548: : clear
! 9549: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! 9550: t end
! 9551: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 9552: : end
! 9553: _ACEOF
! 9554: # If some macros were called several times there might be several times
! 9555: # the same #defines, which is useless. Nevertheless, we may not want to
! 9556: # sort them, since we want the *last* AC-DEFINE to be honored.
! 9557: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 9558: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 9559: rm -f confdef2sed.sed
1.1 parser 9560:
9561: # This sed command replaces #undef with comments. This is necessary, for
9562: # example, in the case of _POSIX_SOURCE, which is predefined and required
9563: # on some systems where configure will not decide to define it.
1.10 ! paf 9564: cat >>conftest.undefs <<\_ACEOF
! 9565: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
! 9566: _ACEOF
! 9567:
! 9568: # Break up conftest.defines because some shells have a limit on the size
! 9569: # of here documents, and old seds have small limits too (100 cmds).
! 9570: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 9571: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 9572: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 9573: echo ' :' >>$CONFIG_STATUS
! 9574: rm -f conftest.tail
! 9575: while grep . conftest.defines >/dev/null
! 9576: do
! 9577: # Write a limited-size here document to $tmp/defines.sed.
! 9578: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 9579: # Speed up: don't consider the non `#define' lines.
! 9580: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 9581: # Work around the forget-to-reset-the-flag bug.
! 9582: echo 't clr' >>$CONFIG_STATUS
! 9583: echo ': clr' >>$CONFIG_STATUS
! 9584: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 9585: echo 'CEOF
! 9586: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 9587: rm -f $tmp/in
! 9588: mv $tmp/out $tmp/in
! 9589: ' >>$CONFIG_STATUS
! 9590: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 9591: rm -f conftest.defines
! 9592: mv conftest.tail conftest.defines
! 9593: done
! 9594: rm -f conftest.defines
! 9595: echo ' fi # grep' >>$CONFIG_STATUS
! 9596: echo >>$CONFIG_STATUS
! 9597:
! 9598: # Break up conftest.undefs because some shells have a limit on the size
! 9599: # of here documents, and old seds have small limits too (100 cmds).
! 9600: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 9601: rm -f conftest.tail
1.10 ! paf 9602: while grep . conftest.undefs >/dev/null
1.1 parser 9603: do
1.10 ! paf 9604: # Write a limited-size here document to $tmp/undefs.sed.
! 9605: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 9606: # Speed up: don't consider the non `#undef'
! 9607: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 9608: # Work around the forget-to-reset-the-flag bug.
! 9609: echo 't clr' >>$CONFIG_STATUS
! 9610: echo ': clr' >>$CONFIG_STATUS
! 9611: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 9612: echo 'CEOF
1.10 ! paf 9613: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 9614: rm -f $tmp/in
! 9615: mv $tmp/out $tmp/in
! 9616: ' >>$CONFIG_STATUS
! 9617: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 9618: rm -f conftest.undefs
! 9619: mv conftest.tail conftest.undefs
! 9620: done
! 9621: rm -f conftest.undefs
! 9622:
! 9623: cat >>$CONFIG_STATUS <<\_ACEOF
! 9624: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 9625: # use $as_me), people would be surprised to read:
! 9626: # /* config.h. Generated by config.status. */
! 9627: if test x"$ac_file" = x-; then
! 9628: echo "/* Generated by configure. */" >$tmp/config.h
! 9629: else
! 9630: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
! 9631: fi
! 9632: cat $tmp/in >>$tmp/config.h
! 9633: rm -f $tmp/in
! 9634: if test x"$ac_file" != x-; then
! 9635: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
! 9636: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 9637: echo "$as_me: $ac_file is unchanged" >&6;}
! 9638: else
! 9639: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 9640: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9641: X"$ac_file" : 'X\(//\)[^/]' \| \
! 9642: X"$ac_file" : 'X\(//\)$' \| \
! 9643: X"$ac_file" : 'X\(/\)' \| \
! 9644: . : '\(.\)' 2>/dev/null ||
! 9645: echo X"$ac_file" |
! 9646: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9647: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9648: /^X\(\/\/\)$/{ s//\1/; q; }
! 9649: /^X\(\/\).*/{ s//\1/; q; }
! 9650: s/.*/./; q'`
! 9651: { if $as_mkdir_p; then
! 9652: mkdir -p "$ac_dir"
! 9653: else
! 9654: as_dir="$ac_dir"
! 9655: as_dirs=
! 9656: while test ! -d "$as_dir"; do
! 9657: as_dirs="$as_dir $as_dirs"
! 9658: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9659: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9660: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9661: X"$as_dir" : 'X\(//\)$' \| \
! 9662: X"$as_dir" : 'X\(/\)' \| \
! 9663: . : '\(.\)' 2>/dev/null ||
! 9664: echo X"$as_dir" |
! 9665: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9666: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9667: /^X\(\/\/\)$/{ s//\1/; q; }
! 9668: /^X\(\/\).*/{ s//\1/; q; }
! 9669: s/.*/./; q'`
! 9670: done
! 9671: test ! -n "$as_dirs" || mkdir $as_dirs
! 9672: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9673: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9674: { (exit 1); exit 1; }; }; }
! 9675:
! 9676: rm -f $ac_file
! 9677: mv $tmp/config.h $ac_file
1.1 parser 9678: fi
1.10 ! paf 9679: else
! 9680: cat $tmp/config.h
! 9681: rm -f $tmp/config.h
1.1 parser 9682: fi
1.10 ! paf 9683: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
! 9684: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
! 9685: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9686: X$ac_file : 'X\(//\)[^/]' \| \
! 9687: X$ac_file : 'X\(//\)$' \| \
! 9688: X$ac_file : 'X\(/\)' \| \
! 9689: . : '\(.\)' 2>/dev/null ||
! 9690: echo X$ac_file |
! 9691: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9692: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9693: /^X\(\/\/\)$/{ s//\1/; q; }
! 9694: /^X\(\/\).*/{ s//\1/; q; }
! 9695: s/.*/./; q'`/stamp-h$_am_stamp_count
! 9696: done
! 9697: _ACEOF
! 9698: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9699:
1.10 ! paf 9700: #
! 9701: # CONFIG_COMMANDS section.
! 9702: #
! 9703: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 9704: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 9705: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9706: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 9707: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9708: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 9709: X"$ac_dest" : 'X\(//\)$' \| \
! 9710: X"$ac_dest" : 'X\(/\)' \| \
! 9711: . : '\(.\)' 2>/dev/null ||
! 9712: echo X"$ac_dest" |
! 9713: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9714: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9715: /^X\(\/\/\)$/{ s//\1/; q; }
! 9716: /^X\(\/\).*/{ s//\1/; q; }
! 9717: s/.*/./; q'`
! 9718: ac_builddir=.
! 9719:
! 9720: if test "$ac_dir" != .; then
! 9721: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9722: # A "../" for each directory in $ac_dir_suffix.
! 9723: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9724: else
! 9725: ac_dir_suffix= ac_top_builddir=
! 9726: fi
! 9727:
! 9728: case $srcdir in
! 9729: .) # No --srcdir option. We are building in place.
! 9730: ac_srcdir=.
! 9731: if test -z "$ac_top_builddir"; then
! 9732: ac_top_srcdir=.
! 9733: else
! 9734: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9735: fi ;;
! 9736: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9737: ac_srcdir=$srcdir$ac_dir_suffix;
! 9738: ac_top_srcdir=$srcdir ;;
! 9739: *) # Relative path.
! 9740: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9741: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9742: esac
! 9743: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9744: # absolute.
! 9745: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9746: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 9747: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9748: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9749:
! 9750:
! 9751: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 9752: echo "$as_me: executing $ac_dest commands" >&6;}
! 9753: case $ac_dest in
! 9754: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
! 9755: # Strip MF so we end up with the name of the file.
! 9756: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 9757: # Check whether this is an Automake generated Makefile or not.
! 9758: # We used to match only the files named `Makefile.in', but
! 9759: # some people rename them; so instead we look at the file content.
! 9760: # Grep'ing the first line is not enough: some people post-process
! 9761: # each Makefile.in and add a new line on top of each file to say so.
! 9762: # So let's grep whole file.
! 9763: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
! 9764: dirpart=`(dirname "$mf") 2>/dev/null ||
! 9765: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9766: X"$mf" : 'X\(//\)[^/]' \| \
! 9767: X"$mf" : 'X\(//\)$' \| \
! 9768: X"$mf" : 'X\(/\)' \| \
! 9769: . : '\(.\)' 2>/dev/null ||
! 9770: echo X"$mf" |
! 9771: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9772: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9773: /^X\(\/\/\)$/{ s//\1/; q; }
! 9774: /^X\(\/\).*/{ s//\1/; q; }
! 9775: s/.*/./; q'`
! 9776: else
! 9777: continue
! 9778: fi
! 9779: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
! 9780: # Extract the definition of DEP_FILES from the Makefile without
! 9781: # running `make'.
! 9782: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
! 9783: test -z "$DEPDIR" && continue
! 9784: # When using ansi2knr, U may be empty or an underscore; expand it
! 9785: U=`sed -n -e '/^U = / s///p' < "$mf"`
! 9786: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
! 9787: # We invoke sed twice because it is the simplest approach to
! 9788: # changing $(DEPDIR) to its actual value in the expansion.
! 9789: for file in `sed -n -e '
! 9790: /^DEP_FILES = .*\\\\$/ {
! 9791: s/^DEP_FILES = //
! 9792: :loop
! 9793: s/\\\\$//
! 9794: p
! 9795: n
! 9796: /\\\\$/ b loop
! 9797: p
! 9798: }
! 9799: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
! 9800: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 9801: # Make sure the directory exists.
! 9802: test -f "$dirpart/$file" && continue
! 9803: fdir=`(dirname "$file") 2>/dev/null ||
! 9804: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9805: X"$file" : 'X\(//\)[^/]' \| \
! 9806: X"$file" : 'X\(//\)$' \| \
! 9807: X"$file" : 'X\(/\)' \| \
! 9808: . : '\(.\)' 2>/dev/null ||
! 9809: echo X"$file" |
! 9810: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9811: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9812: /^X\(\/\/\)$/{ s//\1/; q; }
! 9813: /^X\(\/\).*/{ s//\1/; q; }
! 9814: s/.*/./; q'`
! 9815: { if $as_mkdir_p; then
! 9816: mkdir -p $dirpart/$fdir
! 9817: else
! 9818: as_dir=$dirpart/$fdir
! 9819: as_dirs=
! 9820: while test ! -d "$as_dir"; do
! 9821: as_dirs="$as_dir $as_dirs"
! 9822: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9823: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9824: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9825: X"$as_dir" : 'X\(//\)$' \| \
! 9826: X"$as_dir" : 'X\(/\)' \| \
! 9827: . : '\(.\)' 2>/dev/null ||
! 9828: echo X"$as_dir" |
! 9829: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9830: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9831: /^X\(\/\/\)$/{ s//\1/; q; }
! 9832: /^X\(\/\).*/{ s//\1/; q; }
! 9833: s/.*/./; q'`
! 9834: done
! 9835: test ! -n "$as_dirs" || mkdir $as_dirs
! 9836: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
! 9837: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
! 9838: { (exit 1); exit 1; }; }; }
1.1 parser 9839:
1.10 ! paf 9840: # echo "creating $dirpart/$file"
! 9841: echo '# dummy' > "$dirpart/$file"
! 9842: done
! 9843: done
! 9844: ;;
! 9845: esac
! 9846: done
! 9847: _ACEOF
1.1 parser 9848:
1.10 ! paf 9849: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9850:
1.10 ! paf 9851: { (exit 0); exit 0; }
! 9852: _ACEOF
1.1 parser 9853: chmod +x $CONFIG_STATUS
1.10 ! paf 9854: ac_clean_files=$ac_clean_files_save
! 9855:
! 9856:
! 9857: # configure is writing to config.log, and then calls config.status.
! 9858: # config.status does its own redirection, appending to config.log.
! 9859: # Unfortunately, on DOS this fails, as config.log is still kept open
! 9860: # by configure, so config.status won't be able to write to it; its
! 9861: # output is simply discarded. So we exec the FD to /dev/null,
! 9862: # effectively closing config.log, so it can be properly (re)opened and
! 9863: # appended to by config.status. When coming back to configure, we
! 9864: # need to make the FD available again.
! 9865: if test "$no_create" != yes; then
! 9866: ac_cs_success=:
! 9867: ac_config_status_args=
! 9868: test "$silent" = yes &&
! 9869: ac_config_status_args="$ac_config_status_args --quiet"
! 9870: exec 5>/dev/null
! 9871: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
! 9872: exec 5>>config.log
! 9873: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
! 9874: # would make configure fail if this is the last instruction.
! 9875: $ac_cs_success || { (exit 1); exit 1; }
! 9876: fi
1.1 parser 9877:
1.10 ! paf 9878: #
! 9879: # CONFIG_SUBDIRS section.
! 9880: #
1.1 parser 9881: if test "$no_recursion" != yes; then
9882:
9883: # Remove --cache-file and --srcdir arguments so they do not pile up.
9884: ac_sub_configure_args=
9885: ac_prev=
9886: for ac_arg in $ac_configure_args; do
9887: if test -n "$ac_prev"; then
9888: ac_prev=
9889: continue
9890: fi
1.10 ! paf 9891: case $ac_arg in
1.1 parser 9892: -cache-file | --cache-file | --cache-fil | --cache-fi \
9893: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9894: ac_prev=cache_file ;;
9895: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 ! paf 9896: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
! 9897: | --c=*)
! 9898: ;;
! 9899: --config-cache | -C)
1.1 parser 9900: ;;
9901: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9902: ac_prev=srcdir ;;
9903: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9904: ;;
1.10 ! paf 9905: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
! 9906: ac_prev=prefix ;;
! 9907: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
! 9908: ;;
1.1 parser 9909: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9910: esac
9911: done
9912:
1.10 ! paf 9913: # Always prepend --prefix to ensure using the same prefix
! 9914: # in subdir configurations.
! 9915: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
! 9916:
! 9917: ac_popdir=`pwd`
! 9918: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 9919:
9920: # Do not complain, so a configure script can configure whichever
9921: # parts of a large source tree are present.
1.10 ! paf 9922: test -d $srcdir/$ac_dir || continue
1.1 parser 9923:
1.10 ! paf 9924: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
! 9925: echo "$as_me: configuring in $ac_dir" >&6;}
! 9926: { if $as_mkdir_p; then
! 9927: mkdir -p "$ac_dir"
! 9928: else
! 9929: as_dir="$ac_dir"
! 9930: as_dirs=
! 9931: while test ! -d "$as_dir"; do
! 9932: as_dirs="$as_dir $as_dirs"
! 9933: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9934: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9935: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9936: X"$as_dir" : 'X\(//\)$' \| \
! 9937: X"$as_dir" : 'X\(/\)' \| \
! 9938: . : '\(.\)' 2>/dev/null ||
! 9939: echo X"$as_dir" |
! 9940: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9941: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9942: /^X\(\/\/\)$/{ s//\1/; q; }
! 9943: /^X\(\/\).*/{ s//\1/; q; }
! 9944: s/.*/./; q'`
! 9945: done
! 9946: test ! -n "$as_dirs" || mkdir $as_dirs
! 9947: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9948: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9949: { (exit 1); exit 1; }; }; }
! 9950:
! 9951: ac_builddir=.
! 9952:
! 9953: if test "$ac_dir" != .; then
! 9954: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9955: # A "../" for each directory in $ac_dir_suffix.
! 9956: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9957: else
! 9958: ac_dir_suffix= ac_top_builddir=
! 9959: fi
! 9960:
! 9961: case $srcdir in
! 9962: .) # No --srcdir option. We are building in place.
! 9963: ac_srcdir=.
! 9964: if test -z "$ac_top_builddir"; then
! 9965: ac_top_srcdir=.
! 9966: else
! 9967: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9968: fi ;;
! 9969: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9970: ac_srcdir=$srcdir$ac_dir_suffix;
! 9971: ac_top_srcdir=$srcdir ;;
! 9972: *) # Relative path.
! 9973: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9974: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9975: esac
! 9976: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9977: # absolute.
! 9978: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9979: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 9980: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9981: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 parser 9982:
9983:
1.10 ! paf 9984: cd $ac_dir
1.1 parser 9985:
9986: # Check for guested configure; otherwise get Cygnus style configure.
1.10 ! paf 9987: if test -f $ac_srcdir/configure.gnu; then
! 9988: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
! 9989: elif test -f $ac_srcdir/configure; then
! 9990: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
! 9991: elif test -f $ac_srcdir/configure.in; then
1.1 parser 9992: ac_sub_configure=$ac_configure
9993: else
1.10 ! paf 9994: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
! 9995: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 9996: ac_sub_configure=
9997: fi
9998:
9999: # The recursion is here.
10000: if test -n "$ac_sub_configure"; then
10001: # Make the cache file name correct relative to the subdirectory.
1.10 ! paf 10002: case $cache_file in
! 10003: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10004: *) # Relative path.
1.10 ! paf 10005: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10006: esac
10007:
1.10 ! paf 10008: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
! 10009: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10010: # The eval makes quoting arguments work.
1.10 ! paf 10011: eval $ac_sub_configure $ac_sub_configure_args \
! 10012: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
! 10013: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
! 10014: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
! 10015: { (exit 1); exit 1; }; }
1.1 parser 10016: fi
10017:
10018: cd $ac_popdir
10019: done
10020: fi
10021:
E-mail: