Annotation of sql/mysql/configure, revision 1.15
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.15 ! paf 3: # Generated by GNU Autoconf 2.57.
1.1 parser 4: #
1.15 ! 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.15 ! 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:
1.1 parser 401:
1.15 ! paf 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`
! 406:
! 407: exec 6>&1
! 408:
! 409: #
! 410: # Initializations.
! 411: #
1.1 parser 412: ac_default_prefix=/usr/local
1.15 ! 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="parser3mysql.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 MYSQL_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 LIBTOOL_DEPS subdirs LIBOBJS LTLIBOBJS'
! 472: ac_subst_files=''
1.1 parser 473:
474: # Initialize some variables set by options.
1.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! paf 531: bindir=$ac_optarg ;;
1.1 parser 532:
533: -build | --build | --buil | --bui | --bu)
1.15 ! paf 534: ac_prev=build_alias ;;
1.1 parser 535: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 ! 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.15 ! 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.15 ! paf 552: datadir=$ac_optarg ;;
1.1 parser 553:
554: -disable-* | --disable-*)
1.15 ! paf 555: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 556: # Reject names that are not valid shell variable names.
1.15 ! 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.15 ! paf 564: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 565: # Reject names that are not valid shell variable names.
1.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! paf 597: ac_prev=host_alias ;;
1.1 parser 598: -host=* | --host=* | --hos=* | --ho=*)
1.15 ! 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.15 ! 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.15 ! paf 611: infodir=$ac_optarg ;;
1.1 parser 612:
613: -libdir | --libdir | --libdi | --libd)
614: ac_prev=libdir ;;
615: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! paf 715: sharedstatedir=$ac_optarg ;;
1.1 parser 716:
717: -site | --site | --sit)
718: ac_prev=site ;;
719: -site=* | --site=* | --sit=*)
1.15 ! 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.15 ! 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.15 ! paf 732: sysconfdir=$ac_optarg ;;
1.1 parser 733:
734: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 ! paf 735: ac_prev=target_alias ;;
1.1 parser 736: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 ! paf 737: target_alias=$ac_optarg ;;
1.1 parser 738:
739: -v | -verbose | --verbose | --verbos | --verbo | --verb)
740: verbose=yes ;;
741:
1.15 ! paf 742: -version | --version | --versio | --versi | --vers | -V)
! 743: ac_init_version=: ;;
1.1 parser 744:
745: -with-* | --with-*)
1.15 ! paf 746: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 747: # Reject names that are not valid shell variable names.
1.15 ! 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.15 ! 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.15 ! paf 756: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 757:
758: -without-* | --without-*)
1.15 ! paf 759: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 760: # Reject names that are not valid shell variable names.
1.15 ! 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.15 ! 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.15 ! paf 783: x_libraries=$ac_optarg ;;
1.1 parser 784:
1.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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-mysql-inc=DIR DIR is the MySQL 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
! 1105:
! 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
1.1 parser 1328:
1.15 ! paf 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.15 ! 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.15 ! 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.15 ! 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.15 ! 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
! 1431:
! 1432:
! 1433:
! 1434:
! 1435:
! 1436:
! 1437:
! 1438:
! 1439:
! 1440:
! 1441:
! 1442:
! 1443:
! 1444:
! 1445:
! 1446:
! 1447:
! 1448:
! 1449:
1.1 parser 1450:
1451:
1.15 ! paf 1452: am__api_version="1.7"
1.1 parser 1453: ac_aux_dir=
1454: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1455: if test -f $ac_dir/install-sh; then
1456: ac_aux_dir=$ac_dir
1457: ac_install_sh="$ac_aux_dir/install-sh -c"
1458: break
1459: elif test -f $ac_dir/install.sh; then
1460: ac_aux_dir=$ac_dir
1461: ac_install_sh="$ac_aux_dir/install.sh -c"
1462: break
1.15 ! paf 1463: elif test -f $ac_dir/shtool; then
! 1464: ac_aux_dir=$ac_dir
! 1465: ac_install_sh="$ac_aux_dir/shtool install -c"
! 1466: break
1.1 parser 1467: fi
1468: done
1469: if test -z "$ac_aux_dir"; then
1.15 ! paf 1470: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1471: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1472: { (exit 1); exit 1; }; }
! 1473: fi
! 1474: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 1475: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 1476: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1477:
1478: # Find a good install program. We prefer a C program (faster),
1479: # so one script is as good as another. But avoid the broken or
1480: # incompatible versions:
1481: # SysV /etc/install, /usr/sbin/install
1482: # SunOS /usr/etc/install
1483: # IRIX /sbin/install
1484: # AIX /bin/install
1.15 ! paf 1485: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1486: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1487: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1488: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1489: # ./install, which can be erroneously created by make from ./install.sh.
1.15 ! paf 1490: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1491: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1492: if test -z "$INSTALL"; then
1.15 ! paf 1493: if test "${ac_cv_path_install+set}" = set; then
! 1494: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1495: else
1.15 ! paf 1496: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1497: for as_dir in $PATH
! 1498: do
! 1499: IFS=$as_save_IFS
! 1500: test -z "$as_dir" && as_dir=.
! 1501: # Account for people who put trailing slashes in PATH elements.
! 1502: case $as_dir/ in
! 1503: ./ | .// | /cC/* | \
! 1504: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1505: /usr/ucb/* ) ;;
! 1506: *)
! 1507: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1508: # Don't use installbsd from OSF since it installs stuff as root
! 1509: # by default.
! 1510: for ac_prog in ginstall scoinst install; do
! 1511: for ac_exec_ext in '' $ac_executable_extensions; do
! 1512: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1513: if test $ac_prog = install &&
! 1514: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1515: # AIX install. It has an incompatible calling convention.
! 1516: :
! 1517: elif test $ac_prog = install &&
! 1518: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1519: # program-specific install script used by HP pwplus--don't use.
! 1520: :
! 1521: else
! 1522: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1523: break 3
! 1524: fi
! 1525: fi
1.1 parser 1526: done
1.15 ! paf 1527: done
! 1528: ;;
! 1529: esac
! 1530: done
! 1531:
1.1 parser 1532:
1533: fi
1534: if test "${ac_cv_path_install+set}" = set; then
1.15 ! paf 1535: INSTALL=$ac_cv_path_install
1.1 parser 1536: else
1537: # As a last resort, use the slow shell script. We don't cache a
1538: # path for INSTALL within a source directory, because that will
1539: # break other packages using the cache if that directory is
1540: # removed, or if the path is relative.
1.15 ! paf 1541: INSTALL=$ac_install_sh
1.1 parser 1542: fi
1543: fi
1.15 ! paf 1544: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1545: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1546:
1547: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1548: # It thinks the first close brace ends the variable substitution.
1549: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1550:
1.15 ! paf 1551: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1552:
1553: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1554:
1.15 ! paf 1555: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 1556: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1557: # Just in case
1558: sleep 1
1.15 ! paf 1559: echo timestamp > conftest.file
1.1 parser 1560: # Do `set' in a subshell so we don't clobber the current shell's
1561: # arguments. Must try -L first in case configure is actually a
1562: # symlink; some systems play weird games with the mod time of symlinks
1563: # (eg FreeBSD returns the mod time of the symlink's containing
1564: # directory).
1565: if (
1.15 ! paf 1566: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1567: if test "$*" = "X"; then
1568: # -L didn't work.
1.15 ! paf 1569: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1570: fi
1.15 ! paf 1571: rm -f conftest.file
! 1572: if test "$*" != "X $srcdir/configure conftest.file" \
! 1573: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1574:
1575: # If neither matched, then we have a broken ls. This can happen
1576: # if, for instance, CONFIG_SHELL is bash and it inherits a
1577: # broken ls alias from the environment. This has actually
1578: # happened. Such a system could not be considered "sane".
1.15 ! paf 1579: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
! 1580: alias in your environment" >&5
! 1581: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
! 1582: alias in your environment" >&2;}
! 1583: { (exit 1); exit 1; }; }
1.1 parser 1584: fi
1585:
1.15 ! paf 1586: test "$2" = conftest.file
1.1 parser 1587: )
1588: then
1589: # Ok.
1590: :
1591: else
1.15 ! paf 1592: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
! 1593: Check your system clock" >&5
! 1594: echo "$as_me: error: newly created file is older than distributed files!
! 1595: Check your system clock" >&2;}
! 1596: { (exit 1); exit 1; }; }
1.1 parser 1597: fi
1.15 ! paf 1598: echo "$as_me:$LINENO: result: yes" >&5
! 1599: echo "${ECHO_T}yes" >&6
1.1 parser 1600: test "$program_prefix" != NONE &&
1.15 ! paf 1601: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1602: # Use a double $ so make ignores it.
1603: test "$program_suffix" != NONE &&
1.15 ! paf 1604: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
! 1605: # Double any \ or $. echo might interpret backslashes.
! 1606: # By default was `s,x,x', remove it if useless.
! 1607: cat <<\_ACEOF >conftest.sed
! 1608: s/[\\$]/&&/g;s/;s,x,x,$//
! 1609: _ACEOF
! 1610: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
! 1611: rm conftest.sed
! 1612:
! 1613:
! 1614: # expand $ac_aux_dir to an absolute path
! 1615: am_aux_dir=`cd $ac_aux_dir && pwd`
! 1616:
! 1617: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
! 1618: # Use eval to expand $SHELL
! 1619: if eval "$MISSING --run true"; then
! 1620: am_missing_run="$MISSING --run "
! 1621: else
! 1622: am_missing_run=
! 1623: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
! 1624: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
! 1625: fi
! 1626:
! 1627: for ac_prog in gawk mawk nawk awk
! 1628: do
! 1629: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 1630: set dummy $ac_prog; ac_word=$2
! 1631: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1632: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1633: if test "${ac_cv_prog_AWK+set}" = set; then
! 1634: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1635: else
! 1636: if test -n "$AWK"; then
! 1637: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 1638: else
! 1639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1640: for as_dir in $PATH
! 1641: do
! 1642: IFS=$as_save_IFS
! 1643: test -z "$as_dir" && as_dir=.
! 1644: for ac_exec_ext in '' $ac_executable_extensions; do
! 1645: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1646: ac_cv_prog_AWK="$ac_prog"
! 1647: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1648: break 2
! 1649: fi
! 1650: done
! 1651: done
! 1652:
! 1653: fi
! 1654: fi
! 1655: AWK=$ac_cv_prog_AWK
! 1656: if test -n "$AWK"; then
! 1657: echo "$as_me:$LINENO: result: $AWK" >&5
! 1658: echo "${ECHO_T}$AWK" >&6
! 1659: else
! 1660: echo "$as_me:$LINENO: result: no" >&5
! 1661: echo "${ECHO_T}no" >&6
! 1662: fi
1.1 parser 1663:
1.15 ! paf 1664: test -n "$AWK" && break
! 1665: done
1.1 parser 1666:
1.15 ! paf 1667: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1668: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1669: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
! 1670: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1671: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1672: else
1.15 ! paf 1673: cat >conftest.make <<\_ACEOF
1.1 parser 1674: all:
1.15 ! paf 1675: @echo 'ac_maketemp="$(MAKE)"'
! 1676: _ACEOF
1.1 parser 1677: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 ! paf 1678: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1679: if test -n "$ac_maketemp"; then
1680: eval ac_cv_prog_make_${ac_make}_set=yes
1681: else
1682: eval ac_cv_prog_make_${ac_make}_set=no
1683: fi
1.15 ! paf 1684: rm -f conftest.make
1.1 parser 1685: fi
1686: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 ! paf 1687: echo "$as_me:$LINENO: result: yes" >&5
! 1688: echo "${ECHO_T}yes" >&6
1.1 parser 1689: SET_MAKE=
1690: else
1.15 ! paf 1691: echo "$as_me:$LINENO: result: no" >&5
! 1692: echo "${ECHO_T}no" >&6
1.1 parser 1693: SET_MAKE="MAKE=${MAKE-make}"
1694: fi
1695:
1.15 ! paf 1696: # test to see if srcdir already configured
! 1697: if test "`cd $srcdir && pwd`" != "`pwd`" &&
! 1698: test -f $srcdir/config.status; then
! 1699: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
! 1700: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 1701: { (exit 1); exit 1; }; }
! 1702: fi
! 1703:
! 1704: # test whether we have cygpath
! 1705: if test -z "$CYGPATH_W"; then
! 1706: if (cygpath --version) >/dev/null 2>/dev/null; then
! 1707: CYGPATH_W='cygpath -w'
! 1708: else
! 1709: CYGPATH_W=echo
! 1710: fi
! 1711: fi
! 1712:
! 1713:
! 1714: # Define the identity of the package.
! 1715: PACKAGE=parser3mysql
! 1716: VERSION=3.0.HEAD
! 1717:
! 1718:
! 1719: # Some tools Automake needs.
! 1720:
! 1721: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
! 1722:
! 1723:
! 1724: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1725:
1726:
1.15 ! paf 1727: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
! 1728:
! 1729:
! 1730: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
! 1731:
! 1732:
! 1733: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1734:
1735:
1.15 ! paf 1736: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 parser 1737:
1.15 ! paf 1738: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1739:
1.15 ! paf 1740: # Installed binaries are usually stripped using `strip' when the user
! 1741: # run `make install-strip'. However `strip' might not be the right
! 1742: # tool to use in cross-compilation environments, therefore Automake
! 1743: # will honor the `STRIP' environment variable to overrule this program.
! 1744: if test "$cross_compiling" != no; then
! 1745: if test -n "$ac_tool_prefix"; then
! 1746: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 1747: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 1748: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1749: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1750: if test "${ac_cv_prog_STRIP+set}" = set; then
! 1751: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1752: else
! 1753: if test -n "$STRIP"; then
! 1754: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1755: else
1.15 ! paf 1756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1757: for as_dir in $PATH
! 1758: do
! 1759: IFS=$as_save_IFS
! 1760: test -z "$as_dir" && as_dir=.
! 1761: for ac_exec_ext in '' $ac_executable_extensions; do
! 1762: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1763: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 1764: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1765: break 2
! 1766: fi
! 1767: done
! 1768: done
! 1769:
! 1770: fi
! 1771: fi
! 1772: STRIP=$ac_cv_prog_STRIP
! 1773: if test -n "$STRIP"; then
! 1774: echo "$as_me:$LINENO: result: $STRIP" >&5
! 1775: echo "${ECHO_T}$STRIP" >&6
! 1776: else
! 1777: echo "$as_me:$LINENO: result: no" >&5
! 1778: echo "${ECHO_T}no" >&6
1.1 parser 1779: fi
1780:
1.15 ! paf 1781: fi
! 1782: if test -z "$ac_cv_prog_STRIP"; then
! 1783: ac_ct_STRIP=$STRIP
! 1784: # Extract the first word of "strip", so it can be a program name with args.
! 1785: set dummy strip; ac_word=$2
! 1786: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1787: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1788: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 1789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1790: else
1.15 ! paf 1791: if test -n "$ac_ct_STRIP"; then
! 1792: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 1793: else
! 1794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1795: for as_dir in $PATH
! 1796: do
! 1797: IFS=$as_save_IFS
! 1798: test -z "$as_dir" && as_dir=.
! 1799: for ac_exec_ext in '' $ac_executable_extensions; do
! 1800: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1801: ac_cv_prog_ac_ct_STRIP="strip"
! 1802: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1803: break 2
! 1804: fi
! 1805: done
! 1806: done
! 1807:
! 1808: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1809: fi
1.15 ! paf 1810: fi
! 1811: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 1812: if test -n "$ac_ct_STRIP"; then
! 1813: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 1814: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1815: else
1.15 ! paf 1816: echo "$as_me:$LINENO: result: no" >&5
! 1817: echo "${ECHO_T}no" >&6
1.1 parser 1818: fi
1819:
1.15 ! paf 1820: STRIP=$ac_ct_STRIP
1.1 parser 1821: else
1.15 ! paf 1822: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1823: fi
1824:
1825: fi
1.15 ! paf 1826: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
! 1827:
! 1828: # We need awk for the "check" target. The system "awk" is bad on
! 1829: # some platforms.
1.1 parser 1830:
1831:
1832:
1833:
1.15 ! paf 1834: ac_config_headers="$ac_config_headers config_auto.h"
! 1835:
1.1 parser 1836:
1837:
1838:
1839:
1.8 paf 1840:
1841:
1842:
1.4 paf 1843: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1844: if test "${with_mysql_inc+set}" = set; then
1845: withval="$with_mysql_inc"
1.15 ! paf 1846:
1.8 paf 1847: if test -r "$withval/mysql.h"; then
1848: MYSQL_INC=$withval
1849: fi
1850:
1851:
1852: if test -z "$MYSQL_INC"; then
1.15 ! paf 1853: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
! 1854: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
! 1855: { (exit 1); exit 1; }; }
1.8 paf 1856: fi
1857:
1.1 parser 1858: else
1.15 ! paf 1859: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
! 1860: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1861: for d in \
1862: /usr/local/include/mysql \
1863: /usr/include/mysql ; do
1.15 ! paf 1864:
1.8 paf 1865: if test -r "$d/mysql.h"; then
1866: MYSQL_INC=$d
1867: fi
1868:
1869: done
1870:
1871: if test -z "$MYSQL_INC"; then
1.15 ! paf 1872: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
! 1873: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
! 1874: { (exit 1); exit 1; }; }
1.8 paf 1875: fi
1876:
1.15 ! paf 1877: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
! 1878: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1879:
1.15 ! paf 1880: fi;
1.3 parser 1881:
1.1 parser 1882:
1883:
1.3 parser 1884:
1.1 parser 1885:
1886: # Find a good install program. We prefer a C program (faster),
1887: # so one script is as good as another. But avoid the broken or
1888: # incompatible versions:
1889: # SysV /etc/install, /usr/sbin/install
1890: # SunOS /usr/etc/install
1891: # IRIX /sbin/install
1892: # AIX /bin/install
1.15 ! paf 1893: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1894: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1895: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1896: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1897: # ./install, which can be erroneously created by make from ./install.sh.
1.15 ! paf 1898: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1899: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1900: if test -z "$INSTALL"; then
1.15 ! paf 1901: if test "${ac_cv_path_install+set}" = set; then
! 1902: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1903: else
1.15 ! paf 1904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1905: for as_dir in $PATH
! 1906: do
! 1907: IFS=$as_save_IFS
! 1908: test -z "$as_dir" && as_dir=.
! 1909: # Account for people who put trailing slashes in PATH elements.
! 1910: case $as_dir/ in
! 1911: ./ | .// | /cC/* | \
! 1912: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1913: /usr/ucb/* ) ;;
! 1914: *)
! 1915: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1916: # Don't use installbsd from OSF since it installs stuff as root
! 1917: # by default.
! 1918: for ac_prog in ginstall scoinst install; do
! 1919: for ac_exec_ext in '' $ac_executable_extensions; do
! 1920: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1921: if test $ac_prog = install &&
! 1922: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1923: # AIX install. It has an incompatible calling convention.
! 1924: :
! 1925: elif test $ac_prog = install &&
! 1926: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1927: # program-specific install script used by HP pwplus--don't use.
! 1928: :
! 1929: else
! 1930: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1931: break 3
! 1932: fi
! 1933: fi
1.1 parser 1934: done
1.15 ! paf 1935: done
! 1936: ;;
! 1937: esac
! 1938: done
! 1939:
1.1 parser 1940:
1941: fi
1942: if test "${ac_cv_path_install+set}" = set; then
1.15 ! paf 1943: INSTALL=$ac_cv_path_install
1.1 parser 1944: else
1945: # As a last resort, use the slow shell script. We don't cache a
1946: # path for INSTALL within a source directory, because that will
1947: # break other packages using the cache if that directory is
1948: # removed, or if the path is relative.
1.15 ! paf 1949: INSTALL=$ac_install_sh
1.1 parser 1950: fi
1951: fi
1.15 ! paf 1952: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1953: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1954:
1955: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1956: # It thinks the first close brace ends the variable substitution.
1957: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1958:
1.15 ! paf 1959: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1960:
1961: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1962:
1.15 ! paf 1963: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1964: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1965: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
! 1966: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1967: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1968: else
1.15 ! paf 1969: cat >conftest.make <<\_ACEOF
1.1 parser 1970: all:
1.15 ! paf 1971: @echo 'ac_maketemp="$(MAKE)"'
! 1972: _ACEOF
1.1 parser 1973: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 ! paf 1974: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1975: if test -n "$ac_maketemp"; then
1976: eval ac_cv_prog_make_${ac_make}_set=yes
1977: else
1978: eval ac_cv_prog_make_${ac_make}_set=no
1979: fi
1.15 ! paf 1980: rm -f conftest.make
1.1 parser 1981: fi
1982: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 ! paf 1983: echo "$as_me:$LINENO: result: yes" >&5
! 1984: echo "${ECHO_T}yes" >&6
1.1 parser 1985: SET_MAKE=
1986: else
1.15 ! paf 1987: echo "$as_me:$LINENO: result: no" >&5
! 1988: echo "${ECHO_T}no" >&6
1.1 parser 1989: SET_MAKE="MAKE=${MAKE-make}"
1990: fi
1991:
1.15 ! paf 1992: for ac_prog in gawk mawk nawk awk
1.1 parser 1993: do
1.15 ! paf 1994: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 1995: set dummy $ac_prog; ac_word=$2
1.15 ! paf 1996: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1997: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1998: if test "${ac_cv_prog_AWK+set}" = set; then
! 1999: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2000: else
2001: if test -n "$AWK"; then
2002: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2003: else
1.15 ! paf 2004: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2005: for as_dir in $PATH
! 2006: do
! 2007: IFS=$as_save_IFS
! 2008: test -z "$as_dir" && as_dir=.
! 2009: for ac_exec_ext in '' $ac_executable_extensions; do
! 2010: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2011: ac_cv_prog_AWK="$ac_prog"
! 2012: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2013: break 2
! 2014: fi
! 2015: done
! 2016: done
! 2017:
1.1 parser 2018: fi
2019: fi
1.15 ! paf 2020: AWK=$ac_cv_prog_AWK
1.1 parser 2021: if test -n "$AWK"; then
1.15 ! paf 2022: echo "$as_me:$LINENO: result: $AWK" >&5
! 2023: echo "${ECHO_T}$AWK" >&6
1.1 parser 2024: else
1.15 ! paf 2025: echo "$as_me:$LINENO: result: no" >&5
! 2026: echo "${ECHO_T}no" >&6
1.1 parser 2027: fi
2028:
1.15 ! paf 2029: test -n "$AWK" && break
1.1 parser 2030: done
2031:
2032:
1.15 ! paf 2033: ac_ext=cc
1.1 parser 2034: ac_cpp='$CXXCPP $CPPFLAGS'
1.15 ! paf 2035: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2036: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2037: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2038:
! 2039: ac_ext=cc
! 2040: ac_cpp='$CXXCPP $CPPFLAGS'
! 2041: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2042: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2043: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2044: if test -n "$ac_tool_prefix"; then
! 2045: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 2046: do
! 2047: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 2048: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 2049: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2050: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2051: if test "${ac_cv_prog_CXX+set}" = set; then
! 2052: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2053: else
2054: if test -n "$CXX"; then
2055: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2056: else
1.15 ! paf 2057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2058: for as_dir in $PATH
! 2059: do
! 2060: IFS=$as_save_IFS
! 2061: test -z "$as_dir" && as_dir=.
! 2062: for ac_exec_ext in '' $ac_executable_extensions; do
! 2063: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2064: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 2065: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2066: break 2
! 2067: fi
! 2068: done
! 2069: done
! 2070:
1.1 parser 2071: fi
2072: fi
1.15 ! paf 2073: CXX=$ac_cv_prog_CXX
1.1 parser 2074: if test -n "$CXX"; then
1.15 ! paf 2075: echo "$as_me:$LINENO: result: $CXX" >&5
! 2076: echo "${ECHO_T}$CXX" >&6
1.1 parser 2077: else
1.15 ! paf 2078: echo "$as_me:$LINENO: result: no" >&5
! 2079: echo "${ECHO_T}no" >&6
1.1 parser 2080: fi
2081:
1.15 ! paf 2082: test -n "$CXX" && break
! 2083: done
! 2084: fi
! 2085: if test -z "$CXX"; then
! 2086: ac_ct_CXX=$CXX
! 2087: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 2088: do
! 2089: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 2090: set dummy $ac_prog; ac_word=$2
! 2091: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2092: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2093: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 2094: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2095: else
! 2096: if test -n "$ac_ct_CXX"; then
! 2097: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 2098: else
! 2099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2100: for as_dir in $PATH
! 2101: do
! 2102: IFS=$as_save_IFS
! 2103: test -z "$as_dir" && as_dir=.
! 2104: for ac_exec_ext in '' $ac_executable_extensions; do
! 2105: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2106: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 2107: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2108: break 2
! 2109: fi
! 2110: done
1.1 parser 2111: done
2112:
1.15 ! paf 2113: fi
! 2114: fi
! 2115: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 2116: if test -n "$ac_ct_CXX"; then
! 2117: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 2118: echo "${ECHO_T}$ac_ct_CXX" >&6
! 2119: else
! 2120: echo "$as_me:$LINENO: result: no" >&5
! 2121: echo "${ECHO_T}no" >&6
! 2122: fi
1.1 parser 2123:
1.15 ! paf 2124: test -n "$ac_ct_CXX" && break
! 2125: done
! 2126: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2127:
1.15 ! paf 2128: CXX=$ac_ct_CXX
! 2129: fi
1.1 parser 2130:
2131:
1.15 ! paf 2132: # Provide some information about the compiler.
! 2133: echo "$as_me:$LINENO:" \
! 2134: "checking for C++ compiler version" >&5
! 2135: ac_compiler=`set X $ac_compile; echo $2`
! 2136: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 2137: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 2138: ac_status=$?
! 2139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2140: (exit $ac_status); }
! 2141: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 2142: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 2143: ac_status=$?
! 2144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2145: (exit $ac_status); }
! 2146: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 2147: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 2148: ac_status=$?
! 2149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2150: (exit $ac_status); }
! 2151:
! 2152: cat >conftest.$ac_ext <<_ACEOF
! 2153: #line $LINENO "configure"
! 2154: /* confdefs.h. */
! 2155: _ACEOF
! 2156: cat confdefs.h >>conftest.$ac_ext
! 2157: cat >>conftest.$ac_ext <<_ACEOF
! 2158: /* end confdefs.h. */
! 2159:
! 2160: int
! 2161: main ()
! 2162: {
! 2163:
! 2164: ;
! 2165: return 0;
! 2166: }
! 2167: _ACEOF
! 2168: ac_clean_files_save=$ac_clean_files
! 2169: ac_clean_files="$ac_clean_files a.out a.exe b.out"
! 2170: # Try to create an executable without -o first, disregard a.out.
! 2171: # It will help us diagnose broken compilers, and finding out an intuition
! 2172: # of exeext.
! 2173: echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
! 2174: echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
! 2175: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2176: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
! 2177: (eval $ac_link_default) 2>&5
! 2178: ac_status=$?
! 2179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2180: (exit $ac_status); }; then
! 2181: # Find the output, starting from the most likely. This scheme is
! 2182: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 2183: # resort.
! 2184:
! 2185: # Be careful to initialize this variable, since it used to be cached.
! 2186: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! 2187: ac_cv_exeext=
! 2188: # b.out is created by i960 compilers.
! 2189: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
! 2190: do
! 2191: test -f "$ac_file" || continue
! 2192: case $ac_file in
! 2193: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
! 2194: ;;
! 2195: conftest.$ac_ext )
! 2196: # This is the source file.
! 2197: ;;
! 2198: [ab].out )
! 2199: # We found the default executable, but exeext='' is most
! 2200: # certainly right.
! 2201: break;;
! 2202: *.* )
! 2203: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2204: # FIXME: I believe we export ac_cv_exeext for Libtool,
! 2205: # but it would be cool to find out if it's true. Does anybody
! 2206: # maintain Libtool? --akim.
! 2207: export ac_cv_exeext
! 2208: break;;
! 2209: * )
! 2210: break;;
! 2211: esac
! 2212: done
! 2213: else
! 2214: echo "$as_me: failed program was:" >&5
! 2215: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2216:
1.15 ! paf 2217: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
! 2218: See \`config.log' for more details." >&5
! 2219: echo "$as_me: error: C++ compiler cannot create executables
! 2220: See \`config.log' for more details." >&2;}
! 2221: { (exit 77); exit 77; }; }
! 2222: fi
! 2223:
! 2224: ac_exeext=$ac_cv_exeext
! 2225: echo "$as_me:$LINENO: result: $ac_file" >&5
! 2226: echo "${ECHO_T}$ac_file" >&6
! 2227:
! 2228: # Check the compiler produces executables we can run. If not, either
! 2229: # the compiler is broken, or we cross compile.
! 2230: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
! 2231: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
! 2232: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 2233: # If not cross compiling, check that we can run a simple program.
! 2234: if test "$cross_compiling" != yes; then
! 2235: if { ac_try='./$ac_file'
! 2236: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2237: (eval $ac_try) 2>&5
! 2238: ac_status=$?
! 2239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2240: (exit $ac_status); }; }; then
! 2241: cross_compiling=no
! 2242: else
! 2243: if test "$cross_compiling" = maybe; then
! 2244: cross_compiling=yes
! 2245: else
! 2246: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
! 2247: If you meant to cross compile, use \`--host'.
! 2248: See \`config.log' for more details." >&5
! 2249: echo "$as_me: error: cannot run C++ compiled programs.
! 2250: If you meant to cross compile, use \`--host'.
! 2251: See \`config.log' for more details." >&2;}
! 2252: { (exit 1); exit 1; }; }
! 2253: fi
1.1 parser 2254: fi
1.15 ! paf 2255: fi
! 2256: echo "$as_me:$LINENO: result: yes" >&5
! 2257: echo "${ECHO_T}yes" >&6
! 2258:
! 2259: rm -f a.out a.exe conftest$ac_cv_exeext b.out
! 2260: ac_clean_files=$ac_clean_files_save
! 2261: # Check the compiler produces executables we can run. If not, either
! 2262: # the compiler is broken, or we cross compile.
! 2263: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2264: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 2265: echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2266: echo "${ECHO_T}$cross_compiling" >&6
! 2267:
! 2268: echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2269: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
! 2270: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 2271: (eval $ac_link) 2>&5
! 2272: ac_status=$?
! 2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2274: (exit $ac_status); }; then
! 2275: # If both `conftest.exe' and `conftest' are `present' (well, observable)
! 2276: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
! 2277: # work properly (i.e., refer to `conftest.exe'), while it won't with
! 2278: # `rm'.
! 2279: for ac_file in conftest.exe conftest conftest.*; do
! 2280: test -f "$ac_file" || continue
! 2281: case $ac_file in
! 2282: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
! 2283: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2284: export ac_cv_exeext
! 2285: break;;
! 2286: * ) break;;
! 2287: esac
! 2288: done
1.1 parser 2289: else
1.15 ! paf 2290: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 2291: See \`config.log' for more details." >&5
! 2292: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 2293: See \`config.log' for more details." >&2;}
! 2294: { (exit 1); exit 1; }; }
! 2295: fi
! 2296:
! 2297: rm -f conftest$ac_cv_exeext
! 2298: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2299: echo "${ECHO_T}$ac_cv_exeext" >&6
! 2300:
! 2301: rm -f conftest.$ac_ext
! 2302: EXEEXT=$ac_cv_exeext
! 2303: ac_exeext=$EXEEXT
! 2304: echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2305: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
! 2306: if test "${ac_cv_objext+set}" = set; then
! 2307: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2308: else
! 2309: cat >conftest.$ac_ext <<_ACEOF
! 2310: #line $LINENO "configure"
! 2311: /* confdefs.h. */
! 2312: _ACEOF
! 2313: cat confdefs.h >>conftest.$ac_ext
! 2314: cat >>conftest.$ac_ext <<_ACEOF
! 2315: /* end confdefs.h. */
! 2316:
! 2317: int
! 2318: main ()
! 2319: {
! 2320:
! 2321: ;
! 2322: return 0;
! 2323: }
! 2324: _ACEOF
! 2325: rm -f conftest.o conftest.obj
! 2326: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2327: (eval $ac_compile) 2>&5
! 2328: ac_status=$?
! 2329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2330: (exit $ac_status); }; then
! 2331: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
! 2332: case $ac_file in
! 2333: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
! 2334: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
! 2335: break;;
! 2336: esac
! 2337: done
1.1 parser 2338: else
1.15 ! paf 2339: echo "$as_me: failed program was:" >&5
! 2340: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2341:
1.15 ! paf 2342: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 2343: See \`config.log' for more details." >&5
! 2344: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 2345: See \`config.log' for more details." >&2;}
! 2346: { (exit 1); exit 1; }; }
! 2347: fi
! 2348:
! 2349: rm -f conftest.$ac_cv_objext conftest.$ac_ext
! 2350: fi
! 2351: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2352: echo "${ECHO_T}$ac_cv_objext" >&6
! 2353: OBJEXT=$ac_cv_objext
! 2354: ac_objext=$OBJEXT
! 2355: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 2356: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
! 2357: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 2358: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2359: else
! 2360: cat >conftest.$ac_ext <<_ACEOF
! 2361: #line $LINENO "configure"
! 2362: /* confdefs.h. */
! 2363: _ACEOF
! 2364: cat confdefs.h >>conftest.$ac_ext
! 2365: cat >>conftest.$ac_ext <<_ACEOF
! 2366: /* end confdefs.h. */
! 2367:
! 2368: int
! 2369: main ()
! 2370: {
! 2371: #ifndef __GNUC__
! 2372: choke me
! 2373: #endif
1.1 parser 2374:
1.15 ! paf 2375: ;
! 2376: return 0;
! 2377: }
! 2378: _ACEOF
! 2379: rm -f conftest.$ac_objext
! 2380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2381: (eval $ac_compile) 2>&5
! 2382: ac_status=$?
! 2383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2384: (exit $ac_status); } &&
! 2385: { ac_try='test -s conftest.$ac_objext'
! 2386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2387: (eval $ac_try) 2>&5
! 2388: ac_status=$?
! 2389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2390: (exit $ac_status); }; }; then
! 2391: ac_compiler_gnu=yes
! 2392: else
! 2393: echo "$as_me: failed program was:" >&5
! 2394: sed 's/^/| /' conftest.$ac_ext >&5
! 2395:
! 2396: ac_compiler_gnu=no
! 2397: fi
! 2398: rm -f conftest.$ac_objext conftest.$ac_ext
! 2399: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 2400:
! 2401: fi
! 2402: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 2403: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
! 2404: GXX=`test $ac_compiler_gnu = yes && echo yes`
! 2405: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 2406: ac_save_CXXFLAGS=$CXXFLAGS
! 2407: CXXFLAGS="-g"
! 2408: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 2409: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
! 2410: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 2411: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2412: else
! 2413: cat >conftest.$ac_ext <<_ACEOF
! 2414: #line $LINENO "configure"
! 2415: /* confdefs.h. */
! 2416: _ACEOF
! 2417: cat confdefs.h >>conftest.$ac_ext
! 2418: cat >>conftest.$ac_ext <<_ACEOF
! 2419: /* end confdefs.h. */
! 2420:
! 2421: int
! 2422: main ()
! 2423: {
! 2424:
! 2425: ;
! 2426: return 0;
! 2427: }
! 2428: _ACEOF
! 2429: rm -f conftest.$ac_objext
! 2430: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2431: (eval $ac_compile) 2>&5
! 2432: ac_status=$?
! 2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2434: (exit $ac_status); } &&
! 2435: { ac_try='test -s conftest.$ac_objext'
! 2436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2437: (eval $ac_try) 2>&5
! 2438: ac_status=$?
! 2439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2440: (exit $ac_status); }; }; then
! 2441: ac_cv_prog_cxx_g=yes
1.1 parser 2442: else
1.15 ! paf 2443: echo "$as_me: failed program was:" >&5
! 2444: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2445:
1.15 ! paf 2446: ac_cv_prog_cxx_g=no
1.1 parser 2447: fi
1.15 ! paf 2448: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 2449: fi
1.15 ! paf 2450: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 2451: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2452: if test "$ac_test_CXXFLAGS" = set; then
1.15 ! paf 2453: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2454: elif test $ac_cv_prog_cxx_g = yes; then
2455: if test "$GXX" = yes; then
2456: CXXFLAGS="-g -O2"
2457: else
2458: CXXFLAGS="-g"
2459: fi
2460: else
2461: if test "$GXX" = yes; then
2462: CXXFLAGS="-O2"
2463: else
2464: CXXFLAGS=
2465: fi
2466: fi
1.15 ! paf 2467: for ac_declaration in \
! 2468: ''\
! 2469: '#include <stdlib.h>' \
! 2470: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 2471: 'extern "C" void std::exit (int); using std::exit;' \
! 2472: 'extern "C" void exit (int) throw ();' \
! 2473: 'extern "C" void exit (int);' \
! 2474: 'void exit (int);'
! 2475: do
! 2476: cat >conftest.$ac_ext <<_ACEOF
! 2477: #line $LINENO "configure"
! 2478: /* confdefs.h. */
! 2479: _ACEOF
! 2480: cat confdefs.h >>conftest.$ac_ext
! 2481: cat >>conftest.$ac_ext <<_ACEOF
! 2482: /* end confdefs.h. */
! 2483: #include <stdlib.h>
! 2484: $ac_declaration
! 2485: int
! 2486: main ()
! 2487: {
! 2488: exit (42);
! 2489: ;
! 2490: return 0;
! 2491: }
! 2492: _ACEOF
! 2493: rm -f conftest.$ac_objext
! 2494: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2495: (eval $ac_compile) 2>&5
! 2496: ac_status=$?
! 2497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2498: (exit $ac_status); } &&
! 2499: { ac_try='test -s conftest.$ac_objext'
! 2500: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2501: (eval $ac_try) 2>&5
! 2502: ac_status=$?
! 2503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2504: (exit $ac_status); }; }; then
! 2505: :
! 2506: else
! 2507: echo "$as_me: failed program was:" >&5
! 2508: sed 's/^/| /' conftest.$ac_ext >&5
! 2509:
! 2510: continue
! 2511: fi
! 2512: rm -f conftest.$ac_objext conftest.$ac_ext
! 2513: cat >conftest.$ac_ext <<_ACEOF
! 2514: #line $LINENO "configure"
! 2515: /* confdefs.h. */
! 2516: _ACEOF
! 2517: cat confdefs.h >>conftest.$ac_ext
! 2518: cat >>conftest.$ac_ext <<_ACEOF
! 2519: /* end confdefs.h. */
! 2520: $ac_declaration
! 2521: int
! 2522: main ()
! 2523: {
! 2524: exit (42);
! 2525: ;
! 2526: return 0;
! 2527: }
! 2528: _ACEOF
! 2529: rm -f conftest.$ac_objext
! 2530: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2531: (eval $ac_compile) 2>&5
! 2532: ac_status=$?
! 2533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2534: (exit $ac_status); } &&
! 2535: { ac_try='test -s conftest.$ac_objext'
! 2536: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2537: (eval $ac_try) 2>&5
! 2538: ac_status=$?
! 2539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2540: (exit $ac_status); }; }; then
! 2541: break
! 2542: else
! 2543: echo "$as_me: failed program was:" >&5
! 2544: sed 's/^/| /' conftest.$ac_ext >&5
! 2545:
! 2546: fi
! 2547: rm -f conftest.$ac_objext conftest.$ac_ext
! 2548: done
! 2549: rm -f conftest*
! 2550: if test -n "$ac_declaration"; then
! 2551: echo '#ifdef __cplusplus' >>confdefs.h
! 2552: echo $ac_declaration >>confdefs.h
! 2553: echo '#endif' >>confdefs.h
! 2554: fi
! 2555:
! 2556: ac_ext=cc
! 2557: ac_cpp='$CXXCPP $CPPFLAGS'
! 2558: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2559: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2560: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 2561: rm -f .deps 2>/dev/null
! 2562: mkdir .deps 2>/dev/null
! 2563: if test -d .deps; then
! 2564: DEPDIR=.deps
! 2565: else
! 2566: # MS-DOS does not allow filenames that begin with a dot.
! 2567: DEPDIR=_deps
! 2568: fi
! 2569: rmdir .deps 2>/dev/null
! 2570:
! 2571:
! 2572: ac_config_commands="$ac_config_commands depfiles"
! 2573:
! 2574:
! 2575: am_make=${MAKE-make}
! 2576: cat > confinc << 'END'
! 2577: doit:
! 2578: @echo done
! 2579: END
! 2580: # If we don't find an include directive, just comment out the code.
! 2581: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 2582: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
! 2583: am__include="#"
! 2584: am__quote=
! 2585: _am_result=none
! 2586: # First try GNU make style include.
! 2587: echo "include confinc" > confmf
! 2588: # We grep out `Entering directory' and `Leaving directory'
! 2589: # messages which can occur if `w' ends up in MAKEFLAGS.
! 2590: # In particular we don't look at `^make:' because GNU make might
! 2591: # be invoked under some other name (usually "gmake"), in which
! 2592: # case it prints its new name instead of `make'.
! 2593: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
! 2594: am__include=include
! 2595: am__quote=
! 2596: _am_result=GNU
! 2597: fi
! 2598: # Now try BSD make style include.
! 2599: if test "$am__include" = "#"; then
! 2600: echo '.include "confinc"' > confmf
! 2601: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
! 2602: am__include=.include
! 2603: am__quote="\""
! 2604: _am_result=BSD
! 2605: fi
! 2606: fi
! 2607:
! 2608:
! 2609: echo "$as_me:$LINENO: result: $_am_result" >&5
! 2610: echo "${ECHO_T}$_am_result" >&6
! 2611: rm -f confinc confmf
! 2612:
! 2613: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
! 2614: if test "${enable_dependency_tracking+set}" = set; then
! 2615: enableval="$enable_dependency_tracking"
! 2616:
! 2617: fi;
! 2618: if test "x$enable_dependency_tracking" != xno; then
! 2619: am_depcomp="$ac_aux_dir/depcomp"
! 2620: AMDEPBACKSLASH='\'
! 2621: fi
! 2622:
! 2623:
! 2624: if test "x$enable_dependency_tracking" != xno; then
! 2625: AMDEP_TRUE=
! 2626: AMDEP_FALSE='#'
! 2627: else
! 2628: AMDEP_TRUE='#'
! 2629: AMDEP_FALSE=
! 2630: fi
! 2631:
! 2632:
! 2633:
! 2634:
! 2635: depcc="$CXX" am_compiler_list=
! 2636:
! 2637: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 2638: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 2639: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
! 2640: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2641: else
! 2642: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 2643: # We make a subdir and do the tests there. Otherwise we can end up
! 2644: # making bogus files that we don't know about and never remove. For
! 2645: # instance it was reported that on HP-UX the gcc test will end up
! 2646: # making a dummy file named `D' -- because `-MD' means `put the output
! 2647: # in D'.
! 2648: mkdir conftest.dir
! 2649: # Copy depcomp to subdir because otherwise we won't find it if we're
! 2650: # using a relative directory.
! 2651: cp "$am_depcomp" conftest.dir
! 2652: cd conftest.dir
! 2653:
! 2654: am_cv_CXX_dependencies_compiler_type=none
! 2655: if test "$am_compiler_list" = ""; then
! 2656: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 2657: fi
! 2658: for depmode in $am_compiler_list; do
! 2659: # We need to recreate these files for each test, as the compiler may
! 2660: # overwrite some of them when testing with obscure command lines.
! 2661: # This happens at least with the AIX C compiler.
! 2662: echo '#include "conftest.h"' > conftest.c
! 2663: echo 'int i;' > conftest.h
! 2664: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 2665:
! 2666: case $depmode in
! 2667: nosideeffect)
! 2668: # after this tag, mechanisms are not by side-effect, so they'll
! 2669: # only be used when explicitly requested
! 2670: if test "x$enable_dependency_tracking" = xyes; then
! 2671: continue
! 2672: else
! 2673: break
! 2674: fi
! 2675: ;;
! 2676: none) break ;;
! 2677: esac
! 2678: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 2679: # mode. It turns out that the SunPro C++ compiler does not properly
! 2680: # handle `-M -o', and we need to detect this.
! 2681: if depmode=$depmode \
! 2682: source=conftest.c object=conftest.o \
! 2683: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 2684: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
! 2685: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 2686: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 2687: am_cv_CXX_dependencies_compiler_type=$depmode
! 2688: break
! 2689: fi
! 2690: done
! 2691:
! 2692: cd ..
! 2693: rm -rf conftest.dir
! 2694: else
! 2695: am_cv_CXX_dependencies_compiler_type=none
! 2696: fi
! 2697:
! 2698: fi
! 2699: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 2700: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
! 2701: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
! 2702:
! 2703:
! 2704:
! 2705: if
! 2706: test "x$enable_dependency_tracking" != xno \
! 2707: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
! 2708: am__fastdepCXX_TRUE=
! 2709: am__fastdepCXX_FALSE='#'
! 2710: else
! 2711: am__fastdepCXX_TRUE='#'
! 2712: am__fastdepCXX_FALSE=
! 2713: fi
! 2714:
1.1 parser 2715:
2716:
1.15 ! paf 2717: case $enable_ltdl_convenience in
! 2718: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
! 2719: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
! 2720: { (exit 1); exit 1; }; } ;;
! 2721: "") enable_ltdl_convenience=yes
! 2722: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
! 2723: esac
1.1 parser 2724: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1.15 ! paf 2725: LTDLINCL='-I${top_srcdir}/''libltdl'
! 2726: # For backwards non-gettext consistent compatibility...
! 2727: INCLTDL="$LTDLINCL"
1.1 parser 2728:
2729:
2730:
2731:
2732:
1.9 paf 2733: # Check whether --enable-static or --disable-static was given.
2734: if test "${enable_static+set}" = set; then
2735: enableval="$enable_static"
1.1 parser 2736: p=${PACKAGE-default}
1.15 ! paf 2737: case $enableval in
1.9 paf 2738: yes) enable_static=yes ;;
2739: no) enable_static=no ;;
1.1 parser 2740: *)
1.9 paf 2741: enable_static=no
1.1 parser 2742: # Look at the argument we got. We use all the common list separators.
2743: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2744: for pkg in $enableval; do
2745: if test "X$pkg" = "X$p"; then
1.9 paf 2746: enable_static=yes
1.1 parser 2747: fi
2748: done
2749: IFS="$ac_save_ifs"
2750: ;;
2751: esac
2752: else
1.9 paf 2753: enable_static=no
1.15 ! paf 2754: fi;
1.11 paf 2755:
1.9 paf 2756: # Check whether --enable-shared or --disable-shared was given.
2757: if test "${enable_shared+set}" = set; then
2758: enableval="$enable_shared"
1.1 parser 2759: p=${PACKAGE-default}
1.15 ! paf 2760: case $enableval in
1.9 paf 2761: yes) enable_shared=yes ;;
2762: no) enable_shared=no ;;
1.1 parser 2763: *)
1.9 paf 2764: enable_shared=no
1.1 parser 2765: # Look at the argument we got. We use all the common list separators.
2766: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2767: for pkg in $enableval; do
2768: if test "X$pkg" = "X$p"; then
1.9 paf 2769: enable_shared=yes
1.1 parser 2770: fi
2771: done
2772: IFS="$ac_save_ifs"
2773: ;;
2774: esac
2775: else
1.9 paf 2776: enable_shared=yes
1.15 ! paf 2777: fi;
1.1 parser 2778: # Check whether --enable-fast-install or --disable-fast-install was given.
2779: if test "${enable_fast_install+set}" = set; then
2780: enableval="$enable_fast_install"
2781: p=${PACKAGE-default}
1.15 ! paf 2782: case $enableval in
1.1 parser 2783: yes) enable_fast_install=yes ;;
2784: no) enable_fast_install=no ;;
2785: *)
2786: enable_fast_install=no
2787: # Look at the argument we got. We use all the common list separators.
2788: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2789: for pkg in $enableval; do
2790: if test "X$pkg" = "X$p"; then
2791: enable_fast_install=yes
2792: fi
2793: done
2794: IFS="$ac_save_ifs"
2795: ;;
2796: esac
2797: else
2798: enable_fast_install=yes
1.15 ! paf 2799: fi;
1.1 parser 2800: # Make sure we can run config.sub.
1.15 ! paf 2801: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 2802: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 2803: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 2804: { (exit 1); exit 1; }; }
! 2805:
! 2806: echo "$as_me:$LINENO: checking build system type" >&5
! 2807: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 2808: if test "${ac_cv_build+set}" = set; then
! 2809: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2810: else
! 2811: ac_cv_build_alias=$build_alias
! 2812: test -z "$ac_cv_build_alias" &&
! 2813: ac_cv_build_alias=`$ac_config_guess`
! 2814: test -z "$ac_cv_build_alias" &&
! 2815: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 2816: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 2817: { (exit 1); exit 1; }; }
! 2818: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 2819: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 2820: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 2821: { (exit 1); exit 1; }; }
! 2822:
! 2823: fi
! 2824: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 2825: echo "${ECHO_T}$ac_cv_build" >&6
! 2826: build=$ac_cv_build
! 2827: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 2828: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 2829: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 2830:
! 2831:
! 2832: echo "$as_me:$LINENO: checking host system type" >&5
! 2833: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 2834: if test "${ac_cv_host+set}" = set; then
! 2835: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2836: else
! 2837: ac_cv_host_alias=$host_alias
! 2838: test -z "$ac_cv_host_alias" &&
! 2839: ac_cv_host_alias=$ac_cv_build_alias
! 2840: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 2841: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 2842: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 2843: { (exit 1); exit 1; }; }
! 2844:
! 2845: fi
! 2846: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 2847: echo "${ECHO_T}$ac_cv_host" >&6
! 2848: host=$ac_cv_host
! 2849: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 2850: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 2851: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 parser 2852:
2853:
1.15 ! paf 2854: ac_ext=c
! 2855: ac_cpp='$CPP $CPPFLAGS'
! 2856: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2857: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2858: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2859: if test -n "$ac_tool_prefix"; then
! 2860: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 2861: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 2862: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2863: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2864: if test "${ac_cv_prog_CC+set}" = set; then
! 2865: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2866: else
! 2867: if test -n "$CC"; then
! 2868: ac_cv_prog_CC="$CC" # Let the user override the test.
! 2869: else
! 2870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2871: for as_dir in $PATH
! 2872: do
! 2873: IFS=$as_save_IFS
! 2874: test -z "$as_dir" && as_dir=.
! 2875: for ac_exec_ext in '' $ac_executable_extensions; do
! 2876: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2877: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 2878: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2879: break 2
! 2880: fi
! 2881: done
! 2882: done
1.1 parser 2883:
1.15 ! paf 2884: fi
! 2885: fi
! 2886: CC=$ac_cv_prog_CC
! 2887: if test -n "$CC"; then
! 2888: echo "$as_me:$LINENO: result: $CC" >&5
! 2889: echo "${ECHO_T}$CC" >&6
! 2890: else
! 2891: echo "$as_me:$LINENO: result: no" >&5
! 2892: echo "${ECHO_T}no" >&6
! 2893: fi
1.1 parser 2894:
1.15 ! paf 2895: fi
! 2896: if test -z "$ac_cv_prog_CC"; then
! 2897: ac_ct_CC=$CC
! 2898: # Extract the first word of "gcc", so it can be a program name with args.
! 2899: set dummy gcc; ac_word=$2
! 2900: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2902: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2904: else
1.15 ! paf 2905: if test -n "$ac_ct_CC"; then
! 2906: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2907: else
1.15 ! paf 2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2909: for as_dir in $PATH
! 2910: do
! 2911: IFS=$as_save_IFS
! 2912: test -z "$as_dir" && as_dir=.
! 2913: for ac_exec_ext in '' $ac_executable_extensions; do
! 2914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2915: ac_cv_prog_ac_ct_CC="gcc"
! 2916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2917: break 2
! 2918: fi
! 2919: done
! 2920: done
! 2921:
! 2922: fi
1.1 parser 2923: fi
1.15 ! paf 2924: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 2925: if test -n "$ac_ct_CC"; then
! 2926: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2927: echo "${ECHO_T}$ac_ct_CC" >&6
! 2928: else
! 2929: echo "$as_me:$LINENO: result: no" >&5
! 2930: echo "${ECHO_T}no" >&6
1.1 parser 2931: fi
1.15 ! paf 2932:
! 2933: CC=$ac_ct_CC
1.1 parser 2934: else
1.15 ! paf 2935: CC="$ac_cv_prog_CC"
1.1 parser 2936: fi
2937:
1.15 ! paf 2938: if test -z "$CC"; then
! 2939: if test -n "$ac_tool_prefix"; then
! 2940: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 2941: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 2942: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2943: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2944: if test "${ac_cv_prog_CC+set}" = set; then
! 2945: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2946: else
2947: if test -n "$CC"; then
2948: ac_cv_prog_CC="$CC" # Let the user override the test.
2949: else
1.15 ! paf 2950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2951: for as_dir in $PATH
! 2952: do
! 2953: IFS=$as_save_IFS
! 2954: test -z "$as_dir" && as_dir=.
! 2955: for ac_exec_ext in '' $ac_executable_extensions; do
! 2956: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2957: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 2958: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2959: break 2
! 2960: fi
! 2961: done
! 2962: done
! 2963:
1.1 parser 2964: fi
2965: fi
1.15 ! paf 2966: CC=$ac_cv_prog_CC
1.1 parser 2967: if test -n "$CC"; then
1.15 ! paf 2968: echo "$as_me:$LINENO: result: $CC" >&5
! 2969: echo "${ECHO_T}$CC" >&6
! 2970: else
! 2971: echo "$as_me:$LINENO: result: no" >&5
! 2972: echo "${ECHO_T}no" >&6
! 2973: fi
! 2974:
! 2975: fi
! 2976: if test -z "$ac_cv_prog_CC"; then
! 2977: ac_ct_CC=$CC
! 2978: # Extract the first word of "cc", so it can be a program name with args.
! 2979: set dummy cc; ac_word=$2
! 2980: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2982: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2983: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2984: else
! 2985: if test -n "$ac_ct_CC"; then
! 2986: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 2987: else
! 2988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2989: for as_dir in $PATH
! 2990: do
! 2991: IFS=$as_save_IFS
! 2992: test -z "$as_dir" && as_dir=.
! 2993: for ac_exec_ext in '' $ac_executable_extensions; do
! 2994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2995: ac_cv_prog_ac_ct_CC="cc"
! 2996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2997: break 2
! 2998: fi
! 2999: done
! 3000: done
! 3001:
! 3002: fi
! 3003: fi
! 3004: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3005: if test -n "$ac_ct_CC"; then
! 3006: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 3007: echo "${ECHO_T}$ac_ct_CC" >&6
! 3008: else
! 3009: echo "$as_me:$LINENO: result: no" >&5
! 3010: echo "${ECHO_T}no" >&6
! 3011: fi
! 3012:
! 3013: CC=$ac_ct_CC
1.1 parser 3014: else
1.15 ! paf 3015: CC="$ac_cv_prog_CC"
1.1 parser 3016: fi
3017:
1.15 ! paf 3018: fi
1.1 parser 3019: if test -z "$CC"; then
3020: # Extract the first word of "cc", so it can be a program name with args.
3021: set dummy cc; ac_word=$2
1.15 ! paf 3022: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3023: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3024: if test "${ac_cv_prog_CC+set}" = set; then
! 3025: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3026: else
3027: if test -n "$CC"; then
3028: ac_cv_prog_CC="$CC" # Let the user override the test.
3029: else
3030: ac_prog_rejected=no
1.15 ! paf 3031: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3032: for as_dir in $PATH
! 3033: do
! 3034: IFS=$as_save_IFS
! 3035: test -z "$as_dir" && as_dir=.
! 3036: for ac_exec_ext in '' $ac_executable_extensions; do
! 3037: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3038: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
! 3039: ac_prog_rejected=yes
! 3040: continue
! 3041: fi
! 3042: ac_cv_prog_CC="cc"
! 3043: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3044: break 2
! 3045: fi
! 3046: done
! 3047: done
! 3048:
1.1 parser 3049: if test $ac_prog_rejected = yes; then
3050: # We found a bogon in the path, so make sure we never use it.
3051: set dummy $ac_cv_prog_CC
3052: shift
1.15 ! paf 3053: if test $# != 0; then
1.1 parser 3054: # We chose a different compiler from the bogus one.
3055: # However, it has the same basename, so the bogon will be chosen
3056: # first if we set CC to just the basename; use the full file name.
3057: shift
1.15 ! paf 3058: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3059: fi
3060: fi
3061: fi
3062: fi
1.15 ! paf 3063: CC=$ac_cv_prog_CC
1.1 parser 3064: if test -n "$CC"; then
1.15 ! paf 3065: echo "$as_me:$LINENO: result: $CC" >&5
! 3066: echo "${ECHO_T}$CC" >&6
1.1 parser 3067: else
1.15 ! paf 3068: echo "$as_me:$LINENO: result: no" >&5
! 3069: echo "${ECHO_T}no" >&6
1.1 parser 3070: fi
3071:
1.15 ! paf 3072: fi
! 3073: if test -z "$CC"; then
! 3074: if test -n "$ac_tool_prefix"; then
! 3075: for ac_prog in cl
! 3076: do
! 3077: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 3078: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 3079: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3080: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3081: if test "${ac_cv_prog_CC+set}" = set; then
! 3082: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3083: else
3084: if test -n "$CC"; then
3085: ac_cv_prog_CC="$CC" # Let the user override the test.
3086: else
1.15 ! paf 3087: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3088: for as_dir in $PATH
! 3089: do
! 3090: IFS=$as_save_IFS
! 3091: test -z "$as_dir" && as_dir=.
! 3092: for ac_exec_ext in '' $ac_executable_extensions; do
! 3093: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3094: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 3095: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3096: break 2
! 3097: fi
! 3098: done
! 3099: done
! 3100:
1.1 parser 3101: fi
3102: fi
1.15 ! paf 3103: CC=$ac_cv_prog_CC
1.1 parser 3104: if test -n "$CC"; then
1.15 ! paf 3105: echo "$as_me:$LINENO: result: $CC" >&5
! 3106: echo "${ECHO_T}$CC" >&6
1.1 parser 3107: else
1.15 ! paf 3108: echo "$as_me:$LINENO: result: no" >&5
! 3109: echo "${ECHO_T}no" >&6
! 3110: fi
! 3111:
! 3112: test -n "$CC" && break
! 3113: done
1.1 parser 3114: fi
1.15 ! paf 3115: if test -z "$CC"; then
! 3116: ac_ct_CC=$CC
! 3117: for ac_prog in cl
! 3118: do
! 3119: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3120: set dummy $ac_prog; ac_word=$2
! 3121: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3122: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3123: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3124: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3125: else
! 3126: if test -n "$ac_ct_CC"; then
! 3127: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 3128: else
! 3129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3130: for as_dir in $PATH
! 3131: do
! 3132: IFS=$as_save_IFS
! 3133: test -z "$as_dir" && as_dir=.
! 3134: for ac_exec_ext in '' $ac_executable_extensions; do
! 3135: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3136: ac_cv_prog_ac_ct_CC="$ac_prog"
! 3137: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3138: break 2
1.1 parser 3139: fi
1.15 ! paf 3140: done
! 3141: done
! 3142:
! 3143: fi
! 3144: fi
! 3145: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3146: if test -n "$ac_ct_CC"; then
! 3147: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 3148: echo "${ECHO_T}$ac_ct_CC" >&6
! 3149: else
! 3150: echo "$as_me:$LINENO: result: no" >&5
! 3151: echo "${ECHO_T}no" >&6
1.1 parser 3152: fi
3153:
1.15 ! paf 3154: test -n "$ac_ct_CC" && break
! 3155: done
1.1 parser 3156:
1.15 ! paf 3157: CC=$ac_ct_CC
! 3158: fi
1.1 parser 3159:
1.15 ! paf 3160: fi
1.1 parser 3161:
3162:
1.15 ! paf 3163: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 3164: See \`config.log' for more details." >&5
! 3165: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 3166: See \`config.log' for more details." >&2;}
! 3167: { (exit 1); exit 1; }; }
! 3168:
! 3169: # Provide some information about the compiler.
! 3170: echo "$as_me:$LINENO:" \
! 3171: "checking for C compiler version" >&5
! 3172: ac_compiler=`set X $ac_compile; echo $2`
! 3173: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 3174: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 3175: ac_status=$?
! 3176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3177: (exit $ac_status); }
! 3178: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 3179: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 3180: ac_status=$?
! 3181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3182: (exit $ac_status); }
! 3183: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 3184: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 3185: ac_status=$?
! 3186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3187: (exit $ac_status); }
! 3188:
! 3189: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3190: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 3191: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 3192: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3193: else
! 3194: cat >conftest.$ac_ext <<_ACEOF
! 3195: #line $LINENO "configure"
! 3196: /* confdefs.h. */
! 3197: _ACEOF
! 3198: cat confdefs.h >>conftest.$ac_ext
! 3199: cat >>conftest.$ac_ext <<_ACEOF
! 3200: /* end confdefs.h. */
! 3201:
! 3202: int
! 3203: main ()
! 3204: {
! 3205: #ifndef __GNUC__
! 3206: choke me
1.1 parser 3207: #endif
3208:
1.15 ! paf 3209: ;
! 3210: return 0;
! 3211: }
! 3212: _ACEOF
! 3213: rm -f conftest.$ac_objext
! 3214: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3215: (eval $ac_compile) 2>&5
! 3216: ac_status=$?
! 3217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3218: (exit $ac_status); } &&
! 3219: { ac_try='test -s conftest.$ac_objext'
! 3220: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3221: (eval $ac_try) 2>&5
! 3222: ac_status=$?
! 3223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3224: (exit $ac_status); }; }; then
! 3225: ac_compiler_gnu=yes
! 3226: else
! 3227: echo "$as_me: failed program was:" >&5
! 3228: sed 's/^/| /' conftest.$ac_ext >&5
! 3229:
! 3230: ac_compiler_gnu=no
! 3231: fi
! 3232: rm -f conftest.$ac_objext conftest.$ac_ext
! 3233: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 3234:
! 3235: fi
! 3236: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3237: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 3238: GCC=`test $ac_compiler_gnu = yes && echo yes`
! 3239: ac_test_CFLAGS=${CFLAGS+set}
! 3240: ac_save_CFLAGS=$CFLAGS
! 3241: CFLAGS="-g"
! 3242: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3243: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 3244: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3245: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3246: else
! 3247: cat >conftest.$ac_ext <<_ACEOF
! 3248: #line $LINENO "configure"
! 3249: /* confdefs.h. */
! 3250: _ACEOF
! 3251: cat confdefs.h >>conftest.$ac_ext
! 3252: cat >>conftest.$ac_ext <<_ACEOF
! 3253: /* end confdefs.h. */
! 3254:
! 3255: int
! 3256: main ()
! 3257: {
! 3258:
! 3259: ;
! 3260: return 0;
! 3261: }
! 3262: _ACEOF
! 3263: rm -f conftest.$ac_objext
! 3264: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3265: (eval $ac_compile) 2>&5
! 3266: ac_status=$?
! 3267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3268: (exit $ac_status); } &&
! 3269: { ac_try='test -s conftest.$ac_objext'
! 3270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3271: (eval $ac_try) 2>&5
! 3272: ac_status=$?
! 3273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3274: (exit $ac_status); }; }; then
! 3275: ac_cv_prog_cc_g=yes
1.1 parser 3276: else
1.15 ! paf 3277: echo "$as_me: failed program was:" >&5
! 3278: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3279:
1.15 ! paf 3280: ac_cv_prog_cc_g=no
1.1 parser 3281: fi
1.15 ! paf 3282: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 3283: fi
1.15 ! paf 3284: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3285: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3286: if test "$ac_test_CFLAGS" = set; then
1.15 ! paf 3287: CFLAGS=$ac_save_CFLAGS
1.1 parser 3288: elif test $ac_cv_prog_cc_g = yes; then
3289: if test "$GCC" = yes; then
3290: CFLAGS="-g -O2"
3291: else
3292: CFLAGS="-g"
3293: fi
3294: else
3295: if test "$GCC" = yes; then
3296: CFLAGS="-O2"
3297: else
3298: CFLAGS=
3299: fi
3300: fi
1.15 ! paf 3301: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
! 3302: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 3303: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 3304: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3305: else
! 3306: ac_cv_prog_cc_stdc=no
! 3307: ac_save_CC=$CC
! 3308: cat >conftest.$ac_ext <<_ACEOF
! 3309: #line $LINENO "configure"
! 3310: /* confdefs.h. */
! 3311: _ACEOF
! 3312: cat confdefs.h >>conftest.$ac_ext
! 3313: cat >>conftest.$ac_ext <<_ACEOF
! 3314: /* end confdefs.h. */
! 3315: #include <stdarg.h>
! 3316: #include <stdio.h>
! 3317: #include <sys/types.h>
! 3318: #include <sys/stat.h>
! 3319: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 3320: struct buf { int x; };
! 3321: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 3322: static char *e (p, i)
! 3323: char **p;
! 3324: int i;
! 3325: {
! 3326: return p[i];
! 3327: }
! 3328: static char *f (char * (*g) (char **, int), char **p, ...)
! 3329: {
! 3330: char *s;
! 3331: va_list v;
! 3332: va_start (v,p);
! 3333: s = g (p, va_arg (v,int));
! 3334: va_end (v);
! 3335: return s;
! 3336: }
! 3337: int test (int i, double x);
! 3338: struct s1 {int (*f) (int a);};
! 3339: struct s2 {int (*f) (double a);};
! 3340: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 3341: int argc;
! 3342: char **argv;
! 3343: int
! 3344: main ()
! 3345: {
! 3346: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 3347: ;
! 3348: return 0;
! 3349: }
! 3350: _ACEOF
! 3351: # Don't try gcc -ansi; that turns off useful extensions and
! 3352: # breaks some systems' header files.
! 3353: # AIX -qlanglvl=ansi
! 3354: # Ultrix and OSF/1 -std1
! 3355: # HP-UX 10.20 and later -Ae
! 3356: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 3357: # SVR4 -Xc -D__EXTENSIONS__
! 3358: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 3359: do
! 3360: CC="$ac_save_CC $ac_arg"
! 3361: rm -f conftest.$ac_objext
! 3362: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3363: (eval $ac_compile) 2>&5
! 3364: ac_status=$?
! 3365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3366: (exit $ac_status); } &&
! 3367: { ac_try='test -s conftest.$ac_objext'
! 3368: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3369: (eval $ac_try) 2>&5
! 3370: ac_status=$?
! 3371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3372: (exit $ac_status); }; }; then
! 3373: ac_cv_prog_cc_stdc=$ac_arg
! 3374: break
! 3375: else
! 3376: echo "$as_me: failed program was:" >&5
! 3377: sed 's/^/| /' conftest.$ac_ext >&5
! 3378:
! 3379: fi
! 3380: rm -f conftest.$ac_objext
! 3381: done
! 3382: rm -f conftest.$ac_ext conftest.$ac_objext
! 3383: CC=$ac_save_CC
! 3384:
! 3385: fi
! 3386:
! 3387: case "x$ac_cv_prog_cc_stdc" in
! 3388: x|xno)
! 3389: echo "$as_me:$LINENO: result: none needed" >&5
! 3390: echo "${ECHO_T}none needed" >&6 ;;
! 3391: *)
! 3392: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
! 3393: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 3394: CC="$CC $ac_cv_prog_cc_stdc" ;;
! 3395: esac
! 3396:
! 3397: # Some people use a C++ compiler to compile C. Since we use `exit',
! 3398: # in C++ we need to declare it. In case someone uses the same compiler
! 3399: # for both compiling C and C++ we need to have the C++ compiler decide
! 3400: # the declaration of exit, since it's the most demanding environment.
! 3401: cat >conftest.$ac_ext <<_ACEOF
! 3402: #ifndef __cplusplus
! 3403: choke me
! 3404: #endif
! 3405: _ACEOF
! 3406: rm -f conftest.$ac_objext
! 3407: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3408: (eval $ac_compile) 2>&5
! 3409: ac_status=$?
! 3410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3411: (exit $ac_status); } &&
! 3412: { ac_try='test -s conftest.$ac_objext'
! 3413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3414: (eval $ac_try) 2>&5
! 3415: ac_status=$?
! 3416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3417: (exit $ac_status); }; }; then
! 3418: for ac_declaration in \
! 3419: ''\
! 3420: '#include <stdlib.h>' \
! 3421: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 3422: 'extern "C" void std::exit (int); using std::exit;' \
! 3423: 'extern "C" void exit (int) throw ();' \
! 3424: 'extern "C" void exit (int);' \
! 3425: 'void exit (int);'
! 3426: do
! 3427: cat >conftest.$ac_ext <<_ACEOF
! 3428: #line $LINENO "configure"
! 3429: /* confdefs.h. */
! 3430: _ACEOF
! 3431: cat confdefs.h >>conftest.$ac_ext
! 3432: cat >>conftest.$ac_ext <<_ACEOF
! 3433: /* end confdefs.h. */
! 3434: #include <stdlib.h>
! 3435: $ac_declaration
! 3436: int
! 3437: main ()
! 3438: {
! 3439: exit (42);
! 3440: ;
! 3441: return 0;
! 3442: }
! 3443: _ACEOF
! 3444: rm -f conftest.$ac_objext
! 3445: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3446: (eval $ac_compile) 2>&5
! 3447: ac_status=$?
! 3448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3449: (exit $ac_status); } &&
! 3450: { ac_try='test -s conftest.$ac_objext'
! 3451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3452: (eval $ac_try) 2>&5
! 3453: ac_status=$?
! 3454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3455: (exit $ac_status); }; }; then
! 3456: :
! 3457: else
! 3458: echo "$as_me: failed program was:" >&5
! 3459: sed 's/^/| /' conftest.$ac_ext >&5
! 3460:
! 3461: continue
! 3462: fi
! 3463: rm -f conftest.$ac_objext conftest.$ac_ext
! 3464: cat >conftest.$ac_ext <<_ACEOF
! 3465: #line $LINENO "configure"
! 3466: /* confdefs.h. */
! 3467: _ACEOF
! 3468: cat confdefs.h >>conftest.$ac_ext
! 3469: cat >>conftest.$ac_ext <<_ACEOF
! 3470: /* end confdefs.h. */
! 3471: $ac_declaration
! 3472: int
! 3473: main ()
! 3474: {
! 3475: exit (42);
! 3476: ;
! 3477: return 0;
! 3478: }
! 3479: _ACEOF
! 3480: rm -f conftest.$ac_objext
! 3481: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3482: (eval $ac_compile) 2>&5
! 3483: ac_status=$?
! 3484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3485: (exit $ac_status); } &&
! 3486: { ac_try='test -s conftest.$ac_objext'
! 3487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3488: (eval $ac_try) 2>&5
! 3489: ac_status=$?
! 3490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3491: (exit $ac_status); }; }; then
! 3492: break
! 3493: else
! 3494: echo "$as_me: failed program was:" >&5
! 3495: sed 's/^/| /' conftest.$ac_ext >&5
! 3496:
! 3497: fi
! 3498: rm -f conftest.$ac_objext conftest.$ac_ext
! 3499: done
! 3500: rm -f conftest*
! 3501: if test -n "$ac_declaration"; then
! 3502: echo '#ifdef __cplusplus' >>confdefs.h
! 3503: echo $ac_declaration >>confdefs.h
! 3504: echo '#endif' >>confdefs.h
! 3505: fi
! 3506:
! 3507: else
! 3508: echo "$as_me: failed program was:" >&5
! 3509: sed 's/^/| /' conftest.$ac_ext >&5
! 3510:
! 3511: fi
! 3512: rm -f conftest.$ac_objext conftest.$ac_ext
! 3513: ac_ext=cc
! 3514: ac_cpp='$CXXCPP $CPPFLAGS'
! 3515: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3516: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3517: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 3518:
! 3519: depcc="$CC" am_compiler_list=
! 3520:
! 3521: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3522: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 3523: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
! 3524: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3525: else
! 3526: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 3527: # We make a subdir and do the tests there. Otherwise we can end up
! 3528: # making bogus files that we don't know about and never remove. For
! 3529: # instance it was reported that on HP-UX the gcc test will end up
! 3530: # making a dummy file named `D' -- because `-MD' means `put the output
! 3531: # in D'.
! 3532: mkdir conftest.dir
! 3533: # Copy depcomp to subdir because otherwise we won't find it if we're
! 3534: # using a relative directory.
! 3535: cp "$am_depcomp" conftest.dir
! 3536: cd conftest.dir
! 3537:
! 3538: am_cv_CC_dependencies_compiler_type=none
! 3539: if test "$am_compiler_list" = ""; then
! 3540: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 3541: fi
! 3542: for depmode in $am_compiler_list; do
! 3543: # We need to recreate these files for each test, as the compiler may
! 3544: # overwrite some of them when testing with obscure command lines.
! 3545: # This happens at least with the AIX C compiler.
! 3546: echo '#include "conftest.h"' > conftest.c
! 3547: echo 'int i;' > conftest.h
! 3548: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 3549:
! 3550: case $depmode in
! 3551: nosideeffect)
! 3552: # after this tag, mechanisms are not by side-effect, so they'll
! 3553: # only be used when explicitly requested
! 3554: if test "x$enable_dependency_tracking" = xyes; then
! 3555: continue
! 3556: else
! 3557: break
! 3558: fi
! 3559: ;;
! 3560: none) break ;;
! 3561: esac
! 3562: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 3563: # mode. It turns out that the SunPro C++ compiler does not properly
! 3564: # handle `-M -o', and we need to detect this.
! 3565: if depmode=$depmode \
! 3566: source=conftest.c object=conftest.o \
! 3567: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 3568: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
! 3569: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 3570: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 3571: am_cv_CC_dependencies_compiler_type=$depmode
! 3572: break
! 3573: fi
! 3574: done
! 3575:
! 3576: cd ..
! 3577: rm -rf conftest.dir
! 3578: else
! 3579: am_cv_CC_dependencies_compiler_type=none
! 3580: fi
! 3581:
! 3582: fi
! 3583: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3584: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
! 3585: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
! 3586:
! 3587:
! 3588:
! 3589: if
! 3590: test "x$enable_dependency_tracking" != xno \
! 3591: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 3592: am__fastdepCC_TRUE=
! 3593: am__fastdepCC_FALSE='#'
! 3594: else
! 3595: am__fastdepCC_TRUE='#'
! 3596: am__fastdepCC_FALSE=
! 3597: fi
! 3598:
! 3599:
! 3600: # Find the correct PATH separator. Usually this is `:', but
! 3601: # DJGPP uses `;' like DOS.
! 3602: if test "X${PATH_SEPARATOR+set}" != Xset; then
! 3603: UNAME=${UNAME-`uname 2>/dev/null`}
! 3604: case X$UNAME in
! 3605: *-DOS) lt_cv_sys_path_separator=';' ;;
! 3606: *) lt_cv_sys_path_separator=':' ;;
! 3607: esac
! 3608: PATH_SEPARATOR=$lt_cv_sys_path_separator
! 3609: fi
! 3610:
1.1 parser 3611:
3612: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3613: if test "${with_gnu_ld+set}" = set; then
3614: withval="$with_gnu_ld"
3615: test "$withval" = no || with_gnu_ld=yes
3616: else
3617: with_gnu_ld=no
1.15 ! paf 3618: fi;
1.1 parser 3619: ac_prog=ld
1.15 ! paf 3620: if test "$GCC" = yes; then
1.1 parser 3621: # Check if gcc -print-prog-name=ld gives a path.
1.15 ! paf 3622: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
! 3623: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
! 3624: case $host in
! 3625: *-*-mingw*)
! 3626: # gcc leaves a trailing carriage return which upsets mingw
! 3627: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 3628: *)
! 3629: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 3630: esac
! 3631: case $ac_prog in
1.1 parser 3632: # Accept absolute paths.
3633: [\\/]* | [A-Za-z]:[\\/]*)
3634: re_direlt='/[^/][^/]*/\.\./'
3635: # Canonicalize the path of ld
3636: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3637: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3638: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3639: done
3640: test -z "$LD" && LD="$ac_prog"
3641: ;;
3642: "")
3643: # If it fails, then pretend we aren't using GCC.
3644: ac_prog=ld
3645: ;;
3646: *)
3647: # If it is relative, then search for the first ld in PATH.
3648: with_gnu_ld=unknown
3649: ;;
3650: esac
3651: elif test "$with_gnu_ld" = yes; then
1.15 ! paf 3652: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 3653: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3654: else
1.15 ! paf 3655: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 3656: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3657: fi
1.15 ! paf 3658: if test "${lt_cv_path_LD+set}" = set; then
! 3659: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3660: else
3661: if test -z "$LD"; then
1.15 ! paf 3662: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3663: for ac_dir in $PATH; do
3664: test -z "$ac_dir" && ac_dir=.
3665: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 ! paf 3666: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3667: # Check to see if the program is GNU ld. I'd rather use --version,
3668: # but apparently some GNU ld's only accept -v.
3669: # Break only if it was the GNU/non-GNU ld that we prefer.
1.15 ! paf 3670: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3671: test "$with_gnu_ld" != no && break
3672: else
3673: test "$with_gnu_ld" != yes && break
3674: fi
3675: fi
3676: done
3677: IFS="$ac_save_ifs"
3678: else
1.15 ! paf 3679: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3680: fi
3681: fi
3682:
1.15 ! paf 3683: LD="$lt_cv_path_LD"
1.1 parser 3684: if test -n "$LD"; then
1.15 ! paf 3685: echo "$as_me:$LINENO: result: $LD" >&5
! 3686: echo "${ECHO_T}$LD" >&6
1.1 parser 3687: else
1.15 ! paf 3688: echo "$as_me:$LINENO: result: no" >&5
! 3689: echo "${ECHO_T}no" >&6
1.1 parser 3690: fi
1.15 ! paf 3691: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 3692: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 3693: { (exit 1); exit 1; }; }
! 3694: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 3695: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 3696: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 3697: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3698: else
3699: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3700: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.15 ! paf 3701: lt_cv_prog_gnu_ld=yes
1.1 parser 3702: else
1.15 ! paf 3703: lt_cv_prog_gnu_ld=no
1.1 parser 3704: fi
3705: fi
1.15 ! paf 3706: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 3707: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
! 3708: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3709:
3710:
1.15 ! paf 3711: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 3712: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 3713: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 3714: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3715: else
! 3716: lt_cv_ld_reload_flag='-r'
! 3717: fi
! 3718: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 3719: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
! 3720: reload_flag=$lt_cv_ld_reload_flag
! 3721: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3722:
1.15 ! paf 3723: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 3724: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 3725: if test "${lt_cv_path_NM+set}" = set; then
! 3726: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3727: else
3728: if test -n "$NM"; then
3729: # Let the user override the test.
1.15 ! paf 3730: lt_cv_path_NM="$NM"
1.1 parser 3731: else
1.15 ! paf 3732: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3733: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3734: test -z "$ac_dir" && ac_dir=.
1.15 ! paf 3735: tmp_nm=$ac_dir/${ac_tool_prefix}nm
! 3736: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3737: # Check to see if the nm accepts a BSD-compat flag.
3738: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3739: # nm: unknown option "B" ignored
1.15 ! paf 3740: # Tru64's nm complains that /dev/null is an invalid object file
! 3741: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
! 3742: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3743: break
1.15 ! paf 3744: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 3745: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3746: break
3747: else
1.15 ! paf 3748: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3749: continue # so that we can try to find one that supports BSD flags
3750: fi
3751: fi
3752: done
3753: IFS="$ac_save_ifs"
1.15 ! paf 3754: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3755: fi
3756: fi
3757:
1.15 ! paf 3758: NM="$lt_cv_path_NM"
! 3759: echo "$as_me:$LINENO: result: $NM" >&5
! 3760: echo "${ECHO_T}$NM" >&6
1.1 parser 3761:
1.15 ! paf 3762: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 3763: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
! 3764: if test "${lt_cv_path_SED+set}" = set; then
! 3765: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3766: else
1.15 ! paf 3767: # Loop through the user's path and test for sed and gsed.
! 3768: # Then use that list of sed's as ones to test for truncation.
! 3769: as_executable_p="test -f"
! 3770: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3771: for as_dir in $PATH
! 3772: do
! 3773: IFS=$as_save_IFS
! 3774: test -z "$as_dir" && as_dir=.
! 3775: for ac_prog in sed gsed; do
! 3776: for ac_exec_ext in '' $ac_executable_extensions; do
! 3777: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 3778: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
! 3779: fi
! 3780: done
! 3781: done
! 3782: done
! 3783:
! 3784: # Create a temporary directory, and hook for its removal unless debugging.
! 3785: $debug ||
! 3786: {
! 3787: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 3788: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 3789: }
! 3790:
! 3791: # Create a (secure) tmp directory for tmp files.
! 3792: : ${TMPDIR=/tmp}
! 3793: {
! 3794: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
! 3795: test -n "$tmp" && test -d "$tmp"
! 3796: } ||
! 3797: {
! 3798: tmp=$TMPDIR/sed$$-$RANDOM
! 3799: (umask 077 && mkdir $tmp)
! 3800: } ||
! 3801: {
! 3802: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
! 3803: { (exit 1); exit 1; }
! 3804: }
! 3805: _max=0
! 3806: _count=0
! 3807: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
! 3808: # along with /bin/sed that truncates output.
! 3809: for _sed in $_sed_list /usr/xpg4/bin/sed; do
! 3810: test ! -f ${_sed} && break
! 3811: cat /dev/null > "$tmp/sed.in"
! 3812: _count=0
! 3813: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
! 3814: # Check for GNU sed and select it if it is found.
! 3815: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
! 3816: lt_cv_path_SED=${_sed}
! 3817: break
! 3818: fi
! 3819: while true; do
! 3820: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
! 3821: mv "$tmp/sed.tmp" "$tmp/sed.in"
! 3822: cp "$tmp/sed.in" "$tmp/sed.nl"
! 3823: echo >>"$tmp/sed.nl"
! 3824: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
! 3825: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
! 3826: # 40000 chars as input seems more than enough
! 3827: test $_count -gt 10 && break
! 3828: _count=`expr $_count + 1`
! 3829: if test $_count -gt $_max; then
! 3830: _max=$_count
! 3831: lt_cv_path_SED=$_sed
! 3832: fi
! 3833: done
! 3834: done
! 3835: rm -rf "$tmp"
! 3836:
1.1 parser 3837: fi
3838:
1.15 ! paf 3839: if test "X$SED" != "X"; then
! 3840: lt_cv_path_SED=$SED
1.11 paf 3841: else
1.15 ! paf 3842: SED=$lt_cv_path_SED
1.11 paf 3843: fi
1.15 ! paf 3844: echo "$as_me:$LINENO: result: $SED" >&5
! 3845: echo "${ECHO_T}$SED" >&6
! 3846:
! 3847: echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 3848: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
! 3849: LN_S=$as_ln_s
! 3850: if test "$LN_S" = "ln -s"; then
! 3851: echo "$as_me:$LINENO: result: yes" >&5
! 3852: echo "${ECHO_T}yes" >&6
! 3853: else
! 3854: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 3855: echo "${ECHO_T}no, using $LN_S" >&6
! 3856: fi
! 3857:
! 3858: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
! 3859: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
! 3860: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 3861: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3862: else
! 3863: lt_cv_file_magic_cmd='$MAGIC_CMD'
! 3864: lt_cv_file_magic_test_file=
! 3865: lt_cv_deplibs_check_method='unknown'
! 3866: # Need to set the preceding variable on all platforms that support
! 3867: # interlibrary dependencies.
! 3868: # 'none' -- dependencies not supported.
! 3869: # `unknown' -- same as none, but documents that we really don't know.
! 3870: # 'pass_all' -- all dependencies passed with no checks.
! 3871: # 'test_compile' -- check by making test program.
! 3872: # 'file_magic [[regex]]' -- check by looking for files in library path
! 3873: # which responds to the $file_magic_cmd with a given egrep regex.
! 3874: # If you have `file' or equivalent on your system and you're not sure
! 3875: # whether `pass_all' will *always* work, you probably want this one.
! 3876:
! 3877: case $host_os in
! 3878: aix4* | aix5*)
! 3879: lt_cv_deplibs_check_method=pass_all
! 3880: ;;
1.11 paf 3881:
1.15 ! paf 3882: beos*)
! 3883: lt_cv_deplibs_check_method=pass_all
! 3884: ;;
1.1 parser 3885:
1.15 ! paf 3886: bsdi4*)
! 3887: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
! 3888: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 3889: lt_cv_file_magic_test_file=/shlib/libc.so
! 3890: ;;
1.1 parser 3891:
1.15 ! paf 3892: cygwin* | mingw* | pw32*)
! 3893: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 3894: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 3895: ;;
1.1 parser 3896:
1.15 ! paf 3897: darwin* | rhapsody*)
! 3898: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
! 3899: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 3900: case "$host_os" in
! 3901: rhapsody* | darwin1.[012])
! 3902: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
! 3903: ;;
! 3904: *) # Darwin 1.3 on
! 3905: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
! 3906: ;;
! 3907: esac
! 3908: ;;
1.1 parser 3909:
1.15 ! paf 3910: freebsd*)
! 3911: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 3912: case $host_cpu in
! 3913: i*86 )
! 3914: # Not sure whether the presence of OpenBSD here was a mistake.
! 3915: # Let's accept both of them until this is cleared up.
! 3916: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
! 3917: lt_cv_file_magic_cmd=/usr/bin/file
! 3918: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 3919: ;;
3920: esac
1.15 ! paf 3921: else
! 3922: lt_cv_deplibs_check_method=pass_all
1.1 parser 3923: fi
3924: ;;
3925:
1.15 ! paf 3926: gnu*)
! 3927: lt_cv_deplibs_check_method=pass_all
! 3928: ;;
1.1 parser 3929:
1.15 ! paf 3930: hpux10.20*|hpux11*)
! 3931: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
! 3932: lt_cv_file_magic_cmd=/usr/bin/file
! 3933: lt_cv_file_magic_test_file=/usr/lib/libc.sl
! 3934: ;;
1.1 parser 3935:
1.15 ! paf 3936: irix5* | irix6* | nonstopux*)
! 3937: case $host_os in
! 3938: irix5* | nonstopux*)
! 3939: # this will be overridden with pass_all, but let us keep it just in case
! 3940: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
! 3941: ;;
! 3942: *)
! 3943: case $LD in
! 3944: *-32|*"-32 ") libmagic=32-bit;;
! 3945: *-n32|*"-n32 ") libmagic=N32;;
! 3946: *-64|*"-64 ") libmagic=64-bit;;
! 3947: *) libmagic=never-match;;
! 3948: esac
! 3949: # this will be overridden with pass_all, but let us keep it just in case
! 3950: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
! 3951: ;;
! 3952: esac
! 3953: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
! 3954: lt_cv_deplibs_check_method=pass_all
! 3955: ;;
! 3956:
! 3957: # This must be Linux ELF.
! 3958: linux-gnu*)
! 3959: case $host_cpu in
! 3960: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
! 3961: lt_cv_deplibs_check_method=pass_all ;;
! 3962: *)
! 3963: # glibc up to 2.1.1 does not perform some relocations on ARM
! 3964: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
! 3965: esac
! 3966: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
! 3967: ;;
! 3968:
! 3969: netbsd*)
! 3970: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 3971: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
! 3972: else
! 3973: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
! 3974: fi
! 3975: ;;
! 3976:
! 3977: newos6*)
! 3978: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
! 3979: lt_cv_file_magic_cmd=/usr/bin/file
! 3980: lt_cv_file_magic_test_file=/usr/lib/libnls.so
! 3981: ;;
1.1 parser 3982:
1.15 ! paf 3983: openbsd*)
! 3984: lt_cv_file_magic_cmd=/usr/bin/file
! 3985: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 3986: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 3987: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
! 3988: else
! 3989: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.1 parser 3990: fi
3991: ;;
3992:
1.15 ! paf 3993: osf3* | osf4* | osf5*)
! 3994: # this will be overridden with pass_all, but let us keep it just in case
! 3995: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
! 3996: lt_cv_file_magic_test_file=/shlib/libc.so
! 3997: lt_cv_deplibs_check_method=pass_all
! 3998: ;;
! 3999:
! 4000: sco3.2v5*)
! 4001: lt_cv_deplibs_check_method=pass_all
! 4002: ;;
! 4003:
! 4004: solaris*)
! 4005: lt_cv_deplibs_check_method=pass_all
! 4006: lt_cv_file_magic_test_file=/lib/libc.so
! 4007: ;;
! 4008:
! 4009: sysv5uw[78]* | sysv4*uw2*)
! 4010: lt_cv_deplibs_check_method=pass_all
! 4011: ;;
! 4012:
! 4013: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 4014: case $host_vendor in
! 4015: motorola)
! 4016: 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]'
! 4017: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 4018: ;;
! 4019: ncr)
! 4020: lt_cv_deplibs_check_method=pass_all
! 4021: ;;
! 4022: sequent)
! 4023: lt_cv_file_magic_cmd='/bin/file'
! 4024: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 4025: ;;
! 4026: sni)
! 4027: lt_cv_file_magic_cmd='/bin/file'
! 4028: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 4029: lt_cv_file_magic_test_file=/lib/libc.so
! 4030: ;;
! 4031: siemens)
! 4032: lt_cv_deplibs_check_method=pass_all
! 4033: ;;
! 4034: esac
! 4035: ;;
! 4036: esac
! 4037:
! 4038: fi
! 4039: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 4040: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
! 4041: file_magic_cmd=$lt_cv_file_magic_cmd
! 4042: deplibs_check_method=$lt_cv_deplibs_check_method
! 4043:
! 4044:
! 4045:
! 4046:
! 4047:
! 4048:
! 4049:
! 4050:
! 4051: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 4052: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
! 4053: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
! 4054: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 4055: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4056: else
1.15 ! paf 4057:
! 4058: # These are sane defaults that work on at least a few old systems.
! 4059: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 4060:
! 4061: # Character class describing NM global symbol codes.
! 4062: symcode='[BCDEGRST]'
! 4063:
! 4064: # Regexp to match symbols that can be accessed directly from C.
! 4065: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 4066:
! 4067: # Transform the above into a raw symbol and a C symbol.
! 4068: symxfrm='\1 \2\3 \3'
! 4069:
! 4070: # Transform an extracted symbol line into a proper C declaration
! 4071: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
! 4072:
! 4073: # Transform an extracted symbol line into symbol name and symbol address
! 4074: 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'"
! 4075:
! 4076: # Define system-specific variables.
! 4077: case $host_os in
! 4078: aix*)
! 4079: symcode='[BCDT]'
! 4080: ;;
! 4081: cygwin* | mingw* | pw32*)
! 4082: symcode='[ABCDGISTW]'
! 4083: ;;
! 4084: hpux*) # Its linker distinguishes data from code symbols
! 4085: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 4086: 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'"
! 4087: ;;
! 4088: irix* | nonstopux*)
! 4089: symcode='[BCDEGRST]'
! 4090: ;;
! 4091: osf*)
! 4092: symcode='[BCDEGQRST]'
! 4093: ;;
! 4094: solaris* | sysv5*)
! 4095: symcode='[BDT]'
! 4096: ;;
! 4097: sysv4)
! 4098: symcode='[DFNSTU]'
! 4099: ;;
! 4100: esac
! 4101:
! 4102: # Handle CRLF in mingw tool chain
! 4103: opt_cr=
! 4104: case $host_os in
! 4105: mingw*)
! 4106: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 4107: ;;
! 4108: esac
! 4109:
! 4110: # If we're using GNU nm, then use its standard symbol codes.
! 4111: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
! 4112: symcode='[ABCDGISTW]'
! 4113: fi
! 4114:
! 4115: # Try without a prefix undercore, then with it.
! 4116: for ac_symprfx in "" "_"; do
! 4117:
! 4118: # Write the raw and C identifiers.
! 4119: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
! 4120:
! 4121: # Check to see that the pipe works correctly.
! 4122: pipe_works=no
! 4123: rm -f conftest*
! 4124: cat > conftest.$ac_ext <<EOF
! 4125: #ifdef __cplusplus
! 4126: extern "C" {
! 4127: #endif
! 4128: char nm_test_var;
! 4129: void nm_test_func(){}
! 4130: #ifdef __cplusplus
! 4131: }
! 4132: #endif
! 4133: int main(){nm_test_var='a';nm_test_func();return(0);}
! 4134: EOF
! 4135:
! 4136: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4137: (eval $ac_compile) 2>&5
! 4138: ac_status=$?
! 4139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4140: (exit $ac_status); }; then
! 4141: # Now try to grab the symbols.
! 4142: nlist=conftest.nm
! 4143: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 4144: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
! 4145: ac_status=$?
! 4146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4147: (exit $ac_status); } && test -s "$nlist"; then
! 4148: # Try sorting and uniquifying the output.
! 4149: if sort "$nlist" | uniq > "$nlist"T; then
! 4150: mv -f "$nlist"T "$nlist"
! 4151: else
! 4152: rm -f "$nlist"T
! 4153: fi
! 4154:
! 4155: # Make sure that we snagged all the symbols we need.
! 4156: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
! 4157: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
! 4158: cat <<EOF > conftest.$ac_ext
! 4159: #ifdef __cplusplus
! 4160: extern "C" {
! 4161: #endif
! 4162:
! 4163: EOF
! 4164: # Now generate the symbol file.
! 4165: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
! 4166:
! 4167: cat <<EOF >> conftest.$ac_ext
! 4168: #if defined (__STDC__) && __STDC__
! 4169: # define lt_ptr void *
! 4170: #else
! 4171: # define lt_ptr char *
! 4172: # define const
! 4173: #endif
! 4174:
! 4175: /* The mapping between symbol names and symbols. */
! 4176: const struct {
! 4177: const char *name;
! 4178: lt_ptr address;
! 4179: }
! 4180: lt_preloaded_symbols[] =
! 4181: {
! 4182: EOF
! 4183: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
! 4184: cat <<\EOF >> conftest.$ac_ext
! 4185: {0, (lt_ptr) 0}
! 4186: };
! 4187:
! 4188: #ifdef __cplusplus
! 4189: }
! 4190: #endif
! 4191: EOF
! 4192: # Now try linking the two files.
! 4193: mv conftest.$ac_objext conftstm.$ac_objext
! 4194: save_LIBS="$LIBS"
! 4195: save_CFLAGS="$CFLAGS"
! 4196: LIBS="conftstm.$ac_objext"
! 4197: CFLAGS="$CFLAGS$no_builtin_flag"
! 4198: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4199: (eval $ac_link) 2>&5
! 4200: ac_status=$?
! 4201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4202: (exit $ac_status); } && test -s conftest$ac_exeext; then
! 4203: pipe_works=yes
! 4204: fi
! 4205: LIBS="$save_LIBS"
! 4206: CFLAGS="$save_CFLAGS"
! 4207: else
! 4208: echo "cannot find nm_test_func in $nlist" >&5
! 4209: fi
! 4210: else
! 4211: echo "cannot find nm_test_var in $nlist" >&5
! 4212: fi
! 4213: else
! 4214: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.11 paf 4215: fi
1.15 ! paf 4216: else
! 4217: echo "$progname: failed program was:" >&5
! 4218: cat conftest.$ac_ext >&5
! 4219: fi
! 4220: rm -f conftest* conftst*
! 4221:
! 4222: # Do not use the global_symbol_pipe unless it works.
! 4223: if test "$pipe_works" = yes; then
! 4224: break
! 4225: else
! 4226: lt_cv_sys_global_symbol_pipe=
! 4227: fi
! 4228: done
! 4229:
1.11 paf 4230: fi
1.15 ! paf 4231:
! 4232: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
! 4233: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 4234: global_symbol_to_cdecl=
! 4235: global_symbol_to_c_name_address=
! 4236: else
! 4237: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
! 4238: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1.11 paf 4239: fi
1.15 ! paf 4240: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
! 4241: then
! 4242: echo "$as_me:$LINENO: result: failed" >&5
! 4243: echo "${ECHO_T}failed" >&6
1.11 paf 4244: else
1.15 ! paf 4245: echo "$as_me:$LINENO: result: ok" >&5
! 4246: echo "${ECHO_T}ok" >&6
1.11 paf 4247: fi
4248:
4249:
1.15 ! paf 4250: ac_ext=cc
! 4251: ac_cpp='$CXXCPP $CPPFLAGS'
! 4252: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4253: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4254: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4255: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 4256: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
! 4257: if test -z "$CXXCPP"; then
! 4258: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 4259: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4260: else
1.15 ! paf 4261: # Double quotes because CXXCPP needs to be expanded
! 4262: for CXXCPP in "$CXX -E" "/lib/cpp"
! 4263: do
! 4264: ac_preproc_ok=false
! 4265: for ac_cxx_preproc_warn_flag in '' yes
! 4266: do
! 4267: # Use a header file that comes with gcc, so configuring glibc
! 4268: # with a fresh cross-compiler works.
! 4269: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4270: # <limits.h> exists even on freestanding compilers.
! 4271: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4272: # not just through cpp. "Syntax error" is here to catch this case.
! 4273: cat >conftest.$ac_ext <<_ACEOF
! 4274: #line $LINENO "configure"
! 4275: /* confdefs.h. */
! 4276: _ACEOF
! 4277: cat confdefs.h >>conftest.$ac_ext
! 4278: cat >>conftest.$ac_ext <<_ACEOF
! 4279: /* end confdefs.h. */
! 4280: #ifdef __STDC__
! 4281: # include <limits.h>
! 4282: #else
! 4283: # include <assert.h>
! 4284: #endif
! 4285: Syntax error
! 4286: _ACEOF
! 4287: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4288: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4289: ac_status=$?
! 4290: grep -v '^ *+' conftest.er1 >conftest.err
! 4291: rm -f conftest.er1
! 4292: cat conftest.err >&5
! 4293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4294: (exit $ac_status); } >/dev/null; then
! 4295: if test -s conftest.err; then
! 4296: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4297: else
! 4298: ac_cpp_err=
! 4299: fi
1.11 paf 4300: else
1.15 ! paf 4301: ac_cpp_err=yes
1.11 paf 4302: fi
1.15 ! paf 4303: if test -z "$ac_cpp_err"; then
! 4304: :
1.11 paf 4305: else
1.15 ! paf 4306: echo "$as_me: failed program was:" >&5
! 4307: sed 's/^/| /' conftest.$ac_ext >&5
! 4308:
! 4309: # Broken: fails on valid input.
! 4310: continue
1.11 paf 4311: fi
1.15 ! paf 4312: rm -f conftest.err conftest.$ac_ext
1.11 paf 4313:
1.15 ! paf 4314: # OK, works on sane cases. Now check whether non-existent headers
! 4315: # can be detected and how.
! 4316: cat >conftest.$ac_ext <<_ACEOF
! 4317: #line $LINENO "configure"
! 4318: /* confdefs.h. */
! 4319: _ACEOF
! 4320: cat confdefs.h >>conftest.$ac_ext
! 4321: cat >>conftest.$ac_ext <<_ACEOF
! 4322: /* end confdefs.h. */
! 4323: #include <ac_nonexistent.h>
! 4324: _ACEOF
! 4325: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4326: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4327: ac_status=$?
! 4328: grep -v '^ *+' conftest.er1 >conftest.err
! 4329: rm -f conftest.er1
! 4330: cat conftest.err >&5
! 4331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4332: (exit $ac_status); } >/dev/null; then
! 4333: if test -s conftest.err; then
! 4334: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4335: else
! 4336: ac_cpp_err=
! 4337: fi
1.11 paf 4338: else
1.15 ! paf 4339: ac_cpp_err=yes
1.11 paf 4340: fi
1.15 ! paf 4341: if test -z "$ac_cpp_err"; then
! 4342: # Broken: success on invalid input.
! 4343: continue
! 4344: else
! 4345: echo "$as_me: failed program was:" >&5
! 4346: sed 's/^/| /' conftest.$ac_ext >&5
! 4347:
! 4348: # Passes both tests.
! 4349: ac_preproc_ok=:
! 4350: break
1.11 paf 4351: fi
1.15 ! paf 4352: rm -f conftest.err conftest.$ac_ext
1.11 paf 4353:
1.15 ! paf 4354: done
! 4355: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4356: rm -f conftest.err conftest.$ac_ext
! 4357: if $ac_preproc_ok; then
! 4358: break
1.11 paf 4359: fi
1.15 ! paf 4360:
! 4361: done
! 4362: ac_cv_prog_CXXCPP=$CXXCPP
! 4363:
1.11 paf 4364: fi
1.15 ! paf 4365: CXXCPP=$ac_cv_prog_CXXCPP
1.11 paf 4366: else
1.15 ! paf 4367: ac_cv_prog_CXXCPP=$CXXCPP
1.11 paf 4368: fi
1.15 ! paf 4369: echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 4370: echo "${ECHO_T}$CXXCPP" >&6
! 4371: ac_preproc_ok=false
! 4372: for ac_cxx_preproc_warn_flag in '' yes
! 4373: do
! 4374: # Use a header file that comes with gcc, so configuring glibc
! 4375: # with a fresh cross-compiler works.
! 4376: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4377: # <limits.h> exists even on freestanding compilers.
! 4378: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4379: # not just through cpp. "Syntax error" is here to catch this case.
! 4380: cat >conftest.$ac_ext <<_ACEOF
! 4381: #line $LINENO "configure"
! 4382: /* confdefs.h. */
! 4383: _ACEOF
! 4384: cat confdefs.h >>conftest.$ac_ext
! 4385: cat >>conftest.$ac_ext <<_ACEOF
! 4386: /* end confdefs.h. */
! 4387: #ifdef __STDC__
! 4388: # include <limits.h>
! 4389: #else
! 4390: # include <assert.h>
! 4391: #endif
! 4392: Syntax error
! 4393: _ACEOF
! 4394: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4395: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4396: ac_status=$?
! 4397: grep -v '^ *+' conftest.er1 >conftest.err
! 4398: rm -f conftest.er1
! 4399: cat conftest.err >&5
! 4400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4401: (exit $ac_status); } >/dev/null; then
! 4402: if test -s conftest.err; then
! 4403: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4404: else
! 4405: ac_cpp_err=
! 4406: fi
1.11 paf 4407: else
1.15 ! paf 4408: ac_cpp_err=yes
1.11 paf 4409: fi
1.15 ! paf 4410: if test -z "$ac_cpp_err"; then
! 4411: :
1.11 paf 4412: else
1.15 ! paf 4413: echo "$as_me: failed program was:" >&5
! 4414: sed 's/^/| /' conftest.$ac_ext >&5
! 4415:
! 4416: # Broken: fails on valid input.
! 4417: continue
1.11 paf 4418: fi
1.15 ! paf 4419: rm -f conftest.err conftest.$ac_ext
1.11 paf 4420:
1.15 ! paf 4421: # OK, works on sane cases. Now check whether non-existent headers
! 4422: # can be detected and how.
! 4423: cat >conftest.$ac_ext <<_ACEOF
! 4424: #line $LINENO "configure"
! 4425: /* confdefs.h. */
! 4426: _ACEOF
! 4427: cat confdefs.h >>conftest.$ac_ext
! 4428: cat >>conftest.$ac_ext <<_ACEOF
! 4429: /* end confdefs.h. */
! 4430: #include <ac_nonexistent.h>
! 4431: _ACEOF
! 4432: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4433: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4434: ac_status=$?
! 4435: grep -v '^ *+' conftest.er1 >conftest.err
! 4436: rm -f conftest.er1
! 4437: cat conftest.err >&5
! 4438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4439: (exit $ac_status); } >/dev/null; then
! 4440: if test -s conftest.err; then
! 4441: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4442: else
! 4443: ac_cpp_err=
! 4444: fi
1.11 paf 4445: else
1.15 ! paf 4446: ac_cpp_err=yes
1.11 paf 4447: fi
1.15 ! paf 4448: if test -z "$ac_cpp_err"; then
! 4449: # Broken: success on invalid input.
! 4450: continue
! 4451: else
! 4452: echo "$as_me: failed program was:" >&5
! 4453: sed 's/^/| /' conftest.$ac_ext >&5
! 4454:
! 4455: # Passes both tests.
! 4456: ac_preproc_ok=:
! 4457: break
1.11 paf 4458: fi
1.15 ! paf 4459: rm -f conftest.err conftest.$ac_ext
1.11 paf 4460:
1.15 ! paf 4461: done
! 4462: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4463: rm -f conftest.err conftest.$ac_ext
! 4464: if $ac_preproc_ok; then
! 4465: :
1.11 paf 4466: else
1.15 ! paf 4467: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 4468: See \`config.log' for more details." >&5
! 4469: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 4470: See \`config.log' for more details." >&2;}
! 4471: { (exit 1); exit 1; }; }
1.11 paf 4472: fi
4473:
1.15 ! paf 4474: ac_ext=cc
! 4475: ac_cpp='$CXXCPP $CPPFLAGS'
! 4476: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4477: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4478: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4479:
1.11 paf 4480:
1.15 ! paf 4481: echo "$as_me:$LINENO: checking for egrep" >&5
! 4482: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
! 4483: if test "${ac_cv_prog_egrep+set}" = set; then
! 4484: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4485: else
! 4486: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
! 4487: then ac_cv_prog_egrep='grep -E'
! 4488: else ac_cv_prog_egrep='egrep'
1.11 paf 4489: fi
4490: fi
1.15 ! paf 4491: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
! 4492: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
! 4493: EGREP=$ac_cv_prog_egrep
! 4494:
! 4495:
! 4496: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 4497: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 4498: if test "${ac_cv_header_stdc+set}" = set; then
! 4499: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4500: else
! 4501: cat >conftest.$ac_ext <<_ACEOF
! 4502: #line $LINENO "configure"
! 4503: /* confdefs.h. */
! 4504: _ACEOF
! 4505: cat confdefs.h >>conftest.$ac_ext
! 4506: cat >>conftest.$ac_ext <<_ACEOF
! 4507: /* end confdefs.h. */
! 4508: #include <stdlib.h>
! 4509: #include <stdarg.h>
! 4510: #include <string.h>
! 4511: #include <float.h>
! 4512:
! 4513: int
! 4514: main ()
! 4515: {
! 4516:
! 4517: ;
! 4518: return 0;
! 4519: }
! 4520: _ACEOF
! 4521: rm -f conftest.$ac_objext
! 4522: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4523: (eval $ac_compile) 2>&5
! 4524: ac_status=$?
! 4525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4526: (exit $ac_status); } &&
! 4527: { ac_try='test -s conftest.$ac_objext'
! 4528: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4529: (eval $ac_try) 2>&5
! 4530: ac_status=$?
! 4531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4532: (exit $ac_status); }; }; then
! 4533: ac_cv_header_stdc=yes
1.11 paf 4534: else
1.15 ! paf 4535: echo "$as_me: failed program was:" >&5
! 4536: sed 's/^/| /' conftest.$ac_ext >&5
! 4537:
! 4538: ac_cv_header_stdc=no
1.11 paf 4539: fi
1.15 ! paf 4540: rm -f conftest.$ac_objext conftest.$ac_ext
! 4541:
! 4542: if test $ac_cv_header_stdc = yes; then
! 4543: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 4544: cat >conftest.$ac_ext <<_ACEOF
! 4545: #line $LINENO "configure"
! 4546: /* confdefs.h. */
! 4547: _ACEOF
! 4548: cat confdefs.h >>conftest.$ac_ext
! 4549: cat >>conftest.$ac_ext <<_ACEOF
! 4550: /* end confdefs.h. */
! 4551: #include <string.h>
1.11 paf 4552:
1.15 ! paf 4553: _ACEOF
! 4554: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4555: $EGREP "memchr" >/dev/null 2>&1; then
! 4556: :
1.11 paf 4557: else
1.15 ! paf 4558: ac_cv_header_stdc=no
1.11 paf 4559: fi
1.15 ! paf 4560: rm -f conftest*
! 4561:
1.11 paf 4562: fi
4563:
1.15 ! paf 4564: if test $ac_cv_header_stdc = yes; then
! 4565: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 4566: cat >conftest.$ac_ext <<_ACEOF
! 4567: #line $LINENO "configure"
! 4568: /* confdefs.h. */
! 4569: _ACEOF
! 4570: cat confdefs.h >>conftest.$ac_ext
! 4571: cat >>conftest.$ac_ext <<_ACEOF
! 4572: /* end confdefs.h. */
! 4573: #include <stdlib.h>
1.1 parser 4574:
1.15 ! paf 4575: _ACEOF
! 4576: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4577: $EGREP "free" >/dev/null 2>&1; then
1.1 parser 4578: :
4579: else
1.15 ! paf 4580: ac_cv_header_stdc=no
1.1 parser 4581: fi
1.15 ! paf 4582: rm -f conftest*
1.1 parser 4583:
1.15 ! paf 4584: fi
1.1 parser 4585:
1.15 ! paf 4586: if test $ac_cv_header_stdc = yes; then
! 4587: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 4588: if test "$cross_compiling" = yes; then
! 4589: :
! 4590: else
! 4591: cat >conftest.$ac_ext <<_ACEOF
! 4592: #line $LINENO "configure"
! 4593: /* confdefs.h. */
! 4594: _ACEOF
! 4595: cat confdefs.h >>conftest.$ac_ext
! 4596: cat >>conftest.$ac_ext <<_ACEOF
! 4597: /* end confdefs.h. */
! 4598: #include <ctype.h>
! 4599: #if ((' ' & 0x0FF) == 0x020)
! 4600: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 4601: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 4602: #else
! 4603: # define ISLOWER(c) \
! 4604: (('a' <= (c) && (c) <= 'i') \
! 4605: || ('j' <= (c) && (c) <= 'r') \
! 4606: || ('s' <= (c) && (c) <= 'z'))
! 4607: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 4608: #endif
1.1 parser 4609:
1.15 ! paf 4610: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 4611: int
! 4612: main ()
! 4613: {
! 4614: int i;
! 4615: for (i = 0; i < 256; i++)
! 4616: if (XOR (islower (i), ISLOWER (i))
! 4617: || toupper (i) != TOUPPER (i))
! 4618: exit(2);
! 4619: exit (0);
! 4620: }
! 4621: _ACEOF
! 4622: rm -f conftest$ac_exeext
! 4623: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4624: (eval $ac_link) 2>&5
! 4625: ac_status=$?
! 4626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4627: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 4628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4629: (eval $ac_try) 2>&5
! 4630: ac_status=$?
! 4631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4632: (exit $ac_status); }; }; then
! 4633: :
1.1 parser 4634: else
1.15 ! paf 4635: echo "$as_me: program exited with status $ac_status" >&5
! 4636: echo "$as_me: failed program was:" >&5
! 4637: sed 's/^/| /' conftest.$ac_ext >&5
! 4638:
! 4639: ( exit $ac_status )
! 4640: ac_cv_header_stdc=no
! 4641: fi
! 4642: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 parser 4643: fi
1.15 ! paf 4644: fi
! 4645: fi
! 4646: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 4647: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 4648: if test $ac_cv_header_stdc = yes; then
1.1 parser 4649:
1.15 ! paf 4650: cat >>confdefs.h <<\_ACEOF
! 4651: #define STDC_HEADERS 1
! 4652: _ACEOF
1.1 parser 4653:
1.15 ! paf 4654: fi
1.1 parser 4655:
1.15 ! paf 4656: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 parser 4657:
4658:
4659:
4660:
4661:
4662:
1.15 ! paf 4663:
! 4664:
! 4665:
! 4666: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 4667: inttypes.h stdint.h unistd.h
! 4668: do
! 4669: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4670: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4671: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4672: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4673: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4674: else
! 4675: cat >conftest.$ac_ext <<_ACEOF
! 4676: #line $LINENO "configure"
! 4677: /* confdefs.h. */
! 4678: _ACEOF
! 4679: cat confdefs.h >>conftest.$ac_ext
! 4680: cat >>conftest.$ac_ext <<_ACEOF
! 4681: /* end confdefs.h. */
! 4682: $ac_includes_default
! 4683:
! 4684: #include <$ac_header>
! 4685: _ACEOF
! 4686: rm -f conftest.$ac_objext
! 4687: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4688: (eval $ac_compile) 2>&5
! 4689: ac_status=$?
! 4690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4691: (exit $ac_status); } &&
! 4692: { ac_try='test -s conftest.$ac_objext'
! 4693: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4694: (eval $ac_try) 2>&5
! 4695: ac_status=$?
! 4696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4697: (exit $ac_status); }; }; then
! 4698: eval "$as_ac_Header=yes"
! 4699: else
! 4700: echo "$as_me: failed program was:" >&5
! 4701: sed 's/^/| /' conftest.$ac_ext >&5
! 4702:
! 4703: eval "$as_ac_Header=no"
! 4704: fi
! 4705: rm -f conftest.$ac_objext conftest.$ac_ext
! 4706: fi
! 4707: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4708: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4709: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4710: cat >>confdefs.h <<_ACEOF
! 4711: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4712: _ACEOF
! 4713:
! 4714: fi
! 4715:
! 4716: done
! 4717:
! 4718:
! 4719:
! 4720: for ac_header in dlfcn.h
! 4721: do
! 4722: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4723: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4724: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4725: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4726: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4727: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4728: fi
! 4729: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4730: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4731: else
! 4732: # Is the header compilable?
! 4733: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4734: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 4735: cat >conftest.$ac_ext <<_ACEOF
! 4736: #line $LINENO "configure"
! 4737: /* confdefs.h. */
! 4738: _ACEOF
! 4739: cat confdefs.h >>conftest.$ac_ext
! 4740: cat >>conftest.$ac_ext <<_ACEOF
! 4741: /* end confdefs.h. */
! 4742: $ac_includes_default
! 4743: #include <$ac_header>
! 4744: _ACEOF
! 4745: rm -f conftest.$ac_objext
! 4746: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4747: (eval $ac_compile) 2>&5
! 4748: ac_status=$?
! 4749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4750: (exit $ac_status); } &&
! 4751: { ac_try='test -s conftest.$ac_objext'
! 4752: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4753: (eval $ac_try) 2>&5
! 4754: ac_status=$?
! 4755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4756: (exit $ac_status); }; }; then
! 4757: ac_header_compiler=yes
! 4758: else
! 4759: echo "$as_me: failed program was:" >&5
! 4760: sed 's/^/| /' conftest.$ac_ext >&5
! 4761:
! 4762: ac_header_compiler=no
! 4763: fi
! 4764: rm -f conftest.$ac_objext conftest.$ac_ext
! 4765: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4766: echo "${ECHO_T}$ac_header_compiler" >&6
! 4767:
! 4768: # Is the header present?
! 4769: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4770: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 4771: cat >conftest.$ac_ext <<_ACEOF
! 4772: #line $LINENO "configure"
! 4773: /* confdefs.h. */
! 4774: _ACEOF
! 4775: cat confdefs.h >>conftest.$ac_ext
! 4776: cat >>conftest.$ac_ext <<_ACEOF
! 4777: /* end confdefs.h. */
! 4778: #include <$ac_header>
! 4779: _ACEOF
! 4780: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4781: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4782: ac_status=$?
! 4783: grep -v '^ *+' conftest.er1 >conftest.err
! 4784: rm -f conftest.er1
! 4785: cat conftest.err >&5
! 4786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4787: (exit $ac_status); } >/dev/null; then
! 4788: if test -s conftest.err; then
! 4789: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4790: else
! 4791: ac_cpp_err=
! 4792: fi
! 4793: else
! 4794: ac_cpp_err=yes
! 4795: fi
! 4796: if test -z "$ac_cpp_err"; then
! 4797: ac_header_preproc=yes
! 4798: else
! 4799: echo "$as_me: failed program was:" >&5
! 4800: sed 's/^/| /' conftest.$ac_ext >&5
! 4801:
! 4802: ac_header_preproc=no
! 4803: fi
! 4804: rm -f conftest.err conftest.$ac_ext
! 4805: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4806: echo "${ECHO_T}$ac_header_preproc" >&6
! 4807:
! 4808: # So? What about this header?
! 4809: case $ac_header_compiler:$ac_header_preproc in
! 4810: yes:no )
! 4811: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4812: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4813: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4814: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4815: (
! 4816: cat <<\_ASBOX
! 4817: ## ------------------------------------ ##
! 4818: ## Report this to bug-autoconf@gnu.org. ##
! 4819: ## ------------------------------------ ##
! 4820: _ASBOX
! 4821: ) |
! 4822: sed "s/^/$as_me: WARNING: /" >&2
! 4823: ;;
! 4824: no:yes )
! 4825: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4826: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4827: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4828: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4829: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4830: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4831: (
! 4832: cat <<\_ASBOX
! 4833: ## ------------------------------------ ##
! 4834: ## Report this to bug-autoconf@gnu.org. ##
! 4835: ## ------------------------------------ ##
! 4836: _ASBOX
! 4837: ) |
! 4838: sed "s/^/$as_me: WARNING: /" >&2
! 4839: ;;
! 4840: esac
! 4841: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4842: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4843: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 4845: else
1.15 ! paf 4846: eval "$as_ac_Header=$ac_header_preproc"
! 4847: fi
! 4848: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4849: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4850:
! 4851: fi
! 4852: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4853: cat >>confdefs.h <<_ACEOF
! 4854: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4855: _ACEOF
! 4856:
! 4857: fi
! 4858:
! 4859: done
! 4860:
! 4861:
! 4862:
! 4863:
! 4864:
! 4865:
! 4866: # Only perform the check for file, if the check method requires it
! 4867: case $deplibs_check_method in
! 4868: file_magic*)
! 4869: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 4870: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 4871: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 4872: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 4873: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4874: else
! 4875: case $MAGIC_CMD in
! 4876: /*)
! 4877: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 4878: ;;
! 4879: ?:/*)
! 4880: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
! 4881: ;;
! 4882: *)
! 4883: ac_save_MAGIC_CMD="$MAGIC_CMD"
! 4884: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 4885: ac_dummy="/usr/bin:$PATH"
! 4886: for ac_dir in $ac_dummy; do
! 4887: test -z "$ac_dir" && ac_dir=.
! 4888: if test -f $ac_dir/${ac_tool_prefix}file; then
! 4889: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 4890: if test -n "$file_magic_test_file"; then
! 4891: case $deplibs_check_method in
! 4892: "file_magic "*)
! 4893: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 4894: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4895: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 4896: egrep "$file_magic_regex" > /dev/null; then
! 4897: :
! 4898: else
! 4899: cat <<EOF 1>&2
! 4900:
! 4901: *** Warning: the command libtool uses to detect shared libraries,
! 4902: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 4903: *** The result is that libtool may fail to recognize shared libraries
! 4904: *** as such. This will affect the creation of libtool libraries that
! 4905: *** depend on shared libraries, but programs linked with such libtool
! 4906: *** libraries will work regardless of this problem. Nevertheless, you
! 4907: *** may want to report the problem to your system manager and/or to
! 4908: *** bug-libtool@gnu.org
! 4909:
! 4910: EOF
! 4911: fi ;;
! 4912: esac
! 4913: fi
! 4914: break
! 4915: fi
! 4916: done
! 4917: IFS="$ac_save_ifs"
! 4918: MAGIC_CMD="$ac_save_MAGIC_CMD"
! 4919: ;;
! 4920: esac
! 4921: fi
! 4922:
! 4923: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4924: if test -n "$MAGIC_CMD"; then
! 4925: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 4926: echo "${ECHO_T}$MAGIC_CMD" >&6
! 4927: else
! 4928: echo "$as_me:$LINENO: result: no" >&5
! 4929: echo "${ECHO_T}no" >&6
! 4930: fi
! 4931:
! 4932: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 4933: if test -n "$ac_tool_prefix"; then
! 4934: echo "$as_me:$LINENO: checking for file" >&5
! 4935: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 4936: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 4937: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4938: else
! 4939: case $MAGIC_CMD in
! 4940: /*)
! 4941: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 4942: ;;
! 4943: ?:/*)
! 4944: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
! 4945: ;;
! 4946: *)
! 4947: ac_save_MAGIC_CMD="$MAGIC_CMD"
! 4948: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 4949: ac_dummy="/usr/bin:$PATH"
! 4950: for ac_dir in $ac_dummy; do
! 4951: test -z "$ac_dir" && ac_dir=.
! 4952: if test -f $ac_dir/file; then
! 4953: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 4954: if test -n "$file_magic_test_file"; then
! 4955: case $deplibs_check_method in
! 4956: "file_magic "*)
! 4957: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 4958: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4959: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 4960: egrep "$file_magic_regex" > /dev/null; then
! 4961: :
! 4962: else
! 4963: cat <<EOF 1>&2
! 4964:
! 4965: *** Warning: the command libtool uses to detect shared libraries,
! 4966: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 4967: *** The result is that libtool may fail to recognize shared libraries
! 4968: *** as such. This will affect the creation of libtool libraries that
! 4969: *** depend on shared libraries, but programs linked with such libtool
! 4970: *** libraries will work regardless of this problem. Nevertheless, you
! 4971: *** may want to report the problem to your system manager and/or to
! 4972: *** bug-libtool@gnu.org
! 4973:
1.1 parser 4974: EOF
1.15 ! paf 4975: fi ;;
! 4976: esac
! 4977: fi
! 4978: break
! 4979: fi
! 4980: done
! 4981: IFS="$ac_save_ifs"
! 4982: MAGIC_CMD="$ac_save_MAGIC_CMD"
! 4983: ;;
! 4984: esac
! 4985: fi
! 4986:
! 4987: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 4988: if test -n "$MAGIC_CMD"; then
! 4989: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 4990: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 parser 4991: else
1.15 ! paf 4992: echo "$as_me:$LINENO: result: no" >&5
! 4993: echo "${ECHO_T}no" >&6
1.1 parser 4994: fi
1.15 ! paf 4995:
! 4996: else
! 4997: MAGIC_CMD=:
! 4998: fi
1.1 parser 4999: fi
5000:
1.15 ! paf 5001: fi
! 5002: ;;
! 5003: esac
1.1 parser 5004:
1.15 ! paf 5005: if test -n "$ac_tool_prefix"; then
! 5006: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 5007: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 5008: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5010: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 5011: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5012: else
! 5013: if test -n "$RANLIB"; then
! 5014: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 5015: else
! 5016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5017: for as_dir in $PATH
1.1 parser 5018: do
1.15 ! paf 5019: IFS=$as_save_IFS
! 5020: test -z "$as_dir" && as_dir=.
! 5021: for ac_exec_ext in '' $ac_executable_extensions; do
! 5022: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5023: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 5024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5025: break 2
! 5026: fi
! 5027: done
! 5028: done
! 5029:
! 5030: fi
! 5031: fi
! 5032: RANLIB=$ac_cv_prog_RANLIB
! 5033: if test -n "$RANLIB"; then
! 5034: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 5035: echo "${ECHO_T}$RANLIB" >&6
! 5036: else
! 5037: echo "$as_me:$LINENO: result: no" >&5
! 5038: echo "${ECHO_T}no" >&6
! 5039: fi
! 5040:
! 5041: fi
! 5042: if test -z "$ac_cv_prog_RANLIB"; then
! 5043: ac_ct_RANLIB=$RANLIB
! 5044: # Extract the first word of "ranlib", so it can be a program name with args.
! 5045: set dummy ranlib; ac_word=$2
! 5046: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5047: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5048: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 5049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5050: else
1.15 ! paf 5051: if test -n "$ac_ct_RANLIB"; then
! 5052: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.1 parser 5053: else
1.15 ! paf 5054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5055: for as_dir in $PATH
! 5056: do
! 5057: IFS=$as_save_IFS
! 5058: test -z "$as_dir" && as_dir=.
! 5059: for ac_exec_ext in '' $ac_executable_extensions; do
! 5060: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5061: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 5062: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5063: break 2
! 5064: fi
! 5065: done
! 5066: done
! 5067:
! 5068: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
! 5069: fi
1.1 parser 5070: fi
1.15 ! paf 5071: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 5072: if test -n "$ac_ct_RANLIB"; then
! 5073: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 5074: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 5075: else
! 5076: echo "$as_me:$LINENO: result: no" >&5
! 5077: echo "${ECHO_T}no" >&6
1.1 parser 5078: fi
1.15 ! paf 5079:
! 5080: RANLIB=$ac_ct_RANLIB
1.1 parser 5081: else
1.15 ! paf 5082: RANLIB="$ac_cv_prog_RANLIB"
1.1 parser 5083: fi
1.15 ! paf 5084:
! 5085: if test -n "$ac_tool_prefix"; then
! 5086: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 5087: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 5088: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5089: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5090: if test "${ac_cv_prog_STRIP+set}" = set; then
! 5091: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5092: else
! 5093: if test -n "$STRIP"; then
! 5094: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 5095: else
! 5096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5097: for as_dir in $PATH
! 5098: do
! 5099: IFS=$as_save_IFS
! 5100: test -z "$as_dir" && as_dir=.
! 5101: for ac_exec_ext in '' $ac_executable_extensions; do
! 5102: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5103: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 5104: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5105: break 2
! 5106: fi
1.1 parser 5107: done
1.15 ! paf 5108: done
! 5109:
! 5110: fi
! 5111: fi
! 5112: STRIP=$ac_cv_prog_STRIP
! 5113: if test -n "$STRIP"; then
! 5114: echo "$as_me:$LINENO: result: $STRIP" >&5
! 5115: echo "${ECHO_T}$STRIP" >&6
! 5116: else
! 5117: echo "$as_me:$LINENO: result: no" >&5
! 5118: echo "${ECHO_T}no" >&6
! 5119: fi
1.1 parser 5120:
1.15 ! paf 5121: fi
! 5122: if test -z "$ac_cv_prog_STRIP"; then
! 5123: ac_ct_STRIP=$STRIP
! 5124: # Extract the first word of "strip", so it can be a program name with args.
! 5125: set dummy strip; ac_word=$2
! 5126: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5127: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5128: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 5129: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5130: else
! 5131: if test -n "$ac_ct_STRIP"; then
! 5132: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 5133: else
! 5134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5135: for as_dir in $PATH
! 5136: do
! 5137: IFS=$as_save_IFS
! 5138: test -z "$as_dir" && as_dir=.
! 5139: for ac_exec_ext in '' $ac_executable_extensions; do
! 5140: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5141: ac_cv_prog_ac_ct_STRIP="strip"
! 5142: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5143: break 2
! 5144: fi
! 5145: done
! 5146: done
1.1 parser 5147:
1.15 ! paf 5148: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 5149: fi
! 5150: fi
! 5151: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 5152: if test -n "$ac_ct_STRIP"; then
! 5153: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 5154: echo "${ECHO_T}$ac_ct_STRIP" >&6
! 5155: else
! 5156: echo "$as_me:$LINENO: result: no" >&5
! 5157: echo "${ECHO_T}no" >&6
! 5158: fi
1.1 parser 5159:
1.15 ! paf 5160: STRIP=$ac_ct_STRIP
1.1 parser 5161: else
1.15 ! paf 5162: STRIP="$ac_cv_prog_STRIP"
! 5163: fi
! 5164:
! 5165:
! 5166: enable_dlopen=no
! 5167: enable_win32_dll=no
! 5168:
! 5169: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 5170: if test "${enable_libtool_lock+set}" = set; then
! 5171: enableval="$enable_libtool_lock"
! 5172:
! 5173: fi;
! 5174: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 5175:
! 5176: # Some flags need to be propagated to the compiler or linker for good
! 5177: # libtool support.
! 5178: case $host in
! 5179: *-*-irix6*)
! 5180: # Find out which ABI we are using.
! 5181: echo '#line 5181 "configure"' > conftest.$ac_ext
! 5182: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5183: (eval $ac_compile) 2>&5
! 5184: ac_status=$?
! 5185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5186: (exit $ac_status); }; then
! 5187: case `/usr/bin/file conftest.$ac_objext` in
! 5188: *32-bit*)
! 5189: LD="${LD-ld} -32"
! 5190: ;;
! 5191: *N32*)
! 5192: LD="${LD-ld} -n32"
! 5193: ;;
! 5194: *64-bit*)
! 5195: LD="${LD-ld} -64"
! 5196: ;;
! 5197: esac
! 5198: fi
1.1 parser 5199: rm -rf conftest*
1.15 ! paf 5200: ;;
! 5201:
! 5202: *-*-sco3.2v5*)
! 5203: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 5204: SAVE_CFLAGS="$CFLAGS"
! 5205: CFLAGS="$CFLAGS -belf"
! 5206: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 5207: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 5208: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 5209: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5210: else
5211:
1.15 ! paf 5212:
! 5213: ac_ext=c
! 5214: ac_cpp='$CPP $CPPFLAGS'
! 5215: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5216: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5217: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5218:
! 5219: cat >conftest.$ac_ext <<_ACEOF
! 5220: #line $LINENO "configure"
! 5221: /* confdefs.h. */
! 5222: _ACEOF
! 5223: cat confdefs.h >>conftest.$ac_ext
! 5224: cat >>conftest.$ac_ext <<_ACEOF
! 5225: /* end confdefs.h. */
! 5226:
! 5227: int
! 5228: main ()
! 5229: {
! 5230:
! 5231: ;
! 5232: return 0;
! 5233: }
! 5234: _ACEOF
! 5235: rm -f conftest.$ac_objext conftest$ac_exeext
! 5236: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5237: (eval $ac_link) 2>&5
! 5238: ac_status=$?
! 5239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5240: (exit $ac_status); } &&
! 5241: { ac_try='test -s conftest$ac_exeext'
! 5242: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5243: (eval $ac_try) 2>&5
! 5244: ac_status=$?
! 5245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5246: (exit $ac_status); }; }; then
! 5247: lt_cv_cc_needs_belf=yes
1.1 parser 5248: else
1.15 ! paf 5249: echo "$as_me: failed program was:" >&5
! 5250: sed 's/^/| /' conftest.$ac_ext >&5
! 5251:
! 5252: lt_cv_cc_needs_belf=no
1.1 parser 5253: fi
1.15 ! paf 5254: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5255: ac_ext=cc
! 5256: ac_cpp='$CXXCPP $CPPFLAGS'
! 5257: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5258: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5259: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 parser 5260:
5261: fi
1.15 ! paf 5262: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 5263: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
! 5264: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 5265: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 5266: CFLAGS="$SAVE_CFLAGS"
! 5267: fi
! 5268: ;;
! 5269:
! 5270:
! 5271: esac
! 5272:
! 5273: # Sed substitution that helps us do robust quoting. It backslashifies
! 5274: # metacharacters that are still active within double-quoted strings.
! 5275: Xsed='sed -e s/^X//'
! 5276: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
! 5277:
! 5278: # Same as above, but do not quote variable references.
! 5279: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
! 5280:
! 5281: # Sed substitution to delay expansion of an escaped shell variable in a
! 5282: # double_quote_subst'ed string.
! 5283: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
! 5284:
! 5285: # Constants:
! 5286: rm="rm -f"
! 5287:
! 5288: # Global variables:
! 5289: default_ofile=libtool
! 5290: can_build_shared=yes
! 5291:
! 5292: # All known linkers require a `.a' archive for static linking (except M$VC,
! 5293: # which needs '.lib').
! 5294: libext=a
! 5295: ltmain="$ac_aux_dir/ltmain.sh"
! 5296: ofile="$default_ofile"
! 5297: with_gnu_ld="$lt_cv_prog_gnu_ld"
! 5298: need_locks="$enable_libtool_lock"
! 5299:
! 5300: old_CC="$CC"
! 5301: old_CFLAGS="$CFLAGS"
! 5302:
! 5303: # Set sane defaults for various variables
! 5304: test -z "$AR" && AR=ar
! 5305: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 5306: test -z "$AS" && AS=as
! 5307: test -z "$CC" && CC=cc
! 5308: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 5309: test -z "$LD" && LD=ld
! 5310: test -z "$LN_S" && LN_S="ln -s"
! 5311: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 5312: test -z "$NM" && NM=nm
! 5313: test -z "$OBJDUMP" && OBJDUMP=objdump
! 5314: test -z "$RANLIB" && RANLIB=:
! 5315: test -z "$STRIP" && STRIP=:
! 5316: test -z "$ac_objext" && ac_objext=o
1.1 parser 5317:
1.15 ! paf 5318: if test x"$host" != x"$build"; then
! 5319: ac_tool_prefix=${host_alias}-
1.1 parser 5320: else
1.15 ! paf 5321: ac_tool_prefix=
1.1 parser 5322: fi
5323:
1.15 ! paf 5324: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
! 5325: case $host_os in
! 5326: linux-gnu*) ;;
! 5327: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
! 5328: esac
! 5329:
! 5330: case $host_os in
! 5331: aix3*)
! 5332: # AIX sometimes has problems with the GCC collect2 program. For some
! 5333: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 5334: # vanish in a puff of smoke.
! 5335: if test "X${COLLECT_NAMES+set}" != Xset; then
! 5336: COLLECT_NAMES=
! 5337: export COLLECT_NAMES
! 5338: fi
! 5339: ;;
! 5340: esac
! 5341:
! 5342: # Determine commands to create old-style static archives.
! 5343: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 5344: old_postinstall_cmds='chmod 644 $oldlib'
! 5345: old_postuninstall_cmds=
! 5346:
! 5347: if test -n "$RANLIB"; then
! 5348: case $host_os in
! 5349: openbsd*)
! 5350: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
! 5351: ;;
! 5352: *)
! 5353: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
! 5354: ;;
! 5355: esac
! 5356: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.1 parser 5357: fi
5358:
1.15 ! paf 5359: # Allow CC to be a program name with arguments.
! 5360: set dummy $CC
! 5361: compiler="$2"
! 5362:
! 5363: echo "$as_me:$LINENO: checking for objdir" >&5
! 5364: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 5365: rm -f .libs 2>/dev/null
! 5366: mkdir .libs 2>/dev/null
! 5367: if test -d .libs; then
! 5368: objdir=.libs
! 5369: else
! 5370: # MS-DOS does not allow filenames that begin with a dot.
! 5371: objdir=_libs
! 5372: fi
! 5373: rmdir .libs 2>/dev/null
! 5374: echo "$as_me:$LINENO: result: $objdir" >&5
! 5375: echo "${ECHO_T}$objdir" >&6
! 5376:
! 5377:
! 5378:
! 5379: # Check whether --with-pic or --without-pic was given.
! 5380: if test "${with_pic+set}" = set; then
! 5381: withval="$with_pic"
! 5382: pic_mode="$withval"
! 5383: else
! 5384: pic_mode=default
! 5385: fi;
! 5386: test -z "$pic_mode" && pic_mode=default
! 5387:
! 5388: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
! 5389: # in isolation, and that seeing it set (from the cache) indicates that
! 5390: # the associated values are set (in the cache) correctly too.
! 5391: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 5392: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 5393: if test "${lt_cv_prog_cc_pic+set}" = set; then
! 5394: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5395: else
! 5396: lt_cv_prog_cc_pic=
! 5397: lt_cv_prog_cc_shlib=
! 5398: lt_cv_prog_cc_wl=
! 5399: lt_cv_prog_cc_static=
! 5400: lt_cv_prog_cc_no_builtin=
! 5401: lt_cv_prog_cc_can_build_shared=$can_build_shared
! 5402:
! 5403: if test "$GCC" = yes; then
! 5404: lt_cv_prog_cc_wl='-Wl,'
! 5405: lt_cv_prog_cc_static='-static'
1.1 parser 5406:
1.15 ! paf 5407: case $host_os in
! 5408: aix*)
! 5409: # Below there is a dirty hack to force normal static linking with -ldl
! 5410: # The problem is because libdl dynamically linked with both libc and
! 5411: # libC (AIX C++ library), which obviously doesn't included in libraries
! 5412: # list by gcc. This cause undefined symbols with -static flags.
! 5413: # This hack allows C programs to be linked with "-static -ldl", but
! 5414: # not sure about C++ programs.
! 5415: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
! 5416: ;;
! 5417: amigaos*)
! 5418: # FIXME: we need at least 68020 code to build shared libraries, but
! 5419: # adding the `-m68020' flag to GCC prevents building anything better,
! 5420: # like `-m68040'.
! 5421: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
! 5422: ;;
! 5423: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 5424: # PIC is the default for these OSes.
! 5425: ;;
! 5426: darwin* | rhapsody*)
! 5427: # PIC is the default on this platform
! 5428: # Common symbols not allowed in MH_DYLIB files
! 5429: lt_cv_prog_cc_pic='-fno-common'
! 5430: ;;
! 5431: cygwin* | mingw* | pw32* | os2*)
! 5432: # This hack is so that the source file can tell whether it is being
! 5433: # built for inclusion in a dll (and should export symbols for example).
! 5434: lt_cv_prog_cc_pic='-DDLL_EXPORT'
! 5435: ;;
! 5436: sysv4*MP*)
! 5437: if test -d /usr/nec; then
! 5438: lt_cv_prog_cc_pic=-Kconform_pic
! 5439: fi
! 5440: ;;
! 5441: *)
! 5442: lt_cv_prog_cc_pic='-fPIC'
! 5443: ;;
! 5444: esac
! 5445: else
! 5446: # PORTME Check for PIC flags for the system compiler.
! 5447: case $host_os in
! 5448: aix3* | aix4* | aix5*)
! 5449: lt_cv_prog_cc_wl='-Wl,'
! 5450: # All AIX code is PIC.
! 5451: if test "$host_cpu" = ia64; then
! 5452: # AIX 5 now supports IA64 processor
! 5453: lt_cv_prog_cc_static='-Bstatic'
! 5454: else
! 5455: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
! 5456: fi
! 5457: ;;
! 5458:
! 5459: hpux9* | hpux10* | hpux11*)
! 5460: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
! 5461: lt_cv_prog_cc_wl='-Wl,'
! 5462: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
! 5463: lt_cv_prog_cc_pic='+Z'
! 5464: ;;
! 5465:
! 5466: irix5* | irix6* | nonstopux*)
! 5467: lt_cv_prog_cc_wl='-Wl,'
! 5468: lt_cv_prog_cc_static='-non_shared'
! 5469: # PIC (with -KPIC) is the default.
! 5470: ;;
! 5471:
! 5472: cygwin* | mingw* | pw32* | os2*)
! 5473: # This hack is so that the source file can tell whether it is being
! 5474: # built for inclusion in a dll (and should export symbols for example).
! 5475: lt_cv_prog_cc_pic='-DDLL_EXPORT'
! 5476: ;;
! 5477:
! 5478: newsos6)
! 5479: lt_cv_prog_cc_pic='-KPIC'
! 5480: lt_cv_prog_cc_static='-Bstatic'
! 5481: ;;
! 5482:
! 5483: osf3* | osf4* | osf5*)
! 5484: # All OSF/1 code is PIC.
! 5485: lt_cv_prog_cc_wl='-Wl,'
! 5486: lt_cv_prog_cc_static='-non_shared'
! 5487: ;;
! 5488:
! 5489: sco3.2v5*)
! 5490: lt_cv_prog_cc_pic='-Kpic'
! 5491: lt_cv_prog_cc_static='-dn'
! 5492: lt_cv_prog_cc_shlib='-belf'
! 5493: ;;
! 5494:
! 5495: solaris*)
! 5496: lt_cv_prog_cc_pic='-KPIC'
! 5497: lt_cv_prog_cc_static='-Bstatic'
! 5498: lt_cv_prog_cc_wl='-Wl,'
! 5499: ;;
! 5500:
! 5501: sunos4*)
! 5502: lt_cv_prog_cc_pic='-PIC'
! 5503: lt_cv_prog_cc_static='-Bstatic'
! 5504: lt_cv_prog_cc_wl='-Qoption ld '
! 5505: ;;
! 5506:
! 5507: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 5508: lt_cv_prog_cc_pic='-KPIC'
! 5509: lt_cv_prog_cc_static='-Bstatic'
! 5510: lt_cv_prog_cc_wl='-Wl,'
! 5511: ;;
! 5512:
! 5513: uts4*)
! 5514: lt_cv_prog_cc_pic='-pic'
! 5515: lt_cv_prog_cc_static='-Bstatic'
! 5516: ;;
! 5517:
! 5518: sysv4*MP*)
! 5519: if test -d /usr/nec ;then
! 5520: lt_cv_prog_cc_pic='-Kconform_pic'
! 5521: lt_cv_prog_cc_static='-Bstatic'
! 5522: fi
! 5523: ;;
! 5524:
! 5525: *)
! 5526: lt_cv_prog_cc_can_build_shared=no
! 5527: ;;
! 5528: esac
! 5529: fi
! 5530:
! 5531: fi
! 5532:
! 5533: if test -z "$lt_cv_prog_cc_pic"; then
! 5534: echo "$as_me:$LINENO: result: none" >&5
! 5535: echo "${ECHO_T}none" >&6
! 5536: else
! 5537: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
! 5538: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
! 5539:
! 5540: # Check to make sure the pic_flag actually works.
! 5541: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
! 5542: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
! 5543: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
! 5544: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5545: else
! 5546: save_CFLAGS="$CFLAGS"
! 5547: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
! 5548: cat >conftest.$ac_ext <<_ACEOF
! 5549: #line $LINENO "configure"
! 5550: /* confdefs.h. */
! 5551: _ACEOF
! 5552: cat confdefs.h >>conftest.$ac_ext
! 5553: cat >>conftest.$ac_ext <<_ACEOF
! 5554: /* end confdefs.h. */
! 5555:
! 5556: int
! 5557: main ()
! 5558: {
! 5559:
! 5560: ;
! 5561: return 0;
! 5562: }
! 5563: _ACEOF
! 5564: rm -f conftest.$ac_objext
! 5565: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5566: (eval $ac_compile) 2>&5
! 5567: ac_status=$?
! 5568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5569: (exit $ac_status); } &&
! 5570: { ac_try='test -s conftest.$ac_objext'
! 5571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5572: (eval $ac_try) 2>&5
! 5573: ac_status=$?
! 5574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5575: (exit $ac_status); }; }; then
! 5576: case $host_os in
! 5577: hpux9* | hpux10* | hpux11*)
! 5578: # On HP-UX, both CC and GCC only warn that PIC is supported... then
! 5579: # they create non-PIC objects. So, if there were any warnings, we
! 5580: # assume that PIC is not supported.
! 5581: if test -s conftest.err; then
! 5582: lt_cv_prog_cc_pic_works=no
! 5583: else
! 5584: lt_cv_prog_cc_pic_works=yes
! 5585: fi
! 5586: ;;
! 5587: *)
! 5588: lt_cv_prog_cc_pic_works=yes
! 5589: ;;
! 5590: esac
! 5591:
! 5592: else
! 5593: echo "$as_me: failed program was:" >&5
! 5594: sed 's/^/| /' conftest.$ac_ext >&5
! 5595:
! 5596: lt_cv_prog_cc_pic_works=no
! 5597:
! 5598: fi
! 5599: rm -f conftest.$ac_objext conftest.$ac_ext
! 5600: CFLAGS="$save_CFLAGS"
! 5601:
! 5602: fi
! 5603:
! 5604:
! 5605: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
! 5606: lt_cv_prog_cc_pic=
! 5607: lt_cv_prog_cc_can_build_shared=no
! 5608: else
! 5609: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
! 5610: fi
! 5611:
! 5612: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
! 5613: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
! 5614: fi
! 5615:
! 5616: # Check for any special shared library compilation flags.
! 5617: if test -n "$lt_cv_prog_cc_shlib"; then
! 5618: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
! 5619: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
! 5620: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
! 5621: else
! 5622: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
! 5623: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
! 5624: lt_cv_prog_cc_can_build_shared=no
! 5625: fi
! 5626: fi
! 5627:
! 5628: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
! 5629: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
! 5630: if test "${lt_cv_prog_cc_static_works+set}" = set; then
! 5631: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5632: else
! 5633: lt_cv_prog_cc_static_works=no
! 5634: save_LDFLAGS="$LDFLAGS"
! 5635: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
! 5636: cat >conftest.$ac_ext <<_ACEOF
! 5637: #line $LINENO "configure"
! 5638: /* confdefs.h. */
! 5639: _ACEOF
! 5640: cat confdefs.h >>conftest.$ac_ext
! 5641: cat >>conftest.$ac_ext <<_ACEOF
! 5642: /* end confdefs.h. */
! 5643:
! 5644: int
! 5645: main ()
! 5646: {
! 5647:
! 5648: ;
! 5649: return 0;
! 5650: }
! 5651: _ACEOF
! 5652: rm -f conftest.$ac_objext conftest$ac_exeext
! 5653: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5654: (eval $ac_link) 2>&5
! 5655: ac_status=$?
! 5656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5657: (exit $ac_status); } &&
! 5658: { ac_try='test -s conftest$ac_exeext'
! 5659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5660: (eval $ac_try) 2>&5
! 5661: ac_status=$?
! 5662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5663: (exit $ac_status); }; }; then
! 5664: lt_cv_prog_cc_static_works=yes
! 5665: else
! 5666: echo "$as_me: failed program was:" >&5
! 5667: sed 's/^/| /' conftest.$ac_ext >&5
! 5668:
! 5669: fi
! 5670: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5671: LDFLAGS="$save_LDFLAGS"
! 5672:
! 5673: fi
! 5674:
! 5675:
! 5676: # Belt *and* braces to stop my trousers falling down:
! 5677: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
! 5678: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
! 5679: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
! 5680:
! 5681: pic_flag="$lt_cv_prog_cc_pic"
! 5682: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
! 5683: wl="$lt_cv_prog_cc_wl"
! 5684: link_static_flag="$lt_cv_prog_cc_static"
! 5685: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
! 5686: can_build_shared="$lt_cv_prog_cc_can_build_shared"
! 5687:
! 5688:
! 5689: # Check to see if options -o and -c are simultaneously supported by compiler
! 5690: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 5691: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 5692: if test "${lt_cv_compiler_c_o+set}" = set; then
! 5693: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5694: else
! 5695:
! 5696: $rm -r conftest 2>/dev/null
! 5697: mkdir conftest
! 5698: cd conftest
! 5699: echo "int some_variable = 0;" > conftest.$ac_ext
! 5700: mkdir out
! 5701: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 5702: # that will create temporary files in the current directory regardless of
! 5703: # the output directory. Thus, making CWD read-only will cause this test
! 5704: # to fail, enabling locking or at least warning the user not to do parallel
! 5705: # builds.
! 5706: chmod -w .
! 5707: save_CFLAGS="$CFLAGS"
! 5708: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
! 5709: compiler_c_o=no
! 5710: if { (eval echo configure:5710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
! 5711: # The compiler can only warn and ignore the option if not recognized
! 5712: # So say no if there are warnings
! 5713: if test -s out/conftest.err; then
! 5714: lt_cv_compiler_c_o=no
! 5715: else
! 5716: lt_cv_compiler_c_o=yes
! 5717: fi
! 5718: else
! 5719: # Append any errors to the config.log.
! 5720: cat out/conftest.err 1>&5
! 5721: lt_cv_compiler_c_o=no
! 5722: fi
! 5723: CFLAGS="$save_CFLAGS"
! 5724: chmod u+w .
! 5725: $rm conftest* out/*
! 5726: rmdir out
! 5727: cd ..
! 5728: rmdir conftest
! 5729: $rm -r conftest 2>/dev/null
! 5730:
! 5731: fi
! 5732:
! 5733: compiler_c_o=$lt_cv_compiler_c_o
! 5734: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
! 5735: echo "${ECHO_T}$compiler_c_o" >&6
! 5736:
! 5737: if test x"$compiler_c_o" = x"yes"; then
! 5738: # Check to see if we can write to a .lo
! 5739: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
! 5740: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
! 5741: if test "${lt_cv_compiler_o_lo+set}" = set; then
! 5742: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5743: else
! 5744:
! 5745: lt_cv_compiler_o_lo=no
! 5746: save_CFLAGS="$CFLAGS"
! 5747: CFLAGS="$CFLAGS -c -o conftest.lo"
! 5748: save_objext="$ac_objext"
! 5749: ac_objext=lo
! 5750: cat >conftest.$ac_ext <<_ACEOF
! 5751: #line $LINENO "configure"
! 5752: /* confdefs.h. */
! 5753: _ACEOF
! 5754: cat confdefs.h >>conftest.$ac_ext
! 5755: cat >>conftest.$ac_ext <<_ACEOF
! 5756: /* end confdefs.h. */
! 5757:
! 5758: int
! 5759: main ()
! 5760: {
! 5761: int some_variable = 0;
! 5762: ;
! 5763: return 0;
! 5764: }
! 5765: _ACEOF
! 5766: rm -f conftest.$ac_objext
! 5767: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5768: (eval $ac_compile) 2>&5
! 5769: ac_status=$?
! 5770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5771: (exit $ac_status); } &&
! 5772: { ac_try='test -s conftest.$ac_objext'
! 5773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5774: (eval $ac_try) 2>&5
! 5775: ac_status=$?
! 5776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5777: (exit $ac_status); }; }; then
! 5778: # The compiler can only warn and ignore the option if not recognized
! 5779: # So say no if there are warnings
! 5780: if test -s conftest.err; then
! 5781: lt_cv_compiler_o_lo=no
! 5782: else
! 5783: lt_cv_compiler_o_lo=yes
! 5784: fi
! 5785:
! 5786: else
! 5787: echo "$as_me: failed program was:" >&5
! 5788: sed 's/^/| /' conftest.$ac_ext >&5
! 5789:
! 5790: fi
! 5791: rm -f conftest.$ac_objext conftest.$ac_ext
! 5792: ac_objext="$save_objext"
! 5793: CFLAGS="$save_CFLAGS"
! 5794:
! 5795: fi
! 5796:
! 5797: compiler_o_lo=$lt_cv_compiler_o_lo
! 5798: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
! 5799: echo "${ECHO_T}$compiler_o_lo" >&6
! 5800: else
! 5801: compiler_o_lo=no
! 5802: fi
! 5803:
! 5804: # Check to see if we can do hard links to lock some files if needed
! 5805: hard_links="nottested"
! 5806: if test "$compiler_c_o" = no && test "$need_locks" != no; then
! 5807: # do not overwrite the value of need_locks provided by the user
! 5808: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 5809: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 5810: hard_links=yes
! 5811: $rm conftest*
! 5812: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 5813: touch conftest.a
! 5814: ln conftest.a conftest.b 2>&5 || hard_links=no
! 5815: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 5816: echo "$as_me:$LINENO: result: $hard_links" >&5
! 5817: echo "${ECHO_T}$hard_links" >&6
! 5818: if test "$hard_links" = no; then
! 5819: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 5820: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 5821: need_locks=warn
! 5822: fi
! 5823: else
! 5824: need_locks=no
! 5825: fi
! 5826:
! 5827: if test "$GCC" = yes; then
! 5828: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
! 5829: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 5830: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 5831: echo "int some_variable = 0;" > conftest.$ac_ext
! 5832: save_CFLAGS="$CFLAGS"
! 5833: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
! 5834: compiler_rtti_exceptions=no
! 5835: cat >conftest.$ac_ext <<_ACEOF
! 5836: #line $LINENO "configure"
! 5837: /* confdefs.h. */
! 5838: _ACEOF
! 5839: cat confdefs.h >>conftest.$ac_ext
! 5840: cat >>conftest.$ac_ext <<_ACEOF
! 5841: /* end confdefs.h. */
! 5842:
! 5843: int
! 5844: main ()
! 5845: {
! 5846: int some_variable = 0;
! 5847: ;
! 5848: return 0;
! 5849: }
! 5850: _ACEOF
! 5851: rm -f conftest.$ac_objext
! 5852: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5853: (eval $ac_compile) 2>&5
! 5854: ac_status=$?
! 5855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5856: (exit $ac_status); } &&
! 5857: { ac_try='test -s conftest.$ac_objext'
! 5858: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5859: (eval $ac_try) 2>&5
! 5860: ac_status=$?
! 5861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5862: (exit $ac_status); }; }; then
! 5863: # The compiler can only warn and ignore the option if not recognized
! 5864: # So say no if there are warnings
! 5865: if test -s conftest.err; then
! 5866: compiler_rtti_exceptions=no
! 5867: else
! 5868: compiler_rtti_exceptions=yes
! 5869: fi
! 5870:
! 5871: else
! 5872: echo "$as_me: failed program was:" >&5
! 5873: sed 's/^/| /' conftest.$ac_ext >&5
! 5874:
! 5875: fi
! 5876: rm -f conftest.$ac_objext conftest.$ac_ext
! 5877: CFLAGS="$save_CFLAGS"
! 5878: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
! 5879: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
! 5880:
! 5881: if test "$compiler_rtti_exceptions" = "yes"; then
! 5882: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
! 5883: else
! 5884: no_builtin_flag=' -fno-builtin'
! 5885: fi
! 5886: fi
! 5887:
! 5888: # See if the linker supports building shared libraries.
! 5889: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
! 5890: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
! 5891:
! 5892: allow_undefined_flag=
! 5893: no_undefined_flag=
! 5894: need_lib_prefix=unknown
! 5895: need_version=unknown
! 5896: # when you set need_version to no, make sure it does not cause -set_version
! 5897: # flags to be left without arguments
! 5898: archive_cmds=
! 5899: archive_expsym_cmds=
! 5900: old_archive_from_new_cmds=
! 5901: old_archive_from_expsyms_cmds=
! 5902: export_dynamic_flag_spec=
! 5903: whole_archive_flag_spec=
! 5904: thread_safe_flag_spec=
! 5905: hardcode_into_libs=no
! 5906: hardcode_libdir_flag_spec=
! 5907: hardcode_libdir_separator=
! 5908: hardcode_direct=no
! 5909: hardcode_minus_L=no
! 5910: hardcode_shlibpath_var=unsupported
! 5911: runpath_var=
! 5912: link_all_deplibs=unknown
! 5913: always_export_symbols=no
! 5914: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 5915: # include_expsyms should be a list of space-separated symbols to be *always*
! 5916: # included in the symbol list
! 5917: include_expsyms=
! 5918: # exclude_expsyms can be an egrep regular expression of symbols to exclude
! 5919: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 5920: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 5921: # as well as any symbol that contains `d'.
! 5922: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 5923: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 5924: # platforms (ab)use it in PIC code, but their linkers get confused if
! 5925: # the symbol is explicitly referenced. Since portable code cannot
! 5926: # rely on this symbol name, it's probably fine to never include it in
! 5927: # preloaded symbol tables.
! 5928: extract_expsyms_cmds=
! 5929:
! 5930: case $host_os in
! 5931: cygwin* | mingw* | pw32*)
! 5932: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 5933: # When not using gcc, we currently assume that we are using
! 5934: # Microsoft Visual C++.
! 5935: if test "$GCC" != yes; then
! 5936: with_gnu_ld=no
! 5937: fi
! 5938: ;;
! 5939: openbsd*)
! 5940: with_gnu_ld=no
! 5941: ;;
! 5942: esac
! 5943:
! 5944: ld_shlibs=yes
! 5945: if test "$with_gnu_ld" = yes; then
! 5946: # If archive_cmds runs LD, not CC, wlarc should be empty
! 5947: wlarc='${wl}'
! 5948:
! 5949: # See if GNU ld supports shared libraries.
! 5950: case $host_os in
! 5951: aix3* | aix4* | aix5*)
! 5952: # On AIX, the GNU linker is very broken
! 5953: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
! 5954: ld_shlibs=no
! 5955: cat <<EOF 1>&2
! 5956:
! 5957: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 5958: *** to be unable to reliably create shared libraries on AIX.
! 5959: *** Therefore, libtool is disabling shared libraries support. If you
! 5960: *** really care for shared libraries, you may want to modify your PATH
! 5961: *** so that a non-GNU linker is found, and then restart.
! 5962:
! 5963: EOF
! 5964: ;;
! 5965:
! 5966: amigaos*)
! 5967: 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)'
! 5968: hardcode_libdir_flag_spec='-L$libdir'
! 5969: hardcode_minus_L=yes
! 5970:
! 5971: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 5972: # that the semantics of dynamic libraries on AmigaOS, at least up
! 5973: # to version 4, is to share data among multiple programs linked
! 5974: # with the same dynamic library. Since this doesn't match the
! 5975: # behavior of shared libraries on other platforms, we can use
! 5976: # them.
! 5977: ld_shlibs=no
! 5978: ;;
! 5979:
! 5980: beos*)
! 5981: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 5982: allow_undefined_flag=unsupported
! 5983: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 5984: # support --undefined. This deserves some investigation. FIXME
! 5985: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 5986: else
! 5987: ld_shlibs=no
! 5988: fi
! 5989: ;;
! 5990:
! 5991: cygwin* | mingw* | pw32*)
! 5992: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 5993: # no search path for DLLs.
! 5994: hardcode_libdir_flag_spec='-L$libdir'
! 5995: allow_undefined_flag=unsupported
! 5996: always_export_symbols=yes
! 5997:
! 5998: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
! 5999: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
! 6000: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
! 6001: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
! 6002: else $CC -o impgen impgen.c ; fi)~
! 6003: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
! 6004:
! 6005: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
! 6006:
! 6007: # cygwin and mingw dlls have different entry points and sets of symbols
! 6008: # to exclude.
! 6009: # FIXME: what about values for MSVC?
! 6010: dll_entry=__cygwin_dll_entry@12
! 6011: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
! 6012: case $host_os in
! 6013: mingw*)
! 6014: # mingw values
! 6015: dll_entry=_DllMainCRTStartup@12
! 6016: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
! 6017: ;;
! 6018: esac
! 6019:
! 6020: # mingw and cygwin differ, and it's simplest to just exclude the union
! 6021: # of the two symbol sets.
! 6022: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
! 6023:
! 6024: # recent cygwin and mingw systems supply a stub DllMain which the user
! 6025: # can override, but on older systems we have to supply one (in ltdll.c)
! 6026: if test "x$lt_cv_need_dllmain" = "xyes"; then
! 6027: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
! 6028: 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~
! 6029: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
! 6030: else
! 6031: ltdll_obj=
! 6032: ltdll_cmds=
! 6033: fi
! 6034:
! 6035: # Extract the symbol export list from an `--export-all' def file,
! 6036: # then regenerate the def file from the symbol export list, so that
! 6037: # the compiled dll only exports the symbol export list.
! 6038: # Be careful not to strip the DATA tag left be newer dlltools.
! 6039: export_symbols_cmds="$ltdll_cmds"'
! 6040: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
! 6041: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
! 6042:
! 6043: # If the export-symbols file already is a .def file (1st line
! 6044: # is EXPORTS), use it as is.
! 6045: # If DATA tags from a recent dlltool are present, honour them!
! 6046: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
! 6047: cp $export_symbols $output_objdir/$soname-def;
! 6048: else
! 6049: echo EXPORTS > $output_objdir/$soname-def;
! 6050: _lt_hint=1;
! 6051: cat $export_symbols | while read symbol; do
! 6052: set dummy \$symbol;
! 6053: case \$# in
! 6054: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
! 6055: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
! 6056: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
! 6057: esac;
! 6058: _lt_hint=`expr 1 + \$_lt_hint`;
! 6059: done;
! 6060: fi~
! 6061: '"$ltdll_cmds"'
! 6062: $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~
! 6063: $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~
! 6064: $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~
! 6065: $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~
! 6066: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
! 6067: ;;
! 6068:
! 6069: netbsd*)
! 6070: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6071: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 6072: wlarc=
! 6073: else
! 6074: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6075: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6076: fi
! 6077: ;;
! 6078:
! 6079: solaris* | sysv5*)
! 6080: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
! 6081: ld_shlibs=no
! 6082: cat <<EOF 1>&2
! 6083:
! 6084: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 6085: *** create shared libraries on Solaris systems. Therefore, libtool
! 6086: *** is disabling shared libraries support. We urge you to upgrade GNU
! 6087: *** binutils to release 2.9.1 or newer. Another option is to modify
! 6088: *** your PATH or compiler configuration so that the native linker is
! 6089: *** used, and then restart.
! 6090:
! 6091: EOF
! 6092: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 6093: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6094: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6095: else
! 6096: ld_shlibs=no
! 6097: fi
! 6098: ;;
! 6099:
! 6100: sunos4*)
! 6101: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6102: wlarc=
! 6103: hardcode_direct=yes
! 6104: hardcode_shlibpath_var=no
! 6105: ;;
! 6106:
! 6107: *)
! 6108: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 6109: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 6110: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 6111: else
! 6112: ld_shlibs=no
! 6113: fi
! 6114: ;;
! 6115: esac
! 6116:
! 6117: if test "$ld_shlibs" = yes; then
! 6118: runpath_var=LD_RUN_PATH
! 6119: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 6120: export_dynamic_flag_spec='${wl}--export-dynamic'
! 6121: case $host_os in
! 6122: cygwin* | mingw* | pw32*)
! 6123: # dlltool doesn't understand --whole-archive et. al.
! 6124: whole_archive_flag_spec=
! 6125: ;;
! 6126: *)
! 6127: # ancient GNU ld didn't support --whole-archive et. al.
! 6128: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
! 6129: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 6130: else
! 6131: whole_archive_flag_spec=
! 6132: fi
! 6133: ;;
! 6134: esac
! 6135: fi
! 6136: else
! 6137: # PORTME fill in a description of your system's linker (not GNU ld)
! 6138: case $host_os in
! 6139: aix3*)
! 6140: allow_undefined_flag=unsupported
! 6141: always_export_symbols=yes
! 6142: 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'
! 6143: # Note: this linker hardcodes the directories in LIBPATH if there
! 6144: # are no directories specified by -L.
! 6145: hardcode_minus_L=yes
! 6146: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 6147: # Neither direct hardcoding nor static linking is supported with a
! 6148: # broken collect2.
! 6149: hardcode_direct=unsupported
! 6150: fi
! 6151: ;;
! 6152:
! 6153: aix4* | aix5*)
! 6154: if test "$host_cpu" = ia64; then
! 6155: # On IA64, the linker does run time linking by default, so we don't
! 6156: # have to do anything special.
! 6157: aix_use_runtimelinking=no
! 6158: exp_sym_flag='-Bexport'
! 6159: no_entry_flag=""
! 6160: else
! 6161: aix_use_runtimelinking=no
! 6162:
! 6163: # Test if we are trying to use run time linking or normal
! 6164: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 6165: # need to do runtime linking.
! 6166: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 6167: for ld_flag in $LDFLAGS; do
! 6168: case $ld_flag in
! 6169: *-brtl*)
! 6170: aix_use_runtimelinking=yes
! 6171: break
! 6172: ;;
! 6173: esac
! 6174: done
! 6175: esac
! 6176:
! 6177: exp_sym_flag='-bexport'
! 6178: no_entry_flag='-bnoentry'
! 6179: fi
! 6180:
! 6181: # When large executables or shared objects are built, AIX ld can
! 6182: # have problems creating the table of contents. If linking a library
! 6183: # or program results in "error TOC overflow" add -mminimal-toc to
! 6184: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 6185: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 6186:
! 6187: hardcode_direct=yes
! 6188: archive_cmds=''
! 6189: hardcode_libdir_separator=':'
! 6190: if test "$GCC" = yes; then
! 6191: case $host_os in aix4.[012]|aix4.[012].*)
! 6192: collect2name=`${CC} -print-prog-name=collect2`
! 6193: if test -f "$collect2name" && \
! 6194: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 6195: then
! 6196: # We have reworked collect2
! 6197: hardcode_direct=yes
! 6198: else
! 6199: # We have old collect2
! 6200: hardcode_direct=unsupported
! 6201: # It fails to find uninstalled libraries when the uninstalled
! 6202: # path is not listed in the libpath. Setting hardcode_minus_L
! 6203: # to unsupported forces relinking
! 6204: hardcode_minus_L=yes
! 6205: hardcode_libdir_flag_spec='-L$libdir'
! 6206: hardcode_libdir_separator=
! 6207: fi
! 6208: esac
! 6209:
! 6210: shared_flag='-shared'
! 6211: else
! 6212: # not using gcc
! 6213: if test "$host_cpu" = ia64; then
! 6214: shared_flag='${wl}-G'
! 6215: else
! 6216: if test "$aix_use_runtimelinking" = yes; then
! 6217: shared_flag='${wl}-G'
! 6218: else
! 6219: shared_flag='${wl}-bM:SRE'
! 6220: fi
! 6221: fi
! 6222: fi
! 6223:
! 6224: # It seems that -bexpall can do strange things, so it is better to
! 6225: # generate a list of symbols to export.
! 6226: always_export_symbols=yes
! 6227: if test "$aix_use_runtimelinking" = yes; then
! 6228: # Warning - without using the other runtime loading flags (-brtl),
! 6229: # -berok will link without error, but may produce a broken library.
! 6230: allow_undefined_flag='-berok'
! 6231: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
! 6232: 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"
! 6233: else
! 6234: if test "$host_cpu" = ia64; then
! 6235: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 6236: allow_undefined_flag="-z nodefs"
! 6237: 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"
! 6238: else
! 6239: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
! 6240: # Warning - without using the other run time loading flags,
! 6241: # -berok will link without error, but may produce a broken library.
! 6242: allow_undefined_flag='${wl}-berok'
! 6243: # This is a bit strange, but is similar to how AIX traditionally builds
! 6244: # it's shared libraries.
! 6245: 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'
! 6246: fi
! 6247: fi
! 6248: ;;
! 6249:
! 6250: amigaos*)
! 6251: 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)'
! 6252: hardcode_libdir_flag_spec='-L$libdir'
! 6253: hardcode_minus_L=yes
! 6254: # see comment about different semantics on the GNU ld section
! 6255: ld_shlibs=no
! 6256: ;;
! 6257:
! 6258: cygwin* | mingw* | pw32*)
! 6259: # When not using gcc, we currently assume that we are using
! 6260: # Microsoft Visual C++.
! 6261: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 6262: # no search path for DLLs.
! 6263: hardcode_libdir_flag_spec=' '
! 6264: allow_undefined_flag=unsupported
! 6265: # Tell ltmain to make .lib files, not .a files.
! 6266: libext=lib
! 6267: # FIXME: Setting linknames here is a bad hack.
! 6268: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 6269: # The linker will automatically build a .lib file if we build a DLL.
! 6270: old_archive_from_new_cmds='true'
! 6271: # FIXME: Should let the user specify the lib program.
! 6272: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 6273: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 6274: ;;
! 6275:
! 6276: darwin* | rhapsody*)
! 6277: case "$host_os" in
! 6278: rhapsody* | darwin1.[012])
! 6279: allow_undefined_flag='-undefined suppress'
! 6280: ;;
! 6281: *) # Darwin 1.3 on
! 6282: allow_undefined_flag='-flat_namespace -undefined suppress'
! 6283: ;;
! 6284: esac
! 6285: # FIXME: Relying on posixy $() will cause problems for
! 6286: # cross-compilation, but unfortunately the echo tests do not
! 6287: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 6288: # `"' quotes if we put them in here... so don't!
! 6289: 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)'
! 6290: # We need to add '_' to the symbols in $export_symbols first
! 6291: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
! 6292: hardcode_direct=yes
! 6293: hardcode_shlibpath_var=no
! 6294: whole_archive_flag_spec='-all_load $convenience'
! 6295: ;;
! 6296:
! 6297: freebsd1*)
! 6298: ld_shlibs=no
! 6299: ;;
! 6300:
! 6301: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 6302: # support. Future versions do this automatically, but an explicit c++rt0.o
! 6303: # does not break anything, and helps significantly (at the cost of a little
! 6304: # extra space).
! 6305: freebsd2.2*)
! 6306: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 6307: hardcode_libdir_flag_spec='-R$libdir'
! 6308: hardcode_direct=yes
! 6309: hardcode_shlibpath_var=no
! 6310: ;;
! 6311:
! 6312: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 6313: freebsd2*)
! 6314: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6315: hardcode_direct=yes
! 6316: hardcode_minus_L=yes
! 6317: hardcode_shlibpath_var=no
! 6318: ;;
! 6319:
! 6320: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 6321: freebsd*)
! 6322: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 6323: hardcode_libdir_flag_spec='-R$libdir'
! 6324: hardcode_direct=yes
! 6325: hardcode_shlibpath_var=no
! 6326: ;;
! 6327:
! 6328: hpux9* | hpux10* | hpux11*)
! 6329: case $host_os in
! 6330: 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' ;;
! 6331: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
! 6332: esac
! 6333: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 6334: hardcode_libdir_separator=:
! 6335: hardcode_direct=yes
! 6336: hardcode_minus_L=yes # Not in the search PATH, but as the default
! 6337: # location of the library.
! 6338: export_dynamic_flag_spec='${wl}-E'
! 6339: ;;
! 6340:
! 6341: irix5* | irix6* | nonstopux*)
! 6342: if test "$GCC" = yes; then
! 6343: 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'
! 6344: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6345: else
! 6346: 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'
! 6347: hardcode_libdir_flag_spec='-rpath $libdir'
! 6348: fi
! 6349: hardcode_libdir_separator=:
! 6350: link_all_deplibs=yes
! 6351: ;;
! 6352:
! 6353: netbsd*)
! 6354: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6355: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 6356: else
! 6357: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 6358: fi
! 6359: hardcode_libdir_flag_spec='-R$libdir'
! 6360: hardcode_direct=yes
! 6361: hardcode_shlibpath_var=no
! 6362: ;;
! 6363:
! 6364: newsos6)
! 6365: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6366: hardcode_direct=yes
! 6367: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6368: hardcode_libdir_separator=:
! 6369: hardcode_shlibpath_var=no
! 6370: ;;
! 6371:
! 6372: openbsd*)
! 6373: hardcode_direct=yes
! 6374: hardcode_shlibpath_var=no
! 6375: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 6376: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 6377: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 6378: export_dynamic_flag_spec='${wl}-E'
! 6379: else
! 6380: case "$host_os" in
! 6381: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 6382: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 6383: hardcode_libdir_flag_spec='-R$libdir'
! 6384: ;;
! 6385: *)
! 6386: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 6387: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 6388: ;;
! 6389: esac
! 6390: fi
! 6391: ;;
! 6392:
! 6393: os2*)
! 6394: hardcode_libdir_flag_spec='-L$libdir'
! 6395: hardcode_minus_L=yes
! 6396: allow_undefined_flag=unsupported
! 6397: 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'
! 6398: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 6399: ;;
! 6400:
! 6401: osf3*)
! 6402: if test "$GCC" = yes; then
! 6403: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 6404: 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'
! 6405: else
! 6406: allow_undefined_flag=' -expect_unresolved \*'
! 6407: 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'
! 6408: fi
! 6409: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6410: hardcode_libdir_separator=:
! 6411: ;;
! 6412:
! 6413: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 6414: if test "$GCC" = yes; then
! 6415: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 6416: 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'
! 6417: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 6418: else
! 6419: allow_undefined_flag=' -expect_unresolved \*'
! 6420: 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'
! 6421: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 6422: $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'
! 6423:
! 6424: #Both c and cxx compiler support -rpath directly
! 6425: hardcode_libdir_flag_spec='-rpath $libdir'
! 6426: fi
! 6427: hardcode_libdir_separator=:
! 6428: ;;
! 6429:
! 6430: sco3.2v5*)
! 6431: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6432: hardcode_shlibpath_var=no
! 6433: runpath_var=LD_RUN_PATH
! 6434: hardcode_runpath_var=yes
! 6435: export_dynamic_flag_spec='${wl}-Bexport'
! 6436: ;;
! 6437:
! 6438: solaris*)
! 6439: # gcc --version < 3.0 without binutils cannot create self contained
! 6440: # shared libraries reliably, requiring libgcc.a to resolve some of
! 6441: # the object symbols generated in some cases. Libraries that use
! 6442: # assert need libgcc.a to resolve __eprintf, for example. Linking
! 6443: # a copy of libgcc.a into every shared library to guarantee resolving
! 6444: # such symbols causes other problems: According to Tim Van Holder
! 6445: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
! 6446: # (to the application) exception stack for one thing.
! 6447: no_undefined_flag=' -z defs'
! 6448: if test "$GCC" = yes; then
! 6449: case `$CC --version 2>/dev/null` in
! 6450: [12].*)
! 6451: cat <<EOF 1>&2
! 6452:
! 6453: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
! 6454: *** create self contained shared libraries on Solaris systems, without
! 6455: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
! 6456: *** -no-undefined support, which will at least allow you to build shared
! 6457: *** libraries. However, you may find that when you link such libraries
! 6458: *** into an application without using GCC, you have to manually add
! 6459: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
! 6460: *** upgrade to a newer version of GCC. Another option is to rebuild your
! 6461: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
! 6462:
! 6463: EOF
! 6464: no_undefined_flag=
! 6465: ;;
! 6466: esac
! 6467: fi
! 6468: # $CC -shared without GNU ld will not create a library from C++
! 6469: # object files and a static libstdc++, better avoid it by now
! 6470: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6471: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 6472: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 6473: hardcode_libdir_flag_spec='-R$libdir'
! 6474: hardcode_shlibpath_var=no
! 6475: case $host_os in
! 6476: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 6477: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 6478: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
! 6479: esac
! 6480: link_all_deplibs=yes
! 6481: ;;
! 6482:
! 6483: sunos4*)
! 6484: if test "x$host_vendor" = xsequent; then
! 6485: # Use $CC to link under sequent, because it throws in some extra .o
! 6486: # files that make .init and .fini sections work.
! 6487: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 6488: else
! 6489: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 6490: fi
! 6491: hardcode_libdir_flag_spec='-L$libdir'
! 6492: hardcode_direct=yes
! 6493: hardcode_minus_L=yes
! 6494: hardcode_shlibpath_var=no
! 6495: ;;
! 6496:
! 6497: sysv4)
! 6498: case $host_vendor in
! 6499: sni)
! 6500: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6501: hardcode_direct=yes # is this really true???
! 6502: ;;
! 6503: siemens)
! 6504: ## LD is ld it makes a PLAMLIB
! 6505: ## CC just makes a GrossModule.
! 6506: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 6507: reload_cmds='$CC -r -o $output$reload_objs'
! 6508: hardcode_direct=no
! 6509: ;;
! 6510: motorola)
! 6511: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6512: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 6513: ;;
! 6514: esac
! 6515: runpath_var='LD_RUN_PATH'
! 6516: hardcode_shlibpath_var=no
! 6517: ;;
! 6518:
! 6519: sysv4.3*)
! 6520: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6521: hardcode_shlibpath_var=no
! 6522: export_dynamic_flag_spec='-Bexport'
! 6523: ;;
! 6524:
! 6525: sysv5*)
! 6526: no_undefined_flag=' -z text'
! 6527: # $CC -shared without GNU ld will not create a library from C++
! 6528: # object files and a static libstdc++, better avoid it by now
! 6529: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6530: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 6531: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 6532: hardcode_libdir_flag_spec=
! 6533: hardcode_shlibpath_var=no
! 6534: runpath_var='LD_RUN_PATH'
! 6535: ;;
! 6536:
! 6537: uts4*)
! 6538: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6539: hardcode_libdir_flag_spec='-L$libdir'
! 6540: hardcode_shlibpath_var=no
! 6541: ;;
! 6542:
! 6543: dgux*)
! 6544: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6545: hardcode_libdir_flag_spec='-L$libdir'
! 6546: hardcode_shlibpath_var=no
! 6547: ;;
! 6548:
! 6549: sysv4*MP*)
! 6550: if test -d /usr/nec; then
! 6551: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 6552: hardcode_shlibpath_var=no
! 6553: runpath_var=LD_RUN_PATH
! 6554: hardcode_runpath_var=yes
! 6555: ld_shlibs=yes
! 6556: fi
! 6557: ;;
! 6558:
! 6559: sysv4.2uw2*)
! 6560: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 6561: hardcode_direct=yes
! 6562: hardcode_minus_L=no
! 6563: hardcode_shlibpath_var=no
! 6564: hardcode_runpath_var=yes
! 6565: runpath_var=LD_RUN_PATH
! 6566: ;;
! 6567:
! 6568: sysv5uw7* | unixware7*)
! 6569: no_undefined_flag='${wl}-z ${wl}text'
! 6570: if test "$GCC" = yes; then
! 6571: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 6572: else
! 6573: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 6574: fi
! 6575: runpath_var='LD_RUN_PATH'
! 6576: hardcode_shlibpath_var=no
! 6577: ;;
! 6578:
! 6579: *)
! 6580: ld_shlibs=no
! 6581: ;;
! 6582: esac
! 6583: fi
! 6584: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 6585: echo "${ECHO_T}$ld_shlibs" >&6
! 6586: test "$ld_shlibs" = no && can_build_shared=no
! 6587:
! 6588: # Check hardcoding attributes.
! 6589: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 6590: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 6591: hardcode_action=
! 6592: if test -n "$hardcode_libdir_flag_spec" || \
! 6593: test -n "$runpath_var"; then
! 6594:
! 6595: # We can hardcode non-existant directories.
! 6596: if test "$hardcode_direct" != no &&
! 6597: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 6598: # have to relink, otherwise we might link with an installed library
! 6599: # when we should be linking with a yet-to-be-installed one
! 6600: ## test "$hardcode_shlibpath_var" != no &&
! 6601: test "$hardcode_minus_L" != no; then
! 6602: # Linking always hardcodes the temporary library directory.
! 6603: hardcode_action=relink
! 6604: else
! 6605: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 6606: hardcode_action=immediate
! 6607: fi
! 6608: else
! 6609: # We cannot hardcode anything, or else we can only hardcode existing
! 6610: # directories.
! 6611: hardcode_action=unsupported
! 6612: fi
! 6613: echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 6614: echo "${ECHO_T}$hardcode_action" >&6
! 6615:
! 6616: striplib=
! 6617: old_striplib=
! 6618: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 6619: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 6620: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 6621: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 6622: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 6623: echo "$as_me:$LINENO: result: yes" >&5
! 6624: echo "${ECHO_T}yes" >&6
! 6625: else
! 6626: echo "$as_me:$LINENO: result: no" >&5
! 6627: echo "${ECHO_T}no" >&6
! 6628: fi
! 6629:
! 6630: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 6631: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 6632:
! 6633: # PORTME Fill in your ld.so characteristics
! 6634: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 6635: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 6636: library_names_spec=
! 6637: libname_spec='lib$name'
! 6638: soname_spec=
! 6639: postinstall_cmds=
! 6640: postuninstall_cmds=
! 6641: finish_cmds=
! 6642: finish_eval=
! 6643: shlibpath_var=
! 6644: shlibpath_overrides_runpath=unknown
! 6645: version_type=none
! 6646: dynamic_linker="$host_os ld.so"
! 6647: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 6648: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 6649:
! 6650: case $host_os in
! 6651: aix3*)
! 6652: version_type=linux
! 6653: library_names_spec='${libname}${release}.so$versuffix $libname.a'
! 6654: shlibpath_var=LIBPATH
! 6655:
! 6656: # AIX has no versioning support, so we append a major version to the name.
! 6657: soname_spec='${libname}${release}.so$major'
! 6658: ;;
! 6659:
! 6660: aix4* | aix5*)
! 6661: version_type=linux
! 6662: need_lib_prefix=no
! 6663: need_version=no
! 6664: hardcode_into_libs=yes
! 6665: if test "$host_cpu" = ia64; then
! 6666: # AIX 5 supports IA64
! 6667: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
! 6668: shlibpath_var=LD_LIBRARY_PATH
! 6669: else
! 6670: # With GCC up to 2.95.x, collect2 would create an import file
! 6671: # for dependence libraries. The import file would start with
! 6672: # the line `#! .'. This would cause the generated library to
! 6673: # depend on `.', always an invalid library. This was fixed in
! 6674: # development snapshots of GCC prior to 3.0.
! 6675: case $host_os in
! 6676: aix4 | aix4.[01] | aix4.[01].*)
! 6677: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 6678: echo ' yes '
! 6679: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 6680: :
! 6681: else
! 6682: can_build_shared=no
! 6683: fi
! 6684: ;;
! 6685: esac
! 6686: # AIX (on Power*) has no versioning support, so currently we can
! 6687: # not hardcode correct soname into executable. Probably we can
! 6688: # add versioning support to collect2, so additional links can
! 6689: # be useful in future.
! 6690: if test "$aix_use_runtimelinking" = yes; then
! 6691: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 6692: # instead of lib<name>.a to let people know that these are not
! 6693: # typical AIX shared libraries.
! 6694: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6695: else
! 6696: # We preserve .a as extension for shared libraries through AIX4.2
! 6697: # and later when we are not doing run time linking.
! 6698: library_names_spec='${libname}${release}.a $libname.a'
! 6699: soname_spec='${libname}${release}.so$major'
! 6700: fi
! 6701: shlibpath_var=LIBPATH
! 6702: fi
! 6703: hardcode_into_libs=yes
! 6704: ;;
! 6705:
! 6706: amigaos*)
! 6707: library_names_spec='$libname.ixlibrary $libname.a'
! 6708: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 6709: 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'
! 6710: ;;
! 6711:
! 6712: beos*)
! 6713: library_names_spec='${libname}.so'
! 6714: dynamic_linker="$host_os ld.so"
! 6715: shlibpath_var=LIBRARY_PATH
! 6716: ;;
! 6717:
! 6718: bsdi4*)
! 6719: version_type=linux
! 6720: need_version=no
! 6721: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6722: soname_spec='${libname}${release}.so$major'
! 6723: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 6724: shlibpath_var=LD_LIBRARY_PATH
! 6725: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 6726: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 6727: export_dynamic_flag_spec=-rdynamic
! 6728: # the default ld.so.conf also contains /usr/contrib/lib and
! 6729: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 6730: # libtool to hard-code these into programs
! 6731: ;;
! 6732:
! 6733: cygwin* | mingw* | pw32*)
! 6734: version_type=windows
! 6735: need_version=no
! 6736: need_lib_prefix=no
! 6737: case $GCC,$host_os in
! 6738: yes,cygwin*)
! 6739: library_names_spec='$libname.dll.a'
! 6740: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 6741: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
! 6742: dldir=$destdir/`dirname \$dlpath`~
! 6743: test -d \$dldir || mkdir -p \$dldir~
! 6744: $install_prog .libs/$dlname \$dldir/$dlname'
! 6745: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 6746: dlpath=$dir/\$dldll~
! 6747: $rm \$dlpath'
! 6748: ;;
! 6749: yes,mingw*)
! 6750: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 6751: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
! 6752: ;;
! 6753: yes,pw32*)
! 6754: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
! 6755: ;;
! 6756: *)
! 6757: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
! 6758: ;;
! 6759: esac
! 6760: dynamic_linker='Win32 ld.exe'
! 6761: # FIXME: first we should search . and the directory the executable is in
! 6762: shlibpath_var=PATH
! 6763: ;;
! 6764:
! 6765: darwin* | rhapsody*)
! 6766: dynamic_linker="$host_os dyld"
! 6767: version_type=darwin
! 6768: need_lib_prefix=no
! 6769: need_version=no
! 6770: # FIXME: Relying on posixy $() will cause problems for
! 6771: # cross-compilation, but unfortunately the echo tests do not
! 6772: # yet detect zsh echo's removal of \ escapes.
! 6773: 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)'
! 6774: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
! 6775: shlibpath_overrides_runpath=yes
! 6776: shlibpath_var=DYLD_LIBRARY_PATH
! 6777: ;;
! 6778:
! 6779: freebsd1*)
! 6780: dynamic_linker=no
! 6781: ;;
! 6782:
! 6783: freebsd*)
! 6784: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 6785: version_type=freebsd-$objformat
! 6786: case $version_type in
! 6787: freebsd-elf*)
! 6788: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 6789: need_version=no
! 6790: need_lib_prefix=no
! 6791: ;;
! 6792: freebsd-*)
! 6793: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
! 6794: need_version=yes
! 6795: ;;
! 6796: esac
! 6797: shlibpath_var=LD_LIBRARY_PATH
! 6798: case $host_os in
! 6799: freebsd2*)
! 6800: shlibpath_overrides_runpath=yes
! 6801: ;;
! 6802: *)
! 6803: shlibpath_overrides_runpath=no
! 6804: hardcode_into_libs=yes
! 6805: ;;
! 6806: esac
! 6807: ;;
! 6808:
! 6809: gnu*)
! 6810: version_type=linux
! 6811: need_lib_prefix=no
! 6812: need_version=no
! 6813: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
! 6814: soname_spec='${libname}${release}.so$major'
! 6815: shlibpath_var=LD_LIBRARY_PATH
! 6816: hardcode_into_libs=yes
! 6817: ;;
! 6818:
! 6819: hpux9* | hpux10* | hpux11*)
! 6820: # Give a soname corresponding to the major version so that dld.sl refuses to
! 6821: # link against other versions.
! 6822: dynamic_linker="$host_os dld.sl"
! 6823: version_type=sunos
! 6824: need_lib_prefix=no
! 6825: need_version=no
! 6826: shlibpath_var=SHLIB_PATH
! 6827: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 6828: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
! 6829: soname_spec='${libname}${release}.sl$major'
! 6830: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 6831: postinstall_cmds='chmod 555 $lib'
! 6832: ;;
! 6833:
! 6834: irix5* | irix6* | nonstopux*)
! 6835: case $host_os in
! 6836: nonstopux*) version_type=nonstopux ;;
! 6837: *) version_type=irix ;;
! 6838: esac
! 6839: need_lib_prefix=no
! 6840: need_version=no
! 6841: soname_spec='${libname}${release}.so$major'
! 6842: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
! 6843: case $host_os in
! 6844: irix5* | nonstopux*)
! 6845: libsuff= shlibsuff=
! 6846: ;;
! 6847: *)
! 6848: case $LD in # libtool.m4 will add one of these switches to LD
! 6849: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
! 6850: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
! 6851: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 6852: *) libsuff= shlibsuff= libmagic=never-match;;
! 6853: esac
! 6854: ;;
! 6855: esac
! 6856: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 6857: shlibpath_overrides_runpath=no
! 6858: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 6859: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 6860: ;;
! 6861:
! 6862: # No shared lib support for Linux oldld, aout, or coff.
! 6863: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
! 6864: dynamic_linker=no
! 6865: ;;
! 6866:
! 6867: # This must be Linux ELF.
! 6868: linux-gnu*)
! 6869: version_type=linux
! 6870: need_lib_prefix=no
! 6871: need_version=no
! 6872: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6873: soname_spec='${libname}${release}.so$major'
! 6874: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 6875: shlibpath_var=LD_LIBRARY_PATH
! 6876: shlibpath_overrides_runpath=no
! 6877: # This implies no fast_install, which is unacceptable.
! 6878: # Some rework will be needed to allow for fast_install
! 6879: # before this can be enabled.
! 6880: hardcode_into_libs=yes
! 6881:
! 6882: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 6883: # powerpc, because MkLinux only supported shared libraries with the
! 6884: # GNU dynamic linker. Since this was broken with cross compilers,
! 6885: # most powerpc-linux boxes support dynamic linking these days and
! 6886: # people can always --disable-shared, the test was removed, and we
! 6887: # assume the GNU/Linux dynamic linker is in use.
! 6888: dynamic_linker='GNU/Linux ld.so'
! 6889: ;;
! 6890:
! 6891: netbsd*)
! 6892: version_type=sunos
! 6893: need_lib_prefix=no
! 6894: need_version=no
! 6895: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 6896: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6897: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 6898: dynamic_linker='NetBSD (a.out) ld.so'
! 6899: else
! 6900: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
! 6901: soname_spec='${libname}${release}.so$major'
! 6902: dynamic_linker='NetBSD ld.elf_so'
! 6903: fi
! 6904: shlibpath_var=LD_LIBRARY_PATH
! 6905: shlibpath_overrides_runpath=yes
! 6906: hardcode_into_libs=yes
! 6907: ;;
! 6908:
! 6909: newsos6)
! 6910: version_type=linux
! 6911: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6912: shlibpath_var=LD_LIBRARY_PATH
! 6913: shlibpath_overrides_runpath=yes
! 6914: ;;
! 6915:
! 6916: openbsd*)
! 6917: version_type=sunos
! 6918: need_lib_prefix=no
! 6919: need_version=no
! 6920: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 6921: case "$host_os" in
! 6922: openbsd2.[89] | openbsd2.[89].*)
! 6923: shlibpath_overrides_runpath=no
! 6924: ;;
! 6925: *)
! 6926: shlibpath_overrides_runpath=yes
! 6927: ;;
! 6928: esac
! 6929: else
! 6930: shlibpath_overrides_runpath=yes
! 6931: fi
! 6932: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6933: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 6934: shlibpath_var=LD_LIBRARY_PATH
! 6935: ;;
! 6936:
! 6937: os2*)
! 6938: libname_spec='$name'
! 6939: need_lib_prefix=no
! 6940: library_names_spec='$libname.dll $libname.a'
! 6941: dynamic_linker='OS/2 ld.exe'
! 6942: shlibpath_var=LIBPATH
! 6943: ;;
! 6944:
! 6945: osf3* | osf4* | osf5*)
! 6946: version_type=osf
! 6947: need_version=no
! 6948: soname_spec='${libname}${release}.so$major'
! 6949: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6950: shlibpath_var=LD_LIBRARY_PATH
! 6951: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 6952: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 6953: hardcode_into_libs=yes
! 6954: ;;
! 6955:
! 6956: sco3.2v5*)
! 6957: version_type=osf
! 6958: soname_spec='${libname}${release}.so$major'
! 6959: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6960: shlibpath_var=LD_LIBRARY_PATH
! 6961: ;;
! 6962:
! 6963: solaris*)
! 6964: version_type=linux
! 6965: need_lib_prefix=no
! 6966: need_version=no
! 6967: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 6968: soname_spec='${libname}${release}.so$major'
! 6969: shlibpath_var=LD_LIBRARY_PATH
! 6970: shlibpath_overrides_runpath=yes
! 6971: hardcode_into_libs=yes
! 6972: # ldd complains unless libraries are executable
! 6973: postinstall_cmds='chmod +x $lib'
! 6974: ;;
! 6975:
! 6976: sunos4*)
! 6977: version_type=sunos
! 6978: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 6979: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 6980: shlibpath_var=LD_LIBRARY_PATH
! 6981: shlibpath_overrides_runpath=yes
! 6982: if test "$with_gnu_ld" = yes; then
! 6983: need_lib_prefix=no
! 6984: fi
! 6985: need_version=yes
! 6986: ;;
! 6987:
! 6988: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 6989: version_type=linux
! 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: case $host_vendor in
! 6994: sni)
! 6995: shlibpath_overrides_runpath=no
! 6996: need_lib_prefix=no
! 6997: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 6998: runpath_var=LD_RUN_PATH
! 6999: ;;
! 7000: siemens)
! 7001: need_lib_prefix=no
! 7002: ;;
! 7003: motorola)
! 7004: need_lib_prefix=no
! 7005: need_version=no
! 7006: shlibpath_overrides_runpath=no
! 7007: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 7008: ;;
! 7009: esac
! 7010: ;;
! 7011:
! 7012: uts4*)
! 7013: version_type=linux
! 7014: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 7015: soname_spec='${libname}${release}.so$major'
! 7016: shlibpath_var=LD_LIBRARY_PATH
! 7017: ;;
! 7018:
! 7019: dgux*)
! 7020: version_type=linux
! 7021: need_lib_prefix=no
! 7022: need_version=no
! 7023: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 7024: soname_spec='${libname}${release}.so$major'
! 7025: shlibpath_var=LD_LIBRARY_PATH
! 7026: ;;
! 7027:
! 7028: sysv4*MP*)
! 7029: if test -d /usr/nec ;then
! 7030: version_type=linux
! 7031: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
! 7032: soname_spec='$libname.so.$major'
! 7033: shlibpath_var=LD_LIBRARY_PATH
! 7034: fi
! 7035: ;;
! 7036:
! 7037: *)
! 7038: dynamic_linker=no
! 7039: ;;
! 7040: esac
! 7041: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 7042: echo "${ECHO_T}$dynamic_linker" >&6
! 7043: test "$dynamic_linker" = no && can_build_shared=no
! 7044:
! 7045: # Report the final consequences.
! 7046: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 7047: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 7048: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 7049: echo "${ECHO_T}$can_build_shared" >&6
! 7050:
! 7051: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 7052: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 7053: test "$can_build_shared" = "no" && enable_shared=no
! 7054:
! 7055: # On AIX, shared libraries and static libraries use the same namespace, and
! 7056: # are all built from PIC.
! 7057: case "$host_os" in
! 7058: aix3*)
! 7059: test "$enable_shared" = yes && enable_static=no
! 7060: if test -n "$RANLIB"; then
! 7061: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 7062: postinstall_cmds='$RANLIB $lib'
! 7063: fi
! 7064: ;;
! 7065:
! 7066: aix4*)
! 7067: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 7068: test "$enable_shared" = yes && enable_static=no
! 7069: fi
! 7070: ;;
! 7071: esac
! 7072: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 7073: echo "${ECHO_T}$enable_shared" >&6
! 7074:
! 7075: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 7076: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 7077: # Make sure either enable_shared or enable_static is yes.
! 7078: test "$enable_shared" = yes || enable_static=yes
! 7079: echo "$as_me:$LINENO: result: $enable_static" >&5
! 7080: echo "${ECHO_T}$enable_static" >&6
! 7081:
! 7082: if test "$hardcode_action" = relink; then
! 7083: # Fast installation is not supported
! 7084: enable_fast_install=no
! 7085: elif test "$shlibpath_overrides_runpath" = yes ||
! 7086: test "$enable_shared" = no; then
! 7087: # Fast installation is not necessary
! 7088: enable_fast_install=needless
! 7089: fi
! 7090:
! 7091: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 7092: if test "$GCC" = yes; then
! 7093: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 7094: fi
! 7095:
! 7096: if test "x$enable_dlopen" != xyes; then
! 7097: enable_dlopen=unknown
! 7098: enable_dlopen_self=unknown
! 7099: enable_dlopen_self_static=unknown
! 7100: else
! 7101: lt_cv_dlopen=no
! 7102: lt_cv_dlopen_libs=
! 7103:
! 7104: case $host_os in
! 7105: beos*)
! 7106: lt_cv_dlopen="load_add_on"
! 7107: lt_cv_dlopen_libs=
! 7108: lt_cv_dlopen_self=yes
! 7109: ;;
! 7110:
! 7111: cygwin* | mingw* | pw32*)
! 7112: lt_cv_dlopen="LoadLibrary"
! 7113: lt_cv_dlopen_libs=
! 7114: ;;
! 7115:
! 7116: *)
! 7117: echo "$as_me:$LINENO: checking for shl_load" >&5
! 7118: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 7119: if test "${ac_cv_func_shl_load+set}" = set; then
! 7120: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7121: else
! 7122: cat >conftest.$ac_ext <<_ACEOF
! 7123: #line $LINENO "configure"
! 7124: /* confdefs.h. */
! 7125: _ACEOF
! 7126: cat confdefs.h >>conftest.$ac_ext
! 7127: cat >>conftest.$ac_ext <<_ACEOF
! 7128: /* end confdefs.h. */
! 7129: /* System header to define __stub macros and hopefully few prototypes,
! 7130: which can conflict with char shl_load (); below.
! 7131: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7132: <limits.h> exists even on freestanding compilers. */
! 7133: #ifdef __STDC__
! 7134: # include <limits.h>
! 7135: #else
! 7136: # include <assert.h>
! 7137: #endif
! 7138: /* Override any gcc2 internal prototype to avoid an error. */
! 7139: #ifdef __cplusplus
! 7140: extern "C"
! 7141: {
! 7142: #endif
! 7143: /* We use char because int might match the return type of a gcc2
! 7144: builtin and then its argument prototype would still apply. */
! 7145: char shl_load ();
! 7146: /* The GNU C library defines this for functions which it implements
! 7147: to always fail with ENOSYS. Some functions are actually named
! 7148: something starting with __ and the normal name is an alias. */
! 7149: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 7150: choke me
! 7151: #else
! 7152: char (*f) () = shl_load;
! 7153: #endif
! 7154: #ifdef __cplusplus
! 7155: }
! 7156: #endif
! 7157:
! 7158: int
! 7159: main ()
! 7160: {
! 7161: return f != shl_load;
! 7162: ;
! 7163: return 0;
! 7164: }
! 7165: _ACEOF
! 7166: rm -f conftest.$ac_objext conftest$ac_exeext
! 7167: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7168: (eval $ac_link) 2>&5
! 7169: ac_status=$?
! 7170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7171: (exit $ac_status); } &&
! 7172: { ac_try='test -s conftest$ac_exeext'
! 7173: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7174: (eval $ac_try) 2>&5
! 7175: ac_status=$?
! 7176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7177: (exit $ac_status); }; }; then
! 7178: ac_cv_func_shl_load=yes
! 7179: else
! 7180: echo "$as_me: failed program was:" >&5
! 7181: sed 's/^/| /' conftest.$ac_ext >&5
! 7182:
! 7183: ac_cv_func_shl_load=no
! 7184: fi
! 7185: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7186: fi
! 7187: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 7188: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 7189: if test $ac_cv_func_shl_load = yes; then
! 7190: lt_cv_dlopen="shl_load"
! 7191: else
! 7192: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 7193: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 7194: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 7195: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7196: else
! 7197: ac_check_lib_save_LIBS=$LIBS
! 7198: LIBS="-ldld $LIBS"
! 7199: cat >conftest.$ac_ext <<_ACEOF
! 7200: #line $LINENO "configure"
! 7201: /* confdefs.h. */
! 7202: _ACEOF
! 7203: cat confdefs.h >>conftest.$ac_ext
! 7204: cat >>conftest.$ac_ext <<_ACEOF
! 7205: /* end confdefs.h. */
! 7206:
! 7207: /* Override any gcc2 internal prototype to avoid an error. */
! 7208: #ifdef __cplusplus
! 7209: extern "C"
! 7210: #endif
! 7211: /* We use char because int might match the return type of a gcc2
! 7212: builtin and then its argument prototype would still apply. */
! 7213: char shl_load ();
! 7214: int
! 7215: main ()
! 7216: {
! 7217: shl_load ();
! 7218: ;
! 7219: return 0;
! 7220: }
! 7221: _ACEOF
! 7222: rm -f conftest.$ac_objext conftest$ac_exeext
! 7223: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7224: (eval $ac_link) 2>&5
! 7225: ac_status=$?
! 7226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7227: (exit $ac_status); } &&
! 7228: { ac_try='test -s conftest$ac_exeext'
! 7229: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7230: (eval $ac_try) 2>&5
! 7231: ac_status=$?
! 7232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7233: (exit $ac_status); }; }; then
! 7234: ac_cv_lib_dld_shl_load=yes
! 7235: else
! 7236: echo "$as_me: failed program was:" >&5
! 7237: sed 's/^/| /' conftest.$ac_ext >&5
! 7238:
! 7239: ac_cv_lib_dld_shl_load=no
! 7240: fi
! 7241: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7242: LIBS=$ac_check_lib_save_LIBS
! 7243: fi
! 7244: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 7245: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 7246: if test $ac_cv_lib_dld_shl_load = yes; then
! 7247: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 7248: else
! 7249: echo "$as_me:$LINENO: checking for dlopen" >&5
! 7250: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 7251: if test "${ac_cv_func_dlopen+set}" = set; then
! 7252: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7253: else
! 7254: cat >conftest.$ac_ext <<_ACEOF
! 7255: #line $LINENO "configure"
! 7256: /* confdefs.h. */
! 7257: _ACEOF
! 7258: cat confdefs.h >>conftest.$ac_ext
! 7259: cat >>conftest.$ac_ext <<_ACEOF
! 7260: /* end confdefs.h. */
! 7261: /* System header to define __stub macros and hopefully few prototypes,
! 7262: which can conflict with char dlopen (); below.
! 7263: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7264: <limits.h> exists even on freestanding compilers. */
! 7265: #ifdef __STDC__
! 7266: # include <limits.h>
! 7267: #else
! 7268: # include <assert.h>
! 7269: #endif
! 7270: /* Override any gcc2 internal prototype to avoid an error. */
! 7271: #ifdef __cplusplus
! 7272: extern "C"
! 7273: {
! 7274: #endif
! 7275: /* We use char because int might match the return type of a gcc2
! 7276: builtin and then its argument prototype would still apply. */
! 7277: char dlopen ();
! 7278: /* The GNU C library defines this for functions which it implements
! 7279: to always fail with ENOSYS. Some functions are actually named
! 7280: something starting with __ and the normal name is an alias. */
! 7281: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 7282: choke me
! 7283: #else
! 7284: char (*f) () = dlopen;
! 7285: #endif
! 7286: #ifdef __cplusplus
! 7287: }
! 7288: #endif
! 7289:
! 7290: int
! 7291: main ()
! 7292: {
! 7293: return f != dlopen;
! 7294: ;
! 7295: return 0;
! 7296: }
! 7297: _ACEOF
! 7298: rm -f conftest.$ac_objext conftest$ac_exeext
! 7299: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7300: (eval $ac_link) 2>&5
! 7301: ac_status=$?
! 7302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7303: (exit $ac_status); } &&
! 7304: { ac_try='test -s conftest$ac_exeext'
! 7305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7306: (eval $ac_try) 2>&5
! 7307: ac_status=$?
! 7308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7309: (exit $ac_status); }; }; then
! 7310: ac_cv_func_dlopen=yes
! 7311: else
! 7312: echo "$as_me: failed program was:" >&5
! 7313: sed 's/^/| /' conftest.$ac_ext >&5
! 7314:
! 7315: ac_cv_func_dlopen=no
! 7316: fi
! 7317: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7318: fi
! 7319: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 7320: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 7321: if test $ac_cv_func_dlopen = yes; then
! 7322: lt_cv_dlopen="dlopen"
! 7323: else
! 7324: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 7325: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 7326: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 7327: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7328: else
! 7329: ac_check_lib_save_LIBS=$LIBS
! 7330: LIBS="-ldl $LIBS"
! 7331: cat >conftest.$ac_ext <<_ACEOF
! 7332: #line $LINENO "configure"
! 7333: /* confdefs.h. */
! 7334: _ACEOF
! 7335: cat confdefs.h >>conftest.$ac_ext
! 7336: cat >>conftest.$ac_ext <<_ACEOF
! 7337: /* end confdefs.h. */
! 7338:
! 7339: /* Override any gcc2 internal prototype to avoid an error. */
! 7340: #ifdef __cplusplus
! 7341: extern "C"
! 7342: #endif
! 7343: /* We use char because int might match the return type of a gcc2
! 7344: builtin and then its argument prototype would still apply. */
! 7345: char dlopen ();
! 7346: int
! 7347: main ()
! 7348: {
! 7349: dlopen ();
! 7350: ;
! 7351: return 0;
! 7352: }
! 7353: _ACEOF
! 7354: rm -f conftest.$ac_objext conftest$ac_exeext
! 7355: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7356: (eval $ac_link) 2>&5
! 7357: ac_status=$?
! 7358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7359: (exit $ac_status); } &&
! 7360: { ac_try='test -s conftest$ac_exeext'
! 7361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7362: (eval $ac_try) 2>&5
! 7363: ac_status=$?
! 7364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7365: (exit $ac_status); }; }; then
! 7366: ac_cv_lib_dl_dlopen=yes
! 7367: else
! 7368: echo "$as_me: failed program was:" >&5
! 7369: sed 's/^/| /' conftest.$ac_ext >&5
! 7370:
! 7371: ac_cv_lib_dl_dlopen=no
! 7372: fi
! 7373: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7374: LIBS=$ac_check_lib_save_LIBS
! 7375: fi
! 7376: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 7377: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 7378: if test $ac_cv_lib_dl_dlopen = yes; then
! 7379: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 7380: else
! 7381: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 7382: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 7383: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 7384: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7385: else
! 7386: ac_check_lib_save_LIBS=$LIBS
! 7387: LIBS="-lsvld $LIBS"
! 7388: cat >conftest.$ac_ext <<_ACEOF
! 7389: #line $LINENO "configure"
! 7390: /* confdefs.h. */
! 7391: _ACEOF
! 7392: cat confdefs.h >>conftest.$ac_ext
! 7393: cat >>conftest.$ac_ext <<_ACEOF
! 7394: /* end confdefs.h. */
! 7395:
! 7396: /* Override any gcc2 internal prototype to avoid an error. */
! 7397: #ifdef __cplusplus
! 7398: extern "C"
! 7399: #endif
! 7400: /* We use char because int might match the return type of a gcc2
! 7401: builtin and then its argument prototype would still apply. */
! 7402: char dlopen ();
! 7403: int
! 7404: main ()
! 7405: {
! 7406: dlopen ();
! 7407: ;
! 7408: return 0;
! 7409: }
! 7410: _ACEOF
! 7411: rm -f conftest.$ac_objext conftest$ac_exeext
! 7412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7413: (eval $ac_link) 2>&5
! 7414: ac_status=$?
! 7415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7416: (exit $ac_status); } &&
! 7417: { ac_try='test -s conftest$ac_exeext'
! 7418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7419: (eval $ac_try) 2>&5
! 7420: ac_status=$?
! 7421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7422: (exit $ac_status); }; }; then
! 7423: ac_cv_lib_svld_dlopen=yes
! 7424: else
! 7425: echo "$as_me: failed program was:" >&5
! 7426: sed 's/^/| /' conftest.$ac_ext >&5
! 7427:
! 7428: ac_cv_lib_svld_dlopen=no
! 7429: fi
! 7430: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7431: LIBS=$ac_check_lib_save_LIBS
! 7432: fi
! 7433: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 7434: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 7435: if test $ac_cv_lib_svld_dlopen = yes; then
! 7436: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 7437: else
! 7438: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 7439: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 7440: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 7441: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7442: else
! 7443: ac_check_lib_save_LIBS=$LIBS
! 7444: LIBS="-ldld $LIBS"
! 7445: cat >conftest.$ac_ext <<_ACEOF
! 7446: #line $LINENO "configure"
! 7447: /* confdefs.h. */
! 7448: _ACEOF
! 7449: cat confdefs.h >>conftest.$ac_ext
! 7450: cat >>conftest.$ac_ext <<_ACEOF
! 7451: /* end confdefs.h. */
! 7452:
! 7453: /* Override any gcc2 internal prototype to avoid an error. */
! 7454: #ifdef __cplusplus
! 7455: extern "C"
! 7456: #endif
! 7457: /* We use char because int might match the return type of a gcc2
! 7458: builtin and then its argument prototype would still apply. */
! 7459: char dld_link ();
! 7460: int
! 7461: main ()
! 7462: {
! 7463: dld_link ();
! 7464: ;
! 7465: return 0;
! 7466: }
! 7467: _ACEOF
! 7468: rm -f conftest.$ac_objext conftest$ac_exeext
! 7469: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7470: (eval $ac_link) 2>&5
! 7471: ac_status=$?
! 7472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7473: (exit $ac_status); } &&
! 7474: { ac_try='test -s conftest$ac_exeext'
! 7475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7476: (eval $ac_try) 2>&5
! 7477: ac_status=$?
! 7478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7479: (exit $ac_status); }; }; then
! 7480: ac_cv_lib_dld_dld_link=yes
! 7481: else
! 7482: echo "$as_me: failed program was:" >&5
! 7483: sed 's/^/| /' conftest.$ac_ext >&5
! 7484:
! 7485: ac_cv_lib_dld_dld_link=no
! 7486: fi
! 7487: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7488: LIBS=$ac_check_lib_save_LIBS
! 7489: fi
! 7490: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 7491: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 7492: if test $ac_cv_lib_dld_dld_link = yes; then
! 7493: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 7494: fi
! 7495:
! 7496:
! 7497: fi
! 7498:
! 7499:
! 7500: fi
! 7501:
! 7502:
! 7503: fi
! 7504:
! 7505:
! 7506: fi
! 7507:
! 7508:
! 7509: fi
! 7510:
! 7511: ;;
! 7512: esac
! 7513:
! 7514: if test "x$lt_cv_dlopen" != xno; then
! 7515: enable_dlopen=yes
! 7516: else
! 7517: enable_dlopen=no
! 7518: fi
! 7519:
! 7520: case $lt_cv_dlopen in
! 7521: dlopen)
! 7522: save_CPPFLAGS="$CPPFLAGS"
! 7523: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 7524:
! 7525: save_LDFLAGS="$LDFLAGS"
! 7526: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 7527:
! 7528: save_LIBS="$LIBS"
! 7529: LIBS="$lt_cv_dlopen_libs $LIBS"
! 7530:
! 7531: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 7532: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 7533: if test "${lt_cv_dlopen_self+set}" = set; then
! 7534: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7535: else
! 7536: if test "$cross_compiling" = yes; then :
! 7537: lt_cv_dlopen_self=cross
! 7538: else
! 7539: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7540: lt_status=$lt_dlunknown
! 7541: cat > conftest.$ac_ext <<EOF
! 7542: #line 7542 "configure"
! 7543: #include "confdefs.h"
! 7544:
! 7545: #if HAVE_DLFCN_H
! 7546: #include <dlfcn.h>
! 7547: #endif
! 7548:
! 7549: #include <stdio.h>
! 7550:
! 7551: #ifdef RTLD_GLOBAL
! 7552: # define LT_DLGLOBAL RTLD_GLOBAL
! 7553: #else
! 7554: # ifdef DL_GLOBAL
! 7555: # define LT_DLGLOBAL DL_GLOBAL
! 7556: # else
! 7557: # define LT_DLGLOBAL 0
! 7558: # endif
! 7559: #endif
! 7560:
! 7561: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7562: find out it does not work in some platform. */
! 7563: #ifndef LT_DLLAZY_OR_NOW
! 7564: # ifdef RTLD_LAZY
! 7565: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7566: # else
! 7567: # ifdef DL_LAZY
! 7568: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7569: # else
! 7570: # ifdef RTLD_NOW
! 7571: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7572: # else
! 7573: # ifdef DL_NOW
! 7574: # define LT_DLLAZY_OR_NOW DL_NOW
! 7575: # else
! 7576: # define LT_DLLAZY_OR_NOW 0
! 7577: # endif
! 7578: # endif
! 7579: # endif
! 7580: # endif
! 7581: #endif
! 7582:
! 7583: #ifdef __cplusplus
! 7584: extern "C" void exit (int);
! 7585: #endif
! 7586:
! 7587: void fnord() { int i=42;}
! 7588: int main ()
! 7589: {
! 7590: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7591: int status = $lt_dlunknown;
! 7592:
! 7593: if (self)
! 7594: {
! 7595: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7596: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7597: /* dlclose (self); */
! 7598: }
! 7599:
! 7600: exit (status);
! 7601: }
! 7602: EOF
! 7603: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7604: (eval $ac_link) 2>&5
! 7605: ac_status=$?
! 7606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7607: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7608: (./conftest; exit; ) 2>/dev/null
! 7609: lt_status=$?
! 7610: case x$lt_status in
! 7611: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 7612: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 7613: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 7614: esac
! 7615: else :
! 7616: # compilation failed
! 7617: lt_cv_dlopen_self=no
! 7618: fi
! 7619: fi
! 7620: rm -fr conftest*
! 7621:
! 7622:
! 7623: fi
! 7624: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 7625: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 7626:
! 7627: if test "x$lt_cv_dlopen_self" = xyes; then
! 7628: LDFLAGS="$LDFLAGS $link_static_flag"
! 7629: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 7630: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 7631: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 7632: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7633: else
! 7634: if test "$cross_compiling" = yes; then :
! 7635: lt_cv_dlopen_self_static=cross
! 7636: else
! 7637: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7638: lt_status=$lt_dlunknown
! 7639: cat > conftest.$ac_ext <<EOF
! 7640: #line 7640 "configure"
! 7641: #include "confdefs.h"
! 7642:
! 7643: #if HAVE_DLFCN_H
! 7644: #include <dlfcn.h>
! 7645: #endif
! 7646:
! 7647: #include <stdio.h>
! 7648:
! 7649: #ifdef RTLD_GLOBAL
! 7650: # define LT_DLGLOBAL RTLD_GLOBAL
! 7651: #else
! 7652: # ifdef DL_GLOBAL
! 7653: # define LT_DLGLOBAL DL_GLOBAL
! 7654: # else
! 7655: # define LT_DLGLOBAL 0
! 7656: # endif
! 7657: #endif
! 7658:
! 7659: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7660: find out it does not work in some platform. */
! 7661: #ifndef LT_DLLAZY_OR_NOW
! 7662: # ifdef RTLD_LAZY
! 7663: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7664: # else
! 7665: # ifdef DL_LAZY
! 7666: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7667: # else
! 7668: # ifdef RTLD_NOW
! 7669: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7670: # else
! 7671: # ifdef DL_NOW
! 7672: # define LT_DLLAZY_OR_NOW DL_NOW
! 7673: # else
! 7674: # define LT_DLLAZY_OR_NOW 0
! 7675: # endif
! 7676: # endif
! 7677: # endif
! 7678: # endif
! 7679: #endif
! 7680:
! 7681: #ifdef __cplusplus
! 7682: extern "C" void exit (int);
! 7683: #endif
! 7684:
! 7685: void fnord() { int i=42;}
! 7686: int main ()
! 7687: {
! 7688: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7689: int status = $lt_dlunknown;
! 7690:
! 7691: if (self)
! 7692: {
! 7693: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7694: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7695: /* dlclose (self); */
! 7696: }
! 7697:
! 7698: exit (status);
! 7699: }
1.1 parser 7700: EOF
1.15 ! paf 7701: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7702: (eval $ac_link) 2>&5
! 7703: ac_status=$?
! 7704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7705: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7706: (./conftest; exit; ) 2>/dev/null
! 7707: lt_status=$?
! 7708: case x$lt_status in
! 7709: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 7710: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 7711: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 7712: esac
! 7713: else :
! 7714: # compilation failed
! 7715: lt_cv_dlopen_self_static=no
! 7716: fi
! 7717: fi
! 7718: rm -fr conftest*
! 7719:
! 7720:
! 7721: fi
! 7722: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 7723: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 7724: fi
! 7725:
! 7726: CPPFLAGS="$save_CPPFLAGS"
! 7727: LDFLAGS="$save_LDFLAGS"
! 7728: LIBS="$save_LIBS"
! 7729: ;;
! 7730: esac
! 7731:
! 7732: case $lt_cv_dlopen_self in
! 7733: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 7734: *) enable_dlopen_self=unknown ;;
! 7735: esac
! 7736:
! 7737: case $lt_cv_dlopen_self_static in
! 7738: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 7739: *) enable_dlopen_self_static=unknown ;;
! 7740: esac
! 7741: fi
! 7742:
! 7743:
! 7744: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 7745: case $archive_cmds in
! 7746: *'~'*)
! 7747: # FIXME: we may have to deal with multi-command sequences.
! 7748: ;;
! 7749: '$CC '*)
! 7750: # Test whether the compiler implicitly links with -lc since on some
! 7751: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 7752: # to ld, don't add -lc before -lgcc.
! 7753: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 7754: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 7755: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
! 7756: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7757: else
! 7758: $rm conftest*
! 7759: echo 'static int dummy;' > conftest.$ac_ext
! 7760:
! 7761: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7762: (eval $ac_compile) 2>&5
! 7763: ac_status=$?
! 7764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7765: (exit $ac_status); }; then
! 7766: soname=conftest
! 7767: lib=conftest
! 7768: libobjs=conftest.$ac_objext
! 7769: deplibs=
! 7770: wl=$lt_cv_prog_cc_wl
! 7771: compiler_flags=-v
! 7772: linker_flags=-v
! 7773: verstring=
! 7774: output_objdir=.
! 7775: libname=conftest
! 7776: save_allow_undefined_flag=$allow_undefined_flag
! 7777: allow_undefined_flag=
! 7778: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 7779: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 7780: ac_status=$?
! 7781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7782: (exit $ac_status); }
! 7783: then
! 7784: lt_cv_archive_cmds_need_lc=no
! 7785: else
! 7786: lt_cv_archive_cmds_need_lc=yes
! 7787: fi
! 7788: allow_undefined_flag=$save_allow_undefined_flag
! 7789: else
! 7790: cat conftest.err 1>&5
! 7791: fi
! 7792: fi
! 7793:
! 7794: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
! 7795: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
! 7796: ;;
! 7797: esac
! 7798: fi
! 7799: need_lc=${lt_cv_archive_cmds_need_lc-yes}
! 7800:
! 7801: # The second clause should only fire when bootstrapping the
! 7802: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 7803: # with your package, and you will get complaints that there are
! 7804: # no rules to generate ltmain.sh.
! 7805: if test -f "$ltmain"; then
1.1 parser 7806: :
7807: else
1.15 ! paf 7808: # If there is no Makefile yet, we rely on a make rule to execute
! 7809: # `config.status --recheck' to rerun these tests and create the
! 7810: # libtool script then.
! 7811: test -f Makefile && make "$ltmain"
! 7812: fi
! 7813:
! 7814: if test -f "$ltmain"; then
! 7815: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
! 7816: $rm -f "${ofile}T"
! 7817:
! 7818: echo creating $ofile
! 7819:
! 7820: # Now quote all the things that may contain metacharacters while being
! 7821: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 7822: # variables and quote the copies for generation of the libtool script.
! 7823: for var in echo old_CC old_CFLAGS SED \
! 7824: AR AR_FLAGS CC LD LN_S NM SHELL \
! 7825: reload_flag reload_cmds wl \
! 7826: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
! 7827: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
! 7828: library_names_spec soname_spec \
! 7829: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
! 7830: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
! 7831: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
! 7832: old_striplib striplib file_magic_cmd export_symbols_cmds \
! 7833: deplibs_check_method allow_undefined_flag no_undefined_flag \
! 7834: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
! 7835: global_symbol_to_c_name_address \
! 7836: hardcode_libdir_flag_spec hardcode_libdir_separator \
! 7837: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 7838: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
! 7839:
! 7840: case $var in
! 7841: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
! 7842: old_postinstall_cmds | old_postuninstall_cmds | \
! 7843: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
! 7844: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
! 7845: postinstall_cmds | postuninstall_cmds | \
! 7846: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 7847: # Double-quote double-evaled strings.
! 7848: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 7849: ;;
! 7850: *)
! 7851: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 7852: ;;
! 7853: esac
! 7854: done
! 7855:
! 7856: cat <<__EOF__ > "${ofile}T"
! 7857: #! $SHELL
! 7858:
! 7859: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 7860: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 7861: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 7862: #
! 7863: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
! 7864: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 7865: #
! 7866: # This program is free software; you can redistribute it and/or modify
! 7867: # it under the terms of the GNU General Public License as published by
! 7868: # the Free Software Foundation; either version 2 of the License, or
! 7869: # (at your option) any later version.
! 7870: #
! 7871: # This program is distributed in the hope that it will be useful, but
! 7872: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 7873: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 7874: # General Public License for more details.
! 7875: #
! 7876: # You should have received a copy of the GNU General Public License
! 7877: # along with this program; if not, write to the Free Software
! 7878: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 7879: #
! 7880: # As a special exception to the GNU General Public License, if you
! 7881: # distribute this file as part of a program that contains a
! 7882: # configuration script generated by Autoconf, you may include it under
! 7883: # the same distribution terms that you use for the rest of that program.
! 7884:
! 7885: # A sed that does not truncate output.
! 7886: SED=$lt_SED
! 7887:
! 7888: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 7889: Xsed="${SED} -e s/^X//"
! 7890:
! 7891: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 7892: # if CDPATH is set.
! 7893: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 7894:
! 7895: # ### BEGIN LIBTOOL CONFIG
! 7896:
! 7897: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 7898:
! 7899: # Shell to use when invoking shell scripts.
! 7900: SHELL=$lt_SHELL
! 7901:
! 7902: # Whether or not to build shared libraries.
! 7903: build_libtool_libs=$enable_shared
! 7904:
! 7905: # Whether or not to build static libraries.
! 7906: build_old_libs=$enable_static
! 7907:
! 7908: # Whether or not to add -lc for building shared libraries.
! 7909: build_libtool_need_lc=$need_lc
! 7910:
! 7911: # Whether or not to optimize for fast installation.
! 7912: fast_install=$enable_fast_install
! 7913:
! 7914: # The host system.
! 7915: host_alias=$host_alias
! 7916: host=$host
! 7917:
! 7918: # An echo program that does not interpret backslashes.
! 7919: echo=$lt_echo
! 7920:
! 7921: # The archiver.
! 7922: AR=$lt_AR
! 7923: AR_FLAGS=$lt_AR_FLAGS
! 7924:
! 7925: # The default C compiler.
! 7926: CC=$lt_CC
! 7927:
! 7928: # Is the compiler the GNU C compiler?
! 7929: with_gcc=$GCC
! 7930:
! 7931: # The linker used to build libraries.
! 7932: LD=$lt_LD
! 7933:
! 7934: # Whether we need hard or soft links.
! 7935: LN_S=$lt_LN_S
! 7936:
! 7937: # A BSD-compatible nm program.
! 7938: NM=$lt_NM
! 7939:
! 7940: # A symbol stripping program
! 7941: STRIP=$STRIP
! 7942:
! 7943: # Used to examine libraries when file_magic_cmd begins "file"
! 7944: MAGIC_CMD=$MAGIC_CMD
! 7945:
! 7946: # Used on cygwin: DLL creation program.
! 7947: DLLTOOL="$DLLTOOL"
! 7948:
! 7949: # Used on cygwin: object dumper.
! 7950: OBJDUMP="$OBJDUMP"
! 7951:
! 7952: # Used on cygwin: assembler.
! 7953: AS="$AS"
! 7954:
! 7955: # The name of the directory that contains temporary libtool files.
! 7956: objdir=$objdir
! 7957:
! 7958: # How to create reloadable object files.
! 7959: reload_flag=$lt_reload_flag
! 7960: reload_cmds=$lt_reload_cmds
! 7961:
! 7962: # How to pass a linker flag through the compiler.
! 7963: wl=$lt_wl
! 7964:
! 7965: # Object file suffix (normally "o").
! 7966: objext="$ac_objext"
! 7967:
! 7968: # Old archive suffix (normally "a").
! 7969: libext="$libext"
! 7970:
! 7971: # Executable file suffix (normally "").
! 7972: exeext="$exeext"
! 7973:
! 7974: # Additional compiler flags for building library objects.
! 7975: pic_flag=$lt_pic_flag
! 7976: pic_mode=$pic_mode
! 7977:
! 7978: # Does compiler simultaneously support -c and -o options?
! 7979: compiler_c_o=$lt_compiler_c_o
! 7980:
! 7981: # Can we write directly to a .lo ?
! 7982: compiler_o_lo=$lt_compiler_o_lo
! 7983:
! 7984: # Must we lock files when doing compilation ?
! 7985: need_locks=$lt_need_locks
! 7986:
! 7987: # Do we need the lib prefix for modules?
! 7988: need_lib_prefix=$need_lib_prefix
! 7989:
! 7990: # Do we need a version for libraries?
! 7991: need_version=$need_version
! 7992:
! 7993: # Whether dlopen is supported.
! 7994: dlopen_support=$enable_dlopen
! 7995:
! 7996: # Whether dlopen of programs is supported.
! 7997: dlopen_self=$enable_dlopen_self
! 7998:
! 7999: # Whether dlopen of statically linked programs is supported.
! 8000: dlopen_self_static=$enable_dlopen_self_static
! 8001:
! 8002: # Compiler flag to prevent dynamic linking.
! 8003: link_static_flag=$lt_link_static_flag
! 8004:
! 8005: # Compiler flag to turn off builtin functions.
! 8006: no_builtin_flag=$lt_no_builtin_flag
! 8007:
! 8008: # Compiler flag to allow reflexive dlopens.
! 8009: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
! 8010:
! 8011: # Compiler flag to generate shared objects directly from archives.
! 8012: whole_archive_flag_spec=$lt_whole_archive_flag_spec
! 8013:
! 8014: # Compiler flag to generate thread-safe objects.
! 8015: thread_safe_flag_spec=$lt_thread_safe_flag_spec
! 8016:
! 8017: # Library versioning type.
! 8018: version_type=$version_type
! 8019:
! 8020: # Format of library name prefix.
! 8021: libname_spec=$lt_libname_spec
! 8022:
! 8023: # List of archive names. First name is the real one, the rest are links.
! 8024: # The last name is the one that the linker finds with -lNAME.
! 8025: library_names_spec=$lt_library_names_spec
! 8026:
! 8027: # The coded name of the library, if different from the real name.
! 8028: soname_spec=$lt_soname_spec
! 8029:
! 8030: # Commands used to build and install an old-style archive.
! 8031: RANLIB=$lt_RANLIB
! 8032: old_archive_cmds=$lt_old_archive_cmds
! 8033: old_postinstall_cmds=$lt_old_postinstall_cmds
! 8034: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 8035:
! 8036: # Create an old-style archive from a shared archive.
! 8037: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
! 8038:
! 8039: # Create a temporary old-style archive to link instead of a shared archive.
! 8040: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
! 8041:
! 8042: # Commands used to build and install a shared archive.
! 8043: archive_cmds=$lt_archive_cmds
! 8044: archive_expsym_cmds=$lt_archive_expsym_cmds
! 8045: postinstall_cmds=$lt_postinstall_cmds
! 8046: postuninstall_cmds=$lt_postuninstall_cmds
! 8047:
! 8048: # Commands to strip libraries.
! 8049: old_striplib=$lt_old_striplib
! 8050: striplib=$lt_striplib
! 8051:
! 8052: # Method to check whether dependent libraries are shared objects.
! 8053: deplibs_check_method=$lt_deplibs_check_method
! 8054:
! 8055: # Command to use when deplibs_check_method == file_magic.
! 8056: file_magic_cmd=$lt_file_magic_cmd
! 8057:
! 8058: # Flag that allows shared libraries with undefined symbols to be built.
! 8059: allow_undefined_flag=$lt_allow_undefined_flag
! 8060:
! 8061: # Flag that forces no undefined symbols.
! 8062: no_undefined_flag=$lt_no_undefined_flag
! 8063:
! 8064: # Commands used to finish a libtool library installation in a directory.
! 8065: finish_cmds=$lt_finish_cmds
! 8066:
! 8067: # Same as above, but a single script fragment to be evaled but not shown.
! 8068: finish_eval=$lt_finish_eval
! 8069:
! 8070: # Take the output of nm and produce a listing of raw symbols and C names.
! 8071: global_symbol_pipe=$lt_global_symbol_pipe
! 8072:
! 8073: # Transform the output of nm in a proper C declaration
! 8074: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
! 8075:
! 8076: # Transform the output of nm in a C name address pair
! 8077: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
! 8078:
! 8079: # This is the shared library runtime path variable.
! 8080: runpath_var=$runpath_var
! 8081:
! 8082: # This is the shared library path variable.
! 8083: shlibpath_var=$shlibpath_var
! 8084:
! 8085: # Is shlibpath searched before the hard-coded library search path?
! 8086: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 8087:
! 8088: # How to hardcode a shared library path into an executable.
! 8089: hardcode_action=$hardcode_action
! 8090:
! 8091: # Whether we should hardcode library paths into libraries.
! 8092: hardcode_into_libs=$hardcode_into_libs
! 8093:
! 8094: # Flag to hardcode \$libdir into a binary during linking.
! 8095: # This must work even if \$libdir does not exist.
! 8096: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
! 8097:
! 8098: # Whether we need a single -rpath flag with a separated argument.
! 8099: hardcode_libdir_separator=$lt_hardcode_libdir_separator
! 8100:
! 8101: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 8102: # resulting binary.
! 8103: hardcode_direct=$hardcode_direct
! 8104:
! 8105: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 8106: # resulting binary.
! 8107: hardcode_minus_L=$hardcode_minus_L
! 8108:
! 8109: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 8110: # the resulting binary.
! 8111: hardcode_shlibpath_var=$hardcode_shlibpath_var
! 8112:
! 8113: # Variables whose values should be saved in libtool wrapper scripts and
! 8114: # restored at relink time.
! 8115: variables_saved_for_relink="$variables_saved_for_relink"
! 8116:
! 8117: # Whether libtool must link a program against all its dependency libraries.
! 8118: link_all_deplibs=$link_all_deplibs
! 8119:
! 8120: # Compile-time system search path for libraries
! 8121: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 8122:
! 8123: # Run-time system search path for libraries
! 8124: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 8125:
! 8126: # Fix the shell variable \$srcfile for the compiler.
! 8127: fix_srcfile_path="$fix_srcfile_path"
! 8128:
! 8129: # Set to yes if exported symbols are required.
! 8130: always_export_symbols=$always_export_symbols
! 8131:
! 8132: # The commands to list exported symbols.
! 8133: export_symbols_cmds=$lt_export_symbols_cmds
! 8134:
! 8135: # The commands to extract the exported symbol list from a shared archive.
! 8136: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 8137:
! 8138: # Symbols that should not be listed in the preloaded symbols.
! 8139: exclude_expsyms=$lt_exclude_expsyms
! 8140:
! 8141: # Symbols that must always be exported.
! 8142: include_expsyms=$lt_include_expsyms
! 8143:
! 8144: # ### END LIBTOOL CONFIG
! 8145:
! 8146: __EOF__
! 8147:
! 8148: case $host_os in
! 8149: aix3*)
! 8150: cat <<\EOF >> "${ofile}T"
! 8151:
! 8152: # AIX sometimes has problems with the GCC collect2 program. For some
! 8153: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 8154: # vanish in a puff of smoke.
! 8155: if test "X${COLLECT_NAMES+set}" != Xset; then
! 8156: COLLECT_NAMES=
! 8157: export COLLECT_NAMES
! 8158: fi
! 8159: EOF
! 8160: ;;
! 8161: esac
! 8162:
! 8163: case $host_os in
! 8164: cygwin* | mingw* | pw32* | os2*)
! 8165: cat <<'EOF' >> "${ofile}T"
! 8166: # This is a source program that is used to create dlls on Windows
! 8167: # Don't remove nor modify the starting and closing comments
! 8168: # /* ltdll.c starts here */
! 8169: # #define WIN32_LEAN_AND_MEAN
! 8170: # #include <windows.h>
! 8171: # #undef WIN32_LEAN_AND_MEAN
! 8172: # #include <stdio.h>
! 8173: #
! 8174: # #ifndef __CYGWIN__
! 8175: # # ifdef __CYGWIN32__
! 8176: # # define __CYGWIN__ __CYGWIN32__
! 8177: # # endif
! 8178: # #endif
! 8179: #
! 8180: # #ifdef __cplusplus
! 8181: # extern "C" {
! 8182: # #endif
! 8183: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
! 8184: # #ifdef __cplusplus
! 8185: # }
! 8186: # #endif
! 8187: #
! 8188: # #ifdef __CYGWIN__
! 8189: # #include <cygwin/cygwin_dll.h>
! 8190: # DECLARE_CYGWIN_DLL( DllMain );
! 8191: # #endif
! 8192: # HINSTANCE __hDllInstance_base;
! 8193: #
! 8194: # BOOL APIENTRY
! 8195: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
! 8196: # {
! 8197: # __hDllInstance_base = hInst;
! 8198: # return TRUE;
! 8199: # }
! 8200: # /* ltdll.c ends here */
! 8201: # This is a source program that is used to create import libraries
! 8202: # on Windows for dlls which lack them. Don't remove nor modify the
! 8203: # starting and closing comments
! 8204: # /* impgen.c starts here */
! 8205: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
! 8206: #
! 8207: # This file is part of GNU libtool.
! 8208: #
! 8209: # This program is free software; you can redistribute it and/or modify
! 8210: # it under the terms of the GNU General Public License as published by
! 8211: # the Free Software Foundation; either version 2 of the License, or
! 8212: # (at your option) any later version.
! 8213: #
! 8214: # This program is distributed in the hope that it will be useful,
! 8215: # but WITHOUT ANY WARRANTY; without even the implied warranty of
! 8216: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 8217: # GNU General Public License for more details.
! 8218: #
! 8219: # You should have received a copy of the GNU General Public License
! 8220: # along with this program; if not, write to the Free Software
! 8221: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 8222: # */
! 8223: #
! 8224: # #include <stdio.h> /* for printf() */
! 8225: # #include <unistd.h> /* for open(), lseek(), read() */
! 8226: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
! 8227: # #include <string.h> /* for strdup() */
! 8228: #
! 8229: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
! 8230: # #ifndef O_BINARY
! 8231: # #define O_BINARY 0
! 8232: # #endif
! 8233: #
! 8234: # static unsigned int
! 8235: # pe_get16 (fd, offset)
! 8236: # int fd;
! 8237: # int offset;
! 8238: # {
! 8239: # unsigned char b[2];
! 8240: # lseek (fd, offset, SEEK_SET);
! 8241: # read (fd, b, 2);
! 8242: # return b[0] + (b[1]<<8);
! 8243: # }
! 8244: #
! 8245: # static unsigned int
! 8246: # pe_get32 (fd, offset)
! 8247: # int fd;
! 8248: # int offset;
! 8249: # {
! 8250: # unsigned char b[4];
! 8251: # lseek (fd, offset, SEEK_SET);
! 8252: # read (fd, b, 4);
! 8253: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 8254: # }
! 8255: #
! 8256: # static unsigned int
! 8257: # pe_as32 (ptr)
! 8258: # void *ptr;
! 8259: # {
! 8260: # unsigned char *b = ptr;
! 8261: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 8262: # }
! 8263: #
! 8264: # int
! 8265: # main (argc, argv)
! 8266: # int argc;
! 8267: # char *argv[];
! 8268: # {
! 8269: # int dll;
! 8270: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
! 8271: # unsigned long export_rva, export_size, nsections, secptr, expptr;
! 8272: # unsigned long name_rvas, nexp;
! 8273: # unsigned char *expdata, *erva;
! 8274: # char *filename, *dll_name;
! 8275: #
! 8276: # filename = argv[1];
! 8277: #
! 8278: # dll = open(filename, O_RDONLY|O_BINARY);
! 8279: # if (dll < 1)
! 8280: # return 1;
! 8281: #
! 8282: # dll_name = filename;
! 8283: #
! 8284: # for (i=0; filename[i]; i++)
! 8285: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
! 8286: # dll_name = filename + i +1;
! 8287: #
! 8288: # pe_header_offset = pe_get32 (dll, 0x3c);
! 8289: # opthdr_ofs = pe_header_offset + 4 + 20;
! 8290: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
! 8291: #
! 8292: # if (num_entries < 1) /* no exports */
! 8293: # return 1;
! 8294: #
! 8295: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
! 8296: # export_size = pe_get32 (dll, opthdr_ofs + 100);
! 8297: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
! 8298: # secptr = (pe_header_offset + 4 + 20 +
! 8299: # pe_get16 (dll, pe_header_offset + 4 + 16));
! 8300: #
! 8301: # expptr = 0;
! 8302: # for (i = 0; i < nsections; i++)
! 8303: # {
! 8304: # char sname[8];
! 8305: # unsigned long secptr1 = secptr + 40 * i;
! 8306: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
! 8307: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
! 8308: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
! 8309: # lseek(dll, secptr1, SEEK_SET);
! 8310: # read(dll, sname, 8);
! 8311: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
! 8312: # {
! 8313: # expptr = fptr + (export_rva - vaddr);
! 8314: # if (export_rva + export_size > vaddr + vsize)
! 8315: # export_size = vsize - (export_rva - vaddr);
! 8316: # break;
! 8317: # }
! 8318: # }
! 8319: #
! 8320: # expdata = (unsigned char*)malloc(export_size);
! 8321: # lseek (dll, expptr, SEEK_SET);
! 8322: # read (dll, expdata, export_size);
! 8323: # erva = expdata - export_rva;
! 8324: #
! 8325: # nexp = pe_as32 (expdata+24);
! 8326: # name_rvas = pe_as32 (expdata+32);
! 8327: #
! 8328: # printf ("EXPORTS\n");
! 8329: # for (i = 0; i<nexp; i++)
! 8330: # {
! 8331: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
! 8332: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
! 8333: # }
! 8334: #
! 8335: # return 0;
! 8336: # }
! 8337: # /* impgen.c ends here */
! 8338:
! 8339: EOF
! 8340: ;;
! 8341: esac
! 8342:
! 8343: # We use sed instead of cat because bash on DJGPP gets confused if
! 8344: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 8345: # text mode, it properly converts lines to CR/LF. This bash problem
! 8346: # is reportedly fixed, but why not run on old versions too?
! 8347: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
! 8348:
! 8349: mv -f "${ofile}T" "$ofile" || \
! 8350: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
! 8351: chmod +x "$ofile"
! 8352: fi
! 8353:
! 8354:
! 8355:
! 8356:
! 8357:
! 8358: # This can be used to rebuild libtool when needed
! 8359: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
! 8360:
! 8361: # Always use our own libtool.
! 8362: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
! 8363:
! 8364: # Prevent multiple expansion
! 8365:
! 8366:
! 8367:
! 8368:
! 8369:
! 8370: subdirs="$subdirs libltdl"
! 8371:
! 8372:
! 8373:
! 8374:
! 8375:
! 8376:
! 8377:
! 8378:
! 8379: for ac_header in stdio.h \
! 8380: stdlib.h \
! 8381: string.h \
! 8382: setjmp.h
! 8383:
! 8384: do
! 8385: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 8386: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8387: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8388: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8389: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8390: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8391: fi
! 8392: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8393: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8394: else
! 8395: # Is the header compilable?
! 8396: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 8397: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 8398: cat >conftest.$ac_ext <<_ACEOF
! 8399: #line $LINENO "configure"
! 8400: /* confdefs.h. */
! 8401: _ACEOF
! 8402: cat confdefs.h >>conftest.$ac_ext
! 8403: cat >>conftest.$ac_ext <<_ACEOF
! 8404: /* end confdefs.h. */
! 8405: $ac_includes_default
! 8406: #include <$ac_header>
! 8407: _ACEOF
! 8408: rm -f conftest.$ac_objext
! 8409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8410: (eval $ac_compile) 2>&5
! 8411: ac_status=$?
! 8412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8413: (exit $ac_status); } &&
! 8414: { ac_try='test -s conftest.$ac_objext'
! 8415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8416: (eval $ac_try) 2>&5
! 8417: ac_status=$?
! 8418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8419: (exit $ac_status); }; }; then
! 8420: ac_header_compiler=yes
! 8421: else
! 8422: echo "$as_me: failed program was:" >&5
! 8423: sed 's/^/| /' conftest.$ac_ext >&5
! 8424:
! 8425: ac_header_compiler=no
! 8426: fi
! 8427: rm -f conftest.$ac_objext conftest.$ac_ext
! 8428: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 8429: echo "${ECHO_T}$ac_header_compiler" >&6
! 8430:
! 8431: # Is the header present?
! 8432: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 8433: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 8434: cat >conftest.$ac_ext <<_ACEOF
! 8435: #line $LINENO "configure"
! 8436: /* confdefs.h. */
! 8437: _ACEOF
! 8438: cat confdefs.h >>conftest.$ac_ext
! 8439: cat >>conftest.$ac_ext <<_ACEOF
! 8440: /* end confdefs.h. */
! 8441: #include <$ac_header>
! 8442: _ACEOF
! 8443: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 8444: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 8445: ac_status=$?
! 8446: grep -v '^ *+' conftest.er1 >conftest.err
! 8447: rm -f conftest.er1
! 8448: cat conftest.err >&5
! 8449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8450: (exit $ac_status); } >/dev/null; then
! 8451: if test -s conftest.err; then
! 8452: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 8453: else
! 8454: ac_cpp_err=
! 8455: fi
! 8456: else
! 8457: ac_cpp_err=yes
! 8458: fi
! 8459: if test -z "$ac_cpp_err"; then
! 8460: ac_header_preproc=yes
! 8461: else
! 8462: echo "$as_me: failed program was:" >&5
! 8463: sed 's/^/| /' conftest.$ac_ext >&5
! 8464:
! 8465: ac_header_preproc=no
! 8466: fi
! 8467: rm -f conftest.err conftest.$ac_ext
! 8468: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 8469: echo "${ECHO_T}$ac_header_preproc" >&6
! 8470:
! 8471: # So? What about this header?
! 8472: case $ac_header_compiler:$ac_header_preproc in
! 8473: yes:no )
! 8474: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 8475: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 8476: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8477: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8478: (
! 8479: cat <<\_ASBOX
! 8480: ## ------------------------------------ ##
! 8481: ## Report this to bug-autoconf@gnu.org. ##
! 8482: ## ------------------------------------ ##
! 8483: _ASBOX
! 8484: ) |
! 8485: sed "s/^/$as_me: WARNING: /" >&2
! 8486: ;;
! 8487: no:yes )
! 8488: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 8489: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 8490: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 8491: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 8492: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8493: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8494: (
! 8495: cat <<\_ASBOX
! 8496: ## ------------------------------------ ##
! 8497: ## Report this to bug-autoconf@gnu.org. ##
! 8498: ## ------------------------------------ ##
! 8499: _ASBOX
! 8500: ) |
! 8501: sed "s/^/$as_me: WARNING: /" >&2
! 8502: ;;
! 8503: esac
! 8504: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8505: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8506: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8507: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8508: else
! 8509: eval "$as_ac_Header=$ac_header_preproc"
1.1 parser 8510: fi
1.15 ! paf 8511: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8512: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8513:
1.1 parser 8514: fi
1.15 ! paf 8515: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 8516: cat >>confdefs.h <<_ACEOF
! 8517: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 8518: _ACEOF
1.1 parser 8519:
8520: fi
8521:
1.15 ! paf 8522: done
! 8523:
1.1 parser 8524:
8525:
1.15 ! paf 8526: echo "$as_me:$LINENO: checking for size_t" >&5
! 8527: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 8528: if test "${ac_cv_type_size_t+set}" = set; then
! 8529: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8530: else
! 8531: cat >conftest.$ac_ext <<_ACEOF
! 8532: #line $LINENO "configure"
! 8533: /* confdefs.h. */
! 8534: _ACEOF
! 8535: cat confdefs.h >>conftest.$ac_ext
! 8536: cat >>conftest.$ac_ext <<_ACEOF
! 8537: /* end confdefs.h. */
! 8538: $ac_includes_default
! 8539: int
! 8540: main ()
! 8541: {
! 8542: if ((size_t *) 0)
! 8543: return 0;
! 8544: if (sizeof (size_t))
! 8545: return 0;
! 8546: ;
! 8547: return 0;
! 8548: }
! 8549: _ACEOF
! 8550: rm -f conftest.$ac_objext
! 8551: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8552: (eval $ac_compile) 2>&5
! 8553: ac_status=$?
! 8554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8555: (exit $ac_status); } &&
! 8556: { ac_try='test -s conftest.$ac_objext'
! 8557: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8558: (eval $ac_try) 2>&5
! 8559: ac_status=$?
! 8560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8561: (exit $ac_status); }; }; then
1.1 parser 8562: ac_cv_type_size_t=yes
8563: else
1.15 ! paf 8564: echo "$as_me: failed program was:" >&5
! 8565: sed 's/^/| /' conftest.$ac_ext >&5
! 8566:
! 8567: ac_cv_type_size_t=no
! 8568: fi
! 8569: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 8570: fi
1.15 ! paf 8571: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 8572: echo "${ECHO_T}$ac_cv_type_size_t" >&6
! 8573: if test $ac_cv_type_size_t = yes; then
! 8574: :
! 8575: else
1.1 parser 8576:
1.15 ! paf 8577: cat >>confdefs.h <<_ACEOF
1.1 parser 8578: #define size_t unsigned
1.15 ! paf 8579: _ACEOF
1.1 parser 8580:
8581: fi
8582:
8583:
8584:
8585:
1.15 ! paf 8586: ac_config_files="$ac_config_files Makefile"
! 8587: cat >confcache <<\_ACEOF
1.1 parser 8588: # This file is a shell script that caches the results of configure
8589: # tests run on this system so they can be shared between configure
1.15 ! paf 8590: # scripts and configure runs, see configure's option --config-cache.
! 8591: # It is not useful on other systems. If it contains results you don't
! 8592: # want to keep, you may remove or edit it.
1.1 parser 8593: #
1.15 ! paf 8594: # config.status only pays attention to the cache file if you give it
! 8595: # the --recheck option to rerun configure.
1.1 parser 8596: #
1.15 ! paf 8597: # `ac_cv_env_foo' variables (set or unset) will be overridden when
! 8598: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 8599: # following values.
! 8600:
! 8601: _ACEOF
! 8602:
1.1 parser 8603: # The following way of writing the cache mishandles newlines in values,
8604: # but we know of no workaround that is simple, portable, and efficient.
8605: # So, don't put newlines in cache variables' values.
8606: # Ultrix sh set writes to stderr and can't be redirected directly,
8607: # and sets the high bit in the cache file unless we assign to the vars.
1.15 ! paf 8608: {
! 8609: (set) 2>&1 |
! 8610: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 8611: *ac_space=\ *)
! 8612: # `set' does not quote correctly, so add quotes (double-quote
! 8613: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 8614: sed -n \
! 8615: "s/'/'\\\\''/g;
! 8616: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 8617: ;;
! 8618: *)
! 8619: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 8620: sed -n \
! 8621: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 8622: ;;
! 8623: esac;
! 8624: } |
! 8625: sed '
! 8626: t clear
! 8627: : clear
! 8628: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 8629: t end
! 8630: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 8631: : end' >>confcache
! 8632: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 8633: if test -w $cache_file; then
1.15 ! paf 8634: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
! 8635: cat confcache >$cache_file
1.1 parser 8636: else
8637: echo "not updating unwritable cache $cache_file"
8638: fi
8639: fi
8640: rm -f confcache
8641:
8642: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8643: # Let make expand exec_prefix.
8644: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8645:
1.15 ! paf 8646: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 8647: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 8648: # trailing colons and then remove the whole line if VPATH becomes empty
! 8649: # (actually we leave an empty line to preserve line numbers).
1.1 parser 8650: if test "x$srcdir" = x.; then
1.15 ! paf 8651: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 8652: s/:*\$(srcdir):*/:/;
! 8653: s/:*\${srcdir}:*/:/;
! 8654: s/:*@srcdir@:*/:/;
! 8655: s/^\([^=]*=[ ]*\):*/\1/;
! 8656: s/:*$//;
! 8657: s/^[^=]*=[ ]*$//;
! 8658: }'
1.1 parser 8659: fi
8660:
1.15 ! paf 8661: DEFS=-DHAVE_CONFIG_H
! 8662:
! 8663: ac_libobjs=
! 8664: ac_ltlibobjs=
! 8665: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 8666: # 1. Remove the extension, and $U if already installed.
! 8667: ac_i=`echo "$ac_i" |
! 8668: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
! 8669: # 2. Add them.
! 8670: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
! 8671: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
! 8672: done
! 8673: LIBOBJS=$ac_libobjs
! 8674:
! 8675: LTLIBOBJS=$ac_ltlibobjs
! 8676:
1.1 parser 8677:
1.15 ! paf 8678: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
! 8679: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
! 8680: Usually this means the macro was only invoked conditionally." >&5
! 8681: echo "$as_me: error: conditional \"AMDEP\" was never defined.
! 8682: Usually this means the macro was only invoked conditionally." >&2;}
! 8683: { (exit 1); exit 1; }; }
! 8684: fi
! 8685: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
! 8686: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
! 8687: Usually this means the macro was only invoked conditionally." >&5
! 8688: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
! 8689: Usually this means the macro was only invoked conditionally." >&2;}
! 8690: { (exit 1); exit 1; }; }
! 8691: fi
! 8692: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
! 8693: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
! 8694: Usually this means the macro was only invoked conditionally." >&5
! 8695: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
! 8696: Usually this means the macro was only invoked conditionally." >&2;}
! 8697: { (exit 1); exit 1; }; }
! 8698: fi
1.1 parser 8699:
8700: : ${CONFIG_STATUS=./config.status}
1.15 ! paf 8701: ac_clean_files_save=$ac_clean_files
! 8702: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 8703: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 8704: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 8705: cat >$CONFIG_STATUS <<_ACEOF
! 8706: #! $SHELL
! 8707: # Generated by $as_me.
! 8708: # Run this file to recreate the current configuration.
! 8709: # Compiler output produced by configure, useful for debugging
! 8710: # configure, is in config.log if it exists.
! 8711:
! 8712: debug=false
! 8713: ac_cs_recheck=false
! 8714: ac_cs_silent=false
! 8715: SHELL=\${CONFIG_SHELL-$SHELL}
! 8716: _ACEOF
! 8717:
! 8718: cat >>$CONFIG_STATUS <<\_ACEOF
! 8719: ## --------------------- ##
! 8720: ## M4sh Initialization. ##
! 8721: ## --------------------- ##
! 8722:
! 8723: # Be Bourne compatible
! 8724: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 8725: emulate sh
! 8726: NULLCMD=:
! 8727: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 8728: # is contrary to our usage. Disable this feature.
! 8729: alias -g '${1+"$@"}'='"$@"'
! 8730: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 8731: set -o posix
! 8732: fi
! 8733:
! 8734: # Support unset when possible.
! 8735: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 8736: as_unset=unset
! 8737: else
! 8738: as_unset=false
! 8739: fi
! 8740:
! 8741:
! 8742: # Work around bugs in pre-3.0 UWIN ksh.
! 8743: $as_unset ENV MAIL MAILPATH
! 8744: PS1='$ '
! 8745: PS2='> '
! 8746: PS4='+ '
! 8747:
! 8748: # NLS nuisances.
! 8749: for as_var in \
! 8750: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 8751: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 8752: LC_TELEPHONE LC_TIME
! 8753: do
! 8754: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 8755: eval $as_var=C; export $as_var
! 8756: else
! 8757: $as_unset $as_var
! 8758: fi
! 8759: done
! 8760:
! 8761: # Required to use basename.
! 8762: if expr a : '\(a\)' >/dev/null 2>&1; then
! 8763: as_expr=expr
! 8764: else
! 8765: as_expr=false
! 8766: fi
! 8767:
! 8768: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
! 8769: as_basename=basename
! 8770: else
! 8771: as_basename=false
! 8772: fi
! 8773:
! 8774:
! 8775: # Name of the executable.
! 8776: as_me=`$as_basename "$0" ||
! 8777: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 8778: X"$0" : 'X\(//\)$' \| \
! 8779: X"$0" : 'X\(/\)$' \| \
! 8780: . : '\(.\)' 2>/dev/null ||
! 8781: echo X/"$0" |
! 8782: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 8783: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 8784: /^X\/\(\/\).*/{ s//\1/; q; }
! 8785: s/.*/./; q'`
! 8786:
! 8787:
! 8788: # PATH needs CR, and LINENO needs CR and PATH.
! 8789: # Avoid depending upon Character Ranges.
! 8790: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 8791: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 8792: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 8793: as_cr_digits='0123456789'
! 8794: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 8795:
! 8796: # The user is always right.
! 8797: if test "${PATH_SEPARATOR+set}" != set; then
! 8798: echo "#! /bin/sh" >conf$$.sh
! 8799: echo "exit 0" >>conf$$.sh
! 8800: chmod +x conf$$.sh
! 8801: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 8802: PATH_SEPARATOR=';'
! 8803: else
! 8804: PATH_SEPARATOR=:
! 8805: fi
! 8806: rm -f conf$$.sh
! 8807: fi
! 8808:
! 8809:
! 8810: as_lineno_1=$LINENO
! 8811: as_lineno_2=$LINENO
! 8812: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 8813: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 8814: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 8815: # Find who we are. Look in the path if we contain no path at all
! 8816: # relative or not.
! 8817: case $0 in
! 8818: *[\\/]* ) as_myself=$0 ;;
! 8819: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8820: for as_dir in $PATH
! 8821: do
! 8822: IFS=$as_save_IFS
! 8823: test -z "$as_dir" && as_dir=.
! 8824: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 8825: done
! 8826:
! 8827: ;;
! 8828: esac
! 8829: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 8830: # in which case we are not to be found in the path.
! 8831: if test "x$as_myself" = x; then
! 8832: as_myself=$0
! 8833: fi
! 8834: if test ! -f "$as_myself"; then
! 8835: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 8836: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 8837: { (exit 1); exit 1; }; }
! 8838: fi
! 8839: case $CONFIG_SHELL in
! 8840: '')
! 8841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8842: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 8843: do
! 8844: IFS=$as_save_IFS
! 8845: test -z "$as_dir" && as_dir=.
! 8846: for as_base in sh bash ksh sh5; do
! 8847: case $as_dir in
! 8848: /*)
! 8849: if ("$as_dir/$as_base" -c '
! 8850: as_lineno_1=$LINENO
! 8851: as_lineno_2=$LINENO
! 8852: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 8853: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 8854: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 8855: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 8856: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 8857: CONFIG_SHELL=$as_dir/$as_base
! 8858: export CONFIG_SHELL
! 8859: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 8860: fi;;
! 8861: esac
! 8862: done
! 8863: done
! 8864: ;;
! 8865: esac
! 8866:
! 8867: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 8868: # uniformly replaced by the line number. The first 'sed' inserts a
! 8869: # line-number line before each line; the second 'sed' does the real
! 8870: # work. The second script uses 'N' to pair each line-number line
! 8871: # with the numbered line, and appends trailing '-' during
! 8872: # substitution so that $LINENO is not a special case at line end.
! 8873: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 8874: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 8875: sed '=' <$as_myself |
! 8876: sed '
! 8877: N
! 8878: s,$,-,
! 8879: : loop
! 8880: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 8881: t loop
! 8882: s,-$,,
! 8883: s,^['$as_cr_digits']*\n,,
! 8884: ' >$as_me.lineno &&
! 8885: chmod +x $as_me.lineno ||
! 8886: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 8887: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 8888: { (exit 1); exit 1; }; }
! 8889:
! 8890: # Don't try to exec as it changes $[0], causing all sort of problems
! 8891: # (the dirname of $[0] is not the place where we might find the
! 8892: # original and so on. Autoconf is especially sensible to this).
! 8893: . ./$as_me.lineno
! 8894: # Exit status is that of the last command.
! 8895: exit
! 8896: }
! 8897:
! 8898:
! 8899: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 8900: *c*,-n*) ECHO_N= ECHO_C='
! 8901: ' ECHO_T=' ' ;;
! 8902: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 8903: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 8904: esac
! 8905:
! 8906: if expr a : '\(a\)' >/dev/null 2>&1; then
! 8907: as_expr=expr
! 8908: else
! 8909: as_expr=false
! 8910: fi
! 8911:
! 8912: rm -f conf$$ conf$$.exe conf$$.file
! 8913: echo >conf$$.file
! 8914: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 8915: # We could just check for DJGPP; but this test a) works b) is more generic
! 8916: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 8917: if test -f conf$$.exe; then
! 8918: # Don't use ln at all; we don't have any links
! 8919: as_ln_s='cp -p'
! 8920: else
! 8921: as_ln_s='ln -s'
! 8922: fi
! 8923: elif ln conf$$.file conf$$ 2>/dev/null; then
! 8924: as_ln_s=ln
! 8925: else
! 8926: as_ln_s='cp -p'
! 8927: fi
! 8928: rm -f conf$$ conf$$.exe conf$$.file
! 8929:
! 8930: if mkdir -p . 2>/dev/null; then
! 8931: as_mkdir_p=:
! 8932: else
! 8933: as_mkdir_p=false
! 8934: fi
! 8935:
! 8936: as_executable_p="test -f"
! 8937:
! 8938: # Sed expression to map a string onto a valid CPP name.
! 8939: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 8940:
! 8941: # Sed expression to map a string onto a valid variable name.
! 8942: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 8943:
! 8944:
! 8945: # IFS
! 8946: # We need space, tab and new line, in precisely that order.
! 8947: as_nl='
! 8948: '
! 8949: IFS=" $as_nl"
! 8950:
! 8951: # CDPATH.
! 8952: $as_unset CDPATH
! 8953:
! 8954: exec 6>&1
! 8955:
! 8956: # Open the log real soon, to keep \$[0] and so on meaningful, and to
! 8957: # report actual input values of CONFIG_FILES etc. instead of their
! 8958: # values after options handling. Logging --version etc. is OK.
! 8959: exec 5>>config.log
! 8960: {
! 8961: echo
! 8962: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 8963: ## Running $as_me. ##
! 8964: _ASBOX
! 8965: } >&5
! 8966: cat >&5 <<_CSEOF
! 8967:
! 8968: This file was extended by $as_me, which was
! 8969: generated by GNU Autoconf 2.57. Invocation command line was
! 8970:
! 8971: CONFIG_FILES = $CONFIG_FILES
! 8972: CONFIG_HEADERS = $CONFIG_HEADERS
! 8973: CONFIG_LINKS = $CONFIG_LINKS
! 8974: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 8975: $ $0 $@
! 8976:
! 8977: _CSEOF
! 8978: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 8979: echo >&5
! 8980: _ACEOF
! 8981:
! 8982: # Files that config.status was made for.
! 8983: if test -n "$ac_config_files"; then
! 8984: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 8985: fi
! 8986:
! 8987: if test -n "$ac_config_headers"; then
! 8988: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 8989: fi
! 8990:
! 8991: if test -n "$ac_config_links"; then
! 8992: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 8993: fi
! 8994:
! 8995: if test -n "$ac_config_commands"; then
! 8996: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 8997: fi
! 8998:
! 8999: cat >>$CONFIG_STATUS <<\_ACEOF
! 9000:
! 9001: ac_cs_usage="\
! 9002: \`$as_me' instantiates files from templates according to the
! 9003: current configuration.
! 9004:
! 9005: Usage: $0 [OPTIONS] [FILE]...
! 9006:
! 9007: -h, --help print this help, then exit
! 9008: -V, --version print version number, then exit
! 9009: -q, --quiet do not print progress messages
! 9010: -d, --debug don't remove temporary files
! 9011: --recheck update $as_me by reconfiguring in the same conditions
! 9012: --file=FILE[:TEMPLATE]
! 9013: instantiate the configuration file FILE
! 9014: --header=FILE[:TEMPLATE]
! 9015: instantiate the configuration header FILE
! 9016:
! 9017: Configuration files:
! 9018: $config_files
! 9019:
! 9020: Configuration headers:
! 9021: $config_headers
! 9022:
! 9023: Configuration commands:
! 9024: $config_commands
! 9025:
! 9026: Report bugs to <bug-autoconf@gnu.org>."
! 9027: _ACEOF
! 9028:
! 9029: cat >>$CONFIG_STATUS <<_ACEOF
! 9030: ac_cs_version="\\
! 9031: config.status
! 9032: configured by $0, generated by GNU Autoconf 2.57,
! 9033: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
! 9034:
! 9035: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 9036: Free Software Foundation, Inc.
! 9037: This config.status script is free software; the Free Software Foundation
! 9038: gives unlimited permission to copy, distribute and modify it."
! 9039: srcdir=$srcdir
! 9040: INSTALL="$INSTALL"
! 9041: _ACEOF
! 9042:
! 9043: cat >>$CONFIG_STATUS <<\_ACEOF
! 9044: # If no file are specified by the user, then we need to provide default
! 9045: # value. By we need to know if files were specified by the user.
! 9046: ac_need_defaults=:
! 9047: while test $# != 0
! 9048: do
! 9049: case $1 in
! 9050: --*=*)
! 9051: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 9052: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
! 9053: ac_shift=:
! 9054: ;;
! 9055: -*)
! 9056: ac_option=$1
! 9057: ac_optarg=$2
! 9058: ac_shift=shift
! 9059: ;;
! 9060: *) # This is not an option, so the user has probably given explicit
! 9061: # arguments.
! 9062: ac_option=$1
! 9063: ac_need_defaults=false;;
! 9064: esac
! 9065:
! 9066: case $ac_option in
! 9067: # Handling of the options.
! 9068: _ACEOF
! 9069: cat >>$CONFIG_STATUS <<\_ACEOF
! 9070: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 9071: ac_cs_recheck=: ;;
! 9072: --version | --vers* | -V )
! 9073: echo "$ac_cs_version"; exit 0 ;;
! 9074: --he | --h)
! 9075: # Conflict between --help and --header
! 9076: { { echo "$as_me:$LINENO: error: ambiguous option: $1
! 9077: Try \`$0 --help' for more information." >&5
! 9078: echo "$as_me: error: ambiguous option: $1
! 9079: Try \`$0 --help' for more information." >&2;}
! 9080: { (exit 1); exit 1; }; };;
! 9081: --help | --hel | -h )
! 9082: echo "$ac_cs_usage"; exit 0 ;;
! 9083: --debug | --d* | -d )
! 9084: debug=: ;;
! 9085: --file | --fil | --fi | --f )
! 9086: $ac_shift
! 9087: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
! 9088: ac_need_defaults=false;;
! 9089: --header | --heade | --head | --hea )
! 9090: $ac_shift
! 9091: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
! 9092: ac_need_defaults=false;;
! 9093: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 9094: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 9095: ac_cs_silent=: ;;
! 9096:
! 9097: # This is an error.
! 9098: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
! 9099: Try \`$0 --help' for more information." >&5
! 9100: echo "$as_me: error: unrecognized option: $1
! 9101: Try \`$0 --help' for more information." >&2;}
! 9102: { (exit 1); exit 1; }; } ;;
! 9103:
! 9104: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9105:
1.15 ! paf 9106: esac
! 9107: shift
! 9108: done
! 9109:
! 9110: ac_configure_extra_args=
! 9111:
! 9112: if $ac_cs_silent; then
! 9113: exec 6>/dev/null
! 9114: ac_configure_extra_args="$ac_configure_extra_args --silent"
! 9115: fi
! 9116:
! 9117: _ACEOF
! 9118: cat >>$CONFIG_STATUS <<_ACEOF
! 9119: if \$ac_cs_recheck; then
! 9120: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 9121: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 9122: fi
! 9123:
! 9124: _ACEOF
! 9125:
! 9126: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9127: #
1.15 ! paf 9128: # INIT-COMMANDS section.
1.1 parser 9129: #
9130:
1.15 ! paf 9131: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
! 9132:
! 9133: _ACEOF
! 9134:
! 9135:
! 9136:
! 9137: cat >>$CONFIG_STATUS <<\_ACEOF
! 9138: for ac_config_target in $ac_config_targets
1.1 parser 9139: do
1.15 ! paf 9140: case "$ac_config_target" in
! 9141: # Handling of arguments.
! 9142: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 9143: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 9144: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 9145: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 9146: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 9147: { (exit 1); exit 1; }; };;
1.1 parser 9148: esac
9149: done
9150:
1.15 ! paf 9151: # If the user did not use the arguments to specify the items to instantiate,
! 9152: # then the envvar interface is used. Set only those that are not.
! 9153: # We use the long form for the default assignment because of an extremely
! 9154: # bizarre bug on SunOS 4.1.3.
! 9155: if $ac_need_defaults; then
! 9156: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 9157: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 9158: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
! 9159: fi
! 9160:
! 9161: # Have a temporary directory for convenience. Make it in the build tree
! 9162: # simply because there is no reason to put it here, and in addition,
! 9163: # creating and moving files from /tmp can sometimes cause problems.
! 9164: # Create a temporary directory, and hook for its removal unless debugging.
! 9165: $debug ||
! 9166: {
! 9167: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 9168: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 9169: }
! 9170:
! 9171: # Create a (secure) tmp directory for tmp files.
! 9172:
! 9173: {
! 9174: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
! 9175: test -n "$tmp" && test -d "$tmp"
! 9176: } ||
! 9177: {
! 9178: tmp=./confstat$$-$RANDOM
! 9179: (umask 077 && mkdir $tmp)
! 9180: } ||
! 9181: {
! 9182: echo "$me: cannot create a temporary directory in ." >&2
! 9183: { (exit 1); exit 1; }
! 9184: }
! 9185:
! 9186: _ACEOF
1.1 parser 9187:
1.15 ! paf 9188: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9189:
1.15 ! paf 9190: #
! 9191: # CONFIG_FILES section.
! 9192: #
1.1 parser 9193:
1.15 ! paf 9194: # No need to generate the scripts if there are no CONFIG_FILES.
! 9195: # This happens for instance when ./config.status config.h
! 9196: if test -n "\$CONFIG_FILES"; then
! 9197: # Protect against being on the right side of a sed subst in config.status.
! 9198: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 9199: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 9200: s,@SHELL@,$SHELL,;t t
! 9201: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 9202: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 9203: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 9204: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 9205: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 9206: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 9207: s,@exec_prefix@,$exec_prefix,;t t
! 9208: s,@prefix@,$prefix,;t t
! 9209: s,@program_transform_name@,$program_transform_name,;t t
! 9210: s,@bindir@,$bindir,;t t
! 9211: s,@sbindir@,$sbindir,;t t
! 9212: s,@libexecdir@,$libexecdir,;t t
! 9213: s,@datadir@,$datadir,;t t
! 9214: s,@sysconfdir@,$sysconfdir,;t t
! 9215: s,@sharedstatedir@,$sharedstatedir,;t t
! 9216: s,@localstatedir@,$localstatedir,;t t
! 9217: s,@libdir@,$libdir,;t t
! 9218: s,@includedir@,$includedir,;t t
! 9219: s,@oldincludedir@,$oldincludedir,;t t
! 9220: s,@infodir@,$infodir,;t t
! 9221: s,@mandir@,$mandir,;t t
! 9222: s,@build_alias@,$build_alias,;t t
! 9223: s,@host_alias@,$host_alias,;t t
! 9224: s,@target_alias@,$target_alias,;t t
! 9225: s,@DEFS@,$DEFS,;t t
! 9226: s,@ECHO_C@,$ECHO_C,;t t
! 9227: s,@ECHO_N@,$ECHO_N,;t t
! 9228: s,@ECHO_T@,$ECHO_T,;t t
! 9229: s,@LIBS@,$LIBS,;t t
! 9230: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! 9231: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! 9232: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
! 9233: s,@CYGPATH_W@,$CYGPATH_W,;t t
! 9234: s,@PACKAGE@,$PACKAGE,;t t
! 9235: s,@VERSION@,$VERSION,;t t
! 9236: s,@ACLOCAL@,$ACLOCAL,;t t
! 9237: s,@AUTOCONF@,$AUTOCONF,;t t
! 9238: s,@AUTOMAKE@,$AUTOMAKE,;t t
! 9239: s,@AUTOHEADER@,$AUTOHEADER,;t t
! 9240: s,@MAKEINFO@,$MAKEINFO,;t t
! 9241: s,@AMTAR@,$AMTAR,;t t
! 9242: s,@install_sh@,$install_sh,;t t
! 9243: s,@STRIP@,$STRIP,;t t
! 9244: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 9245: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
! 9246: s,@AWK@,$AWK,;t t
! 9247: s,@SET_MAKE@,$SET_MAKE,;t t
! 9248: s,@MYSQL_INC@,$MYSQL_INC,;t t
! 9249: s,@CXX@,$CXX,;t t
! 9250: s,@CXXFLAGS@,$CXXFLAGS,;t t
! 9251: s,@LDFLAGS@,$LDFLAGS,;t t
! 9252: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 9253: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
! 9254: s,@EXEEXT@,$EXEEXT,;t t
! 9255: s,@OBJEXT@,$OBJEXT,;t t
! 9256: s,@DEPDIR@,$DEPDIR,;t t
! 9257: s,@am__include@,$am__include,;t t
! 9258: s,@am__quote@,$am__quote,;t t
! 9259: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
! 9260: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
! 9261: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
! 9262: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
! 9263: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
! 9264: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
! 9265: s,@INCLTDL@,$INCLTDL,;t t
! 9266: s,@LIBLTDL@,$LIBLTDL,;t t
! 9267: s,@LIBADD_DL@,$LIBADD_DL,;t t
! 9268: s,@build@,$build,;t t
! 9269: s,@build_cpu@,$build_cpu,;t t
! 9270: s,@build_vendor@,$build_vendor,;t t
! 9271: s,@build_os@,$build_os,;t t
! 9272: s,@host@,$host,;t t
! 9273: s,@host_cpu@,$host_cpu,;t t
! 9274: s,@host_vendor@,$host_vendor,;t t
! 9275: s,@host_os@,$host_os,;t t
! 9276: s,@CC@,$CC,;t t
! 9277: s,@CFLAGS@,$CFLAGS,;t t
! 9278: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 9279: s,@CCDEPMODE@,$CCDEPMODE,;t t
! 9280: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
! 9281: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
! 9282: s,@LN_S@,$LN_S,;t t
! 9283: s,@ECHO@,$ECHO,;t t
! 9284: s,@RANLIB@,$RANLIB,;t t
! 9285: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 9286: s,@CXXCPP@,$CXXCPP,;t t
! 9287: s,@EGREP@,$EGREP,;t t
! 9288: s,@LIBTOOL@,$LIBTOOL,;t t
! 9289: s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
! 9290: s,@subdirs@,$subdirs,;t t
! 9291: s,@LIBOBJS@,$LIBOBJS,;t t
! 9292: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9293: CEOF
9294:
1.15 ! paf 9295: _ACEOF
1.1 parser 9296:
1.15 ! paf 9297: cat >>$CONFIG_STATUS <<\_ACEOF
! 9298: # Split the substitutions into bite-sized pieces for seds with
! 9299: # small command number limits, like on Digital OSF/1 and HP-UX.
! 9300: ac_max_sed_lines=48
! 9301: ac_sed_frag=1 # Number of current file.
! 9302: ac_beg=1 # First line for current file.
! 9303: ac_end=$ac_max_sed_lines # Line after last line for current file.
! 9304: ac_more_lines=:
! 9305: ac_sed_cmds=
! 9306: while $ac_more_lines; do
! 9307: if test $ac_beg -gt 1; then
! 9308: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 9309: else
! 9310: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 9311: fi
! 9312: if test ! -s $tmp/subs.frag; then
! 9313: ac_more_lines=false
! 9314: else
! 9315: # The purpose of the label and of the branching condition is to
! 9316: # speed up the sed processing (if there are no `@' at all, there
! 9317: # is no need to browse any of the substitutions).
! 9318: # These are the two extra sed commands mentioned above.
! 9319: (echo ':t
! 9320: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
! 9321: if test -z "$ac_sed_cmds"; then
! 9322: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
! 9323: else
! 9324: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
! 9325: fi
! 9326: ac_sed_frag=`expr $ac_sed_frag + 1`
! 9327: ac_beg=$ac_end
! 9328: ac_end=`expr $ac_end + $ac_max_sed_lines`
! 9329: fi
! 9330: done
! 9331: if test -z "$ac_sed_cmds"; then
! 9332: ac_sed_cmds=cat
1.1 parser 9333: fi
1.15 ! paf 9334: fi # test -n "$CONFIG_FILES"
1.1 parser 9335:
1.15 ! paf 9336: _ACEOF
! 9337: cat >>$CONFIG_STATUS <<\_ACEOF
! 9338: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
! 9339: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 9340: case $ac_file in
! 9341: - | *:- | *:-:* ) # input from stdin
! 9342: cat >$tmp/stdin
! 9343: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9344: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9345: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9346: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9347: * ) ac_file_in=$ac_file.in ;;
! 9348: esac
1.1 parser 9349:
1.15 ! paf 9350: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 9351: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 9352: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9353: X"$ac_file" : 'X\(//\)[^/]' \| \
! 9354: X"$ac_file" : 'X\(//\)$' \| \
! 9355: X"$ac_file" : 'X\(/\)' \| \
! 9356: . : '\(.\)' 2>/dev/null ||
! 9357: echo X"$ac_file" |
! 9358: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9359: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9360: /^X\(\/\/\)$/{ s//\1/; q; }
! 9361: /^X\(\/\).*/{ s//\1/; q; }
! 9362: s/.*/./; q'`
! 9363: { if $as_mkdir_p; then
! 9364: mkdir -p "$ac_dir"
! 9365: else
! 9366: as_dir="$ac_dir"
! 9367: as_dirs=
! 9368: while test ! -d "$as_dir"; do
! 9369: as_dirs="$as_dir $as_dirs"
! 9370: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9371: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9372: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9373: X"$as_dir" : 'X\(//\)$' \| \
! 9374: X"$as_dir" : 'X\(/\)' \| \
! 9375: . : '\(.\)' 2>/dev/null ||
! 9376: echo X"$as_dir" |
! 9377: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9378: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9379: /^X\(\/\/\)$/{ s//\1/; q; }
! 9380: /^X\(\/\).*/{ s//\1/; q; }
! 9381: s/.*/./; q'`
! 9382: done
! 9383: test ! -n "$as_dirs" || mkdir $as_dirs
! 9384: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9385: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9386: { (exit 1); exit 1; }; }; }
! 9387:
! 9388: ac_builddir=.
! 9389:
! 9390: if test "$ac_dir" != .; then
! 9391: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9392: # A "../" for each directory in $ac_dir_suffix.
! 9393: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9394: else
! 9395: ac_dir_suffix= ac_top_builddir=
! 9396: fi
! 9397:
! 9398: case $srcdir in
! 9399: .) # No --srcdir option. We are building in place.
! 9400: ac_srcdir=.
! 9401: if test -z "$ac_top_builddir"; then
! 9402: ac_top_srcdir=.
! 9403: else
! 9404: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9405: fi ;;
! 9406: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9407: ac_srcdir=$srcdir$ac_dir_suffix;
! 9408: ac_top_srcdir=$srcdir ;;
1.1 parser 9409: *) # Relative path.
1.15 ! paf 9410: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9411: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9412: esac
! 9413: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9414: # absolute.
! 9415: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9416: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 9417: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9418: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9419:
! 9420:
! 9421: case $INSTALL in
! 9422: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
! 9423: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9424: esac
9425:
1.15 ! paf 9426: if test x"$ac_file" != x-; then
! 9427: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 9428: echo "$as_me: creating $ac_file" >&6;}
! 9429: rm -f "$ac_file"
! 9430: fi
! 9431: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 9432: # use $as_me), people would be surprised to read:
! 9433: # /* config.h. Generated by config.status. */
! 9434: if test x"$ac_file" = x-; then
! 9435: configure_input=
! 9436: else
! 9437: configure_input="$ac_file. "
! 9438: fi
! 9439: configure_input=$configure_input"Generated from `echo $ac_file_in |
! 9440: sed 's,.*/,,'` by configure."
! 9441:
! 9442: # First look for the input files in the build tree, otherwise in the
! 9443: # src tree.
! 9444: ac_file_inputs=`IFS=:
! 9445: for f in $ac_file_in; do
! 9446: case $f in
! 9447: -) echo $tmp/stdin ;;
! 9448: [\\/$]*)
! 9449: # Absolute (can't be DOS-style, as IFS=:)
! 9450: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9451: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9452: { (exit 1); exit 1; }; }
! 9453: echo $f;;
! 9454: *) # Relative
! 9455: if test -f "$f"; then
! 9456: # Build tree
! 9457: echo $f
! 9458: elif test -f "$srcdir/$f"; then
! 9459: # Source tree
! 9460: echo $srcdir/$f
! 9461: else
! 9462: # /dev/null tree
! 9463: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9464: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9465: { (exit 1); exit 1; }; }
! 9466: fi;;
! 9467: esac
! 9468: done` || { (exit 1); exit 1; }
! 9469: _ACEOF
! 9470: cat >>$CONFIG_STATUS <<_ACEOF
! 9471: sed "$ac_vpsub
! 9472: $extrasub
! 9473: _ACEOF
! 9474: cat >>$CONFIG_STATUS <<\_ACEOF
! 9475: :t
! 9476: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 9477: s,@configure_input@,$configure_input,;t t
! 9478: s,@srcdir@,$ac_srcdir,;t t
! 9479: s,@abs_srcdir@,$ac_abs_srcdir,;t t
! 9480: s,@top_srcdir@,$ac_top_srcdir,;t t
! 9481: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! 9482: s,@builddir@,$ac_builddir,;t t
! 9483: s,@abs_builddir@,$ac_abs_builddir,;t t
! 9484: s,@top_builddir@,$ac_top_builddir,;t t
! 9485: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
! 9486: s,@INSTALL@,$ac_INSTALL,;t t
! 9487: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 9488: rm -f $tmp/stdin
! 9489: if test x"$ac_file" != x-; then
! 9490: mv $tmp/out $ac_file
! 9491: else
! 9492: cat $tmp/out
! 9493: rm -f $tmp/out
! 9494: fi
! 9495:
! 9496: done
! 9497: _ACEOF
! 9498: cat >>$CONFIG_STATUS <<\_ACEOF
! 9499:
! 9500: #
! 9501: # CONFIG_HEADER section.
! 9502: #
1.1 parser 9503:
9504: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9505: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9506: #
9507: # ac_d sets the value in "#define NAME VALUE" lines.
1.15 ! paf 9508: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 9509: ac_dB='[ ].*$,\1#\2'
! 9510: ac_dC=' '
! 9511: ac_dD=',;t'
! 9512: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 9513: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 9514: ac_uB='$,\1#\2define\3'
1.1 parser 9515: ac_uC=' '
1.15 ! paf 9516: ac_uD=',;t'
1.1 parser 9517:
1.15 ! paf 9518: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9519: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.15 ! paf 9520: case $ac_file in
! 9521: - | *:- | *:-:* ) # input from stdin
! 9522: cat >$tmp/stdin
! 9523: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9524: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9525: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9526: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 9527: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9528: esac
9529:
1.15 ! paf 9530: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! 9531: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9532:
1.15 ! paf 9533: # First look for the input files in the build tree, otherwise in the
! 9534: # src tree.
! 9535: ac_file_inputs=`IFS=:
! 9536: for f in $ac_file_in; do
! 9537: case $f in
! 9538: -) echo $tmp/stdin ;;
! 9539: [\\/$]*)
! 9540: # Absolute (can't be DOS-style, as IFS=:)
! 9541: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9542: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9543: { (exit 1); exit 1; }; }
! 9544: echo $f;;
! 9545: *) # Relative
! 9546: if test -f "$f"; then
! 9547: # Build tree
! 9548: echo $f
! 9549: elif test -f "$srcdir/$f"; then
! 9550: # Source tree
! 9551: echo $srcdir/$f
! 9552: else
! 9553: # /dev/null tree
! 9554: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 9555: echo "$as_me: error: cannot find input file: $f" >&2;}
! 9556: { (exit 1); exit 1; }; }
! 9557: fi;;
! 9558: esac
! 9559: done` || { (exit 1); exit 1; }
! 9560: # Remove the trailing spaces.
! 9561: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
! 9562:
! 9563: _ACEOF
! 9564:
! 9565: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 9566: # `conftest.undefs', that substitutes the proper values into
! 9567: # config.h.in to produce config.h. The first handles `#define'
! 9568: # templates, and the second `#undef' templates.
! 9569: # And first: Protect against being on the right side of a sed subst in
! 9570: # config.status. Protect against being in an unquoted here document
! 9571: # in config.status.
! 9572: rm -f conftest.defines conftest.undefs
! 9573: # Using a here document instead of a string reduces the quoting nightmare.
! 9574: # Putting comments in sed scripts is not portable.
! 9575: #
! 9576: # `end' is used to avoid that the second main sed command (meant for
! 9577: # 0-ary CPP macros) applies to n-ary macro definitions.
! 9578: # See the Autoconf documentation for `clear'.
! 9579: cat >confdef2sed.sed <<\_ACEOF
! 9580: s/[\\&,]/\\&/g
! 9581: s,[\\$`],\\&,g
! 9582: t clear
! 9583: : clear
! 9584: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! 9585: t end
! 9586: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 9587: : end
! 9588: _ACEOF
! 9589: # If some macros were called several times there might be several times
! 9590: # the same #defines, which is useless. Nevertheless, we may not want to
! 9591: # sort them, since we want the *last* AC-DEFINE to be honored.
! 9592: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 9593: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 9594: rm -f confdef2sed.sed
1.1 parser 9595:
9596: # This sed command replaces #undef with comments. This is necessary, for
9597: # example, in the case of _POSIX_SOURCE, which is predefined and required
9598: # on some systems where configure will not decide to define it.
1.15 ! paf 9599: cat >>conftest.undefs <<\_ACEOF
! 9600: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
! 9601: _ACEOF
! 9602:
! 9603: # Break up conftest.defines because some shells have a limit on the size
! 9604: # of here documents, and old seds have small limits too (100 cmds).
! 9605: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 9606: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 9607: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 9608: echo ' :' >>$CONFIG_STATUS
! 9609: rm -f conftest.tail
! 9610: while grep . conftest.defines >/dev/null
! 9611: do
! 9612: # Write a limited-size here document to $tmp/defines.sed.
! 9613: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 9614: # Speed up: don't consider the non `#define' lines.
! 9615: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 9616: # Work around the forget-to-reset-the-flag bug.
! 9617: echo 't clr' >>$CONFIG_STATUS
! 9618: echo ': clr' >>$CONFIG_STATUS
! 9619: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 9620: echo 'CEOF
! 9621: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 9622: rm -f $tmp/in
! 9623: mv $tmp/out $tmp/in
! 9624: ' >>$CONFIG_STATUS
! 9625: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 9626: rm -f conftest.defines
! 9627: mv conftest.tail conftest.defines
! 9628: done
! 9629: rm -f conftest.defines
! 9630: echo ' fi # grep' >>$CONFIG_STATUS
! 9631: echo >>$CONFIG_STATUS
! 9632:
! 9633: # Break up conftest.undefs because some shells have a limit on the size
! 9634: # of here documents, and old seds have small limits too (100 cmds).
! 9635: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 9636: rm -f conftest.tail
1.15 ! paf 9637: while grep . conftest.undefs >/dev/null
1.1 parser 9638: do
1.15 ! paf 9639: # Write a limited-size here document to $tmp/undefs.sed.
! 9640: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 9641: # Speed up: don't consider the non `#undef'
! 9642: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 9643: # Work around the forget-to-reset-the-flag bug.
! 9644: echo 't clr' >>$CONFIG_STATUS
! 9645: echo ': clr' >>$CONFIG_STATUS
! 9646: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 9647: echo 'CEOF
1.15 ! paf 9648: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 9649: rm -f $tmp/in
! 9650: mv $tmp/out $tmp/in
! 9651: ' >>$CONFIG_STATUS
! 9652: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 9653: rm -f conftest.undefs
! 9654: mv conftest.tail conftest.undefs
! 9655: done
! 9656: rm -f conftest.undefs
! 9657:
! 9658: cat >>$CONFIG_STATUS <<\_ACEOF
! 9659: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 9660: # use $as_me), people would be surprised to read:
! 9661: # /* config.h. Generated by config.status. */
! 9662: if test x"$ac_file" = x-; then
! 9663: echo "/* Generated by configure. */" >$tmp/config.h
! 9664: else
! 9665: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
! 9666: fi
! 9667: cat $tmp/in >>$tmp/config.h
! 9668: rm -f $tmp/in
! 9669: if test x"$ac_file" != x-; then
! 9670: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
! 9671: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 9672: echo "$as_me: $ac_file is unchanged" >&6;}
! 9673: else
! 9674: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 9675: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9676: X"$ac_file" : 'X\(//\)[^/]' \| \
! 9677: X"$ac_file" : 'X\(//\)$' \| \
! 9678: X"$ac_file" : 'X\(/\)' \| \
! 9679: . : '\(.\)' 2>/dev/null ||
! 9680: echo X"$ac_file" |
! 9681: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9682: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9683: /^X\(\/\/\)$/{ s//\1/; q; }
! 9684: /^X\(\/\).*/{ s//\1/; q; }
! 9685: s/.*/./; q'`
! 9686: { if $as_mkdir_p; then
! 9687: mkdir -p "$ac_dir"
! 9688: else
! 9689: as_dir="$ac_dir"
! 9690: as_dirs=
! 9691: while test ! -d "$as_dir"; do
! 9692: as_dirs="$as_dir $as_dirs"
! 9693: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9694: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9695: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9696: X"$as_dir" : 'X\(//\)$' \| \
! 9697: X"$as_dir" : 'X\(/\)' \| \
! 9698: . : '\(.\)' 2>/dev/null ||
! 9699: echo X"$as_dir" |
! 9700: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9701: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9702: /^X\(\/\/\)$/{ s//\1/; q; }
! 9703: /^X\(\/\).*/{ s//\1/; q; }
! 9704: s/.*/./; q'`
! 9705: done
! 9706: test ! -n "$as_dirs" || mkdir $as_dirs
! 9707: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9708: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9709: { (exit 1); exit 1; }; }; }
! 9710:
! 9711: rm -f $ac_file
! 9712: mv $tmp/config.h $ac_file
1.1 parser 9713: fi
1.15 ! paf 9714: else
! 9715: cat $tmp/config.h
! 9716: rm -f $tmp/config.h
1.1 parser 9717: fi
1.15 ! paf 9718: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
! 9719: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
! 9720: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9721: X$ac_file : 'X\(//\)[^/]' \| \
! 9722: X$ac_file : 'X\(//\)$' \| \
! 9723: X$ac_file : 'X\(/\)' \| \
! 9724: . : '\(.\)' 2>/dev/null ||
! 9725: echo X$ac_file |
! 9726: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9727: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9728: /^X\(\/\/\)$/{ s//\1/; q; }
! 9729: /^X\(\/\).*/{ s//\1/; q; }
! 9730: s/.*/./; q'`/stamp-h$_am_stamp_count
! 9731: done
! 9732: _ACEOF
! 9733: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9734:
1.15 ! paf 9735: #
! 9736: # CONFIG_COMMANDS section.
! 9737: #
! 9738: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 9739: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 9740: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 9741: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 9742: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9743: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 9744: X"$ac_dest" : 'X\(//\)$' \| \
! 9745: X"$ac_dest" : 'X\(/\)' \| \
! 9746: . : '\(.\)' 2>/dev/null ||
! 9747: echo X"$ac_dest" |
! 9748: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9749: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9750: /^X\(\/\/\)$/{ s//\1/; q; }
! 9751: /^X\(\/\).*/{ s//\1/; q; }
! 9752: s/.*/./; q'`
! 9753: ac_builddir=.
! 9754:
! 9755: if test "$ac_dir" != .; then
! 9756: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9757: # A "../" for each directory in $ac_dir_suffix.
! 9758: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9759: else
! 9760: ac_dir_suffix= ac_top_builddir=
! 9761: fi
! 9762:
! 9763: case $srcdir in
! 9764: .) # No --srcdir option. We are building in place.
! 9765: ac_srcdir=.
! 9766: if test -z "$ac_top_builddir"; then
! 9767: ac_top_srcdir=.
! 9768: else
! 9769: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9770: fi ;;
! 9771: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9772: ac_srcdir=$srcdir$ac_dir_suffix;
! 9773: ac_top_srcdir=$srcdir ;;
! 9774: *) # Relative path.
! 9775: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9776: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9777: esac
! 9778: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9779: # absolute.
! 9780: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9781: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 9782: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9783: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9784:
! 9785:
! 9786: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 9787: echo "$as_me: executing $ac_dest commands" >&6;}
! 9788: case $ac_dest in
! 9789: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
! 9790: # Strip MF so we end up with the name of the file.
! 9791: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 9792: # Check whether this is an Automake generated Makefile or not.
! 9793: # We used to match only the files named `Makefile.in', but
! 9794: # some people rename them; so instead we look at the file content.
! 9795: # Grep'ing the first line is not enough: some people post-process
! 9796: # each Makefile.in and add a new line on top of each file to say so.
! 9797: # So let's grep whole file.
! 9798: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
! 9799: dirpart=`(dirname "$mf") 2>/dev/null ||
! 9800: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9801: X"$mf" : 'X\(//\)[^/]' \| \
! 9802: X"$mf" : 'X\(//\)$' \| \
! 9803: X"$mf" : 'X\(/\)' \| \
! 9804: . : '\(.\)' 2>/dev/null ||
! 9805: echo X"$mf" |
! 9806: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9807: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9808: /^X\(\/\/\)$/{ s//\1/; q; }
! 9809: /^X\(\/\).*/{ s//\1/; q; }
! 9810: s/.*/./; q'`
! 9811: else
! 9812: continue
! 9813: fi
! 9814: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
! 9815: # Extract the definition of DEP_FILES from the Makefile without
! 9816: # running `make'.
! 9817: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
! 9818: test -z "$DEPDIR" && continue
! 9819: # When using ansi2knr, U may be empty or an underscore; expand it
! 9820: U=`sed -n -e '/^U = / s///p' < "$mf"`
! 9821: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
! 9822: # We invoke sed twice because it is the simplest approach to
! 9823: # changing $(DEPDIR) to its actual value in the expansion.
! 9824: for file in `sed -n -e '
! 9825: /^DEP_FILES = .*\\\\$/ {
! 9826: s/^DEP_FILES = //
! 9827: :loop
! 9828: s/\\\\$//
! 9829: p
! 9830: n
! 9831: /\\\\$/ b loop
! 9832: p
! 9833: }
! 9834: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
! 9835: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 9836: # Make sure the directory exists.
! 9837: test -f "$dirpart/$file" && continue
! 9838: fdir=`(dirname "$file") 2>/dev/null ||
! 9839: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9840: X"$file" : 'X\(//\)[^/]' \| \
! 9841: X"$file" : 'X\(//\)$' \| \
! 9842: X"$file" : 'X\(/\)' \| \
! 9843: . : '\(.\)' 2>/dev/null ||
! 9844: echo X"$file" |
! 9845: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9846: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9847: /^X\(\/\/\)$/{ s//\1/; q; }
! 9848: /^X\(\/\).*/{ s//\1/; q; }
! 9849: s/.*/./; q'`
! 9850: { if $as_mkdir_p; then
! 9851: mkdir -p $dirpart/$fdir
! 9852: else
! 9853: as_dir=$dirpart/$fdir
! 9854: as_dirs=
! 9855: while test ! -d "$as_dir"; do
! 9856: as_dirs="$as_dir $as_dirs"
! 9857: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9858: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9859: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9860: X"$as_dir" : 'X\(//\)$' \| \
! 9861: X"$as_dir" : 'X\(/\)' \| \
! 9862: . : '\(.\)' 2>/dev/null ||
! 9863: echo X"$as_dir" |
! 9864: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9865: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9866: /^X\(\/\/\)$/{ s//\1/; q; }
! 9867: /^X\(\/\).*/{ s//\1/; q; }
! 9868: s/.*/./; q'`
! 9869: done
! 9870: test ! -n "$as_dirs" || mkdir $as_dirs
! 9871: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
! 9872: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
! 9873: { (exit 1); exit 1; }; }; }
1.1 parser 9874:
1.15 ! paf 9875: # echo "creating $dirpart/$file"
! 9876: echo '# dummy' > "$dirpart/$file"
! 9877: done
! 9878: done
! 9879: ;;
! 9880: esac
! 9881: done
! 9882: _ACEOF
1.1 parser 9883:
1.15 ! paf 9884: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9885:
1.15 ! paf 9886: { (exit 0); exit 0; }
! 9887: _ACEOF
1.1 parser 9888: chmod +x $CONFIG_STATUS
1.15 ! paf 9889: ac_clean_files=$ac_clean_files_save
! 9890:
! 9891:
! 9892: # configure is writing to config.log, and then calls config.status.
! 9893: # config.status does its own redirection, appending to config.log.
! 9894: # Unfortunately, on DOS this fails, as config.log is still kept open
! 9895: # by configure, so config.status won't be able to write to it; its
! 9896: # output is simply discarded. So we exec the FD to /dev/null,
! 9897: # effectively closing config.log, so it can be properly (re)opened and
! 9898: # appended to by config.status. When coming back to configure, we
! 9899: # need to make the FD available again.
! 9900: if test "$no_create" != yes; then
! 9901: ac_cs_success=:
! 9902: ac_config_status_args=
! 9903: test "$silent" = yes &&
! 9904: ac_config_status_args="$ac_config_status_args --quiet"
! 9905: exec 5>/dev/null
! 9906: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
! 9907: exec 5>>config.log
! 9908: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
! 9909: # would make configure fail if this is the last instruction.
! 9910: $ac_cs_success || { (exit 1); exit 1; }
! 9911: fi
1.1 parser 9912:
1.15 ! paf 9913: #
! 9914: # CONFIG_SUBDIRS section.
! 9915: #
1.1 parser 9916: if test "$no_recursion" != yes; then
9917:
9918: # Remove --cache-file and --srcdir arguments so they do not pile up.
9919: ac_sub_configure_args=
9920: ac_prev=
9921: for ac_arg in $ac_configure_args; do
9922: if test -n "$ac_prev"; then
9923: ac_prev=
9924: continue
9925: fi
1.15 ! paf 9926: case $ac_arg in
1.1 parser 9927: -cache-file | --cache-file | --cache-fil | --cache-fi \
9928: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9929: ac_prev=cache_file ;;
9930: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 ! paf 9931: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
! 9932: | --c=*)
! 9933: ;;
! 9934: --config-cache | -C)
1.1 parser 9935: ;;
9936: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9937: ac_prev=srcdir ;;
9938: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9939: ;;
1.15 ! paf 9940: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
! 9941: ac_prev=prefix ;;
! 9942: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
! 9943: ;;
1.1 parser 9944: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9945: esac
9946: done
9947:
1.15 ! paf 9948: # Always prepend --prefix to ensure using the same prefix
! 9949: # in subdir configurations.
! 9950: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
! 9951:
! 9952: ac_popdir=`pwd`
! 9953: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 9954:
9955: # Do not complain, so a configure script can configure whichever
9956: # parts of a large source tree are present.
1.15 ! paf 9957: test -d $srcdir/$ac_dir || continue
1.1 parser 9958:
1.15 ! paf 9959: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
! 9960: echo "$as_me: configuring in $ac_dir" >&6;}
! 9961: { if $as_mkdir_p; then
! 9962: mkdir -p "$ac_dir"
! 9963: else
! 9964: as_dir="$ac_dir"
! 9965: as_dirs=
! 9966: while test ! -d "$as_dir"; do
! 9967: as_dirs="$as_dir $as_dirs"
! 9968: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 9969: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9970: X"$as_dir" : 'X\(//\)[^/]' \| \
! 9971: X"$as_dir" : 'X\(//\)$' \| \
! 9972: X"$as_dir" : 'X\(/\)' \| \
! 9973: . : '\(.\)' 2>/dev/null ||
! 9974: echo X"$as_dir" |
! 9975: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9976: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9977: /^X\(\/\/\)$/{ s//\1/; q; }
! 9978: /^X\(\/\).*/{ s//\1/; q; }
! 9979: s/.*/./; q'`
! 9980: done
! 9981: test ! -n "$as_dirs" || mkdir $as_dirs
! 9982: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 9983: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 9984: { (exit 1); exit 1; }; }; }
! 9985:
! 9986: ac_builddir=.
! 9987:
! 9988: if test "$ac_dir" != .; then
! 9989: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9990: # A "../" for each directory in $ac_dir_suffix.
! 9991: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9992: else
! 9993: ac_dir_suffix= ac_top_builddir=
! 9994: fi
! 9995:
! 9996: case $srcdir in
! 9997: .) # No --srcdir option. We are building in place.
! 9998: ac_srcdir=.
! 9999: if test -z "$ac_top_builddir"; then
! 10000: ac_top_srcdir=.
! 10001: else
! 10002: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 10003: fi ;;
! 10004: [\\/]* | ?:[\\/]* ) # Absolute path.
! 10005: ac_srcdir=$srcdir$ac_dir_suffix;
! 10006: ac_top_srcdir=$srcdir ;;
! 10007: *) # Relative path.
! 10008: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 10009: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 10010: esac
! 10011: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 10012: # absolute.
! 10013: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 10014: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 10015: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 10016: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 parser 10017:
10018:
1.15 ! paf 10019: cd $ac_dir
1.1 parser 10020:
10021: # Check for guested configure; otherwise get Cygnus style configure.
1.15 ! paf 10022: if test -f $ac_srcdir/configure.gnu; then
! 10023: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
! 10024: elif test -f $ac_srcdir/configure; then
! 10025: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
! 10026: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10027: ac_sub_configure=$ac_configure
10028: else
1.15 ! paf 10029: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
! 10030: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10031: ac_sub_configure=
10032: fi
10033:
10034: # The recursion is here.
10035: if test -n "$ac_sub_configure"; then
10036: # Make the cache file name correct relative to the subdirectory.
1.15 ! paf 10037: case $cache_file in
! 10038: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10039: *) # Relative path.
1.15 ! paf 10040: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10041: esac
10042:
1.15 ! paf 10043: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
! 10044: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10045: # The eval makes quoting arguments work.
1.15 ! paf 10046: eval $ac_sub_configure $ac_sub_configure_args \
! 10047: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
! 10048: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
! 10049: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
! 10050: { (exit 1); exit 1; }; }
1.1 parser 10051: fi
10052:
10053: cd $ac_popdir
10054: done
10055: fi
10056:
E-mail: