cannam@85: #! /bin/sh cannam@85: # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp . cannam@85: # Guess values for system-dependent variables and create Makefiles. cannam@85: # Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 0.15.1b. cannam@85: # cannam@85: # Report bugs to . cannam@85: # cannam@85: # Copyright (C) 2003 Free Software Foundation, Inc. cannam@85: # This configure script is free software; the Free Software Foundation cannam@85: # gives unlimited permission to copy, distribute and modify it. cannam@85: ## --------------------- ## cannam@85: ## M4sh Initialization. ## cannam@85: ## --------------------- ## cannam@85: cannam@85: # Be Bourne compatible cannam@85: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@85: emulate sh cannam@85: NULLCMD=: cannam@85: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@85: # is contrary to our usage. Disable this feature. cannam@85: alias -g '${1+"$@"}'='"$@"' cannam@85: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then cannam@85: set -o posix cannam@85: fi cannam@85: DUALCASE=1; export DUALCASE # for MKS sh cannam@85: cannam@85: # Support unset when possible. cannam@85: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@85: as_unset=unset cannam@85: else cannam@85: as_unset=false cannam@85: fi cannam@85: cannam@85: cannam@85: # Work around bugs in pre-3.0 UWIN ksh. cannam@85: $as_unset ENV MAIL MAILPATH cannam@85: PS1='$ ' cannam@85: PS2='> ' cannam@85: PS4='+ ' cannam@85: cannam@85: # NLS nuisances. cannam@85: for as_var in \ cannam@85: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@85: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@85: LC_TELEPHONE LC_TIME cannam@85: do cannam@85: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@85: eval $as_var=C; export $as_var cannam@85: else cannam@85: $as_unset $as_var cannam@85: fi cannam@85: done cannam@85: cannam@85: # Required to use basename. cannam@85: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@85: as_expr=expr cannam@85: else cannam@85: as_expr=false cannam@85: fi cannam@85: cannam@85: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then cannam@85: as_basename=basename cannam@85: else cannam@85: as_basename=false cannam@85: fi cannam@85: cannam@85: cannam@85: # Name of the executable. cannam@85: as_me=`$as_basename "$0" || cannam@85: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@85: X"$0" : 'X\(//\)$' \| \ cannam@85: X"$0" : 'X\(/\)$' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X/"$0" | cannam@85: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } cannam@85: /^X\/\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\/\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: cannam@85: cannam@85: # PATH needs CR, and LINENO needs CR and PATH. cannam@85: # Avoid depending upon Character Ranges. cannam@85: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@85: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@85: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@85: as_cr_digits='0123456789' cannam@85: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@85: cannam@85: # The user is always right. cannam@85: if test "${PATH_SEPARATOR+set}" != set; then cannam@85: echo "#! /bin/sh" >conf$$.sh cannam@85: echo "exit 0" >>conf$$.sh cannam@85: chmod +x conf$$.sh cannam@85: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@85: PATH_SEPARATOR=';' cannam@85: else cannam@85: PATH_SEPARATOR=: cannam@85: fi cannam@85: rm -f conf$$.sh cannam@85: fi cannam@85: cannam@85: cannam@85: as_lineno_1=$LINENO cannam@85: as_lineno_2=$LINENO cannam@85: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@85: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@85: test "x$as_lineno_3" = "x$as_lineno_2" || { cannam@85: # Find who we are. Look in the path if we contain no path at all cannam@85: # relative or not. cannam@85: case $0 in cannam@85: *[\\/]* ) as_myself=$0 ;; cannam@85: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@85: done cannam@85: cannam@85: ;; cannam@85: esac cannam@85: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@85: # in which case we are not to be found in the path. cannam@85: if test "x$as_myself" = x; then cannam@85: as_myself=$0 cannam@85: fi cannam@85: if test ! -f "$as_myself"; then cannam@85: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: case $CONFIG_SHELL in cannam@85: '') cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for as_base in sh bash ksh sh5; do cannam@85: case $as_dir in cannam@85: /*) cannam@85: if ("$as_dir/$as_base" -c ' cannam@85: as_lineno_1=$LINENO cannam@85: as_lineno_2=$LINENO cannam@85: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@85: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@85: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then cannam@85: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } cannam@85: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } cannam@85: CONFIG_SHELL=$as_dir/$as_base cannam@85: export CONFIG_SHELL cannam@85: exec "$CONFIG_SHELL" "$0" ${1+"$@"} cannam@85: fi;; cannam@85: esac cannam@85: done cannam@85: done cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@85: # uniformly replaced by the line number. The first 'sed' inserts a cannam@85: # line-number line before each line; the second 'sed' does the real cannam@85: # work. The second script uses 'N' to pair each line-number line cannam@85: # with the numbered line, and appends trailing '-' during cannam@85: # substitution so that $LINENO is not a special case at line end. cannam@85: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@85: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) cannam@85: sed '=' <$as_myself | cannam@85: sed ' cannam@85: N cannam@85: s,$,-, cannam@85: : loop cannam@85: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, cannam@85: t loop cannam@85: s,-$,, cannam@85: s,^['$as_cr_digits']*\n,, cannam@85: ' >$as_me.lineno && cannam@85: chmod +x $as_me.lineno || cannam@85: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: # Don't try to exec as it changes $[0], causing all sort of problems cannam@85: # (the dirname of $[0] is not the place where we might find the cannam@85: # original and so on. Autoconf is especially sensible to this). cannam@85: . ./$as_me.lineno cannam@85: # Exit status is that of the last command. cannam@85: exit cannam@85: } cannam@85: cannam@85: cannam@85: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in cannam@85: *c*,-n*) ECHO_N= ECHO_C=' cannam@85: ' ECHO_T=' ' ;; cannam@85: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; cannam@85: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; cannam@85: esac cannam@85: cannam@85: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@85: as_expr=expr cannam@85: else cannam@85: as_expr=false cannam@85: fi cannam@85: cannam@85: rm -f conf$$ conf$$.exe conf$$.file cannam@85: echo >conf$$.file cannam@85: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@85: # We could just check for DJGPP; but this test a) works b) is more generic cannam@85: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). cannam@85: if test -f conf$$.exe; then cannam@85: # Don't use ln at all; we don't have any links cannam@85: as_ln_s='cp -p' cannam@85: else cannam@85: as_ln_s='ln -s' cannam@85: fi cannam@85: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@85: as_ln_s=ln cannam@85: else cannam@85: as_ln_s='cp -p' cannam@85: fi cannam@85: rm -f conf$$ conf$$.exe conf$$.file cannam@85: cannam@85: if mkdir -p . 2>/dev/null; then cannam@85: as_mkdir_p=: cannam@85: else cannam@85: test -d ./-p && rmdir ./-p cannam@85: as_mkdir_p=false cannam@85: fi cannam@85: cannam@85: as_executable_p="test -f" cannam@85: cannam@85: # Sed expression to map a string onto a valid CPP name. cannam@85: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@85: cannam@85: # Sed expression to map a string onto a valid variable name. cannam@85: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@85: cannam@85: cannam@85: # IFS cannam@85: # We need space, tab and new line, in precisely that order. cannam@85: as_nl=' cannam@85: ' cannam@85: IFS=" $as_nl" cannam@85: cannam@85: # CDPATH. cannam@85: $as_unset CDPATH cannam@85: cannam@85: cannam@85: cannam@85: # Check that we are running under the correct shell. cannam@85: SHELL=${CONFIG_SHELL-/bin/sh} cannam@85: cannam@85: case X$ECHO in cannam@85: X*--fallback-echo) cannam@85: # Remove one level of quotation (which was required for Make). cannam@85: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo=${ECHO-echo} cannam@85: if test "X$1" = X--no-reexec; then cannam@85: # Discard the --no-reexec flag, and continue. cannam@85: shift cannam@85: elif test "X$1" = X--fallback-echo; then cannam@85: # Avoid inline document here, it may be left over cannam@85: : cannam@85: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then cannam@85: # Yippee, $echo works! cannam@85: : cannam@85: else cannam@85: # Restart under the correct shell. cannam@85: exec $SHELL "$0" --no-reexec ${1+"$@"} cannam@85: fi cannam@85: cannam@85: if test "X$1" = X--fallback-echo; then cannam@85: # used as fallback echo cannam@85: shift cannam@85: cat </dev/null && cannam@85: echo_test_string="`eval $cmd`" && cannam@85: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null cannam@85: then cannam@85: break cannam@85: fi cannam@85: done cannam@85: fi cannam@85: cannam@85: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: : cannam@85: else cannam@85: # The Solaris, AIX, and Digital Unix default echo programs unquote cannam@85: # backslashes. This makes it impossible to quote backslashes using cannam@85: # echo "$something" | sed 's/\\/\\\\/g' cannam@85: # cannam@85: # So, first we look for a working echo in the user's PATH. cannam@85: cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for dir in $PATH /usr/ucb; do cannam@85: IFS="$lt_save_ifs" cannam@85: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && cannam@85: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: echo="$dir/echo" cannam@85: break cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: cannam@85: if test "X$echo" = Xecho; then cannam@85: # We didn't find a better echo, so look for alternatives. cannam@85: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: # This shell has a builtin print -r that does the trick. cannam@85: echo='print -r' cannam@85: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && cannam@85: test "X$CONFIG_SHELL" != X/bin/ksh; then cannam@85: # If we have ksh, try running configure again with it. cannam@85: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} cannam@85: export ORIGINAL_CONFIG_SHELL cannam@85: CONFIG_SHELL=/bin/ksh cannam@85: export CONFIG_SHELL cannam@85: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} cannam@85: else cannam@85: # Try using printf. cannam@85: echo='printf %s\n' cannam@85: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: # Cool, printf works cannam@85: : cannam@85: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@85: test "X$echo_testing_string" = 'X\t' && cannam@85: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL cannam@85: export CONFIG_SHELL cannam@85: SHELL="$CONFIG_SHELL" cannam@85: export SHELL cannam@85: echo="$CONFIG_SHELL $0 --fallback-echo" cannam@85: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@85: test "X$echo_testing_string" = 'X\t' && cannam@85: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: echo="$CONFIG_SHELL $0 --fallback-echo" cannam@85: else cannam@85: # maybe with a smaller string... cannam@85: prev=: cannam@85: cannam@85: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do cannam@85: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null cannam@85: then cannam@85: break cannam@85: fi cannam@85: prev="$cmd" cannam@85: done cannam@85: cannam@85: if test "$prev" != 'sed 50q "$0"'; then cannam@85: echo_test_string=`eval $prev` cannam@85: export echo_test_string cannam@85: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} cannam@85: else cannam@85: # Oops. We lost completely, so just stick with echo. cannam@85: echo=echo cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # Copy echo and quote the copy suitably for passing to libtool from cannam@85: # the Makefile, instead of quoting the original, which is used later. cannam@85: ECHO=$echo cannam@85: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then cannam@85: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: tagnames=${tagnames+${tagnames},}CXX cannam@85: cannam@85: tagnames=${tagnames+${tagnames},}F77 cannam@85: cannam@85: # Name of the host. cannam@85: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, cannam@85: # so uname gets run too. cannam@85: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@85: cannam@85: exec 6>&1 cannam@85: cannam@85: # cannam@85: # Initializations. cannam@85: # cannam@85: ac_default_prefix=/usr/local cannam@85: ac_config_libobj_dir=. cannam@85: cross_compiling=no cannam@85: subdirs= cannam@85: MFLAGS= cannam@85: MAKEFLAGS= cannam@85: SHELL=${CONFIG_SHELL-/bin/sh} cannam@85: cannam@85: # Maximum number of lines to put in a shell here document. cannam@85: # This variable seems obsolete. It should probably be removed, and cannam@85: # only ac_max_sed_lines should be used. cannam@85: : ${ac_max_here_lines=38} cannam@85: cannam@85: # Identity of this package. cannam@85: PACKAGE_NAME='MPEG Audio Decoder' cannam@85: PACKAGE_TARNAME='libmad' cannam@85: PACKAGE_VERSION='0.15.1b' cannam@85: PACKAGE_STRING='MPEG Audio Decoder 0.15.1b' cannam@85: PACKAGE_BUGREPORT='support@underbit.com' cannam@85: cannam@85: ac_unique_file="decoder.h" cannam@85: # Factoring default headers for most tests. cannam@85: ac_includes_default="\ cannam@85: #include cannam@85: #if HAVE_SYS_TYPES_H cannam@85: # include cannam@85: #endif cannam@85: #if HAVE_SYS_STAT_H cannam@85: # include cannam@85: #endif cannam@85: #if STDC_HEADERS cannam@85: # include cannam@85: # include cannam@85: #else cannam@85: # if HAVE_STDLIB_H cannam@85: # include cannam@85: # endif cannam@85: #endif cannam@85: #if HAVE_STRING_H cannam@85: # if !STDC_HEADERS && HAVE_MEMORY_H cannam@85: # include cannam@85: # endif cannam@85: # include cannam@85: #endif cannam@85: #if HAVE_STRINGS_H cannam@85: # include cannam@85: #endif cannam@85: #if HAVE_INTTYPES_H cannam@85: # include cannam@85: #else cannam@85: # if HAVE_STDINT_H cannam@85: # include cannam@85: # endif cannam@85: #endif cannam@85: #if HAVE_UNISTD_H cannam@85: # include cannam@85: #endif" cannam@85: cannam@85: 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 mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS' cannam@85: ac_subst_files='' cannam@85: cannam@85: # Initialize some variables set by options. cannam@85: ac_init_help= cannam@85: ac_init_version=false cannam@85: # The variables have the same names as the options, with cannam@85: # dashes changed to underlines. cannam@85: cache_file=/dev/null cannam@85: exec_prefix=NONE cannam@85: no_create= cannam@85: no_recursion= cannam@85: prefix=NONE cannam@85: program_prefix=NONE cannam@85: program_suffix=NONE cannam@85: program_transform_name=s,x,x, cannam@85: silent= cannam@85: site= cannam@85: srcdir= cannam@85: verbose= cannam@85: x_includes=NONE cannam@85: x_libraries=NONE cannam@85: cannam@85: # Installation directory options. cannam@85: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@85: # and all the variables that are supposed to be based on exec_prefix cannam@85: # by default will actually change. cannam@85: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@85: bindir='${exec_prefix}/bin' cannam@85: sbindir='${exec_prefix}/sbin' cannam@85: libexecdir='${exec_prefix}/libexec' cannam@85: datadir='${prefix}/share' cannam@85: sysconfdir='${prefix}/etc' cannam@85: sharedstatedir='${prefix}/com' cannam@85: localstatedir='${prefix}/var' cannam@85: libdir='${exec_prefix}/lib' cannam@85: includedir='${prefix}/include' cannam@85: oldincludedir='/usr/include' cannam@85: infodir='${prefix}/info' cannam@85: mandir='${prefix}/man' cannam@85: cannam@85: ac_prev= cannam@85: for ac_option cannam@85: do cannam@85: # If the previous option needs an argument, assign it. cannam@85: if test -n "$ac_prev"; then cannam@85: eval "$ac_prev=\$ac_option" cannam@85: ac_prev= cannam@85: continue cannam@85: fi cannam@85: cannam@85: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` cannam@85: cannam@85: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@85: cannam@85: case $ac_option in cannam@85: cannam@85: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@85: ac_prev=bindir ;; cannam@85: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@85: bindir=$ac_optarg ;; cannam@85: cannam@85: -build | --build | --buil | --bui | --bu) cannam@85: ac_prev=build_alias ;; cannam@85: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@85: build_alias=$ac_optarg ;; cannam@85: cannam@85: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@85: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@85: ac_prev=cache_file ;; cannam@85: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@85: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@85: cache_file=$ac_optarg ;; cannam@85: cannam@85: --config-cache | -C) cannam@85: cache_file=config.cache ;; cannam@85: cannam@85: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) cannam@85: ac_prev=datadir ;; cannam@85: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ cannam@85: | --da=*) cannam@85: datadir=$ac_optarg ;; cannam@85: cannam@85: -disable-* | --disable-*) cannam@85: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@85: # Reject names that are not valid shell variable names. cannam@85: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@85: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_feature=`echo $ac_feature | sed 's/-/_/g'` cannam@85: eval "enable_$ac_feature=no" ;; cannam@85: cannam@85: -enable-* | --enable-*) cannam@85: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@85: # Reject names that are not valid shell variable names. cannam@85: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@85: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_feature=`echo $ac_feature | sed 's/-/_/g'` cannam@85: case $ac_option in cannam@85: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; cannam@85: *) ac_optarg=yes ;; cannam@85: esac cannam@85: eval "enable_$ac_feature='$ac_optarg'" ;; cannam@85: cannam@85: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@85: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@85: | --exec | --exe | --ex) cannam@85: ac_prev=exec_prefix ;; cannam@85: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@85: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@85: | --exec=* | --exe=* | --ex=*) cannam@85: exec_prefix=$ac_optarg ;; cannam@85: cannam@85: -gas | --gas | --ga | --g) cannam@85: # Obsolete; use --with-gas. cannam@85: with_gas=yes ;; cannam@85: cannam@85: -help | --help | --hel | --he | -h) cannam@85: ac_init_help=long ;; cannam@85: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@85: ac_init_help=recursive ;; cannam@85: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@85: ac_init_help=short ;; cannam@85: cannam@85: -host | --host | --hos | --ho) cannam@85: ac_prev=host_alias ;; cannam@85: -host=* | --host=* | --hos=* | --ho=*) cannam@85: host_alias=$ac_optarg ;; cannam@85: cannam@85: -includedir | --includedir | --includedi | --included | --include \ cannam@85: | --includ | --inclu | --incl | --inc) cannam@85: ac_prev=includedir ;; cannam@85: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@85: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@85: includedir=$ac_optarg ;; cannam@85: cannam@85: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@85: ac_prev=infodir ;; cannam@85: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@85: infodir=$ac_optarg ;; cannam@85: cannam@85: -libdir | --libdir | --libdi | --libd) cannam@85: ac_prev=libdir ;; cannam@85: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@85: libdir=$ac_optarg ;; cannam@85: cannam@85: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@85: | --libexe | --libex | --libe) cannam@85: ac_prev=libexecdir ;; cannam@85: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@85: | --libexe=* | --libex=* | --libe=*) cannam@85: libexecdir=$ac_optarg ;; cannam@85: cannam@85: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@85: | --localstate | --localstat | --localsta | --localst \ cannam@85: | --locals | --local | --loca | --loc | --lo) cannam@85: ac_prev=localstatedir ;; cannam@85: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@85: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ cannam@85: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) cannam@85: localstatedir=$ac_optarg ;; cannam@85: cannam@85: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@85: ac_prev=mandir ;; cannam@85: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@85: mandir=$ac_optarg ;; cannam@85: cannam@85: -nfp | --nfp | --nf) cannam@85: # Obsolete; use --without-fp. cannam@85: with_fp=no ;; cannam@85: cannam@85: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@85: | --no-cr | --no-c | -n) cannam@85: no_create=yes ;; cannam@85: cannam@85: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@85: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@85: no_recursion=yes ;; cannam@85: cannam@85: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@85: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@85: | --oldin | --oldi | --old | --ol | --o) cannam@85: ac_prev=oldincludedir ;; cannam@85: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@85: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@85: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@85: oldincludedir=$ac_optarg ;; cannam@85: cannam@85: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@85: ac_prev=prefix ;; cannam@85: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@85: prefix=$ac_optarg ;; cannam@85: cannam@85: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@85: | --program-pre | --program-pr | --program-p) cannam@85: ac_prev=program_prefix ;; cannam@85: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@85: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@85: program_prefix=$ac_optarg ;; cannam@85: cannam@85: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@85: | --program-suf | --program-su | --program-s) cannam@85: ac_prev=program_suffix ;; cannam@85: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@85: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@85: program_suffix=$ac_optarg ;; cannam@85: cannam@85: -program-transform-name | --program-transform-name \ cannam@85: | --program-transform-nam | --program-transform-na \ cannam@85: | --program-transform-n | --program-transform- \ cannam@85: | --program-transform | --program-transfor \ cannam@85: | --program-transfo | --program-transf \ cannam@85: | --program-trans | --program-tran \ cannam@85: | --progr-tra | --program-tr | --program-t) cannam@85: ac_prev=program_transform_name ;; cannam@85: -program-transform-name=* | --program-transform-name=* \ cannam@85: | --program-transform-nam=* | --program-transform-na=* \ cannam@85: | --program-transform-n=* | --program-transform-=* \ cannam@85: | --program-transform=* | --program-transfor=* \ cannam@85: | --program-transfo=* | --program-transf=* \ cannam@85: | --program-trans=* | --program-tran=* \ cannam@85: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@85: program_transform_name=$ac_optarg ;; cannam@85: cannam@85: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@85: | -silent | --silent | --silen | --sile | --sil) cannam@85: silent=yes ;; cannam@85: cannam@85: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@85: ac_prev=sbindir ;; cannam@85: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@85: | --sbi=* | --sb=*) cannam@85: sbindir=$ac_optarg ;; cannam@85: cannam@85: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@85: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@85: | --sharedst | --shareds | --shared | --share | --shar \ cannam@85: | --sha | --sh) cannam@85: ac_prev=sharedstatedir ;; cannam@85: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@85: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@85: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@85: | --sha=* | --sh=*) cannam@85: sharedstatedir=$ac_optarg ;; cannam@85: cannam@85: -site | --site | --sit) cannam@85: ac_prev=site ;; cannam@85: -site=* | --site=* | --sit=*) cannam@85: site=$ac_optarg ;; cannam@85: cannam@85: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@85: ac_prev=srcdir ;; cannam@85: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@85: srcdir=$ac_optarg ;; cannam@85: cannam@85: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@85: | --syscon | --sysco | --sysc | --sys | --sy) cannam@85: ac_prev=sysconfdir ;; cannam@85: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@85: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@85: sysconfdir=$ac_optarg ;; cannam@85: cannam@85: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@85: ac_prev=target_alias ;; cannam@85: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@85: target_alias=$ac_optarg ;; cannam@85: cannam@85: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@85: verbose=yes ;; cannam@85: cannam@85: -version | --version | --versio | --versi | --vers | -V) cannam@85: ac_init_version=: ;; cannam@85: cannam@85: -with-* | --with-*) cannam@85: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@85: # Reject names that are not valid shell variable names. cannam@85: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@85: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_package=`echo $ac_package| sed 's/-/_/g'` cannam@85: case $ac_option in cannam@85: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; cannam@85: *) ac_optarg=yes ;; cannam@85: esac cannam@85: eval "with_$ac_package='$ac_optarg'" ;; cannam@85: cannam@85: -without-* | --without-*) cannam@85: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@85: # Reject names that are not valid shell variable names. cannam@85: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@85: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_package=`echo $ac_package | sed 's/-/_/g'` cannam@85: eval "with_$ac_package=no" ;; cannam@85: cannam@85: --x) cannam@85: # Obsolete; use --with-x. cannam@85: with_x=yes ;; cannam@85: cannam@85: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@85: | --x-incl | --x-inc | --x-in | --x-i) cannam@85: ac_prev=x_includes ;; cannam@85: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@85: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@85: x_includes=$ac_optarg ;; cannam@85: cannam@85: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@85: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@85: ac_prev=x_libraries ;; cannam@85: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@85: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@85: x_libraries=$ac_optarg ;; cannam@85: cannam@85: -*) { echo "$as_me: error: unrecognized option: $ac_option cannam@85: Try \`$0 --help' for more information." >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ;; cannam@85: cannam@85: *=*) cannam@85: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@85: # Reject names that are not valid shell variable names. cannam@85: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && cannam@85: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` cannam@85: eval "$ac_envvar='$ac_optarg'" cannam@85: export $ac_envvar ;; cannam@85: cannam@85: *) cannam@85: # FIXME: should be removed in autoconf 3.0. cannam@85: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@85: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@85: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@85: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} cannam@85: ;; cannam@85: cannam@85: esac cannam@85: done cannam@85: cannam@85: if test -n "$ac_prev"; then cannam@85: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@85: { echo "$as_me: error: missing argument to $ac_option" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: # Be sure to have absolute paths. cannam@85: for ac_var in exec_prefix prefix cannam@85: do cannam@85: eval ac_val=$`echo $ac_var` cannam@85: case $ac_val in cannam@85: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; cannam@85: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 cannam@85: { (exit 1); exit 1; }; };; cannam@85: esac cannam@85: done cannam@85: cannam@85: # Be sure to have absolute paths. cannam@85: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ cannam@85: localstatedir libdir includedir oldincludedir infodir mandir cannam@85: do cannam@85: eval ac_val=$`echo $ac_var` cannam@85: case $ac_val in cannam@85: [\\/$]* | ?:[\\/]* ) ;; cannam@85: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 cannam@85: { (exit 1); exit 1; }; };; cannam@85: esac cannam@85: done cannam@85: cannam@85: # There might be people who depend on the old broken behavior: `$host' cannam@85: # used to hold the argument of --host etc. cannam@85: # FIXME: To remove some day. cannam@85: build=$build_alias cannam@85: host=$host_alias cannam@85: target=$target_alias cannam@85: cannam@85: # FIXME: To remove some day. cannam@85: if test "x$host_alias" != x; then cannam@85: if test "x$build_alias" = x; then cannam@85: cross_compiling=maybe cannam@85: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. cannam@85: If a cross compiler is detected then cross compile mode will be used." >&2 cannam@85: elif test "x$build_alias" != "x$host_alias"; then cannam@85: cross_compiling=yes cannam@85: fi cannam@85: fi cannam@85: cannam@85: ac_tool_prefix= cannam@85: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@85: cannam@85: test "$silent" = yes && exec 6>/dev/null cannam@85: cannam@85: cannam@85: # Find the source files, if location was not specified. cannam@85: if test -z "$srcdir"; then cannam@85: ac_srcdir_defaulted=yes cannam@85: # Try the directory containing this script, then its parent. cannam@85: ac_confdir=`(dirname "$0") 2>/dev/null || cannam@85: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$0" : 'X\(//\)[^/]' \| \ cannam@85: X"$0" : 'X\(//\)$' \| \ cannam@85: X"$0" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$0" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: srcdir=$ac_confdir cannam@85: if test ! -r $srcdir/$ac_unique_file; then cannam@85: srcdir=.. cannam@85: fi cannam@85: else cannam@85: ac_srcdir_defaulted=no cannam@85: fi cannam@85: if test ! -r $srcdir/$ac_unique_file; then cannam@85: if test "$ac_srcdir_defaulted" = yes; then cannam@85: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: else cannam@85: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: fi cannam@85: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || cannam@85: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 cannam@85: { (exit 1); exit 1; }; } cannam@85: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` cannam@85: ac_env_build_alias_set=${build_alias+set} cannam@85: ac_env_build_alias_value=$build_alias cannam@85: ac_cv_env_build_alias_set=${build_alias+set} cannam@85: ac_cv_env_build_alias_value=$build_alias cannam@85: ac_env_host_alias_set=${host_alias+set} cannam@85: ac_env_host_alias_value=$host_alias cannam@85: ac_cv_env_host_alias_set=${host_alias+set} cannam@85: ac_cv_env_host_alias_value=$host_alias cannam@85: ac_env_target_alias_set=${target_alias+set} cannam@85: ac_env_target_alias_value=$target_alias cannam@85: ac_cv_env_target_alias_set=${target_alias+set} cannam@85: ac_cv_env_target_alias_value=$target_alias cannam@85: ac_env_CC_set=${CC+set} cannam@85: ac_env_CC_value=$CC cannam@85: ac_cv_env_CC_set=${CC+set} cannam@85: ac_cv_env_CC_value=$CC cannam@85: ac_env_CFLAGS_set=${CFLAGS+set} cannam@85: ac_env_CFLAGS_value=$CFLAGS cannam@85: ac_cv_env_CFLAGS_set=${CFLAGS+set} cannam@85: ac_cv_env_CFLAGS_value=$CFLAGS cannam@85: ac_env_LDFLAGS_set=${LDFLAGS+set} cannam@85: ac_env_LDFLAGS_value=$LDFLAGS cannam@85: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} cannam@85: ac_cv_env_LDFLAGS_value=$LDFLAGS cannam@85: ac_env_CPPFLAGS_set=${CPPFLAGS+set} cannam@85: ac_env_CPPFLAGS_value=$CPPFLAGS cannam@85: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} cannam@85: ac_cv_env_CPPFLAGS_value=$CPPFLAGS cannam@85: ac_env_CCAS_set=${CCAS+set} cannam@85: ac_env_CCAS_value=$CCAS cannam@85: ac_cv_env_CCAS_set=${CCAS+set} cannam@85: ac_cv_env_CCAS_value=$CCAS cannam@85: ac_env_CCASFLAGS_set=${CCASFLAGS+set} cannam@85: ac_env_CCASFLAGS_value=$CCASFLAGS cannam@85: ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} cannam@85: ac_cv_env_CCASFLAGS_value=$CCASFLAGS cannam@85: ac_env_CPP_set=${CPP+set} cannam@85: ac_env_CPP_value=$CPP cannam@85: ac_cv_env_CPP_set=${CPP+set} cannam@85: ac_cv_env_CPP_value=$CPP cannam@85: ac_env_CXX_set=${CXX+set} cannam@85: ac_env_CXX_value=$CXX cannam@85: ac_cv_env_CXX_set=${CXX+set} cannam@85: ac_cv_env_CXX_value=$CXX cannam@85: ac_env_CXXFLAGS_set=${CXXFLAGS+set} cannam@85: ac_env_CXXFLAGS_value=$CXXFLAGS cannam@85: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} cannam@85: ac_cv_env_CXXFLAGS_value=$CXXFLAGS cannam@85: ac_env_CXXCPP_set=${CXXCPP+set} cannam@85: ac_env_CXXCPP_value=$CXXCPP cannam@85: ac_cv_env_CXXCPP_set=${CXXCPP+set} cannam@85: ac_cv_env_CXXCPP_value=$CXXCPP cannam@85: ac_env_F77_set=${F77+set} cannam@85: ac_env_F77_value=$F77 cannam@85: ac_cv_env_F77_set=${F77+set} cannam@85: ac_cv_env_F77_value=$F77 cannam@85: ac_env_FFLAGS_set=${FFLAGS+set} cannam@85: ac_env_FFLAGS_value=$FFLAGS cannam@85: ac_cv_env_FFLAGS_set=${FFLAGS+set} cannam@85: ac_cv_env_FFLAGS_value=$FFLAGS cannam@85: cannam@85: # cannam@85: # Report the --help message. cannam@85: # cannam@85: if test "$ac_init_help" = "long"; then cannam@85: # Omit some internal or obsolete options to make the list less imposing. cannam@85: # This message is too long to be a string in the A/UX 3.1 sh. cannam@85: cat <<_ACEOF cannam@85: \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems. cannam@85: cannam@85: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@85: cannam@85: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@85: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@85: cannam@85: Defaults for the options are specified in brackets. cannam@85: cannam@85: Configuration: cannam@85: -h, --help display this help and exit cannam@85: --help=short display options specific to this package cannam@85: --help=recursive display the short help of all the included packages cannam@85: -V, --version display version information and exit cannam@85: -q, --quiet, --silent do not print \`checking...' messages cannam@85: --cache-file=FILE cache test results in FILE [disabled] cannam@85: -C, --config-cache alias for \`--cache-file=config.cache' cannam@85: -n, --no-create do not create output files cannam@85: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cat <<_ACEOF cannam@85: Installation directories: cannam@85: --prefix=PREFIX install architecture-independent files in PREFIX cannam@85: [$ac_default_prefix] cannam@85: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@85: [PREFIX] cannam@85: cannam@85: By default, \`make install' will install all the files in cannam@85: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@85: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@85: for instance \`--prefix=\$HOME'. cannam@85: cannam@85: For better control, use the options below. cannam@85: cannam@85: Fine tuning of the installation directories: cannam@85: --bindir=DIR user executables [EPREFIX/bin] cannam@85: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@85: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@85: --datadir=DIR read-only architecture-independent data [PREFIX/share] cannam@85: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@85: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@85: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@85: --libdir=DIR object code libraries [EPREFIX/lib] cannam@85: --includedir=DIR C header files [PREFIX/include] cannam@85: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@85: --infodir=DIR info documentation [PREFIX/info] cannam@85: --mandir=DIR man documentation [PREFIX/man] cannam@85: _ACEOF cannam@85: cannam@85: cat <<\_ACEOF cannam@85: cannam@85: Program names: cannam@85: --program-prefix=PREFIX prepend PREFIX to installed program names cannam@85: --program-suffix=SUFFIX append SUFFIX to installed program names cannam@85: --program-transform-name=PROGRAM run sed PROGRAM on installed program names cannam@85: cannam@85: System types: cannam@85: --build=BUILD configure for building on BUILD [guessed] cannam@85: --host=HOST cross-compile to build programs to run on HOST [BUILD] cannam@85: _ACEOF cannam@85: fi cannam@85: cannam@85: if test -n "$ac_init_help"; then cannam@85: case $ac_init_help in cannam@85: short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";; cannam@85: esac cannam@85: cat <<\_ACEOF cannam@85: cannam@85: Optional Features: cannam@85: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) cannam@85: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] cannam@85: --disable-dependency-tracking speeds up one-time build cannam@85: --enable-dependency-tracking do not reject slow dependency extractors cannam@85: --enable-shared[=PKGS] cannam@85: build shared libraries [default=yes] cannam@85: --enable-static[=PKGS] cannam@85: build static libraries [default=yes] cannam@85: --enable-fast-install[=PKGS] cannam@85: optimize for fast installation [default=yes] cannam@85: --disable-libtool-lock avoid locking (might break parallel builds) cannam@85: --enable-speed optimize for speed over accuracy cannam@85: --enable-accuracy optimize for accuracy over speed cannam@85: --enable-fpm=ARCH use ARCH-specific fixed-point math routines (one of: cannam@85: intel, arm, mips, sparc, ppc, 64bit, default) cannam@85: --enable-sso use subband synthesis optimization cannam@85: --disable-aso disable architecture-specific optimizations cannam@85: --enable-strict-iso use strict ISO/IEC interpretations cannam@85: --enable-profiling generate profiling code cannam@85: --enable-debugging enable diagnostic debugging support cannam@85: --disable-debugging do not enable debugging and use more optimization cannam@85: --enable-experimental enable experimental code cannam@85: cannam@85: Optional Packages: cannam@85: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] cannam@85: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) cannam@85: --with-gnu-ld assume the C compiler uses GNU ld [default=no] cannam@85: --with-pic try to use only PIC/non-PIC objects [default=use cannam@85: both] cannam@85: --with-tags[=TAGS] cannam@85: include additional configurations [automatic] cannam@85: cannam@85: Some influential environment variables: cannam@85: CC C compiler command cannam@85: CFLAGS C compiler flags cannam@85: LDFLAGS linker flags, e.g. -L if you have libraries in a cannam@85: nonstandard directory cannam@85: CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have cannam@85: headers in a nonstandard directory cannam@85: CCAS assembler compiler command (defaults to CC) cannam@85: CCASFLAGS assembler compiler flags (defaults to CFLAGS) cannam@85: CPP C preprocessor cannam@85: CXX C++ compiler command cannam@85: CXXFLAGS C++ compiler flags cannam@85: CXXCPP C++ preprocessor cannam@85: F77 Fortran 77 compiler command cannam@85: FFLAGS Fortran 77 compiler flags cannam@85: cannam@85: Use these variables to override the choices made by `configure' or to help cannam@85: it to find libraries and programs with nonstandard names/locations. cannam@85: cannam@85: Report bugs to . cannam@85: _ACEOF cannam@85: fi cannam@85: cannam@85: if test "$ac_init_help" = "recursive"; then cannam@85: # If there are subdirs, report their specific --help. cannam@85: ac_popdir=`pwd` cannam@85: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@85: test -d $ac_dir || continue cannam@85: ac_builddir=. cannam@85: cannam@85: if test "$ac_dir" != .; then cannam@85: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@85: # A "../" for each directory in $ac_dir_suffix. cannam@85: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@85: else cannam@85: ac_dir_suffix= ac_top_builddir= cannam@85: fi cannam@85: cannam@85: case $srcdir in cannam@85: .) # No --srcdir option. We are building in place. cannam@85: ac_srcdir=. cannam@85: if test -z "$ac_top_builddir"; then cannam@85: ac_top_srcdir=. cannam@85: else cannam@85: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@85: fi ;; cannam@85: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@85: ac_srcdir=$srcdir$ac_dir_suffix; cannam@85: ac_top_srcdir=$srcdir ;; cannam@85: *) # Relative path. cannam@85: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@85: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@85: esac cannam@85: cannam@85: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@85: # the directories may not exist. cannam@85: case `pwd` in cannam@85: .) ac_abs_builddir="$ac_dir";; cannam@85: *) cannam@85: case "$ac_dir" in cannam@85: .) ac_abs_builddir=`pwd`;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@85: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) cannam@85: case ${ac_top_builddir}. in cannam@85: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) cannam@85: case $ac_srcdir in cannam@85: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) cannam@85: case $ac_top_srcdir in cannam@85: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: cannam@85: cd $ac_dir cannam@85: # Check for guested configure; otherwise get Cygnus style configure. cannam@85: if test -f $ac_srcdir/configure.gnu; then cannam@85: echo cannam@85: $SHELL $ac_srcdir/configure.gnu --help=recursive cannam@85: elif test -f $ac_srcdir/configure; then cannam@85: echo cannam@85: $SHELL $ac_srcdir/configure --help=recursive cannam@85: elif test -f $ac_srcdir/configure.ac || cannam@85: test -f $ac_srcdir/configure.in; then cannam@85: echo cannam@85: $ac_configure --help cannam@85: else cannam@85: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@85: fi cannam@85: cd "$ac_popdir" cannam@85: done cannam@85: fi cannam@85: cannam@85: test -n "$ac_init_help" && exit 0 cannam@85: if $ac_init_version; then cannam@85: cat <<\_ACEOF cannam@85: MPEG Audio Decoder configure 0.15.1b cannam@85: generated by GNU Autoconf 2.59 cannam@85: cannam@85: Copyright (C) 2003 Free Software Foundation, Inc. cannam@85: This configure script is free software; the Free Software Foundation cannam@85: gives unlimited permission to copy, distribute and modify it. cannam@85: _ACEOF cannam@85: exit 0 cannam@85: fi cannam@85: exec 5>config.log cannam@85: cat >&5 <<_ACEOF cannam@85: This file contains any messages produced by compilers while cannam@85: running configure, to aid debugging if configure makes a mistake. cannam@85: cannam@85: It was created by MPEG Audio Decoder $as_me 0.15.1b, which was cannam@85: generated by GNU Autoconf 2.59. Invocation command line was cannam@85: cannam@85: $ $0 $@ cannam@85: cannam@85: _ACEOF cannam@85: { cannam@85: cat <<_ASUNAME cannam@85: ## --------- ## cannam@85: ## Platform. ## cannam@85: ## --------- ## cannam@85: cannam@85: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@85: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@85: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@85: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@85: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@85: cannam@85: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@85: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@85: cannam@85: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@85: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@85: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@85: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` cannam@85: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@85: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@85: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@85: cannam@85: _ASUNAME cannam@85: cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: echo "PATH: $as_dir" cannam@85: done cannam@85: cannam@85: } >&5 cannam@85: cannam@85: cat >&5 <<_ACEOF cannam@85: cannam@85: cannam@85: ## ----------- ## cannam@85: ## Core tests. ## cannam@85: ## ----------- ## cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: # Keep a trace of the command line. cannam@85: # Strip out --no-create and --no-recursion so they do not pile up. cannam@85: # Strip out --silent because we don't want to record it for future runs. cannam@85: # Also quote any args containing shell meta-characters. cannam@85: # Make two passes to allow for proper duplicate-argument suppression. cannam@85: ac_configure_args= cannam@85: ac_configure_args0= cannam@85: ac_configure_args1= cannam@85: ac_sep= cannam@85: ac_must_keep_next=false cannam@85: for ac_pass in 1 2 cannam@85: do cannam@85: for ac_arg cannam@85: do cannam@85: case $ac_arg in cannam@85: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@85: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@85: | -silent | --silent | --silen | --sile | --sil) cannam@85: continue ;; cannam@85: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) cannam@85: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@85: esac cannam@85: case $ac_pass in cannam@85: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; cannam@85: 2) cannam@85: ac_configure_args1="$ac_configure_args1 '$ac_arg'" cannam@85: if test $ac_must_keep_next = true; then cannam@85: ac_must_keep_next=false # Got value, back to normal. cannam@85: else cannam@85: case $ac_arg in cannam@85: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@85: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@85: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@85: | -with-* | --with-* | -without-* | --without-* | --x) cannam@85: case "$ac_configure_args0 " in cannam@85: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@85: esac cannam@85: ;; cannam@85: -* ) ac_must_keep_next=true ;; cannam@85: esac cannam@85: fi cannam@85: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" cannam@85: # Get rid of the leading space. cannam@85: ac_sep=" " cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: done cannam@85: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } cannam@85: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } cannam@85: cannam@85: # When interrupted or exit'd, cleanup temporary files, and complete cannam@85: # config.log. We remove comments because anyway the quotes in there cannam@85: # would cause problems or look ugly. cannam@85: # WARNING: Be sure not to use single quotes in there, as some shells, cannam@85: # such as our DU 5.0 friend, will then `close' the trap. cannam@85: trap 'exit_status=$? cannam@85: # Save into config.log some information that might help in debugging. cannam@85: { cannam@85: echo cannam@85: cannam@85: cat <<\_ASBOX cannam@85: ## ---------------- ## cannam@85: ## Cache variables. ## cannam@85: ## ---------------- ## cannam@85: _ASBOX cannam@85: echo cannam@85: # The following way of writing the cache mishandles newlines in values, cannam@85: { cannam@85: (set) 2>&1 | cannam@85: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in cannam@85: *ac_space=\ *) cannam@85: sed -n \ cannam@85: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; cannam@85: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" cannam@85: ;; cannam@85: *) cannam@85: sed -n \ cannam@85: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" cannam@85: ;; cannam@85: esac; cannam@85: } cannam@85: echo cannam@85: cannam@85: cat <<\_ASBOX cannam@85: ## ----------------- ## cannam@85: ## Output variables. ## cannam@85: ## ----------------- ## cannam@85: _ASBOX cannam@85: echo cannam@85: for ac_var in $ac_subst_vars cannam@85: do cannam@85: eval ac_val=$`echo $ac_var` cannam@85: echo "$ac_var='"'"'$ac_val'"'"'" cannam@85: done | sort cannam@85: echo cannam@85: cannam@85: if test -n "$ac_subst_files"; then cannam@85: cat <<\_ASBOX cannam@85: ## ------------- ## cannam@85: ## Output files. ## cannam@85: ## ------------- ## cannam@85: _ASBOX cannam@85: echo cannam@85: for ac_var in $ac_subst_files cannam@85: do cannam@85: eval ac_val=$`echo $ac_var` cannam@85: echo "$ac_var='"'"'$ac_val'"'"'" cannam@85: done | sort cannam@85: echo cannam@85: fi cannam@85: cannam@85: if test -s confdefs.h; then cannam@85: cat <<\_ASBOX cannam@85: ## ----------- ## cannam@85: ## confdefs.h. ## cannam@85: ## ----------- ## cannam@85: _ASBOX cannam@85: echo cannam@85: sed "/^$/d" confdefs.h | sort cannam@85: echo cannam@85: fi cannam@85: test "$ac_signal" != 0 && cannam@85: echo "$as_me: caught signal $ac_signal" cannam@85: echo "$as_me: exit $exit_status" cannam@85: } >&5 cannam@85: rm -f core *.core && cannam@85: rm -rf conftest* confdefs* conf$$* $ac_clean_files && cannam@85: exit $exit_status cannam@85: ' 0 cannam@85: for ac_signal in 1 2 13 15; do cannam@85: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal cannam@85: done cannam@85: ac_signal=0 cannam@85: cannam@85: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@85: rm -rf conftest* confdefs.h cannam@85: # AIX cpp loses on an empty file, so make sure it contains at least a newline. cannam@85: echo >confdefs.h cannam@85: cannam@85: # Predefined preprocessor variables. cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: # Let the site file select an alternate cache file if it wants to. cannam@85: # Prefer explicitly selected file to automatically selected ones. cannam@85: if test -z "$CONFIG_SITE"; then cannam@85: if test "x$prefix" != xNONE; then cannam@85: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" cannam@85: else cannam@85: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" cannam@85: fi cannam@85: fi cannam@85: for ac_site_file in $CONFIG_SITE; do cannam@85: if test -r "$ac_site_file"; then cannam@85: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 cannam@85: echo "$as_me: loading site script $ac_site_file" >&6;} cannam@85: sed 's/^/| /' "$ac_site_file" >&5 cannam@85: . "$ac_site_file" cannam@85: fi cannam@85: done cannam@85: cannam@85: if test -r "$cache_file"; then cannam@85: # Some versions of bash will fail to source /dev/null (special cannam@85: # files actually), so we avoid doing that. cannam@85: if test -f "$cache_file"; then cannam@85: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 cannam@85: echo "$as_me: loading cache $cache_file" >&6;} cannam@85: case $cache_file in cannam@85: [\\/]* | ?:[\\/]* ) . $cache_file;; cannam@85: *) . ./$cache_file;; cannam@85: esac cannam@85: fi cannam@85: else cannam@85: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 cannam@85: echo "$as_me: creating cache $cache_file" >&6;} cannam@85: >$cache_file cannam@85: fi cannam@85: cannam@85: # Check that the precious variables saved in the cache have kept the same cannam@85: # value. cannam@85: ac_cache_corrupted=false cannam@85: for ac_var in `(set) 2>&1 | cannam@85: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do cannam@85: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@85: eval ac_new_set=\$ac_env_${ac_var}_set cannam@85: eval ac_old_val="\$ac_cv_env_${ac_var}_value" cannam@85: eval ac_new_val="\$ac_env_${ac_var}_value" cannam@85: case $ac_old_set,$ac_new_set in cannam@85: set,) cannam@85: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@85: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@85: ac_cache_corrupted=: ;; cannam@85: ,set) cannam@85: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 cannam@85: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@85: ac_cache_corrupted=: ;; cannam@85: ,);; cannam@85: *) cannam@85: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@85: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 cannam@85: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@85: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 cannam@85: echo "$as_me: former value: $ac_old_val" >&2;} cannam@85: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 cannam@85: echo "$as_me: current value: $ac_new_val" >&2;} cannam@85: ac_cache_corrupted=: cannam@85: fi;; cannam@85: esac cannam@85: # Pass precious variables to config.status. cannam@85: if test "$ac_new_set" = set; then cannam@85: case $ac_new_val in cannam@85: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) cannam@85: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@85: *) ac_arg=$ac_var=$ac_new_val ;; cannam@85: esac cannam@85: case " $ac_configure_args " in cannam@85: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@85: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; cannam@85: esac cannam@85: fi cannam@85: done cannam@85: if $ac_cache_corrupted; then cannam@85: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 cannam@85: echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@85: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 cannam@85: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: am__api_version="1.8" cannam@85: ac_aux_dir= cannam@85: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do cannam@85: if test -f $ac_dir/install-sh; then cannam@85: ac_aux_dir=$ac_dir cannam@85: ac_install_sh="$ac_aux_dir/install-sh -c" cannam@85: break cannam@85: elif test -f $ac_dir/install.sh; then cannam@85: ac_aux_dir=$ac_dir cannam@85: ac_install_sh="$ac_aux_dir/install.sh -c" cannam@85: break cannam@85: elif test -f $ac_dir/shtool; then cannam@85: ac_aux_dir=$ac_dir cannam@85: ac_install_sh="$ac_aux_dir/shtool install -c" cannam@85: break cannam@85: fi cannam@85: done cannam@85: if test -z "$ac_aux_dir"; then cannam@85: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 cannam@85: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: ac_config_guess="$SHELL $ac_aux_dir/config.guess" cannam@85: ac_config_sub="$SHELL $ac_aux_dir/config.sub" cannam@85: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. cannam@85: cannam@85: # Find a good install program. We prefer a C program (faster), cannam@85: # so one script is as good as another. But avoid the broken or cannam@85: # incompatible versions: cannam@85: # SysV /etc/install, /usr/sbin/install cannam@85: # SunOS /usr/etc/install cannam@85: # IRIX /sbin/install cannam@85: # AIX /bin/install cannam@85: # AmigaOS /C/install, which installs bootblocks on floppy discs cannam@85: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag cannam@85: # AFS /usr/afsws/bin/install, which mishandles nonexistent args cannam@85: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" cannam@85: # OS/2's system install, which has a completely different semantic cannam@85: # ./install, which can be erroneously created by make from ./install.sh. cannam@85: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 cannam@85: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 cannam@85: if test -z "$INSTALL"; then cannam@85: if test "${ac_cv_path_install+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: # Account for people who put trailing slashes in PATH elements. cannam@85: case $as_dir/ in cannam@85: ./ | .// | /cC/* | \ cannam@85: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ cannam@85: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ cannam@85: /usr/ucb/* ) ;; cannam@85: *) cannam@85: # OSF1 and SCO ODT 3.0 have their own names for install. cannam@85: # Don't use installbsd from OSF since it installs stuff as root cannam@85: # by default. cannam@85: for ac_prog in ginstall scoinst install; do cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then cannam@85: if test $ac_prog = install && cannam@85: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@85: # AIX install. It has an incompatible calling convention. cannam@85: : cannam@85: elif test $ac_prog = install && cannam@85: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@85: # program-specific install script used by HP pwplus--don't use. cannam@85: : cannam@85: else cannam@85: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" cannam@85: break 3 cannam@85: fi cannam@85: fi cannam@85: done cannam@85: done cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: cannam@85: fi cannam@85: if test "${ac_cv_path_install+set}" = set; then cannam@85: INSTALL=$ac_cv_path_install cannam@85: else cannam@85: # As a last resort, use the slow shell script. We don't cache a cannam@85: # path for INSTALL within a source directory, because that will cannam@85: # break other packages using the cache if that directory is cannam@85: # removed, or if the path is relative. cannam@85: INSTALL=$ac_install_sh cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $INSTALL" >&5 cannam@85: echo "${ECHO_T}$INSTALL" >&6 cannam@85: cannam@85: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. cannam@85: # It thinks the first close brace ends the variable substitution. cannam@85: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' cannam@85: cannam@85: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' cannam@85: cannam@85: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 cannam@85: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 cannam@85: # Just in case cannam@85: sleep 1 cannam@85: echo timestamp > conftest.file cannam@85: # Do `set' in a subshell so we don't clobber the current shell's cannam@85: # arguments. Must try -L first in case configure is actually a cannam@85: # symlink; some systems play weird games with the mod time of symlinks cannam@85: # (eg FreeBSD returns the mod time of the symlink's containing cannam@85: # directory). cannam@85: if ( cannam@85: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` cannam@85: if test "$*" = "X"; then cannam@85: # -L didn't work. cannam@85: set X `ls -t $srcdir/configure conftest.file` cannam@85: fi cannam@85: rm -f conftest.file cannam@85: if test "$*" != "X $srcdir/configure conftest.file" \ cannam@85: && test "$*" != "X conftest.file $srcdir/configure"; then cannam@85: cannam@85: # If neither matched, then we have a broken ls. This can happen cannam@85: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@85: # broken ls alias from the environment. This has actually cannam@85: # happened. Such a system could not be considered "sane". cannam@85: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken cannam@85: alias in your environment" >&5 cannam@85: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken cannam@85: alias in your environment" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: test "$2" = conftest.file cannam@85: ) cannam@85: then cannam@85: # Ok. cannam@85: : cannam@85: else cannam@85: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! cannam@85: Check your system clock" >&5 cannam@85: echo "$as_me: error: newly created file is older than distributed files! cannam@85: Check your system clock" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: test "$program_prefix" != NONE && cannam@85: program_transform_name="s,^,$program_prefix,;$program_transform_name" cannam@85: # Use a double $ so make ignores it. cannam@85: test "$program_suffix" != NONE && cannam@85: program_transform_name="s,\$,$program_suffix,;$program_transform_name" cannam@85: # Double any \ or $. echo might interpret backslashes. cannam@85: # By default was `s,x,x', remove it if useless. cannam@85: cat <<\_ACEOF >conftest.sed cannam@85: s/[\\$]/&&/g;s/;s,x,x,$// cannam@85: _ACEOF cannam@85: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` cannam@85: rm conftest.sed cannam@85: cannam@85: # expand $ac_aux_dir to an absolute path cannam@85: am_aux_dir=`cd $ac_aux_dir && pwd` cannam@85: cannam@85: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" cannam@85: # Use eval to expand $SHELL cannam@85: if eval "$MISSING --run true"; then cannam@85: am_missing_run="$MISSING --run " cannam@85: else cannam@85: am_missing_run= cannam@85: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 cannam@85: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} cannam@85: fi cannam@85: cannam@85: if mkdir -p -- . 2>/dev/null; then cannam@85: # Keeping the `.' argument allows $(mkdir_p) to be used without cannam@85: # argument. Indeed, we sometimes output rules like cannam@85: # $(mkdir_p) $(somedir) cannam@85: # where $(somedir) is conditionally defined. cannam@85: # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more cannam@85: # expensive solution, as it forces Make to start a sub-shell.) cannam@85: mkdir_p='mkdir -p -- .' cannam@85: else cannam@85: # On NextStep and OpenStep, the `mkdir' command does not cannam@85: # recognize any option. It will interpret all options as cannam@85: # directories to create, and then abort because `.' already cannam@85: # exists. cannam@85: for d in ./-p ./--; cannam@85: do cannam@85: test -d $d && rmdir $d cannam@85: done cannam@85: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. cannam@85: if test -f "$ac_aux_dir/mkinstalldirs"; then cannam@85: mkdir_p='$(mkinstalldirs)' cannam@85: else cannam@85: mkdir_p='$(install_sh) -d' cannam@85: fi cannam@85: fi cannam@85: cannam@85: for ac_prog in gawk mawk nawk awk cannam@85: do cannam@85: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_AWK+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$AWK"; then cannam@85: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_AWK="$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: AWK=$ac_cv_prog_AWK cannam@85: if test -n "$AWK"; then cannam@85: echo "$as_me:$LINENO: result: $AWK" >&5 cannam@85: echo "${ECHO_T}$AWK" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$AWK" && break cannam@85: done cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@85: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 cannam@85: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` cannam@85: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.make <<\_ACEOF cannam@85: all: cannam@85: @echo 'ac_maketemp="$(MAKE)"' cannam@85: _ACEOF cannam@85: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. cannam@85: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` cannam@85: if test -n "$ac_maketemp"; then cannam@85: eval ac_cv_prog_make_${ac_make}_set=yes cannam@85: else cannam@85: eval ac_cv_prog_make_${ac_make}_set=no cannam@85: fi cannam@85: rm -f conftest.make cannam@85: fi cannam@85: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: SET_MAKE= cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: SET_MAKE="MAKE=${MAKE-make}" cannam@85: fi cannam@85: cannam@85: rm -rf .tst 2>/dev/null cannam@85: mkdir .tst 2>/dev/null cannam@85: if test -d .tst; then cannam@85: am__leading_dot=. cannam@85: else cannam@85: am__leading_dot=_ cannam@85: fi cannam@85: rmdir .tst 2>/dev/null cannam@85: cannam@85: # test to see if srcdir already configured cannam@85: if test "`cd $srcdir && pwd`" != "`pwd`" && cannam@85: test -f $srcdir/config.status; then cannam@85: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 cannam@85: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: # test whether we have cygpath cannam@85: if test -z "$CYGPATH_W"; then cannam@85: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@85: CYGPATH_W='cygpath -w' cannam@85: else cannam@85: CYGPATH_W=echo cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: # Define the identity of the package. cannam@85: PACKAGE='libmad' cannam@85: VERSION='0.15.1b' cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define PACKAGE "$PACKAGE" cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define VERSION "$VERSION" cannam@85: _ACEOF cannam@85: cannam@85: # Some tools Automake needs. cannam@85: cannam@85: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} cannam@85: cannam@85: cannam@85: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} cannam@85: cannam@85: cannam@85: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} cannam@85: cannam@85: cannam@85: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} cannam@85: cannam@85: cannam@85: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} cannam@85: cannam@85: cannam@85: AMTAR=${AMTAR-"${am_missing_run}tar"} cannam@85: cannam@85: install_sh=${install_sh-"$am_aux_dir/install-sh"} cannam@85: cannam@85: # Installed binaries are usually stripped using `strip' when the user cannam@85: # run `make install-strip'. However `strip' might not be the right cannam@85: # tool to use in cross-compilation environments, therefore Automake cannam@85: # will honor the `STRIP' environment variable to overrule this program. cannam@85: if test "$cross_compiling" != no; then cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$STRIP"; then cannam@85: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: STRIP=$ac_cv_prog_STRIP cannam@85: if test -n "$STRIP"; then cannam@85: echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@85: echo "${ECHO_T}$STRIP" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_STRIP"; then cannam@85: ac_ct_STRIP=$STRIP cannam@85: # Extract the first word of "strip", so it can be a program name with args. cannam@85: set dummy strip; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_STRIP"; then cannam@85: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_STRIP="strip" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" cannam@85: fi cannam@85: fi cannam@85: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@85: if test -n "$ac_ct_STRIP"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@85: echo "${ECHO_T}$ac_ct_STRIP" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: STRIP=$ac_ct_STRIP cannam@85: else cannam@85: STRIP="$ac_cv_prog_STRIP" cannam@85: fi cannam@85: cannam@85: fi cannam@85: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" cannam@85: cannam@85: # We need awk for the "check" target. The system "awk" is bad on cannam@85: # some platforms. cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: ac_config_headers="$ac_config_headers config.h" cannam@85: cannam@85: cannam@85: cannam@85: # Make sure we can run config.sub. cannam@85: $ac_config_sub sun4 >/dev/null 2>&1 || cannam@85: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 cannam@85: echo "$as_me: error: cannot run $ac_config_sub" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: echo "$as_me:$LINENO: checking build system type" >&5 cannam@85: echo $ECHO_N "checking build system type... $ECHO_C" >&6 cannam@85: if test "${ac_cv_build+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_cv_build_alias=$build_alias cannam@85: test -z "$ac_cv_build_alias" && cannam@85: ac_cv_build_alias=`$ac_config_guess` cannam@85: test -z "$ac_cv_build_alias" && cannam@85: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 cannam@85: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || cannam@85: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 cannam@85: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 cannam@85: echo "${ECHO_T}$ac_cv_build" >&6 cannam@85: build=$ac_cv_build cannam@85: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` cannam@85: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` cannam@85: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking host system type" >&5 cannam@85: echo $ECHO_N "checking host system type... $ECHO_C" >&6 cannam@85: if test "${ac_cv_host+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_cv_host_alias=$host_alias cannam@85: test -z "$ac_cv_host_alias" && cannam@85: ac_cv_host_alias=$ac_cv_build_alias cannam@85: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || cannam@85: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 cannam@85: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 cannam@85: echo "${ECHO_T}$ac_cv_host" >&6 cannam@85: host=$ac_cv_host cannam@85: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` cannam@85: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` cannam@85: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$CC"; then cannam@85: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: CC=$ac_cv_prog_CC cannam@85: if test -n "$CC"; then cannam@85: echo "$as_me:$LINENO: result: $CC" >&5 cannam@85: echo "${ECHO_T}$CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_CC"; then cannam@85: ac_ct_CC=$CC cannam@85: # Extract the first word of "gcc", so it can be a program name with args. cannam@85: set dummy gcc; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_CC"; then cannam@85: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_CC="gcc" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@85: if test -n "$ac_ct_CC"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@85: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: CC=$ac_ct_CC cannam@85: else cannam@85: CC="$ac_cv_prog_CC" cannam@85: fi cannam@85: cannam@85: if test -z "$CC"; then cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$CC"; then cannam@85: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: CC=$ac_cv_prog_CC cannam@85: if test -n "$CC"; then cannam@85: echo "$as_me:$LINENO: result: $CC" >&5 cannam@85: echo "${ECHO_T}$CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_CC"; then cannam@85: ac_ct_CC=$CC cannam@85: # Extract the first word of "cc", so it can be a program name with args. cannam@85: set dummy cc; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_CC"; then cannam@85: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_CC="cc" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@85: if test -n "$ac_ct_CC"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@85: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: CC=$ac_ct_CC cannam@85: else cannam@85: CC="$ac_cv_prog_CC" cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$CC"; then cannam@85: # Extract the first word of "cc", so it can be a program name with args. cannam@85: set dummy cc; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$CC"; then cannam@85: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@85: else cannam@85: ac_prog_rejected=no cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@85: ac_prog_rejected=yes cannam@85: continue cannam@85: fi cannam@85: ac_cv_prog_CC="cc" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: if test $ac_prog_rejected = yes; then cannam@85: # We found a bogon in the path, so make sure we never use it. cannam@85: set dummy $ac_cv_prog_CC cannam@85: shift cannam@85: if test $# != 0; then cannam@85: # We chose a different compiler from the bogus one. cannam@85: # However, it has the same basename, so the bogon will be chosen cannam@85: # first if we set CC to just the basename; use the full file name. cannam@85: shift cannam@85: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: CC=$ac_cv_prog_CC cannam@85: if test -n "$CC"; then cannam@85: echo "$as_me:$LINENO: result: $CC" >&5 cannam@85: echo "${ECHO_T}$CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$CC"; then cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: for ac_prog in cl cannam@85: do cannam@85: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$CC"; then cannam@85: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: CC=$ac_cv_prog_CC cannam@85: if test -n "$CC"; then cannam@85: echo "$as_me:$LINENO: result: $CC" >&5 cannam@85: echo "${ECHO_T}$CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$CC" && break cannam@85: done cannam@85: fi cannam@85: if test -z "$CC"; then cannam@85: ac_ct_CC=$CC cannam@85: for ac_prog in cl cannam@85: do cannam@85: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_CC"; then cannam@85: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@85: if test -n "$ac_ct_CC"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@85: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$ac_ct_CC" && break cannam@85: done cannam@85: cannam@85: CC=$ac_ct_CC cannam@85: fi cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: no acceptable C compiler found in \$PATH cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: # Provide some information about the compiler. cannam@85: echo "$as_me:$LINENO:" \ cannam@85: "checking for C compiler version" >&5 cannam@85: ac_compiler=`set X $ac_compile; echo $2` cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@85: (eval $ac_compiler --version &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@85: (eval $ac_compiler -v &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@85: (eval $ac_compiler -V &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: ac_clean_files_save=$ac_clean_files cannam@85: ac_clean_files="$ac_clean_files a.out a.exe b.out" cannam@85: # Try to create an executable without -o first, disregard a.out. cannam@85: # It will help us diagnose broken compilers, and finding out an intuition cannam@85: # of exeext. cannam@85: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 cannam@85: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 cannam@85: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 cannam@85: (eval $ac_link_default) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: # Find the output, starting from the most likely. This scheme is cannam@85: # not robust to junk in `.', hence go to wildcards (a.*) only as a last cannam@85: # resort. cannam@85: cannam@85: # Be careful to initialize this variable, since it used to be cached. cannam@85: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. cannam@85: ac_cv_exeext= cannam@85: # b.out is created by i960 compilers. cannam@85: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out cannam@85: do cannam@85: test -f "$ac_file" || continue cannam@85: case $ac_file in cannam@85: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) cannam@85: ;; cannam@85: conftest.$ac_ext ) cannam@85: # This is the source file. cannam@85: ;; cannam@85: [ab].out ) cannam@85: # We found the default executable, but exeext='' is most cannam@85: # certainly right. cannam@85: break;; cannam@85: *.* ) cannam@85: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@85: # FIXME: I believe we export ac_cv_exeext for Libtool, cannam@85: # but it would be cool to find out if it's true. Does anybody cannam@85: # maintain Libtool? --akim. cannam@85: export ac_cv_exeext cannam@85: break;; cannam@85: * ) cannam@85: break;; cannam@85: esac cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: { { echo "$as_me:$LINENO: error: C compiler cannot create executables cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: C compiler cannot create executables cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 77); exit 77; }; } cannam@85: fi cannam@85: cannam@85: ac_exeext=$ac_cv_exeext cannam@85: echo "$as_me:$LINENO: result: $ac_file" >&5 cannam@85: echo "${ECHO_T}$ac_file" >&6 cannam@85: cannam@85: # Check the compiler produces executables we can run. If not, either cannam@85: # the compiler is broken, or we cross compile. cannam@85: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 cannam@85: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 cannam@85: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 cannam@85: # If not cross compiling, check that we can run a simple program. cannam@85: if test "$cross_compiling" != yes; then cannam@85: if { ac_try='./$ac_file' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cross_compiling=no cannam@85: else cannam@85: if test "$cross_compiling" = maybe; then cannam@85: cross_compiling=yes cannam@85: else cannam@85: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. cannam@85: If you meant to cross compile, use \`--host'. cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot run C compiled programs. cannam@85: If you meant to cross compile, use \`--host'. cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: cannam@85: rm -f a.out a.exe conftest$ac_cv_exeext b.out cannam@85: ac_clean_files=$ac_clean_files_save cannam@85: # Check the compiler produces executables we can run. If not, either cannam@85: # the compiler is broken, or we cross compile. cannam@85: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 cannam@85: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 cannam@85: echo "$as_me:$LINENO: result: $cross_compiling" >&5 cannam@85: echo "${ECHO_T}$cross_compiling" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking for suffix of executables" >&5 cannam@85: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@85: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@85: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@85: # `rm'. cannam@85: for ac_file in conftest.exe conftest conftest.*; do cannam@85: test -f "$ac_file" || continue cannam@85: case $ac_file in cannam@85: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; cannam@85: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@85: export ac_cv_exeext cannam@85: break;; cannam@85: * ) break;; cannam@85: esac cannam@85: done cannam@85: else cannam@85: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: rm -f conftest$ac_cv_exeext cannam@85: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 cannam@85: echo "${ECHO_T}$ac_cv_exeext" >&6 cannam@85: cannam@85: rm -f conftest.$ac_ext cannam@85: EXEEXT=$ac_cv_exeext cannam@85: ac_exeext=$EXEEXT cannam@85: echo "$as_me:$LINENO: checking for suffix of object files" >&5 cannam@85: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 cannam@85: if test "${ac_cv_objext+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.o conftest.obj cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do cannam@85: case $ac_file in cannam@85: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; cannam@85: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@85: break;; cannam@85: esac cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute suffix of object files: cannot compile cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 cannam@85: echo "${ECHO_T}$ac_cv_objext" >&6 cannam@85: OBJEXT=$ac_cv_objext cannam@85: ac_objext=$OBJEXT cannam@85: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 cannam@85: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 cannam@85: if test "${ac_cv_c_compiler_gnu+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: #ifndef __GNUC__ cannam@85: choke me cannam@85: #endif cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_compiler_gnu=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_compiler_gnu=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 cannam@85: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 cannam@85: GCC=`test $ac_compiler_gnu = yes && echo yes` cannam@85: ac_test_CFLAGS=${CFLAGS+set} cannam@85: ac_save_CFLAGS=$CFLAGS cannam@85: CFLAGS="-g" cannam@85: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 cannam@85: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_cc_g+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_prog_cc_g=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_prog_cc_g=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 cannam@85: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 cannam@85: if test "$ac_test_CFLAGS" = set; then cannam@85: CFLAGS=$ac_save_CFLAGS cannam@85: elif test $ac_cv_prog_cc_g = yes; then cannam@85: if test "$GCC" = yes; then cannam@85: CFLAGS="-g -O2" cannam@85: else cannam@85: CFLAGS="-g" cannam@85: fi cannam@85: else cannam@85: if test "$GCC" = yes; then cannam@85: CFLAGS="-O2" cannam@85: else cannam@85: CFLAGS= cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 cannam@85: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_cc_stdc+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_cv_prog_cc_stdc=no cannam@85: ac_save_CC=$CC cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@85: struct buf { int x; }; cannam@85: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@85: static char *e (p, i) cannam@85: char **p; cannam@85: int i; cannam@85: { cannam@85: return p[i]; cannam@85: } cannam@85: static char *f (char * (*g) (char **, int), char **p, ...) cannam@85: { cannam@85: char *s; cannam@85: va_list v; cannam@85: va_start (v,p); cannam@85: s = g (p, va_arg (v,int)); cannam@85: va_end (v); cannam@85: return s; cannam@85: } cannam@85: cannam@85: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@85: function prototypes and stuff, but not '\xHH' hex character constants. cannam@85: These don't provoke an error unfortunately, instead are silently treated cannam@85: as 'x'. The following induces an error, until -std1 is added to get cannam@85: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@85: array size at least. It's necessary to write '\x00'==0 to get something cannam@85: that's true only with -std1. */ cannam@85: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@85: cannam@85: int test (int i, double x); cannam@85: struct s1 {int (*f) (int a);}; cannam@85: struct s2 {int (*f) (double a);}; cannam@85: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@85: int argc; cannam@85: char **argv; cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: # Don't try gcc -ansi; that turns off useful extensions and cannam@85: # breaks some systems' header files. cannam@85: # AIX -qlanglvl=ansi cannam@85: # Ultrix and OSF/1 -std1 cannam@85: # HP-UX 10.20 and later -Ae cannam@85: # HP-UX older versions -Aa -D_HPUX_SOURCE cannam@85: # SVR4 -Xc -D__EXTENSIONS__ cannam@85: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@85: do cannam@85: CC="$ac_save_CC $ac_arg" cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_prog_cc_stdc=$ac_arg cannam@85: break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext cannam@85: done cannam@85: rm -f conftest.$ac_ext conftest.$ac_objext cannam@85: CC=$ac_save_CC cannam@85: cannam@85: fi cannam@85: cannam@85: case "x$ac_cv_prog_cc_stdc" in cannam@85: x|xno) cannam@85: echo "$as_me:$LINENO: result: none needed" >&5 cannam@85: echo "${ECHO_T}none needed" >&6 ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 cannam@85: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 cannam@85: CC="$CC $ac_cv_prog_cc_stdc" ;; cannam@85: esac cannam@85: cannam@85: # Some people use a C++ compiler to compile C. Since we use `exit', cannam@85: # in C++ we need to declare it. In case someone uses the same compiler cannam@85: # for both compiling C and C++ we need to have the C++ compiler decide cannam@85: # the declaration of exit, since it's the most demanding environment. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: #ifndef __cplusplus cannam@85: choke me cannam@85: #endif cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: for ac_declaration in \ cannam@85: '' \ cannam@85: 'extern "C" void std::exit (int) throw (); using std::exit;' \ cannam@85: 'extern "C" void std::exit (int); using std::exit;' \ cannam@85: 'extern "C" void exit (int) throw ();' \ cannam@85: 'extern "C" void exit (int);' \ cannam@85: 'void exit (int);' cannam@85: do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_declaration cannam@85: #include cannam@85: int cannam@85: main () cannam@85: { cannam@85: exit (42); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_declaration cannam@85: int cannam@85: main () cannam@85: { cannam@85: exit (42); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: rm -f conftest* cannam@85: if test -n "$ac_declaration"; then cannam@85: echo '#ifdef __cplusplus' >>confdefs.h cannam@85: echo $ac_declaration >>confdefs.h cannam@85: echo '#endif' >>confdefs.h cannam@85: fi cannam@85: cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: DEPDIR="${am__leading_dot}deps" cannam@85: cannam@85: ac_config_commands="$ac_config_commands depfiles" cannam@85: cannam@85: cannam@85: am_make=${MAKE-make} cannam@85: cat > confinc << 'END' cannam@85: am__doit: cannam@85: @echo done cannam@85: .PHONY: am__doit cannam@85: END cannam@85: # If we don't find an include directive, just comment out the code. cannam@85: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 cannam@85: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 cannam@85: am__include="#" cannam@85: am__quote= cannam@85: _am_result=none cannam@85: # First try GNU make style include. cannam@85: echo "include confinc" > confmf cannam@85: # We grep out `Entering directory' and `Leaving directory' cannam@85: # messages which can occur if `w' ends up in MAKEFLAGS. cannam@85: # In particular we don't look at `^make:' because GNU make might cannam@85: # be invoked under some other name (usually "gmake"), in which cannam@85: # case it prints its new name instead of `make'. cannam@85: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then cannam@85: am__include=include cannam@85: am__quote= cannam@85: _am_result=GNU cannam@85: fi cannam@85: # Now try BSD make style include. cannam@85: if test "$am__include" = "#"; then cannam@85: echo '.include "confinc"' > confmf cannam@85: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then cannam@85: am__include=.include cannam@85: am__quote="\"" cannam@85: _am_result=BSD cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: result: $_am_result" >&5 cannam@85: echo "${ECHO_T}$_am_result" >&6 cannam@85: rm -f confinc confmf cannam@85: cannam@85: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. cannam@85: if test "${enable_dependency_tracking+set}" = set; then cannam@85: enableval="$enable_dependency_tracking" cannam@85: cannam@85: fi; cannam@85: if test "x$enable_dependency_tracking" != xno; then cannam@85: am_depcomp="$ac_aux_dir/depcomp" cannam@85: AMDEPBACKSLASH='\' cannam@85: fi cannam@85: cannam@85: cannam@85: if test "x$enable_dependency_tracking" != xno; then cannam@85: AMDEP_TRUE= cannam@85: AMDEP_FALSE='#' cannam@85: else cannam@85: AMDEP_TRUE='#' cannam@85: AMDEP_FALSE= cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: depcc="$CC" am_compiler_list= cannam@85: cannam@85: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@85: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 cannam@85: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@85: # We make a subdir and do the tests there. Otherwise we can end up cannam@85: # making bogus files that we don't know about and never remove. For cannam@85: # instance it was reported that on HP-UX the gcc test will end up cannam@85: # making a dummy file named `D' -- because `-MD' means `put the output cannam@85: # in D'. cannam@85: mkdir conftest.dir cannam@85: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@85: # using a relative directory. cannam@85: cp "$am_depcomp" conftest.dir cannam@85: cd conftest.dir cannam@85: # We will build objects and dependencies in a subdirectory because cannam@85: # it helps to detect inapplicable dependency modes. For instance cannam@85: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@85: # side effect of compilation, but ICC will put the dependencies in cannam@85: # the current directory while Tru64 will put them in the object cannam@85: # directory. cannam@85: mkdir sub cannam@85: cannam@85: am_cv_CC_dependencies_compiler_type=none cannam@85: if test "$am_compiler_list" = ""; then cannam@85: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@85: fi cannam@85: for depmode in $am_compiler_list; do cannam@85: # Setup a source with many dependencies, because some compilers cannam@85: # like to wrap large dependency lists on column 80 (with \), and cannam@85: # we should not choose a depcomp mode which is confused by this. cannam@85: # cannam@85: # We need to recreate these files for each test, as the compiler may cannam@85: # overwrite some of them when testing with obscure command lines. cannam@85: # This happens at least with the AIX C compiler. cannam@85: : > sub/conftest.c cannam@85: for i in 1 2 3 4 5 6; do cannam@85: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@85: : > sub/conftst$i.h cannam@85: done cannam@85: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@85: cannam@85: case $depmode in cannam@85: nosideeffect) cannam@85: # after this tag, mechanisms are not by side-effect, so they'll cannam@85: # only be used when explicitly requested cannam@85: if test "x$enable_dependency_tracking" = xyes; then cannam@85: continue cannam@85: else cannam@85: break cannam@85: fi cannam@85: ;; cannam@85: none) break ;; cannam@85: esac cannam@85: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@85: # mode. It turns out that the SunPro C++ compiler does not properly cannam@85: # handle `-M -o', and we need to detect this. cannam@85: if depmode=$depmode \ cannam@85: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@85: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@85: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@85: >/dev/null 2>conftest.err && cannam@85: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@85: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@85: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@85: # icc doesn't choke on unknown options, it will just issue warnings cannam@85: # (even with -Werror). So we grep stderr for any message cannam@85: # that says an option was ignored. cannam@85: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@85: am_cv_CC_dependencies_compiler_type=$depmode cannam@85: break cannam@85: fi cannam@85: fi cannam@85: done cannam@85: cannam@85: cd .. cannam@85: rm -rf conftest.dir cannam@85: else cannam@85: am_cv_CC_dependencies_compiler_type=none cannam@85: fi cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 cannam@85: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 cannam@85: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type cannam@85: cannam@85: cannam@85: cannam@85: if cannam@85: test "x$enable_dependency_tracking" != xno \ cannam@85: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then cannam@85: am__fastdepCC_TRUE= cannam@85: am__fastdepCC_FALSE='#' cannam@85: else cannam@85: am__fastdepCC_TRUE='#' cannam@85: am__fastdepCC_FALSE= cannam@85: fi cannam@85: cannam@85: cannam@85: # By default we simply use the C compiler to build assembly code. cannam@85: cannam@85: test "${CCAS+set}" = set || CCAS=$CC cannam@85: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: if test "$GCC" = yes cannam@85: then cannam@85: case "$host" in cannam@85: *-*-mingw*) cannam@85: case "$build" in cannam@85: *-*-cygwin*) cannam@85: CPPFLAGS="$CPPFLAGS -mno-cygwin" cannam@85: LDFLAGS="$LDFLAGS -mno-cygwin" cannam@85: ;; cannam@85: esac cannam@85: esac cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: # Check whether --enable-shared or --disable-shared was given. cannam@85: if test "${enable_shared+set}" = set; then cannam@85: enableval="$enable_shared" cannam@85: p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_shared=yes ;; cannam@85: no) enable_shared=no ;; cannam@85: *) cannam@85: enable_shared=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_shared=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: enable_shared=yes cannam@85: fi; cannam@85: cannam@85: # Check whether --enable-static or --disable-static was given. cannam@85: if test "${enable_static+set}" = set; then cannam@85: enableval="$enable_static" cannam@85: p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_static=yes ;; cannam@85: no) enable_static=no ;; cannam@85: *) cannam@85: enable_static=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_static=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: enable_static=yes cannam@85: fi; cannam@85: cannam@85: # Check whether --enable-fast-install or --disable-fast-install was given. cannam@85: if test "${enable_fast_install+set}" = set; then cannam@85: enableval="$enable_fast_install" cannam@85: p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_fast_install=yes ;; cannam@85: no) enable_fast_install=no ;; cannam@85: *) cannam@85: enable_fast_install=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_fast_install=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: enable_fast_install=yes cannam@85: fi; cannam@85: cannam@85: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 cannam@85: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 cannam@85: if test "${lt_cv_path_SED+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # Loop through the user's path and test for sed and gsed. cannam@85: # Then use that list of sed's as ones to test for truncation. cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for lt_ac_prog in sed gsed; do cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then cannam@85: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" cannam@85: fi cannam@85: done cannam@85: done cannam@85: done cannam@85: lt_ac_max=0 cannam@85: lt_ac_count=0 cannam@85: # Add /usr/xpg4/bin/sed as it is typically found on Solaris cannam@85: # along with /bin/sed that truncates output. cannam@85: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do cannam@85: test ! -f $lt_ac_sed && break cannam@85: cat /dev/null > conftest.in cannam@85: lt_ac_count=0 cannam@85: echo $ECHO_N "0123456789$ECHO_C" >conftest.in cannam@85: # Check for GNU sed and select it if it is found. cannam@85: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then cannam@85: lt_cv_path_SED=$lt_ac_sed cannam@85: break cannam@85: fi cannam@85: while true; do cannam@85: cat conftest.in conftest.in >conftest.tmp cannam@85: mv conftest.tmp conftest.in cannam@85: cp conftest.in conftest.nl cannam@85: echo >>conftest.nl cannam@85: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cannam@85: cmp -s conftest.out conftest.nl || break cannam@85: # 10000 chars as input seems more than enough cannam@85: test $lt_ac_count -gt 10 && break cannam@85: lt_ac_count=`expr $lt_ac_count + 1` cannam@85: if test $lt_ac_count -gt $lt_ac_max; then cannam@85: lt_ac_max=$lt_ac_count cannam@85: lt_cv_path_SED=$lt_ac_sed cannam@85: fi cannam@85: done cannam@85: done cannam@85: SED=$lt_cv_path_SED cannam@85: cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $SED" >&5 cannam@85: echo "${ECHO_T}$SED" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking for egrep" >&5 cannam@85: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_egrep+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 cannam@85: then ac_cv_prog_egrep='grep -E' cannam@85: else ac_cv_prog_egrep='egrep' cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 cannam@85: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 cannam@85: EGREP=$ac_cv_prog_egrep cannam@85: cannam@85: cannam@85: cannam@85: # Check whether --with-gnu-ld or --without-gnu-ld was given. cannam@85: if test "${with_gnu_ld+set}" = set; then cannam@85: withval="$with_gnu_ld" cannam@85: test "$withval" = no || with_gnu_ld=yes cannam@85: else cannam@85: with_gnu_ld=no cannam@85: fi; cannam@85: ac_prog=ld cannam@85: if test "$GCC" = yes; then cannam@85: # Check if gcc -print-prog-name=ld gives a path. cannam@85: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 cannam@85: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 cannam@85: case $host in cannam@85: *-*-mingw*) cannam@85: # gcc leaves a trailing carriage return which upsets mingw cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@85: *) cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@85: esac cannam@85: case $ac_prog in cannam@85: # Accept absolute paths. cannam@85: [\\/]* | ?:[\\/]*) cannam@85: re_direlt='/[^/][^/]*/\.\./' cannam@85: # Canonicalize the pathname of ld cannam@85: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` cannam@85: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@85: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` cannam@85: done cannam@85: test -z "$LD" && LD="$ac_prog" cannam@85: ;; cannam@85: "") cannam@85: # If it fails, then pretend we aren't using GCC. cannam@85: ac_prog=ld cannam@85: ;; cannam@85: *) cannam@85: # If it is relative, then search for the first ld in PATH. cannam@85: with_gnu_ld=unknown cannam@85: ;; cannam@85: esac cannam@85: elif test "$with_gnu_ld" = yes; then cannam@85: echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@85: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@85: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 cannam@85: fi cannam@85: if test "${lt_cv_path_LD+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -z "$LD"; then cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for ac_dir in $PATH; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@85: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@85: # Check to see if the program is GNU ld. I'd rather use --version, cannam@85: # but apparently some GNU ld's only accept -v. cannam@85: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@85: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@85: echo "${ECHO_T}$LD" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@85: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@85: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_gnu_ld+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # I'd rather use --version here, but apparently some GNU ld's only accept -v. cannam@85: case `$LD -v 2>&1 &5 cannam@85: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 cannam@85: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 cannam@85: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 cannam@85: if test "${lt_cv_ld_reload_flag+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_ld_reload_flag='-r' cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 cannam@85: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 cannam@85: reload_flag=$lt_cv_ld_reload_flag cannam@85: case $reload_flag in cannam@85: "" | " "*) ;; cannam@85: *) reload_flag=" $reload_flag" ;; cannam@85: esac cannam@85: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@85: cannam@85: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 cannam@85: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 cannam@85: if test "${lt_cv_path_NM+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$NM"; then cannam@85: # Let the user override the test. cannam@85: lt_cv_path_NM="$NM" cannam@85: else cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: tmp_nm="$ac_dir/${ac_tool_prefix}nm" cannam@85: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then cannam@85: # Check to see if the nm accepts a BSD-compat flag. cannam@85: # Adding the `sed 1q' prevents false positives on HP-UX, which says: cannam@85: # nm: unknown option "B" ignored cannam@85: # Tru64's nm complains that /dev/null is an invalid object file cannam@85: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in cannam@85: */dev/null* | *'Invalid file or object type'*) cannam@85: lt_cv_path_NM="$tmp_nm -B" cannam@85: break cannam@85: ;; cannam@85: *) cannam@85: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@85: */dev/null*) cannam@85: lt_cv_path_NM="$tmp_nm -p" cannam@85: break cannam@85: ;; cannam@85: *) cannam@85: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@85: continue # so that we can try to find one that supports BSD flags cannam@85: ;; cannam@85: esac cannam@85: esac cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 cannam@85: echo "${ECHO_T}$lt_cv_path_NM" >&6 cannam@85: NM="$lt_cv_path_NM" cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether ln -s works" >&5 cannam@85: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 cannam@85: LN_S=$as_ln_s cannam@85: if test "$LN_S" = "ln -s"; then cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 cannam@85: echo "${ECHO_T}no, using $LN_S" >&6 cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 cannam@85: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 cannam@85: if test "${lt_cv_deplibs_check_method+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_file_magic_cmd='$MAGIC_CMD' cannam@85: lt_cv_file_magic_test_file= cannam@85: lt_cv_deplibs_check_method='unknown' cannam@85: # Need to set the preceding variable on all platforms that support cannam@85: # interlibrary dependencies. cannam@85: # 'none' -- dependencies not supported. cannam@85: # `unknown' -- same as none, but documents that we really don't know. cannam@85: # 'pass_all' -- all dependencies passed with no checks. cannam@85: # 'test_compile' -- check by making test program. cannam@85: # 'file_magic [[regex]]' -- check by looking for files in library path cannam@85: # which responds to the $file_magic_cmd with a given extended regex. cannam@85: # If you have `file' or equivalent on your system and you're not sure cannam@85: # whether `pass_all' will *always* work, you probably want this one. cannam@85: cannam@85: case $host_os in cannam@85: aix4* | aix5*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' cannam@85: lt_cv_file_magic_cmd='/usr/bin/file -L' cannam@85: lt_cv_file_magic_test_file=/shlib/libc.so cannam@85: ;; cannam@85: cannam@85: cygwin*) cannam@85: # win32_libid is a shell function defined in ltmain.sh cannam@85: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@85: lt_cv_file_magic_cmd='win32_libid' cannam@85: ;; cannam@85: cannam@85: mingw* | pw32*) cannam@85: # Base MSYS/MinGW do not provide the 'file' command needed by cannam@85: # win32_libid shell function, so use a weaker test based on 'objdump'. cannam@85: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' cannam@85: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then cannam@85: case $host_cpu in cannam@85: i*86 ) cannam@85: # Not sure whether the presence of OpenBSD here was a mistake. cannam@85: # Let's accept both of them until this is cleared up. cannam@85: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: fi cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: hpux10.20* | hpux11*) cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' cannam@85: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@85: ;; cannam@85: hppa*64*) cannam@85: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' cannam@85: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@85: ;; cannam@85: *) cannam@85: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' cannam@85: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $LD in cannam@85: *-32|*"-32 ") libmagic=32-bit;; cannam@85: *-n32|*"-n32 ") libmagic=N32;; cannam@85: *-64|*"-64 ") libmagic=64-bit;; cannam@85: *) libmagic=never-match;; cannam@85: esac cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then cannam@85: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@85: else cannam@85: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: newos6*) cannam@85: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: lt_cv_deplibs_check_method=unknown cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' cannam@85: else cannam@85: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: case $host_vendor in cannam@85: motorola) cannam@85: 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]' cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@85: ;; cannam@85: ncr) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: sequent) cannam@85: lt_cv_file_magic_cmd='/bin/file' cannam@85: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' cannam@85: ;; cannam@85: sni) cannam@85: lt_cv_file_magic_cmd='/bin/file' cannam@85: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" cannam@85: lt_cv_file_magic_test_file=/lib/libc.so cannam@85: ;; cannam@85: siemens) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 cannam@85: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 cannam@85: file_magic_cmd=$lt_cv_file_magic_cmd cannam@85: deplibs_check_method=$lt_cv_deplibs_check_method cannam@85: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. cannam@85: if test "${enable_libtool_lock+set}" = set; then cannam@85: enableval="$enable_libtool_lock" cannam@85: cannam@85: fi; cannam@85: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@85: cannam@85: # Some flags need to be propagated to the compiler or linker for good cannam@85: # libtool support. cannam@85: case $host in cannam@85: ia64-*-hpux*) cannam@85: # Find out which ABI we are using. cannam@85: echo 'int i;' > conftest.$ac_ext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *ELF-32*) cannam@85: HPUX_IA64_MODE="32" cannam@85: ;; cannam@85: *ELF-64*) cannam@85: HPUX_IA64_MODE="64" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: *-*-irix6*) cannam@85: # Find out which ABI we are using. cannam@85: echo '#line 3683 "configure"' > conftest.$ac_ext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *32-bit*) cannam@85: LD="${LD-ld} -melf32bsmip" cannam@85: ;; cannam@85: *N32*) cannam@85: LD="${LD-ld} -melf32bmipn32" cannam@85: ;; cannam@85: *64-bit*) cannam@85: LD="${LD-ld} -melf64bmip" cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *32-bit*) cannam@85: LD="${LD-ld} -32" cannam@85: ;; cannam@85: *N32*) cannam@85: LD="${LD-ld} -n32" cannam@85: ;; cannam@85: *64-bit*) cannam@85: LD="${LD-ld} -64" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: cannam@85: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) cannam@85: # Find out which ABI we are using. cannam@85: echo 'int i;' > conftest.$ac_ext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: case "`/usr/bin/file conftest.o`" in cannam@85: *32-bit*) cannam@85: case $host in cannam@85: x86_64-*linux*) cannam@85: LD="${LD-ld} -m elf_i386" cannam@85: ;; cannam@85: ppc64-*linux*|powerpc64-*linux*) cannam@85: LD="${LD-ld} -m elf32ppclinux" cannam@85: ;; cannam@85: s390x-*linux*) cannam@85: LD="${LD-ld} -m elf_s390" cannam@85: ;; cannam@85: sparc64-*linux*) cannam@85: LD="${LD-ld} -m elf32_sparc" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *64-bit*) cannam@85: case $host in cannam@85: x86_64-*linux*) cannam@85: LD="${LD-ld} -m elf_x86_64" cannam@85: ;; cannam@85: ppc*-*linux*|powerpc*-*linux*) cannam@85: LD="${LD-ld} -m elf64ppc" cannam@85: ;; cannam@85: s390*-*linux*) cannam@85: LD="${LD-ld} -m elf64_s390" cannam@85: ;; cannam@85: sparc*-*linux*) cannam@85: LD="${LD-ld} -m elf64_sparc" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: cannam@85: *-*-sco3.2v5*) cannam@85: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@85: SAVE_CFLAGS="$CFLAGS" cannam@85: CFLAGS="$CFLAGS -belf" cannam@85: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 cannam@85: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 cannam@85: if test "${lt_cv_cc_needs_belf+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: lt_cv_cc_needs_belf=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: lt_cv_cc_needs_belf=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 cannam@85: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 cannam@85: if test x"$lt_cv_cc_needs_belf" != x"yes"; then cannam@85: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@85: CFLAGS="$SAVE_CFLAGS" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: esac cannam@85: cannam@85: need_locks="$enable_libtool_lock" cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 cannam@85: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 cannam@85: # On Suns, sometimes $CPP names a directory. cannam@85: if test -n "$CPP" && test -d "$CPP"; then cannam@85: CPP= cannam@85: fi cannam@85: if test -z "$CPP"; then cannam@85: if test "${ac_cv_prog_CPP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # Double quotes because CPP needs to be expanded cannam@85: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@85: do cannam@85: ac_preproc_ok=false cannam@85: for ac_c_preproc_warn_flag in '' yes cannam@85: do cannam@85: # Use a header file that comes with gcc, so configuring glibc cannam@85: # with a fresh cross-compiler works. cannam@85: # Prefer to if __STDC__ is defined, since cannam@85: # exists even on freestanding compilers. cannam@85: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@85: # not just through cpp. "Syntax error" is here to catch this case. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: Syntax error cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Broken: fails on valid input. cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: # OK, works on sane cases. Now check whether non-existent headers cannam@85: # can be detected and how. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: # Broken: success on invalid input. cannam@85: continue cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Passes both tests. cannam@85: ac_preproc_ok=: cannam@85: break cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: done cannam@85: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: if $ac_preproc_ok; then cannam@85: break cannam@85: fi cannam@85: cannam@85: done cannam@85: ac_cv_prog_CPP=$CPP cannam@85: cannam@85: fi cannam@85: CPP=$ac_cv_prog_CPP cannam@85: else cannam@85: ac_cv_prog_CPP=$CPP cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $CPP" >&5 cannam@85: echo "${ECHO_T}$CPP" >&6 cannam@85: ac_preproc_ok=false cannam@85: for ac_c_preproc_warn_flag in '' yes cannam@85: do cannam@85: # Use a header file that comes with gcc, so configuring glibc cannam@85: # with a fresh cross-compiler works. cannam@85: # Prefer to if __STDC__ is defined, since cannam@85: # exists even on freestanding compilers. cannam@85: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@85: # not just through cpp. "Syntax error" is here to catch this case. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: Syntax error cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Broken: fails on valid input. cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: # OK, works on sane cases. Now check whether non-existent headers cannam@85: # can be detected and how. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: # Broken: success on invalid input. cannam@85: continue cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Passes both tests. cannam@85: ac_preproc_ok=: cannam@85: break cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: done cannam@85: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: if $ac_preproc_ok; then cannam@85: : cannam@85: else cannam@85: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 cannam@85: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 cannam@85: if test "${ac_cv_header_stdc+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_header_stdc=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: cannam@85: _ACEOF cannam@85: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@85: $EGREP "memchr" >/dev/null 2>&1; then cannam@85: : cannam@85: else cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest* cannam@85: cannam@85: fi cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: cannam@85: _ACEOF cannam@85: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@85: $EGREP "free" >/dev/null 2>&1; then cannam@85: : cannam@85: else cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest* cannam@85: cannam@85: fi cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@85: if test "$cross_compiling" = yes; then cannam@85: : cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #if ((' ' & 0x0FF) == 0x020) cannam@85: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@85: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@85: #else cannam@85: # define ISLOWER(c) \ cannam@85: (('a' <= (c) && (c) <= 'i') \ cannam@85: || ('j' <= (c) && (c) <= 'r') \ cannam@85: || ('s' <= (c) && (c) <= 'z')) cannam@85: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@85: #endif cannam@85: cannam@85: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@85: int cannam@85: main () cannam@85: { cannam@85: int i; cannam@85: for (i = 0; i < 256; i++) cannam@85: if (XOR (islower (i), ISLOWER (i)) cannam@85: || toupper (i) != TOUPPER (i)) cannam@85: exit(2); cannam@85: exit (0); cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 cannam@85: echo "${ECHO_T}$ac_cv_header_stdc" >&6 cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define STDC_HEADERS 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@85: inttypes.h stdint.h unistd.h cannam@85: do cannam@85: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@85: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@85: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: cannam@85: #include <$ac_header> cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: eval "$as_ac_Header=yes" cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: eval "$as_ac_Header=no" cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@85: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: done cannam@85: cannam@85: cannam@85: cannam@85: for ac_header in dlfcn.h cannam@85: do cannam@85: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@85: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@85: else cannam@85: # Is the header compilable? cannam@85: echo "$as_me:$LINENO: checking $ac_header usability" >&5 cannam@85: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: #include <$ac_header> cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_header_compiler=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_header_compiler=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 cannam@85: echo "${ECHO_T}$ac_header_compiler" >&6 cannam@85: cannam@85: # Is the header present? cannam@85: echo "$as_me:$LINENO: checking $ac_header presence" >&5 cannam@85: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include <$ac_header> cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: ac_header_preproc=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_header_preproc=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 cannam@85: echo "${ECHO_T}$ac_header_preproc" >&6 cannam@85: cannam@85: # So? What about this header? cannam@85: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in cannam@85: yes:no: ) cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} cannam@85: ac_header_preproc=yes cannam@85: ;; cannam@85: no:yes:* ) cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} cannam@85: ( cannam@85: cat <<\_ASBOX cannam@85: ## ----------------------------------- ## cannam@85: ## Report this to support@underbit.com ## cannam@85: ## ----------------------------------- ## cannam@85: _ASBOX cannam@85: ) | cannam@85: sed "s/^/$as_me: WARNING: /" >&2 cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@85: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: eval "$as_ac_Header=\$ac_header_preproc" cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@85: cannam@85: fi cannam@85: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: done cannam@85: cannam@85: ac_ext=cc cannam@85: ac_cpp='$CXXCPP $CPPFLAGS' cannam@85: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@85: do cannam@85: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_CXX+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$CXX"; then cannam@85: ac_cv_prog_CXX="$CXX" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: CXX=$ac_cv_prog_CXX cannam@85: if test -n "$CXX"; then cannam@85: echo "$as_me:$LINENO: result: $CXX" >&5 cannam@85: echo "${ECHO_T}$CXX" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$CXX" && break cannam@85: done cannam@85: fi cannam@85: if test -z "$CXX"; then cannam@85: ac_ct_CXX=$CXX cannam@85: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@85: do cannam@85: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_CXX"; then cannam@85: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_CXX="$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX cannam@85: if test -n "$ac_ct_CXX"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 cannam@85: echo "${ECHO_T}$ac_ct_CXX" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$ac_ct_CXX" && break cannam@85: done cannam@85: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" cannam@85: cannam@85: CXX=$ac_ct_CXX cannam@85: fi cannam@85: cannam@85: cannam@85: # Provide some information about the compiler. cannam@85: echo "$as_me:$LINENO:" \ cannam@85: "checking for C++ compiler version" >&5 cannam@85: ac_compiler=`set X $ac_compile; echo $2` cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@85: (eval $ac_compiler --version &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@85: (eval $ac_compiler -v &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@85: (eval $ac_compiler -V &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 cannam@85: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 cannam@85: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: #ifndef __GNUC__ cannam@85: choke me cannam@85: #endif cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_compiler_gnu=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_compiler_gnu=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 cannam@85: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 cannam@85: GXX=`test $ac_compiler_gnu = yes && echo yes` cannam@85: ac_test_CXXFLAGS=${CXXFLAGS+set} cannam@85: ac_save_CXXFLAGS=$CXXFLAGS cannam@85: CXXFLAGS="-g" cannam@85: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 cannam@85: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_cxx_g+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_prog_cxx_g=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_prog_cxx_g=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 cannam@85: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 cannam@85: if test "$ac_test_CXXFLAGS" = set; then cannam@85: CXXFLAGS=$ac_save_CXXFLAGS cannam@85: elif test $ac_cv_prog_cxx_g = yes; then cannam@85: if test "$GXX" = yes; then cannam@85: CXXFLAGS="-g -O2" cannam@85: else cannam@85: CXXFLAGS="-g" cannam@85: fi cannam@85: else cannam@85: if test "$GXX" = yes; then cannam@85: CXXFLAGS="-O2" cannam@85: else cannam@85: CXXFLAGS= cannam@85: fi cannam@85: fi cannam@85: for ac_declaration in \ cannam@85: '' \ cannam@85: 'extern "C" void std::exit (int) throw (); using std::exit;' \ cannam@85: 'extern "C" void std::exit (int); using std::exit;' \ cannam@85: 'extern "C" void exit (int) throw ();' \ cannam@85: 'extern "C" void exit (int);' \ cannam@85: 'void exit (int);' cannam@85: do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_declaration cannam@85: #include cannam@85: int cannam@85: main () cannam@85: { cannam@85: exit (42); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_declaration cannam@85: int cannam@85: main () cannam@85: { cannam@85: exit (42); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: rm -f conftest* cannam@85: if test -n "$ac_declaration"; then cannam@85: echo '#ifdef __cplusplus' >>confdefs.h cannam@85: echo $ac_declaration >>confdefs.h cannam@85: echo '#endif' >>confdefs.h cannam@85: fi cannam@85: cannam@85: ac_ext=cc cannam@85: ac_cpp='$CXXCPP $CPPFLAGS' cannam@85: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@85: cannam@85: depcc="$CXX" am_compiler_list= cannam@85: cannam@85: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@85: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 cannam@85: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@85: # We make a subdir and do the tests there. Otherwise we can end up cannam@85: # making bogus files that we don't know about and never remove. For cannam@85: # instance it was reported that on HP-UX the gcc test will end up cannam@85: # making a dummy file named `D' -- because `-MD' means `put the output cannam@85: # in D'. cannam@85: mkdir conftest.dir cannam@85: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@85: # using a relative directory. cannam@85: cp "$am_depcomp" conftest.dir cannam@85: cd conftest.dir cannam@85: # We will build objects and dependencies in a subdirectory because cannam@85: # it helps to detect inapplicable dependency modes. For instance cannam@85: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@85: # side effect of compilation, but ICC will put the dependencies in cannam@85: # the current directory while Tru64 will put them in the object cannam@85: # directory. cannam@85: mkdir sub cannam@85: cannam@85: am_cv_CXX_dependencies_compiler_type=none cannam@85: if test "$am_compiler_list" = ""; then cannam@85: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@85: fi cannam@85: for depmode in $am_compiler_list; do cannam@85: # Setup a source with many dependencies, because some compilers cannam@85: # like to wrap large dependency lists on column 80 (with \), and cannam@85: # we should not choose a depcomp mode which is confused by this. cannam@85: # cannam@85: # We need to recreate these files for each test, as the compiler may cannam@85: # overwrite some of them when testing with obscure command lines. cannam@85: # This happens at least with the AIX C compiler. cannam@85: : > sub/conftest.c cannam@85: for i in 1 2 3 4 5 6; do cannam@85: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@85: : > sub/conftst$i.h cannam@85: done cannam@85: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@85: cannam@85: case $depmode in cannam@85: nosideeffect) cannam@85: # after this tag, mechanisms are not by side-effect, so they'll cannam@85: # only be used when explicitly requested cannam@85: if test "x$enable_dependency_tracking" = xyes; then cannam@85: continue cannam@85: else cannam@85: break cannam@85: fi cannam@85: ;; cannam@85: none) break ;; cannam@85: esac cannam@85: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@85: # mode. It turns out that the SunPro C++ compiler does not properly cannam@85: # handle `-M -o', and we need to detect this. cannam@85: if depmode=$depmode \ cannam@85: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@85: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@85: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@85: >/dev/null 2>conftest.err && cannam@85: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@85: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@85: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@85: # icc doesn't choke on unknown options, it will just issue warnings cannam@85: # (even with -Werror). So we grep stderr for any message cannam@85: # that says an option was ignored. cannam@85: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@85: am_cv_CXX_dependencies_compiler_type=$depmode cannam@85: break cannam@85: fi cannam@85: fi cannam@85: done cannam@85: cannam@85: cd .. cannam@85: rm -rf conftest.dir cannam@85: else cannam@85: am_cv_CXX_dependencies_compiler_type=none cannam@85: fi cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 cannam@85: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 cannam@85: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type cannam@85: cannam@85: cannam@85: cannam@85: if cannam@85: test "x$enable_dependency_tracking" != xno \ cannam@85: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then cannam@85: am__fastdepCXX_TRUE= cannam@85: am__fastdepCXX_FALSE='#' cannam@85: else cannam@85: am__fastdepCXX_TRUE='#' cannam@85: am__fastdepCXX_FALSE= cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=cc cannam@85: ac_cpp='$CXXCPP $CPPFLAGS' cannam@85: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@85: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 cannam@85: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 cannam@85: if test -z "$CXXCPP"; then cannam@85: if test "${ac_cv_prog_CXXCPP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # Double quotes because CXXCPP needs to be expanded cannam@85: for CXXCPP in "$CXX -E" "/lib/cpp" cannam@85: do cannam@85: ac_preproc_ok=false cannam@85: for ac_cxx_preproc_warn_flag in '' yes cannam@85: do cannam@85: # Use a header file that comes with gcc, so configuring glibc cannam@85: # with a fresh cross-compiler works. cannam@85: # Prefer to if __STDC__ is defined, since cannam@85: # exists even on freestanding compilers. cannam@85: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@85: # not just through cpp. "Syntax error" is here to catch this case. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: Syntax error cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Broken: fails on valid input. cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: # OK, works on sane cases. Now check whether non-existent headers cannam@85: # can be detected and how. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: # Broken: success on invalid input. cannam@85: continue cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Passes both tests. cannam@85: ac_preproc_ok=: cannam@85: break cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: done cannam@85: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: if $ac_preproc_ok; then cannam@85: break cannam@85: fi cannam@85: cannam@85: done cannam@85: ac_cv_prog_CXXCPP=$CXXCPP cannam@85: cannam@85: fi cannam@85: CXXCPP=$ac_cv_prog_CXXCPP cannam@85: else cannam@85: ac_cv_prog_CXXCPP=$CXXCPP cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $CXXCPP" >&5 cannam@85: echo "${ECHO_T}$CXXCPP" >&6 cannam@85: ac_preproc_ok=false cannam@85: for ac_cxx_preproc_warn_flag in '' yes cannam@85: do cannam@85: # Use a header file that comes with gcc, so configuring glibc cannam@85: # with a fresh cross-compiler works. cannam@85: # Prefer to if __STDC__ is defined, since cannam@85: # exists even on freestanding compilers. cannam@85: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@85: # not just through cpp. "Syntax error" is here to catch this case. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: Syntax error cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Broken: fails on valid input. cannam@85: continue cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: # OK, works on sane cases. Now check whether non-existent headers cannam@85: # can be detected and how. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: # Broken: success on invalid input. cannam@85: continue cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # Passes both tests. cannam@85: ac_preproc_ok=: cannam@85: break cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: cannam@85: done cannam@85: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: if $ac_preproc_ok; then cannam@85: : cannam@85: else cannam@85: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: ac_ext=cc cannam@85: ac_cpp='$CXXCPP $CPPFLAGS' cannam@85: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@85: cannam@85: cannam@85: ac_ext=f cannam@85: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran cannam@85: do cannam@85: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_F77+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$F77"; then cannam@85: ac_cv_prog_F77="$F77" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: F77=$ac_cv_prog_F77 cannam@85: if test -n "$F77"; then cannam@85: echo "$as_me:$LINENO: result: $F77" >&5 cannam@85: echo "${ECHO_T}$F77" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$F77" && break cannam@85: done cannam@85: fi cannam@85: if test -z "$F77"; then cannam@85: ac_ct_F77=$F77 cannam@85: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran cannam@85: do cannam@85: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@85: set dummy $ac_prog; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_F77"; then cannam@85: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_F77="$ac_prog" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: ac_ct_F77=$ac_cv_prog_ac_ct_F77 cannam@85: if test -n "$ac_ct_F77"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 cannam@85: echo "${ECHO_T}$ac_ct_F77" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: test -n "$ac_ct_F77" && break cannam@85: done cannam@85: cannam@85: F77=$ac_ct_F77 cannam@85: fi cannam@85: cannam@85: cannam@85: # Provide some information about the compiler. cannam@85: echo "$as_me:5240:" \ cannam@85: "checking for Fortran 77 compiler version" >&5 cannam@85: ac_compiler=`set X $ac_compile; echo $2` cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@85: (eval $ac_compiler --version &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@85: (eval $ac_compiler -v &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@85: (eval $ac_compiler -V &5) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: rm -f a.out cannam@85: cannam@85: # If we don't use `.F' as extension, the preprocessor is not run on the cannam@85: # input file. (Note that this only needs to work for GNU compilers.) cannam@85: ac_save_ext=$ac_ext cannam@85: ac_ext=F cannam@85: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 cannam@85: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 cannam@85: if test "${ac_cv_f77_compiler_gnu+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: program main cannam@85: #ifndef __GNUC__ cannam@85: choke me cannam@85: #endif cannam@85: cannam@85: end cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_compiler_gnu=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_compiler_gnu=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: ac_cv_f77_compiler_gnu=$ac_compiler_gnu cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 cannam@85: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 cannam@85: ac_ext=$ac_save_ext cannam@85: ac_test_FFLAGS=${FFLAGS+set} cannam@85: ac_save_FFLAGS=$FFLAGS cannam@85: FFLAGS= cannam@85: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 cannam@85: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_f77_g+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: FFLAGS=-g cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: program main cannam@85: cannam@85: end cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_prog_f77_g=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_prog_f77_g=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 cannam@85: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 cannam@85: if test "$ac_test_FFLAGS" = set; then cannam@85: FFLAGS=$ac_save_FFLAGS cannam@85: elif test $ac_cv_prog_f77_g = yes; then cannam@85: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@85: FFLAGS="-g -O2" cannam@85: else cannam@85: FFLAGS="-g" cannam@85: fi cannam@85: else cannam@85: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@85: FFLAGS="-O2" cannam@85: else cannam@85: FFLAGS= cannam@85: fi cannam@85: fi cannam@85: cannam@85: G77=`test $ac_compiler_gnu = yes && echo yes` cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: cannam@85: cannam@85: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! cannam@85: cannam@85: # find the maximum length of command line arguments cannam@85: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 cannam@85: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 cannam@85: if test "${lt_cv_sys_max_cmd_len+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: i=0 cannam@85: testring="ABCD" cannam@85: cannam@85: case $build_os in cannam@85: msdosdjgpp*) cannam@85: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@85: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@85: # during glob expansion). Even if it were fixed, the result of this cannam@85: # check would be larger than it should be. cannam@85: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: # Under GNU Hurd, this test is not required because there is cannam@85: # no limit to the length of command line arguments. cannam@85: # Libtool will interpret -1 as no limit whatsoever cannam@85: lt_cv_sys_max_cmd_len=-1; cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw*) cannam@85: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@85: # about 5 minutes as the teststring grows exponentially. cannam@85: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@85: # you end up with a "frozen" computer, even though with patience cannam@85: # the test eventually succeeds (with a max line length of 256k). cannam@85: # Instead, let's just punt: use the minimum linelength reported by cannam@85: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@85: lt_cv_sys_max_cmd_len=8192; cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # On AmigaOS with pdksh, this test takes hours, literally. cannam@85: # So we just punt and use a minimum line length of 8192. cannam@85: lt_cv_sys_max_cmd_len=8192; cannam@85: ;; cannam@85: cannam@85: *) cannam@85: # If test is not a shell built-in, we'll probably end up computing a cannam@85: # maximum length that is only half of the actual maximum length, but cannam@85: # we can't tell. cannam@85: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ cannam@85: = "XX$testring") >/dev/null 2>&1 && cannam@85: new_result=`expr "X$testring" : ".*" 2>&1` && cannam@85: lt_cv_sys_max_cmd_len=$new_result && cannam@85: test $i != 17 # 1/2 MB should be enough cannam@85: do cannam@85: i=`expr $i + 1` cannam@85: testring=$testring$testring cannam@85: done cannam@85: testring= cannam@85: # Add a significant safety factor because C++ compilers can tack on massive cannam@85: # amounts of additional arguments before passing them to the linker. cannam@85: # It appears as though 1/2 is a usable value. cannam@85: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi cannam@85: cannam@85: if test -n $lt_cv_sys_max_cmd_len ; then cannam@85: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 cannam@85: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: none" >&5 cannam@85: echo "${ECHO_T}none" >&6 cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@85: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 cannam@85: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 cannam@85: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cannam@85: # These are sane defaults that work on at least a few old systems. cannam@85: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@85: cannam@85: # Character class describing NM global symbol codes. cannam@85: symcode='[BCDEGRST]' cannam@85: cannam@85: # Regexp to match symbols that can be accessed directly from C. cannam@85: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' cannam@85: cannam@85: # Transform the above into a raw symbol and a C symbol. cannam@85: symxfrm='\1 \2\3 \3' cannam@85: cannam@85: # Transform an extracted symbol line into a proper C declaration cannam@85: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" cannam@85: cannam@85: # Transform an extracted symbol line into symbol name and symbol address cannam@85: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" cannam@85: cannam@85: # Define system-specific variables. cannam@85: case $host_os in cannam@85: aix*) cannam@85: symcode='[BCDT]' cannam@85: ;; cannam@85: cygwin* | mingw* | pw32*) cannam@85: symcode='[ABCDGISTW]' cannam@85: ;; cannam@85: hpux*) # Its linker distinguishes data from code symbols cannam@85: if test "$host_cpu" = ia64; then cannam@85: symcode='[ABCDEGRST]' cannam@85: fi cannam@85: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" cannam@85: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" cannam@85: ;; cannam@85: irix* | nonstopux*) cannam@85: symcode='[BCDEGRST]' cannam@85: ;; cannam@85: osf*) cannam@85: symcode='[BCDEGQRST]' cannam@85: ;; cannam@85: solaris* | sysv5*) cannam@85: symcode='[BDRT]' cannam@85: ;; cannam@85: sysv4) cannam@85: symcode='[DFNSTU]' cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Handle CRLF in mingw tool chain cannam@85: opt_cr= cannam@85: case $build_os in cannam@85: mingw*) cannam@85: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # If we're using GNU nm, then use its standard symbol codes. cannam@85: case `$NM -V 2>&1` in cannam@85: *GNU* | *'with BFD'*) cannam@85: symcode='[ABCDGIRSTW]' ;; cannam@85: esac cannam@85: cannam@85: # Try without a prefix undercore, then with it. cannam@85: for ac_symprfx in "" "_"; do cannam@85: cannam@85: # Write the raw and C identifiers. cannam@85: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" cannam@85: cannam@85: # Check to see that the pipe works correctly. cannam@85: pipe_works=no cannam@85: cannam@85: rm -f conftest* cannam@85: cat > conftest.$ac_ext <&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: # Now try to grab the symbols. cannam@85: nlist=conftest.nm cannam@85: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 cannam@85: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s "$nlist"; then cannam@85: # Try sorting and uniquifying the output. cannam@85: if sort "$nlist" | uniq > "$nlist"T; then cannam@85: mv -f "$nlist"T "$nlist" cannam@85: else cannam@85: rm -f "$nlist"T cannam@85: fi cannam@85: cannam@85: # Make sure that we snagged all the symbols we need. cannam@85: if grep ' nm_test_var$' "$nlist" >/dev/null; then cannam@85: if grep ' nm_test_func$' "$nlist" >/dev/null; then cannam@85: cat < conftest.$ac_ext cannam@85: #ifdef __cplusplus cannam@85: extern "C" { cannam@85: #endif cannam@85: cannam@85: EOF cannam@85: # Now generate the symbol file. cannam@85: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cannam@85: cannam@85: cat <> conftest.$ac_ext cannam@85: #if defined (__STDC__) && __STDC__ cannam@85: # define lt_ptr_t void * cannam@85: #else cannam@85: # define lt_ptr_t char * cannam@85: # define const cannam@85: #endif cannam@85: cannam@85: /* The mapping between symbol names and symbols. */ cannam@85: const struct { cannam@85: const char *name; cannam@85: lt_ptr_t address; cannam@85: } cannam@85: lt_preloaded_symbols[] = cannam@85: { cannam@85: EOF cannam@85: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cannam@85: cat <<\EOF >> conftest.$ac_ext cannam@85: {0, (lt_ptr_t) 0} cannam@85: }; cannam@85: cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: EOF cannam@85: # Now try linking the two files. cannam@85: mv conftest.$ac_objext conftstm.$ac_objext cannam@85: lt_save_LIBS="$LIBS" cannam@85: lt_save_CFLAGS="$CFLAGS" cannam@85: LIBS="conftstm.$ac_objext" cannam@85: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext}; then cannam@85: pipe_works=yes cannam@85: fi cannam@85: LIBS="$lt_save_LIBS" cannam@85: CFLAGS="$lt_save_CFLAGS" cannam@85: else cannam@85: echo "cannot find nm_test_func in $nlist" >&5 cannam@85: fi cannam@85: else cannam@85: echo "cannot find nm_test_var in $nlist" >&5 cannam@85: fi cannam@85: else cannam@85: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 cannam@85: fi cannam@85: else cannam@85: echo "$progname: failed program was:" >&5 cannam@85: cat conftest.$ac_ext >&5 cannam@85: fi cannam@85: rm -f conftest* conftst* cannam@85: cannam@85: # Do not use the global_symbol_pipe unless it works. cannam@85: if test "$pipe_works" = yes; then cannam@85: break cannam@85: else cannam@85: lt_cv_sys_global_symbol_pipe= cannam@85: fi cannam@85: done cannam@85: cannam@85: fi cannam@85: cannam@85: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@85: lt_cv_sys_global_symbol_to_cdecl= cannam@85: fi cannam@85: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@85: echo "$as_me:$LINENO: result: failed" >&5 cannam@85: echo "${ECHO_T}failed" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: ok" >&5 cannam@85: echo "${ECHO_T}ok" >&6 cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking for objdir" >&5 cannam@85: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 cannam@85: if test "${lt_cv_objdir+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: rm -f .libs 2>/dev/null cannam@85: mkdir .libs 2>/dev/null cannam@85: if test -d .libs; then cannam@85: lt_cv_objdir=.libs cannam@85: else cannam@85: # MS-DOS does not allow filenames that begin with a dot. cannam@85: lt_cv_objdir=_libs cannam@85: fi cannam@85: rmdir .libs 2>/dev/null cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 cannam@85: echo "${ECHO_T}$lt_cv_objdir" >&6 cannam@85: objdir=$lt_cv_objdir cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: # AIX sometimes has problems with the GCC collect2 program. For some cannam@85: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@85: # vanish in a puff of smoke. cannam@85: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@85: COLLECT_NAMES= cannam@85: export COLLECT_NAMES cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Sed substitution that helps us do robust quoting. It backslashifies cannam@85: # metacharacters that are still active within double-quoted strings. cannam@85: Xsed='sed -e s/^X//' cannam@85: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' cannam@85: cannam@85: # Same as above, but do not quote variable references. cannam@85: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' cannam@85: cannam@85: # Sed substitution to delay expansion of an escaped shell variable in a cannam@85: # double_quote_subst'ed string. cannam@85: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@85: cannam@85: # Sed substitution to avoid accidental globbing in evaled expressions cannam@85: no_glob_subst='s/\*/\\\*/g' cannam@85: cannam@85: # Constants: cannam@85: rm="rm -f" cannam@85: cannam@85: # Global variables: cannam@85: default_ofile=libtool cannam@85: can_build_shared=yes cannam@85: cannam@85: # All known linkers require a `.a' archive for static linking (except M$VC, cannam@85: # which needs '.lib'). cannam@85: libext=a cannam@85: ltmain="$ac_aux_dir/ltmain.sh" cannam@85: ofile="$default_ofile" cannam@85: with_gnu_ld="$lt_cv_prog_gnu_ld" cannam@85: cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}ar; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_AR+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$AR"; then cannam@85: ac_cv_prog_AR="$AR" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_AR="${ac_tool_prefix}ar" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: AR=$ac_cv_prog_AR cannam@85: if test -n "$AR"; then cannam@85: echo "$as_me:$LINENO: result: $AR" >&5 cannam@85: echo "${ECHO_T}$AR" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_AR"; then cannam@85: ac_ct_AR=$AR cannam@85: # Extract the first word of "ar", so it can be a program name with args. cannam@85: set dummy ar; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_AR"; then cannam@85: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_AR="ar" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" cannam@85: fi cannam@85: fi cannam@85: ac_ct_AR=$ac_cv_prog_ac_ct_AR cannam@85: if test -n "$ac_ct_AR"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 cannam@85: echo "${ECHO_T}$ac_ct_AR" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: AR=$ac_ct_AR cannam@85: else cannam@85: AR="$ac_cv_prog_AR" cannam@85: fi cannam@85: cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_RANLIB+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$RANLIB"; then cannam@85: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: RANLIB=$ac_cv_prog_RANLIB cannam@85: if test -n "$RANLIB"; then cannam@85: echo "$as_me:$LINENO: result: $RANLIB" >&5 cannam@85: echo "${ECHO_T}$RANLIB" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_RANLIB"; then cannam@85: ac_ct_RANLIB=$RANLIB cannam@85: # Extract the first word of "ranlib", so it can be a program name with args. cannam@85: set dummy ranlib; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_RANLIB"; then cannam@85: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" cannam@85: fi cannam@85: fi cannam@85: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@85: if test -n "$ac_ct_RANLIB"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 cannam@85: echo "${ECHO_T}$ac_ct_RANLIB" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: RANLIB=$ac_ct_RANLIB cannam@85: else cannam@85: RANLIB="$ac_cv_prog_RANLIB" cannam@85: fi cannam@85: cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@85: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$STRIP"; then cannam@85: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: fi cannam@85: fi cannam@85: STRIP=$ac_cv_prog_STRIP cannam@85: if test -n "$STRIP"; then cannam@85: echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@85: echo "${ECHO_T}$STRIP" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: fi cannam@85: if test -z "$ac_cv_prog_STRIP"; then cannam@85: ac_ct_STRIP=$STRIP cannam@85: # Extract the first word of "strip", so it can be a program name with args. cannam@85: set dummy strip; ac_word=$2 cannam@85: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@85: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@85: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -n "$ac_ct_STRIP"; then cannam@85: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@85: else cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@85: ac_cv_prog_ac_ct_STRIP="strip" cannam@85: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@85: break 2 cannam@85: fi cannam@85: done cannam@85: done cannam@85: cannam@85: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" cannam@85: fi cannam@85: fi cannam@85: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@85: if test -n "$ac_ct_STRIP"; then cannam@85: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@85: echo "${ECHO_T}$ac_ct_STRIP" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: STRIP=$ac_ct_STRIP cannam@85: else cannam@85: STRIP="$ac_cv_prog_STRIP" cannam@85: fi cannam@85: cannam@85: cannam@85: old_CC="$CC" cannam@85: old_CFLAGS="$CFLAGS" cannam@85: cannam@85: # Set sane defaults for various variables cannam@85: test -z "$AR" && AR=ar cannam@85: test -z "$AR_FLAGS" && AR_FLAGS=cru cannam@85: test -z "$AS" && AS=as cannam@85: test -z "$CC" && CC=cc cannam@85: test -z "$LTCC" && LTCC=$CC cannam@85: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@85: test -z "$LD" && LD=ld cannam@85: test -z "$LN_S" && LN_S="ln -s" cannam@85: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@85: test -z "$NM" && NM=nm cannam@85: test -z "$SED" && SED=sed cannam@85: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@85: test -z "$RANLIB" && RANLIB=: cannam@85: test -z "$STRIP" && STRIP=: cannam@85: test -z "$ac_objext" && ac_objext=o cannam@85: cannam@85: # Determine commands to create old-style static archives. cannam@85: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' cannam@85: old_postinstall_cmds='chmod 644 $oldlib' cannam@85: old_postuninstall_cmds= cannam@85: cannam@85: if test -n "$RANLIB"; then cannam@85: case $host_os in cannam@85: openbsd*) cannam@85: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" cannam@85: ;; cannam@85: *) cannam@85: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" cannam@85: ;; cannam@85: esac cannam@85: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" cannam@85: fi cannam@85: cannam@85: # Only perform the check for file, if the check method requires it cannam@85: case $deplibs_check_method in cannam@85: file_magic*) cannam@85: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@85: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 cannam@85: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 cannam@85: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: case $MAGIC_CMD in cannam@85: [\\/*] | ?:[\\/]*) cannam@85: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@85: ;; cannam@85: *) cannam@85: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@85: for ac_dir in $ac_dummy; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f $ac_dir/${ac_tool_prefix}file; then cannam@85: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" cannam@85: if test -n "$file_magic_test_file"; then cannam@85: case $deplibs_check_method in cannam@85: "file_magic "*) cannam@85: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@85: $EGREP "$file_magic_regex" > /dev/null; then cannam@85: : cannam@85: else cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the command libtool uses to detect shared libraries, cannam@85: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@85: *** The result is that libtool may fail to recognize shared libraries cannam@85: *** as such. This will affect the creation of libtool libraries that cannam@85: *** depend on shared libraries, but programs linked with such libtool cannam@85: *** libraries will work regardless of this problem. Nevertheless, you cannam@85: *** may want to report the problem to your system manager and/or to cannam@85: *** bug-libtool@gnu.org cannam@85: cannam@85: EOF cannam@85: fi ;; cannam@85: esac cannam@85: fi cannam@85: break cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if test -n "$MAGIC_CMD"; then cannam@85: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@85: echo "${ECHO_T}$MAGIC_CMD" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: echo "$as_me:$LINENO: checking for file" >&5 cannam@85: echo $ECHO_N "checking for file... $ECHO_C" >&6 cannam@85: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: case $MAGIC_CMD in cannam@85: [\\/*] | ?:[\\/]*) cannam@85: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@85: ;; cannam@85: *) cannam@85: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@85: for ac_dir in $ac_dummy; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f $ac_dir/file; then cannam@85: lt_cv_path_MAGIC_CMD="$ac_dir/file" cannam@85: if test -n "$file_magic_test_file"; then cannam@85: case $deplibs_check_method in cannam@85: "file_magic "*) cannam@85: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@85: $EGREP "$file_magic_regex" > /dev/null; then cannam@85: : cannam@85: else cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the command libtool uses to detect shared libraries, cannam@85: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@85: *** The result is that libtool may fail to recognize shared libraries cannam@85: *** as such. This will affect the creation of libtool libraries that cannam@85: *** depend on shared libraries, but programs linked with such libtool cannam@85: *** libraries will work regardless of this problem. Nevertheless, you cannam@85: *** may want to report the problem to your system manager and/or to cannam@85: *** bug-libtool@gnu.org cannam@85: cannam@85: EOF cannam@85: fi ;; cannam@85: esac cannam@85: fi cannam@85: break cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if test -n "$MAGIC_CMD"; then cannam@85: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@85: echo "${ECHO_T}$MAGIC_CMD" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: cannam@85: else cannam@85: MAGIC_CMD=: cannam@85: fi cannam@85: fi cannam@85: cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: enable_dlopen=no cannam@85: enable_win32_dll=no cannam@85: cannam@85: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. cannam@85: if test "${enable_libtool_lock+set}" = set; then cannam@85: enableval="$enable_libtool_lock" cannam@85: cannam@85: fi; cannam@85: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@85: cannam@85: cannam@85: # Check whether --with-pic or --without-pic was given. cannam@85: if test "${with_pic+set}" = set; then cannam@85: withval="$with_pic" cannam@85: pic_mode="$withval" cannam@85: else cannam@85: pic_mode=default cannam@85: fi; cannam@85: test -z "$pic_mode" && pic_mode=default cannam@85: cannam@85: # Use C for the default configuration in the libtool script cannam@85: tagname= cannam@85: lt_save_CC="$CC" cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: cannam@85: # Source file extension for C test sources. cannam@85: ac_ext=c cannam@85: cannam@85: # Object file extension for compiled C test sources. cannam@85: objext=o cannam@85: objext=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code='int main(){return(0);}\n' cannam@85: cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # cannam@85: # Check for any special shared library compilation flags. cannam@85: # cannam@85: lt_prog_cc_shlib= cannam@85: if test "$GCC" = no; then cannam@85: case $host_os in cannam@85: sco3.2v5*) cannam@85: lt_prog_cc_shlib='-belf' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test -n "$lt_prog_cc_shlib"; then cannam@85: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 cannam@85: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} cannam@85: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : cannam@85: else cannam@85: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 cannam@85: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} cannam@85: lt_cv_prog_cc_can_build_shared=no cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: # cannam@85: # Check to make sure the static flag actually works. cannam@85: # cannam@85: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 cannam@85: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 cannam@85: if test "${lt_prog_compiler_static_works+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_prog_compiler_static_works=no cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: LDFLAGS="$LDFLAGS $lt_prog_compiler_static" cannam@85: printf "$lt_simple_link_test_code" > conftest.$ac_ext cannam@85: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test -s conftest.err; then cannam@85: # Append any errors to the config.log. cannam@85: cat conftest.err 1>&5 cannam@85: else cannam@85: lt_prog_compiler_static_works=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 cannam@85: cannam@85: if test x"$lt_prog_compiler_static_works" = xyes; then cannam@85: : cannam@85: else cannam@85: lt_prog_compiler_static= cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: lt_prog_compiler_no_builtin_flag= cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: lt_prog_compiler_no_builtin_flag=' -fno-builtin' cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_rtti_exceptions=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="-fno-rtti -fno-exceptions" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:6272: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:6276: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_cv_prog_compiler_rtti_exceptions=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 cannam@85: cannam@85: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then cannam@85: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" cannam@85: else cannam@85: : cannam@85: fi cannam@85: cannam@85: fi cannam@85: cannam@85: lt_prog_compiler_wl= cannam@85: lt_prog_compiler_pic= cannam@85: lt_prog_compiler_static= cannam@85: cannam@85: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@85: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: lt_prog_compiler_static='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: lt_prog_compiler_pic='-fno-common' cannam@85: ;; cannam@85: cannam@85: msdosdjgpp*) cannam@85: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@85: # on systems that don't support them. cannam@85: lt_prog_compiler_can_build_shared=no cannam@85: enable_shared=no cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: lt_prog_compiler_pic=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_pic='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: # PORTME Check for flag to pass linker flags through the system compiler. cannam@85: case $host_os in cannam@85: aix*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: else cannam@85: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic='+Z' cannam@85: ;; cannam@85: esac cannam@85: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@85: lt_prog_compiler_static='${wl}-a ${wl}archive' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: # PIC (with -KPIC) is the default. cannam@85: lt_prog_compiler_static='-non_shared' cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: lt_prog_compiler_pic='-KPIC' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: case $CC in cannam@85: icc* | ecc*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: lt_prog_compiler_pic='-KPIC' cannam@85: lt_prog_compiler_static='-static' cannam@85: ;; cannam@85: ccc*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: # All Alpha code is PIC. cannam@85: lt_prog_compiler_static='-non_shared' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: # All OSF/1 code is PIC. cannam@85: lt_prog_compiler_static='-non_shared' cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: lt_prog_compiler_pic='-Kpic' cannam@85: lt_prog_compiler_static='-dn' cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: lt_prog_compiler_pic='-KPIC' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: lt_prog_compiler_wl='-Qoption ld ' cannam@85: lt_prog_compiler_pic='-PIC' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: lt_prog_compiler_wl='-Wl,' cannam@85: lt_prog_compiler_pic='-KPIC' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: lt_prog_compiler_pic='-Kconform_pic' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: lt_prog_compiler_pic='-pic' cannam@85: lt_prog_compiler_static='-Bstatic' cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_can_build_shared=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 cannam@85: cannam@85: # cannam@85: # Check to make sure the PIC flag actually works. cannam@85: # cannam@85: if test -n "$lt_prog_compiler_pic"; then cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 cannam@85: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 cannam@85: if test "${lt_prog_compiler_pic_works+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_prog_compiler_pic_works=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:6505: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:6509: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_prog_compiler_pic_works=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 cannam@85: cannam@85: if test x"$lt_prog_compiler_pic_works" = xyes; then cannam@85: case $lt_prog_compiler_pic in cannam@85: "" | " "*) ;; cannam@85: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; cannam@85: esac cannam@85: else cannam@85: lt_prog_compiler_pic= cannam@85: lt_prog_compiler_can_build_shared=no cannam@85: fi cannam@85: cannam@85: fi cannam@85: case "$host_os" in cannam@85: # For platforms which do not support PIC, -DPIC is meaningless: cannam@85: *djgpp*) cannam@85: lt_prog_compiler_pic= cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_c_o+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_c_o=no cannam@85: $rm -r conftest 2>/dev/null cannam@85: mkdir conftest cannam@85: cd conftest cannam@85: mkdir out cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:6565: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>out/conftest.err) cannam@85: ac_status=$? cannam@85: cat out/conftest.err >&5 cannam@85: echo "$as_me:6569: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@85: then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s out/conftest.err; then cannam@85: lt_cv_prog_compiler_c_o=yes cannam@85: fi cannam@85: fi cannam@85: chmod u+w . cannam@85: $rm conftest* cannam@85: # SGI C++ compiler will create directory out/ii_files/ for cannam@85: # template instantiation cannam@85: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@85: $rm out/* && rmdir out cannam@85: cd .. cannam@85: rmdir conftest cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 cannam@85: cannam@85: cannam@85: hard_links="nottested" cannam@85: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then cannam@85: # do not overwrite the value of need_locks provided by the user cannam@85: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@85: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@85: hard_links=yes cannam@85: $rm conftest* cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: touch conftest.a cannam@85: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@85: echo "${ECHO_T}$hard_links" >&6 cannam@85: if test "$hard_links" = no; then cannam@85: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@85: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@85: need_locks=warn cannam@85: fi cannam@85: else cannam@85: need_locks=no cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@85: cannam@85: runpath_var= cannam@85: allow_undefined_flag= cannam@85: enable_shared_with_static_runtimes=no cannam@85: archive_cmds= cannam@85: archive_expsym_cmds= cannam@85: old_archive_From_new_cmds= cannam@85: old_archive_from_expsyms_cmds= cannam@85: export_dynamic_flag_spec= cannam@85: whole_archive_flag_spec= cannam@85: thread_safe_flag_spec= cannam@85: hardcode_libdir_flag_spec= cannam@85: hardcode_libdir_flag_spec_ld= cannam@85: hardcode_libdir_separator= cannam@85: hardcode_direct=no cannam@85: hardcode_minus_L=no cannam@85: hardcode_shlibpath_var=unsupported cannam@85: link_all_deplibs=unknown cannam@85: hardcode_automatic=no cannam@85: module_cmds= cannam@85: module_expsym_cmds= cannam@85: always_export_symbols=no cannam@85: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: # include_expsyms should be a list of space-separated symbols to be *always* cannam@85: # included in the symbol list cannam@85: include_expsyms= cannam@85: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@85: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@85: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@85: # as well as any symbol that contains `d'. cannam@85: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" cannam@85: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@85: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@85: # the symbol is explicitly referenced. Since portable code cannot cannam@85: # rely on this symbol name, it's probably fine to never include it in cannam@85: # preloaded symbol tables. cannam@85: extract_expsyms_cmds= cannam@85: cannam@85: case $host_os in cannam@85: cygwin* | mingw* | pw32*) cannam@85: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: if test "$GCC" != yes; then cannam@85: with_gnu_ld=no cannam@85: fi cannam@85: ;; cannam@85: openbsd*) cannam@85: with_gnu_ld=no cannam@85: ;; cannam@85: esac cannam@85: cannam@85: ld_shlibs=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: wlarc='${wl}' cannam@85: cannam@85: # See if GNU ld supports shared libraries. cannam@85: case $host_os in cannam@85: aix3* | aix4* | aix5*) cannam@85: # On AIX/PPC, the GNU linker is very broken cannam@85: if test "$host_cpu" != ia64; then cannam@85: ld_shlibs=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@85: *** to be unable to reliably create shared libraries on AIX. cannam@85: *** Therefore, libtool is disabling shared libraries support. If you cannam@85: *** really care for shared libraries, you may want to modify your PATH cannam@85: *** so that a non-GNU linker is found, and then restart. cannam@85: cannam@85: EOF cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: 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)' cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_minus_L=yes cannam@85: cannam@85: # Samuel A. Falvo II reports cannam@85: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@85: # to version 4, is to share data among multiple programs linked cannam@85: # with the same dynamic library. Since this doesn't match the cannam@85: # behavior of shared libraries on other platforms, we can't use cannam@85: # them. cannam@85: ld_shlibs=no cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: allow_undefined_flag=unsupported cannam@85: # Joseph Beckenbach says some releases of gcc cannam@85: # support --undefined. This deserves some investigation. FIXME cannam@85: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: allow_undefined_flag=unsupported cannam@85: always_export_symbols=no cannam@85: enable_shared_with_static_runtimes=yes cannam@85: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@85: wlarc= cannam@85: else cannam@85: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: solaris* | sysv5*) cannam@85: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@85: ld_shlibs=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@85: *** create shared libraries on Solaris systems. Therefore, libtool cannam@85: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@85: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@85: *** your PATH or compiler configuration so that the native linker is cannam@85: *** used, and then restart. cannam@85: cannam@85: EOF cannam@85: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: wlarc= cannam@85: hardcode_direct=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then cannam@85: tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_cmds="$tmp_archive_cmds" cannam@85: supports_anon_versioning=no cannam@85: case `$LD -v 2>/dev/null` in cannam@85: *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@85: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@85: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@85: *\ 2.11.*) ;; # other 2.11 versions cannam@85: *) supports_anon_versioning=yes ;; cannam@85: esac cannam@85: if test $supports_anon_versioning = yes; then cannam@85: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@85: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@85: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@85: $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@85: else cannam@85: archive_expsym_cmds="$tmp_archive_cmds" cannam@85: fi cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "$ld_shlibs" = yes; then cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' cannam@85: export_dynamic_flag_spec='${wl}--export-dynamic' cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@85: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: whole_archive_flag_spec= cannam@85: fi cannam@85: fi cannam@85: else cannam@85: # PORTME fill in a description of your system's linker (not GNU ld) cannam@85: case $host_os in cannam@85: aix3*) cannam@85: allow_undefined_flag=unsupported cannam@85: always_export_symbols=yes cannam@85: 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' cannam@85: # Note: this linker hardcodes the directories in LIBPATH if there cannam@85: # are no directories specified by -L. cannam@85: hardcode_minus_L=yes cannam@85: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@85: # Neither direct hardcoding nor static linking is supported with a cannam@85: # broken collect2. cannam@85: hardcode_direct=unsupported cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: else cannam@85: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: fi cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: fi cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: archive_cmds='' cannam@85: hardcode_direct=yes cannam@85: hardcode_libdir_separator=':' cannam@85: link_all_deplibs=yes cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: case $host_os in aix4.012|aix4.012.*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: hardcode_direct=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: hardcode_direct=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: hardcode_minus_L=yes cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_libdir_separator= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: always_export_symbols=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: allow_undefined_flag='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: 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" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' cannam@85: allow_undefined_flag="-z nodefs" cannam@85: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: no_undefined_flag=' ${wl}-bernotok' cannam@85: allow_undefined_flag=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: always_export_symbols=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: whole_archive_flag_spec=' ' cannam@85: archive_cmds_need_lc=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: 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)' cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_minus_L=yes cannam@85: # see comment about different semantics on the GNU ld section cannam@85: ld_shlibs=no cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: export_dynamic_flag_spec=-rdynamic cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@85: # no search path for DLLs. cannam@85: hardcode_libdir_flag_spec=' ' cannam@85: allow_undefined_flag=unsupported cannam@85: # Tell ltmain to make .lib files, not .a files. cannam@85: libext=lib cannam@85: # Tell ltmain to make .dll files, not .so files. cannam@85: shrext=".dll" cannam@85: # FIXME: Setting linknames here is a bad hack. cannam@85: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@85: # The linker will automatically build a .lib file if we build a DLL. cannam@85: old_archive_From_new_cmds='true' cannam@85: # FIXME: Should let the user specify the lib program. cannam@85: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@85: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@85: enable_shared_with_static_runtimes=yes cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes ; then cannam@85: archive_cmds_need_lc=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[012]) cannam@85: allow_undefined_flag='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: allow_undefined_flag='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[012]) cannam@85: allow_undefined_flag='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: allow_undefined_flag='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: hardcode_direct=no cannam@85: hardcode_automatic=yes cannam@85: hardcode_shlibpath_var=unsupported cannam@85: whole_archive_flag_spec='-all_load $convenience' cannam@85: link_all_deplibs=yes cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: ld_shlibs=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@85: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@85: # does not break anything, and helps significantly (at the cost of a little cannam@85: # extra space). cannam@85: freebsd2.2*) cannam@85: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@85: hardcode_libdir_flag_spec='-R$libdir' cannam@85: hardcode_direct=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@85: freebsd2*) cannam@85: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct=yes cannam@85: hardcode_minus_L=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec='-R$libdir' cannam@85: hardcode_direct=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: hpux9*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: else cannam@85: 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' cannam@85: fi cannam@85: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator=: cannam@85: hardcode_direct=yes cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L=yes cannam@85: export_dynamic_flag_spec='${wl}-E' cannam@85: ;; cannam@85: cannam@85: hpux10* | hpux11*) cannam@85: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_flag_spec_ld='+b $libdir' cannam@85: hardcode_libdir_separator=: cannam@85: hardcode_direct=no cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: ia64*) cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_direct=no cannam@85: hardcode_shlibpath_var=no cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L=yes cannam@85: ;; cannam@85: *) cannam@85: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator=: cannam@85: hardcode_direct=yes cannam@85: export_dynamic_flag_spec='${wl}-E' cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L=yes cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: if test "$GCC" = yes; then cannam@85: 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' cannam@85: else cannam@85: 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' cannam@85: hardcode_libdir_flag_spec_ld='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator=: cannam@85: link_all_deplibs=yes cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@85: else cannam@85: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@85: fi cannam@85: hardcode_libdir_flag_spec='-R$libdir' cannam@85: hardcode_direct=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct=yes cannam@85: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator=: cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: hardcode_direct=yes cannam@85: hardcode_shlibpath_var=no cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@85: export_dynamic_flag_spec='${wl}-E' cannam@85: else cannam@85: case $host_os in cannam@85: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@85: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec='-R$libdir' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_minus_L=yes cannam@85: allow_undefined_flag=unsupported cannam@85: 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' cannam@85: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@85: ;; cannam@85: cannam@85: osf3*) cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@85: 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' cannam@85: else cannam@85: allow_undefined_flag=' -expect_unresolved \*' cannam@85: 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' cannam@85: fi cannam@85: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator=: cannam@85: ;; cannam@85: cannam@85: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@85: 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' cannam@85: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@85: else cannam@85: allow_undefined_flag=' -expect_unresolved \*' cannam@85: 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' cannam@85: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ cannam@85: $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' cannam@85: cannam@85: # Both c and cxx compiler support -rpath directly cannam@85: hardcode_libdir_flag_spec='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_separator=: cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var=no cannam@85: export_dynamic_flag_spec='${wl}-Bexport' cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: no_undefined_flag=' -z text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@85: else cannam@85: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: fi cannam@85: hardcode_libdir_flag_spec='-R$libdir' cannam@85: hardcode_shlibpath_var=no cannam@85: case $host_os in cannam@85: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@85: *) # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; cannam@85: esac cannam@85: link_all_deplibs=yes cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: if test "x$host_vendor" = xsequent; then cannam@85: # Use $CC to link under sequent, because it throws in some extra .o cannam@85: # files that make .init and .fini sections work. cannam@85: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@85: fi cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_direct=yes cannam@85: hardcode_minus_L=yes cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: sysv4) cannam@85: case $host_vendor in cannam@85: sni) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct=yes # is this really true??? cannam@85: ;; cannam@85: siemens) cannam@85: ## LD is ld it makes a PLAMLIB cannam@85: ## CC just makes a GrossModule. cannam@85: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: reload_cmds='$CC -r -o $output$reload_objs' cannam@85: hardcode_direct=no cannam@85: ;; cannam@85: motorola) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct=no #Motorola manual says yes, but my tests say they lie cannam@85: ;; cannam@85: esac cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: sysv4.3*) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var=no cannam@85: export_dynamic_flag_spec='-Bexport' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var=no cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ld_shlibs=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sysv4.2uw2*) cannam@85: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct=yes cannam@85: hardcode_minus_L=no cannam@85: hardcode_shlibpath_var=no cannam@85: hardcode_runpath_var=yes cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@85: no_undefined_flag='${wl}-z ${wl}text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: fi cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: sysv5*) cannam@85: no_undefined_flag=' -z text' cannam@85: # $CC -shared without GNU ld will not create a library from C++ cannam@85: # object files and a static libstdc++, better avoid it by now cannam@85: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: hardcode_libdir_flag_spec= cannam@85: hardcode_shlibpath_var=no cannam@85: runpath_var='LD_RUN_PATH' cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec='-L$libdir' cannam@85: hardcode_shlibpath_var=no cannam@85: ;; cannam@85: cannam@85: *) cannam@85: ld_shlibs=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 cannam@85: echo "${ECHO_T}$ld_shlibs" >&6 cannam@85: test "$ld_shlibs" = no && can_build_shared=no cannam@85: cannam@85: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@85: if test "$GCC" = yes; then cannam@85: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@85: fi cannam@85: cannam@85: # cannam@85: # Do we need to explicitly link libc? cannam@85: # cannam@85: case "x$archive_cmds_need_lc" in cannam@85: x|xyes) cannam@85: # Assume -lc should be added cannam@85: archive_cmds_need_lc=yes cannam@85: cannam@85: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@85: case $archive_cmds in cannam@85: *'~'*) cannam@85: # FIXME: we may have to deal with multi-command sequences. cannam@85: ;; cannam@85: '$CC '*) cannam@85: # Test whether the compiler implicitly links with -lc since on some cannam@85: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@85: # to ld, don't add -lc before -lgcc. cannam@85: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@85: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@85: $rm conftest* cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } 2>conftest.err; then cannam@85: soname=conftest cannam@85: lib=conftest cannam@85: libobjs=conftest.$ac_objext cannam@85: deplibs= cannam@85: wl=$lt_prog_compiler_wl cannam@85: compiler_flags=-v cannam@85: linker_flags=-v cannam@85: verstring= cannam@85: output_objdir=. cannam@85: libname=conftest cannam@85: lt_save_allow_undefined_flag=$allow_undefined_flag cannam@85: allow_undefined_flag= cannam@85: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@85: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: then cannam@85: archive_cmds_need_lc=no cannam@85: else cannam@85: archive_cmds_need_lc=yes cannam@85: fi cannam@85: allow_undefined_flag=$lt_save_allow_undefined_flag cannam@85: else cannam@85: cat conftest.err 1>&5 cannam@85: fi cannam@85: $rm conftest* cannam@85: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 cannam@85: echo "${ECHO_T}$archive_cmds_need_lc" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@85: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@85: library_names_spec= cannam@85: libname_spec='lib$name' cannam@85: soname_spec= cannam@85: shrext=".so" cannam@85: postinstall_cmds= cannam@85: postuninstall_cmds= cannam@85: finish_cmds= cannam@85: finish_eval= cannam@85: shlibpath_var= cannam@85: shlibpath_overrides_runpath=unknown cannam@85: version_type=none cannam@85: dynamic_linker="$host_os ld.so" cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@85: # if the path contains ";" then we assume it to be the separator cannam@85: # otherwise default to the standard path separator (i.e. ":") - it is cannam@85: # assumed that no part of a normal pathname contains ";" but that should cannam@85: # okay in the real world where ";" in dirpaths is itself problematic. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: else cannam@85: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@85: fi cannam@85: need_lib_prefix=unknown cannam@85: hardcode_into_libs=no cannam@85: cannam@85: # when you set need_version to no, make sure it does not cause -set_version cannam@85: # flags to be left without arguments cannam@85: need_version=unknown cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@85: shlibpath_var=LIBPATH cannam@85: cannam@85: # AIX 3 has no versioning support, so we append a major version to the name. cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: hardcode_into_libs=yes cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 supports IA64 cannam@85: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: else cannam@85: # With GCC up to 2.95.x, collect2 would create an import file cannam@85: # for dependence libraries. The import file would start with cannam@85: # the line `#! .'. This would cause the generated library to cannam@85: # depend on `.', always an invalid library. This was fixed in cannam@85: # development snapshots of GCC prior to 3.0. cannam@85: case $host_os in cannam@85: aix4 | aix4.[01] | aix4.[01].*) cannam@85: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@85: echo ' yes ' cannam@85: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@85: : cannam@85: else cannam@85: can_build_shared=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@85: # soname into executable. Probably we can add versioning support to cannam@85: # collect2, so additional links can be useful in future. cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@85: # instead of lib.a to let people know that these are not cannam@85: # typical AIX shared libraries. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: else cannam@85: # We preserve .a as extension for shared libraries through AIX4.2 cannam@85: # and later when we are not doing run time linking. cannam@85: library_names_spec='${libname}${release}.a $libname.a' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: fi cannam@85: shlibpath_var=LIBPATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: library_names_spec='$libname.ixlibrary $libname.a' cannam@85: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@85: 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' cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: library_names_spec='${libname}${shared_ext}' cannam@85: dynamic_linker="$host_os ld.so" cannam@85: shlibpath_var=LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: version_type=linux cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@85: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@85: # the default ld.so.conf also contains /usr/contrib/lib and cannam@85: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@85: # libtool to hard-code these into programs cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: version_type=windows cannam@85: shrext=".dll" cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: cannam@85: case $GCC,$host_os in cannam@85: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@85: library_names_spec='$libname.dll.a' cannam@85: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@85: postinstall_cmds='base_file=`basename \${file}`~ cannam@85: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@85: dldir=$destdir/`dirname \$dlpath`~ cannam@85: test -d \$dldir || mkdir -p \$dldir~ cannam@85: $install_prog $dir/$dlname \$dldir/$dlname' cannam@85: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@85: dlpath=$dir/\$dldll~ cannam@85: $rm \$dlpath' cannam@85: shlibpath_overrides_runpath=yes cannam@85: cannam@85: case $host_os in cannam@85: cygwin*) cannam@85: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@85: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@85: ;; cannam@85: mingw*) cannam@85: # MinGW DLLs use traditional 'lib' prefix cannam@85: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@85: # It is most probably a Windows format PATH printed by cannam@85: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@85: # path with ; separators, and with drive letters. We can handle the cannam@85: # drive letters (cygwin fileutils understands them), so leave them, cannam@85: # especially as we might pass files found there to a mingw objdump, cannam@85: # which wouldn't understand a cygwinified path. Ahh. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@85: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@85: ;; cannam@85: esac cannam@85: dynamic_linker='Win32 ld.exe' cannam@85: # FIXME: first we should search . and the directory the executable is in cannam@85: shlibpath_var=PATH cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: dynamic_linker="$host_os dyld" cannam@85: version_type=darwin cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@85: soname_spec='${libname}${release}${major}$shared_ext' cannam@85: shlibpath_overrides_runpath=yes cannam@85: shlibpath_var=DYLD_LIBRARY_PATH cannam@85: shrext='$(test .$module = .yes && echo .so || echo .dylib)' cannam@85: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` cannam@85: else cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: kfreebsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: freebsd*) cannam@85: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@85: version_type=freebsd-$objformat cannam@85: case $version_type in cannam@85: freebsd-elf*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: freebsd-*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@85: need_version=yes cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_os in cannam@85: freebsd2*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: freebsd3.01* | freebsdelf3.01*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: *) # from 3.2 on cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@85: # link against other versions. cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: shrext='.so' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.so" cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: if test "X$HPUX_IA64_MODE" = X32; then cannam@85: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@85: else cannam@85: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: hppa*64*) cannam@85: shrext='.sl' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: *) cannam@85: shrext='.sl' cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=SHLIB_PATH cannam@85: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: esac cannam@85: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@85: postinstall_cmds='chmod 555 $lib' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $host_os in cannam@85: nonstopux*) version_type=nonstopux ;; cannam@85: *) cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: version_type=linux cannam@85: else cannam@85: version_type=irix cannam@85: fi ;; cannam@85: esac cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: case $host_os in cannam@85: irix5* | nonstopux*) cannam@85: libsuff= shlibsuff= cannam@85: ;; cannam@85: *) cannam@85: case $LD in # libtool.m4 will add one of these switches to LD cannam@85: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@85: libsuff= shlibsuff= libmagic=32-bit;; cannam@85: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@85: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@85: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@85: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@85: *) libsuff= shlibsuff= libmagic=never-match;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@85: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: # No shared lib support for Linux oldld, aout, or coff. cannam@85: linux*oldld* | linux*aout* | linux*coff*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: # This implies no fast_install, which is unacceptable. cannam@85: # Some rework will be needed to allow for fast_install cannam@85: # before this can be enabled. cannam@85: hardcode_into_libs=yes cannam@85: cannam@85: # Append ld.so.conf contents to the search path cannam@85: if test -f /etc/ld.so.conf; then cannam@85: ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" cannam@85: fi cannam@85: cannam@85: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@85: # powerpc, because MkLinux only supported shared libraries with the cannam@85: # GNU dynamic linker. Since this was broken with cross compilers, cannam@85: # most powerpc-linux boxes support dynamic linking these days and cannam@85: # people can always --disable-shared, the test was removed, and we cannam@85: # assume the GNU/Linux dynamic linker is in use. cannam@85: dynamic_linker='GNU/Linux ld.so' cannam@85: ;; cannam@85: cannam@85: knetbsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: netbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: dynamic_linker='NetBSD (a.out) ld.so' cannam@85: else cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: dynamic_linker='NetBSD ld.elf_so' cannam@85: fi cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=yes cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: case $host_os in cannam@85: openbsd2.[89] | openbsd2.[89].*) cannam@85: shlibpath_overrides_runpath=no cannam@85: ;; cannam@85: *) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: shlibpath_overrides_runpath=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: libname_spec='$name' cannam@85: shrext=".dll" cannam@85: need_lib_prefix=no cannam@85: library_names_spec='$libname${shared_ext} $libname.a' cannam@85: dynamic_linker='OS/2 ld.exe' cannam@85: shlibpath_var=LIBPATH cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: version_type=osf cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@85: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: version_type=osf cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: # ldd complains unless libraries are executable cannam@85: postinstall_cmds='chmod +x $lib' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: version_type=sunos cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: need_lib_prefix=no cannam@85: fi cannam@85: need_version=yes cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_vendor in cannam@85: sni) cannam@85: shlibpath_overrides_runpath=no cannam@85: need_lib_prefix=no cannam@85: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: siemens) cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: motorola) cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: version_type=linux cannam@85: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@85: soname_spec='$libname${shared_ext}.$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: *) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@85: echo "${ECHO_T}$dynamic_linker" >&6 cannam@85: test "$dynamic_linker" = no && can_build_shared=no cannam@85: cannam@85: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@85: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@85: hardcode_action= cannam@85: if test -n "$hardcode_libdir_flag_spec" || \ cannam@85: test -n "$runpath_var " || \ cannam@85: test "X$hardcode_automatic"="Xyes" ; then cannam@85: cannam@85: # We can hardcode non-existant directories. cannam@85: if test "$hardcode_direct" != no && cannam@85: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@85: # have to relink, otherwise we might link with an installed library cannam@85: # when we should be linking with a yet-to-be-installed one cannam@85: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && cannam@85: test "$hardcode_minus_L" != no; then cannam@85: # Linking always hardcodes the temporary library directory. cannam@85: hardcode_action=relink cannam@85: else cannam@85: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@85: hardcode_action=immediate cannam@85: fi cannam@85: else cannam@85: # We cannot hardcode anything, or else we can only hardcode existing cannam@85: # directories. cannam@85: hardcode_action=unsupported cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $hardcode_action" >&5 cannam@85: echo "${ECHO_T}$hardcode_action" >&6 cannam@85: cannam@85: if test "$hardcode_action" = relink; then cannam@85: # Fast installation is not supported cannam@85: enable_fast_install=no cannam@85: elif test "$shlibpath_overrides_runpath" = yes || cannam@85: test "$enable_shared" = no; then cannam@85: # Fast installation is not necessary cannam@85: enable_fast_install=needless cannam@85: fi cannam@85: cannam@85: striplib= cannam@85: old_striplib= cannam@85: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@85: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@85: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@85: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@85: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: # FIXME - insert some real tests, host_os isn't really good enough cannam@85: case $host_os in cannam@85: darwin*) cannam@85: if test -n "$STRIP" ; then cannam@85: striplib="$STRIP -x" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: if test "x$enable_dlopen" != xyes; then cannam@85: enable_dlopen=unknown cannam@85: enable_dlopen_self=unknown cannam@85: enable_dlopen_self_static=unknown cannam@85: else cannam@85: lt_cv_dlopen=no cannam@85: lt_cv_dlopen_libs= cannam@85: cannam@85: case $host_os in cannam@85: beos*) cannam@85: lt_cv_dlopen="load_add_on" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: ;; cannam@85: cannam@85: mingw* | pw32*) cannam@85: lt_cv_dlopen="LoadLibrary" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: cygwin*) cannam@85: lt_cv_dlopen="dlopen" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: darwin*) cannam@85: # if libdl is installed we need to link against it cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: cannam@85: lt_cv_dlopen="dyld" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: cannam@85: *) cannam@85: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@85: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define shl_load innocuous_shl_load cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char shl_load (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef shl_load cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = shl_load; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != shl_load; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@85: if test $ac_cv_func_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@85: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: shl_load (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@85: if test $ac_cv_lib_dld_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@85: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define dlopen innocuous_dlopen cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char dlopen (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef dlopen cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = dlopen; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != dlopen; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@85: if test $ac_cv_func_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-lsvld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_svld_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_svld_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@85: if test $ac_cv_lib_svld_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@85: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dld_link (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dld_link (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_dld_link=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_dld_link=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@85: if test $ac_cv_lib_dld_dld_link = yes; then cannam@85: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "x$lt_cv_dlopen" != xno; then cannam@85: enable_dlopen=yes cannam@85: else cannam@85: enable_dlopen=no cannam@85: fi cannam@85: cannam@85: case $lt_cv_dlopen in cannam@85: dlopen) cannam@85: save_CPPFLAGS="$CPPFLAGS" cannam@85: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@85: cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@85: cannam@85: save_LIBS="$LIBS" cannam@85: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@85: cannam@85: if test "x$lt_cv_dlopen_self" = xyes; then cannam@85: LDFLAGS="$LDFLAGS $link_static_flag" cannam@85: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self_static=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self_static=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@85: fi cannam@85: cannam@85: CPPFLAGS="$save_CPPFLAGS" cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: LIBS="$save_LIBS" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self in cannam@85: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@85: *) enable_dlopen_self=unknown ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self_static in cannam@85: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@85: *) enable_dlopen_self_static=unknown ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: cannam@85: # Report which librarie types wil actually be built cannam@85: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 cannam@85: echo "$as_me:$LINENO: result: $can_build_shared" >&5 cannam@85: echo "${ECHO_T}$can_build_shared" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 cannam@85: test "$can_build_shared" = "no" && enable_shared=no cannam@85: cannam@85: # On AIX, shared libraries and static libraries use the same namespace, and cannam@85: # are all built from PIC. cannam@85: case "$host_os" in cannam@85: aix3*) cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: if test -n "$RANLIB"; then cannam@85: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@85: postinstall_cmds='$RANLIB $lib' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4*) cannam@85: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: fi cannam@85: ;; cannam@85: darwin* | rhapsody*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_need_lc=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[012]) cannam@85: allow_undefined_flag='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: allow_undefined_flag='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[012]) cannam@85: allow_undefined_flag='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: allow_undefined_flag='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: output_verbose_link_cmd='echo' cannam@85: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' cannam@85: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: hardcode_direct=no cannam@85: hardcode_automatic=yes cannam@85: hardcode_shlibpath_var=unsupported cannam@85: whole_archive_flag_spec='-all_load $convenience' cannam@85: link_all_deplibs=yes cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $enable_shared" >&5 cannam@85: echo "${ECHO_T}$enable_shared" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 cannam@85: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 cannam@85: # Make sure either enable_shared or enable_static is yes. cannam@85: test "$enable_shared" = yes || enable_static=yes cannam@85: echo "$as_me:$LINENO: result: $enable_static" >&5 cannam@85: echo "${ECHO_T}$enable_static" >&6 cannam@85: cannam@85: # The else clause should only fire when bootstrapping the cannam@85: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@85: # with your package, and you will get complaints that there are cannam@85: # no rules to generate ltmain.sh. cannam@85: if test -f "$ltmain"; then cannam@85: # See if we are running on zsh, and set the options which allow our commands through cannam@85: # without removal of \ escapes. cannam@85: if test -n "${ZSH_VERSION+set}" ; then cannam@85: setopt NO_GLOB_SUBST cannam@85: fi cannam@85: # Now quote all the things that may contain metacharacters while being cannam@85: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@85: # variables and quote the copies for generation of the libtool script. cannam@85: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@85: SED SHELL STRIP \ cannam@85: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@85: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@85: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@85: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@85: lt_cv_sys_global_symbol_to_c_name_address \ cannam@85: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@85: old_postinstall_cmds old_postuninstall_cmds \ cannam@85: compiler \ cannam@85: CC \ cannam@85: LD \ cannam@85: lt_prog_compiler_wl \ cannam@85: lt_prog_compiler_pic \ cannam@85: lt_prog_compiler_static \ cannam@85: lt_prog_compiler_no_builtin_flag \ cannam@85: export_dynamic_flag_spec \ cannam@85: thread_safe_flag_spec \ cannam@85: whole_archive_flag_spec \ cannam@85: enable_shared_with_static_runtimes \ cannam@85: old_archive_cmds \ cannam@85: old_archive_from_new_cmds \ cannam@85: predep_objects \ cannam@85: postdep_objects \ cannam@85: predeps \ cannam@85: postdeps \ cannam@85: compiler_lib_search_path \ cannam@85: archive_cmds \ cannam@85: archive_expsym_cmds \ cannam@85: postinstall_cmds \ cannam@85: postuninstall_cmds \ cannam@85: old_archive_from_expsyms_cmds \ cannam@85: allow_undefined_flag \ cannam@85: no_undefined_flag \ cannam@85: export_symbols_cmds \ cannam@85: hardcode_libdir_flag_spec \ cannam@85: hardcode_libdir_flag_spec_ld \ cannam@85: hardcode_libdir_separator \ cannam@85: hardcode_automatic \ cannam@85: module_cmds \ cannam@85: module_expsym_cmds \ cannam@85: lt_cv_prog_compiler_c_o \ cannam@85: exclude_expsyms \ cannam@85: include_expsyms; do cannam@85: cannam@85: case $var in cannam@85: old_archive_cmds | \ cannam@85: old_archive_from_new_cmds | \ cannam@85: archive_cmds | \ cannam@85: archive_expsym_cmds | \ cannam@85: module_cmds | \ cannam@85: module_expsym_cmds | \ cannam@85: old_archive_from_expsyms_cmds | \ cannam@85: export_symbols_cmds | \ cannam@85: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@85: postinstall_cmds | postuninstall_cmds | \ cannam@85: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@85: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@85: # Double-quote double-evaled strings. cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@85: ;; cannam@85: *) cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: case $lt_echo in cannam@85: *'\$0 --fallback-echo"') cannam@85: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cfgfile="${ofile}T" cannam@85: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 cannam@85: $rm -f "$cfgfile" cannam@85: { echo "$as_me:$LINENO: creating $ofile" >&5 cannam@85: echo "$as_me: creating $ofile" >&6;} cannam@85: cannam@85: cat <<__EOF__ >> "$cfgfile" cannam@85: #! $SHELL cannam@85: cannam@85: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. cannam@85: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) cannam@85: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@85: # cannam@85: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 cannam@85: # Free Software Foundation, Inc. cannam@85: # cannam@85: # This file is part of GNU Libtool: cannam@85: # Originally by Gordon Matzigkeit , 1996 cannam@85: # cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2 of the License, or cannam@85: # (at your option) any later version. cannam@85: # cannam@85: # This program is distributed in the hope that it will be useful, but cannam@85: # WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU cannam@85: # General Public License for more details. cannam@85: # cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. cannam@85: # cannam@85: # As a special exception to the GNU General Public License, if you cannam@85: # distribute this file as part of a program that contains a cannam@85: # configuration script generated by Autoconf, you may include it under cannam@85: # the same distribution terms that you use for the rest of that program. cannam@85: cannam@85: # A sed program that does not truncate output. cannam@85: SED=$lt_SED cannam@85: cannam@85: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@85: Xsed="$SED -e s/^X//" cannam@85: cannam@85: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@85: # if CDPATH is set. cannam@85: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi cannam@85: cannam@85: # The names of the tagged configurations supported by this script. cannam@85: available_tags= cannam@85: cannam@85: # ### BEGIN LIBTOOL CONFIG cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$archive_cmds_need_lc cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_compiler cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$GCC cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_LD cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_lt_prog_compiler_wl cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_lt_prog_compiler_pic cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_lt_cv_prog_compiler_c_o cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_lt_prog_compiler_static cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_whole_archive_flag_spec cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_thread_safe_flag_spec cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_old_archive_cmds cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_archive_cmds cannam@85: archive_expsym_cmds=$lt_archive_expsym_cmds cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_module_cmds cannam@85: module_expsym_cmds=$lt_module_expsym_cmds cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_predep_objects cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_postdep_objects cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_predeps cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_postdeps cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_compiler_lib_search_path cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_allow_undefined_flag cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_no_undefined_flag cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$hardcode_action cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_hardcode_libdir_separator cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$hardcode_direct cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$hardcode_minus_L cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$hardcode_shlibpath_var cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$hardcode_automatic cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$link_all_deplibs cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$fix_srcfile_path" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$always_export_symbols cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_export_symbols_cmds cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_exclude_expsyms cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_include_expsyms cannam@85: cannam@85: # ### END LIBTOOL CONFIG cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: cat <<\EOF >> "$cfgfile" cannam@85: cannam@85: # AIX sometimes has problems with the GCC collect2 program. For some cannam@85: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@85: # vanish in a puff of smoke. cannam@85: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@85: COLLECT_NAMES= cannam@85: export COLLECT_NAMES cannam@85: fi cannam@85: EOF cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # We use sed instead of cat because bash on DJGPP gets confused if cannam@85: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@85: # text mode, it properly converts lines to CR/LF. This bash problem cannam@85: # is reportedly fixed, but why not run on old versions too? cannam@85: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) cannam@85: cannam@85: mv -f "$cfgfile" "$ofile" || \ cannam@85: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@85: chmod +x "$ofile" cannam@85: cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: CC="$lt_save_CC" cannam@85: cannam@85: cannam@85: # Check whether --with-tags or --without-tags was given. cannam@85: if test "${with_tags+set}" = set; then cannam@85: withval="$with_tags" cannam@85: tagnames="$withval" cannam@85: fi; cannam@85: cannam@85: if test -f "$ltmain" && test -n "$tagnames"; then cannam@85: if test ! -f "${ofile}"; then cannam@85: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 cannam@85: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} cannam@85: fi cannam@85: cannam@85: if test -z "$LTCC"; then cannam@85: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" cannam@85: if test -z "$LTCC"; then cannam@85: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 cannam@85: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} cannam@85: else cannam@85: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 cannam@85: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} cannam@85: fi cannam@85: fi cannam@85: cannam@85: # Extract list of available tagged configurations in $ofile. cannam@85: # Note that this assumes the entire list is on one line. cannam@85: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` cannam@85: cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for tagname in $tagnames; do cannam@85: IFS="$lt_save_ifs" cannam@85: # Check whether tagname contains only valid characters cannam@85: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in cannam@85: "") ;; cannam@85: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 cannam@85: echo "$as_me: error: invalid tag name: $tagname" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null cannam@85: then cannam@85: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 cannam@85: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: # Update the list of available tags. cannam@85: if test -n "$tagname"; then cannam@85: echo appending configuration tag \"$tagname\" to $ofile cannam@85: cannam@85: case $tagname in cannam@85: CXX) cannam@85: if test -n "$CXX" && test "X$CXX" != "Xno"; then cannam@85: ac_ext=cc cannam@85: ac_cpp='$CXXCPP $CPPFLAGS' cannam@85: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: archive_cmds_need_lc_CXX=no cannam@85: allow_undefined_flag_CXX= cannam@85: always_export_symbols_CXX=no cannam@85: archive_expsym_cmds_CXX= cannam@85: export_dynamic_flag_spec_CXX= cannam@85: hardcode_direct_CXX=no cannam@85: hardcode_libdir_flag_spec_CXX= cannam@85: hardcode_libdir_flag_spec_ld_CXX= cannam@85: hardcode_libdir_separator_CXX= cannam@85: hardcode_minus_L_CXX=no cannam@85: hardcode_automatic_CXX=no cannam@85: module_cmds_CXX= cannam@85: module_expsym_cmds_CXX= cannam@85: link_all_deplibs_CXX=unknown cannam@85: old_archive_cmds_CXX=$old_archive_cmds cannam@85: no_undefined_flag_CXX= cannam@85: whole_archive_flag_spec_CXX= cannam@85: enable_shared_with_static_runtimes_CXX=no cannam@85: cannam@85: # Dependencies to place before and after the object being linked: cannam@85: predep_objects_CXX= cannam@85: postdep_objects_CXX= cannam@85: predeps_CXX= cannam@85: postdeps_CXX= cannam@85: compiler_lib_search_path_CXX= cannam@85: cannam@85: # Source file extension for C++ test sources. cannam@85: ac_ext=cc cannam@85: cannam@85: # Object file extension for compiled C++ test sources. cannam@85: objext=o cannam@85: objext_CXX=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code='int main(int, char *) { return(0); }\n' cannam@85: cannam@85: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: lt_save_CC=$CC cannam@85: lt_save_LD=$LD cannam@85: lt_save_GCC=$GCC cannam@85: GCC=$GXX cannam@85: lt_save_with_gnu_ld=$with_gnu_ld cannam@85: lt_save_path_LD=$lt_cv_path_LD cannam@85: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then cannam@85: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx cannam@85: else cannam@85: unset lt_cv_prog_gnu_ld cannam@85: fi cannam@85: if test -n "${lt_cv_path_LDCXX+set}"; then cannam@85: lt_cv_path_LD=$lt_cv_path_LDCXX cannam@85: else cannam@85: unset lt_cv_path_LD cannam@85: fi cannam@85: test -z "${LDCXX+set}" || LD=$LDCXX cannam@85: CC=${CXX-"c++"} cannam@85: compiler=$CC cannam@85: compiler_CXX=$CC cannam@85: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` cannam@85: cannam@85: # We don't want -fno-exception wen compiling C++ code, so set the cannam@85: # no_builtin_flag separately cannam@85: if test "$GXX" = yes; then cannam@85: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' cannam@85: else cannam@85: lt_prog_compiler_no_builtin_flag_CXX= cannam@85: fi cannam@85: cannam@85: if test "$GXX" = yes; then cannam@85: # Set up default GNU C++ configuration cannam@85: cannam@85: cannam@85: # Check whether --with-gnu-ld or --without-gnu-ld was given. cannam@85: if test "${with_gnu_ld+set}" = set; then cannam@85: withval="$with_gnu_ld" cannam@85: test "$withval" = no || with_gnu_ld=yes cannam@85: else cannam@85: with_gnu_ld=no cannam@85: fi; cannam@85: ac_prog=ld cannam@85: if test "$GCC" = yes; then cannam@85: # Check if gcc -print-prog-name=ld gives a path. cannam@85: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 cannam@85: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 cannam@85: case $host in cannam@85: *-*-mingw*) cannam@85: # gcc leaves a trailing carriage return which upsets mingw cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@85: *) cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@85: esac cannam@85: case $ac_prog in cannam@85: # Accept absolute paths. cannam@85: [\\/]* | ?:[\\/]*) cannam@85: re_direlt='/[^/][^/]*/\.\./' cannam@85: # Canonicalize the pathname of ld cannam@85: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` cannam@85: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@85: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` cannam@85: done cannam@85: test -z "$LD" && LD="$ac_prog" cannam@85: ;; cannam@85: "") cannam@85: # If it fails, then pretend we aren't using GCC. cannam@85: ac_prog=ld cannam@85: ;; cannam@85: *) cannam@85: # If it is relative, then search for the first ld in PATH. cannam@85: with_gnu_ld=unknown cannam@85: ;; cannam@85: esac cannam@85: elif test "$with_gnu_ld" = yes; then cannam@85: echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@85: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@85: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 cannam@85: fi cannam@85: if test "${lt_cv_path_LD+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test -z "$LD"; then cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for ac_dir in $PATH; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@85: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@85: # Check to see if the program is GNU ld. I'd rather use --version, cannam@85: # but apparently some GNU ld's only accept -v. cannam@85: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@85: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@85: echo "${ECHO_T}$LD" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@85: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@85: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_gnu_ld+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # I'd rather use --version here, but apparently some GNU ld's only accept -v. cannam@85: case `$LD -v 2>&1 &5 cannam@85: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 cannam@85: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@85: cannam@85: cannam@85: cannam@85: # Check if GNU C++ uses GNU ld as the underlying linker, since the cannam@85: # archiving commands below assume that GNU ld is being used. cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' cannam@85: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@85: cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to cannam@85: # investigate it a little bit more. (MM) cannam@85: wlarc='${wl}' cannam@85: cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ cannam@85: grep 'no-whole-archive' > /dev/null; then cannam@85: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: whole_archive_flag_spec_CXX= cannam@85: fi cannam@85: else cannam@85: with_gnu_ld=no cannam@85: wlarc= cannam@85: cannam@85: # A generic and very simple default shared library creation cannam@85: # command for GNU C++ for the case where it uses the native cannam@85: # linker, instead of GNU ld. If possible, this setting should cannam@85: # overridden to take advantage of the native linker features on cannam@85: # the platform it is being used on. cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@85: fi cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: GXX=no cannam@85: with_gnu_ld=no cannam@85: wlarc= cannam@85: fi cannam@85: cannam@85: # PORTME: fill in a description of your system's C++ link characteristics cannam@85: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@85: ld_shlibs_CXX=yes cannam@85: case $host_os in cannam@85: aix3*) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: case $ld_flag in cannam@85: *-brtl*) cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: archive_cmds_CXX='' cannam@85: hardcode_direct_CXX=yes cannam@85: hardcode_libdir_separator_CXX=':' cannam@85: link_all_deplibs_CXX=yes cannam@85: cannam@85: if test "$GXX" = yes; then cannam@85: case $host_os in aix4.012|aix4.012.*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: hardcode_direct_CXX=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: hardcode_direct_CXX=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: hardcode_minus_L_CXX=yes cannam@85: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@85: hardcode_libdir_separator_CXX= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: always_export_symbols_CXX=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: allow_undefined_flag_CXX='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: cannam@85: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' cannam@85: allow_undefined_flag_CXX="-z nodefs" cannam@85: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: no_undefined_flag_CXX=' ${wl}-bernotok' cannam@85: allow_undefined_flag_CXX=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: always_export_symbols_CXX=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: whole_archive_flag_spec_CXX=' ' cannam@85: archive_cmds_need_lc_CXX=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: chorus*) cannam@85: case $cc_basename in cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@85: allow_undefined_flag_CXX=unsupported cannam@85: always_export_symbols_CXX=no cannam@85: enable_shared_with_static_runtimes_CXX=yes cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes; then cannam@85: archive_cmds_need_lc_CXX=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[012]) cannam@85: allow_undefined_flag_CXX='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: allow_undefined_flag_CXX='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[012]) cannam@85: allow_undefined_flag_CXX='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: allow_undefined_flag_CXX='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: hardcode_direct_CXX=no cannam@85: hardcode_automatic_CXX=yes cannam@85: hardcode_shlibpath_var_CXX=unsupported cannam@85: whole_archive_flag_spec_CXX='-all_load $convenience' cannam@85: link_all_deplibs_CXX=yes cannam@85: else cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: case $cc_basename in cannam@85: ec++) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: ghcx) cannam@85: # Green Hills C++ Compiler cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: freebsd12*) cannam@85: # C++ shared libraries reported to be fairly broken before switch to ELF cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: freebsd-elf*) cannam@85: archive_cmds_need_lc_CXX=no cannam@85: ;; cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF cannam@85: # conventions cannam@85: ld_shlibs_CXX=yes cannam@85: ;; cannam@85: gnu*) cannam@85: ;; cannam@85: hpux9*) cannam@85: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: export_dynamic_flag_spec_CXX='${wl}-E' cannam@85: hardcode_direct_CXX=yes cannam@85: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: aCC) cannam@85: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: hpux10*|hpux11*) cannam@85: if test $with_gnu_ld = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: ;; cannam@85: ia64*) cannam@85: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@85: ;; cannam@85: *) cannam@85: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: export_dynamic_flag_spec_CXX='${wl}-E' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: hardcode_direct_CXX=no cannam@85: hardcode_shlibpath_var_CXX=no cannam@85: ;; cannam@85: ia64*) cannam@85: hardcode_direct_CXX=no cannam@85: hardcode_shlibpath_var_CXX=no cannam@85: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: ;; cannam@85: *) cannam@85: hardcode_direct_CXX=yes cannam@85: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: aCC) cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: if test $with_gnu_ld = no; then cannam@85: case "$host_cpu" in cannam@85: ia64*|hppa*64*) cannam@85: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: irix5* | irix6*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # SGI C++ cannam@85: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -ar", where "CC" is the IRIX C++ compiler. This is cannam@85: # necessary to make sure instantiated templates are included cannam@85: # in the archive. cannam@85: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: if test "$with_gnu_ld" = no; then cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' cannam@85: else cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' cannam@85: fi cannam@85: fi cannam@85: link_all_deplibs_CXX=yes cannam@85: ;; cannam@85: esac cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: ;; cannam@85: linux*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' cannam@85: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@85: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' cannam@85: ;; cannam@85: icpc) cannam@85: # Intel C++ cannam@85: with_gnu_ld=yes cannam@85: archive_cmds_need_lc_CXX=no cannam@85: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@85: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@85: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' cannam@85: ;; cannam@85: cxx) cannam@85: # Compaq C++ cannam@85: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' cannam@85: cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: lynxos*) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: m88k*) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: mvs*) cannam@85: case $cc_basename in cannam@85: cxx) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' cannam@85: wlarc= cannam@85: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@85: hardcode_direct_CXX=yes cannam@85: hardcode_shlibpath_var_CXX=no cannam@85: fi cannam@85: # Workaround some broken pre-1.5 toolchains cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' cannam@85: ;; cannam@85: osf3*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@85: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' cannam@85: cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: cxx) cannam@85: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: osf4* | osf5*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # the KAI C++ compiler. cannam@85: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: cxx) cannam@85: allow_undefined_flag_CXX=' -expect_unresolved \*' cannam@85: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' cannam@85: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ cannam@85: echo "-hidden">> $lib.exp~ cannam@85: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ cannam@85: $rm $lib.exp' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_CXX=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: psos*) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: sco*) cannam@85: archive_cmds_need_lc_CXX=no cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sunos4*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.x cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: lcc) cannam@85: # Lucid cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: solaris*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.2, 5.x and Centerline C++ cannam@85: no_undefined_flag_CXX=' -zdefs' cannam@85: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@85: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@85: hardcode_shlibpath_var_CXX=no cannam@85: case $host_os in cannam@85: solaris2.0-5 | solaris2.0-5.*) ;; cannam@85: *) cannam@85: # The C++ compiler is used as linker so we must use $wl cannam@85: # flag to pass the commands to the underlying system cannam@85: # linker. cannam@85: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' cannam@85: ;; cannam@85: esac cannam@85: link_all_deplibs_CXX=yes cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -xar", where "CC" is the Sun C++ compiler. This is cannam@85: # necessary to make sure instantiated templates are included cannam@85: # in the archive. cannam@85: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' cannam@85: ;; cannam@85: gcx) cannam@85: # Green Hills C++ Compiler cannam@85: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: cannam@85: # The C++ compiler must be used to create the archive. cannam@85: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' cannam@85: ;; cannam@85: *) cannam@85: # GNU C++ compiler with Solaris linker cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' cannam@85: if $CC --version | grep -v '^2\.7' > /dev/null; then cannam@85: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@85: else cannam@85: # g++ 2.7 appears to require `-G' NOT `-shared' on this cannam@85: # platform. cannam@85: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@85: fi cannam@85: cannam@85: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@85: archive_cmds_need_lc_CXX=no cannam@85: ;; cannam@85: tandem*) cannam@85: case $cc_basename in cannam@85: NCC) cannam@85: # NonStop-UX NCC 3.20 cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: vxworks*) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: ld_shlibs_CXX=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 cannam@85: echo "${ECHO_T}$ld_shlibs_CXX" >&6 cannam@85: test "$ld_shlibs_CXX" = no && can_build_shared=no cannam@85: cannam@85: GCC_CXX="$GXX" cannam@85: LD_CXX="$LD" cannam@85: cannam@85: cannam@85: cat > conftest.$ac_ext <&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; then cannam@85: # Parse the compiler output and extract the necessary cannam@85: # objects, libraries and library flags. cannam@85: cannam@85: # Sentinel used to keep track of whether or not we are before cannam@85: # the conftest object file. cannam@85: pre_test_object_deps_done=no cannam@85: cannam@85: # The `*' in the case matches for architectures that use `case' in cannam@85: # $output_verbose_cmd can trigger glob expansion during the loop cannam@85: # eval without this substitution. cannam@85: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" cannam@85: cannam@85: for p in `eval $output_verbose_link_cmd`; do cannam@85: case $p in cannam@85: cannam@85: -L* | -R* | -l*) cannam@85: # Some compilers place space between "-{L,R}" and the path. cannam@85: # Remove the space. cannam@85: if test $p = "-L" \ cannam@85: || test $p = "-R"; then cannam@85: prev=$p cannam@85: continue cannam@85: else cannam@85: prev= cannam@85: fi cannam@85: cannam@85: if test "$pre_test_object_deps_done" = no; then cannam@85: case $p in cannam@85: -L* | -R*) cannam@85: # Internal compiler library paths should come after those cannam@85: # provided the user. The postdeps already come after the cannam@85: # user supplied libs so there is no need to process them. cannam@85: if test -z "$compiler_lib_search_path_CXX"; then cannam@85: compiler_lib_search_path_CXX="${prev}${p}" cannam@85: else cannam@85: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" cannam@85: fi cannam@85: ;; cannam@85: # The "-l" case would never come before the object being cannam@85: # linked, so don't bother handling this case. cannam@85: esac cannam@85: else cannam@85: if test -z "$postdeps_CXX"; then cannam@85: postdeps_CXX="${prev}${p}" cannam@85: else cannam@85: postdeps_CXX="${postdeps_CXX} ${prev}${p}" cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *.$objext) cannam@85: # This assumes that the test object file only shows up cannam@85: # once in the compiler output. cannam@85: if test "$p" = "conftest.$objext"; then cannam@85: pre_test_object_deps_done=yes cannam@85: continue cannam@85: fi cannam@85: cannam@85: if test "$pre_test_object_deps_done" = no; then cannam@85: if test -z "$predep_objects_CXX"; then cannam@85: predep_objects_CXX="$p" cannam@85: else cannam@85: predep_objects_CXX="$predep_objects_CXX $p" cannam@85: fi cannam@85: else cannam@85: if test -z "$postdep_objects_CXX"; then cannam@85: postdep_objects_CXX="$p" cannam@85: else cannam@85: postdep_objects_CXX="$postdep_objects_CXX $p" cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *) ;; # Ignore the rest. cannam@85: cannam@85: esac cannam@85: done cannam@85: cannam@85: # Clean up. cannam@85: rm -f a.out a.exe cannam@85: else cannam@85: echo "libtool.m4: error: problem compiling CXX test program" cannam@85: fi cannam@85: cannam@85: $rm -f confest.$objext cannam@85: cannam@85: case " $postdeps_CXX " in cannam@85: *" -lc "*) archive_cmds_need_lc_CXX=no ;; cannam@85: esac cannam@85: cannam@85: lt_prog_compiler_wl_CXX= cannam@85: lt_prog_compiler_pic_CXX= cannam@85: lt_prog_compiler_static_CXX= cannam@85: cannam@85: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@85: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@85: cannam@85: # C++ specific cases for pic, static, wl, etc. cannam@85: if test "$GXX" = yes; then cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: lt_prog_compiler_static_CXX='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_CXX='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: mingw* | os2* | pw32*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' cannam@85: ;; cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: lt_prog_compiler_pic_CXX='-fno-common' cannam@85: ;; cannam@85: *djgpp*) cannam@85: # DJGPP does not support shared libraries at all cannam@85: lt_prog_compiler_pic_CXX= cannam@85: ;; cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: lt_prog_compiler_pic_CXX=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_CXX='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_CXX='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case $host_os in cannam@85: aix4* | aix5*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_CXX='-Bstatic' cannam@85: else cannam@85: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: chorus*) cannam@85: case $cc_basename in cannam@85: cxch68) cannam@85: # Green Hills C++ Compiler cannam@85: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: dgux*) cannam@85: case $cc_basename in cannam@85: ec++) cannam@85: lt_prog_compiler_pic_CXX='-KPIC' cannam@85: ;; cannam@85: ghcx) cannam@85: # Green Hills C++ Compiler cannam@85: lt_prog_compiler_pic_CXX='-pic' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: # FreeBSD uses GNU C++ cannam@85: ;; cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@85: if test "$host_cpu" != ia64; then cannam@85: lt_prog_compiler_pic_CXX='+Z' cannam@85: fi cannam@85: ;; cannam@85: aCC) cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_CXX='+Z' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: lt_prog_compiler_static_CXX='-non_shared' cannam@85: # CC pic flag -KPIC is the default. cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: linux*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # KAI C++ Compiler cannam@85: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@85: lt_prog_compiler_pic_CXX='-fPIC' cannam@85: ;; cannam@85: icpc) cannam@85: # Intel C++ cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: lt_prog_compiler_pic_CXX='-KPIC' cannam@85: lt_prog_compiler_static_CXX='-static' cannam@85: ;; cannam@85: cxx) cannam@85: # Compaq C++ cannam@85: # Make sure the PIC flag is empty. It appears that all Alpha cannam@85: # Linux and Compaq Tru64 Unix objects are PIC. cannam@85: lt_prog_compiler_pic_CXX= cannam@85: lt_prog_compiler_static_CXX='-non_shared' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: lynxos*) cannam@85: ;; cannam@85: m88k*) cannam@85: ;; cannam@85: mvs*) cannam@85: case $cc_basename in cannam@85: cxx) cannam@85: lt_prog_compiler_pic_CXX='-W c,exportall' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: netbsd* | knetbsd*-gnu) cannam@85: ;; cannam@85: osf3* | osf4* | osf5*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: lt_prog_compiler_pic_CXX='-pic' cannam@85: ;; cannam@85: cxx) cannam@85: # Digital/Compaq C++ cannam@85: lt_prog_compiler_wl_CXX='-Wl,' cannam@85: # Make sure the PIC flag is empty. It appears that all Alpha cannam@85: # Linux and Compaq Tru64 Unix objects are PIC. cannam@85: lt_prog_compiler_pic_CXX= cannam@85: lt_prog_compiler_static_CXX='-non_shared' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: psos*) cannam@85: ;; cannam@85: sco*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: lt_prog_compiler_pic_CXX='-fPIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: solaris*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.2, 5.x and Centerline C++ cannam@85: lt_prog_compiler_pic_CXX='-KPIC' cannam@85: lt_prog_compiler_static_CXX='-Bstatic' cannam@85: lt_prog_compiler_wl_CXX='-Qoption ld ' cannam@85: ;; cannam@85: gcx) cannam@85: # Green Hills C++ Compiler cannam@85: lt_prog_compiler_pic_CXX='-PIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sunos4*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.x cannam@85: lt_prog_compiler_pic_CXX='-pic' cannam@85: lt_prog_compiler_static_CXX='-Bstatic' cannam@85: ;; cannam@85: lcc) cannam@85: # Lucid cannam@85: lt_prog_compiler_pic_CXX='-pic' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: tandem*) cannam@85: case $cc_basename in cannam@85: NCC) cannam@85: # NonStop-UX NCC 3.20 cannam@85: lt_prog_compiler_pic_CXX='-KPIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: unixware*) cannam@85: ;; cannam@85: vxworks*) cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_can_build_shared_CXX=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 cannam@85: cannam@85: # cannam@85: # Check to make sure the PIC flag actually works. cannam@85: # cannam@85: if test -n "$lt_prog_compiler_pic_CXX"; then cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 cannam@85: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 cannam@85: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_prog_compiler_pic_works_CXX=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:11015: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:11019: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_prog_compiler_pic_works_CXX=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 cannam@85: cannam@85: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then cannam@85: case $lt_prog_compiler_pic_CXX in cannam@85: "" | " "*) ;; cannam@85: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; cannam@85: esac cannam@85: else cannam@85: lt_prog_compiler_pic_CXX= cannam@85: lt_prog_compiler_can_build_shared_CXX=no cannam@85: fi cannam@85: cannam@85: fi cannam@85: case "$host_os" in cannam@85: # For platforms which do not support PIC, -DPIC is meaningless: cannam@85: *djgpp*) cannam@85: lt_prog_compiler_pic_CXX= cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_c_o_CXX=no cannam@85: $rm -r conftest 2>/dev/null cannam@85: mkdir conftest cannam@85: cd conftest cannam@85: mkdir out cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:11075: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>out/conftest.err) cannam@85: ac_status=$? cannam@85: cat out/conftest.err >&5 cannam@85: echo "$as_me:11079: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@85: then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s out/conftest.err; then cannam@85: lt_cv_prog_compiler_c_o_CXX=yes cannam@85: fi cannam@85: fi cannam@85: chmod u+w . cannam@85: $rm conftest* cannam@85: # SGI C++ compiler will create directory out/ii_files/ for cannam@85: # template instantiation cannam@85: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@85: $rm out/* && rmdir out cannam@85: cd .. cannam@85: rmdir conftest cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 cannam@85: cannam@85: cannam@85: hard_links="nottested" cannam@85: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then cannam@85: # do not overwrite the value of need_locks provided by the user cannam@85: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@85: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@85: hard_links=yes cannam@85: $rm conftest* cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: touch conftest.a cannam@85: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@85: echo "${ECHO_T}$hard_links" >&6 cannam@85: if test "$hard_links" = no; then cannam@85: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@85: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@85: need_locks=warn cannam@85: fi cannam@85: else cannam@85: need_locks=no cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@85: cannam@85: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: case $host_os in cannam@85: aix4* | aix5*) cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: else cannam@85: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: export_symbols_cmds_CXX="$ltdll_cmds" cannam@85: ;; cannam@85: cygwin* | mingw*) cannam@85: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: ;; cannam@85: *) cannam@85: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 cannam@85: echo "${ECHO_T}$ld_shlibs_CXX" >&6 cannam@85: test "$ld_shlibs_CXX" = no && can_build_shared=no cannam@85: cannam@85: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@85: if test "$GCC" = yes; then cannam@85: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@85: fi cannam@85: cannam@85: # cannam@85: # Do we need to explicitly link libc? cannam@85: # cannam@85: case "x$archive_cmds_need_lc_CXX" in cannam@85: x|xyes) cannam@85: # Assume -lc should be added cannam@85: archive_cmds_need_lc_CXX=yes cannam@85: cannam@85: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@85: case $archive_cmds_CXX in cannam@85: *'~'*) cannam@85: # FIXME: we may have to deal with multi-command sequences. cannam@85: ;; cannam@85: '$CC '*) cannam@85: # Test whether the compiler implicitly links with -lc since on some cannam@85: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@85: # to ld, don't add -lc before -lgcc. cannam@85: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@85: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@85: $rm conftest* cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } 2>conftest.err; then cannam@85: soname=conftest cannam@85: lib=conftest cannam@85: libobjs=conftest.$ac_objext cannam@85: deplibs= cannam@85: wl=$lt_prog_compiler_wl_CXX cannam@85: compiler_flags=-v cannam@85: linker_flags=-v cannam@85: verstring= cannam@85: output_objdir=. cannam@85: libname=conftest cannam@85: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX cannam@85: allow_undefined_flag_CXX= cannam@85: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@85: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: then cannam@85: archive_cmds_need_lc_CXX=no cannam@85: else cannam@85: archive_cmds_need_lc_CXX=yes cannam@85: fi cannam@85: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag cannam@85: else cannam@85: cat conftest.err 1>&5 cannam@85: fi cannam@85: $rm conftest* cannam@85: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 cannam@85: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@85: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@85: library_names_spec= cannam@85: libname_spec='lib$name' cannam@85: soname_spec= cannam@85: shrext=".so" cannam@85: postinstall_cmds= cannam@85: postuninstall_cmds= cannam@85: finish_cmds= cannam@85: finish_eval= cannam@85: shlibpath_var= cannam@85: shlibpath_overrides_runpath=unknown cannam@85: version_type=none cannam@85: dynamic_linker="$host_os ld.so" cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@85: # if the path contains ";" then we assume it to be the separator cannam@85: # otherwise default to the standard path separator (i.e. ":") - it is cannam@85: # assumed that no part of a normal pathname contains ";" but that should cannam@85: # okay in the real world where ";" in dirpaths is itself problematic. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: else cannam@85: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@85: fi cannam@85: need_lib_prefix=unknown cannam@85: hardcode_into_libs=no cannam@85: cannam@85: # when you set need_version to no, make sure it does not cause -set_version cannam@85: # flags to be left without arguments cannam@85: need_version=unknown cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@85: shlibpath_var=LIBPATH cannam@85: cannam@85: # AIX 3 has no versioning support, so we append a major version to the name. cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: hardcode_into_libs=yes cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 supports IA64 cannam@85: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: else cannam@85: # With GCC up to 2.95.x, collect2 would create an import file cannam@85: # for dependence libraries. The import file would start with cannam@85: # the line `#! .'. This would cause the generated library to cannam@85: # depend on `.', always an invalid library. This was fixed in cannam@85: # development snapshots of GCC prior to 3.0. cannam@85: case $host_os in cannam@85: aix4 | aix4.[01] | aix4.[01].*) cannam@85: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@85: echo ' yes ' cannam@85: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@85: : cannam@85: else cannam@85: can_build_shared=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@85: # soname into executable. Probably we can add versioning support to cannam@85: # collect2, so additional links can be useful in future. cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@85: # instead of lib.a to let people know that these are not cannam@85: # typical AIX shared libraries. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: else cannam@85: # We preserve .a as extension for shared libraries through AIX4.2 cannam@85: # and later when we are not doing run time linking. cannam@85: library_names_spec='${libname}${release}.a $libname.a' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: fi cannam@85: shlibpath_var=LIBPATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: library_names_spec='$libname.ixlibrary $libname.a' cannam@85: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@85: 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' cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: library_names_spec='${libname}${shared_ext}' cannam@85: dynamic_linker="$host_os ld.so" cannam@85: shlibpath_var=LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: version_type=linux cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@85: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@85: # the default ld.so.conf also contains /usr/contrib/lib and cannam@85: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@85: # libtool to hard-code these into programs cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: version_type=windows cannam@85: shrext=".dll" cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: cannam@85: case $GCC,$host_os in cannam@85: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@85: library_names_spec='$libname.dll.a' cannam@85: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@85: postinstall_cmds='base_file=`basename \${file}`~ cannam@85: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@85: dldir=$destdir/`dirname \$dlpath`~ cannam@85: test -d \$dldir || mkdir -p \$dldir~ cannam@85: $install_prog $dir/$dlname \$dldir/$dlname' cannam@85: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@85: dlpath=$dir/\$dldll~ cannam@85: $rm \$dlpath' cannam@85: shlibpath_overrides_runpath=yes cannam@85: cannam@85: case $host_os in cannam@85: cygwin*) cannam@85: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@85: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@85: ;; cannam@85: mingw*) cannam@85: # MinGW DLLs use traditional 'lib' prefix cannam@85: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@85: # It is most probably a Windows format PATH printed by cannam@85: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@85: # path with ; separators, and with drive letters. We can handle the cannam@85: # drive letters (cygwin fileutils understands them), so leave them, cannam@85: # especially as we might pass files found there to a mingw objdump, cannam@85: # which wouldn't understand a cygwinified path. Ahh. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@85: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@85: ;; cannam@85: esac cannam@85: dynamic_linker='Win32 ld.exe' cannam@85: # FIXME: first we should search . and the directory the executable is in cannam@85: shlibpath_var=PATH cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: dynamic_linker="$host_os dyld" cannam@85: version_type=darwin cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@85: soname_spec='${libname}${release}${major}$shared_ext' cannam@85: shlibpath_overrides_runpath=yes cannam@85: shlibpath_var=DYLD_LIBRARY_PATH cannam@85: shrext='$(test .$module = .yes && echo .so || echo .dylib)' cannam@85: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` cannam@85: else cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: kfreebsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: freebsd*) cannam@85: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@85: version_type=freebsd-$objformat cannam@85: case $version_type in cannam@85: freebsd-elf*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: freebsd-*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@85: need_version=yes cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_os in cannam@85: freebsd2*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: freebsd3.01* | freebsdelf3.01*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: *) # from 3.2 on cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@85: # link against other versions. cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: shrext='.so' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.so" cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: if test "X$HPUX_IA64_MODE" = X32; then cannam@85: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@85: else cannam@85: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: hppa*64*) cannam@85: shrext='.sl' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: *) cannam@85: shrext='.sl' cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=SHLIB_PATH cannam@85: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: esac cannam@85: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@85: postinstall_cmds='chmod 555 $lib' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $host_os in cannam@85: nonstopux*) version_type=nonstopux ;; cannam@85: *) cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: version_type=linux cannam@85: else cannam@85: version_type=irix cannam@85: fi ;; cannam@85: esac cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: case $host_os in cannam@85: irix5* | nonstopux*) cannam@85: libsuff= shlibsuff= cannam@85: ;; cannam@85: *) cannam@85: case $LD in # libtool.m4 will add one of these switches to LD cannam@85: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@85: libsuff= shlibsuff= libmagic=32-bit;; cannam@85: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@85: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@85: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@85: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@85: *) libsuff= shlibsuff= libmagic=never-match;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@85: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: # No shared lib support for Linux oldld, aout, or coff. cannam@85: linux*oldld* | linux*aout* | linux*coff*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: # This implies no fast_install, which is unacceptable. cannam@85: # Some rework will be needed to allow for fast_install cannam@85: # before this can be enabled. cannam@85: hardcode_into_libs=yes cannam@85: cannam@85: # Append ld.so.conf contents to the search path cannam@85: if test -f /etc/ld.so.conf; then cannam@85: ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" cannam@85: fi cannam@85: cannam@85: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@85: # powerpc, because MkLinux only supported shared libraries with the cannam@85: # GNU dynamic linker. Since this was broken with cross compilers, cannam@85: # most powerpc-linux boxes support dynamic linking these days and cannam@85: # people can always --disable-shared, the test was removed, and we cannam@85: # assume the GNU/Linux dynamic linker is in use. cannam@85: dynamic_linker='GNU/Linux ld.so' cannam@85: ;; cannam@85: cannam@85: knetbsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: netbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: dynamic_linker='NetBSD (a.out) ld.so' cannam@85: else cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: dynamic_linker='NetBSD ld.elf_so' cannam@85: fi cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=yes cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: case $host_os in cannam@85: openbsd2.[89] | openbsd2.[89].*) cannam@85: shlibpath_overrides_runpath=no cannam@85: ;; cannam@85: *) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: shlibpath_overrides_runpath=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: libname_spec='$name' cannam@85: shrext=".dll" cannam@85: need_lib_prefix=no cannam@85: library_names_spec='$libname${shared_ext} $libname.a' cannam@85: dynamic_linker='OS/2 ld.exe' cannam@85: shlibpath_var=LIBPATH cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: version_type=osf cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@85: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: version_type=osf cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: # ldd complains unless libraries are executable cannam@85: postinstall_cmds='chmod +x $lib' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: version_type=sunos cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: need_lib_prefix=no cannam@85: fi cannam@85: need_version=yes cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_vendor in cannam@85: sni) cannam@85: shlibpath_overrides_runpath=no cannam@85: need_lib_prefix=no cannam@85: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: siemens) cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: motorola) cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: version_type=linux cannam@85: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@85: soname_spec='$libname${shared_ext}.$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: *) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@85: echo "${ECHO_T}$dynamic_linker" >&6 cannam@85: test "$dynamic_linker" = no && can_build_shared=no cannam@85: cannam@85: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@85: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@85: hardcode_action_CXX= cannam@85: if test -n "$hardcode_libdir_flag_spec_CXX" || \ cannam@85: test -n "$runpath_var CXX" || \ cannam@85: test "X$hardcode_automatic_CXX"="Xyes" ; then cannam@85: cannam@85: # We can hardcode non-existant directories. cannam@85: if test "$hardcode_direct_CXX" != no && cannam@85: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@85: # have to relink, otherwise we might link with an installed library cannam@85: # when we should be linking with a yet-to-be-installed one cannam@85: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && cannam@85: test "$hardcode_minus_L_CXX" != no; then cannam@85: # Linking always hardcodes the temporary library directory. cannam@85: hardcode_action_CXX=relink cannam@85: else cannam@85: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@85: hardcode_action_CXX=immediate cannam@85: fi cannam@85: else cannam@85: # We cannot hardcode anything, or else we can only hardcode existing cannam@85: # directories. cannam@85: hardcode_action_CXX=unsupported cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 cannam@85: echo "${ECHO_T}$hardcode_action_CXX" >&6 cannam@85: cannam@85: if test "$hardcode_action_CXX" = relink; then cannam@85: # Fast installation is not supported cannam@85: enable_fast_install=no cannam@85: elif test "$shlibpath_overrides_runpath" = yes || cannam@85: test "$enable_shared" = no; then cannam@85: # Fast installation is not necessary cannam@85: enable_fast_install=needless cannam@85: fi cannam@85: cannam@85: striplib= cannam@85: old_striplib= cannam@85: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@85: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@85: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@85: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@85: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: # FIXME - insert some real tests, host_os isn't really good enough cannam@85: case $host_os in cannam@85: darwin*) cannam@85: if test -n "$STRIP" ; then cannam@85: striplib="$STRIP -x" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: if test "x$enable_dlopen" != xyes; then cannam@85: enable_dlopen=unknown cannam@85: enable_dlopen_self=unknown cannam@85: enable_dlopen_self_static=unknown cannam@85: else cannam@85: lt_cv_dlopen=no cannam@85: lt_cv_dlopen_libs= cannam@85: cannam@85: case $host_os in cannam@85: beos*) cannam@85: lt_cv_dlopen="load_add_on" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: ;; cannam@85: cannam@85: mingw* | pw32*) cannam@85: lt_cv_dlopen="LoadLibrary" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: cygwin*) cannam@85: lt_cv_dlopen="dlopen" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: darwin*) cannam@85: # if libdl is installed we need to link against it cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: cannam@85: lt_cv_dlopen="dyld" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: cannam@85: *) cannam@85: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@85: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define shl_load innocuous_shl_load cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char shl_load (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef shl_load cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = shl_load; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != shl_load; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@85: if test $ac_cv_func_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@85: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: shl_load (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@85: if test $ac_cv_lib_dld_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@85: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define dlopen innocuous_dlopen cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char dlopen (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef dlopen cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = dlopen; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != dlopen; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@85: if test $ac_cv_func_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-lsvld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_svld_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_svld_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@85: if test $ac_cv_lib_svld_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@85: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dld_link (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dld_link (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_dld_link=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_dld_link=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@85: if test $ac_cv_lib_dld_dld_link = yes; then cannam@85: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "x$lt_cv_dlopen" != xno; then cannam@85: enable_dlopen=yes cannam@85: else cannam@85: enable_dlopen=no cannam@85: fi cannam@85: cannam@85: case $lt_cv_dlopen in cannam@85: dlopen) cannam@85: save_CPPFLAGS="$CPPFLAGS" cannam@85: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@85: cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@85: cannam@85: save_LIBS="$LIBS" cannam@85: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@85: cannam@85: if test "x$lt_cv_dlopen_self" = xyes; then cannam@85: LDFLAGS="$LDFLAGS $link_static_flag" cannam@85: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self_static=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self_static=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@85: fi cannam@85: cannam@85: CPPFLAGS="$save_CPPFLAGS" cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: LIBS="$save_LIBS" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self in cannam@85: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@85: *) enable_dlopen_self=unknown ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self_static in cannam@85: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@85: *) enable_dlopen_self_static=unknown ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: cannam@85: # The else clause should only fire when bootstrapping the cannam@85: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@85: # with your package, and you will get complaints that there are cannam@85: # no rules to generate ltmain.sh. cannam@85: if test -f "$ltmain"; then cannam@85: # See if we are running on zsh, and set the options which allow our commands through cannam@85: # without removal of \ escapes. cannam@85: if test -n "${ZSH_VERSION+set}" ; then cannam@85: setopt NO_GLOB_SUBST cannam@85: fi cannam@85: # Now quote all the things that may contain metacharacters while being cannam@85: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@85: # variables and quote the copies for generation of the libtool script. cannam@85: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@85: SED SHELL STRIP \ cannam@85: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@85: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@85: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@85: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@85: lt_cv_sys_global_symbol_to_c_name_address \ cannam@85: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@85: old_postinstall_cmds old_postuninstall_cmds \ cannam@85: compiler_CXX \ cannam@85: CC_CXX \ cannam@85: LD_CXX \ cannam@85: lt_prog_compiler_wl_CXX \ cannam@85: lt_prog_compiler_pic_CXX \ cannam@85: lt_prog_compiler_static_CXX \ cannam@85: lt_prog_compiler_no_builtin_flag_CXX \ cannam@85: export_dynamic_flag_spec_CXX \ cannam@85: thread_safe_flag_spec_CXX \ cannam@85: whole_archive_flag_spec_CXX \ cannam@85: enable_shared_with_static_runtimes_CXX \ cannam@85: old_archive_cmds_CXX \ cannam@85: old_archive_from_new_cmds_CXX \ cannam@85: predep_objects_CXX \ cannam@85: postdep_objects_CXX \ cannam@85: predeps_CXX \ cannam@85: postdeps_CXX \ cannam@85: compiler_lib_search_path_CXX \ cannam@85: archive_cmds_CXX \ cannam@85: archive_expsym_cmds_CXX \ cannam@85: postinstall_cmds_CXX \ cannam@85: postuninstall_cmds_CXX \ cannam@85: old_archive_from_expsyms_cmds_CXX \ cannam@85: allow_undefined_flag_CXX \ cannam@85: no_undefined_flag_CXX \ cannam@85: export_symbols_cmds_CXX \ cannam@85: hardcode_libdir_flag_spec_CXX \ cannam@85: hardcode_libdir_flag_spec_ld_CXX \ cannam@85: hardcode_libdir_separator_CXX \ cannam@85: hardcode_automatic_CXX \ cannam@85: module_cmds_CXX \ cannam@85: module_expsym_cmds_CXX \ cannam@85: lt_cv_prog_compiler_c_o_CXX \ cannam@85: exclude_expsyms_CXX \ cannam@85: include_expsyms_CXX; do cannam@85: cannam@85: case $var in cannam@85: old_archive_cmds_CXX | \ cannam@85: old_archive_from_new_cmds_CXX | \ cannam@85: archive_cmds_CXX | \ cannam@85: archive_expsym_cmds_CXX | \ cannam@85: module_cmds_CXX | \ cannam@85: module_expsym_cmds_CXX | \ cannam@85: old_archive_from_expsyms_cmds_CXX | \ cannam@85: export_symbols_cmds_CXX | \ cannam@85: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@85: postinstall_cmds | postuninstall_cmds | \ cannam@85: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@85: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@85: # Double-quote double-evaled strings. cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@85: ;; cannam@85: *) cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: case $lt_echo in cannam@85: *'\$0 --fallback-echo"') cannam@85: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cfgfile="$ofile" cannam@85: cannam@85: cat <<__EOF__ >> "$cfgfile" cannam@85: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$archive_cmds_need_lc_CXX cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_compiler_CXX cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$GCC_CXX cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_LD_CXX cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_lt_prog_compiler_wl_CXX cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_lt_prog_compiler_pic_CXX cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_lt_prog_compiler_static_CXX cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_old_archive_cmds_CXX cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_archive_cmds_CXX cannam@85: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_module_cmds_CXX cannam@85: module_expsym_cmds=$lt_module_expsym_cmds_CXX cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_predep_objects_CXX cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_postdep_objects_CXX cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_predeps_CXX cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_postdeps_CXX cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_allow_undefined_flag_CXX cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_no_undefined_flag_CXX cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$hardcode_action_CXX cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$hardcode_direct_CXX cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$hardcode_minus_L_CXX cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$hardcode_automatic_CXX cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$link_all_deplibs_CXX cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$fix_srcfile_path_CXX" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$always_export_symbols_CXX cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_export_symbols_cmds_CXX cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_exclude_expsyms_CXX cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_include_expsyms_CXX cannam@85: cannam@85: # ### END LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: CC=$lt_save_CC cannam@85: LDCXX=$LD cannam@85: LD=$lt_save_LD cannam@85: GCC=$lt_save_GCC cannam@85: with_gnu_ldcxx=$with_gnu_ld cannam@85: with_gnu_ld=$lt_save_with_gnu_ld cannam@85: lt_cv_path_LDCXX=$lt_cv_path_LD cannam@85: lt_cv_path_LD=$lt_save_path_LD cannam@85: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld cannam@85: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld cannam@85: cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: F77) cannam@85: if test -n "$F77" && test "X$F77" != "Xno"; then cannam@85: cannam@85: ac_ext=f cannam@85: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@85: cannam@85: cannam@85: archive_cmds_need_lc_F77=no cannam@85: allow_undefined_flag_F77= cannam@85: always_export_symbols_F77=no cannam@85: archive_expsym_cmds_F77= cannam@85: export_dynamic_flag_spec_F77= cannam@85: hardcode_direct_F77=no cannam@85: hardcode_libdir_flag_spec_F77= cannam@85: hardcode_libdir_flag_spec_ld_F77= cannam@85: hardcode_libdir_separator_F77= cannam@85: hardcode_minus_L_F77=no cannam@85: hardcode_automatic_F77=no cannam@85: module_cmds_F77= cannam@85: module_expsym_cmds_F77= cannam@85: link_all_deplibs_F77=unknown cannam@85: old_archive_cmds_F77=$old_archive_cmds cannam@85: no_undefined_flag_F77= cannam@85: whole_archive_flag_spec_F77= cannam@85: enable_shared_with_static_runtimes_F77=no cannam@85: cannam@85: # Source file extension for f77 test sources. cannam@85: ac_ext=f cannam@85: cannam@85: # Object file extension for compiled f77 test sources. cannam@85: objext=o cannam@85: objext_F77=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code=" subroutine t\n return\n end\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code=" program t\n end\n" cannam@85: cannam@85: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: lt_save_CC="$CC" cannam@85: CC=${F77-"f77"} cannam@85: compiler=$CC cannam@85: compiler_F77=$CC cannam@85: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` cannam@85: cannam@85: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 cannam@85: echo "$as_me:$LINENO: result: $can_build_shared" >&5 cannam@85: echo "${ECHO_T}$can_build_shared" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 cannam@85: test "$can_build_shared" = "no" && enable_shared=no cannam@85: cannam@85: # On AIX, shared libraries and static libraries use the same namespace, and cannam@85: # are all built from PIC. cannam@85: case "$host_os" in cannam@85: aix3*) cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: if test -n "$RANLIB"; then cannam@85: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@85: postinstall_cmds='$RANLIB $lib' cannam@85: fi cannam@85: ;; cannam@85: aix4*) cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $enable_shared" >&5 cannam@85: echo "${ECHO_T}$enable_shared" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 cannam@85: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 cannam@85: # Make sure either enable_shared or enable_static is yes. cannam@85: test "$enable_shared" = yes || enable_static=yes cannam@85: echo "$as_me:$LINENO: result: $enable_static" >&5 cannam@85: echo "${ECHO_T}$enable_static" >&6 cannam@85: cannam@85: test "$ld_shlibs_F77" = no && can_build_shared=no cannam@85: cannam@85: GCC_F77="$G77" cannam@85: LD_F77="$LD" cannam@85: cannam@85: lt_prog_compiler_wl_F77= cannam@85: lt_prog_compiler_pic_F77= cannam@85: lt_prog_compiler_static_F77= cannam@85: cannam@85: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@85: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: lt_prog_compiler_static_F77='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: lt_prog_compiler_pic_F77='-fno-common' cannam@85: ;; cannam@85: cannam@85: msdosdjgpp*) cannam@85: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@85: # on systems that don't support them. cannam@85: lt_prog_compiler_can_build_shared_F77=no cannam@85: enable_shared=no cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: lt_prog_compiler_pic_F77=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_F77='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_pic_F77='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: # PORTME Check for flag to pass linker flags through the system compiler. cannam@85: case $host_os in cannam@85: aix*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: else cannam@85: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_F77='+Z' cannam@85: ;; cannam@85: esac cannam@85: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@85: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: # PIC (with -KPIC) is the default. cannam@85: lt_prog_compiler_static_F77='-non_shared' cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: lt_prog_compiler_pic_F77='-KPIC' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: case $CC in cannam@85: icc* | ecc*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: lt_prog_compiler_pic_F77='-KPIC' cannam@85: lt_prog_compiler_static_F77='-static' cannam@85: ;; cannam@85: ccc*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: # All Alpha code is PIC. cannam@85: lt_prog_compiler_static_F77='-non_shared' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: # All OSF/1 code is PIC. cannam@85: lt_prog_compiler_static_F77='-non_shared' cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: lt_prog_compiler_pic_F77='-Kpic' cannam@85: lt_prog_compiler_static_F77='-dn' cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: lt_prog_compiler_pic_F77='-KPIC' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: lt_prog_compiler_wl_F77='-Qoption ld ' cannam@85: lt_prog_compiler_pic_F77='-PIC' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: lt_prog_compiler_wl_F77='-Wl,' cannam@85: lt_prog_compiler_pic_F77='-KPIC' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: lt_prog_compiler_pic_F77='-Kconform_pic' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: lt_prog_compiler_pic_F77='-pic' cannam@85: lt_prog_compiler_static_F77='-Bstatic' cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_can_build_shared_F77=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 cannam@85: cannam@85: # cannam@85: # Check to make sure the PIC flag actually works. cannam@85: # cannam@85: if test -n "$lt_prog_compiler_pic_F77"; then cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 cannam@85: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 cannam@85: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_prog_compiler_pic_works_F77=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="$lt_prog_compiler_pic_F77" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:13354: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:13358: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_prog_compiler_pic_works_F77=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 cannam@85: cannam@85: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then cannam@85: case $lt_prog_compiler_pic_F77 in cannam@85: "" | " "*) ;; cannam@85: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; cannam@85: esac cannam@85: else cannam@85: lt_prog_compiler_pic_F77= cannam@85: lt_prog_compiler_can_build_shared_F77=no cannam@85: fi cannam@85: cannam@85: fi cannam@85: case "$host_os" in cannam@85: # For platforms which do not support PIC, -DPIC is meaningless: cannam@85: *djgpp*) cannam@85: lt_prog_compiler_pic_F77= cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_c_o_F77=no cannam@85: $rm -r conftest 2>/dev/null cannam@85: mkdir conftest cannam@85: cd conftest cannam@85: mkdir out cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:13414: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>out/conftest.err) cannam@85: ac_status=$? cannam@85: cat out/conftest.err >&5 cannam@85: echo "$as_me:13418: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@85: then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s out/conftest.err; then cannam@85: lt_cv_prog_compiler_c_o_F77=yes cannam@85: fi cannam@85: fi cannam@85: chmod u+w . cannam@85: $rm conftest* cannam@85: # SGI C++ compiler will create directory out/ii_files/ for cannam@85: # template instantiation cannam@85: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@85: $rm out/* && rmdir out cannam@85: cd .. cannam@85: rmdir conftest cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 cannam@85: cannam@85: cannam@85: hard_links="nottested" cannam@85: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then cannam@85: # do not overwrite the value of need_locks provided by the user cannam@85: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@85: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@85: hard_links=yes cannam@85: $rm conftest* cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: touch conftest.a cannam@85: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@85: echo "${ECHO_T}$hard_links" >&6 cannam@85: if test "$hard_links" = no; then cannam@85: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@85: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@85: need_locks=warn cannam@85: fi cannam@85: else cannam@85: need_locks=no cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@85: cannam@85: runpath_var= cannam@85: allow_undefined_flag_F77= cannam@85: enable_shared_with_static_runtimes_F77=no cannam@85: archive_cmds_F77= cannam@85: archive_expsym_cmds_F77= cannam@85: old_archive_From_new_cmds_F77= cannam@85: old_archive_from_expsyms_cmds_F77= cannam@85: export_dynamic_flag_spec_F77= cannam@85: whole_archive_flag_spec_F77= cannam@85: thread_safe_flag_spec_F77= cannam@85: hardcode_libdir_flag_spec_F77= cannam@85: hardcode_libdir_flag_spec_ld_F77= cannam@85: hardcode_libdir_separator_F77= cannam@85: hardcode_direct_F77=no cannam@85: hardcode_minus_L_F77=no cannam@85: hardcode_shlibpath_var_F77=unsupported cannam@85: link_all_deplibs_F77=unknown cannam@85: hardcode_automatic_F77=no cannam@85: module_cmds_F77= cannam@85: module_expsym_cmds_F77= cannam@85: always_export_symbols_F77=no cannam@85: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: # include_expsyms should be a list of space-separated symbols to be *always* cannam@85: # included in the symbol list cannam@85: include_expsyms_F77= cannam@85: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@85: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@85: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@85: # as well as any symbol that contains `d'. cannam@85: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" cannam@85: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@85: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@85: # the symbol is explicitly referenced. Since portable code cannot cannam@85: # rely on this symbol name, it's probably fine to never include it in cannam@85: # preloaded symbol tables. cannam@85: extract_expsyms_cmds= cannam@85: cannam@85: case $host_os in cannam@85: cygwin* | mingw* | pw32*) cannam@85: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: if test "$GCC" != yes; then cannam@85: with_gnu_ld=no cannam@85: fi cannam@85: ;; cannam@85: openbsd*) cannam@85: with_gnu_ld=no cannam@85: ;; cannam@85: esac cannam@85: cannam@85: ld_shlibs_F77=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: wlarc='${wl}' cannam@85: cannam@85: # See if GNU ld supports shared libraries. cannam@85: case $host_os in cannam@85: aix3* | aix4* | aix5*) cannam@85: # On AIX/PPC, the GNU linker is very broken cannam@85: if test "$host_cpu" != ia64; then cannam@85: ld_shlibs_F77=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@85: *** to be unable to reliably create shared libraries on AIX. cannam@85: *** Therefore, libtool is disabling shared libraries support. If you cannam@85: *** really care for shared libraries, you may want to modify your PATH cannam@85: *** so that a non-GNU linker is found, and then restart. cannam@85: cannam@85: EOF cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_minus_L_F77=yes cannam@85: cannam@85: # Samuel A. Falvo II reports cannam@85: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@85: # to version 4, is to share data among multiple programs linked cannam@85: # with the same dynamic library. Since this doesn't match the cannam@85: # behavior of shared libraries on other platforms, we can't use cannam@85: # them. cannam@85: ld_shlibs_F77=no cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: allow_undefined_flag_F77=unsupported cannam@85: # Joseph Beckenbach says some releases of gcc cannam@85: # support --undefined. This deserves some investigation. FIXME cannam@85: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: else cannam@85: ld_shlibs_F77=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: allow_undefined_flag_F77=unsupported cannam@85: always_export_symbols_F77=no cannam@85: enable_shared_with_static_runtimes_F77=yes cannam@85: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@85: wlarc= cannam@85: else cannam@85: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: solaris* | sysv5*) cannam@85: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@85: ld_shlibs_F77=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@85: *** create shared libraries on Solaris systems. Therefore, libtool cannam@85: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@85: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@85: *** your PATH or compiler configuration so that the native linker is cannam@85: *** used, and then restart. cannam@85: cannam@85: EOF cannam@85: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs_F77=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: wlarc= cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then cannam@85: tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_cmds_F77="$tmp_archive_cmds" cannam@85: supports_anon_versioning=no cannam@85: case `$LD -v 2>/dev/null` in cannam@85: *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@85: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@85: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@85: *\ 2.11.*) ;; # other 2.11 versions cannam@85: *) supports_anon_versioning=yes ;; cannam@85: esac cannam@85: if test $supports_anon_versioning = yes; then cannam@85: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@85: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@85: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@85: $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@85: else cannam@85: archive_expsym_cmds_F77="$tmp_archive_cmds" cannam@85: fi cannam@85: else cannam@85: ld_shlibs_F77=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs_F77=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "$ld_shlibs_F77" = yes; then cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' cannam@85: export_dynamic_flag_spec_F77='${wl}--export-dynamic' cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@85: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: whole_archive_flag_spec_F77= cannam@85: fi cannam@85: fi cannam@85: else cannam@85: # PORTME fill in a description of your system's linker (not GNU ld) cannam@85: case $host_os in cannam@85: aix3*) cannam@85: allow_undefined_flag_F77=unsupported cannam@85: always_export_symbols_F77=yes cannam@85: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' cannam@85: # Note: this linker hardcodes the directories in LIBPATH if there cannam@85: # are no directories specified by -L. cannam@85: hardcode_minus_L_F77=yes cannam@85: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@85: # Neither direct hardcoding nor static linking is supported with a cannam@85: # broken collect2. cannam@85: hardcode_direct_F77=unsupported cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: else cannam@85: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: fi cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: fi cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: archive_cmds_F77='' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_libdir_separator_F77=':' cannam@85: link_all_deplibs_F77=yes cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: case $host_os in aix4.012|aix4.012.*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: hardcode_direct_F77=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: hardcode_direct_F77=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: hardcode_minus_L_F77=yes cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_libdir_separator_F77= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: always_export_symbols_F77=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: allow_undefined_flag_F77='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: program main cannam@85: cannam@85: end cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' cannam@85: allow_undefined_flag_F77="-z nodefs" cannam@85: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: program main cannam@85: cannam@85: end cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: no_undefined_flag_F77=' ${wl}-bernotok' cannam@85: allow_undefined_flag_F77=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: always_export_symbols_F77=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: whole_archive_flag_spec_F77=' ' cannam@85: archive_cmds_need_lc_F77=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_minus_L_F77=yes cannam@85: # see comment about different semantics on the GNU ld section cannam@85: ld_shlibs_F77=no cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: export_dynamic_flag_spec_F77=-rdynamic cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@85: # no search path for DLLs. cannam@85: hardcode_libdir_flag_spec_F77=' ' cannam@85: allow_undefined_flag_F77=unsupported cannam@85: # Tell ltmain to make .lib files, not .a files. cannam@85: libext=lib cannam@85: # Tell ltmain to make .dll files, not .so files. cannam@85: shrext=".dll" cannam@85: # FIXME: Setting linknames here is a bad hack. cannam@85: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@85: # The linker will automatically build a .lib file if we build a DLL. cannam@85: old_archive_From_new_cmds_F77='true' cannam@85: # FIXME: Should let the user specify the lib program. cannam@85: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@85: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@85: enable_shared_with_static_runtimes_F77=yes cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes ; then cannam@85: archive_cmds_need_lc_F77=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[012]) cannam@85: allow_undefined_flag_F77='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: allow_undefined_flag_F77='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[012]) cannam@85: allow_undefined_flag_F77='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: allow_undefined_flag_F77='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: hardcode_direct_F77=no cannam@85: hardcode_automatic_F77=yes cannam@85: hardcode_shlibpath_var_F77=unsupported cannam@85: whole_archive_flag_spec_F77='-all_load $convenience' cannam@85: link_all_deplibs_F77=yes cannam@85: else cannam@85: ld_shlibs_F77=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: ld_shlibs_F77=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@85: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@85: # does not break anything, and helps significantly (at the cost of a little cannam@85: # extra space). cannam@85: freebsd2.2*) cannam@85: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@85: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@85: freebsd2*) cannam@85: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_minus_L_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: hpux9*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: else cannam@85: archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: hardcode_direct_F77=yes cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_F77=yes cannam@85: export_dynamic_flag_spec_F77='${wl}-E' cannam@85: ;; cannam@85: cannam@85: hpux10* | hpux11*) cannam@85: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_flag_spec_ld_F77='+b $libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: hardcode_direct_F77=no cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: ia64*) cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_direct_F77=no cannam@85: hardcode_shlibpath_var_F77=no cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_F77=yes cannam@85: ;; cannam@85: *) cannam@85: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: hardcode_direct_F77=yes cannam@85: export_dynamic_flag_spec_F77='${wl}-E' cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_F77=yes cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: else cannam@85: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: link_all_deplibs_F77=yes cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@85: else cannam@85: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' cannam@85: export_dynamic_flag_spec_F77='${wl}-E' cannam@85: else cannam@85: case $host_os in cannam@85: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@85: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_minus_L_F77=yes cannam@85: allow_undefined_flag_F77=unsupported cannam@85: archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' cannam@85: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@85: ;; cannam@85: cannam@85: osf3*) cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: else cannam@85: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@85: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_F77=: cannam@85: ;; cannam@85: cannam@85: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@85: else cannam@85: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@85: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ cannam@85: $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' cannam@85: cannam@85: # Both c and cxx compiler support -rpath directly cannam@85: hardcode_libdir_flag_spec_F77='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_separator_F77=: cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: export_dynamic_flag_spec_F77='${wl}-Bexport' cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: no_undefined_flag_F77=' -z text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@85: else cannam@85: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: case $host_os in cannam@85: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@85: *) # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; cannam@85: esac cannam@85: link_all_deplibs_F77=yes cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: if test "x$host_vendor" = xsequent; then cannam@85: # Use $CC to link under sequent, because it throws in some extra .o cannam@85: # files that make .init and .fini sections work. cannam@85: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_minus_L_F77=yes cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: sysv4) cannam@85: case $host_vendor in cannam@85: sni) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_F77=yes # is this really true??? cannam@85: ;; cannam@85: siemens) cannam@85: ## LD is ld it makes a PLAMLIB cannam@85: ## CC just makes a GrossModule. cannam@85: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: reload_cmds_F77='$CC -r -o $output$reload_objs' cannam@85: hardcode_direct_F77=no cannam@85: ;; cannam@85: motorola) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie cannam@85: ;; cannam@85: esac cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: sysv4.3*) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: export_dynamic_flag_spec_F77='-Bexport' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ld_shlibs_F77=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sysv4.2uw2*) cannam@85: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_F77=yes cannam@85: hardcode_minus_L_F77=no cannam@85: hardcode_shlibpath_var_F77=no cannam@85: hardcode_runpath_var=yes cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@85: no_undefined_flag_F77='${wl}-z ${wl}text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: fi cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: sysv5*) cannam@85: no_undefined_flag_F77=' -z text' cannam@85: # $CC -shared without GNU ld will not create a library from C++ cannam@85: # object files and a static libstdc++, better avoid it by now cannam@85: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: hardcode_libdir_flag_spec_F77= cannam@85: hardcode_shlibpath_var_F77=no cannam@85: runpath_var='LD_RUN_PATH' cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@85: hardcode_shlibpath_var_F77=no cannam@85: ;; cannam@85: cannam@85: *) cannam@85: ld_shlibs_F77=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 cannam@85: echo "${ECHO_T}$ld_shlibs_F77" >&6 cannam@85: test "$ld_shlibs_F77" = no && can_build_shared=no cannam@85: cannam@85: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@85: if test "$GCC" = yes; then cannam@85: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@85: fi cannam@85: cannam@85: # cannam@85: # Do we need to explicitly link libc? cannam@85: # cannam@85: case "x$archive_cmds_need_lc_F77" in cannam@85: x|xyes) cannam@85: # Assume -lc should be added cannam@85: archive_cmds_need_lc_F77=yes cannam@85: cannam@85: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@85: case $archive_cmds_F77 in cannam@85: *'~'*) cannam@85: # FIXME: we may have to deal with multi-command sequences. cannam@85: ;; cannam@85: '$CC '*) cannam@85: # Test whether the compiler implicitly links with -lc since on some cannam@85: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@85: # to ld, don't add -lc before -lgcc. cannam@85: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@85: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@85: $rm conftest* cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } 2>conftest.err; then cannam@85: soname=conftest cannam@85: lib=conftest cannam@85: libobjs=conftest.$ac_objext cannam@85: deplibs= cannam@85: wl=$lt_prog_compiler_wl_F77 cannam@85: compiler_flags=-v cannam@85: linker_flags=-v cannam@85: verstring= cannam@85: output_objdir=. cannam@85: libname=conftest cannam@85: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 cannam@85: allow_undefined_flag_F77= cannam@85: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@85: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: then cannam@85: archive_cmds_need_lc_F77=no cannam@85: else cannam@85: archive_cmds_need_lc_F77=yes cannam@85: fi cannam@85: allow_undefined_flag_F77=$lt_save_allow_undefined_flag cannam@85: else cannam@85: cat conftest.err 1>&5 cannam@85: fi cannam@85: $rm conftest* cannam@85: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 cannam@85: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@85: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@85: library_names_spec= cannam@85: libname_spec='lib$name' cannam@85: soname_spec= cannam@85: shrext=".so" cannam@85: postinstall_cmds= cannam@85: postuninstall_cmds= cannam@85: finish_cmds= cannam@85: finish_eval= cannam@85: shlibpath_var= cannam@85: shlibpath_overrides_runpath=unknown cannam@85: version_type=none cannam@85: dynamic_linker="$host_os ld.so" cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@85: # if the path contains ";" then we assume it to be the separator cannam@85: # otherwise default to the standard path separator (i.e. ":") - it is cannam@85: # assumed that no part of a normal pathname contains ";" but that should cannam@85: # okay in the real world where ";" in dirpaths is itself problematic. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: else cannam@85: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@85: fi cannam@85: need_lib_prefix=unknown cannam@85: hardcode_into_libs=no cannam@85: cannam@85: # when you set need_version to no, make sure it does not cause -set_version cannam@85: # flags to be left without arguments cannam@85: need_version=unknown cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@85: shlibpath_var=LIBPATH cannam@85: cannam@85: # AIX 3 has no versioning support, so we append a major version to the name. cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: hardcode_into_libs=yes cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 supports IA64 cannam@85: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: else cannam@85: # With GCC up to 2.95.x, collect2 would create an import file cannam@85: # for dependence libraries. The import file would start with cannam@85: # the line `#! .'. This would cause the generated library to cannam@85: # depend on `.', always an invalid library. This was fixed in cannam@85: # development snapshots of GCC prior to 3.0. cannam@85: case $host_os in cannam@85: aix4 | aix4.[01] | aix4.[01].*) cannam@85: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@85: echo ' yes ' cannam@85: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@85: : cannam@85: else cannam@85: can_build_shared=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@85: # soname into executable. Probably we can add versioning support to cannam@85: # collect2, so additional links can be useful in future. cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@85: # instead of lib.a to let people know that these are not cannam@85: # typical AIX shared libraries. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: else cannam@85: # We preserve .a as extension for shared libraries through AIX4.2 cannam@85: # and later when we are not doing run time linking. cannam@85: library_names_spec='${libname}${release}.a $libname.a' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: fi cannam@85: shlibpath_var=LIBPATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: library_names_spec='$libname.ixlibrary $libname.a' cannam@85: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@85: 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' cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: library_names_spec='${libname}${shared_ext}' cannam@85: dynamic_linker="$host_os ld.so" cannam@85: shlibpath_var=LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: version_type=linux cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@85: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@85: # the default ld.so.conf also contains /usr/contrib/lib and cannam@85: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@85: # libtool to hard-code these into programs cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: version_type=windows cannam@85: shrext=".dll" cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: cannam@85: case $GCC,$host_os in cannam@85: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@85: library_names_spec='$libname.dll.a' cannam@85: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@85: postinstall_cmds='base_file=`basename \${file}`~ cannam@85: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@85: dldir=$destdir/`dirname \$dlpath`~ cannam@85: test -d \$dldir || mkdir -p \$dldir~ cannam@85: $install_prog $dir/$dlname \$dldir/$dlname' cannam@85: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@85: dlpath=$dir/\$dldll~ cannam@85: $rm \$dlpath' cannam@85: shlibpath_overrides_runpath=yes cannam@85: cannam@85: case $host_os in cannam@85: cygwin*) cannam@85: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@85: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@85: ;; cannam@85: mingw*) cannam@85: # MinGW DLLs use traditional 'lib' prefix cannam@85: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@85: # It is most probably a Windows format PATH printed by cannam@85: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@85: # path with ; separators, and with drive letters. We can handle the cannam@85: # drive letters (cygwin fileutils understands them), so leave them, cannam@85: # especially as we might pass files found there to a mingw objdump, cannam@85: # which wouldn't understand a cygwinified path. Ahh. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@85: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@85: ;; cannam@85: esac cannam@85: dynamic_linker='Win32 ld.exe' cannam@85: # FIXME: first we should search . and the directory the executable is in cannam@85: shlibpath_var=PATH cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: dynamic_linker="$host_os dyld" cannam@85: version_type=darwin cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@85: soname_spec='${libname}${release}${major}$shared_ext' cannam@85: shlibpath_overrides_runpath=yes cannam@85: shlibpath_var=DYLD_LIBRARY_PATH cannam@85: shrext='$(test .$module = .yes && echo .so || echo .dylib)' cannam@85: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` cannam@85: else cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: kfreebsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: freebsd*) cannam@85: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@85: version_type=freebsd-$objformat cannam@85: case $version_type in cannam@85: freebsd-elf*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: freebsd-*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@85: need_version=yes cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_os in cannam@85: freebsd2*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: freebsd3.01* | freebsdelf3.01*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: *) # from 3.2 on cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@85: # link against other versions. cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: shrext='.so' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.so" cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: if test "X$HPUX_IA64_MODE" = X32; then cannam@85: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@85: else cannam@85: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: hppa*64*) cannam@85: shrext='.sl' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: *) cannam@85: shrext='.sl' cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=SHLIB_PATH cannam@85: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: esac cannam@85: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@85: postinstall_cmds='chmod 555 $lib' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $host_os in cannam@85: nonstopux*) version_type=nonstopux ;; cannam@85: *) cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: version_type=linux cannam@85: else cannam@85: version_type=irix cannam@85: fi ;; cannam@85: esac cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: case $host_os in cannam@85: irix5* | nonstopux*) cannam@85: libsuff= shlibsuff= cannam@85: ;; cannam@85: *) cannam@85: case $LD in # libtool.m4 will add one of these switches to LD cannam@85: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@85: libsuff= shlibsuff= libmagic=32-bit;; cannam@85: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@85: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@85: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@85: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@85: *) libsuff= shlibsuff= libmagic=never-match;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@85: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: # No shared lib support for Linux oldld, aout, or coff. cannam@85: linux*oldld* | linux*aout* | linux*coff*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: # This implies no fast_install, which is unacceptable. cannam@85: # Some rework will be needed to allow for fast_install cannam@85: # before this can be enabled. cannam@85: hardcode_into_libs=yes cannam@85: cannam@85: # Append ld.so.conf contents to the search path cannam@85: if test -f /etc/ld.so.conf; then cannam@85: ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" cannam@85: fi cannam@85: cannam@85: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@85: # powerpc, because MkLinux only supported shared libraries with the cannam@85: # GNU dynamic linker. Since this was broken with cross compilers, cannam@85: # most powerpc-linux boxes support dynamic linking these days and cannam@85: # people can always --disable-shared, the test was removed, and we cannam@85: # assume the GNU/Linux dynamic linker is in use. cannam@85: dynamic_linker='GNU/Linux ld.so' cannam@85: ;; cannam@85: cannam@85: knetbsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: netbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: dynamic_linker='NetBSD (a.out) ld.so' cannam@85: else cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: dynamic_linker='NetBSD ld.elf_so' cannam@85: fi cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=yes cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: case $host_os in cannam@85: openbsd2.[89] | openbsd2.[89].*) cannam@85: shlibpath_overrides_runpath=no cannam@85: ;; cannam@85: *) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: shlibpath_overrides_runpath=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: libname_spec='$name' cannam@85: shrext=".dll" cannam@85: need_lib_prefix=no cannam@85: library_names_spec='$libname${shared_ext} $libname.a' cannam@85: dynamic_linker='OS/2 ld.exe' cannam@85: shlibpath_var=LIBPATH cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: version_type=osf cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@85: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: version_type=osf cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: # ldd complains unless libraries are executable cannam@85: postinstall_cmds='chmod +x $lib' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: version_type=sunos cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: need_lib_prefix=no cannam@85: fi cannam@85: need_version=yes cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_vendor in cannam@85: sni) cannam@85: shlibpath_overrides_runpath=no cannam@85: need_lib_prefix=no cannam@85: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: siemens) cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: motorola) cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: version_type=linux cannam@85: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@85: soname_spec='$libname${shared_ext}.$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: *) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@85: echo "${ECHO_T}$dynamic_linker" >&6 cannam@85: test "$dynamic_linker" = no && can_build_shared=no cannam@85: cannam@85: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@85: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@85: hardcode_action_F77= cannam@85: if test -n "$hardcode_libdir_flag_spec_F77" || \ cannam@85: test -n "$runpath_var F77" || \ cannam@85: test "X$hardcode_automatic_F77"="Xyes" ; then cannam@85: cannam@85: # We can hardcode non-existant directories. cannam@85: if test "$hardcode_direct_F77" != no && cannam@85: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@85: # have to relink, otherwise we might link with an installed library cannam@85: # when we should be linking with a yet-to-be-installed one cannam@85: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && cannam@85: test "$hardcode_minus_L_F77" != no; then cannam@85: # Linking always hardcodes the temporary library directory. cannam@85: hardcode_action_F77=relink cannam@85: else cannam@85: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@85: hardcode_action_F77=immediate cannam@85: fi cannam@85: else cannam@85: # We cannot hardcode anything, or else we can only hardcode existing cannam@85: # directories. cannam@85: hardcode_action_F77=unsupported cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 cannam@85: echo "${ECHO_T}$hardcode_action_F77" >&6 cannam@85: cannam@85: if test "$hardcode_action_F77" = relink; then cannam@85: # Fast installation is not supported cannam@85: enable_fast_install=no cannam@85: elif test "$shlibpath_overrides_runpath" = yes || cannam@85: test "$enable_shared" = no; then cannam@85: # Fast installation is not necessary cannam@85: enable_fast_install=needless cannam@85: fi cannam@85: cannam@85: striplib= cannam@85: old_striplib= cannam@85: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@85: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@85: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@85: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@85: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: # FIXME - insert some real tests, host_os isn't really good enough cannam@85: case $host_os in cannam@85: darwin*) cannam@85: if test -n "$STRIP" ; then cannam@85: striplib="$STRIP -x" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: # The else clause should only fire when bootstrapping the cannam@85: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@85: # with your package, and you will get complaints that there are cannam@85: # no rules to generate ltmain.sh. cannam@85: if test -f "$ltmain"; then cannam@85: # See if we are running on zsh, and set the options which allow our commands through cannam@85: # without removal of \ escapes. cannam@85: if test -n "${ZSH_VERSION+set}" ; then cannam@85: setopt NO_GLOB_SUBST cannam@85: fi cannam@85: # Now quote all the things that may contain metacharacters while being cannam@85: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@85: # variables and quote the copies for generation of the libtool script. cannam@85: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@85: SED SHELL STRIP \ cannam@85: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@85: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@85: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@85: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@85: lt_cv_sys_global_symbol_to_c_name_address \ cannam@85: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@85: old_postinstall_cmds old_postuninstall_cmds \ cannam@85: compiler_F77 \ cannam@85: CC_F77 \ cannam@85: LD_F77 \ cannam@85: lt_prog_compiler_wl_F77 \ cannam@85: lt_prog_compiler_pic_F77 \ cannam@85: lt_prog_compiler_static_F77 \ cannam@85: lt_prog_compiler_no_builtin_flag_F77 \ cannam@85: export_dynamic_flag_spec_F77 \ cannam@85: thread_safe_flag_spec_F77 \ cannam@85: whole_archive_flag_spec_F77 \ cannam@85: enable_shared_with_static_runtimes_F77 \ cannam@85: old_archive_cmds_F77 \ cannam@85: old_archive_from_new_cmds_F77 \ cannam@85: predep_objects_F77 \ cannam@85: postdep_objects_F77 \ cannam@85: predeps_F77 \ cannam@85: postdeps_F77 \ cannam@85: compiler_lib_search_path_F77 \ cannam@85: archive_cmds_F77 \ cannam@85: archive_expsym_cmds_F77 \ cannam@85: postinstall_cmds_F77 \ cannam@85: postuninstall_cmds_F77 \ cannam@85: old_archive_from_expsyms_cmds_F77 \ cannam@85: allow_undefined_flag_F77 \ cannam@85: no_undefined_flag_F77 \ cannam@85: export_symbols_cmds_F77 \ cannam@85: hardcode_libdir_flag_spec_F77 \ cannam@85: hardcode_libdir_flag_spec_ld_F77 \ cannam@85: hardcode_libdir_separator_F77 \ cannam@85: hardcode_automatic_F77 \ cannam@85: module_cmds_F77 \ cannam@85: module_expsym_cmds_F77 \ cannam@85: lt_cv_prog_compiler_c_o_F77 \ cannam@85: exclude_expsyms_F77 \ cannam@85: include_expsyms_F77; do cannam@85: cannam@85: case $var in cannam@85: old_archive_cmds_F77 | \ cannam@85: old_archive_from_new_cmds_F77 | \ cannam@85: archive_cmds_F77 | \ cannam@85: archive_expsym_cmds_F77 | \ cannam@85: module_cmds_F77 | \ cannam@85: module_expsym_cmds_F77 | \ cannam@85: old_archive_from_expsyms_cmds_F77 | \ cannam@85: export_symbols_cmds_F77 | \ cannam@85: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@85: postinstall_cmds | postuninstall_cmds | \ cannam@85: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@85: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@85: # Double-quote double-evaled strings. cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@85: ;; cannam@85: *) cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: case $lt_echo in cannam@85: *'\$0 --fallback-echo"') cannam@85: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cfgfile="$ofile" cannam@85: cannam@85: cat <<__EOF__ >> "$cfgfile" cannam@85: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$archive_cmds_need_lc_F77 cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_compiler_F77 cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$GCC_F77 cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_LD_F77 cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_lt_prog_compiler_wl_F77 cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_lt_prog_compiler_pic_F77 cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_lt_prog_compiler_static_F77 cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_old_archive_cmds_F77 cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_archive_cmds_F77 cannam@85: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_module_cmds_F77 cannam@85: module_expsym_cmds=$lt_module_expsym_cmds_F77 cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_predep_objects_F77 cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_postdep_objects_F77 cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_predeps_F77 cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_postdeps_F77 cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_allow_undefined_flag_F77 cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_no_undefined_flag_F77 cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$hardcode_action_F77 cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$hardcode_direct_F77 cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$hardcode_minus_L_F77 cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$hardcode_automatic_F77 cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$link_all_deplibs_F77 cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$fix_srcfile_path_F77" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$always_export_symbols_F77 cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_export_symbols_cmds_F77 cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_exclude_expsyms_F77 cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_include_expsyms_F77 cannam@85: cannam@85: # ### END LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: CC="$lt_save_CC" cannam@85: cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: GCJ) cannam@85: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then cannam@85: cannam@85: cannam@85: cannam@85: # Source file extension for Java test sources. cannam@85: ac_ext=java cannam@85: cannam@85: # Object file extension for compiled Java test sources. cannam@85: objext=o cannam@85: objext_GCJ=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code="class foo {}\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' cannam@85: cannam@85: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: lt_save_CC="$CC" cannam@85: CC=${GCJ-"gcj"} cannam@85: compiler=$CC cannam@85: compiler_GCJ=$CC cannam@85: cannam@85: # GCJ did not exist at the time GCC didn't implicitly link libc in. cannam@85: archive_cmds_need_lc_GCJ=no cannam@85: cannam@85: cannam@85: lt_prog_compiler_no_builtin_flag_GCJ= cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_rtti_exceptions=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="-fno-rtti -fno-exceptions" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:15446: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:15450: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_cv_prog_compiler_rtti_exceptions=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 cannam@85: cannam@85: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then cannam@85: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" cannam@85: else cannam@85: : cannam@85: fi cannam@85: cannam@85: fi cannam@85: cannam@85: lt_prog_compiler_wl_GCJ= cannam@85: lt_prog_compiler_pic_GCJ= cannam@85: lt_prog_compiler_static_GCJ= cannam@85: cannam@85: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@85: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: lt_prog_compiler_static_GCJ='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: lt_prog_compiler_pic_GCJ='-fno-common' cannam@85: ;; cannam@85: cannam@85: msdosdjgpp*) cannam@85: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@85: # on systems that don't support them. cannam@85: lt_prog_compiler_can_build_shared_GCJ=no cannam@85: enable_shared=no cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: lt_prog_compiler_pic_GCJ=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_GCJ='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_pic_GCJ='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: # PORTME Check for flag to pass linker flags through the system compiler. cannam@85: case $host_os in cannam@85: aix*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: else cannam@85: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_GCJ='+Z' cannam@85: ;; cannam@85: esac cannam@85: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@85: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: # PIC (with -KPIC) is the default. cannam@85: lt_prog_compiler_static_GCJ='-non_shared' cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: lt_prog_compiler_pic_GCJ='-KPIC' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: case $CC in cannam@85: icc* | ecc*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: lt_prog_compiler_pic_GCJ='-KPIC' cannam@85: lt_prog_compiler_static_GCJ='-static' cannam@85: ;; cannam@85: ccc*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: # All Alpha code is PIC. cannam@85: lt_prog_compiler_static_GCJ='-non_shared' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: # All OSF/1 code is PIC. cannam@85: lt_prog_compiler_static_GCJ='-non_shared' cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: lt_prog_compiler_pic_GCJ='-Kpic' cannam@85: lt_prog_compiler_static_GCJ='-dn' cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: lt_prog_compiler_pic_GCJ='-KPIC' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: lt_prog_compiler_wl_GCJ='-Qoption ld ' cannam@85: lt_prog_compiler_pic_GCJ='-PIC' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: lt_prog_compiler_wl_GCJ='-Wl,' cannam@85: lt_prog_compiler_pic_GCJ='-KPIC' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: lt_prog_compiler_pic_GCJ='-Kconform_pic' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: lt_prog_compiler_pic_GCJ='-pic' cannam@85: lt_prog_compiler_static_GCJ='-Bstatic' cannam@85: ;; cannam@85: cannam@85: *) cannam@85: lt_prog_compiler_can_build_shared_GCJ=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 cannam@85: cannam@85: # cannam@85: # Check to make sure the PIC flag actually works. cannam@85: # cannam@85: if test -n "$lt_prog_compiler_pic_GCJ"; then cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 cannam@85: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 cannam@85: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_prog_compiler_pic_works_GCJ=no cannam@85: ac_outfile=conftest.$ac_objext cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:15679: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:15683: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: lt_prog_compiler_pic_works_GCJ=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 cannam@85: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 cannam@85: cannam@85: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then cannam@85: case $lt_prog_compiler_pic_GCJ in cannam@85: "" | " "*) ;; cannam@85: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; cannam@85: esac cannam@85: else cannam@85: lt_prog_compiler_pic_GCJ= cannam@85: lt_prog_compiler_can_build_shared_GCJ=no cannam@85: fi cannam@85: cannam@85: fi cannam@85: case "$host_os" in cannam@85: # For platforms which do not support PIC, -DPIC is meaningless: cannam@85: *djgpp*) cannam@85: lt_prog_compiler_pic_GCJ= cannam@85: ;; cannam@85: *) cannam@85: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@85: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@85: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: lt_cv_prog_compiler_c_o_GCJ=no cannam@85: $rm -r conftest 2>/dev/null cannam@85: mkdir conftest cannam@85: cd conftest cannam@85: mkdir out cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:15739: $lt_compile\"" >&5) cannam@85: (eval "$lt_compile" 2>out/conftest.err) cannam@85: ac_status=$? cannam@85: cat out/conftest.err >&5 cannam@85: echo "$as_me:15743: \$? = $ac_status" >&5 cannam@85: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@85: then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s out/conftest.err; then cannam@85: lt_cv_prog_compiler_c_o_GCJ=yes cannam@85: fi cannam@85: fi cannam@85: chmod u+w . cannam@85: $rm conftest* cannam@85: # SGI C++ compiler will create directory out/ii_files/ for cannam@85: # template instantiation cannam@85: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@85: $rm out/* && rmdir out cannam@85: cd .. cannam@85: rmdir conftest cannam@85: $rm conftest* cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 cannam@85: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 cannam@85: cannam@85: cannam@85: hard_links="nottested" cannam@85: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then cannam@85: # do not overwrite the value of need_locks provided by the user cannam@85: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@85: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@85: hard_links=yes cannam@85: $rm conftest* cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: touch conftest.a cannam@85: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@85: echo "${ECHO_T}$hard_links" >&6 cannam@85: if test "$hard_links" = no; then cannam@85: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@85: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@85: need_locks=warn cannam@85: fi cannam@85: else cannam@85: need_locks=no cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@85: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@85: cannam@85: runpath_var= cannam@85: allow_undefined_flag_GCJ= cannam@85: enable_shared_with_static_runtimes_GCJ=no cannam@85: archive_cmds_GCJ= cannam@85: archive_expsym_cmds_GCJ= cannam@85: old_archive_From_new_cmds_GCJ= cannam@85: old_archive_from_expsyms_cmds_GCJ= cannam@85: export_dynamic_flag_spec_GCJ= cannam@85: whole_archive_flag_spec_GCJ= cannam@85: thread_safe_flag_spec_GCJ= cannam@85: hardcode_libdir_flag_spec_GCJ= cannam@85: hardcode_libdir_flag_spec_ld_GCJ= cannam@85: hardcode_libdir_separator_GCJ= cannam@85: hardcode_direct_GCJ=no cannam@85: hardcode_minus_L_GCJ=no cannam@85: hardcode_shlibpath_var_GCJ=unsupported cannam@85: link_all_deplibs_GCJ=unknown cannam@85: hardcode_automatic_GCJ=no cannam@85: module_cmds_GCJ= cannam@85: module_expsym_cmds_GCJ= cannam@85: always_export_symbols_GCJ=no cannam@85: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: # include_expsyms should be a list of space-separated symbols to be *always* cannam@85: # included in the symbol list cannam@85: include_expsyms_GCJ= cannam@85: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@85: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@85: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@85: # as well as any symbol that contains `d'. cannam@85: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" cannam@85: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@85: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@85: # the symbol is explicitly referenced. Since portable code cannot cannam@85: # rely on this symbol name, it's probably fine to never include it in cannam@85: # preloaded symbol tables. cannam@85: extract_expsyms_cmds= cannam@85: cannam@85: case $host_os in cannam@85: cygwin* | mingw* | pw32*) cannam@85: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: if test "$GCC" != yes; then cannam@85: with_gnu_ld=no cannam@85: fi cannam@85: ;; cannam@85: openbsd*) cannam@85: with_gnu_ld=no cannam@85: ;; cannam@85: esac cannam@85: cannam@85: ld_shlibs_GCJ=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: wlarc='${wl}' cannam@85: cannam@85: # See if GNU ld supports shared libraries. cannam@85: case $host_os in cannam@85: aix3* | aix4* | aix5*) cannam@85: # On AIX/PPC, the GNU linker is very broken cannam@85: if test "$host_cpu" != ia64; then cannam@85: ld_shlibs_GCJ=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@85: *** to be unable to reliably create shared libraries on AIX. cannam@85: *** Therefore, libtool is disabling shared libraries support. If you cannam@85: *** really care for shared libraries, you may want to modify your PATH cannam@85: *** so that a non-GNU linker is found, and then restart. cannam@85: cannam@85: EOF cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_minus_L_GCJ=yes cannam@85: cannam@85: # Samuel A. Falvo II reports cannam@85: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@85: # to version 4, is to share data among multiple programs linked cannam@85: # with the same dynamic library. Since this doesn't match the cannam@85: # behavior of shared libraries on other platforms, we can't use cannam@85: # them. cannam@85: ld_shlibs_GCJ=no cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: allow_undefined_flag_GCJ=unsupported cannam@85: # Joseph Beckenbach says some releases of gcc cannam@85: # support --undefined. This deserves some investigation. FIXME cannam@85: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: else cannam@85: ld_shlibs_GCJ=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: allow_undefined_flag_GCJ=unsupported cannam@85: always_export_symbols_GCJ=no cannam@85: enable_shared_with_static_runtimes_GCJ=yes cannam@85: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@85: wlarc= cannam@85: else cannam@85: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: solaris* | sysv5*) cannam@85: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@85: ld_shlibs_GCJ=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@85: *** create shared libraries on Solaris systems. Therefore, libtool cannam@85: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@85: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@85: *** your PATH or compiler configuration so that the native linker is cannam@85: *** used, and then restart. cannam@85: cannam@85: EOF cannam@85: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs_GCJ=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: wlarc= cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then cannam@85: tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_cmds_GCJ="$tmp_archive_cmds" cannam@85: supports_anon_versioning=no cannam@85: case `$LD -v 2>/dev/null` in cannam@85: *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@85: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@85: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@85: *\ 2.11.*) ;; # other 2.11 versions cannam@85: *) supports_anon_versioning=yes ;; cannam@85: esac cannam@85: if test $supports_anon_versioning = yes; then cannam@85: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@85: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@85: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@85: $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@85: else cannam@85: archive_expsym_cmds_GCJ="$tmp_archive_cmds" cannam@85: fi cannam@85: else cannam@85: ld_shlibs_GCJ=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@85: else cannam@85: ld_shlibs_GCJ=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "$ld_shlibs_GCJ" = yes; then cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' cannam@85: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@85: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: whole_archive_flag_spec_GCJ= cannam@85: fi cannam@85: fi cannam@85: else cannam@85: # PORTME fill in a description of your system's linker (not GNU ld) cannam@85: case $host_os in cannam@85: aix3*) cannam@85: allow_undefined_flag_GCJ=unsupported cannam@85: always_export_symbols_GCJ=yes cannam@85: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' cannam@85: # Note: this linker hardcodes the directories in LIBPATH if there cannam@85: # are no directories specified by -L. cannam@85: hardcode_minus_L_GCJ=yes cannam@85: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@85: # Neither direct hardcoding nor static linking is supported with a cannam@85: # broken collect2. cannam@85: hardcode_direct_GCJ=unsupported cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: else cannam@85: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' cannam@85: fi cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: fi cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: archive_cmds_GCJ='' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_libdir_separator_GCJ=':' cannam@85: link_all_deplibs_GCJ=yes cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: case $host_os in aix4.012|aix4.012.*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: hardcode_direct_GCJ=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: hardcode_direct_GCJ=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: hardcode_minus_L_GCJ=yes cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_libdir_separator_GCJ= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: always_export_symbols_GCJ=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: allow_undefined_flag_GCJ='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' cannam@85: allow_undefined_flag_GCJ="-z nodefs" cannam@85: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'`; fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: no_undefined_flag_GCJ=' ${wl}-bernotok' cannam@85: allow_undefined_flag_GCJ=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: always_export_symbols_GCJ=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: whole_archive_flag_spec_GCJ=' ' cannam@85: archive_cmds_need_lc_GCJ=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_minus_L_GCJ=yes cannam@85: # see comment about different semantics on the GNU ld section cannam@85: ld_shlibs_GCJ=no cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: export_dynamic_flag_spec_GCJ=-rdynamic cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@85: # no search path for DLLs. cannam@85: hardcode_libdir_flag_spec_GCJ=' ' cannam@85: allow_undefined_flag_GCJ=unsupported cannam@85: # Tell ltmain to make .lib files, not .a files. cannam@85: libext=lib cannam@85: # Tell ltmain to make .dll files, not .so files. cannam@85: shrext=".dll" cannam@85: # FIXME: Setting linknames here is a bad hack. cannam@85: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@85: # The linker will automatically build a .lib file if we build a DLL. cannam@85: old_archive_From_new_cmds_GCJ='true' cannam@85: # FIXME: Should let the user specify the lib program. cannam@85: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@85: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@85: enable_shared_with_static_runtimes_GCJ=yes cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes ; then cannam@85: archive_cmds_need_lc_GCJ=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[012]) cannam@85: allow_undefined_flag_GCJ='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[012]) cannam@85: allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: allow_undefined_flag_GCJ='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: hardcode_direct_GCJ=no cannam@85: hardcode_automatic_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=unsupported cannam@85: whole_archive_flag_spec_GCJ='-all_load $convenience' cannam@85: link_all_deplibs_GCJ=yes cannam@85: else cannam@85: ld_shlibs_GCJ=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: ld_shlibs_GCJ=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@85: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@85: # does not break anything, and helps significantly (at the cost of a little cannam@85: # extra space). cannam@85: freebsd2.2*) cannam@85: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@85: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@85: freebsd2*) cannam@85: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_minus_L_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: hpux9*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: else cannam@85: archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: hardcode_direct_GCJ=yes cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_GCJ=yes cannam@85: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@85: ;; cannam@85: cannam@85: hpux10* | hpux11*) cannam@85: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: hardcode_direct_GCJ=no cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: ia64*) cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_direct_GCJ=no cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_GCJ=yes cannam@85: ;; cannam@85: *) cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: hardcode_direct_GCJ=yes cannam@85: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: hardcode_minus_L_GCJ=yes cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: else cannam@85: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: link_all_deplibs_GCJ=yes cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@85: else cannam@85: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' cannam@85: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@85: else cannam@85: case $host_os in cannam@85: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@85: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@85: ;; cannam@85: *) cannam@85: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_minus_L_GCJ=yes cannam@85: allow_undefined_flag_GCJ=unsupported cannam@85: archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' cannam@85: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@85: ;; cannam@85: cannam@85: osf3*) cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: else cannam@85: allow_undefined_flag_GCJ=' -expect_unresolved \*' cannam@85: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: ;; cannam@85: cannam@85: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@85: if test "$GCC" = yes; then cannam@85: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' cannam@85: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@85: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@85: else cannam@85: allow_undefined_flag_GCJ=' -expect_unresolved \*' cannam@85: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@85: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ cannam@85: $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' cannam@85: cannam@85: # Both c and cxx compiler support -rpath directly cannam@85: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' cannam@85: fi cannam@85: hardcode_libdir_separator_GCJ=: cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: export_dynamic_flag_spec_GCJ='${wl}-Bexport' cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: no_undefined_flag_GCJ=' -z text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@85: else cannam@85: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: case $host_os in cannam@85: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@85: *) # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; cannam@85: esac cannam@85: link_all_deplibs_GCJ=yes cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: if test "x$host_vendor" = xsequent; then cannam@85: # Use $CC to link under sequent, because it throws in some extra .o cannam@85: # files that make .init and .fini sections work. cannam@85: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@85: fi cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_minus_L_GCJ=yes cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: sysv4) cannam@85: case $host_vendor in cannam@85: sni) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_GCJ=yes # is this really true??? cannam@85: ;; cannam@85: siemens) cannam@85: ## LD is ld it makes a PLAMLIB cannam@85: ## CC just makes a GrossModule. cannam@85: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: reload_cmds_GCJ='$CC -r -o $output$reload_objs' cannam@85: hardcode_direct_GCJ=no cannam@85: ;; cannam@85: motorola) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie cannam@85: ;; cannam@85: esac cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: sysv4.3*) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: export_dynamic_flag_spec_GCJ='-Bexport' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ld_shlibs_GCJ=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sysv4.2uw2*) cannam@85: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_direct_GCJ=yes cannam@85: hardcode_minus_L_GCJ=no cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: hardcode_runpath_var=yes cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@85: no_undefined_flag_GCJ='${wl}-z ${wl}text' cannam@85: if test "$GCC" = yes; then cannam@85: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: fi cannam@85: runpath_var='LD_RUN_PATH' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: sysv5*) cannam@85: no_undefined_flag_GCJ=' -z text' cannam@85: # $CC -shared without GNU ld will not create a library from C++ cannam@85: # object files and a static libstdc++, better avoid it by now cannam@85: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: hardcode_libdir_flag_spec_GCJ= cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: runpath_var='LD_RUN_PATH' cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@85: hardcode_shlibpath_var_GCJ=no cannam@85: ;; cannam@85: cannam@85: *) cannam@85: ld_shlibs_GCJ=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 cannam@85: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 cannam@85: test "$ld_shlibs_GCJ" = no && can_build_shared=no cannam@85: cannam@85: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@85: if test "$GCC" = yes; then cannam@85: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@85: fi cannam@85: cannam@85: # cannam@85: # Do we need to explicitly link libc? cannam@85: # cannam@85: case "x$archive_cmds_need_lc_GCJ" in cannam@85: x|xyes) cannam@85: # Assume -lc should be added cannam@85: archive_cmds_need_lc_GCJ=yes cannam@85: cannam@85: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@85: case $archive_cmds_GCJ in cannam@85: *'~'*) cannam@85: # FIXME: we may have to deal with multi-command sequences. cannam@85: ;; cannam@85: '$CC '*) cannam@85: # Test whether the compiler implicitly links with -lc since on some cannam@85: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@85: # to ld, don't add -lc before -lgcc. cannam@85: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@85: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@85: $rm conftest* cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } 2>conftest.err; then cannam@85: soname=conftest cannam@85: lib=conftest cannam@85: libobjs=conftest.$ac_objext cannam@85: deplibs= cannam@85: wl=$lt_prog_compiler_wl_GCJ cannam@85: compiler_flags=-v cannam@85: linker_flags=-v cannam@85: verstring= cannam@85: output_objdir=. cannam@85: libname=conftest cannam@85: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ cannam@85: allow_undefined_flag_GCJ= cannam@85: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@85: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } cannam@85: then cannam@85: archive_cmds_need_lc_GCJ=no cannam@85: else cannam@85: archive_cmds_need_lc_GCJ=yes cannam@85: fi cannam@85: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag cannam@85: else cannam@85: cat conftest.err 1>&5 cannam@85: fi cannam@85: $rm conftest* cannam@85: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 cannam@85: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@85: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@85: library_names_spec= cannam@85: libname_spec='lib$name' cannam@85: soname_spec= cannam@85: shrext=".so" cannam@85: postinstall_cmds= cannam@85: postuninstall_cmds= cannam@85: finish_cmds= cannam@85: finish_eval= cannam@85: shlibpath_var= cannam@85: shlibpath_overrides_runpath=unknown cannam@85: version_type=none cannam@85: dynamic_linker="$host_os ld.so" cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@85: # if the path contains ";" then we assume it to be the separator cannam@85: # otherwise default to the standard path separator (i.e. ":") - it is cannam@85: # assumed that no part of a normal pathname contains ";" but that should cannam@85: # okay in the real world where ";" in dirpaths is itself problematic. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: else cannam@85: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@85: fi cannam@85: need_lib_prefix=unknown cannam@85: hardcode_into_libs=no cannam@85: cannam@85: # when you set need_version to no, make sure it does not cause -set_version cannam@85: # flags to be left without arguments cannam@85: need_version=unknown cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@85: shlibpath_var=LIBPATH cannam@85: cannam@85: # AIX 3 has no versioning support, so we append a major version to the name. cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: hardcode_into_libs=yes cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 supports IA64 cannam@85: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: else cannam@85: # With GCC up to 2.95.x, collect2 would create an import file cannam@85: # for dependence libraries. The import file would start with cannam@85: # the line `#! .'. This would cause the generated library to cannam@85: # depend on `.', always an invalid library. This was fixed in cannam@85: # development snapshots of GCC prior to 3.0. cannam@85: case $host_os in cannam@85: aix4 | aix4.[01] | aix4.[01].*) cannam@85: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@85: echo ' yes ' cannam@85: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@85: : cannam@85: else cannam@85: can_build_shared=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@85: # soname into executable. Probably we can add versioning support to cannam@85: # collect2, so additional links can be useful in future. cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@85: # instead of lib.a to let people know that these are not cannam@85: # typical AIX shared libraries. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: else cannam@85: # We preserve .a as extension for shared libraries through AIX4.2 cannam@85: # and later when we are not doing run time linking. cannam@85: library_names_spec='${libname}${release}.a $libname.a' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: fi cannam@85: shlibpath_var=LIBPATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: library_names_spec='$libname.ixlibrary $libname.a' cannam@85: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@85: 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' cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: library_names_spec='${libname}${shared_ext}' cannam@85: dynamic_linker="$host_os ld.so" cannam@85: shlibpath_var=LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: version_type=linux cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@85: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@85: # the default ld.so.conf also contains /usr/contrib/lib and cannam@85: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@85: # libtool to hard-code these into programs cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: version_type=windows cannam@85: shrext=".dll" cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: cannam@85: case $GCC,$host_os in cannam@85: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@85: library_names_spec='$libname.dll.a' cannam@85: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@85: postinstall_cmds='base_file=`basename \${file}`~ cannam@85: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@85: dldir=$destdir/`dirname \$dlpath`~ cannam@85: test -d \$dldir || mkdir -p \$dldir~ cannam@85: $install_prog $dir/$dlname \$dldir/$dlname' cannam@85: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@85: dlpath=$dir/\$dldll~ cannam@85: $rm \$dlpath' cannam@85: shlibpath_overrides_runpath=yes cannam@85: cannam@85: case $host_os in cannam@85: cygwin*) cannam@85: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@85: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@85: ;; cannam@85: mingw*) cannam@85: # MinGW DLLs use traditional 'lib' prefix cannam@85: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@85: # It is most probably a Windows format PATH printed by cannam@85: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@85: # path with ; separators, and with drive letters. We can handle the cannam@85: # drive letters (cygwin fileutils understands them), so leave them, cannam@85: # especially as we might pass files found there to a mingw objdump, cannam@85: # which wouldn't understand a cygwinified path. Ahh. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@85: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@85: ;; cannam@85: esac cannam@85: dynamic_linker='Win32 ld.exe' cannam@85: # FIXME: first we should search . and the directory the executable is in cannam@85: shlibpath_var=PATH cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: dynamic_linker="$host_os dyld" cannam@85: version_type=darwin cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@85: soname_spec='${libname}${release}${major}$shared_ext' cannam@85: shlibpath_overrides_runpath=yes cannam@85: shlibpath_var=DYLD_LIBRARY_PATH cannam@85: shrext='$(test .$module = .yes && echo .so || echo .dylib)' cannam@85: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` cannam@85: else cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: kfreebsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: freebsd*) cannam@85: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@85: version_type=freebsd-$objformat cannam@85: case $version_type in cannam@85: freebsd-elf*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: freebsd-*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@85: need_version=yes cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_os in cannam@85: freebsd2*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: freebsd3.01* | freebsdelf3.01*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: *) # from 3.2 on cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@85: # link against other versions. cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: shrext='.so' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.so" cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: if test "X$HPUX_IA64_MODE" = X32; then cannam@85: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@85: else cannam@85: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: hppa*64*) cannam@85: shrext='.sl' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: *) cannam@85: shrext='.sl' cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=SHLIB_PATH cannam@85: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: esac cannam@85: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@85: postinstall_cmds='chmod 555 $lib' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $host_os in cannam@85: nonstopux*) version_type=nonstopux ;; cannam@85: *) cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: version_type=linux cannam@85: else cannam@85: version_type=irix cannam@85: fi ;; cannam@85: esac cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: case $host_os in cannam@85: irix5* | nonstopux*) cannam@85: libsuff= shlibsuff= cannam@85: ;; cannam@85: *) cannam@85: case $LD in # libtool.m4 will add one of these switches to LD cannam@85: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@85: libsuff= shlibsuff= libmagic=32-bit;; cannam@85: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@85: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@85: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@85: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@85: *) libsuff= shlibsuff= libmagic=never-match;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@85: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: # No shared lib support for Linux oldld, aout, or coff. cannam@85: linux*oldld* | linux*aout* | linux*coff*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: # This implies no fast_install, which is unacceptable. cannam@85: # Some rework will be needed to allow for fast_install cannam@85: # before this can be enabled. cannam@85: hardcode_into_libs=yes cannam@85: cannam@85: # Append ld.so.conf contents to the search path cannam@85: if test -f /etc/ld.so.conf; then cannam@85: ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" cannam@85: fi cannam@85: cannam@85: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@85: # powerpc, because MkLinux only supported shared libraries with the cannam@85: # GNU dynamic linker. Since this was broken with cross compilers, cannam@85: # most powerpc-linux boxes support dynamic linking these days and cannam@85: # people can always --disable-shared, the test was removed, and we cannam@85: # assume the GNU/Linux dynamic linker is in use. cannam@85: dynamic_linker='GNU/Linux ld.so' cannam@85: ;; cannam@85: cannam@85: knetbsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: netbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: dynamic_linker='NetBSD (a.out) ld.so' cannam@85: else cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: dynamic_linker='NetBSD ld.elf_so' cannam@85: fi cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=yes cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: case $host_os in cannam@85: openbsd2.[89] | openbsd2.[89].*) cannam@85: shlibpath_overrides_runpath=no cannam@85: ;; cannam@85: *) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: shlibpath_overrides_runpath=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: libname_spec='$name' cannam@85: shrext=".dll" cannam@85: need_lib_prefix=no cannam@85: library_names_spec='$libname${shared_ext} $libname.a' cannam@85: dynamic_linker='OS/2 ld.exe' cannam@85: shlibpath_var=LIBPATH cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: version_type=osf cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@85: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: version_type=osf cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: # ldd complains unless libraries are executable cannam@85: postinstall_cmds='chmod +x $lib' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: version_type=sunos cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: need_lib_prefix=no cannam@85: fi cannam@85: need_version=yes cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_vendor in cannam@85: sni) cannam@85: shlibpath_overrides_runpath=no cannam@85: need_lib_prefix=no cannam@85: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: siemens) cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: motorola) cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: version_type=linux cannam@85: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@85: soname_spec='$libname${shared_ext}.$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: *) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@85: echo "${ECHO_T}$dynamic_linker" >&6 cannam@85: test "$dynamic_linker" = no && can_build_shared=no cannam@85: cannam@85: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@85: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@85: hardcode_action_GCJ= cannam@85: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ cannam@85: test -n "$runpath_var GCJ" || \ cannam@85: test "X$hardcode_automatic_GCJ"="Xyes" ; then cannam@85: cannam@85: # We can hardcode non-existant directories. cannam@85: if test "$hardcode_direct_GCJ" != no && cannam@85: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@85: # have to relink, otherwise we might link with an installed library cannam@85: # when we should be linking with a yet-to-be-installed one cannam@85: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && cannam@85: test "$hardcode_minus_L_GCJ" != no; then cannam@85: # Linking always hardcodes the temporary library directory. cannam@85: hardcode_action_GCJ=relink cannam@85: else cannam@85: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@85: hardcode_action_GCJ=immediate cannam@85: fi cannam@85: else cannam@85: # We cannot hardcode anything, or else we can only hardcode existing cannam@85: # directories. cannam@85: hardcode_action_GCJ=unsupported cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 cannam@85: echo "${ECHO_T}$hardcode_action_GCJ" >&6 cannam@85: cannam@85: if test "$hardcode_action_GCJ" = relink; then cannam@85: # Fast installation is not supported cannam@85: enable_fast_install=no cannam@85: elif test "$shlibpath_overrides_runpath" = yes || cannam@85: test "$enable_shared" = no; then cannam@85: # Fast installation is not necessary cannam@85: enable_fast_install=needless cannam@85: fi cannam@85: cannam@85: striplib= cannam@85: old_striplib= cannam@85: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@85: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@85: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@85: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@85: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: # FIXME - insert some real tests, host_os isn't really good enough cannam@85: case $host_os in cannam@85: darwin*) cannam@85: if test -n "$STRIP" ; then cannam@85: striplib="$STRIP -x" cannam@85: echo "$as_me:$LINENO: result: yes" >&5 cannam@85: echo "${ECHO_T}yes" >&6 cannam@85: else cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: fi cannam@85: ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: no" >&5 cannam@85: echo "${ECHO_T}no" >&6 cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: if test "x$enable_dlopen" != xyes; then cannam@85: enable_dlopen=unknown cannam@85: enable_dlopen_self=unknown cannam@85: enable_dlopen_self_static=unknown cannam@85: else cannam@85: lt_cv_dlopen=no cannam@85: lt_cv_dlopen_libs= cannam@85: cannam@85: case $host_os in cannam@85: beos*) cannam@85: lt_cv_dlopen="load_add_on" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: ;; cannam@85: cannam@85: mingw* | pw32*) cannam@85: lt_cv_dlopen="LoadLibrary" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: cygwin*) cannam@85: lt_cv_dlopen="dlopen" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: darwin*) cannam@85: # if libdl is installed we need to link against it cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: cannam@85: lt_cv_dlopen="dyld" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: cannam@85: *) cannam@85: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@85: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define shl_load innocuous_shl_load cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char shl_load (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef shl_load cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = shl_load; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != shl_load; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@85: if test $ac_cv_func_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@85: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char shl_load (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: shl_load (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_shl_load=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_shl_load=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@85: if test $ac_cv_lib_dld_shl_load = yes; then cannam@85: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@85: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@85: if test "${ac_cv_func_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define dlopen innocuous_dlopen cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char dlopen (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef dlopen cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = dlopen; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != dlopen; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_func_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_func_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@85: if test $ac_cv_func_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldl $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dl_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dl_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@85: if test $ac_cv_lib_dl_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@85: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-lsvld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dlopen (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dlopen (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_svld_dlopen=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_svld_dlopen=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@85: if test $ac_cv_lib_svld_dlopen = yes; then cannam@85: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@85: else cannam@85: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@85: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@85: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_check_lib_save_LIBS=$LIBS cannam@85: LIBS="-ldld $LIBS" cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char dld_link (); cannam@85: int cannam@85: main () cannam@85: { cannam@85: dld_link (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_lib_dld_dld_link=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_lib_dld_dld_link=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: LIBS=$ac_check_lib_save_LIBS cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@85: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@85: if test $ac_cv_lib_dld_dld_link = yes; then cannam@85: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: fi cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "x$lt_cv_dlopen" != xno; then cannam@85: enable_dlopen=yes cannam@85: else cannam@85: enable_dlopen=no cannam@85: fi cannam@85: cannam@85: case $lt_cv_dlopen in cannam@85: dlopen) cannam@85: save_CPPFLAGS="$CPPFLAGS" cannam@85: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@85: cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@85: cannam@85: save_LIBS="$LIBS" cannam@85: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@85: cannam@85: if test "x$lt_cv_dlopen_self" = xyes; then cannam@85: LDFLAGS="$LDFLAGS $link_static_flag" cannam@85: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@85: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@85: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$cross_compiling" = yes; then : cannam@85: lt_cv_dlopen_self_static=cross cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: } cannam@85: EOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@85: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: lt_cv_dlopen_self_static=no cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@85: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@85: fi cannam@85: cannam@85: CPPFLAGS="$save_CPPFLAGS" cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: LIBS="$save_LIBS" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self in cannam@85: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@85: *) enable_dlopen_self=unknown ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self_static in cannam@85: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@85: *) enable_dlopen_self_static=unknown ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: cannam@85: # The else clause should only fire when bootstrapping the cannam@85: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@85: # with your package, and you will get complaints that there are cannam@85: # no rules to generate ltmain.sh. cannam@85: if test -f "$ltmain"; then cannam@85: # See if we are running on zsh, and set the options which allow our commands through cannam@85: # without removal of \ escapes. cannam@85: if test -n "${ZSH_VERSION+set}" ; then cannam@85: setopt NO_GLOB_SUBST cannam@85: fi cannam@85: # Now quote all the things that may contain metacharacters while being cannam@85: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@85: # variables and quote the copies for generation of the libtool script. cannam@85: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@85: SED SHELL STRIP \ cannam@85: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@85: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@85: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@85: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@85: lt_cv_sys_global_symbol_to_c_name_address \ cannam@85: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@85: old_postinstall_cmds old_postuninstall_cmds \ cannam@85: compiler_GCJ \ cannam@85: CC_GCJ \ cannam@85: LD_GCJ \ cannam@85: lt_prog_compiler_wl_GCJ \ cannam@85: lt_prog_compiler_pic_GCJ \ cannam@85: lt_prog_compiler_static_GCJ \ cannam@85: lt_prog_compiler_no_builtin_flag_GCJ \ cannam@85: export_dynamic_flag_spec_GCJ \ cannam@85: thread_safe_flag_spec_GCJ \ cannam@85: whole_archive_flag_spec_GCJ \ cannam@85: enable_shared_with_static_runtimes_GCJ \ cannam@85: old_archive_cmds_GCJ \ cannam@85: old_archive_from_new_cmds_GCJ \ cannam@85: predep_objects_GCJ \ cannam@85: postdep_objects_GCJ \ cannam@85: predeps_GCJ \ cannam@85: postdeps_GCJ \ cannam@85: compiler_lib_search_path_GCJ \ cannam@85: archive_cmds_GCJ \ cannam@85: archive_expsym_cmds_GCJ \ cannam@85: postinstall_cmds_GCJ \ cannam@85: postuninstall_cmds_GCJ \ cannam@85: old_archive_from_expsyms_cmds_GCJ \ cannam@85: allow_undefined_flag_GCJ \ cannam@85: no_undefined_flag_GCJ \ cannam@85: export_symbols_cmds_GCJ \ cannam@85: hardcode_libdir_flag_spec_GCJ \ cannam@85: hardcode_libdir_flag_spec_ld_GCJ \ cannam@85: hardcode_libdir_separator_GCJ \ cannam@85: hardcode_automatic_GCJ \ cannam@85: module_cmds_GCJ \ cannam@85: module_expsym_cmds_GCJ \ cannam@85: lt_cv_prog_compiler_c_o_GCJ \ cannam@85: exclude_expsyms_GCJ \ cannam@85: include_expsyms_GCJ; do cannam@85: cannam@85: case $var in cannam@85: old_archive_cmds_GCJ | \ cannam@85: old_archive_from_new_cmds_GCJ | \ cannam@85: archive_cmds_GCJ | \ cannam@85: archive_expsym_cmds_GCJ | \ cannam@85: module_cmds_GCJ | \ cannam@85: module_expsym_cmds_GCJ | \ cannam@85: old_archive_from_expsyms_cmds_GCJ | \ cannam@85: export_symbols_cmds_GCJ | \ cannam@85: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@85: postinstall_cmds | postuninstall_cmds | \ cannam@85: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@85: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@85: # Double-quote double-evaled strings. cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@85: ;; cannam@85: *) cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: case $lt_echo in cannam@85: *'\$0 --fallback-echo"') cannam@85: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cfgfile="$ofile" cannam@85: cannam@85: cat <<__EOF__ >> "$cfgfile" cannam@85: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$archive_cmds_need_lc_GCJ cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_compiler_GCJ cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$GCC_GCJ cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_LD_GCJ cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_lt_prog_compiler_wl_GCJ cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_lt_prog_compiler_pic_GCJ cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_lt_prog_compiler_static_GCJ cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_old_archive_cmds_GCJ cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_archive_cmds_GCJ cannam@85: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_module_cmds_GCJ cannam@85: module_expsym_cmds=$lt_module_expsym_cmds_GCJ cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_predep_objects_GCJ cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_postdep_objects_GCJ cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_predeps_GCJ cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_postdeps_GCJ cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_allow_undefined_flag_GCJ cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_no_undefined_flag_GCJ cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$hardcode_action_GCJ cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$hardcode_direct_GCJ cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$hardcode_minus_L_GCJ cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$hardcode_automatic_GCJ cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$link_all_deplibs_GCJ cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$fix_srcfile_path_GCJ" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$always_export_symbols_GCJ cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_export_symbols_cmds_GCJ cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_exclude_expsyms_GCJ cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_include_expsyms_GCJ cannam@85: cannam@85: # ### END LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: CC="$lt_save_CC" cannam@85: cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: RC) cannam@85: cannam@85: cannam@85: cannam@85: # Source file extension for RC test sources. cannam@85: ac_ext=rc cannam@85: cannam@85: # Object file extension for compiled RC test sources. cannam@85: objext=o cannam@85: objext_RC=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code="$lt_simple_compile_test_code" cannam@85: cannam@85: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: lt_save_CC="$CC" cannam@85: CC=${RC-"windres"} cannam@85: compiler=$CC cannam@85: compiler_RC=$CC cannam@85: lt_cv_prog_compiler_c_o_RC=yes cannam@85: cannam@85: # The else clause should only fire when bootstrapping the cannam@85: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@85: # with your package, and you will get complaints that there are cannam@85: # no rules to generate ltmain.sh. cannam@85: if test -f "$ltmain"; then cannam@85: # See if we are running on zsh, and set the options which allow our commands through cannam@85: # without removal of \ escapes. cannam@85: if test -n "${ZSH_VERSION+set}" ; then cannam@85: setopt NO_GLOB_SUBST cannam@85: fi cannam@85: # Now quote all the things that may contain metacharacters while being cannam@85: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@85: # variables and quote the copies for generation of the libtool script. cannam@85: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@85: SED SHELL STRIP \ cannam@85: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@85: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@85: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@85: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@85: lt_cv_sys_global_symbol_to_c_name_address \ cannam@85: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@85: old_postinstall_cmds old_postuninstall_cmds \ cannam@85: compiler_RC \ cannam@85: CC_RC \ cannam@85: LD_RC \ cannam@85: lt_prog_compiler_wl_RC \ cannam@85: lt_prog_compiler_pic_RC \ cannam@85: lt_prog_compiler_static_RC \ cannam@85: lt_prog_compiler_no_builtin_flag_RC \ cannam@85: export_dynamic_flag_spec_RC \ cannam@85: thread_safe_flag_spec_RC \ cannam@85: whole_archive_flag_spec_RC \ cannam@85: enable_shared_with_static_runtimes_RC \ cannam@85: old_archive_cmds_RC \ cannam@85: old_archive_from_new_cmds_RC \ cannam@85: predep_objects_RC \ cannam@85: postdep_objects_RC \ cannam@85: predeps_RC \ cannam@85: postdeps_RC \ cannam@85: compiler_lib_search_path_RC \ cannam@85: archive_cmds_RC \ cannam@85: archive_expsym_cmds_RC \ cannam@85: postinstall_cmds_RC \ cannam@85: postuninstall_cmds_RC \ cannam@85: old_archive_from_expsyms_cmds_RC \ cannam@85: allow_undefined_flag_RC \ cannam@85: no_undefined_flag_RC \ cannam@85: export_symbols_cmds_RC \ cannam@85: hardcode_libdir_flag_spec_RC \ cannam@85: hardcode_libdir_flag_spec_ld_RC \ cannam@85: hardcode_libdir_separator_RC \ cannam@85: hardcode_automatic_RC \ cannam@85: module_cmds_RC \ cannam@85: module_expsym_cmds_RC \ cannam@85: lt_cv_prog_compiler_c_o_RC \ cannam@85: exclude_expsyms_RC \ cannam@85: include_expsyms_RC; do cannam@85: cannam@85: case $var in cannam@85: old_archive_cmds_RC | \ cannam@85: old_archive_from_new_cmds_RC | \ cannam@85: archive_cmds_RC | \ cannam@85: archive_expsym_cmds_RC | \ cannam@85: module_cmds_RC | \ cannam@85: module_expsym_cmds_RC | \ cannam@85: old_archive_from_expsyms_cmds_RC | \ cannam@85: export_symbols_cmds_RC | \ cannam@85: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@85: postinstall_cmds | postuninstall_cmds | \ cannam@85: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@85: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@85: # Double-quote double-evaled strings. cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@85: ;; cannam@85: *) cannam@85: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: case $lt_echo in cannam@85: *'\$0 --fallback-echo"') cannam@85: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cfgfile="$ofile" cannam@85: cannam@85: cat <<__EOF__ >> "$cfgfile" cannam@85: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$archive_cmds_need_lc_RC cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_compiler_RC cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$GCC_RC cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_LD_RC cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_lt_prog_compiler_wl_RC cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_lt_prog_compiler_pic_RC cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_lt_prog_compiler_static_RC cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_old_archive_cmds_RC cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_archive_cmds_RC cannam@85: archive_expsym_cmds=$lt_archive_expsym_cmds_RC cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_module_cmds_RC cannam@85: module_expsym_cmds=$lt_module_expsym_cmds_RC cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_predep_objects_RC cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_postdep_objects_RC cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_predeps_RC cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_postdeps_RC cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_compiler_lib_search_path_RC cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_allow_undefined_flag_RC cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_no_undefined_flag_RC cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$hardcode_action_RC cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$hardcode_direct_RC cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$hardcode_minus_L_RC cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$hardcode_automatic_RC cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$link_all_deplibs_RC cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$fix_srcfile_path_RC" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$always_export_symbols_RC cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_export_symbols_cmds_RC cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_exclude_expsyms_RC cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_include_expsyms_RC cannam@85: cannam@85: # ### END LIBTOOL TAG CONFIG: $tagname cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: ac_ext=c cannam@85: ac_cpp='$CPP $CPPFLAGS' cannam@85: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@85: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@85: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@85: cannam@85: CC="$lt_save_CC" cannam@85: cannam@85: ;; cannam@85: cannam@85: *) cannam@85: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 cannam@85: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Append the new tag name to the list of available tags. cannam@85: if test -n "$tagname" ; then cannam@85: available_tags="$available_tags $tagname" cannam@85: fi cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: cannam@85: # Now substitute the updated list of available tags. cannam@85: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then cannam@85: mv "${ofile}T" "$ofile" cannam@85: chmod +x "$ofile" cannam@85: else cannam@85: rm -f "${ofile}T" cannam@85: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 cannam@85: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: # This can be used to rebuild libtool when needed cannam@85: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" cannam@85: cannam@85: # Always use our own libtool. cannam@85: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@85: cannam@85: # Prevent multiple expansion cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: arch="" cannam@85: debug="" cannam@85: optimize="" cannam@85: profile="" cannam@85: cannam@85: set -- $CFLAGS cannam@85: CFLAGS="" cannam@85: cannam@85: if test "$GCC" = yes cannam@85: then cannam@85: CFLAGS="-Wall" cannam@85: fi cannam@85: cannam@85: while test $# -gt 0 cannam@85: do cannam@85: case "$1" in cannam@85: -Wall) cannam@85: if test "$GCC" = yes cannam@85: then cannam@85: : cannam@85: else cannam@85: CFLAGS="$CFLAGS $1" cannam@85: fi cannam@85: shift cannam@85: ;; cannam@85: -g) cannam@85: debug="-g" cannam@85: shift cannam@85: ;; cannam@85: -mno-cygwin) cannam@85: shift cannam@85: ;; cannam@85: -m*) cannam@85: arch="$arch $1" cannam@85: shift cannam@85: ;; cannam@85: -O2) cannam@85: optimize="-O" cannam@85: shift cannam@85: ;; cannam@85: -fomit-frame-pointer) cannam@85: shift cannam@85: ;; cannam@85: -O*|-f*) cannam@85: optimize="$optimize $1" cannam@85: shift cannam@85: ;; cannam@85: *) cannam@85: CFLAGS="$CFLAGS $1" cannam@85: shift cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: cannam@85: if test "$GCC" = yes cannam@85: then cannam@85: if test -z "$arch" cannam@85: then cannam@85: case "$host" in cannam@85: i386-*) ;; cannam@85: i?86-*) arch="-march=i486" ;; cannam@85: arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;; cannam@85: armv4*-*) arch="-march=armv4 -mtune=strongarm" ;; cannam@85: powerpc-*) ;; cannam@85: mips*-agenda-*) arch="-mcpu=vr4100" ;; cannam@85: mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: case "$optimize" in cannam@85: -O|"-O "*) cannam@85: optimize="-O" cannam@85: optimize="$optimize -fforce-mem" cannam@85: optimize="$optimize -fforce-addr" cannam@85: : #x optimize="$optimize -finline-functions" cannam@85: : #- optimize="$optimize -fstrength-reduce" cannam@85: optimize="$optimize -fthread-jumps" cannam@85: optimize="$optimize -fcse-follow-jumps" cannam@85: optimize="$optimize -fcse-skip-blocks" cannam@85: : #x optimize="$optimize -frerun-cse-after-loop" cannam@85: : #x optimize="$optimize -frerun-loop-opt" cannam@85: : #x optimize="$optimize -fgcse" cannam@85: optimize="$optimize -fexpensive-optimizations" cannam@85: optimize="$optimize -fregmove" cannam@85: : #* optimize="$optimize -fdelayed-branch" cannam@85: : #x optimize="$optimize -fschedule-insns" cannam@85: optimize="$optimize -fschedule-insns2" cannam@85: : #? optimize="$optimize -ffunction-sections" cannam@85: : #? optimize="$optimize -fcaller-saves" cannam@85: : #> optimize="$optimize -funroll-loops" cannam@85: : #> optimize="$optimize -funroll-all-loops" cannam@85: : #x optimize="$optimize -fmove-all-movables" cannam@85: : #x optimize="$optimize -freduce-all-givs" cannam@85: : #? optimize="$optimize -fstrict-aliasing" cannam@85: : #* optimize="$optimize -fstructure-noalias" cannam@85: cannam@85: case "$host" in cannam@85: arm*-*) cannam@85: optimize="$optimize -fstrength-reduce" cannam@85: ;; cannam@85: mips*-*) cannam@85: optimize="$optimize -fstrength-reduce" cannam@85: optimize="$optimize -finline-functions" cannam@85: ;; cannam@85: i?86-*) cannam@85: optimize="$optimize -fstrength-reduce" cannam@85: ;; cannam@85: powerpc-apple-*) cannam@85: # this triggers an internal compiler error with gcc2 cannam@85: : #optimize="$optimize -fstrength-reduce" cannam@85: cannam@85: # this is really only beneficial with gcc3 cannam@85: : #optimize="$optimize -finline-functions" cannam@85: ;; cannam@85: *) cannam@85: # this sometimes provokes bugs in gcc 2.95.2 cannam@85: : #optimize="$optimize -fstrength-reduce" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: case "$host" in cannam@85: mips*-agenda-*) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define HAVE_MADD16_ASM 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: mips*-luxsonor-*) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define HAVE_MADD_ASM 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 cannam@85: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 cannam@85: if test "${ac_cv_header_stdc+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_header_stdc=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: cannam@85: _ACEOF cannam@85: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@85: $EGREP "memchr" >/dev/null 2>&1; then cannam@85: : cannam@85: else cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest* cannam@85: cannam@85: fi cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: cannam@85: _ACEOF cannam@85: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@85: $EGREP "free" >/dev/null 2>&1; then cannam@85: : cannam@85: else cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f conftest* cannam@85: cannam@85: fi cannam@85: cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@85: if test "$cross_compiling" = yes; then cannam@85: : cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #if ((' ' & 0x0FF) == 0x020) cannam@85: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@85: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@85: #else cannam@85: # define ISLOWER(c) \ cannam@85: (('a' <= (c) && (c) <= 'i') \ cannam@85: || ('j' <= (c) && (c) <= 'r') \ cannam@85: || ('s' <= (c) && (c) <= 'z')) cannam@85: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@85: #endif cannam@85: cannam@85: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@85: int cannam@85: main () cannam@85: { cannam@85: int i; cannam@85: for (i = 0; i < 256; i++) cannam@85: if (XOR (islower (i), ISLOWER (i)) cannam@85: || toupper (i) != TOUPPER (i)) cannam@85: exit(2); cannam@85: exit (0); cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: : cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: ac_cv_header_stdc=no cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 cannam@85: echo "${ECHO_T}$ac_cv_header_stdc" >&6 cannam@85: if test $ac_cv_header_stdc = yes; then cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define STDC_HEADERS 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 cannam@85: echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 cannam@85: if test "${ac_cv_header_sys_wait_h+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: #ifndef WEXITSTATUS cannam@85: # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) cannam@85: #endif cannam@85: #ifndef WIFEXITED cannam@85: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: int s; cannam@85: wait (&s); cannam@85: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_header_sys_wait_h=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_header_sys_wait_h=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 cannam@85: echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 cannam@85: if test $ac_cv_header_sys_wait_h = yes; then cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define HAVE_SYS_WAIT_H 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h cannam@85: do cannam@85: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@85: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@85: else cannam@85: # Is the header compilable? cannam@85: echo "$as_me:$LINENO: checking $ac_header usability" >&5 cannam@85: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: #include <$ac_header> cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_header_compiler=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_header_compiler=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 cannam@85: echo "${ECHO_T}$ac_header_compiler" >&6 cannam@85: cannam@85: # Is the header present? cannam@85: echo "$as_me:$LINENO: checking $ac_header presence" >&5 cannam@85: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include <$ac_header> cannam@85: _ACEOF cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@85: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } >/dev/null; then cannam@85: if test -s conftest.err; then cannam@85: ac_cpp_err=$ac_c_preproc_warn_flag cannam@85: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@85: else cannam@85: ac_cpp_err= cannam@85: fi cannam@85: else cannam@85: ac_cpp_err=yes cannam@85: fi cannam@85: if test -z "$ac_cpp_err"; then cannam@85: ac_header_preproc=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_header_preproc=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_ext cannam@85: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 cannam@85: echo "${ECHO_T}$ac_header_preproc" >&6 cannam@85: cannam@85: # So? What about this header? cannam@85: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in cannam@85: yes:no: ) cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} cannam@85: ac_header_preproc=yes cannam@85: ;; cannam@85: no:yes:* ) cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} cannam@85: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 cannam@85: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} cannam@85: ( cannam@85: cat <<\_ASBOX cannam@85: ## ----------------------------------- ## cannam@85: ## Report this to support@underbit.com ## cannam@85: ## ----------------------------------- ## cannam@85: _ASBOX cannam@85: ) | cannam@85: sed "s/^/$as_me: WARNING: /" >&2 cannam@85: ;; cannam@85: esac cannam@85: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@85: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: eval "$as_ac_Header=\$ac_header_preproc" cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@85: cannam@85: fi cannam@85: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: done cannam@85: cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 cannam@85: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 cannam@85: if test "${ac_cv_c_const+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: /* FIXME: Include the comments suggested by Paul. */ cannam@85: #ifndef __cplusplus cannam@85: /* Ultrix mips cc rejects this. */ cannam@85: typedef int charset[2]; cannam@85: const charset x; cannam@85: /* SunOS 4.1.1 cc rejects this. */ cannam@85: char const *const *ccp; cannam@85: char **p; cannam@85: /* NEC SVR4.0.2 mips cc rejects this. */ cannam@85: struct point {int x, y;}; cannam@85: static struct point const zero = {0,0}; cannam@85: /* AIX XL C 1.02.0.0 rejects this. cannam@85: It does not let you subtract one const X* pointer from another in cannam@85: an arm of an if-expression whose if-part is not a constant cannam@85: expression */ cannam@85: const char *g = "string"; cannam@85: ccp = &g + (g ? g-g : 0); cannam@85: /* HPUX 7.0 cc rejects these. */ cannam@85: ++ccp; cannam@85: p = (char**) ccp; cannam@85: ccp = (char const *const *) p; cannam@85: { /* SCO 3.2v4 cc rejects this. */ cannam@85: char *t; cannam@85: char const *s = 0 ? (char *) 0 : (char const *) 0; cannam@85: cannam@85: *t++ = 0; cannam@85: } cannam@85: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ cannam@85: int x[] = {25, 17}; cannam@85: const int *foo = &x[0]; cannam@85: ++foo; cannam@85: } cannam@85: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ cannam@85: typedef const int *iptr; cannam@85: iptr p = 0; cannam@85: ++p; cannam@85: } cannam@85: { /* AIX XL C 1.02.0.0 rejects this saying cannam@85: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ cannam@85: struct s { int j; const int *ap[3]; }; cannam@85: struct s *b; b->j = 5; cannam@85: } cannam@85: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ cannam@85: const int foo = 10; cannam@85: } cannam@85: #endif cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_c_const=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_c_const=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 cannam@85: echo "${ECHO_T}$ac_cv_c_const" >&6 cannam@85: if test $ac_cv_c_const = no; then cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define const cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking for inline" >&5 cannam@85: echo $ECHO_N "checking for inline... $ECHO_C" >&6 cannam@85: if test "${ac_cv_c_inline+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: ac_cv_c_inline=no cannam@85: for ac_kw in inline __inline__ __inline; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #ifndef __cplusplus cannam@85: typedef int foo_t; cannam@85: static $ac_kw foo_t static_foo () {return 0; } cannam@85: $ac_kw foo_t foo () {return 0; } cannam@85: #endif cannam@85: cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_c_inline=$ac_kw; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 cannam@85: echo "${ECHO_T}$ac_cv_c_inline" >&6 cannam@85: cannam@85: cannam@85: case $ac_cv_c_inline in cannam@85: inline | yes) ;; cannam@85: *) cannam@85: case $ac_cv_c_inline in cannam@85: no) ac_val=;; cannam@85: *) ac_val=$ac_cv_c_inline;; cannam@85: esac cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #ifndef __cplusplus cannam@85: #define inline $ac_val cannam@85: #endif cannam@85: _ACEOF cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 cannam@85: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 cannam@85: if test "${ac_cv_c_bigendian+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: # See if sys/param.h defines the BYTE_ORDER macro. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN cannam@85: bogus endian macros cannam@85: #endif cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: # It does; now see whether it defined to BIG_ENDIAN or not. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: #include cannam@85: #include cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: #if BYTE_ORDER != BIG_ENDIAN cannam@85: not big endian cannam@85: #endif cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_c_bigendian=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_c_bigendian=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: # It does not; compile a test program. cannam@85: if test "$cross_compiling" = yes; then cannam@85: # try to guess the endianness by grepping values into an object file cannam@85: ac_cv_c_bigendian=unknown cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; cannam@85: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; cannam@85: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } cannam@85: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; cannam@85: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; cannam@85: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } cannam@85: int cannam@85: main () cannam@85: { cannam@85: _ascii (); _ebcdic (); cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then cannam@85: ac_cv_c_bigendian=yes cannam@85: fi cannam@85: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then cannam@85: if test "$ac_cv_c_bigendian" = unknown; then cannam@85: ac_cv_c_bigendian=no cannam@85: else cannam@85: # finding both strings is unlikely to happen, but who knows? cannam@85: ac_cv_c_bigendian=unknown cannam@85: fi cannam@85: fi cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: int cannam@85: main () cannam@85: { cannam@85: /* Are we little or big endian? From Harbison&Steele. */ cannam@85: union cannam@85: { cannam@85: long l; cannam@85: char c[sizeof (long)]; cannam@85: } u; cannam@85: u.l = 1; cannam@85: exit (u.c[sizeof (long) - 1] == 1); cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_c_bigendian=no cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: ac_cv_c_bigendian=yes cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 cannam@85: echo "${ECHO_T}$ac_cv_c_bigendian" >&6 cannam@85: case $ac_cv_c_bigendian in cannam@85: yes) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define WORDS_BIGENDIAN 1 cannam@85: _ACEOF cannam@85: ;; cannam@85: no) cannam@85: ;; cannam@85: *) cannam@85: { { echo "$as_me:$LINENO: error: unknown endianness cannam@85: presetting ac_cv_c_bigendian=no (or yes) will help" >&5 cannam@85: echo "$as_me: error: unknown endianness cannam@85: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} cannam@85: { (exit 1); exit 1; }; } ;; cannam@85: esac cannam@85: cannam@85: echo "$as_me:$LINENO: checking for pid_t" >&5 cannam@85: echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 cannam@85: if test "${ac_cv_type_pid_t+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: if ((pid_t *) 0) cannam@85: return 0; cannam@85: if (sizeof (pid_t)) cannam@85: return 0; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_type_pid_t=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_type_pid_t=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 cannam@85: echo "${ECHO_T}$ac_cv_type_pid_t" >&6 cannam@85: if test $ac_cv_type_pid_t = yes; then cannam@85: : cannam@85: else cannam@85: cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define pid_t int cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for int" >&5 cannam@85: echo $ECHO_N "checking for int... $ECHO_C" >&6 cannam@85: if test "${ac_cv_type_int+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: if ((int *) 0) cannam@85: return 0; cannam@85: if (sizeof (int)) cannam@85: return 0; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_type_int=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_type_int=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 cannam@85: echo "${ECHO_T}$ac_cv_type_int" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking size of int" >&5 cannam@85: echo $ECHO_N "checking size of int... $ECHO_C" >&6 cannam@85: if test "${ac_cv_sizeof_int+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$ac_cv_type_int" = yes; then cannam@85: # The cast to unsigned long works around a bug in the HP C Compiler cannam@85: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@85: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@85: # This bug is HP SR number 8606223364. cannam@85: if test "$cross_compiling" = yes; then cannam@85: # Depending upon the size, compute the lo and hi bounds. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=0 ac_mid=0 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr $ac_mid + 1` cannam@85: if test $ac_lo -le $ac_mid; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=-1 ac_mid=-1 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_hi=`expr '(' $ac_mid ')' - 1` cannam@85: if test $ac_mid -le $ac_hi; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo= ac_hi= cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: # Binary search between lo and hi bounds. cannam@85: while test "x$ac_lo" != "x$ac_hi"; do cannam@85: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr '(' $ac_mid ')' + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: case $ac_lo in cannam@85: ?*) ac_cv_sizeof_int=$ac_lo;; cannam@85: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (int), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } ;; cannam@85: esac cannam@85: else cannam@85: if test "$cross_compiling" = yes; then cannam@85: { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 cannam@85: echo "$as_me: error: internal error: not reached in cross-compile" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: long longval () { return (long) (sizeof (int)); } cannam@85: unsigned long ulongval () { return (long) (sizeof (int)); } cannam@85: #include cannam@85: #include cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: FILE *f = fopen ("conftest.val", "w"); cannam@85: if (! f) cannam@85: exit (1); cannam@85: if (((long) (sizeof (int))) < 0) cannam@85: { cannam@85: long i = longval (); cannam@85: if (i != ((long) (sizeof (int)))) cannam@85: exit (1); cannam@85: fprintf (f, "%ld\n", i); cannam@85: } cannam@85: else cannam@85: { cannam@85: unsigned long i = ulongval (); cannam@85: if (i != ((long) (sizeof (int)))) cannam@85: exit (1); cannam@85: fprintf (f, "%lu\n", i); cannam@85: } cannam@85: exit (ferror (f) || fclose (f) != 0); cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_sizeof_int=`cat conftest.val` cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (int), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: rm -f conftest.val cannam@85: else cannam@85: ac_cv_sizeof_int=0 cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 cannam@85: echo "${ECHO_T}$ac_cv_sizeof_int" >&6 cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define SIZEOF_INT $ac_cv_sizeof_int cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for long" >&5 cannam@85: echo $ECHO_N "checking for long... $ECHO_C" >&6 cannam@85: if test "${ac_cv_type_long+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: if ((long *) 0) cannam@85: return 0; cannam@85: if (sizeof (long)) cannam@85: return 0; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_type_long=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_type_long=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 cannam@85: echo "${ECHO_T}$ac_cv_type_long" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking size of long" >&5 cannam@85: echo $ECHO_N "checking size of long... $ECHO_C" >&6 cannam@85: if test "${ac_cv_sizeof_long+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$ac_cv_type_long" = yes; then cannam@85: # The cast to unsigned long works around a bug in the HP C Compiler cannam@85: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@85: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@85: # This bug is HP SR number 8606223364. cannam@85: if test "$cross_compiling" = yes; then cannam@85: # Depending upon the size, compute the lo and hi bounds. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=0 ac_mid=0 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr $ac_mid + 1` cannam@85: if test $ac_lo -le $ac_mid; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=-1 ac_mid=-1 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_hi=`expr '(' $ac_mid ')' - 1` cannam@85: if test $ac_mid -le $ac_hi; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo= ac_hi= cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: # Binary search between lo and hi bounds. cannam@85: while test "x$ac_lo" != "x$ac_hi"; do cannam@85: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr '(' $ac_mid ')' + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: case $ac_lo in cannam@85: ?*) ac_cv_sizeof_long=$ac_lo;; cannam@85: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (long), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } ;; cannam@85: esac cannam@85: else cannam@85: if test "$cross_compiling" = yes; then cannam@85: { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 cannam@85: echo "$as_me: error: internal error: not reached in cross-compile" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: long longval () { return (long) (sizeof (long)); } cannam@85: unsigned long ulongval () { return (long) (sizeof (long)); } cannam@85: #include cannam@85: #include cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: FILE *f = fopen ("conftest.val", "w"); cannam@85: if (! f) cannam@85: exit (1); cannam@85: if (((long) (sizeof (long))) < 0) cannam@85: { cannam@85: long i = longval (); cannam@85: if (i != ((long) (sizeof (long)))) cannam@85: exit (1); cannam@85: fprintf (f, "%ld\n", i); cannam@85: } cannam@85: else cannam@85: { cannam@85: unsigned long i = ulongval (); cannam@85: if (i != ((long) (sizeof (long)))) cannam@85: exit (1); cannam@85: fprintf (f, "%lu\n", i); cannam@85: } cannam@85: exit (ferror (f) || fclose (f) != 0); cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_sizeof_long=`cat conftest.val` cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (long), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: rm -f conftest.val cannam@85: else cannam@85: ac_cv_sizeof_long=0 cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 cannam@85: echo "${ECHO_T}$ac_cv_sizeof_long" >&6 cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define SIZEOF_LONG $ac_cv_sizeof_long cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: echo "$as_me:$LINENO: checking for long long" >&5 cannam@85: echo $ECHO_N "checking for long long... $ECHO_C" >&6 cannam@85: if test "${ac_cv_type_long_long+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: if ((long long *) 0) cannam@85: return 0; cannam@85: if (sizeof (long long)) cannam@85: return 0; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_type_long_long=yes cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_cv_type_long_long=no cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 cannam@85: echo "${ECHO_T}$ac_cv_type_long_long" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking size of long long" >&5 cannam@85: echo $ECHO_N "checking size of long long... $ECHO_C" >&6 cannam@85: if test "${ac_cv_sizeof_long_long+set}" = set; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: if test "$ac_cv_type_long_long" = yes; then cannam@85: # The cast to unsigned long works around a bug in the HP C Compiler cannam@85: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@85: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@85: # This bug is HP SR number 8606223364. cannam@85: if test "$cross_compiling" = yes; then cannam@85: # Depending upon the size, compute the lo and hi bounds. cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=0 ac_mid=0 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr $ac_mid + 1` cannam@85: if test $ac_lo -le $ac_mid; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=-1 ac_mid=-1 cannam@85: while :; do cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_lo=$ac_mid; break cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_hi=`expr '(' $ac_mid ')' - 1` cannam@85: if test $ac_mid -le $ac_hi; then cannam@85: ac_lo= ac_hi= cannam@85: break cannam@85: fi cannam@85: ac_mid=`expr 2 '*' $ac_mid` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo= ac_hi= cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: # Binary search between lo and hi bounds. cannam@85: while test "x$ac_lo" != "x$ac_hi"; do cannam@85: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: int cannam@85: main () cannam@85: { cannam@85: static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; cannam@85: test_array [0] = 0 cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@85: (eval $ac_compile) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest.$ac_objext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_hi=$ac_mid cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ac_lo=`expr '(' $ac_mid ')' + 1` cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@85: done cannam@85: case $ac_lo in cannam@85: ?*) ac_cv_sizeof_long_long=$ac_lo;; cannam@85: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (long long), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } ;; cannam@85: esac cannam@85: else cannam@85: if test "$cross_compiling" = yes; then cannam@85: { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 cannam@85: echo "$as_me: error: internal error: not reached in cross-compile" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: $ac_includes_default cannam@85: long longval () { return (long) (sizeof (long long)); } cannam@85: unsigned long ulongval () { return (long) (sizeof (long long)); } cannam@85: #include cannam@85: #include cannam@85: int cannam@85: main () cannam@85: { cannam@85: cannam@85: FILE *f = fopen ("conftest.val", "w"); cannam@85: if (! f) cannam@85: exit (1); cannam@85: if (((long) (sizeof (long long))) < 0) cannam@85: { cannam@85: long i = longval (); cannam@85: if (i != ((long) (sizeof (long long)))) cannam@85: exit (1); cannam@85: fprintf (f, "%ld\n", i); cannam@85: } cannam@85: else cannam@85: { cannam@85: unsigned long i = ulongval (); cannam@85: if (i != ((long) (sizeof (long long)))) cannam@85: exit (1); cannam@85: fprintf (f, "%lu\n", i); cannam@85: } cannam@85: exit (ferror (f) || fclose (f) != 0); cannam@85: cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: ac_cv_sizeof_long_long=`cat conftest.val` cannam@85: else cannam@85: echo "$as_me: program exited with status $ac_status" >&5 cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: ( exit $ac_status ) cannam@85: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 cannam@85: See \`config.log' for more details." >&5 cannam@85: echo "$as_me: error: cannot compute sizeof (long long), 77 cannam@85: See \`config.log' for more details." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@85: fi cannam@85: fi cannam@85: rm -f conftest.val cannam@85: else cannam@85: ac_cv_sizeof_long_long=0 cannam@85: fi cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 cannam@85: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: for ac_func in waitpid fcntl pipe fork cannam@85: do cannam@85: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@85: echo "$as_me:$LINENO: checking for $ac_func" >&5 cannam@85: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 cannam@85: if eval "test \"\${$as_ac_var+set}\" = set"; then cannam@85: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@85: else cannam@85: cat >conftest.$ac_ext <<_ACEOF cannam@85: /* confdefs.h. */ cannam@85: _ACEOF cannam@85: cat confdefs.h >>conftest.$ac_ext cannam@85: cat >>conftest.$ac_ext <<_ACEOF cannam@85: /* end confdefs.h. */ cannam@85: /* Define $ac_func to an innocuous variant, in case declares $ac_func. cannam@85: For example, HP-UX 11i declares gettimeofday. */ cannam@85: #define $ac_func innocuous_$ac_func cannam@85: cannam@85: /* System header to define __stub macros and hopefully few prototypes, cannam@85: which can conflict with char $ac_func (); below. cannam@85: Prefer to if __STDC__ is defined, since cannam@85: exists even on freestanding compilers. */ cannam@85: cannam@85: #ifdef __STDC__ cannam@85: # include cannam@85: #else cannam@85: # include cannam@85: #endif cannam@85: cannam@85: #undef $ac_func cannam@85: cannam@85: /* Override any gcc2 internal prototype to avoid an error. */ cannam@85: #ifdef __cplusplus cannam@85: extern "C" cannam@85: { cannam@85: #endif cannam@85: /* We use char because int might match the return type of a gcc2 cannam@85: builtin and then its argument prototype would still apply. */ cannam@85: char $ac_func (); cannam@85: /* The GNU C library defines this for functions which it implements cannam@85: to always fail with ENOSYS. Some functions are actually named cannam@85: something starting with __ and the normal name is an alias. */ cannam@85: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) cannam@85: choke me cannam@85: #else cannam@85: char (*f) () = $ac_func; cannam@85: #endif cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: cannam@85: int cannam@85: main () cannam@85: { cannam@85: return f != $ac_func; cannam@85: ; cannam@85: return 0; cannam@85: } cannam@85: _ACEOF cannam@85: rm -f conftest.$ac_objext conftest$ac_exeext cannam@85: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@85: (eval $ac_link) 2>conftest.er1 cannam@85: ac_status=$? cannam@85: grep -v '^ *+' conftest.er1 >conftest.err cannam@85: rm -f conftest.er1 cannam@85: cat conftest.err >&5 cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); } && cannam@85: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; } && cannam@85: { ac_try='test -s conftest$ac_exeext' cannam@85: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@85: (eval $ac_try) 2>&5 cannam@85: ac_status=$? cannam@85: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@85: (exit $ac_status); }; }; then cannam@85: eval "$as_ac_var=yes" cannam@85: else cannam@85: echo "$as_me: failed program was:" >&5 cannam@85: sed 's/^/| /' conftest.$ac_ext >&5 cannam@85: cannam@85: eval "$as_ac_var=no" cannam@85: fi cannam@85: rm -f conftest.err conftest.$ac_objext \ cannam@85: conftest$ac_exeext conftest.$ac_ext cannam@85: fi cannam@85: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 cannam@85: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 cannam@85: if test `eval echo '${'$as_ac_var'}'` = yes; then cannam@85: cat >>confdefs.h <<_ACEOF cannam@85: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@85: _ACEOF cannam@85: cannam@85: fi cannam@85: done cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cannam@85: cat >confcache <<\_ACEOF cannam@85: # This file is a shell script that caches the results of configure cannam@85: # tests run on this system so they can be shared between configure cannam@85: # scripts and configure runs, see configure's option --config-cache. cannam@85: # It is not useful on other systems. If it contains results you don't cannam@85: # want to keep, you may remove or edit it. cannam@85: # cannam@85: # config.status only pays attention to the cache file if you give it cannam@85: # the --recheck option to rerun configure. cannam@85: # cannam@85: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@85: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@85: # following values. cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: # The following way of writing the cache mishandles newlines in values, cannam@85: # but we know of no workaround that is simple, portable, and efficient. cannam@85: # So, don't put newlines in cache variables' values. cannam@85: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@85: # and sets the high bit in the cache file unless we assign to the vars. cannam@85: { cannam@85: (set) 2>&1 | cannam@85: case `(ac_space=' '; set | grep ac_space) 2>&1` in cannam@85: *ac_space=\ *) cannam@85: # `set' does not quote correctly, so add quotes (double-quote cannam@85: # substitution turns \\\\ into \\, and sed turns \\ into \). cannam@85: sed -n \ cannam@85: "s/'/'\\\\''/g; cannam@85: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@85: ;; cannam@85: *) cannam@85: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@85: sed -n \ cannam@85: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" cannam@85: ;; cannam@85: esac; cannam@85: } | cannam@85: sed ' cannam@85: t clear cannam@85: : clear cannam@85: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@85: t end cannam@85: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@85: : end' >>confcache cannam@85: if diff $cache_file confcache >/dev/null 2>&1; then :; else cannam@85: if test -w $cache_file; then cannam@85: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cannam@85: cat confcache >$cache_file cannam@85: else cannam@85: echo "not updating unwritable cache $cache_file" cannam@85: fi cannam@85: fi cannam@85: rm -f confcache cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5 cannam@85: echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6 cannam@85: cannam@85: # Check whether --enable-speed or --disable-speed was given. cannam@85: if test "${enable_speed+set}" = set; then cannam@85: enableval="$enable_speed" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: optimize_for="speed" cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define OPT_SPEED 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: cannam@85: # Check whether --enable-accuracy or --disable-accuracy was given. cannam@85: if test "${enable_accuracy+set}" = set; then cannam@85: enableval="$enable_accuracy" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: if test "$optimize_for" = "speed" cannam@85: then cannam@85: optimize_for="both" cannam@85: else cannam@85: optimize_for="accuracy" cannam@85: fi cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define OPT_ACCURACY 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: cannam@85: echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5 cannam@85: echo "${ECHO_T}${optimize_for-default}" >&6 cannam@85: cannam@85: if test "$optimize_for" = "both" cannam@85: then cannam@85: { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5 cannam@85: echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5 cannam@85: echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6 cannam@85: # Check whether --enable-fpm or --disable-fpm was given. cannam@85: if test "${enable_fpm+set}" = set; then cannam@85: enableval="$enable_fpm" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) ;; cannam@85: no|default|approx) FPM="DEFAULT" ;; cannam@85: intel|i?86) FPM="INTEL" ;; cannam@85: arm) FPM="ARM" ;; cannam@85: mips) FPM="MIPS" ;; cannam@85: sparc) FPM="SPARC" ;; cannam@85: ppc|powerpc) FPM="PPC" ;; cannam@85: 64bit) FPM="64BIT" ;; cannam@85: float) FPM="FLOAT" ;; cannam@85: *) cannam@85: echo "$as_me:$LINENO: result: failed" >&5 cannam@85: echo "${ECHO_T}failed" >&6 cannam@85: { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5 cannam@85: echo "$as_me: error: bad --enable-fpm option" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: cannam@85: if test -z "$FPM" && test "$GCC" = yes cannam@85: then cannam@85: case "$host" in cannam@85: i?86-*) FPM="INTEL" ;; cannam@85: arm*-*) FPM="ARM" ;; cannam@85: mips*-*) FPM="MIPS" ;; cannam@85: sparc*-*) FPM="SPARC" ;; cannam@85: powerpc*-*) FPM="PPC" ;; cannam@85: # FIXME: need to test for 64-bit long long... cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5 cannam@85: echo "${ECHO_T}${FPM=DEFAULT}" >&6 cannam@85: cannam@85: if test "$FPM" = "DEFAULT" cannam@85: then cannam@85: { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5 cannam@85: echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;} cannam@85: fi cannam@85: cannam@85: FPM="-DFPM_$FPM" cannam@85: cannam@85: # Check whether --enable-sso or --disable-sso was given. cannam@85: if test "${enable_sso+set}" = set; then cannam@85: enableval="$enable_sso" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define OPT_SSO 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: cannam@85: # Check whether --enable-aso or --disable-aso was given. cannam@85: if test "${enable_aso+set}" = set; then cannam@85: enableval="$enable_aso" cannam@85: cannam@85: else cannam@85: enable_aso=yes cannam@85: fi; cannam@85: cannam@85: if test "$enable_aso" = yes cannam@85: then cannam@85: case "$host" in cannam@85: i?86-*) cannam@85: : #ASO="$ASO -DASO_INTERLEAVE1" cannam@85: ASO="$ASO -DASO_ZEROCHECK" cannam@85: : #not yet #ASO="$ASO -DASO_SYNTH" cannam@85: : #not yet #ASO_OBJS="synth_mmx.lo" cannam@85: ;; cannam@85: arm*-*) cannam@85: ASO="$ASO -DASO_INTERLEAVE1" cannam@85: ASO="$ASO -DASO_IMDCT" cannam@85: ASO_OBJS="imdct_l_arm.lo" cannam@85: ;; cannam@85: mips*-*) cannam@85: ASO="$ASO -DASO_INTERLEAVE2" cannam@85: ASO="$ASO -DASO_ZEROCHECK" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: cannam@85: echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5 cannam@85: echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6 cannam@85: # Check whether --enable-strict-iso or --disable-strict-iso was given. cannam@85: if test "${enable_strict_iso+set}" = set; then cannam@85: enableval="$enable_strict_iso" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define OPT_STRICT 1 cannam@85: _ACEOF cannam@85: cannam@85: interpretation="strict" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5 cannam@85: echo "${ECHO_T}${interpretation-best accepted practices}" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to enable profiling" >&5 cannam@85: echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6 cannam@85: # Check whether --enable-profiling or --disable-profiling was given. cannam@85: if test "${enable_profiling+set}" = set; then cannam@85: enableval="$enable_profiling" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) profile="-pg" ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5 cannam@85: echo "${ECHO_T}${enable_profiling-no}" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to enable debugging" >&5 cannam@85: echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 cannam@85: # Check whether --enable-debugging or --disable-debugging was given. cannam@85: if test "${enable_debugging+set}" = set; then cannam@85: enableval="$enable_debugging" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define DEBUG 1 cannam@85: _ACEOF cannam@85: cannam@85: optimize="" cannam@85: ;; cannam@85: no) cannam@85: if test -n "$profile" cannam@85: then cannam@85: { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5 cannam@85: echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define NDEBUG 1 cannam@85: _ACEOF cannam@85: cannam@85: debug="" cannam@85: if test "$GCC" = yes cannam@85: then cannam@85: optimize="$optimize -fomit-frame-pointer" cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5 cannam@85: echo "${ECHO_T}${enable_debugging-default}" >&6 cannam@85: cannam@85: echo "$as_me:$LINENO: checking whether to enable experimental code" >&5 cannam@85: echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6 cannam@85: # Check whether --enable-experimental or --disable-experimental was given. cannam@85: if test "${enable_experimental+set}" = set; then cannam@85: enableval="$enable_experimental" cannam@85: cannam@85: case "$enableval" in cannam@85: yes) cannam@85: cannam@85: cat >>confdefs.h <<\_ACEOF cannam@85: #define EXPERIMENTAL 1 cannam@85: _ACEOF cannam@85: cannam@85: ;; cannam@85: esac cannam@85: cannam@85: fi; cannam@85: echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5 cannam@85: echo "${ECHO_T}${enable_experimental-no}" >&6 cannam@85: cannam@85: cannam@85: test -n "$arch" && CFLAGS="$CFLAGS $arch" cannam@85: test -n "$debug" && CFLAGS="$CFLAGS $debug" cannam@85: test -n "$optimize" && CFLAGS="$CFLAGS $optimize" cannam@85: test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile" cannam@85: cannam@85: cannam@85: ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list" cannam@85: cannam@85: cat >confcache <<\_ACEOF cannam@85: # This file is a shell script that caches the results of configure cannam@85: # tests run on this system so they can be shared between configure cannam@85: # scripts and configure runs, see configure's option --config-cache. cannam@85: # It is not useful on other systems. If it contains results you don't cannam@85: # want to keep, you may remove or edit it. cannam@85: # cannam@85: # config.status only pays attention to the cache file if you give it cannam@85: # the --recheck option to rerun configure. cannam@85: # cannam@85: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@85: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@85: # following values. cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: # The following way of writing the cache mishandles newlines in values, cannam@85: # but we know of no workaround that is simple, portable, and efficient. cannam@85: # So, don't put newlines in cache variables' values. cannam@85: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@85: # and sets the high bit in the cache file unless we assign to the vars. cannam@85: { cannam@85: (set) 2>&1 | cannam@85: case `(ac_space=' '; set | grep ac_space) 2>&1` in cannam@85: *ac_space=\ *) cannam@85: # `set' does not quote correctly, so add quotes (double-quote cannam@85: # substitution turns \\\\ into \\, and sed turns \\ into \). cannam@85: sed -n \ cannam@85: "s/'/'\\\\''/g; cannam@85: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@85: ;; cannam@85: *) cannam@85: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@85: sed -n \ cannam@85: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" cannam@85: ;; cannam@85: esac; cannam@85: } | cannam@85: sed ' cannam@85: t clear cannam@85: : clear cannam@85: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@85: t end cannam@85: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@85: : end' >>confcache cannam@85: if diff $cache_file confcache >/dev/null 2>&1; then :; else cannam@85: if test -w $cache_file; then cannam@85: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cannam@85: cat confcache >$cache_file cannam@85: else cannam@85: echo "not updating unwritable cache $cache_file" cannam@85: fi cannam@85: fi cannam@85: rm -f confcache cannam@85: cannam@85: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@85: # Let make expand exec_prefix. cannam@85: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@85: cannam@85: # VPATH may cause trouble with some makes, so we remove $(srcdir), cannam@85: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and cannam@85: # trailing colons and then remove the whole line if VPATH becomes empty cannam@85: # (actually we leave an empty line to preserve line numbers). cannam@85: if test "x$srcdir" = x.; then cannam@85: ac_vpsub='/^[ ]*VPATH[ ]*=/{ cannam@85: s/:*\$(srcdir):*/:/; cannam@85: s/:*\${srcdir}:*/:/; cannam@85: s/:*@srcdir@:*/:/; cannam@85: s/^\([^=]*=[ ]*\):*/\1/; cannam@85: s/:*$//; cannam@85: s/^[^=]*=[ ]*$//; cannam@85: }' cannam@85: fi cannam@85: cannam@85: DEFS=-DHAVE_CONFIG_H cannam@85: cannam@85: ac_libobjs= cannam@85: ac_ltlibobjs= cannam@85: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@85: # 1. Remove the extension, and $U if already installed. cannam@85: ac_i=`echo "$ac_i" | cannam@85: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` cannam@85: # 2. Add them. cannam@85: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" cannam@85: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' cannam@85: done cannam@85: LIBOBJS=$ac_libobjs cannam@85: cannam@85: LTLIBOBJS=$ac_ltlibobjs cannam@85: cannam@85: cannam@85: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then cannam@85: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&5 cannam@85: echo "$as_me: error: conditional \"AMDEP\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then cannam@85: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&5 cannam@85: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then cannam@85: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&5 cannam@85: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. cannam@85: Usually this means the macro was only invoked conditionally." >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: cannam@85: : ${CONFIG_STATUS=./config.status} cannam@85: ac_clean_files_save=$ac_clean_files cannam@85: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@85: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 cannam@85: echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@85: cat >$CONFIG_STATUS <<_ACEOF cannam@85: #! $SHELL cannam@85: # Generated by $as_me. cannam@85: # Run this file to recreate the current configuration. cannam@85: # Compiler output produced by configure, useful for debugging cannam@85: # configure, is in config.log if it exists. cannam@85: cannam@85: debug=false cannam@85: ac_cs_recheck=false cannam@85: ac_cs_silent=false cannam@85: SHELL=\${CONFIG_SHELL-$SHELL} cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: ## --------------------- ## cannam@85: ## M4sh Initialization. ## cannam@85: ## --------------------- ## cannam@85: cannam@85: # Be Bourne compatible cannam@85: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@85: emulate sh cannam@85: NULLCMD=: cannam@85: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@85: # is contrary to our usage. Disable this feature. cannam@85: alias -g '${1+"$@"}'='"$@"' cannam@85: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then cannam@85: set -o posix cannam@85: fi cannam@85: DUALCASE=1; export DUALCASE # for MKS sh cannam@85: cannam@85: # Support unset when possible. cannam@85: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@85: as_unset=unset cannam@85: else cannam@85: as_unset=false cannam@85: fi cannam@85: cannam@85: cannam@85: # Work around bugs in pre-3.0 UWIN ksh. cannam@85: $as_unset ENV MAIL MAILPATH cannam@85: PS1='$ ' cannam@85: PS2='> ' cannam@85: PS4='+ ' cannam@85: cannam@85: # NLS nuisances. cannam@85: for as_var in \ cannam@85: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@85: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@85: LC_TELEPHONE LC_TIME cannam@85: do cannam@85: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@85: eval $as_var=C; export $as_var cannam@85: else cannam@85: $as_unset $as_var cannam@85: fi cannam@85: done cannam@85: cannam@85: # Required to use basename. cannam@85: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@85: as_expr=expr cannam@85: else cannam@85: as_expr=false cannam@85: fi cannam@85: cannam@85: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then cannam@85: as_basename=basename cannam@85: else cannam@85: as_basename=false cannam@85: fi cannam@85: cannam@85: cannam@85: # Name of the executable. cannam@85: as_me=`$as_basename "$0" || cannam@85: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@85: X"$0" : 'X\(//\)$' \| \ cannam@85: X"$0" : 'X\(/\)$' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X/"$0" | cannam@85: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } cannam@85: /^X\/\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\/\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: cannam@85: cannam@85: # PATH needs CR, and LINENO needs CR and PATH. cannam@85: # Avoid depending upon Character Ranges. cannam@85: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@85: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@85: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@85: as_cr_digits='0123456789' cannam@85: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@85: cannam@85: # The user is always right. cannam@85: if test "${PATH_SEPARATOR+set}" != set; then cannam@85: echo "#! /bin/sh" >conf$$.sh cannam@85: echo "exit 0" >>conf$$.sh cannam@85: chmod +x conf$$.sh cannam@85: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@85: PATH_SEPARATOR=';' cannam@85: else cannam@85: PATH_SEPARATOR=: cannam@85: fi cannam@85: rm -f conf$$.sh cannam@85: fi cannam@85: cannam@85: cannam@85: as_lineno_1=$LINENO cannam@85: as_lineno_2=$LINENO cannam@85: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@85: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@85: test "x$as_lineno_3" = "x$as_lineno_2" || { cannam@85: # Find who we are. Look in the path if we contain no path at all cannam@85: # relative or not. cannam@85: case $0 in cannam@85: *[\\/]* ) as_myself=$0 ;; cannam@85: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@85: done cannam@85: cannam@85: ;; cannam@85: esac cannam@85: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@85: # in which case we are not to be found in the path. cannam@85: if test "x$as_myself" = x; then cannam@85: as_myself=$0 cannam@85: fi cannam@85: if test ! -f "$as_myself"; then cannam@85: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 cannam@85: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi cannam@85: case $CONFIG_SHELL in cannam@85: '') cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for as_base in sh bash ksh sh5; do cannam@85: case $as_dir in cannam@85: /*) cannam@85: if ("$as_dir/$as_base" -c ' cannam@85: as_lineno_1=$LINENO cannam@85: as_lineno_2=$LINENO cannam@85: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@85: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@85: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then cannam@85: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } cannam@85: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } cannam@85: CONFIG_SHELL=$as_dir/$as_base cannam@85: export CONFIG_SHELL cannam@85: exec "$CONFIG_SHELL" "$0" ${1+"$@"} cannam@85: fi;; cannam@85: esac cannam@85: done cannam@85: done cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@85: # uniformly replaced by the line number. The first 'sed' inserts a cannam@85: # line-number line before each line; the second 'sed' does the real cannam@85: # work. The second script uses 'N' to pair each line-number line cannam@85: # with the numbered line, and appends trailing '-' during cannam@85: # substitution so that $LINENO is not a special case at line end. cannam@85: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@85: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) cannam@85: sed '=' <$as_myself | cannam@85: sed ' cannam@85: N cannam@85: s,$,-, cannam@85: : loop cannam@85: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, cannam@85: t loop cannam@85: s,-$,, cannam@85: s,^['$as_cr_digits']*\n,, cannam@85: ' >$as_me.lineno && cannam@85: chmod +x $as_me.lineno || cannam@85: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 cannam@85: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: cannam@85: # Don't try to exec as it changes $[0], causing all sort of problems cannam@85: # (the dirname of $[0] is not the place where we might find the cannam@85: # original and so on. Autoconf is especially sensible to this). cannam@85: . ./$as_me.lineno cannam@85: # Exit status is that of the last command. cannam@85: exit cannam@85: } cannam@85: cannam@85: cannam@85: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in cannam@85: *c*,-n*) ECHO_N= ECHO_C=' cannam@85: ' ECHO_T=' ' ;; cannam@85: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; cannam@85: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; cannam@85: esac cannam@85: cannam@85: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@85: as_expr=expr cannam@85: else cannam@85: as_expr=false cannam@85: fi cannam@85: cannam@85: rm -f conf$$ conf$$.exe conf$$.file cannam@85: echo >conf$$.file cannam@85: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@85: # We could just check for DJGPP; but this test a) works b) is more generic cannam@85: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). cannam@85: if test -f conf$$.exe; then cannam@85: # Don't use ln at all; we don't have any links cannam@85: as_ln_s='cp -p' cannam@85: else cannam@85: as_ln_s='ln -s' cannam@85: fi cannam@85: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@85: as_ln_s=ln cannam@85: else cannam@85: as_ln_s='cp -p' cannam@85: fi cannam@85: rm -f conf$$ conf$$.exe conf$$.file cannam@85: cannam@85: if mkdir -p . 2>/dev/null; then cannam@85: as_mkdir_p=: cannam@85: else cannam@85: test -d ./-p && rmdir ./-p cannam@85: as_mkdir_p=false cannam@85: fi cannam@85: cannam@85: as_executable_p="test -f" cannam@85: cannam@85: # Sed expression to map a string onto a valid CPP name. cannam@85: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@85: cannam@85: # Sed expression to map a string onto a valid variable name. cannam@85: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@85: cannam@85: cannam@85: # IFS cannam@85: # We need space, tab and new line, in precisely that order. cannam@85: as_nl=' cannam@85: ' cannam@85: IFS=" $as_nl" cannam@85: cannam@85: # CDPATH. cannam@85: $as_unset CDPATH cannam@85: cannam@85: exec 6>&1 cannam@85: cannam@85: # Open the log real soon, to keep \$[0] and so on meaningful, and to cannam@85: # report actual input values of CONFIG_FILES etc. instead of their cannam@85: # values after options handling. Logging --version etc. is OK. cannam@85: exec 5>>config.log cannam@85: { cannam@85: echo cannam@85: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@85: ## Running $as_me. ## cannam@85: _ASBOX cannam@85: } >&5 cannam@85: cat >&5 <<_CSEOF cannam@85: cannam@85: This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was cannam@85: generated by GNU Autoconf 2.59. Invocation command line was cannam@85: cannam@85: CONFIG_FILES = $CONFIG_FILES cannam@85: CONFIG_HEADERS = $CONFIG_HEADERS cannam@85: CONFIG_LINKS = $CONFIG_LINKS cannam@85: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@85: $ $0 $@ cannam@85: cannam@85: _CSEOF cannam@85: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 cannam@85: echo >&5 cannam@85: _ACEOF cannam@85: cannam@85: # Files that config.status was made for. cannam@85: if test -n "$ac_config_files"; then cannam@85: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS cannam@85: fi cannam@85: cannam@85: if test -n "$ac_config_headers"; then cannam@85: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS cannam@85: fi cannam@85: cannam@85: if test -n "$ac_config_links"; then cannam@85: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS cannam@85: fi cannam@85: cannam@85: if test -n "$ac_config_commands"; then cannam@85: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS cannam@85: fi cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: cannam@85: ac_cs_usage="\ cannam@85: \`$as_me' instantiates files from templates according to the cannam@85: current configuration. cannam@85: cannam@85: Usage: $0 [OPTIONS] [FILE]... cannam@85: cannam@85: -h, --help print this help, then exit cannam@85: -V, --version print version number, then exit cannam@85: -q, --quiet do not print progress messages cannam@85: -d, --debug don't remove temporary files cannam@85: --recheck update $as_me by reconfiguring in the same conditions cannam@85: --file=FILE[:TEMPLATE] cannam@85: instantiate the configuration file FILE cannam@85: --header=FILE[:TEMPLATE] cannam@85: instantiate the configuration header FILE cannam@85: cannam@85: Configuration files: cannam@85: $config_files cannam@85: cannam@85: Configuration headers: cannam@85: $config_headers cannam@85: cannam@85: Configuration commands: cannam@85: $config_commands cannam@85: cannam@85: Report bugs to ." cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<_ACEOF cannam@85: ac_cs_version="\\ cannam@85: MPEG Audio Decoder config.status 0.15.1b cannam@85: configured by $0, generated by GNU Autoconf 2.59, cannam@85: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" cannam@85: cannam@85: Copyright (C) 2003 Free Software Foundation, Inc. cannam@85: This config.status script is free software; the Free Software Foundation cannam@85: gives unlimited permission to copy, distribute and modify it." cannam@85: srcdir=$srcdir cannam@85: INSTALL="$INSTALL" cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: # If no file are specified by the user, then we need to provide default cannam@85: # value. By we need to know if files were specified by the user. cannam@85: ac_need_defaults=: cannam@85: while test $# != 0 cannam@85: do cannam@85: case $1 in cannam@85: --*=*) cannam@85: ac_option=`expr "x$1" : 'x\([^=]*\)='` cannam@85: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` cannam@85: ac_shift=: cannam@85: ;; cannam@85: -*) cannam@85: ac_option=$1 cannam@85: ac_optarg=$2 cannam@85: ac_shift=shift cannam@85: ;; cannam@85: *) # This is not an option, so the user has probably given explicit cannam@85: # arguments. cannam@85: ac_option=$1 cannam@85: ac_need_defaults=false;; cannam@85: esac cannam@85: cannam@85: case $ac_option in cannam@85: # Handling of the options. cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@85: ac_cs_recheck=: ;; cannam@85: --version | --vers* | -V ) cannam@85: echo "$ac_cs_version"; exit 0 ;; cannam@85: --he | --h) cannam@85: # Conflict between --help and --header cannam@85: { { echo "$as_me:$LINENO: error: ambiguous option: $1 cannam@85: Try \`$0 --help' for more information." >&5 cannam@85: echo "$as_me: error: ambiguous option: $1 cannam@85: Try \`$0 --help' for more information." >&2;} cannam@85: { (exit 1); exit 1; }; };; cannam@85: --help | --hel | -h ) cannam@85: echo "$ac_cs_usage"; exit 0 ;; cannam@85: --debug | --d* | -d ) cannam@85: debug=: ;; cannam@85: --file | --fil | --fi | --f ) cannam@85: $ac_shift cannam@85: CONFIG_FILES="$CONFIG_FILES $ac_optarg" cannam@85: ac_need_defaults=false;; cannam@85: --header | --heade | --head | --hea ) cannam@85: $ac_shift cannam@85: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" cannam@85: ac_need_defaults=false;; cannam@85: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@85: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@85: ac_cs_silent=: ;; cannam@85: cannam@85: # This is an error. cannam@85: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 cannam@85: Try \`$0 --help' for more information." >&5 cannam@85: echo "$as_me: error: unrecognized option: $1 cannam@85: Try \`$0 --help' for more information." >&2;} cannam@85: { (exit 1); exit 1; }; } ;; cannam@85: cannam@85: *) ac_config_targets="$ac_config_targets $1" ;; cannam@85: cannam@85: esac cannam@85: shift cannam@85: done cannam@85: cannam@85: ac_configure_extra_args= cannam@85: cannam@85: if $ac_cs_silent; then cannam@85: exec 6>/dev/null cannam@85: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@85: fi cannam@85: cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<_ACEOF cannam@85: if \$ac_cs_recheck; then cannam@85: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 cannam@85: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@85: fi cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<_ACEOF cannam@85: # cannam@85: # INIT-COMMANDS section. cannam@85: # cannam@85: cannam@85: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: for ac_config_target in $ac_config_targets cannam@85: do cannam@85: case "$ac_config_target" in cannam@85: # Handling of arguments. cannam@85: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@85: "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;; cannam@85: "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;; cannam@85: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; cannam@85: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; cannam@85: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 cannam@85: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} cannam@85: { (exit 1); exit 1; }; };; cannam@85: esac cannam@85: done cannam@85: cannam@85: # If the user did not use the arguments to specify the items to instantiate, cannam@85: # then the envvar interface is used. Set only those that are not. cannam@85: # We use the long form for the default assignment because of an extremely cannam@85: # bizarre bug on SunOS 4.1.3. cannam@85: if $ac_need_defaults; then cannam@85: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@85: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers cannam@85: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands cannam@85: fi cannam@85: cannam@85: # Have a temporary directory for convenience. Make it in the build tree cannam@85: # simply because there is no reason to put it here, and in addition, cannam@85: # creating and moving files from /tmp can sometimes cause problems. cannam@85: # Create a temporary directory, and hook for its removal unless debugging. cannam@85: $debug || cannam@85: { cannam@85: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 cannam@85: trap '{ (exit 1); exit 1; }' 1 2 13 15 cannam@85: } cannam@85: cannam@85: # Create a (secure) tmp directory for tmp files. cannam@85: cannam@85: { cannam@85: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && cannam@85: test -n "$tmp" && test -d "$tmp" cannam@85: } || cannam@85: { cannam@85: tmp=./confstat$$-$RANDOM cannam@85: (umask 077 && mkdir $tmp) cannam@85: } || cannam@85: { cannam@85: echo "$me: cannot create a temporary directory in ." >&2 cannam@85: { (exit 1); exit 1; } cannam@85: } cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<_ACEOF cannam@85: cannam@85: # cannam@85: # CONFIG_FILES section. cannam@85: # cannam@85: cannam@85: # No need to generate the scripts if there are no CONFIG_FILES. cannam@85: # This happens for instance when ./config.status config.h cannam@85: if test -n "\$CONFIG_FILES"; then cannam@85: # Protect against being on the right side of a sed subst in config.status. cannam@85: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; cannam@85: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF cannam@85: s,@SHELL@,$SHELL,;t t cannam@85: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t cannam@85: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t cannam@85: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t cannam@85: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t cannam@85: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t cannam@85: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t cannam@85: s,@exec_prefix@,$exec_prefix,;t t cannam@85: s,@prefix@,$prefix,;t t cannam@85: s,@program_transform_name@,$program_transform_name,;t t cannam@85: s,@bindir@,$bindir,;t t cannam@85: s,@sbindir@,$sbindir,;t t cannam@85: s,@libexecdir@,$libexecdir,;t t cannam@85: s,@datadir@,$datadir,;t t cannam@85: s,@sysconfdir@,$sysconfdir,;t t cannam@85: s,@sharedstatedir@,$sharedstatedir,;t t cannam@85: s,@localstatedir@,$localstatedir,;t t cannam@85: s,@libdir@,$libdir,;t t cannam@85: s,@includedir@,$includedir,;t t cannam@85: s,@oldincludedir@,$oldincludedir,;t t cannam@85: s,@infodir@,$infodir,;t t cannam@85: s,@mandir@,$mandir,;t t cannam@85: s,@build_alias@,$build_alias,;t t cannam@85: s,@host_alias@,$host_alias,;t t cannam@85: s,@target_alias@,$target_alias,;t t cannam@85: s,@DEFS@,$DEFS,;t t cannam@85: s,@ECHO_C@,$ECHO_C,;t t cannam@85: s,@ECHO_N@,$ECHO_N,;t t cannam@85: s,@ECHO_T@,$ECHO_T,;t t cannam@85: s,@LIBS@,$LIBS,;t t cannam@85: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t cannam@85: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t cannam@85: s,@INSTALL_DATA@,$INSTALL_DATA,;t t cannam@85: s,@CYGPATH_W@,$CYGPATH_W,;t t cannam@85: s,@PACKAGE@,$PACKAGE,;t t cannam@85: s,@VERSION@,$VERSION,;t t cannam@85: s,@ACLOCAL@,$ACLOCAL,;t t cannam@85: s,@AUTOCONF@,$AUTOCONF,;t t cannam@85: s,@AUTOMAKE@,$AUTOMAKE,;t t cannam@85: s,@AUTOHEADER@,$AUTOHEADER,;t t cannam@85: s,@MAKEINFO@,$MAKEINFO,;t t cannam@85: s,@AMTAR@,$AMTAR,;t t cannam@85: s,@install_sh@,$install_sh,;t t cannam@85: s,@STRIP@,$STRIP,;t t cannam@85: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t cannam@85: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t cannam@85: s,@mkdir_p@,$mkdir_p,;t t cannam@85: s,@AWK@,$AWK,;t t cannam@85: s,@SET_MAKE@,$SET_MAKE,;t t cannam@85: s,@am__leading_dot@,$am__leading_dot,;t t cannam@85: s,@build@,$build,;t t cannam@85: s,@build_cpu@,$build_cpu,;t t cannam@85: s,@build_vendor@,$build_vendor,;t t cannam@85: s,@build_os@,$build_os,;t t cannam@85: s,@host@,$host,;t t cannam@85: s,@host_cpu@,$host_cpu,;t t cannam@85: s,@host_vendor@,$host_vendor,;t t cannam@85: s,@host_os@,$host_os,;t t cannam@85: s,@CC@,$CC,;t t cannam@85: s,@CFLAGS@,$CFLAGS,;t t cannam@85: s,@LDFLAGS@,$LDFLAGS,;t t cannam@85: s,@CPPFLAGS@,$CPPFLAGS,;t t cannam@85: s,@ac_ct_CC@,$ac_ct_CC,;t t cannam@85: s,@EXEEXT@,$EXEEXT,;t t cannam@85: s,@OBJEXT@,$OBJEXT,;t t cannam@85: s,@DEPDIR@,$DEPDIR,;t t cannam@85: s,@am__include@,$am__include,;t t cannam@85: s,@am__quote@,$am__quote,;t t cannam@85: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t cannam@85: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t cannam@85: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t cannam@85: s,@CCDEPMODE@,$CCDEPMODE,;t t cannam@85: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t cannam@85: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t cannam@85: s,@CCAS@,$CCAS,;t t cannam@85: s,@CCASFLAGS@,$CCASFLAGS,;t t cannam@85: s,@EGREP@,$EGREP,;t t cannam@85: s,@LN_S@,$LN_S,;t t cannam@85: s,@ECHO@,$ECHO,;t t cannam@85: s,@AR@,$AR,;t t cannam@85: s,@ac_ct_AR@,$ac_ct_AR,;t t cannam@85: s,@RANLIB@,$RANLIB,;t t cannam@85: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t cannam@85: s,@CPP@,$CPP,;t t cannam@85: s,@CXX@,$CXX,;t t cannam@85: s,@CXXFLAGS@,$CXXFLAGS,;t t cannam@85: s,@ac_ct_CXX@,$ac_ct_CXX,;t t cannam@85: s,@CXXDEPMODE@,$CXXDEPMODE,;t t cannam@85: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t cannam@85: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t cannam@85: s,@CXXCPP@,$CXXCPP,;t t cannam@85: s,@F77@,$F77,;t t cannam@85: s,@FFLAGS@,$FFLAGS,;t t cannam@85: s,@ac_ct_F77@,$ac_ct_F77,;t t cannam@85: s,@LIBTOOL@,$LIBTOOL,;t t cannam@85: s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t cannam@85: s,@FPM@,$FPM,;t t cannam@85: s,@ASO@,$ASO,;t t cannam@85: s,@ASO_OBJS@,$ASO_OBJS,;t t cannam@85: s,@LIBOBJS@,$LIBOBJS,;t t cannam@85: s,@LTLIBOBJS@,$LTLIBOBJS,;t t cannam@85: CEOF cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: # Split the substitutions into bite-sized pieces for seds with cannam@85: # small command number limits, like on Digital OSF/1 and HP-UX. cannam@85: ac_max_sed_lines=48 cannam@85: ac_sed_frag=1 # Number of current file. cannam@85: ac_beg=1 # First line for current file. cannam@85: ac_end=$ac_max_sed_lines # Line after last line for current file. cannam@85: ac_more_lines=: cannam@85: ac_sed_cmds= cannam@85: while $ac_more_lines; do cannam@85: if test $ac_beg -gt 1; then cannam@85: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag cannam@85: else cannam@85: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag cannam@85: fi cannam@85: if test ! -s $tmp/subs.frag; then cannam@85: ac_more_lines=false cannam@85: else cannam@85: # The purpose of the label and of the branching condition is to cannam@85: # speed up the sed processing (if there are no `@' at all, there cannam@85: # is no need to browse any of the substitutions). cannam@85: # These are the two extra sed commands mentioned above. cannam@85: (echo ':t cannam@85: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed cannam@85: if test -z "$ac_sed_cmds"; then cannam@85: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" cannam@85: else cannam@85: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" cannam@85: fi cannam@85: ac_sed_frag=`expr $ac_sed_frag + 1` cannam@85: ac_beg=$ac_end cannam@85: ac_end=`expr $ac_end + $ac_max_sed_lines` cannam@85: fi cannam@85: done cannam@85: if test -z "$ac_sed_cmds"; then cannam@85: ac_sed_cmds=cat cannam@85: fi cannam@85: fi # test -n "$CONFIG_FILES" cannam@85: cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue cannam@85: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". cannam@85: case $ac_file in cannam@85: - | *:- | *:-:* ) # input from stdin cannam@85: cat >$tmp/stdin cannam@85: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@85: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@85: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@85: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@85: * ) ac_file_in=$ac_file.in ;; cannam@85: esac cannam@85: cannam@85: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. cannam@85: ac_dir=`(dirname "$ac_file") 2>/dev/null || cannam@85: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@85: X"$ac_file" : 'X\(//\)$' \| \ cannam@85: X"$ac_file" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$ac_file" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: { if $as_mkdir_p; then cannam@85: mkdir -p "$ac_dir" cannam@85: else cannam@85: as_dir="$ac_dir" cannam@85: as_dirs= cannam@85: while test ! -d "$as_dir"; do cannam@85: as_dirs="$as_dir $as_dirs" cannam@85: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@85: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@85: X"$as_dir" : 'X\(//\)$' \| \ cannam@85: X"$as_dir" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$as_dir" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: done cannam@85: test ! -n "$as_dirs" || mkdir $as_dirs cannam@85: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@85: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@85: { (exit 1); exit 1; }; }; } cannam@85: cannam@85: ac_builddir=. cannam@85: cannam@85: if test "$ac_dir" != .; then cannam@85: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@85: # A "../" for each directory in $ac_dir_suffix. cannam@85: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@85: else cannam@85: ac_dir_suffix= ac_top_builddir= cannam@85: fi cannam@85: cannam@85: case $srcdir in cannam@85: .) # No --srcdir option. We are building in place. cannam@85: ac_srcdir=. cannam@85: if test -z "$ac_top_builddir"; then cannam@85: ac_top_srcdir=. cannam@85: else cannam@85: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@85: fi ;; cannam@85: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@85: ac_srcdir=$srcdir$ac_dir_suffix; cannam@85: ac_top_srcdir=$srcdir ;; cannam@85: *) # Relative path. cannam@85: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@85: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@85: esac cannam@85: cannam@85: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@85: # the directories may not exist. cannam@85: case `pwd` in cannam@85: .) ac_abs_builddir="$ac_dir";; cannam@85: *) cannam@85: case "$ac_dir" in cannam@85: .) ac_abs_builddir=`pwd`;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@85: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) cannam@85: case ${ac_top_builddir}. in cannam@85: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) cannam@85: case $ac_srcdir in cannam@85: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) cannam@85: case $ac_top_srcdir in cannam@85: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: cannam@85: cannam@85: case $INSTALL in cannam@85: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; cannam@85: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; cannam@85: esac cannam@85: cannam@85: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@85: # use $as_me), people would be surprised to read: cannam@85: # /* config.h. Generated by config.status. */ cannam@85: if test x"$ac_file" = x-; then cannam@85: configure_input= cannam@85: else cannam@85: configure_input="$ac_file. " cannam@85: fi cannam@85: configure_input=$configure_input"Generated from `echo $ac_file_in | cannam@85: sed 's,.*/,,'` by configure." cannam@85: cannam@85: # First look for the input files in the build tree, otherwise in the cannam@85: # src tree. cannam@85: ac_file_inputs=`IFS=: cannam@85: for f in $ac_file_in; do cannam@85: case $f in cannam@85: -) echo $tmp/stdin ;; cannam@85: [\\/$]*) cannam@85: # Absolute (can't be DOS-style, as IFS=:) cannam@85: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@85: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: echo "$f";; cannam@85: *) # Relative cannam@85: if test -f "$f"; then cannam@85: # Build tree cannam@85: echo "$f" cannam@85: elif test -f "$srcdir/$f"; then cannam@85: # Source tree cannam@85: echo "$srcdir/$f" cannam@85: else cannam@85: # /dev/null tree cannam@85: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@85: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi;; cannam@85: esac cannam@85: done` || { (exit 1); exit 1; } cannam@85: cannam@85: if test x"$ac_file" != x-; then cannam@85: { echo "$as_me:$LINENO: creating $ac_file" >&5 cannam@85: echo "$as_me: creating $ac_file" >&6;} cannam@85: rm -f "$ac_file" cannam@85: fi cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<_ACEOF cannam@85: sed "$ac_vpsub cannam@85: $extrasub cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: :t cannam@85: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@85: s,@configure_input@,$configure_input,;t t cannam@85: s,@srcdir@,$ac_srcdir,;t t cannam@85: s,@abs_srcdir@,$ac_abs_srcdir,;t t cannam@85: s,@top_srcdir@,$ac_top_srcdir,;t t cannam@85: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t cannam@85: s,@builddir@,$ac_builddir,;t t cannam@85: s,@abs_builddir@,$ac_abs_builddir,;t t cannam@85: s,@top_builddir@,$ac_top_builddir,;t t cannam@85: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t cannam@85: s,@INSTALL@,$ac_INSTALL,;t t cannam@85: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out cannam@85: rm -f $tmp/stdin cannam@85: if test x"$ac_file" != x-; then cannam@85: mv $tmp/out $ac_file cannam@85: else cannam@85: cat $tmp/out cannam@85: rm -f $tmp/out cannam@85: fi cannam@85: cannam@85: done cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: cannam@85: # cannam@85: # CONFIG_HEADER section. cannam@85: # cannam@85: cannam@85: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where cannam@85: # NAME is the cpp macro being defined and VALUE is the value it is being given. cannam@85: # cannam@85: # ac_d sets the value in "#define NAME VALUE" lines. cannam@85: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' cannam@85: ac_dB='[ ].*$,\1#\2' cannam@85: ac_dC=' ' cannam@85: ac_dD=',;t' cannam@85: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". cannam@85: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' cannam@85: ac_uB='$,\1#\2define\3' cannam@85: ac_uC=' ' cannam@85: ac_uD=',;t' cannam@85: cannam@85: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue cannam@85: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". cannam@85: case $ac_file in cannam@85: - | *:- | *:-:* ) # input from stdin cannam@85: cat >$tmp/stdin cannam@85: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@85: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@85: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@85: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@85: * ) ac_file_in=$ac_file.in ;; cannam@85: esac cannam@85: cannam@85: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 cannam@85: echo "$as_me: creating $ac_file" >&6;} cannam@85: cannam@85: # First look for the input files in the build tree, otherwise in the cannam@85: # src tree. cannam@85: ac_file_inputs=`IFS=: cannam@85: for f in $ac_file_in; do cannam@85: case $f in cannam@85: -) echo $tmp/stdin ;; cannam@85: [\\/$]*) cannam@85: # Absolute (can't be DOS-style, as IFS=:) cannam@85: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@85: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: # Do quote $f, to prevent DOS paths from being IFS'd. cannam@85: echo "$f";; cannam@85: *) # Relative cannam@85: if test -f "$f"; then cannam@85: # Build tree cannam@85: echo "$f" cannam@85: elif test -f "$srcdir/$f"; then cannam@85: # Source tree cannam@85: echo "$srcdir/$f" cannam@85: else cannam@85: # /dev/null tree cannam@85: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@85: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@85: { (exit 1); exit 1; }; } cannam@85: fi;; cannam@85: esac cannam@85: done` || { (exit 1); exit 1; } cannam@85: # Remove the trailing spaces. cannam@85: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in cannam@85: cannam@85: _ACEOF cannam@85: cannam@85: # Transform confdefs.h into two sed scripts, `conftest.defines' and cannam@85: # `conftest.undefs', that substitutes the proper values into cannam@85: # config.h.in to produce config.h. The first handles `#define' cannam@85: # templates, and the second `#undef' templates. cannam@85: # And first: Protect against being on the right side of a sed subst in cannam@85: # config.status. Protect against being in an unquoted here document cannam@85: # in config.status. cannam@85: rm -f conftest.defines conftest.undefs cannam@85: # Using a here document instead of a string reduces the quoting nightmare. cannam@85: # Putting comments in sed scripts is not portable. cannam@85: # cannam@85: # `end' is used to avoid that the second main sed command (meant for cannam@85: # 0-ary CPP macros) applies to n-ary macro definitions. cannam@85: # See the Autoconf documentation for `clear'. cannam@85: cat >confdef2sed.sed <<\_ACEOF cannam@85: s/[\\&,]/\\&/g cannam@85: s,[\\$`],\\&,g cannam@85: t clear cannam@85: : clear cannam@85: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp cannam@85: t end cannam@85: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp cannam@85: : end cannam@85: _ACEOF cannam@85: # If some macros were called several times there might be several times cannam@85: # the same #defines, which is useless. Nevertheless, we may not want to cannam@85: # sort them, since we want the *last* AC-DEFINE to be honored. cannam@85: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines cannam@85: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs cannam@85: rm -f confdef2sed.sed cannam@85: cannam@85: # This sed command replaces #undef with comments. This is necessary, for cannam@85: # example, in the case of _POSIX_SOURCE, which is predefined and required cannam@85: # on some systems where configure will not decide to define it. cannam@85: cat >>conftest.undefs <<\_ACEOF cannam@85: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, cannam@85: _ACEOF cannam@85: cannam@85: # Break up conftest.defines because some shells have a limit on the size cannam@85: # of here documents, and old seds have small limits too (100 cmds). cannam@85: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS cannam@85: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS cannam@85: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS cannam@85: echo ' :' >>$CONFIG_STATUS cannam@85: rm -f conftest.tail cannam@85: while grep . conftest.defines >/dev/null cannam@85: do cannam@85: # Write a limited-size here document to $tmp/defines.sed. cannam@85: echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS cannam@85: # Speed up: don't consider the non `#define' lines. cannam@85: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS cannam@85: # Work around the forget-to-reset-the-flag bug. cannam@85: echo 't clr' >>$CONFIG_STATUS cannam@85: echo ': clr' >>$CONFIG_STATUS cannam@85: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS cannam@85: echo 'CEOF cannam@85: sed -f $tmp/defines.sed $tmp/in >$tmp/out cannam@85: rm -f $tmp/in cannam@85: mv $tmp/out $tmp/in cannam@85: ' >>$CONFIG_STATUS cannam@85: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail cannam@85: rm -f conftest.defines cannam@85: mv conftest.tail conftest.defines cannam@85: done cannam@85: rm -f conftest.defines cannam@85: echo ' fi # grep' >>$CONFIG_STATUS cannam@85: echo >>$CONFIG_STATUS cannam@85: cannam@85: # Break up conftest.undefs because some shells have a limit on the size cannam@85: # of here documents, and old seds have small limits too (100 cmds). cannam@85: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS cannam@85: rm -f conftest.tail cannam@85: while grep . conftest.undefs >/dev/null cannam@85: do cannam@85: # Write a limited-size here document to $tmp/undefs.sed. cannam@85: echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS cannam@85: # Speed up: don't consider the non `#undef' cannam@85: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS cannam@85: # Work around the forget-to-reset-the-flag bug. cannam@85: echo 't clr' >>$CONFIG_STATUS cannam@85: echo ': clr' >>$CONFIG_STATUS cannam@85: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS cannam@85: echo 'CEOF cannam@85: sed -f $tmp/undefs.sed $tmp/in >$tmp/out cannam@85: rm -f $tmp/in cannam@85: mv $tmp/out $tmp/in cannam@85: ' >>$CONFIG_STATUS cannam@85: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail cannam@85: rm -f conftest.undefs cannam@85: mv conftest.tail conftest.undefs cannam@85: done cannam@85: rm -f conftest.undefs cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@85: # use $as_me), people would be surprised to read: cannam@85: # /* config.h. Generated by config.status. */ cannam@85: if test x"$ac_file" = x-; then cannam@85: echo "/* Generated by configure. */" >$tmp/config.h cannam@85: else cannam@85: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h cannam@85: fi cannam@85: cat $tmp/in >>$tmp/config.h cannam@85: rm -f $tmp/in cannam@85: if test x"$ac_file" != x-; then cannam@85: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then cannam@85: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 cannam@85: echo "$as_me: $ac_file is unchanged" >&6;} cannam@85: else cannam@85: ac_dir=`(dirname "$ac_file") 2>/dev/null || cannam@85: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@85: X"$ac_file" : 'X\(//\)$' \| \ cannam@85: X"$ac_file" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$ac_file" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: { if $as_mkdir_p; then cannam@85: mkdir -p "$ac_dir" cannam@85: else cannam@85: as_dir="$ac_dir" cannam@85: as_dirs= cannam@85: while test ! -d "$as_dir"; do cannam@85: as_dirs="$as_dir $as_dirs" cannam@85: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@85: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@85: X"$as_dir" : 'X\(//\)$' \| \ cannam@85: X"$as_dir" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$as_dir" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: done cannam@85: test ! -n "$as_dirs" || mkdir $as_dirs cannam@85: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@85: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@85: { (exit 1); exit 1; }; }; } cannam@85: cannam@85: rm -f $ac_file cannam@85: mv $tmp/config.h $ac_file cannam@85: fi cannam@85: else cannam@85: cat $tmp/config.h cannam@85: rm -f $tmp/config.h cannam@85: fi cannam@85: # Compute $ac_file's index in $config_headers. cannam@85: _am_stamp_count=1 cannam@85: for _am_header in $config_headers :; do cannam@85: case $_am_header in cannam@85: $ac_file | $ac_file:* ) cannam@85: break ;; cannam@85: * ) cannam@85: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@85: esac cannam@85: done cannam@85: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || cannam@85: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X$ac_file : 'X\(//\)[^/]' \| \ cannam@85: X$ac_file : 'X\(//\)$' \| \ cannam@85: X$ac_file : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X$ac_file | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'`/stamp-h$_am_stamp_count cannam@85: done cannam@85: _ACEOF cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: cannam@85: # cannam@85: # CONFIG_COMMANDS section. cannam@85: # cannam@85: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue cannam@85: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` cannam@85: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@85: ac_dir=`(dirname "$ac_dest") 2>/dev/null || cannam@85: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$ac_dest" : 'X\(//\)[^/]' \| \ cannam@85: X"$ac_dest" : 'X\(//\)$' \| \ cannam@85: X"$ac_dest" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$ac_dest" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: { if $as_mkdir_p; then cannam@85: mkdir -p "$ac_dir" cannam@85: else cannam@85: as_dir="$ac_dir" cannam@85: as_dirs= cannam@85: while test ! -d "$as_dir"; do cannam@85: as_dirs="$as_dir $as_dirs" cannam@85: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@85: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@85: X"$as_dir" : 'X\(//\)$' \| \ cannam@85: X"$as_dir" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$as_dir" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: done cannam@85: test ! -n "$as_dirs" || mkdir $as_dirs cannam@85: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@85: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@85: { (exit 1); exit 1; }; }; } cannam@85: cannam@85: ac_builddir=. cannam@85: cannam@85: if test "$ac_dir" != .; then cannam@85: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@85: # A "../" for each directory in $ac_dir_suffix. cannam@85: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@85: else cannam@85: ac_dir_suffix= ac_top_builddir= cannam@85: fi cannam@85: cannam@85: case $srcdir in cannam@85: .) # No --srcdir option. We are building in place. cannam@85: ac_srcdir=. cannam@85: if test -z "$ac_top_builddir"; then cannam@85: ac_top_srcdir=. cannam@85: else cannam@85: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@85: fi ;; cannam@85: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@85: ac_srcdir=$srcdir$ac_dir_suffix; cannam@85: ac_top_srcdir=$srcdir ;; cannam@85: *) # Relative path. cannam@85: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@85: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@85: esac cannam@85: cannam@85: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@85: # the directories may not exist. cannam@85: case `pwd` in cannam@85: .) ac_abs_builddir="$ac_dir";; cannam@85: *) cannam@85: case "$ac_dir" in cannam@85: .) ac_abs_builddir=`pwd`;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@85: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) cannam@85: case ${ac_top_builddir}. in cannam@85: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@85: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) cannam@85: case $ac_srcdir in cannam@85: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@85: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: case $ac_abs_builddir in cannam@85: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) cannam@85: case $ac_top_srcdir in cannam@85: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@85: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@85: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@85: esac;; cannam@85: esac cannam@85: cannam@85: cannam@85: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 cannam@85: echo "$as_me: executing $ac_dest commands" >&6;} cannam@85: case $ac_dest in cannam@85: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do cannam@85: # Strip MF so we end up with the name of the file. cannam@85: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@85: # Check whether this is an Automake generated Makefile or not. cannam@85: # We used to match only the files named `Makefile.in', but cannam@85: # some people rename them; so instead we look at the file content. cannam@85: # Grep'ing the first line is not enough: some people post-process cannam@85: # each Makefile.in and add a new line on top of each file to say so. cannam@85: # So let's grep whole file. cannam@85: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then cannam@85: dirpart=`(dirname "$mf") 2>/dev/null || cannam@85: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$mf" : 'X\(//\)[^/]' \| \ cannam@85: X"$mf" : 'X\(//\)$' \| \ cannam@85: X"$mf" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$mf" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: else cannam@85: continue cannam@85: fi cannam@85: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue cannam@85: # Extract the definition of DEP_FILES from the Makefile without cannam@85: # running `make'. cannam@85: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` cannam@85: test -z "$DEPDIR" && continue cannam@85: # When using ansi2knr, U may be empty or an underscore; expand it cannam@85: U=`sed -n -e '/^U = / s///p' < "$mf"` cannam@85: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" cannam@85: # We invoke sed twice because it is the simplest approach to cannam@85: # changing $(DEPDIR) to its actual value in the expansion. cannam@85: for file in `sed -n -e ' cannam@85: /^DEP_FILES = .*\\\\$/ { cannam@85: s/^DEP_FILES = // cannam@85: :loop cannam@85: s/\\\\$// cannam@85: p cannam@85: n cannam@85: /\\\\$/ b loop cannam@85: p cannam@85: } cannam@85: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ cannam@85: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do cannam@85: # Make sure the directory exists. cannam@85: test -f "$dirpart/$file" && continue cannam@85: fdir=`(dirname "$file") 2>/dev/null || cannam@85: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$file" : 'X\(//\)[^/]' \| \ cannam@85: X"$file" : 'X\(//\)$' \| \ cannam@85: X"$file" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$file" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: { if $as_mkdir_p; then cannam@85: mkdir -p $dirpart/$fdir cannam@85: else cannam@85: as_dir=$dirpart/$fdir cannam@85: as_dirs= cannam@85: while test ! -d "$as_dir"; do cannam@85: as_dirs="$as_dir $as_dirs" cannam@85: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@85: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@85: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@85: X"$as_dir" : 'X\(//\)$' \| \ cannam@85: X"$as_dir" : 'X\(/\)' \| \ cannam@85: . : '\(.\)' 2>/dev/null || cannam@85: echo X"$as_dir" | cannam@85: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@85: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@85: /^X\(\/\/\)$/{ s//\1/; q; } cannam@85: /^X\(\/\).*/{ s//\1/; q; } cannam@85: s/.*/./; q'` cannam@85: done cannam@85: test ! -n "$as_dirs" || mkdir $as_dirs cannam@85: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 cannam@85: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} cannam@85: { (exit 1); exit 1; }; }; } cannam@85: cannam@85: # echo "creating $dirpart/$file" cannam@85: echo '# dummy' > "$dirpart/$file" cannam@85: done cannam@85: done cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: _ACEOF cannam@85: cannam@85: cat >>$CONFIG_STATUS <<\_ACEOF cannam@85: cannam@85: { (exit 0); exit 0; } cannam@85: _ACEOF cannam@85: chmod +x $CONFIG_STATUS cannam@85: ac_clean_files=$ac_clean_files_save cannam@85: cannam@85: cannam@85: # configure is writing to config.log, and then calls config.status. cannam@85: # config.status does its own redirection, appending to config.log. cannam@85: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@85: # by configure, so config.status won't be able to write to it; its cannam@85: # output is simply discarded. So we exec the FD to /dev/null, cannam@85: # effectively closing config.log, so it can be properly (re)opened and cannam@85: # appended to by config.status. When coming back to configure, we cannam@85: # need to make the FD available again. cannam@85: if test "$no_create" != yes; then cannam@85: ac_cs_success=: cannam@85: ac_config_status_args= cannam@85: test "$silent" = yes && cannam@85: ac_config_status_args="$ac_config_status_args --quiet" cannam@85: exec 5>/dev/null cannam@85: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@85: exec 5>>config.log cannam@85: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@85: # would make configure fail if this is the last instruction. cannam@85: $ac_cs_success || { (exit 1); exit 1; } cannam@85: fi cannam@85: