Chris@4: #! /bin/sh Chris@4: # Guess values for system-dependent variables and create Makefiles. Chris@4: # Generated by GNU Autoconf 2.61 for liblo 0.26. Chris@4: # Chris@4: # Report bugs to . Chris@4: # Chris@4: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, Chris@4: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Chris@4: # This configure script is free software; the Free Software Foundation Chris@4: # gives unlimited permission to copy, distribute and modify it. Chris@4: ## --------------------- ## Chris@4: ## M4sh Initialization. ## Chris@4: ## --------------------- ## Chris@4: Chris@4: # Be more Bourne compatible Chris@4: DUALCASE=1; export DUALCASE # for MKS sh Chris@4: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@4: emulate sh Chris@4: NULLCMD=: Chris@4: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@4: # is contrary to our usage. Disable this feature. Chris@4: alias -g '${1+"$@"}'='"$@"' Chris@4: setopt NO_GLOB_SUBST Chris@4: else Chris@4: case `(set -o) 2>/dev/null` in Chris@4: *posix*) set -o posix ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # PATH needs CR Chris@4: # Avoid depending upon Character Ranges. Chris@4: as_cr_letters='abcdefghijklmnopqrstuvwxyz' Chris@4: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' Chris@4: as_cr_Letters=$as_cr_letters$as_cr_LETTERS Chris@4: as_cr_digits='0123456789' Chris@4: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@4: Chris@4: # The user is always right. Chris@4: if test "${PATH_SEPARATOR+set}" != set; then Chris@4: echo "#! /bin/sh" >conf$$.sh Chris@4: echo "exit 0" >>conf$$.sh Chris@4: chmod +x conf$$.sh Chris@4: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then Chris@4: PATH_SEPARATOR=';' Chris@4: else Chris@4: PATH_SEPARATOR=: Chris@4: fi Chris@4: rm -f conf$$.sh Chris@4: fi Chris@4: Chris@4: # Support unset when possible. Chris@4: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then Chris@4: as_unset=unset Chris@4: else Chris@4: as_unset=false Chris@4: fi Chris@4: Chris@4: Chris@4: # IFS Chris@4: # We need space, tab and new line, in precisely that order. Quoting is Chris@4: # there to prevent editors from complaining about space-tab. Chris@4: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@4: # splitting by setting IFS to empty value.) Chris@4: as_nl=' Chris@4: ' Chris@4: IFS=" "" $as_nl" Chris@4: Chris@4: # Find who we are. Look in the path if we contain no directory separator. Chris@4: case $0 in Chris@4: *[\\/]* ) as_myself=$0 ;; Chris@4: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: ;; Chris@4: esac Chris@4: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@4: # in which case we are not to be found in the path. Chris@4: if test "x$as_myself" = x; then Chris@4: as_myself=$0 Chris@4: fi Chris@4: if test ! -f "$as_myself"; then Chris@4: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 Chris@4: { (exit 1); exit 1; } Chris@4: fi Chris@4: Chris@4: # Work around bugs in pre-3.0 UWIN ksh. Chris@4: for as_var in ENV MAIL MAILPATH Chris@4: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@4: done Chris@4: PS1='$ ' Chris@4: PS2='> ' Chris@4: PS4='+ ' Chris@4: Chris@4: # NLS nuisances. Chris@4: for as_var in \ Chris@4: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ Chris@4: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ Chris@4: LC_TELEPHONE LC_TIME Chris@4: do Chris@4: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then Chris@4: eval $as_var=C; export $as_var Chris@4: else Chris@4: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@4: fi Chris@4: done Chris@4: Chris@4: # Required to use basename. Chris@4: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@4: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@4: as_expr=expr Chris@4: else Chris@4: as_expr=false Chris@4: fi Chris@4: Chris@4: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@4: as_basename=basename Chris@4: else Chris@4: as_basename=false Chris@4: fi Chris@4: Chris@4: Chris@4: # Name of the executable. Chris@4: as_me=`$as_basename -- "$0" || Chris@4: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@4: X"$0" : 'X\(//\)$' \| \ Chris@4: X"$0" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X/"$0" | Chris@4: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\/\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\/\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: Chris@4: # CDPATH. Chris@4: $as_unset CDPATH Chris@4: Chris@4: Chris@4: if test "x$CONFIG_SHELL" = x; then Chris@4: if (eval ":") 2>/dev/null; then Chris@4: as_have_required=yes Chris@4: else Chris@4: as_have_required=no Chris@4: fi Chris@4: Chris@4: if test $as_have_required = yes && (eval ": Chris@4: (as_func_return () { Chris@4: (exit \$1) Chris@4: } Chris@4: as_func_success () { Chris@4: as_func_return 0 Chris@4: } Chris@4: as_func_failure () { Chris@4: as_func_return 1 Chris@4: } Chris@4: as_func_ret_success () { Chris@4: return 0 Chris@4: } Chris@4: as_func_ret_failure () { Chris@4: return 1 Chris@4: } Chris@4: Chris@4: exitcode=0 Chris@4: if as_func_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_failure succeeded. Chris@4: fi Chris@4: Chris@4: if as_func_ret_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_ret_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_ret_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_ret_failure succeeded. Chris@4: fi Chris@4: Chris@4: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo positional parameters were not saved. Chris@4: fi Chris@4: Chris@4: test \$exitcode = 0) || { (exit 1); exit 1; } Chris@4: Chris@4: ( Chris@4: as_lineno_1=\$LINENO Chris@4: as_lineno_2=\$LINENO Chris@4: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && Chris@4: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } Chris@4: ") 2> /dev/null; then Chris@4: : Chris@4: else Chris@4: as_candidate_shells= Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: case $as_dir in Chris@4: /*) Chris@4: for as_base in sh bash ksh sh5; do Chris@4: as_candidate_shells="$as_candidate_shells $as_dir/$as_base" Chris@4: done;; Chris@4: esac Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: for as_shell in $as_candidate_shells $SHELL; do Chris@4: # Try only shells that exist, to save several forks. Chris@4: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && Chris@4: { ("$as_shell") 2> /dev/null <<\_ASEOF Chris@4: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@4: emulate sh Chris@4: NULLCMD=: Chris@4: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@4: # is contrary to our usage. Disable this feature. Chris@4: alias -g '${1+"$@"}'='"$@"' Chris@4: setopt NO_GLOB_SUBST Chris@4: else Chris@4: case `(set -o) 2>/dev/null` in Chris@4: *posix*) set -o posix ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: : Chris@4: _ASEOF Chris@4: }; then Chris@4: CONFIG_SHELL=$as_shell Chris@4: as_have_required=yes Chris@4: if { "$as_shell" 2> /dev/null <<\_ASEOF Chris@4: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@4: emulate sh Chris@4: NULLCMD=: Chris@4: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@4: # is contrary to our usage. Disable this feature. Chris@4: alias -g '${1+"$@"}'='"$@"' Chris@4: setopt NO_GLOB_SUBST Chris@4: else Chris@4: case `(set -o) 2>/dev/null` in Chris@4: *posix*) set -o posix ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: : Chris@4: (as_func_return () { Chris@4: (exit $1) Chris@4: } Chris@4: as_func_success () { Chris@4: as_func_return 0 Chris@4: } Chris@4: as_func_failure () { Chris@4: as_func_return 1 Chris@4: } Chris@4: as_func_ret_success () { Chris@4: return 0 Chris@4: } Chris@4: as_func_ret_failure () { Chris@4: return 1 Chris@4: } Chris@4: Chris@4: exitcode=0 Chris@4: if as_func_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_failure succeeded. Chris@4: fi Chris@4: Chris@4: if as_func_ret_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_ret_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_ret_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_ret_failure succeeded. Chris@4: fi Chris@4: Chris@4: if ( set x; as_func_ret_success y && test x = "$1" ); then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo positional parameters were not saved. Chris@4: fi Chris@4: Chris@4: test $exitcode = 0) || { (exit 1); exit 1; } Chris@4: Chris@4: ( Chris@4: as_lineno_1=$LINENO Chris@4: as_lineno_2=$LINENO Chris@4: test "x$as_lineno_1" != "x$as_lineno_2" && Chris@4: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } Chris@4: Chris@4: _ASEOF Chris@4: }; then Chris@4: break Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: done Chris@4: Chris@4: if test "x$CONFIG_SHELL" != x; then Chris@4: for as_var in BASH_ENV ENV Chris@4: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@4: done Chris@4: export CONFIG_SHELL Chris@4: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} Chris@4: fi Chris@4: Chris@4: Chris@4: if test $as_have_required = no; then Chris@4: echo This script requires a shell more modern than all the Chris@4: echo shells that I found on your system. Please install a Chris@4: echo modern shell, or manually run the script under such a Chris@4: echo shell if you do have one. Chris@4: { (exit 1); exit 1; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: (eval "as_func_return () { Chris@4: (exit \$1) Chris@4: } Chris@4: as_func_success () { Chris@4: as_func_return 0 Chris@4: } Chris@4: as_func_failure () { Chris@4: as_func_return 1 Chris@4: } Chris@4: as_func_ret_success () { Chris@4: return 0 Chris@4: } Chris@4: as_func_ret_failure () { Chris@4: return 1 Chris@4: } Chris@4: Chris@4: exitcode=0 Chris@4: if as_func_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_failure succeeded. Chris@4: fi Chris@4: Chris@4: if as_func_ret_success; then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo as_func_ret_success failed. Chris@4: fi Chris@4: Chris@4: if as_func_ret_failure; then Chris@4: exitcode=1 Chris@4: echo as_func_ret_failure succeeded. Chris@4: fi Chris@4: Chris@4: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then Chris@4: : Chris@4: else Chris@4: exitcode=1 Chris@4: echo positional parameters were not saved. Chris@4: fi Chris@4: Chris@4: test \$exitcode = 0") || { Chris@4: echo No shell found that supports shell functions. Chris@4: echo Please tell autoconf@gnu.org about your system, Chris@4: echo including any error possibly output before this Chris@4: echo message Chris@4: } Chris@4: Chris@4: Chris@4: Chris@4: as_lineno_1=$LINENO Chris@4: as_lineno_2=$LINENO Chris@4: test "x$as_lineno_1" != "x$as_lineno_2" && Chris@4: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { Chris@4: Chris@4: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO Chris@4: # uniformly replaced by the line number. The first 'sed' inserts a Chris@4: # line-number line after each line using $LINENO; the second 'sed' Chris@4: # does the real work. The second script uses 'N' to pair each Chris@4: # line-number line with the line containing $LINENO, and appends Chris@4: # trailing '-' during substitution so that $LINENO is not a special Chris@4: # case at line end. Chris@4: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the Chris@4: # scripts with optimization help from Paolo Bonzini. Blame Lee Chris@4: # E. McMahon (1931-1989) for sed's syntax. :-) Chris@4: sed -n ' Chris@4: p Chris@4: /[$]LINENO/= Chris@4: ' <$as_myself | Chris@4: sed ' Chris@4: s/[$]LINENO.*/&-/ Chris@4: t lineno Chris@4: b Chris@4: :lineno Chris@4: N Chris@4: :loop Chris@4: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ Chris@4: t loop Chris@4: s/-\n.*// Chris@4: ' >$as_me.lineno && Chris@4: chmod +x "$as_me.lineno" || Chris@4: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: # Don't try to exec as it changes $[0], causing all sort of problems Chris@4: # (the dirname of $[0] is not the place where we might find the Chris@4: # original and so on. Autoconf is especially sensitive to this). Chris@4: . "./$as_me.lineno" Chris@4: # Exit status is that of the last command. Chris@4: exit Chris@4: } Chris@4: Chris@4: Chris@4: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then Chris@4: as_dirname=dirname Chris@4: else Chris@4: as_dirname=false Chris@4: fi Chris@4: Chris@4: ECHO_C= ECHO_N= ECHO_T= Chris@4: case `echo -n x` in Chris@4: -n*) Chris@4: case `echo 'x\c'` in Chris@4: *c*) ECHO_T=' ';; # ECHO_T is single tab character. Chris@4: *) ECHO_C='\c';; Chris@4: esac;; Chris@4: *) Chris@4: ECHO_N='-n';; Chris@4: esac Chris@4: Chris@4: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@4: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@4: as_expr=expr Chris@4: else Chris@4: as_expr=false Chris@4: fi Chris@4: Chris@4: rm -f conf$$ conf$$.exe conf$$.file Chris@4: if test -d conf$$.dir; then Chris@4: rm -f conf$$.dir/conf$$.file Chris@4: else Chris@4: rm -f conf$$.dir Chris@4: mkdir conf$$.dir Chris@4: fi Chris@4: echo >conf$$.file Chris@4: if ln -s conf$$.file conf$$ 2>/dev/null; then Chris@4: as_ln_s='ln -s' Chris@4: # ... but there are two gotchas: Chris@4: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. Chris@4: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. Chris@4: # In both cases, we have to default to `cp -p'. Chris@4: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@4: as_ln_s='cp -p' Chris@4: elif ln conf$$.file conf$$ 2>/dev/null; then Chris@4: as_ln_s=ln Chris@4: else Chris@4: as_ln_s='cp -p' Chris@4: fi Chris@4: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@4: rmdir conf$$.dir 2>/dev/null Chris@4: Chris@4: if mkdir -p . 2>/dev/null; then Chris@4: as_mkdir_p=: Chris@4: else Chris@4: test -d ./-p && rmdir ./-p Chris@4: as_mkdir_p=false Chris@4: fi Chris@4: Chris@4: if test -x / >/dev/null 2>&1; then Chris@4: as_test_x='test -x' Chris@4: else Chris@4: if ls -dL / >/dev/null 2>&1; then Chris@4: as_ls_L_option=L Chris@4: else Chris@4: as_ls_L_option= Chris@4: fi Chris@4: as_test_x=' Chris@4: eval sh -c '\'' Chris@4: if test -d "$1"; then Chris@4: test -d "$1/."; Chris@4: else Chris@4: case $1 in Chris@4: -*)set "./$1";; Chris@4: esac; Chris@4: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in Chris@4: ???[sx]*):;;*)false;;esac;fi Chris@4: '\'' sh Chris@4: ' Chris@4: fi Chris@4: as_executable_p=$as_test_x Chris@4: Chris@4: # Sed expression to map a string onto a valid CPP name. Chris@4: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" Chris@4: Chris@4: # Sed expression to map a string onto a valid variable name. Chris@4: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check that we are running under the correct shell. Chris@4: SHELL=${CONFIG_SHELL-/bin/sh} Chris@4: Chris@4: case X$lt_ECHO in Chris@4: X*--fallback-echo) Chris@4: # Remove one level of quotation (which was required for Make). Chris@4: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` Chris@4: ;; Chris@4: esac Chris@4: Chris@4: ECHO=${lt_ECHO-echo} Chris@4: if test "X$1" = X--no-reexec; then Chris@4: # Discard the --no-reexec flag, and continue. Chris@4: shift Chris@4: elif test "X$1" = X--fallback-echo; then Chris@4: # Avoid inline document here, it may be left over Chris@4: : Chris@4: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then Chris@4: # Yippee, $ECHO works! Chris@4: : Chris@4: else Chris@4: # Restart under the correct shell. Chris@4: exec $SHELL "$0" --no-reexec ${1+"$@"} Chris@4: fi Chris@4: Chris@4: if test "X$1" = X--fallback-echo; then Chris@4: # used as fallback echo Chris@4: shift Chris@4: cat <<_LT_EOF Chris@4: $* Chris@4: _LT_EOF Chris@4: exit 0 Chris@4: fi Chris@4: Chris@4: # The HP-UX ksh and POSIX shell print the target directory to stdout Chris@4: # if CDPATH is set. Chris@4: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH Chris@4: Chris@4: if test -z "$lt_ECHO"; then Chris@4: if test "X${echo_test_string+set}" != Xset; then Chris@4: # find a string as large as possible, as long as the shell can cope with it Chris@4: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do Chris@4: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... Chris@4: if { echo_test_string=`eval $cmd`; } 2>/dev/null && Chris@4: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null Chris@4: then Chris@4: break Chris@4: fi Chris@4: done Chris@4: fi Chris@4: Chris@4: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && Chris@4: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: : Chris@4: else Chris@4: # The Solaris, AIX, and Digital Unix default echo programs unquote Chris@4: # backslashes. This makes it impossible to quote backslashes using Chris@4: # echo "$something" | sed 's/\\/\\\\/g' Chris@4: # Chris@4: # So, first we look for a working echo in the user's PATH. Chris@4: Chris@4: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR Chris@4: for dir in $PATH /usr/ucb; do Chris@4: IFS="$lt_save_ifs" Chris@4: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && Chris@4: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && Chris@4: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: ECHO="$dir/echo" Chris@4: break Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: Chris@4: if test "X$ECHO" = Xecho; then Chris@4: # We didn't find a better echo, so look for alternatives. Chris@4: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && Chris@4: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: # This shell has a builtin print -r that does the trick. Chris@4: ECHO='print -r' Chris@4: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && Chris@4: test "X$CONFIG_SHELL" != X/bin/ksh; then Chris@4: # If we have ksh, try running configure again with it. Chris@4: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} Chris@4: export ORIGINAL_CONFIG_SHELL Chris@4: CONFIG_SHELL=/bin/ksh Chris@4: export CONFIG_SHELL Chris@4: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} Chris@4: else Chris@4: # Try using printf. Chris@4: ECHO='printf %s\n' Chris@4: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && Chris@4: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: # Cool, printf works Chris@4: : Chris@4: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && Chris@4: test "X$echo_testing_string" = 'X\t' && Chris@4: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL Chris@4: export CONFIG_SHELL Chris@4: SHELL="$CONFIG_SHELL" Chris@4: export SHELL Chris@4: ECHO="$CONFIG_SHELL $0 --fallback-echo" Chris@4: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && Chris@4: test "X$echo_testing_string" = 'X\t' && Chris@4: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && Chris@4: test "X$echo_testing_string" = "X$echo_test_string"; then Chris@4: ECHO="$CONFIG_SHELL $0 --fallback-echo" Chris@4: else Chris@4: # maybe with a smaller string... Chris@4: prev=: Chris@4: Chris@4: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do Chris@4: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null Chris@4: then Chris@4: break Chris@4: fi Chris@4: prev="$cmd" Chris@4: done Chris@4: Chris@4: if test "$prev" != 'sed 50q "$0"'; then Chris@4: echo_test_string=`eval $prev` Chris@4: export echo_test_string Chris@4: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} Chris@4: else Chris@4: # Oops. We lost completely, so just stick with echo. Chris@4: ECHO=echo Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: Chris@4: # Copy echo and quote the copy suitably for passing to libtool from Chris@4: # the Makefile, instead of quoting the original, which is used later. Chris@4: lt_ECHO=$ECHO Chris@4: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then Chris@4: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: exec 7<&0 &1 Chris@4: Chris@4: # Name of the host. Chris@4: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, Chris@4: # so uname gets run too. Chris@4: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` Chris@4: Chris@4: # Chris@4: # Initializations. Chris@4: # Chris@4: ac_default_prefix=/usr/local Chris@4: ac_clean_files= Chris@4: ac_config_libobj_dir=. Chris@4: LIBOBJS= Chris@4: cross_compiling=no Chris@4: subdirs= Chris@4: MFLAGS= Chris@4: MAKEFLAGS= Chris@4: SHELL=${CONFIG_SHELL-/bin/sh} Chris@4: Chris@4: # Identity of this package. Chris@4: PACKAGE_NAME='liblo' Chris@4: PACKAGE_TARNAME='liblo' Chris@4: PACKAGE_VERSION='0.26' Chris@4: PACKAGE_STRING='liblo 0.26' Chris@4: PACKAGE_BUGREPORT='liblo-devel@lists.sourceforge.net' Chris@4: Chris@4: ac_unique_file="src/address.c" Chris@4: # Factoring default headers for most tests. Chris@4: ac_includes_default="\ Chris@4: #include Chris@4: #ifdef HAVE_SYS_TYPES_H Chris@4: # include Chris@4: #endif Chris@4: #ifdef HAVE_SYS_STAT_H Chris@4: # include Chris@4: #endif Chris@4: #ifdef STDC_HEADERS Chris@4: # include Chris@4: # include Chris@4: #else Chris@4: # ifdef HAVE_STDLIB_H Chris@4: # include Chris@4: # endif Chris@4: #endif Chris@4: #ifdef HAVE_STRING_H Chris@4: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H Chris@4: # include Chris@4: # endif Chris@4: # include Chris@4: #endif Chris@4: #ifdef HAVE_STRINGS_H Chris@4: # include Chris@4: #endif Chris@4: #ifdef HAVE_INTTYPES_H Chris@4: # include Chris@4: #endif Chris@4: #ifdef HAVE_STDINT_H Chris@4: # include Chris@4: #endif Chris@4: #ifdef HAVE_UNISTD_H Chris@4: # include Chris@4: #endif" Chris@4: Chris@4: ac_subst_vars='SHELL Chris@4: PATH_SEPARATOR Chris@4: PACKAGE_NAME Chris@4: PACKAGE_TARNAME Chris@4: PACKAGE_VERSION Chris@4: PACKAGE_STRING Chris@4: PACKAGE_BUGREPORT Chris@4: exec_prefix Chris@4: prefix Chris@4: program_transform_name Chris@4: bindir Chris@4: sbindir Chris@4: libexecdir Chris@4: datarootdir Chris@4: datadir Chris@4: sysconfdir Chris@4: sharedstatedir Chris@4: localstatedir Chris@4: includedir Chris@4: oldincludedir Chris@4: docdir Chris@4: infodir Chris@4: htmldir Chris@4: dvidir Chris@4: pdfdir Chris@4: psdir Chris@4: libdir Chris@4: localedir Chris@4: mandir Chris@4: DEFS Chris@4: ECHO_C Chris@4: ECHO_N Chris@4: ECHO_T Chris@4: LIBS Chris@4: build_alias Chris@4: host_alias Chris@4: target_alias Chris@4: INSTALL_PROGRAM Chris@4: INSTALL_SCRIPT Chris@4: INSTALL_DATA Chris@4: am__isrc Chris@4: CYGPATH_W Chris@4: PACKAGE Chris@4: VERSION Chris@4: ACLOCAL Chris@4: AUTOCONF Chris@4: AUTOMAKE Chris@4: AUTOHEADER Chris@4: MAKEINFO Chris@4: install_sh Chris@4: STRIP Chris@4: INSTALL_STRIP_PROGRAM Chris@4: mkdir_p Chris@4: AWK Chris@4: SET_MAKE Chris@4: am__leading_dot Chris@4: AMTAR Chris@4: am__tar Chris@4: am__untar Chris@4: LO_SO_VERSION Chris@4: CC Chris@4: CFLAGS Chris@4: LDFLAGS Chris@4: CPPFLAGS Chris@4: ac_ct_CC Chris@4: EXEEXT Chris@4: OBJEXT Chris@4: DEPDIR Chris@4: am__include Chris@4: am__quote Chris@4: AMDEP_TRUE Chris@4: AMDEP_FALSE Chris@4: AMDEPBACKSLASH Chris@4: CCDEPMODE Chris@4: am__fastdepCC_TRUE Chris@4: am__fastdepCC_FALSE Chris@4: LIBTOOL Chris@4: build Chris@4: build_cpu Chris@4: build_vendor Chris@4: build_os Chris@4: host Chris@4: host_cpu Chris@4: host_vendor Chris@4: host_os Chris@4: SED Chris@4: GREP Chris@4: EGREP Chris@4: FGREP Chris@4: LD Chris@4: DUMPBIN Chris@4: ac_ct_DUMPBIN Chris@4: NM Chris@4: LN_S Chris@4: AR Chris@4: RANLIB Chris@4: lt_ECHO Chris@4: DSYMUTIL Chris@4: NMEDIT Chris@4: LIPO Chris@4: OTOOL Chris@4: OTOOL64 Chris@4: CPP Chris@4: DOXYGEN Chris@4: LO_BIGENDIAN Chris@4: LIBOBJS Chris@4: LTLIBOBJS' Chris@4: ac_subst_files='' Chris@4: ac_precious_vars='build_alias Chris@4: host_alias Chris@4: target_alias Chris@4: CC Chris@4: CFLAGS Chris@4: LDFLAGS Chris@4: LIBS Chris@4: CPPFLAGS Chris@4: CPP' Chris@4: Chris@4: Chris@4: # Initialize some variables set by options. Chris@4: ac_init_help= Chris@4: ac_init_version=false Chris@4: # The variables have the same names as the options, with Chris@4: # dashes changed to underlines. Chris@4: cache_file=/dev/null Chris@4: exec_prefix=NONE Chris@4: no_create= Chris@4: no_recursion= Chris@4: prefix=NONE Chris@4: program_prefix=NONE Chris@4: program_suffix=NONE Chris@4: program_transform_name=s,x,x, Chris@4: silent= Chris@4: site= Chris@4: srcdir= Chris@4: verbose= Chris@4: x_includes=NONE Chris@4: x_libraries=NONE Chris@4: Chris@4: # Installation directory options. Chris@4: # These are left unexpanded so users can "make install exec_prefix=/foo" Chris@4: # and all the variables that are supposed to be based on exec_prefix Chris@4: # by default will actually change. Chris@4: # Use braces instead of parens because sh, perl, etc. also accept them. Chris@4: # (The list follows the same order as the GNU Coding Standards.) Chris@4: bindir='${exec_prefix}/bin' Chris@4: sbindir='${exec_prefix}/sbin' Chris@4: libexecdir='${exec_prefix}/libexec' Chris@4: datarootdir='${prefix}/share' Chris@4: datadir='${datarootdir}' Chris@4: sysconfdir='${prefix}/etc' Chris@4: sharedstatedir='${prefix}/com' Chris@4: localstatedir='${prefix}/var' Chris@4: includedir='${prefix}/include' Chris@4: oldincludedir='/usr/include' Chris@4: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' Chris@4: infodir='${datarootdir}/info' Chris@4: htmldir='${docdir}' Chris@4: dvidir='${docdir}' Chris@4: pdfdir='${docdir}' Chris@4: psdir='${docdir}' Chris@4: libdir='${exec_prefix}/lib' Chris@4: localedir='${datarootdir}/locale' Chris@4: mandir='${datarootdir}/man' Chris@4: Chris@4: ac_prev= Chris@4: ac_dashdash= Chris@4: for ac_option Chris@4: do Chris@4: # If the previous option needs an argument, assign it. Chris@4: if test -n "$ac_prev"; then Chris@4: eval $ac_prev=\$ac_option Chris@4: ac_prev= Chris@4: continue Chris@4: fi Chris@4: Chris@4: case $ac_option in Chris@4: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; Chris@4: *) ac_optarg=yes ;; Chris@4: esac Chris@4: Chris@4: # Accept the important Cygnus configure options, so we can diagnose typos. Chris@4: Chris@4: case $ac_dashdash$ac_option in Chris@4: --) Chris@4: ac_dashdash=yes ;; Chris@4: Chris@4: -bindir | --bindir | --bindi | --bind | --bin | --bi) Chris@4: ac_prev=bindir ;; Chris@4: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) Chris@4: bindir=$ac_optarg ;; Chris@4: Chris@4: -build | --build | --buil | --bui | --bu) Chris@4: ac_prev=build_alias ;; Chris@4: -build=* | --build=* | --buil=* | --bui=* | --bu=*) Chris@4: build_alias=$ac_optarg ;; Chris@4: Chris@4: -cache-file | --cache-file | --cache-fil | --cache-fi \ Chris@4: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) Chris@4: ac_prev=cache_file ;; Chris@4: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ Chris@4: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) Chris@4: cache_file=$ac_optarg ;; Chris@4: Chris@4: --config-cache | -C) Chris@4: cache_file=config.cache ;; Chris@4: Chris@4: -datadir | --datadir | --datadi | --datad) Chris@4: ac_prev=datadir ;; Chris@4: -datadir=* | --datadir=* | --datadi=* | --datad=*) Chris@4: datadir=$ac_optarg ;; Chris@4: Chris@4: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ Chris@4: | --dataroo | --dataro | --datar) Chris@4: ac_prev=datarootdir ;; Chris@4: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ Chris@4: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) Chris@4: datarootdir=$ac_optarg ;; Chris@4: Chris@4: -disable-* | --disable-*) Chris@4: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` Chris@4: # Reject names that are not valid shell variable names. Chris@4: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@4: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` Chris@4: eval enable_$ac_feature=no ;; Chris@4: Chris@4: -docdir | --docdir | --docdi | --doc | --do) Chris@4: ac_prev=docdir ;; Chris@4: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) Chris@4: docdir=$ac_optarg ;; Chris@4: Chris@4: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) Chris@4: ac_prev=dvidir ;; Chris@4: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) Chris@4: dvidir=$ac_optarg ;; Chris@4: Chris@4: -enable-* | --enable-*) Chris@4: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` Chris@4: # Reject names that are not valid shell variable names. Chris@4: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@4: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` Chris@4: eval enable_$ac_feature=\$ac_optarg ;; Chris@4: Chris@4: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ Chris@4: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ Chris@4: | --exec | --exe | --ex) Chris@4: ac_prev=exec_prefix ;; Chris@4: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ Chris@4: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ Chris@4: | --exec=* | --exe=* | --ex=*) Chris@4: exec_prefix=$ac_optarg ;; Chris@4: Chris@4: -gas | --gas | --ga | --g) Chris@4: # Obsolete; use --with-gas. Chris@4: with_gas=yes ;; Chris@4: Chris@4: -help | --help | --hel | --he | -h) Chris@4: ac_init_help=long ;; Chris@4: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) Chris@4: ac_init_help=recursive ;; Chris@4: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) Chris@4: ac_init_help=short ;; Chris@4: Chris@4: -host | --host | --hos | --ho) Chris@4: ac_prev=host_alias ;; Chris@4: -host=* | --host=* | --hos=* | --ho=*) Chris@4: host_alias=$ac_optarg ;; Chris@4: Chris@4: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) Chris@4: ac_prev=htmldir ;; Chris@4: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ Chris@4: | --ht=*) Chris@4: htmldir=$ac_optarg ;; Chris@4: Chris@4: -includedir | --includedir | --includedi | --included | --include \ Chris@4: | --includ | --inclu | --incl | --inc) Chris@4: ac_prev=includedir ;; Chris@4: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ Chris@4: | --includ=* | --inclu=* | --incl=* | --inc=*) Chris@4: includedir=$ac_optarg ;; Chris@4: Chris@4: -infodir | --infodir | --infodi | --infod | --info | --inf) Chris@4: ac_prev=infodir ;; Chris@4: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) Chris@4: infodir=$ac_optarg ;; Chris@4: Chris@4: -libdir | --libdir | --libdi | --libd) Chris@4: ac_prev=libdir ;; Chris@4: -libdir=* | --libdir=* | --libdi=* | --libd=*) Chris@4: libdir=$ac_optarg ;; Chris@4: Chris@4: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ Chris@4: | --libexe | --libex | --libe) Chris@4: ac_prev=libexecdir ;; Chris@4: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ Chris@4: | --libexe=* | --libex=* | --libe=*) Chris@4: libexecdir=$ac_optarg ;; Chris@4: Chris@4: -localedir | --localedir | --localedi | --localed | --locale) Chris@4: ac_prev=localedir ;; Chris@4: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) Chris@4: localedir=$ac_optarg ;; Chris@4: Chris@4: -localstatedir | --localstatedir | --localstatedi | --localstated \ Chris@4: | --localstate | --localstat | --localsta | --localst | --locals) Chris@4: ac_prev=localstatedir ;; Chris@4: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ Chris@4: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) Chris@4: localstatedir=$ac_optarg ;; Chris@4: Chris@4: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) Chris@4: ac_prev=mandir ;; Chris@4: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) Chris@4: mandir=$ac_optarg ;; Chris@4: Chris@4: -nfp | --nfp | --nf) Chris@4: # Obsolete; use --without-fp. Chris@4: with_fp=no ;; Chris@4: Chris@4: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ Chris@4: | --no-cr | --no-c | -n) Chris@4: no_create=yes ;; Chris@4: Chris@4: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ Chris@4: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) Chris@4: no_recursion=yes ;; Chris@4: Chris@4: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ Chris@4: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ Chris@4: | --oldin | --oldi | --old | --ol | --o) Chris@4: ac_prev=oldincludedir ;; Chris@4: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ Chris@4: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ Chris@4: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) Chris@4: oldincludedir=$ac_optarg ;; Chris@4: Chris@4: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) Chris@4: ac_prev=prefix ;; Chris@4: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) Chris@4: prefix=$ac_optarg ;; Chris@4: Chris@4: -program-prefix | --program-prefix | --program-prefi | --program-pref \ Chris@4: | --program-pre | --program-pr | --program-p) Chris@4: ac_prev=program_prefix ;; Chris@4: -program-prefix=* | --program-prefix=* | --program-prefi=* \ Chris@4: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) Chris@4: program_prefix=$ac_optarg ;; Chris@4: Chris@4: -program-suffix | --program-suffix | --program-suffi | --program-suff \ Chris@4: | --program-suf | --program-su | --program-s) Chris@4: ac_prev=program_suffix ;; Chris@4: -program-suffix=* | --program-suffix=* | --program-suffi=* \ Chris@4: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) Chris@4: program_suffix=$ac_optarg ;; Chris@4: Chris@4: -program-transform-name | --program-transform-name \ Chris@4: | --program-transform-nam | --program-transform-na \ Chris@4: | --program-transform-n | --program-transform- \ Chris@4: | --program-transform | --program-transfor \ Chris@4: | --program-transfo | --program-transf \ Chris@4: | --program-trans | --program-tran \ Chris@4: | --progr-tra | --program-tr | --program-t) Chris@4: ac_prev=program_transform_name ;; Chris@4: -program-transform-name=* | --program-transform-name=* \ Chris@4: | --program-transform-nam=* | --program-transform-na=* \ Chris@4: | --program-transform-n=* | --program-transform-=* \ Chris@4: | --program-transform=* | --program-transfor=* \ Chris@4: | --program-transfo=* | --program-transf=* \ Chris@4: | --program-trans=* | --program-tran=* \ Chris@4: | --progr-tra=* | --program-tr=* | --program-t=*) Chris@4: program_transform_name=$ac_optarg ;; Chris@4: Chris@4: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) Chris@4: ac_prev=pdfdir ;; Chris@4: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) Chris@4: pdfdir=$ac_optarg ;; Chris@4: Chris@4: -psdir | --psdir | --psdi | --psd | --ps) Chris@4: ac_prev=psdir ;; Chris@4: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) Chris@4: psdir=$ac_optarg ;; Chris@4: Chris@4: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@4: | -silent | --silent | --silen | --sile | --sil) Chris@4: silent=yes ;; Chris@4: Chris@4: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) Chris@4: ac_prev=sbindir ;; Chris@4: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ Chris@4: | --sbi=* | --sb=*) Chris@4: sbindir=$ac_optarg ;; Chris@4: Chris@4: -sharedstatedir | --sharedstatedir | --sharedstatedi \ Chris@4: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ Chris@4: | --sharedst | --shareds | --shared | --share | --shar \ Chris@4: | --sha | --sh) Chris@4: ac_prev=sharedstatedir ;; Chris@4: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ Chris@4: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ Chris@4: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ Chris@4: | --sha=* | --sh=*) Chris@4: sharedstatedir=$ac_optarg ;; Chris@4: Chris@4: -site | --site | --sit) Chris@4: ac_prev=site ;; Chris@4: -site=* | --site=* | --sit=*) Chris@4: site=$ac_optarg ;; Chris@4: Chris@4: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) Chris@4: ac_prev=srcdir ;; Chris@4: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) Chris@4: srcdir=$ac_optarg ;; Chris@4: Chris@4: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ Chris@4: | --syscon | --sysco | --sysc | --sys | --sy) Chris@4: ac_prev=sysconfdir ;; Chris@4: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ Chris@4: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) Chris@4: sysconfdir=$ac_optarg ;; Chris@4: Chris@4: -target | --target | --targe | --targ | --tar | --ta | --t) Chris@4: ac_prev=target_alias ;; Chris@4: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) Chris@4: target_alias=$ac_optarg ;; Chris@4: Chris@4: -v | -verbose | --verbose | --verbos | --verbo | --verb) Chris@4: verbose=yes ;; Chris@4: Chris@4: -version | --version | --versio | --versi | --vers | -V) Chris@4: ac_init_version=: ;; Chris@4: Chris@4: -with-* | --with-*) Chris@4: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` Chris@4: # Reject names that are not valid shell variable names. Chris@4: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@4: { echo "$as_me: error: invalid package name: $ac_package" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` Chris@4: eval with_$ac_package=\$ac_optarg ;; Chris@4: Chris@4: -without-* | --without-*) Chris@4: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` Chris@4: # Reject names that are not valid shell variable names. Chris@4: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@4: { echo "$as_me: error: invalid package name: $ac_package" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` Chris@4: eval with_$ac_package=no ;; Chris@4: Chris@4: --x) Chris@4: # Obsolete; use --with-x. Chris@4: with_x=yes ;; Chris@4: Chris@4: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ Chris@4: | --x-incl | --x-inc | --x-in | --x-i) Chris@4: ac_prev=x_includes ;; Chris@4: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ Chris@4: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) Chris@4: x_includes=$ac_optarg ;; Chris@4: Chris@4: -x-libraries | --x-libraries | --x-librarie | --x-librari \ Chris@4: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) Chris@4: ac_prev=x_libraries ;; Chris@4: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ Chris@4: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) Chris@4: x_libraries=$ac_optarg ;; Chris@4: Chris@4: -*) { echo "$as_me: error: unrecognized option: $ac_option Chris@4: Try \`$0 --help' for more information." >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: ;; Chris@4: Chris@4: *=*) Chris@4: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` Chris@4: # Reject names that are not valid shell variable names. Chris@4: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && Chris@4: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: eval $ac_envvar=\$ac_optarg Chris@4: export $ac_envvar ;; Chris@4: Chris@4: *) Chris@4: # FIXME: should be removed in autoconf 3.0. Chris@4: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 Chris@4: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@4: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 Chris@4: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} Chris@4: ;; Chris@4: Chris@4: esac Chris@4: done Chris@4: Chris@4: if test -n "$ac_prev"; then Chris@4: ac_option=--`echo $ac_prev | sed 's/_/-/g'` Chris@4: { echo "$as_me: error: missing argument to $ac_option" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: # Be sure to have absolute directory names. Chris@4: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ Chris@4: datadir sysconfdir sharedstatedir localstatedir includedir \ Chris@4: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ Chris@4: libdir localedir mandir Chris@4: do Chris@4: eval ac_val=\$$ac_var Chris@4: case $ac_val in Chris@4: [\\/$]* | ?:[\\/]* ) continue;; Chris@4: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; Chris@4: esac Chris@4: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: done Chris@4: Chris@4: # There might be people who depend on the old broken behavior: `$host' Chris@4: # used to hold the argument of --host etc. Chris@4: # FIXME: To remove some day. Chris@4: build=$build_alias Chris@4: host=$host_alias Chris@4: target=$target_alias Chris@4: Chris@4: # FIXME: To remove some day. Chris@4: if test "x$host_alias" != x; then Chris@4: if test "x$build_alias" = x; then Chris@4: cross_compiling=maybe Chris@4: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. Chris@4: If a cross compiler is detected then cross compile mode will be used." >&2 Chris@4: elif test "x$build_alias" != "x$host_alias"; then Chris@4: cross_compiling=yes Chris@4: fi Chris@4: fi Chris@4: Chris@4: ac_tool_prefix= Chris@4: test -n "$host_alias" && ac_tool_prefix=$host_alias- Chris@4: Chris@4: test "$silent" = yes && exec 6>/dev/null Chris@4: Chris@4: Chris@4: ac_pwd=`pwd` && test -n "$ac_pwd" && Chris@4: ac_ls_di=`ls -di .` && Chris@4: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || Chris@4: { echo "$as_me: error: Working directory cannot be determined" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || Chris@4: { echo "$as_me: error: pwd does not report name of working directory" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: Chris@4: # Find the source files, if location was not specified. Chris@4: if test -z "$srcdir"; then Chris@4: ac_srcdir_defaulted=yes Chris@4: # Try the directory containing this script, then the parent directory. Chris@4: ac_confdir=`$as_dirname -- "$0" || Chris@4: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$0" : 'X\(//\)[^/]' \| \ Chris@4: X"$0" : 'X\(//\)$' \| \ Chris@4: X"$0" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$0" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: srcdir=$ac_confdir Chris@4: if test ! -r "$srcdir/$ac_unique_file"; then Chris@4: srcdir=.. Chris@4: fi Chris@4: else Chris@4: ac_srcdir_defaulted=no Chris@4: fi Chris@4: if test ! -r "$srcdir/$ac_unique_file"; then Chris@4: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." Chris@4: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" Chris@4: ac_abs_confdir=`( Chris@4: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: pwd)` Chris@4: # When building in place, set srcdir=. Chris@4: if test "$ac_abs_confdir" = "$ac_pwd"; then Chris@4: srcdir=. Chris@4: fi Chris@4: # Remove unnecessary trailing slashes from srcdir. Chris@4: # Double slashes in file names in object file debugging info Chris@4: # mess up M-x gdb in Emacs. Chris@4: case $srcdir in Chris@4: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; Chris@4: esac Chris@4: for ac_var in $ac_precious_vars; do Chris@4: eval ac_env_${ac_var}_set=\${${ac_var}+set} Chris@4: eval ac_env_${ac_var}_value=\$${ac_var} Chris@4: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} Chris@4: eval ac_cv_env_${ac_var}_value=\$${ac_var} Chris@4: done Chris@4: Chris@4: # Chris@4: # Report the --help message. Chris@4: # Chris@4: if test "$ac_init_help" = "long"; then Chris@4: # Omit some internal or obsolete options to make the list less imposing. Chris@4: # This message is too long to be a string in the A/UX 3.1 sh. Chris@4: cat <<_ACEOF Chris@4: \`configure' configures liblo 0.26 to adapt to many kinds of systems. Chris@4: Chris@4: Usage: $0 [OPTION]... [VAR=VALUE]... Chris@4: Chris@4: To assign environment variables (e.g., CC, CFLAGS...), specify them as Chris@4: VAR=VALUE. See below for descriptions of some of the useful variables. Chris@4: Chris@4: Defaults for the options are specified in brackets. Chris@4: Chris@4: Configuration: Chris@4: -h, --help display this help and exit Chris@4: --help=short display options specific to this package Chris@4: --help=recursive display the short help of all the included packages Chris@4: -V, --version display version information and exit Chris@4: -q, --quiet, --silent do not print \`checking...' messages Chris@4: --cache-file=FILE cache test results in FILE [disabled] Chris@4: -C, --config-cache alias for \`--cache-file=config.cache' Chris@4: -n, --no-create do not create output files Chris@4: --srcdir=DIR find the sources in DIR [configure dir or \`..'] Chris@4: Chris@4: Installation directories: Chris@4: --prefix=PREFIX install architecture-independent files in PREFIX Chris@4: [$ac_default_prefix] Chris@4: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX Chris@4: [PREFIX] Chris@4: Chris@4: By default, \`make install' will install all the files in Chris@4: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify Chris@4: an installation prefix other than \`$ac_default_prefix' using \`--prefix', Chris@4: for instance \`--prefix=\$HOME'. Chris@4: Chris@4: For better control, use the options below. Chris@4: Chris@4: Fine tuning of the installation directories: Chris@4: --bindir=DIR user executables [EPREFIX/bin] Chris@4: --sbindir=DIR system admin executables [EPREFIX/sbin] Chris@4: --libexecdir=DIR program executables [EPREFIX/libexec] Chris@4: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] Chris@4: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] Chris@4: --localstatedir=DIR modifiable single-machine data [PREFIX/var] Chris@4: --libdir=DIR object code libraries [EPREFIX/lib] Chris@4: --includedir=DIR C header files [PREFIX/include] Chris@4: --oldincludedir=DIR C header files for non-gcc [/usr/include] Chris@4: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] Chris@4: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] Chris@4: --infodir=DIR info documentation [DATAROOTDIR/info] Chris@4: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] Chris@4: --mandir=DIR man documentation [DATAROOTDIR/man] Chris@4: --docdir=DIR documentation root [DATAROOTDIR/doc/liblo] Chris@4: --htmldir=DIR html documentation [DOCDIR] Chris@4: --dvidir=DIR dvi documentation [DOCDIR] Chris@4: --pdfdir=DIR pdf documentation [DOCDIR] Chris@4: --psdir=DIR ps documentation [DOCDIR] Chris@4: _ACEOF Chris@4: Chris@4: cat <<\_ACEOF Chris@4: Chris@4: Program names: Chris@4: --program-prefix=PREFIX prepend PREFIX to installed program names Chris@4: --program-suffix=SUFFIX append SUFFIX to installed program names Chris@4: --program-transform-name=PROGRAM run sed PROGRAM on installed program names Chris@4: Chris@4: System types: Chris@4: --build=BUILD configure for building on BUILD [guessed] Chris@4: --host=HOST cross-compile to build programs to run on HOST [BUILD] Chris@4: _ACEOF Chris@4: fi Chris@4: Chris@4: if test -n "$ac_init_help"; then Chris@4: case $ac_init_help in Chris@4: short | recursive ) echo "Configuration of liblo 0.26:";; Chris@4: esac Chris@4: cat <<\_ACEOF Chris@4: Chris@4: Optional Features: Chris@4: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) Chris@4: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] Chris@4: --enable-static[=PKGS] build static libraries [default=no] Chris@4: --enable-shared[=PKGS] build shared libraries [default=yes] Chris@4: --enable-ipv6 Enable ipv6 support Chris@4: --disable-dependency-tracking speeds up one-time build Chris@4: --enable-dependency-tracking do not reject slow dependency extractors Chris@4: --enable-fast-install[=PKGS] Chris@4: optimize for fast installation [default=yes] Chris@4: --disable-libtool-lock avoid locking (might break parallel builds) Chris@4: Chris@4: Optional Packages: Chris@4: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] Chris@4: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) Chris@4: --with-pic try to use only PIC/non-PIC objects [default=use Chris@4: both] Chris@4: --with-gnu-ld assume the C compiler uses GNU ld [default=no] Chris@4: Chris@4: Some influential environment variables: Chris@4: CC C compiler command Chris@4: CFLAGS C compiler flags Chris@4: LDFLAGS linker flags, e.g. -L if you have libraries in a Chris@4: nonstandard directory Chris@4: LIBS libraries to pass to the linker, e.g. -l Chris@4: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if Chris@4: you have headers in a nonstandard directory Chris@4: CPP C preprocessor Chris@4: Chris@4: Use these variables to override the choices made by `configure' or to help Chris@4: it to find libraries and programs with nonstandard names/locations. Chris@4: Chris@4: Report bugs to . Chris@4: _ACEOF Chris@4: ac_status=$? Chris@4: fi Chris@4: Chris@4: if test "$ac_init_help" = "recursive"; then Chris@4: # If there are subdirs, report their specific --help. Chris@4: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue Chris@4: test -d "$ac_dir" || continue Chris@4: ac_builddir=. Chris@4: Chris@4: case "$ac_dir" in Chris@4: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@4: *) Chris@4: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` Chris@4: # A ".." for each directory in $ac_dir_suffix. Chris@4: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` Chris@4: case $ac_top_builddir_sub in Chris@4: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@4: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@4: esac ;; Chris@4: esac Chris@4: ac_abs_top_builddir=$ac_pwd Chris@4: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@4: # for backward compatibility: Chris@4: ac_top_builddir=$ac_top_build_prefix Chris@4: Chris@4: case $srcdir in Chris@4: .) # We are building in place. Chris@4: ac_srcdir=. Chris@4: ac_top_srcdir=$ac_top_builddir_sub Chris@4: ac_abs_top_srcdir=$ac_pwd ;; Chris@4: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@4: ac_srcdir=$srcdir$ac_dir_suffix; Chris@4: ac_top_srcdir=$srcdir Chris@4: ac_abs_top_srcdir=$srcdir ;; Chris@4: *) # Relative name. Chris@4: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@4: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@4: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@4: esac Chris@4: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@4: Chris@4: cd "$ac_dir" || { ac_status=$?; continue; } Chris@4: # Check for guested configure. Chris@4: if test -f "$ac_srcdir/configure.gnu"; then Chris@4: echo && Chris@4: $SHELL "$ac_srcdir/configure.gnu" --help=recursive Chris@4: elif test -f "$ac_srcdir/configure"; then Chris@4: echo && Chris@4: $SHELL "$ac_srcdir/configure" --help=recursive Chris@4: else Chris@4: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 Chris@4: fi || ac_status=$? Chris@4: cd "$ac_pwd" || { ac_status=$?; break; } Chris@4: done Chris@4: fi Chris@4: Chris@4: test -n "$ac_init_help" && exit $ac_status Chris@4: if $ac_init_version; then Chris@4: cat <<\_ACEOF Chris@4: liblo configure 0.26 Chris@4: generated by GNU Autoconf 2.61 Chris@4: Chris@4: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, Chris@4: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Chris@4: This configure script is free software; the Free Software Foundation Chris@4: gives unlimited permission to copy, distribute and modify it. Chris@4: _ACEOF Chris@4: exit Chris@4: fi Chris@4: cat >config.log <<_ACEOF Chris@4: This file contains any messages produced by compilers while Chris@4: running configure, to aid debugging if configure makes a mistake. Chris@4: Chris@4: It was created by liblo $as_me 0.26, which was Chris@4: generated by GNU Autoconf 2.61. Invocation command line was Chris@4: Chris@4: $ $0 $@ Chris@4: Chris@4: _ACEOF Chris@4: exec 5>>config.log Chris@4: { Chris@4: cat <<_ASUNAME Chris@4: ## --------- ## Chris@4: ## Platform. ## Chris@4: ## --------- ## Chris@4: Chris@4: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` Chris@4: uname -m = `(uname -m) 2>/dev/null || echo unknown` Chris@4: uname -r = `(uname -r) 2>/dev/null || echo unknown` Chris@4: uname -s = `(uname -s) 2>/dev/null || echo unknown` Chris@4: uname -v = `(uname -v) 2>/dev/null || echo unknown` Chris@4: Chris@4: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` Chris@4: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` Chris@4: Chris@4: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` Chris@4: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` Chris@4: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` Chris@4: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` Chris@4: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` Chris@4: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` Chris@4: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` Chris@4: Chris@4: _ASUNAME Chris@4: Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: echo "PATH: $as_dir" Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: } >&5 Chris@4: Chris@4: cat >&5 <<_ACEOF Chris@4: Chris@4: Chris@4: ## ----------- ## Chris@4: ## Core tests. ## Chris@4: ## ----------- ## Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: # Keep a trace of the command line. Chris@4: # Strip out --no-create and --no-recursion so they do not pile up. Chris@4: # Strip out --silent because we don't want to record it for future runs. Chris@4: # Also quote any args containing shell meta-characters. Chris@4: # Make two passes to allow for proper duplicate-argument suppression. Chris@4: ac_configure_args= Chris@4: ac_configure_args0= Chris@4: ac_configure_args1= Chris@4: ac_must_keep_next=false Chris@4: for ac_pass in 1 2 Chris@4: do Chris@4: for ac_arg Chris@4: do Chris@4: case $ac_arg in Chris@4: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; Chris@4: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@4: | -silent | --silent | --silen | --sile | --sil) Chris@4: continue ;; Chris@4: *\'*) Chris@4: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@4: esac Chris@4: case $ac_pass in Chris@4: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; Chris@4: 2) Chris@4: ac_configure_args1="$ac_configure_args1 '$ac_arg'" Chris@4: if test $ac_must_keep_next = true; then Chris@4: ac_must_keep_next=false # Got value, back to normal. Chris@4: else Chris@4: case $ac_arg in Chris@4: *=* | --config-cache | -C | -disable-* | --disable-* \ Chris@4: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ Chris@4: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ Chris@4: | -with-* | --with-* | -without-* | --without-* | --x) Chris@4: case "$ac_configure_args0 " in Chris@4: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; Chris@4: esac Chris@4: ;; Chris@4: -* ) ac_must_keep_next=true ;; Chris@4: esac Chris@4: fi Chris@4: ac_configure_args="$ac_configure_args '$ac_arg'" Chris@4: ;; Chris@4: esac Chris@4: done Chris@4: done Chris@4: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } Chris@4: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } Chris@4: Chris@4: # When interrupted or exit'd, cleanup temporary files, and complete Chris@4: # config.log. We remove comments because anyway the quotes in there Chris@4: # would cause problems or look ugly. Chris@4: # WARNING: Use '\'' to represent an apostrophe within the trap. Chris@4: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. Chris@4: trap 'exit_status=$? Chris@4: # Save into config.log some information that might help in debugging. Chris@4: { Chris@4: echo Chris@4: Chris@4: cat <<\_ASBOX Chris@4: ## ---------------- ## Chris@4: ## Cache variables. ## Chris@4: ## ---------------- ## Chris@4: _ASBOX Chris@4: echo Chris@4: # The following way of writing the cache mishandles newlines in values, Chris@4: ( Chris@4: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do Chris@4: eval ac_val=\$$ac_var Chris@4: case $ac_val in #( Chris@4: *${as_nl}*) Chris@4: case $ac_var in #( Chris@4: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 Chris@4: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; Chris@4: esac Chris@4: case $ac_var in #( Chris@4: _ | IFS | as_nl) ;; #( Chris@4: *) $as_unset $ac_var ;; Chris@4: esac ;; Chris@4: esac Chris@4: done Chris@4: (set) 2>&1 | Chris@4: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( Chris@4: *${as_nl}ac_space=\ *) Chris@4: sed -n \ Chris@4: "s/'\''/'\''\\\\'\'''\''/g; Chris@4: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" Chris@4: ;; #( Chris@4: *) Chris@4: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@4: ;; Chris@4: esac | Chris@4: sort Chris@4: ) Chris@4: echo Chris@4: Chris@4: cat <<\_ASBOX Chris@4: ## ----------------- ## Chris@4: ## Output variables. ## Chris@4: ## ----------------- ## Chris@4: _ASBOX Chris@4: echo Chris@4: for ac_var in $ac_subst_vars Chris@4: do Chris@4: eval ac_val=\$$ac_var Chris@4: case $ac_val in Chris@4: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@4: esac Chris@4: echo "$ac_var='\''$ac_val'\''" Chris@4: done | sort Chris@4: echo Chris@4: Chris@4: if test -n "$ac_subst_files"; then Chris@4: cat <<\_ASBOX Chris@4: ## ------------------- ## Chris@4: ## File substitutions. ## Chris@4: ## ------------------- ## Chris@4: _ASBOX Chris@4: echo Chris@4: for ac_var in $ac_subst_files Chris@4: do Chris@4: eval ac_val=\$$ac_var Chris@4: case $ac_val in Chris@4: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@4: esac Chris@4: echo "$ac_var='\''$ac_val'\''" Chris@4: done | sort Chris@4: echo Chris@4: fi Chris@4: Chris@4: if test -s confdefs.h; then Chris@4: cat <<\_ASBOX Chris@4: ## ----------- ## Chris@4: ## confdefs.h. ## Chris@4: ## ----------- ## Chris@4: _ASBOX Chris@4: echo Chris@4: cat confdefs.h Chris@4: echo Chris@4: fi Chris@4: test "$ac_signal" != 0 && Chris@4: echo "$as_me: caught signal $ac_signal" Chris@4: echo "$as_me: exit $exit_status" Chris@4: } >&5 Chris@4: rm -f core *.core core.conftest.* && Chris@4: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && Chris@4: exit $exit_status Chris@4: ' 0 Chris@4: for ac_signal in 1 2 13 15; do Chris@4: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal Chris@4: done Chris@4: ac_signal=0 Chris@4: Chris@4: # confdefs.h avoids OS command line length limits that DEFS can exceed. Chris@4: rm -f -r conftest* confdefs.h Chris@4: Chris@4: # Predefined preprocessor variables. Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE_NAME "$PACKAGE_NAME" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE_VERSION "$PACKAGE_VERSION" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE_STRING "$PACKAGE_STRING" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: # Let the site file select an alternate cache file if it wants to. Chris@4: # Prefer explicitly selected file to automatically selected ones. Chris@4: if test -n "$CONFIG_SITE"; then Chris@4: set x "$CONFIG_SITE" Chris@4: elif test "x$prefix" != xNONE; then Chris@4: set x "$prefix/share/config.site" "$prefix/etc/config.site" Chris@4: else Chris@4: set x "$ac_default_prefix/share/config.site" \ Chris@4: "$ac_default_prefix/etc/config.site" Chris@4: fi Chris@4: shift Chris@4: for ac_site_file Chris@4: do Chris@4: if test -r "$ac_site_file"; then Chris@4: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 Chris@4: echo "$as_me: loading site script $ac_site_file" >&6;} Chris@4: sed 's/^/| /' "$ac_site_file" >&5 Chris@4: . "$ac_site_file" Chris@4: fi Chris@4: done Chris@4: Chris@4: if test -r "$cache_file"; then Chris@4: # Some versions of bash will fail to source /dev/null (special Chris@4: # files actually), so we avoid doing that. Chris@4: if test -f "$cache_file"; then Chris@4: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 Chris@4: echo "$as_me: loading cache $cache_file" >&6;} Chris@4: case $cache_file in Chris@4: [\\/]* | ?:[\\/]* ) . "$cache_file";; Chris@4: *) . "./$cache_file";; Chris@4: esac Chris@4: fi Chris@4: else Chris@4: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 Chris@4: echo "$as_me: creating cache $cache_file" >&6;} Chris@4: >$cache_file Chris@4: fi Chris@4: Chris@4: # Check that the precious variables saved in the cache have kept the same Chris@4: # value. Chris@4: ac_cache_corrupted=false Chris@4: for ac_var in $ac_precious_vars; do Chris@4: eval ac_old_set=\$ac_cv_env_${ac_var}_set Chris@4: eval ac_new_set=\$ac_env_${ac_var}_set Chris@4: eval ac_old_val=\$ac_cv_env_${ac_var}_value Chris@4: eval ac_new_val=\$ac_env_${ac_var}_value Chris@4: case $ac_old_set,$ac_new_set in Chris@4: set,) Chris@4: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 Chris@4: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} Chris@4: ac_cache_corrupted=: ;; Chris@4: ,set) Chris@4: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 Chris@4: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} Chris@4: ac_cache_corrupted=: ;; Chris@4: ,);; Chris@4: *) Chris@4: if test "x$ac_old_val" != "x$ac_new_val"; then Chris@4: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 Chris@4: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} Chris@4: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 Chris@4: echo "$as_me: former value: $ac_old_val" >&2;} Chris@4: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 Chris@4: echo "$as_me: current value: $ac_new_val" >&2;} Chris@4: ac_cache_corrupted=: Chris@4: fi;; Chris@4: esac Chris@4: # Pass precious variables to config.status. Chris@4: if test "$ac_new_set" = set; then Chris@4: case $ac_new_val in Chris@4: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@4: *) ac_arg=$ac_var=$ac_new_val ;; Chris@4: esac Chris@4: case " $ac_configure_args " in Chris@4: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. Chris@4: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; Chris@4: esac Chris@4: fi Chris@4: done Chris@4: if $ac_cache_corrupted; then Chris@4: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 Chris@4: echo "$as_me: error: changes in the environment can compromise the build" >&2;} Chris@4: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 Chris@4: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: Chris@4: Chris@4: # libtool version: current:revision:age Chris@4: # Chris@4: # If the library source code has changed at all since the last update, then Chris@4: # increment revision (`c:r:a' becomes `c:r+1:a'). Chris@4: # Chris@4: # If any interfaces have been added, removed, or changed since the last update, Chris@4: # increment current, and set revision to 0. Chris@4: # Chris@4: # If any interfaces have been added since the last public release, then Chris@4: # increment age. Chris@4: # Chris@4: # If any interfaces have been removed since the last public release, then set Chris@4: # age to 0. Chris@4: LO_SO_VERSION=7:0:0 Chris@4: Chris@4: Chris@4: ac_config_headers="$ac_config_headers config.h" Chris@4: Chris@4: Chris@4: am__api_version='1.10' Chris@4: Chris@4: ac_aux_dir= Chris@4: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do Chris@4: if test -f "$ac_dir/install-sh"; then Chris@4: ac_aux_dir=$ac_dir Chris@4: ac_install_sh="$ac_aux_dir/install-sh -c" Chris@4: break Chris@4: elif test -f "$ac_dir/install.sh"; then Chris@4: ac_aux_dir=$ac_dir Chris@4: ac_install_sh="$ac_aux_dir/install.sh -c" Chris@4: break Chris@4: elif test -f "$ac_dir/shtool"; then Chris@4: ac_aux_dir=$ac_dir Chris@4: ac_install_sh="$ac_aux_dir/shtool install -c" Chris@4: break Chris@4: fi Chris@4: done Chris@4: if test -z "$ac_aux_dir"; then Chris@4: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 Chris@4: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: # These three variables are undocumented and unsupported, Chris@4: # and are intended to be withdrawn in a future Autoconf release. Chris@4: # They can cause serious problems if a builder's source tree is in a directory Chris@4: # whose full name contains unusual characters. Chris@4: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. Chris@4: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. Chris@4: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. Chris@4: Chris@4: Chris@4: # Find a good install program. We prefer a C program (faster), Chris@4: # so one script is as good as another. But avoid the broken or Chris@4: # incompatible versions: Chris@4: # SysV /etc/install, /usr/sbin/install Chris@4: # SunOS /usr/etc/install Chris@4: # IRIX /sbin/install Chris@4: # AIX /bin/install Chris@4: # AmigaOS /C/install, which installs bootblocks on floppy discs Chris@4: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag Chris@4: # AFS /usr/afsws/bin/install, which mishandles nonexistent args Chris@4: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" Chris@4: # OS/2's system install, which has a completely different semantic Chris@4: # ./install, which can be erroneously created by make from ./install.sh. Chris@4: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 Chris@4: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } Chris@4: if test -z "$INSTALL"; then Chris@4: if test "${ac_cv_path_install+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: # Account for people who put trailing slashes in PATH elements. Chris@4: case $as_dir/ in Chris@4: ./ | .// | /cC/* | \ Chris@4: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ Chris@4: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ Chris@4: /usr/ucb/* ) ;; Chris@4: *) Chris@4: # OSF1 and SCO ODT 3.0 have their own names for install. Chris@4: # Don't use installbsd from OSF since it installs stuff as root Chris@4: # by default. Chris@4: for ac_prog in ginstall scoinst install; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then Chris@4: if test $ac_prog = install && Chris@4: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@4: # AIX install. It has an incompatible calling convention. Chris@4: : Chris@4: elif test $ac_prog = install && Chris@4: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@4: # program-specific install script used by HP pwplus--don't use. Chris@4: : Chris@4: else Chris@4: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" Chris@4: break 3 Chris@4: fi Chris@4: fi Chris@4: done Chris@4: done Chris@4: ;; Chris@4: esac Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: fi Chris@4: if test "${ac_cv_path_install+set}" = set; then Chris@4: INSTALL=$ac_cv_path_install Chris@4: else Chris@4: # As a last resort, use the slow shell script. Don't cache a Chris@4: # value for INSTALL within a source directory, because that will Chris@4: # break other packages using the cache if that directory is Chris@4: # removed, or if the value is a relative name. Chris@4: INSTALL=$ac_install_sh Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $INSTALL" >&5 Chris@4: echo "${ECHO_T}$INSTALL" >&6; } Chris@4: Chris@4: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. Chris@4: # It thinks the first close brace ends the variable substitution. Chris@4: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' Chris@4: Chris@4: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' Chris@4: Chris@4: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 Chris@4: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } Chris@4: # Just in case Chris@4: sleep 1 Chris@4: echo timestamp > conftest.file Chris@4: # Do `set' in a subshell so we don't clobber the current shell's Chris@4: # arguments. Must try -L first in case configure is actually a Chris@4: # symlink; some systems play weird games with the mod time of symlinks Chris@4: # (eg FreeBSD returns the mod time of the symlink's containing Chris@4: # directory). Chris@4: if ( Chris@4: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` Chris@4: if test "$*" = "X"; then Chris@4: # -L didn't work. Chris@4: set X `ls -t $srcdir/configure conftest.file` Chris@4: fi Chris@4: rm -f conftest.file Chris@4: if test "$*" != "X $srcdir/configure conftest.file" \ Chris@4: && test "$*" != "X conftest.file $srcdir/configure"; then Chris@4: Chris@4: # If neither matched, then we have a broken ls. This can happen Chris@4: # if, for instance, CONFIG_SHELL is bash and it inherits a Chris@4: # broken ls alias from the environment. This has actually Chris@4: # happened. Such a system could not be considered "sane". Chris@4: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken Chris@4: alias in your environment" >&5 Chris@4: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken Chris@4: alias in your environment" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: test "$2" = conftest.file Chris@4: ) Chris@4: then Chris@4: # Ok. Chris@4: : Chris@4: else Chris@4: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Chris@4: Check your system clock" >&5 Chris@4: echo "$as_me: error: newly created file is older than distributed files! Chris@4: Check your system clock" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: test "$program_prefix" != NONE && Chris@4: program_transform_name="s&^&$program_prefix&;$program_transform_name" Chris@4: # Use a double $ so make ignores it. Chris@4: test "$program_suffix" != NONE && Chris@4: program_transform_name="s&\$&$program_suffix&;$program_transform_name" Chris@4: # Double any \ or $. echo might interpret backslashes. Chris@4: # By default was `s,x,x', remove it if useless. Chris@4: cat <<\_ACEOF >conftest.sed Chris@4: s/[\\$]/&&/g;s/;s,x,x,$// Chris@4: _ACEOF Chris@4: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` Chris@4: rm -f conftest.sed Chris@4: Chris@4: # expand $ac_aux_dir to an absolute path Chris@4: am_aux_dir=`cd $ac_aux_dir && pwd` Chris@4: Chris@4: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" Chris@4: # Use eval to expand $SHELL Chris@4: if eval "$MISSING --run true"; then Chris@4: am_missing_run="$MISSING --run " Chris@4: else Chris@4: am_missing_run= Chris@4: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 Chris@4: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 Chris@4: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } Chris@4: if test -z "$MKDIR_P"; then Chris@4: if test "${ac_cv_path_mkdir+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_prog in mkdir gmkdir; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue Chris@4: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( Chris@4: 'mkdir (GNU coreutils) '* | \ Chris@4: 'mkdir (coreutils) '* | \ Chris@4: 'mkdir (fileutils) '4.1*) Chris@4: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext Chris@4: break 3;; Chris@4: esac Chris@4: done Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: Chris@4: if test "${ac_cv_path_mkdir+set}" = set; then Chris@4: MKDIR_P="$ac_cv_path_mkdir -p" Chris@4: else Chris@4: # As a last resort, use the slow shell script. Don't cache a Chris@4: # value for MKDIR_P within a source directory, because that will Chris@4: # break other packages using the cache if that directory is Chris@4: # removed, or if the value is a relative name. Chris@4: test -d ./--version && rmdir ./--version Chris@4: MKDIR_P="$ac_install_sh -d" Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 Chris@4: echo "${ECHO_T}$MKDIR_P" >&6; } Chris@4: Chris@4: mkdir_p="$MKDIR_P" Chris@4: case $mkdir_p in Chris@4: [\\/$]* | ?:[\\/]*) ;; Chris@4: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; Chris@4: esac Chris@4: Chris@4: for ac_prog in gawk mawk nawk awk Chris@4: do Chris@4: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@4: set dummy $ac_prog; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_AWK+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$AWK"; then Chris@4: ac_cv_prog_AWK="$AWK" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_AWK="$ac_prog" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: AWK=$ac_cv_prog_AWK Chris@4: if test -n "$AWK"; then Chris@4: { echo "$as_me:$LINENO: result: $AWK" >&5 Chris@4: echo "${ECHO_T}$AWK" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: test -n "$AWK" && break Chris@4: done Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 Chris@4: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } Chris@4: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` Chris@4: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.make <<\_ACEOF Chris@4: SHELL = /bin/sh Chris@4: all: Chris@4: @echo '@@@%%%=$(MAKE)=@@@%%%' Chris@4: _ACEOF Chris@4: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. Chris@4: case `${MAKE-make} -f conftest.make 2>/dev/null` in Chris@4: *@@@%%%=?*=@@@%%%*) Chris@4: eval ac_cv_prog_make_${ac_make}_set=yes;; Chris@4: *) Chris@4: eval ac_cv_prog_make_${ac_make}_set=no;; Chris@4: esac Chris@4: rm -f conftest.make Chris@4: fi Chris@4: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: SET_MAKE= Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: SET_MAKE="MAKE=${MAKE-make}" Chris@4: fi Chris@4: Chris@4: rm -rf .tst 2>/dev/null Chris@4: mkdir .tst 2>/dev/null Chris@4: if test -d .tst; then Chris@4: am__leading_dot=. Chris@4: else Chris@4: am__leading_dot=_ Chris@4: fi Chris@4: rmdir .tst 2>/dev/null Chris@4: Chris@4: if test "`cd $srcdir && pwd`" != "`pwd`"; then Chris@4: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output Chris@4: # is not polluted with repeated "-I." Chris@4: am__isrc=' -I$(srcdir)' Chris@4: # test to see if srcdir already configured Chris@4: if test -f $srcdir/config.status; then Chris@4: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 Chris@4: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: fi Chris@4: Chris@4: # test whether we have cygpath Chris@4: if test -z "$CYGPATH_W"; then Chris@4: if (cygpath --version) >/dev/null 2>/dev/null; then Chris@4: CYGPATH_W='cygpath -w' Chris@4: else Chris@4: CYGPATH_W=echo Chris@4: fi Chris@4: fi Chris@4: Chris@4: Chris@4: # Define the identity of the package. Chris@4: PACKAGE='liblo' Chris@4: VERSION='0.26' Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define PACKAGE "$PACKAGE" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define VERSION "$VERSION" Chris@4: _ACEOF Chris@4: Chris@4: # Some tools Automake needs. Chris@4: Chris@4: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} Chris@4: Chris@4: Chris@4: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} Chris@4: Chris@4: Chris@4: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} Chris@4: Chris@4: Chris@4: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} Chris@4: Chris@4: Chris@4: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} Chris@4: Chris@4: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} Chris@4: Chris@4: # Installed binaries are usually stripped using `strip' when the user Chris@4: # run `make install-strip'. However `strip' might not be the right Chris@4: # tool to use in cross-compilation environments, therefore Automake Chris@4: # will honor the `STRIP' environment variable to overrule this program. Chris@4: if test "$cross_compiling" != no; then Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}strip; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_STRIP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$STRIP"; then Chris@4: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_STRIP="${ac_tool_prefix}strip" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: STRIP=$ac_cv_prog_STRIP Chris@4: if test -n "$STRIP"; then Chris@4: { echo "$as_me:$LINENO: result: $STRIP" >&5 Chris@4: echo "${ECHO_T}$STRIP" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_STRIP"; then Chris@4: ac_ct_STRIP=$STRIP Chris@4: # Extract the first word of "strip", so it can be a program name with args. Chris@4: set dummy strip; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_STRIP"; then Chris@4: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_STRIP="strip" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP Chris@4: if test -n "$ac_ct_STRIP"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 Chris@4: echo "${ECHO_T}$ac_ct_STRIP" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_STRIP" = x; then Chris@4: STRIP=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: STRIP=$ac_ct_STRIP Chris@4: fi Chris@4: else Chris@4: STRIP="$ac_cv_prog_STRIP" Chris@4: fi Chris@4: Chris@4: fi Chris@4: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" Chris@4: Chris@4: # We need awk for the "check" target. The system "awk" is bad on Chris@4: # some platforms. Chris@4: # Always define AMTAR for backward compatibility. Chris@4: Chris@4: AMTAR=${AMTAR-"${am_missing_run}tar"} Chris@4: Chris@4: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --enable-static was given. Chris@4: if test "${enable_static+set}" = set; then Chris@4: enableval=$enable_static; p=${PACKAGE-default} Chris@4: case $enableval in Chris@4: yes) enable_static=yes ;; Chris@4: no) enable_static=no ;; Chris@4: *) Chris@4: enable_static=no Chris@4: # Look at the argument we got. We use all the common list separators. Chris@4: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," Chris@4: for pkg in $enableval; do Chris@4: IFS="$lt_save_ifs" Chris@4: if test "X$pkg" = "X$p"; then Chris@4: enable_static=yes Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: enable_static=no Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --enable-shared was given. Chris@4: if test "${enable_shared+set}" = set; then Chris@4: enableval=$enable_shared; p=${PACKAGE-default} Chris@4: case $enableval in Chris@4: yes) enable_shared=yes ;; Chris@4: no) enable_shared=no ;; Chris@4: *) Chris@4: enable_shared=no Chris@4: # Look at the argument we got. We use all the common list separators. Chris@4: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," Chris@4: for pkg in $enableval; do Chris@4: IFS="$lt_save_ifs" Chris@4: if test "X$pkg" = "X$p"; then Chris@4: enable_shared=yes Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: enable_shared=yes Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # disable support for ipv6. Chris@4: # Check whether --enable-ipv6 was given. Chris@4: if test "${enable_ipv6+set}" = set; then Chris@4: enableval=$enable_ipv6; want_ipv6=yes Chris@4: fi Chris@4: Chris@4: if test "$want_ipv6" = "yes"; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define ENABLE_IPV6 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: # Checks for programs. Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}gcc; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$CC"; then Chris@4: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_CC="${ac_tool_prefix}gcc" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: CC=$ac_cv_prog_CC Chris@4: if test -n "$CC"; then Chris@4: { echo "$as_me:$LINENO: result: $CC" >&5 Chris@4: echo "${ECHO_T}$CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_CC"; then Chris@4: ac_ct_CC=$CC Chris@4: # Extract the first word of "gcc", so it can be a program name with args. Chris@4: set dummy gcc; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_CC"; then Chris@4: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_CC="gcc" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@4: if test -n "$ac_ct_CC"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 Chris@4: echo "${ECHO_T}$ac_ct_CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_CC" = x; then Chris@4: CC="" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: CC=$ac_ct_CC Chris@4: fi Chris@4: else Chris@4: CC="$ac_cv_prog_CC" Chris@4: fi Chris@4: Chris@4: if test -z "$CC"; then Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}cc; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$CC"; then Chris@4: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_CC="${ac_tool_prefix}cc" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: CC=$ac_cv_prog_CC Chris@4: if test -n "$CC"; then Chris@4: { echo "$as_me:$LINENO: result: $CC" >&5 Chris@4: echo "${ECHO_T}$CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: fi Chris@4: if test -z "$CC"; then Chris@4: # Extract the first word of "cc", so it can be a program name with args. Chris@4: set dummy cc; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$CC"; then Chris@4: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@4: else Chris@4: ac_prog_rejected=no Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then Chris@4: ac_prog_rejected=yes Chris@4: continue Chris@4: fi Chris@4: ac_cv_prog_CC="cc" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: if test $ac_prog_rejected = yes; then Chris@4: # We found a bogon in the path, so make sure we never use it. Chris@4: set dummy $ac_cv_prog_CC Chris@4: shift Chris@4: if test $# != 0; then Chris@4: # We chose a different compiler from the bogus one. Chris@4: # However, it has the same basename, so the bogon will be chosen Chris@4: # first if we set CC to just the basename; use the full file name. Chris@4: shift Chris@4: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: CC=$ac_cv_prog_CC Chris@4: if test -n "$CC"; then Chris@4: { echo "$as_me:$LINENO: result: $CC" >&5 Chris@4: echo "${ECHO_T}$CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$CC"; then Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: for ac_prog in cl.exe Chris@4: do Chris@4: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@4: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$CC"; then Chris@4: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: CC=$ac_cv_prog_CC Chris@4: if test -n "$CC"; then Chris@4: { echo "$as_me:$LINENO: result: $CC" >&5 Chris@4: echo "${ECHO_T}$CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: test -n "$CC" && break Chris@4: done Chris@4: fi Chris@4: if test -z "$CC"; then Chris@4: ac_ct_CC=$CC Chris@4: for ac_prog in cl.exe Chris@4: do Chris@4: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@4: set dummy $ac_prog; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_CC"; then Chris@4: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_CC="$ac_prog" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@4: if test -n "$ac_ct_CC"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 Chris@4: echo "${ECHO_T}$ac_ct_CC" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: test -n "$ac_ct_CC" && break Chris@4: done Chris@4: Chris@4: if test "x$ac_ct_CC" = x; then Chris@4: CC="" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: CC=$ac_ct_CC Chris@4: fi Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: no acceptable C compiler found in \$PATH Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: # Provide some information about the compiler. Chris@4: echo "$as_me:$LINENO: checking for C compiler version" >&5 Chris@4: ac_compiler=`set X $ac_compile; echo $2` Chris@4: { (ac_try="$ac_compiler --version >&5" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compiler --version >&5") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } Chris@4: { (ac_try="$ac_compiler -v >&5" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compiler -v >&5") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } Chris@4: { (ac_try="$ac_compiler -V >&5" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compiler -V >&5") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } Chris@4: Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: ac_clean_files_save=$ac_clean_files Chris@4: ac_clean_files="$ac_clean_files a.out a.exe b.out" Chris@4: # Try to create an executable without -o first, disregard a.out. Chris@4: # It will help us diagnose broken compilers, and finding out an intuition Chris@4: # of exeext. Chris@4: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 Chris@4: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } Chris@4: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` Chris@4: # Chris@4: # List of possible output files, starting from the most likely. Chris@4: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) Chris@4: # only as a last resort. b.out is created by i960 compilers. Chris@4: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' Chris@4: # Chris@4: # The IRIX 6 linker writes into existing files which may not be Chris@4: # executable, retaining their permissions. Remove them first so a Chris@4: # subsequent execution test works. Chris@4: ac_rmfiles= Chris@4: for ac_file in $ac_files Chris@4: do Chris@4: case $ac_file in Chris@4: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; Chris@4: * ) ac_rmfiles="$ac_rmfiles $ac_file";; Chris@4: esac Chris@4: done Chris@4: rm -f $ac_rmfiles Chris@4: Chris@4: if { (ac_try="$ac_link_default" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link_default") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. Chris@4: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' Chris@4: # in a Makefile. We should not override ac_cv_exeext if it was cached, Chris@4: # so that the user can short-circuit this test for compilers unknown to Chris@4: # Autoconf. Chris@4: for ac_file in $ac_files '' Chris@4: do Chris@4: test -f "$ac_file" || continue Chris@4: case $ac_file in Chris@4: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) Chris@4: ;; Chris@4: [ab].out ) Chris@4: # We found the default executable, but exeext='' is most Chris@4: # certainly right. Chris@4: break;; Chris@4: *.* ) Chris@4: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; Chris@4: then :; else Chris@4: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@4: fi Chris@4: # We set ac_cv_exeext here because the later test for it is not Chris@4: # safe: cross compilers may not add the suffix if given an `-o' Chris@4: # argument, so we may need to know it at that point already. Chris@4: # Even if this section looks crufty: it has the advantage of Chris@4: # actually working. Chris@4: break;; Chris@4: * ) Chris@4: break;; Chris@4: esac Chris@4: done Chris@4: test "$ac_cv_exeext" = no && ac_cv_exeext= Chris@4: Chris@4: else Chris@4: ac_file='' Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: result: $ac_file" >&5 Chris@4: echo "${ECHO_T}$ac_file" >&6; } Chris@4: if test -z "$ac_file"; then Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: { { echo "$as_me:$LINENO: error: C compiler cannot create executables Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: C compiler cannot create executables Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 77); exit 77; }; } Chris@4: fi Chris@4: Chris@4: ac_exeext=$ac_cv_exeext Chris@4: Chris@4: # Check that the compiler produces executables we can run. If not, either Chris@4: # the compiler is broken, or we cross compile. Chris@4: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 Chris@4: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } Chris@4: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 Chris@4: # If not cross compiling, check that we can run a simple program. Chris@4: if test "$cross_compiling" != yes; then Chris@4: if { ac_try='./$ac_file' Chris@4: { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; }; then Chris@4: cross_compiling=no Chris@4: else Chris@4: if test "$cross_compiling" = maybe; then Chris@4: cross_compiling=yes Chris@4: else Chris@4: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. Chris@4: If you meant to cross compile, use \`--host'. Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: cannot run C compiled programs. Chris@4: If you meant to cross compile, use \`--host'. Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: Chris@4: rm -f a.out a.exe conftest$ac_cv_exeext b.out Chris@4: ac_clean_files=$ac_clean_files_save Chris@4: # Check that the compiler produces executables we can run. If not, either Chris@4: # the compiler is broken, or we cross compile. Chris@4: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 Chris@4: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } Chris@4: { echo "$as_me:$LINENO: result: $cross_compiling" >&5 Chris@4: echo "${ECHO_T}$cross_compiling" >&6; } Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for suffix of executables" >&5 Chris@4: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: # If both `conftest.exe' and `conftest' are `present' (well, observable) Chris@4: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will Chris@4: # work properly (i.e., refer to `conftest.exe'), while it won't with Chris@4: # `rm'. Chris@4: for ac_file in conftest.exe conftest conftest.*; do Chris@4: test -f "$ac_file" || continue Chris@4: case $ac_file in Chris@4: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; Chris@4: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@4: break;; Chris@4: * ) break;; Chris@4: esac Chris@4: done Chris@4: else Chris@4: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: rm -f conftest$ac_cv_exeext Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 Chris@4: echo "${ECHO_T}$ac_cv_exeext" >&6; } Chris@4: Chris@4: rm -f conftest.$ac_ext Chris@4: EXEEXT=$ac_cv_exeext Chris@4: ac_exeext=$EXEEXT Chris@4: { echo "$as_me:$LINENO: checking for suffix of object files" >&5 Chris@4: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_objext+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.o conftest.obj Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: for ac_file in conftest.o conftest.obj conftest.*; do Chris@4: test -f "$ac_file" || continue; Chris@4: case $ac_file in Chris@4: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; Chris@4: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` Chris@4: break;; Chris@4: esac Chris@4: done Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: cannot compute suffix of object files: cannot compile Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: rm -f conftest.$ac_cv_objext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 Chris@4: echo "${ECHO_T}$ac_cv_objext" >&6; } Chris@4: OBJEXT=$ac_cv_objext Chris@4: ac_objext=$OBJEXT Chris@4: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 Chris@4: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_c_compiler_gnu+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: #ifndef __GNUC__ Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_compiler_gnu=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_compiler_gnu=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: ac_cv_c_compiler_gnu=$ac_compiler_gnu Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 Chris@4: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } Chris@4: GCC=`test $ac_compiler_gnu = yes && echo yes` Chris@4: ac_test_CFLAGS=${CFLAGS+set} Chris@4: ac_save_CFLAGS=$CFLAGS Chris@4: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 Chris@4: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_cc_g+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_save_c_werror_flag=$ac_c_werror_flag Chris@4: ac_c_werror_flag=yes Chris@4: ac_cv_prog_cc_g=no Chris@4: CFLAGS="-g" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_prog_cc_g=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: CFLAGS="" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: : Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_c_werror_flag=$ac_save_c_werror_flag Chris@4: CFLAGS="-g" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_prog_cc_g=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: ac_c_werror_flag=$ac_save_c_werror_flag Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 Chris@4: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } Chris@4: if test "$ac_test_CFLAGS" = set; then Chris@4: CFLAGS=$ac_save_CFLAGS Chris@4: elif test $ac_cv_prog_cc_g = yes; then Chris@4: if test "$GCC" = yes; then Chris@4: CFLAGS="-g -O2" Chris@4: else Chris@4: CFLAGS="-g" Chris@4: fi Chris@4: else Chris@4: if test "$GCC" = yes; then Chris@4: CFLAGS="-O2" Chris@4: else Chris@4: CFLAGS= Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 Chris@4: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_cc_c89+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_cv_prog_cc_c89=no Chris@4: ac_save_CC=$CC Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ Chris@4: struct buf { int x; }; Chris@4: FILE * (*rcsopen) (struct buf *, struct stat *, int); Chris@4: static char *e (p, i) Chris@4: char **p; Chris@4: int i; Chris@4: { Chris@4: return p[i]; Chris@4: } Chris@4: static char *f (char * (*g) (char **, int), char **p, ...) Chris@4: { Chris@4: char *s; Chris@4: va_list v; Chris@4: va_start (v,p); Chris@4: s = g (p, va_arg (v,int)); Chris@4: va_end (v); Chris@4: return s; Chris@4: } Chris@4: Chris@4: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has Chris@4: function prototypes and stuff, but not '\xHH' hex character constants. Chris@4: These don't provoke an error unfortunately, instead are silently treated Chris@4: as 'x'. The following induces an error, until -std is added to get Chris@4: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an Chris@4: array size at least. It's necessary to write '\x00'==0 to get something Chris@4: that's true only with -std. */ Chris@4: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; Chris@4: Chris@4: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters Chris@4: inside strings and character constants. */ Chris@4: #define FOO(x) 'x' Chris@4: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; Chris@4: Chris@4: int test (int i, double x); Chris@4: struct s1 {int (*f) (int a);}; Chris@4: struct s2 {int (*f) (double a);}; Chris@4: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); Chris@4: int argc; Chris@4: char **argv; Chris@4: int Chris@4: main () Chris@4: { Chris@4: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ Chris@4: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" Chris@4: do Chris@4: CC="$ac_save_CC $ac_arg" Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_prog_cc_c89=$ac_arg Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext Chris@4: test "x$ac_cv_prog_cc_c89" != "xno" && break Chris@4: done Chris@4: rm -f conftest.$ac_ext Chris@4: CC=$ac_save_CC Chris@4: Chris@4: fi Chris@4: # AC_CACHE_VAL Chris@4: case "x$ac_cv_prog_cc_c89" in Chris@4: x) Chris@4: { echo "$as_me:$LINENO: result: none needed" >&5 Chris@4: echo "${ECHO_T}none needed" >&6; } ;; Chris@4: xno) Chris@4: { echo "$as_me:$LINENO: result: unsupported" >&5 Chris@4: echo "${ECHO_T}unsupported" >&6; } ;; Chris@4: *) Chris@4: CC="$CC $ac_cv_prog_cc_c89" Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 Chris@4: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; Chris@4: esac Chris@4: Chris@4: Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: DEPDIR="${am__leading_dot}deps" Chris@4: Chris@4: ac_config_commands="$ac_config_commands depfiles" Chris@4: Chris@4: Chris@4: am_make=${MAKE-make} Chris@4: cat > confinc << 'END' Chris@4: am__doit: Chris@4: @echo done Chris@4: .PHONY: am__doit Chris@4: END Chris@4: # If we don't find an include directive, just comment out the code. Chris@4: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 Chris@4: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } Chris@4: am__include="#" Chris@4: am__quote= Chris@4: _am_result=none Chris@4: # First try GNU make style include. Chris@4: echo "include confinc" > confmf Chris@4: # We grep out `Entering directory' and `Leaving directory' Chris@4: # messages which can occur if `w' ends up in MAKEFLAGS. Chris@4: # In particular we don't look at `^make:' because GNU make might Chris@4: # be invoked under some other name (usually "gmake"), in which Chris@4: # case it prints its new name instead of `make'. Chris@4: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then Chris@4: am__include=include Chris@4: am__quote= Chris@4: _am_result=GNU Chris@4: fi Chris@4: # Now try BSD make style include. Chris@4: if test "$am__include" = "#"; then Chris@4: echo '.include "confinc"' > confmf Chris@4: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then Chris@4: am__include=.include Chris@4: am__quote="\"" Chris@4: _am_result=BSD Chris@4: fi Chris@4: fi Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: result: $_am_result" >&5 Chris@4: echo "${ECHO_T}$_am_result" >&6; } Chris@4: rm -f confinc confmf Chris@4: Chris@4: # Check whether --enable-dependency-tracking was given. Chris@4: if test "${enable_dependency_tracking+set}" = set; then Chris@4: enableval=$enable_dependency_tracking; Chris@4: fi Chris@4: Chris@4: if test "x$enable_dependency_tracking" != xno; then Chris@4: am_depcomp="$ac_aux_dir/depcomp" Chris@4: AMDEPBACKSLASH='\' Chris@4: fi Chris@4: if test "x$enable_dependency_tracking" != xno; then Chris@4: AMDEP_TRUE= Chris@4: AMDEP_FALSE='#' Chris@4: else Chris@4: AMDEP_TRUE='#' Chris@4: AMDEP_FALSE= Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: depcc="$CC" am_compiler_list= Chris@4: Chris@4: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 Chris@4: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } Chris@4: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then Chris@4: # We make a subdir and do the tests there. Otherwise we can end up Chris@4: # making bogus files that we don't know about and never remove. For Chris@4: # instance it was reported that on HP-UX the gcc test will end up Chris@4: # making a dummy file named `D' -- because `-MD' means `put the output Chris@4: # in D'. Chris@4: mkdir conftest.dir Chris@4: # Copy depcomp to subdir because otherwise we won't find it if we're Chris@4: # using a relative directory. Chris@4: cp "$am_depcomp" conftest.dir Chris@4: cd conftest.dir Chris@4: # We will build objects and dependencies in a subdirectory because Chris@4: # it helps to detect inapplicable dependency modes. For instance Chris@4: # both Tru64's cc and ICC support -MD to output dependencies as a Chris@4: # side effect of compilation, but ICC will put the dependencies in Chris@4: # the current directory while Tru64 will put them in the object Chris@4: # directory. Chris@4: mkdir sub Chris@4: Chris@4: am_cv_CC_dependencies_compiler_type=none Chris@4: if test "$am_compiler_list" = ""; then Chris@4: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` Chris@4: fi Chris@4: for depmode in $am_compiler_list; do Chris@4: # Setup a source with many dependencies, because some compilers Chris@4: # like to wrap large dependency lists on column 80 (with \), and Chris@4: # we should not choose a depcomp mode which is confused by this. Chris@4: # Chris@4: # We need to recreate these files for each test, as the compiler may Chris@4: # overwrite some of them when testing with obscure command lines. Chris@4: # This happens at least with the AIX C compiler. Chris@4: : > sub/conftest.c Chris@4: for i in 1 2 3 4 5 6; do Chris@4: echo '#include "conftst'$i'.h"' >> sub/conftest.c Chris@4: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with Chris@4: # Solaris 8's {/usr,}/bin/sh. Chris@4: touch sub/conftst$i.h Chris@4: done Chris@4: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf Chris@4: Chris@4: case $depmode in Chris@4: nosideeffect) Chris@4: # after this tag, mechanisms are not by side-effect, so they'll Chris@4: # only be used when explicitly requested Chris@4: if test "x$enable_dependency_tracking" = xyes; then Chris@4: continue Chris@4: else Chris@4: break Chris@4: fi Chris@4: ;; Chris@4: none) break ;; Chris@4: esac Chris@4: # We check with `-c' and `-o' for the sake of the "dashmstdout" Chris@4: # mode. It turns out that the SunPro C++ compiler does not properly Chris@4: # handle `-M -o', and we need to detect this. Chris@4: if depmode=$depmode \ Chris@4: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ Chris@4: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ Chris@4: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ Chris@4: >/dev/null 2>conftest.err && Chris@4: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && Chris@4: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && Chris@4: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && Chris@4: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then Chris@4: # icc doesn't choke on unknown options, it will just issue warnings Chris@4: # or remarks (even with -Werror). So we grep stderr for any message Chris@4: # that says an option was ignored or not supported. Chris@4: # When given -MP, icc 7.0 and 7.1 complain thusly: Chris@4: # icc: Command line warning: ignoring option '-M'; no argument required Chris@4: # The diagnosis changed in icc 8.0: Chris@4: # icc: Command line remark: option '-MP' not supported Chris@4: if (grep 'ignoring option' conftest.err || Chris@4: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else Chris@4: am_cv_CC_dependencies_compiler_type=$depmode Chris@4: break Chris@4: fi Chris@4: fi Chris@4: done Chris@4: Chris@4: cd .. Chris@4: rm -rf conftest.dir Chris@4: else Chris@4: am_cv_CC_dependencies_compiler_type=none Chris@4: fi Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 Chris@4: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } Chris@4: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type Chris@4: Chris@4: if Chris@4: test "x$enable_dependency_tracking" != xno \ Chris@4: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then Chris@4: am__fastdepCC_TRUE= Chris@4: am__fastdepCC_FALSE='#' Chris@4: else Chris@4: am__fastdepCC_TRUE='#' Chris@4: am__fastdepCC_FALSE= Chris@4: fi Chris@4: Chris@4: Chris@4: case `pwd` in Chris@4: *\ * | *\ *) Chris@4: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 Chris@4: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; Chris@4: esac Chris@4: Chris@4: Chris@4: Chris@4: macro_version='2.2.4' Chris@4: macro_revision='1.2976' Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: ltmain="$ac_aux_dir/ltmain.sh" Chris@4: Chris@4: # Make sure we can run config.sub. Chris@4: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || Chris@4: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 Chris@4: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: { echo "$as_me:$LINENO: checking build system type" >&5 Chris@4: echo $ECHO_N "checking build system type... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_build+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_build_alias=$build_alias Chris@4: test "x$ac_build_alias" = x && Chris@4: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` Chris@4: test "x$ac_build_alias" = x && Chris@4: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 Chris@4: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || Chris@4: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 Chris@4: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 Chris@4: echo "${ECHO_T}$ac_cv_build" >&6; } Chris@4: case $ac_cv_build in Chris@4: *-*-*) ;; Chris@4: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 Chris@4: echo "$as_me: error: invalid value of canonical build" >&2;} Chris@4: { (exit 1); exit 1; }; };; Chris@4: esac Chris@4: build=$ac_cv_build Chris@4: ac_save_IFS=$IFS; IFS='-' Chris@4: set x $ac_cv_build Chris@4: shift Chris@4: build_cpu=$1 Chris@4: build_vendor=$2 Chris@4: shift; shift Chris@4: # Remember, the first character of IFS is used to create $*, Chris@4: # except with old shells: Chris@4: build_os=$* Chris@4: IFS=$ac_save_IFS Chris@4: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking host system type" >&5 Chris@4: echo $ECHO_N "checking host system type... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_host+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test "x$host_alias" = x; then Chris@4: ac_cv_host=$ac_cv_build Chris@4: else Chris@4: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || Chris@4: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 Chris@4: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 Chris@4: echo "${ECHO_T}$ac_cv_host" >&6; } Chris@4: case $ac_cv_host in Chris@4: *-*-*) ;; Chris@4: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 Chris@4: echo "$as_me: error: invalid value of canonical host" >&2;} Chris@4: { (exit 1); exit 1; }; };; Chris@4: esac Chris@4: host=$ac_cv_host Chris@4: ac_save_IFS=$IFS; IFS='-' Chris@4: set x $ac_cv_host Chris@4: shift Chris@4: host_cpu=$1 Chris@4: host_vendor=$2 Chris@4: shift; shift Chris@4: # Remember, the first character of IFS is used to create $*, Chris@4: # except with old shells: Chris@4: host_os=$* Chris@4: IFS=$ac_save_IFS Chris@4: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 Chris@4: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_path_SED+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ Chris@4: for ac_i in 1 2 3 4 5 6 7; do Chris@4: ac_script="$ac_script$as_nl$ac_script" Chris@4: done Chris@4: echo "$ac_script" | sed 99q >conftest.sed Chris@4: $as_unset ac_script || ac_script= Chris@4: # Extract the first word of "sed gsed" to use in msg output Chris@4: if test -z "$SED"; then Chris@4: set dummy sed gsed; ac_prog_name=$2 Chris@4: if test "${ac_cv_path_SED+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_path_SED_found=false Chris@4: # Loop through the user's path and test for each of PROGNAME-LIST Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_prog in sed gsed; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" Chris@4: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue Chris@4: # Check for GNU ac_path_SED and select it if it is found. Chris@4: # Check for GNU $ac_path_SED Chris@4: case `"$ac_path_SED" --version 2>&1` in Chris@4: *GNU*) Chris@4: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; Chris@4: *) Chris@4: ac_count=0 Chris@4: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@4: while : Chris@4: do Chris@4: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@4: mv "conftest.tmp" "conftest.in" Chris@4: cp "conftest.in" "conftest.nl" Chris@4: echo '' >> "conftest.nl" Chris@4: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@4: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@4: ac_count=`expr $ac_count + 1` Chris@4: if test $ac_count -gt ${ac_path_SED_max-0}; then Chris@4: # Best one so far, save it but keep looking for a better one Chris@4: ac_cv_path_SED="$ac_path_SED" Chris@4: ac_path_SED_max=$ac_count Chris@4: fi Chris@4: # 10*(2^10) chars as input seems more than enough Chris@4: test $ac_count -gt 10 && break Chris@4: done Chris@4: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@4: esac Chris@4: Chris@4: Chris@4: $ac_path_SED_found && break 3 Chris@4: done Chris@4: done Chris@4: Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: SED="$ac_cv_path_SED" Chris@4: if test -z "$SED"; then Chris@4: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 Chris@4: echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: else Chris@4: ac_cv_path_SED=$SED Chris@4: fi Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 Chris@4: echo "${ECHO_T}$ac_cv_path_SED" >&6; } Chris@4: SED="$ac_cv_path_SED" Chris@4: rm -f conftest.sed Chris@4: Chris@4: test -z "$SED" && SED=sed Chris@4: Xsed="$SED -e 1s/^X//" Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 Chris@4: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_path_GREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: # Extract the first word of "grep ggrep" to use in msg output Chris@4: if test -z "$GREP"; then Chris@4: set dummy grep ggrep; ac_prog_name=$2 Chris@4: if test "${ac_cv_path_GREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_path_GREP_found=false Chris@4: # Loop through the user's path and test for each of PROGNAME-LIST Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_prog in grep ggrep; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" Chris@4: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue Chris@4: # Check for GNU ac_path_GREP and select it if it is found. Chris@4: # Check for GNU $ac_path_GREP Chris@4: case `"$ac_path_GREP" --version 2>&1` in Chris@4: *GNU*) Chris@4: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; Chris@4: *) Chris@4: ac_count=0 Chris@4: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@4: while : Chris@4: do Chris@4: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@4: mv "conftest.tmp" "conftest.in" Chris@4: cp "conftest.in" "conftest.nl" Chris@4: echo 'GREP' >> "conftest.nl" Chris@4: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@4: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@4: ac_count=`expr $ac_count + 1` Chris@4: if test $ac_count -gt ${ac_path_GREP_max-0}; then Chris@4: # Best one so far, save it but keep looking for a better one Chris@4: ac_cv_path_GREP="$ac_path_GREP" Chris@4: ac_path_GREP_max=$ac_count Chris@4: fi Chris@4: # 10*(2^10) chars as input seems more than enough Chris@4: test $ac_count -gt 10 && break Chris@4: done Chris@4: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@4: esac Chris@4: Chris@4: Chris@4: $ac_path_GREP_found && break 3 Chris@4: done Chris@4: done Chris@4: Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: GREP="$ac_cv_path_GREP" Chris@4: if test -z "$GREP"; then Chris@4: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 Chris@4: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: else Chris@4: ac_cv_path_GREP=$GREP Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 Chris@4: echo "${ECHO_T}$ac_cv_path_GREP" >&6; } Chris@4: GREP="$ac_cv_path_GREP" Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for egrep" >&5 Chris@4: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_path_EGREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 Chris@4: then ac_cv_path_EGREP="$GREP -E" Chris@4: else Chris@4: # Extract the first word of "egrep" to use in msg output Chris@4: if test -z "$EGREP"; then Chris@4: set dummy egrep; ac_prog_name=$2 Chris@4: if test "${ac_cv_path_EGREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_path_EGREP_found=false Chris@4: # Loop through the user's path and test for each of PROGNAME-LIST Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_prog in egrep; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" Chris@4: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue Chris@4: # Check for GNU ac_path_EGREP and select it if it is found. Chris@4: # Check for GNU $ac_path_EGREP Chris@4: case `"$ac_path_EGREP" --version 2>&1` in Chris@4: *GNU*) Chris@4: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; Chris@4: *) Chris@4: ac_count=0 Chris@4: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@4: while : Chris@4: do Chris@4: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@4: mv "conftest.tmp" "conftest.in" Chris@4: cp "conftest.in" "conftest.nl" Chris@4: echo 'EGREP' >> "conftest.nl" Chris@4: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@4: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@4: ac_count=`expr $ac_count + 1` Chris@4: if test $ac_count -gt ${ac_path_EGREP_max-0}; then Chris@4: # Best one so far, save it but keep looking for a better one Chris@4: ac_cv_path_EGREP="$ac_path_EGREP" Chris@4: ac_path_EGREP_max=$ac_count Chris@4: fi Chris@4: # 10*(2^10) chars as input seems more than enough Chris@4: test $ac_count -gt 10 && break Chris@4: done Chris@4: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@4: esac Chris@4: Chris@4: Chris@4: $ac_path_EGREP_found && break 3 Chris@4: done Chris@4: done Chris@4: Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: EGREP="$ac_cv_path_EGREP" Chris@4: if test -z "$EGREP"; then Chris@4: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 Chris@4: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: else Chris@4: ac_cv_path_EGREP=$EGREP Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 Chris@4: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } Chris@4: EGREP="$ac_cv_path_EGREP" Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for fgrep" >&5 Chris@4: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_path_FGREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 Chris@4: then ac_cv_path_FGREP="$GREP -F" Chris@4: else Chris@4: # Extract the first word of "fgrep" to use in msg output Chris@4: if test -z "$FGREP"; then Chris@4: set dummy fgrep; ac_prog_name=$2 Chris@4: if test "${ac_cv_path_FGREP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_path_FGREP_found=false Chris@4: # Loop through the user's path and test for each of PROGNAME-LIST Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_prog in fgrep; do Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" Chris@4: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue Chris@4: # Check for GNU ac_path_FGREP and select it if it is found. Chris@4: # Check for GNU $ac_path_FGREP Chris@4: case `"$ac_path_FGREP" --version 2>&1` in Chris@4: *GNU*) Chris@4: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; Chris@4: *) Chris@4: ac_count=0 Chris@4: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@4: while : Chris@4: do Chris@4: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@4: mv "conftest.tmp" "conftest.in" Chris@4: cp "conftest.in" "conftest.nl" Chris@4: echo 'FGREP' >> "conftest.nl" Chris@4: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@4: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@4: ac_count=`expr $ac_count + 1` Chris@4: if test $ac_count -gt ${ac_path_FGREP_max-0}; then Chris@4: # Best one so far, save it but keep looking for a better one Chris@4: ac_cv_path_FGREP="$ac_path_FGREP" Chris@4: ac_path_FGREP_max=$ac_count Chris@4: fi Chris@4: # 10*(2^10) chars as input seems more than enough Chris@4: test $ac_count -gt 10 && break Chris@4: done Chris@4: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@4: esac Chris@4: Chris@4: Chris@4: $ac_path_FGREP_found && break 3 Chris@4: done Chris@4: done Chris@4: Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: FGREP="$ac_cv_path_FGREP" Chris@4: if test -z "$FGREP"; then Chris@4: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 Chris@4: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: else Chris@4: ac_cv_path_FGREP=$FGREP Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 Chris@4: echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } Chris@4: FGREP="$ac_cv_path_FGREP" Chris@4: Chris@4: Chris@4: test -z "$GREP" && GREP=grep Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --with-gnu-ld was given. Chris@4: if test "${with_gnu_ld+set}" = set; then Chris@4: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes Chris@4: else Chris@4: with_gnu_ld=no Chris@4: fi Chris@4: Chris@4: ac_prog=ld Chris@4: if test "$GCC" = yes; then Chris@4: # Check if gcc -print-prog-name=ld gives a path. Chris@4: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 Chris@4: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } Chris@4: case $host in Chris@4: *-*-mingw*) Chris@4: # gcc leaves a trailing carriage return which upsets mingw Chris@4: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; Chris@4: *) Chris@4: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; Chris@4: esac Chris@4: case $ac_prog in Chris@4: # Accept absolute paths. Chris@4: [\\/]* | ?:[\\/]*) Chris@4: re_direlt='/[^/][^/]*/\.\./' Chris@4: # Canonicalize the pathname of ld Chris@4: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` Chris@4: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do Chris@4: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` Chris@4: done Chris@4: test -z "$LD" && LD="$ac_prog" Chris@4: ;; Chris@4: "") Chris@4: # If it fails, then pretend we aren't using GCC. Chris@4: ac_prog=ld Chris@4: ;; Chris@4: *) Chris@4: # If it is relative, then search for the first ld in PATH. Chris@4: with_gnu_ld=unknown Chris@4: ;; Chris@4: esac Chris@4: elif test "$with_gnu_ld" = yes; then Chris@4: { echo "$as_me:$LINENO: checking for GNU ld" >&5 Chris@4: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 Chris@4: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } Chris@4: fi Chris@4: if test "${lt_cv_path_LD+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -z "$LD"; then Chris@4: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR Chris@4: for ac_dir in $PATH; do Chris@4: IFS="$lt_save_ifs" Chris@4: test -z "$ac_dir" && ac_dir=. Chris@4: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then Chris@4: lt_cv_path_LD="$ac_dir/$ac_prog" Chris@4: # Check to see if the program is GNU ld. I'd rather use --version, Chris@4: # but apparently some variants of GNU ld only accept -v. Chris@4: # Break only if it was the GNU/non-GNU ld that we prefer. Chris@4: case `"$lt_cv_path_LD" -v 2>&1 &5 Chris@4: echo "${ECHO_T}$LD" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 Chris@4: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 Chris@4: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_gnu_ld+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: # I'd rather use --version here, but apparently some GNU lds only accept -v. Chris@4: case `$LD -v 2>&1 &5 Chris@4: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } Chris@4: with_gnu_ld=$lt_cv_prog_gnu_ld Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 Chris@4: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_path_NM+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$NM"; then Chris@4: # Let the user override the test. Chris@4: lt_cv_path_NM="$NM" Chris@4: else Chris@4: lt_nm_to_check="${ac_tool_prefix}nm" Chris@4: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then Chris@4: lt_nm_to_check="$lt_nm_to_check nm" Chris@4: fi Chris@4: for lt_tmp_nm in $lt_nm_to_check; do Chris@4: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR Chris@4: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do Chris@4: IFS="$lt_save_ifs" Chris@4: test -z "$ac_dir" && ac_dir=. Chris@4: tmp_nm="$ac_dir/$lt_tmp_nm" Chris@4: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then Chris@4: # Check to see if the nm accepts a BSD-compat flag. Chris@4: # Adding the `sed 1q' prevents false positives on HP-UX, which says: Chris@4: # nm: unknown option "B" ignored Chris@4: # Tru64's nm complains that /dev/null is an invalid object file Chris@4: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in Chris@4: */dev/null* | *'Invalid file or object type'*) Chris@4: lt_cv_path_NM="$tmp_nm -B" Chris@4: break Chris@4: ;; Chris@4: *) Chris@4: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in Chris@4: */dev/null*) Chris@4: lt_cv_path_NM="$tmp_nm -p" Chris@4: break Chris@4: ;; Chris@4: *) Chris@4: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but Chris@4: continue # so that we can try to find one that supports BSD flags Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: done Chris@4: : ${lt_cv_path_NM=no} Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 Chris@4: echo "${ECHO_T}$lt_cv_path_NM" >&6; } Chris@4: if test "$lt_cv_path_NM" != "no"; then Chris@4: NM="$lt_cv_path_NM" Chris@4: else Chris@4: # Didn't find any BSD compatible name lister, look for dumpbin. Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: for ac_prog in "dumpbin -symbols" "link -dump -symbols" Chris@4: do Chris@4: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@4: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_DUMPBIN+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$DUMPBIN"; then Chris@4: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: DUMPBIN=$ac_cv_prog_DUMPBIN Chris@4: if test -n "$DUMPBIN"; then Chris@4: { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 Chris@4: echo "${ECHO_T}$DUMPBIN" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: test -n "$DUMPBIN" && break Chris@4: done Chris@4: fi Chris@4: if test -z "$DUMPBIN"; then Chris@4: ac_ct_DUMPBIN=$DUMPBIN Chris@4: for ac_prog in "dumpbin -symbols" "link -dump -symbols" Chris@4: do Chris@4: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@4: set dummy $ac_prog; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_DUMPBIN"; then Chris@4: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN Chris@4: if test -n "$ac_ct_DUMPBIN"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 Chris@4: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: test -n "$ac_ct_DUMPBIN" && break Chris@4: done Chris@4: Chris@4: if test "x$ac_ct_DUMPBIN" = x; then Chris@4: DUMPBIN=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: DUMPBIN=$ac_ct_DUMPBIN Chris@4: fi Chris@4: fi Chris@4: Chris@4: Chris@4: if test "$DUMPBIN" != ":"; then Chris@4: NM="$DUMPBIN" Chris@4: fi Chris@4: fi Chris@4: test -z "$NM" && NM=nm Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 Chris@4: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_nm_interface+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_nm_interface="BSD nm" Chris@4: echo "int some_variable = 0;" > conftest.$ac_ext Chris@4: (eval echo "\"\$as_me:4353: $ac_compile\"" >&5) Chris@4: (eval "$ac_compile" 2>conftest.err) Chris@4: cat conftest.err >&5 Chris@4: (eval echo "\"\$as_me:4356: $NM \\\"conftest.$ac_objext\\\"\"" >&5) Chris@4: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) Chris@4: cat conftest.err >&5 Chris@4: (eval echo "\"\$as_me:4359: output\"" >&5) Chris@4: cat conftest.out >&5 Chris@4: if $GREP 'External.*some_variable' conftest.out > /dev/null; then Chris@4: lt_cv_nm_interface="MS dumpbin" Chris@4: fi Chris@4: rm -f conftest* Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 Chris@4: echo "${ECHO_T}$lt_cv_nm_interface" >&6; } Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether ln -s works" >&5 Chris@4: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } Chris@4: LN_S=$as_ln_s Chris@4: if test "$LN_S" = "ln -s"; then Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 Chris@4: echo "${ECHO_T}no, using $LN_S" >&6; } Chris@4: fi Chris@4: Chris@4: # find the maximum length of command line arguments Chris@4: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 Chris@4: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_sys_max_cmd_len+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: i=0 Chris@4: teststring="ABCD" Chris@4: Chris@4: case $build_os in Chris@4: msdosdjgpp*) Chris@4: # On DJGPP, this test can blow up pretty badly due to problems in libc Chris@4: # (any single argument exceeding 2000 bytes causes a buffer overrun Chris@4: # during glob expansion). Even if it were fixed, the result of this Chris@4: # check would be larger than it should be. Chris@4: lt_cv_sys_max_cmd_len=12288; # 12K is about right Chris@4: ;; Chris@4: Chris@4: gnu*) Chris@4: # Under GNU Hurd, this test is not required because there is Chris@4: # no limit to the length of command line arguments. Chris@4: # Libtool will interpret -1 as no limit whatsoever Chris@4: lt_cv_sys_max_cmd_len=-1; Chris@4: ;; Chris@4: Chris@4: cygwin* | mingw*) Chris@4: # On Win9x/ME, this test blows up -- it succeeds, but takes Chris@4: # about 5 minutes as the teststring grows exponentially. Chris@4: # Worse, since 9x/ME are not pre-emptively multitasking, Chris@4: # you end up with a "frozen" computer, even though with patience Chris@4: # the test eventually succeeds (with a max line length of 256k). Chris@4: # Instead, let's just punt: use the minimum linelength reported by Chris@4: # all of the supported platforms: 8192 (on NT/2K/XP). Chris@4: lt_cv_sys_max_cmd_len=8192; Chris@4: ;; Chris@4: Chris@4: amigaos*) Chris@4: # On AmigaOS with pdksh, this test takes hours, literally. Chris@4: # So we just punt and use a minimum line length of 8192. Chris@4: lt_cv_sys_max_cmd_len=8192; Chris@4: ;; Chris@4: Chris@4: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) Chris@4: # This has been around since 386BSD, at least. Likely further. Chris@4: if test -x /sbin/sysctl; then Chris@4: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` Chris@4: elif test -x /usr/sbin/sysctl; then Chris@4: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` Chris@4: else Chris@4: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs Chris@4: fi Chris@4: # And add a safety zone Chris@4: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` Chris@4: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` Chris@4: ;; Chris@4: Chris@4: interix*) Chris@4: # We know the value 262144 and hardcode it with a safety zone (like BSD) Chris@4: lt_cv_sys_max_cmd_len=196608 Chris@4: ;; Chris@4: Chris@4: osf*) Chris@4: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure Chris@4: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not Chris@4: # nice to cause kernel panics so lets avoid the loop below. Chris@4: # First set a reasonable default. Chris@4: lt_cv_sys_max_cmd_len=16384 Chris@4: # Chris@4: if test -x /sbin/sysconfig; then Chris@4: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in Chris@4: *1*) lt_cv_sys_max_cmd_len=-1 ;; Chris@4: esac Chris@4: fi Chris@4: ;; Chris@4: sco3.2v5*) Chris@4: lt_cv_sys_max_cmd_len=102400 Chris@4: ;; Chris@4: sysv5* | sco5v6* | sysv4.2uw2*) Chris@4: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` Chris@4: if test -n "$kargmax"; then Chris@4: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` Chris@4: else Chris@4: lt_cv_sys_max_cmd_len=32768 Chris@4: fi Chris@4: ;; Chris@4: *) Chris@4: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` Chris@4: if test -n "$lt_cv_sys_max_cmd_len"; then Chris@4: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` Chris@4: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` Chris@4: else Chris@4: # Make teststring a little bigger before we do anything with it. Chris@4: # a 1K string should be a reasonable start. Chris@4: for i in 1 2 3 4 5 6 7 8 ; do Chris@4: teststring=$teststring$teststring Chris@4: done Chris@4: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} Chris@4: # If test is not a shell built-in, we'll probably end up computing a Chris@4: # maximum length that is only half of the actual maximum length, but Chris@4: # we can't tell. Chris@4: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ Chris@4: = "XX$teststring$teststring"; } >/dev/null 2>&1 && Chris@4: test $i != 17 # 1/2 MB should be enough Chris@4: do Chris@4: i=`expr $i + 1` Chris@4: teststring=$teststring$teststring Chris@4: done Chris@4: # Only check the string length outside the loop. Chris@4: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` Chris@4: teststring= Chris@4: # Add a significant safety factor because C++ compilers can tack on Chris@4: # massive amounts of additional arguments before passing them to the Chris@4: # linker. It appears as though 1/2 is a usable value. Chris@4: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: Chris@4: if test -n $lt_cv_sys_max_cmd_len ; then Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 Chris@4: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: none" >&5 Chris@4: echo "${ECHO_T}none" >&6; } Chris@4: fi Chris@4: max_cmd_len=$lt_cv_sys_max_cmd_len Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: : ${CP="cp -f"} Chris@4: : ${MV="mv -f"} Chris@4: : ${RM="rm -f"} Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 Chris@4: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } Chris@4: # Try some XSI features Chris@4: xsi_shell=no Chris@4: ( _lt_dummy="a/b/c" Chris@4: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ Chris@4: = c,a/b,, \ Chris@4: && eval 'test $(( 1 + 1 )) -eq 2 \ Chris@4: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ Chris@4: && xsi_shell=yes Chris@4: { echo "$as_me:$LINENO: result: $xsi_shell" >&5 Chris@4: echo "${ECHO_T}$xsi_shell" >&6; } Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 Chris@4: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } Chris@4: lt_shell_append=no Chris@4: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ Chris@4: >/dev/null 2>&1 \ Chris@4: && lt_shell_append=yes Chris@4: { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 Chris@4: echo "${ECHO_T}$lt_shell_append" >&6; } Chris@4: Chris@4: Chris@4: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then Chris@4: lt_unset=unset Chris@4: else Chris@4: lt_unset=false Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # test EBCDIC or ASCII Chris@4: case `echo X|tr X '\101'` in Chris@4: A) # ASCII based system Chris@4: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr Chris@4: lt_SP2NL='tr \040 \012' Chris@4: lt_NL2SP='tr \015\012 \040\040' Chris@4: ;; Chris@4: *) # EBCDIC based system Chris@4: lt_SP2NL='tr \100 \n' Chris@4: lt_NL2SP='tr \r\n \100\100' Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 Chris@4: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_ld_reload_flag+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_ld_reload_flag='-r' Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 Chris@4: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } Chris@4: reload_flag=$lt_cv_ld_reload_flag Chris@4: case $reload_flag in Chris@4: "" | " "*) ;; Chris@4: *) reload_flag=" $reload_flag" ;; Chris@4: esac Chris@4: reload_cmds='$LD$reload_flag -o $output$reload_objs' Chris@4: case $host_os in Chris@4: darwin*) Chris@4: if test "$GCC" = yes; then Chris@4: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' Chris@4: else Chris@4: reload_cmds='$LD$reload_flag -o $output$reload_objs' Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 Chris@4: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_deplibs_check_method+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_file_magic_cmd='$MAGIC_CMD' Chris@4: lt_cv_file_magic_test_file= Chris@4: lt_cv_deplibs_check_method='unknown' Chris@4: # Need to set the preceding variable on all platforms that support Chris@4: # interlibrary dependencies. Chris@4: # 'none' -- dependencies not supported. Chris@4: # `unknown' -- same as none, but documents that we really don't know. Chris@4: # 'pass_all' -- all dependencies passed with no checks. Chris@4: # 'test_compile' -- check by making test program. Chris@4: # 'file_magic [[regex]]' -- check by looking for files in library path Chris@4: # which responds to the $file_magic_cmd with a given extended regex. Chris@4: # If you have `file' or equivalent on your system and you're not sure Chris@4: # whether `pass_all' will *always* work, you probably want this one. Chris@4: Chris@4: case $host_os in Chris@4: aix[4-9]*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: beos*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: bsdi[45]*) Chris@4: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' Chris@4: lt_cv_file_magic_cmd='/usr/bin/file -L' Chris@4: lt_cv_file_magic_test_file=/shlib/libc.so Chris@4: ;; Chris@4: Chris@4: cygwin*) Chris@4: # func_win32_libid is a shell function defined in ltmain.sh Chris@4: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' Chris@4: lt_cv_file_magic_cmd='func_win32_libid' Chris@4: ;; Chris@4: Chris@4: mingw* | pw32*) Chris@4: # Base MSYS/MinGW do not provide the 'file' command needed by Chris@4: # func_win32_libid shell function, so use a weaker test based on 'objdump', Chris@4: # unless we find 'file', for example because we are cross-compiling. Chris@4: if ( file / ) >/dev/null 2>&1; then Chris@4: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' Chris@4: lt_cv_file_magic_cmd='func_win32_libid' Chris@4: else Chris@4: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' Chris@4: lt_cv_file_magic_cmd='$OBJDUMP -f' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: darwin* | rhapsody*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: freebsd* | dragonfly*) Chris@4: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then Chris@4: case $host_cpu in Chris@4: i*86 ) Chris@4: # Not sure whether the presence of OpenBSD here was a mistake. Chris@4: # Let's accept both of them until this is cleared up. Chris@4: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' Chris@4: lt_cv_file_magic_cmd=/usr/bin/file Chris@4: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: fi Chris@4: ;; Chris@4: Chris@4: gnu*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: hpux10.20* | hpux11*) Chris@4: lt_cv_file_magic_cmd=/usr/bin/file Chris@4: case $host_cpu in Chris@4: ia64*) Chris@4: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' Chris@4: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so Chris@4: ;; Chris@4: hppa*64*) Chris@4: 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]' Chris@4: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl Chris@4: ;; Chris@4: *) Chris@4: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' Chris@4: lt_cv_file_magic_test_file=/usr/lib/libc.sl Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: interix[3-9]*) Chris@4: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here Chris@4: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' Chris@4: ;; Chris@4: Chris@4: irix5* | irix6* | nonstopux*) Chris@4: case $LD in Chris@4: *-32|*"-32 ") libmagic=32-bit;; Chris@4: *-n32|*"-n32 ") libmagic=N32;; Chris@4: *-64|*"-64 ") libmagic=64-bit;; Chris@4: *) libmagic=never-match;; Chris@4: esac Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: # This must be Linux ELF. Chris@4: linux* | k*bsd*-gnu) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: netbsd* | netbsdelf*-gnu) Chris@4: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then Chris@4: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' Chris@4: else Chris@4: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: newos6*) Chris@4: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' Chris@4: lt_cv_file_magic_cmd=/usr/bin/file Chris@4: lt_cv_file_magic_test_file=/usr/lib/libnls.so Chris@4: ;; Chris@4: Chris@4: *nto* | *qnx*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: openbsd*) Chris@4: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then Chris@4: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' Chris@4: else Chris@4: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: osf3* | osf4* | osf5*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: rdos*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: solaris*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: Chris@4: sysv4 | sysv4.3*) Chris@4: case $host_vendor in Chris@4: motorola) Chris@4: 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]' Chris@4: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` Chris@4: ;; Chris@4: ncr) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: sequent) Chris@4: lt_cv_file_magic_cmd='/bin/file' Chris@4: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' Chris@4: ;; Chris@4: sni) Chris@4: lt_cv_file_magic_cmd='/bin/file' Chris@4: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" Chris@4: lt_cv_file_magic_test_file=/lib/libc.so Chris@4: ;; Chris@4: siemens) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: pc) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: tpf*) Chris@4: lt_cv_deplibs_check_method=pass_all Chris@4: ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 Chris@4: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } Chris@4: file_magic_cmd=$lt_cv_file_magic_cmd Chris@4: deplibs_check_method=$lt_cv_deplibs_check_method Chris@4: test -z "$deplibs_check_method" && deplibs_check_method=unknown Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}ar; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_AR+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$AR"; then Chris@4: ac_cv_prog_AR="$AR" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_AR="${ac_tool_prefix}ar" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: AR=$ac_cv_prog_AR Chris@4: if test -n "$AR"; then Chris@4: { echo "$as_me:$LINENO: result: $AR" >&5 Chris@4: echo "${ECHO_T}$AR" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_AR"; then Chris@4: ac_ct_AR=$AR Chris@4: # Extract the first word of "ar", so it can be a program name with args. Chris@4: set dummy ar; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_AR"; then Chris@4: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_AR="ar" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_AR=$ac_cv_prog_ac_ct_AR Chris@4: if test -n "$ac_ct_AR"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 Chris@4: echo "${ECHO_T}$ac_ct_AR" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_AR" = x; then Chris@4: AR="false" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: AR=$ac_ct_AR Chris@4: fi Chris@4: else Chris@4: AR="$ac_cv_prog_AR" Chris@4: fi Chris@4: Chris@4: test -z "$AR" && AR=ar Chris@4: test -z "$AR_FLAGS" && AR_FLAGS=cru Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}strip; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_STRIP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$STRIP"; then Chris@4: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_STRIP="${ac_tool_prefix}strip" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: STRIP=$ac_cv_prog_STRIP Chris@4: if test -n "$STRIP"; then Chris@4: { echo "$as_me:$LINENO: result: $STRIP" >&5 Chris@4: echo "${ECHO_T}$STRIP" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_STRIP"; then Chris@4: ac_ct_STRIP=$STRIP Chris@4: # Extract the first word of "strip", so it can be a program name with args. Chris@4: set dummy strip; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_STRIP"; then Chris@4: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_STRIP="strip" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP Chris@4: if test -n "$ac_ct_STRIP"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 Chris@4: echo "${ECHO_T}$ac_ct_STRIP" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_STRIP" = x; then Chris@4: STRIP=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: STRIP=$ac_ct_STRIP Chris@4: fi Chris@4: else Chris@4: STRIP="$ac_cv_prog_STRIP" Chris@4: fi Chris@4: Chris@4: test -z "$STRIP" && STRIP=: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_RANLIB+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$RANLIB"; then Chris@4: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: RANLIB=$ac_cv_prog_RANLIB Chris@4: if test -n "$RANLIB"; then Chris@4: { echo "$as_me:$LINENO: result: $RANLIB" >&5 Chris@4: echo "${ECHO_T}$RANLIB" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_RANLIB"; then Chris@4: ac_ct_RANLIB=$RANLIB Chris@4: # Extract the first word of "ranlib", so it can be a program name with args. Chris@4: set dummy ranlib; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_RANLIB"; then Chris@4: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_RANLIB="ranlib" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB Chris@4: if test -n "$ac_ct_RANLIB"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 Chris@4: echo "${ECHO_T}$ac_ct_RANLIB" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_RANLIB" = x; then Chris@4: RANLIB=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: RANLIB=$ac_ct_RANLIB Chris@4: fi Chris@4: else Chris@4: RANLIB="$ac_cv_prog_RANLIB" Chris@4: fi Chris@4: Chris@4: test -z "$RANLIB" && RANLIB=: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Determine commands to create old-style static archives. Chris@4: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' Chris@4: old_postinstall_cmds='chmod 644 $oldlib' Chris@4: old_postuninstall_cmds= Chris@4: Chris@4: if test -n "$RANLIB"; then Chris@4: case $host_os in Chris@4: openbsd*) Chris@4: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" Chris@4: ;; Chris@4: *) Chris@4: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" Chris@4: ;; Chris@4: esac Chris@4: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # If no C compiler was specified, use CC. Chris@4: LTCC=${LTCC-"$CC"} Chris@4: Chris@4: # If no C compiler flags were specified, use CFLAGS. Chris@4: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} Chris@4: Chris@4: # Allow CC to be a program name with arguments. Chris@4: compiler=$CC Chris@4: Chris@4: Chris@4: # Check for command to grab the raw symbol name followed by C symbol from nm. Chris@4: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 Chris@4: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: Chris@4: # These are sane defaults that work on at least a few old systems. Chris@4: # [They come from Ultrix. What could be older than Ultrix?!! ;)] Chris@4: Chris@4: # Character class describing NM global symbol codes. Chris@4: symcode='[BCDEGRST]' Chris@4: Chris@4: # Regexp to match symbols that can be accessed directly from C. Chris@4: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' Chris@4: Chris@4: # Define system-specific variables. Chris@4: case $host_os in Chris@4: aix*) Chris@4: symcode='[BCDT]' Chris@4: ;; Chris@4: cygwin* | mingw* | pw32*) Chris@4: symcode='[ABCDGISTW]' Chris@4: ;; Chris@4: hpux*) Chris@4: if test "$host_cpu" = ia64; then Chris@4: symcode='[ABCDEGRST]' Chris@4: fi Chris@4: ;; Chris@4: irix* | nonstopux*) Chris@4: symcode='[BCDEGRST]' Chris@4: ;; Chris@4: osf*) Chris@4: symcode='[BCDEGQRST]' Chris@4: ;; Chris@4: solaris*) Chris@4: symcode='[BDRT]' Chris@4: ;; Chris@4: sco3.2v5*) Chris@4: symcode='[DT]' Chris@4: ;; Chris@4: sysv4.2uw2*) Chris@4: symcode='[DT]' Chris@4: ;; Chris@4: sysv5* | sco5v6* | unixware* | OpenUNIX*) Chris@4: symcode='[ABDT]' Chris@4: ;; Chris@4: sysv4) Chris@4: symcode='[DFNSTU]' Chris@4: ;; Chris@4: esac Chris@4: Chris@4: # If we're using GNU nm, then use its standard symbol codes. Chris@4: case `$NM -V 2>&1` in Chris@4: *GNU* | *'with BFD'*) Chris@4: symcode='[ABCDGIRSTW]' ;; Chris@4: esac Chris@4: Chris@4: # Transform an extracted symbol line into a proper C declaration. Chris@4: # Some systems (esp. on ia64) link data and code symbols differently, Chris@4: # so use this general approach. Chris@4: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" Chris@4: Chris@4: # Transform an extracted symbol line into symbol name and symbol address Chris@4: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" Chris@4: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" Chris@4: Chris@4: # Handle CRLF in mingw tool chain Chris@4: opt_cr= Chris@4: case $build_os in Chris@4: mingw*) Chris@4: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp Chris@4: ;; Chris@4: esac Chris@4: Chris@4: # Try without a prefix underscore, then with it. Chris@4: for ac_symprfx in "" "_"; do Chris@4: Chris@4: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. Chris@4: symxfrm="\\1 $ac_symprfx\\2 \\2" Chris@4: Chris@4: # Write the raw and C identifiers. Chris@4: if test "$lt_cv_nm_interface" = "MS dumpbin"; then Chris@4: # Fake it for dumpbin and say T for any non-static function Chris@4: # and D for any global variable. Chris@4: # Also find C++ and __fastcall symbols from MSVC++, Chris@4: # which start with @ or ?. Chris@4: lt_cv_sys_global_symbol_pipe="$AWK '"\ Chris@4: " {last_section=section; section=\$ 3};"\ Chris@4: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ Chris@4: " \$ 0!~/External *\|/{next};"\ Chris@4: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ Chris@4: " {if(hide[section]) next};"\ Chris@4: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ Chris@4: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ Chris@4: " s[1]~/^[@?]/{print s[1], s[1]; next};"\ Chris@4: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ Chris@4: " ' prfx=^$ac_symprfx" Chris@4: else Chris@4: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" Chris@4: fi Chris@4: Chris@4: # Check to see that the pipe works correctly. Chris@4: pipe_works=no Chris@4: Chris@4: rm -f conftest* Chris@4: cat > conftest.$ac_ext <<_LT_EOF Chris@4: #ifdef __cplusplus Chris@4: extern "C" { Chris@4: #endif Chris@4: char nm_test_var; Chris@4: void nm_test_func(void); Chris@4: void nm_test_func(void){} Chris@4: #ifdef __cplusplus Chris@4: } Chris@4: #endif Chris@4: int main(){nm_test_var='a';nm_test_func();return(0);} Chris@4: _LT_EOF Chris@4: Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: # Now try to grab the symbols. Chris@4: nlist=conftest.nm Chris@4: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 Chris@4: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && test -s "$nlist"; then Chris@4: # Try sorting and uniquifying the output. Chris@4: if sort "$nlist" | uniq > "$nlist"T; then Chris@4: mv -f "$nlist"T "$nlist" Chris@4: else Chris@4: rm -f "$nlist"T Chris@4: fi Chris@4: Chris@4: # Make sure that we snagged all the symbols we need. Chris@4: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then Chris@4: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then Chris@4: cat <<_LT_EOF > conftest.$ac_ext Chris@4: #ifdef __cplusplus Chris@4: extern "C" { Chris@4: #endif Chris@4: Chris@4: _LT_EOF Chris@4: # Now generate the symbol file. Chris@4: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' Chris@4: Chris@4: cat <<_LT_EOF >> conftest.$ac_ext Chris@4: Chris@4: /* The mapping between symbol names and symbols. */ Chris@4: const struct { Chris@4: const char *name; Chris@4: void *address; Chris@4: } Chris@4: lt__PROGRAM__LTX_preloaded_symbols[] = Chris@4: { Chris@4: { "@PROGRAM@", (void *) 0 }, Chris@4: _LT_EOF Chris@4: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext Chris@4: cat <<\_LT_EOF >> conftest.$ac_ext Chris@4: {0, (void *) 0} Chris@4: }; Chris@4: Chris@4: /* This works around a problem in FreeBSD linker */ Chris@4: #ifdef FREEBSD_WORKAROUND Chris@4: static const void *lt_preloaded_setup() { Chris@4: return lt__PROGRAM__LTX_preloaded_symbols; Chris@4: } Chris@4: #endif Chris@4: Chris@4: #ifdef __cplusplus Chris@4: } Chris@4: #endif Chris@4: _LT_EOF Chris@4: # Now try linking the two files. Chris@4: mv conftest.$ac_objext conftstm.$ac_objext Chris@4: lt_save_LIBS="$LIBS" Chris@4: lt_save_CFLAGS="$CFLAGS" Chris@4: LIBS="conftstm.$ac_objext" Chris@4: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 Chris@4: (eval $ac_link) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && test -s conftest${ac_exeext}; then Chris@4: pipe_works=yes Chris@4: fi Chris@4: LIBS="$lt_save_LIBS" Chris@4: CFLAGS="$lt_save_CFLAGS" Chris@4: else Chris@4: echo "cannot find nm_test_func in $nlist" >&5 Chris@4: fi Chris@4: else Chris@4: echo "cannot find nm_test_var in $nlist" >&5 Chris@4: fi Chris@4: else Chris@4: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 Chris@4: fi Chris@4: else Chris@4: echo "$progname: failed program was:" >&5 Chris@4: cat conftest.$ac_ext >&5 Chris@4: fi Chris@4: rm -rf conftest* conftst* Chris@4: Chris@4: # Do not use the global_symbol_pipe unless it works. Chris@4: if test "$pipe_works" = yes; then Chris@4: break Chris@4: else Chris@4: lt_cv_sys_global_symbol_pipe= Chris@4: fi Chris@4: done Chris@4: Chris@4: fi Chris@4: Chris@4: if test -z "$lt_cv_sys_global_symbol_pipe"; then Chris@4: lt_cv_sys_global_symbol_to_cdecl= Chris@4: fi Chris@4: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then Chris@4: { echo "$as_me:$LINENO: result: failed" >&5 Chris@4: echo "${ECHO_T}failed" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: ok" >&5 Chris@4: echo "${ECHO_T}ok" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --enable-libtool-lock was given. Chris@4: if test "${enable_libtool_lock+set}" = set; then Chris@4: enableval=$enable_libtool_lock; Chris@4: fi Chris@4: Chris@4: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes Chris@4: Chris@4: # Some flags need to be propagated to the compiler or linker for good Chris@4: # libtool support. Chris@4: case $host in Chris@4: ia64-*-hpux*) Chris@4: # Find out which ABI we are using. Chris@4: echo 'int i;' > conftest.$ac_ext Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: case `/usr/bin/file conftest.$ac_objext` in Chris@4: *ELF-32*) Chris@4: HPUX_IA64_MODE="32" Chris@4: ;; Chris@4: *ELF-64*) Chris@4: HPUX_IA64_MODE="64" Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: rm -rf conftest* Chris@4: ;; Chris@4: *-*-irix6*) Chris@4: # Find out which ABI we are using. Chris@4: echo '#line 5470 "configure"' > conftest.$ac_ext Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: if test "$lt_cv_prog_gnu_ld" = yes; then Chris@4: case `/usr/bin/file conftest.$ac_objext` in Chris@4: *32-bit*) Chris@4: LD="${LD-ld} -melf32bsmip" Chris@4: ;; Chris@4: *N32*) Chris@4: LD="${LD-ld} -melf32bmipn32" Chris@4: ;; Chris@4: *64-bit*) Chris@4: LD="${LD-ld} -melf64bmip" Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: case `/usr/bin/file conftest.$ac_objext` in Chris@4: *32-bit*) Chris@4: LD="${LD-ld} -32" Chris@4: ;; Chris@4: *N32*) Chris@4: LD="${LD-ld} -n32" Chris@4: ;; Chris@4: *64-bit*) Chris@4: LD="${LD-ld} -64" Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: fi Chris@4: rm -rf conftest* Chris@4: ;; Chris@4: Chris@4: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ Chris@4: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) Chris@4: # Find out which ABI we are using. Chris@4: echo 'int i;' > conftest.$ac_ext Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: case `/usr/bin/file conftest.o` in Chris@4: *32-bit*) Chris@4: case $host in Chris@4: x86_64-*kfreebsd*-gnu) Chris@4: LD="${LD-ld} -m elf_i386_fbsd" Chris@4: ;; Chris@4: x86_64-*linux*) Chris@4: LD="${LD-ld} -m elf_i386" Chris@4: ;; Chris@4: ppc64-*linux*|powerpc64-*linux*) Chris@4: LD="${LD-ld} -m elf32ppclinux" Chris@4: ;; Chris@4: s390x-*linux*) Chris@4: LD="${LD-ld} -m elf_s390" Chris@4: ;; Chris@4: sparc64-*linux*) Chris@4: LD="${LD-ld} -m elf32_sparc" Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: *64-bit*) Chris@4: case $host in Chris@4: x86_64-*kfreebsd*-gnu) Chris@4: LD="${LD-ld} -m elf_x86_64_fbsd" Chris@4: ;; Chris@4: x86_64-*linux*) Chris@4: LD="${LD-ld} -m elf_x86_64" Chris@4: ;; Chris@4: ppc*-*linux*|powerpc*-*linux*) Chris@4: LD="${LD-ld} -m elf64ppc" Chris@4: ;; Chris@4: s390*-*linux*|s390*-*tpf*) Chris@4: LD="${LD-ld} -m elf64_s390" Chris@4: ;; Chris@4: sparc*-*linux*) Chris@4: LD="${LD-ld} -m elf64_sparc" Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: rm -rf conftest* Chris@4: ;; Chris@4: Chris@4: *-*-sco3.2v5*) Chris@4: # On SCO OpenServer 5, we need -belf to get full-featured binaries. Chris@4: SAVE_CFLAGS="$CFLAGS" Chris@4: CFLAGS="$CFLAGS -belf" Chris@4: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 Chris@4: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_cc_needs_belf+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: lt_cv_cc_needs_belf=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: lt_cv_cc_needs_belf=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 Chris@4: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } Chris@4: if test x"$lt_cv_cc_needs_belf" != x"yes"; then Chris@4: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf Chris@4: CFLAGS="$SAVE_CFLAGS" Chris@4: fi Chris@4: ;; Chris@4: sparc*-*solaris*) Chris@4: # Find out which ABI we are using. Chris@4: echo 'int i;' > conftest.$ac_ext Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; then Chris@4: case `/usr/bin/file conftest.o` in Chris@4: *64-bit*) Chris@4: case $lt_cv_prog_gnu_ld in Chris@4: yes*) LD="${LD-ld} -m elf64_sparc" ;; Chris@4: *) Chris@4: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then Chris@4: LD="${LD-ld} -64" Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: rm -rf conftest* Chris@4: ;; Chris@4: esac Chris@4: Chris@4: need_locks="$enable_libtool_lock" Chris@4: Chris@4: Chris@4: case $host_os in Chris@4: rhapsody* | darwin*) Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$DSYMUTIL"; then Chris@4: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: DSYMUTIL=$ac_cv_prog_DSYMUTIL Chris@4: if test -n "$DSYMUTIL"; then Chris@4: { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 Chris@4: echo "${ECHO_T}$DSYMUTIL" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_DSYMUTIL"; then Chris@4: ac_ct_DSYMUTIL=$DSYMUTIL Chris@4: # Extract the first word of "dsymutil", so it can be a program name with args. Chris@4: set dummy dsymutil; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_DSYMUTIL"; then Chris@4: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL Chris@4: if test -n "$ac_ct_DSYMUTIL"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 Chris@4: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_DSYMUTIL" = x; then Chris@4: DSYMUTIL=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: DSYMUTIL=$ac_ct_DSYMUTIL Chris@4: fi Chris@4: else Chris@4: DSYMUTIL="$ac_cv_prog_DSYMUTIL" Chris@4: fi Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_NMEDIT+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$NMEDIT"; then Chris@4: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: NMEDIT=$ac_cv_prog_NMEDIT Chris@4: if test -n "$NMEDIT"; then Chris@4: { echo "$as_me:$LINENO: result: $NMEDIT" >&5 Chris@4: echo "${ECHO_T}$NMEDIT" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_NMEDIT"; then Chris@4: ac_ct_NMEDIT=$NMEDIT Chris@4: # Extract the first word of "nmedit", so it can be a program name with args. Chris@4: set dummy nmedit; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_NMEDIT"; then Chris@4: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_NMEDIT="nmedit" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT Chris@4: if test -n "$ac_ct_NMEDIT"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 Chris@4: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_NMEDIT" = x; then Chris@4: NMEDIT=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: NMEDIT=$ac_ct_NMEDIT Chris@4: fi Chris@4: else Chris@4: NMEDIT="$ac_cv_prog_NMEDIT" Chris@4: fi Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}lipo; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_LIPO+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$LIPO"; then Chris@4: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: LIPO=$ac_cv_prog_LIPO Chris@4: if test -n "$LIPO"; then Chris@4: { echo "$as_me:$LINENO: result: $LIPO" >&5 Chris@4: echo "${ECHO_T}$LIPO" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_LIPO"; then Chris@4: ac_ct_LIPO=$LIPO Chris@4: # Extract the first word of "lipo", so it can be a program name with args. Chris@4: set dummy lipo; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_LIPO"; then Chris@4: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_LIPO="lipo" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO Chris@4: if test -n "$ac_ct_LIPO"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 Chris@4: echo "${ECHO_T}$ac_ct_LIPO" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_LIPO" = x; then Chris@4: LIPO=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: LIPO=$ac_ct_LIPO Chris@4: fi Chris@4: else Chris@4: LIPO="$ac_cv_prog_LIPO" Chris@4: fi Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}otool; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_OTOOL+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$OTOOL"; then Chris@4: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: OTOOL=$ac_cv_prog_OTOOL Chris@4: if test -n "$OTOOL"; then Chris@4: { echo "$as_me:$LINENO: result: $OTOOL" >&5 Chris@4: echo "${ECHO_T}$OTOOL" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_OTOOL"; then Chris@4: ac_ct_OTOOL=$OTOOL Chris@4: # Extract the first word of "otool", so it can be a program name with args. Chris@4: set dummy otool; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_OTOOL"; then Chris@4: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_OTOOL="otool" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL Chris@4: if test -n "$ac_ct_OTOOL"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 Chris@4: echo "${ECHO_T}$ac_ct_OTOOL" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_OTOOL" = x; then Chris@4: OTOOL=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: OTOOL=$ac_ct_OTOOL Chris@4: fi Chris@4: else Chris@4: OTOOL="$ac_cv_prog_OTOOL" Chris@4: fi Chris@4: Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. Chris@4: set dummy ${ac_tool_prefix}otool64; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_OTOOL64+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$OTOOL64"; then Chris@4: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: OTOOL64=$ac_cv_prog_OTOOL64 Chris@4: if test -n "$OTOOL64"; then Chris@4: { echo "$as_me:$LINENO: result: $OTOOL64" >&5 Chris@4: echo "${ECHO_T}$OTOOL64" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: if test -z "$ac_cv_prog_OTOOL64"; then Chris@4: ac_ct_OTOOL64=$OTOOL64 Chris@4: # Extract the first word of "otool64", so it can be a program name with args. Chris@4: set dummy otool64; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$ac_ct_OTOOL64"; then Chris@4: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_ac_ct_OTOOL64="otool64" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 Chris@4: if test -n "$ac_ct_OTOOL64"; then Chris@4: { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 Chris@4: echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: if test "x$ac_ct_OTOOL64" = x; then Chris@4: OTOOL64=":" Chris@4: else Chris@4: case $cross_compiling:$ac_tool_warned in Chris@4: yes:) Chris@4: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&5 Chris@4: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools Chris@4: whose name does not start with the host triplet. If you think this Chris@4: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@4: ac_tool_warned=yes ;; Chris@4: esac Chris@4: OTOOL64=$ac_ct_OTOOL64 Chris@4: fi Chris@4: else Chris@4: OTOOL64="$ac_cv_prog_OTOOL64" Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 Chris@4: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_apple_cc_single_mod+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_apple_cc_single_mod=no Chris@4: if test -z "${LT_MULTI_MODULE}"; then Chris@4: # By default we will add the -single_module flag. You can override Chris@4: # by either setting the environment variable LT_MULTI_MODULE Chris@4: # non-empty at configure time, or by adding -multi_module to the Chris@4: # link flags. Chris@4: rm -rf libconftest.dylib* Chris@4: echo "int foo(void){return 1;}" > conftest.c Chris@4: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ Chris@4: -dynamiclib -Wl,-single_module conftest.c" >&5 Chris@4: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ Chris@4: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err Chris@4: _lt_result=$? Chris@4: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then Chris@4: lt_cv_apple_cc_single_mod=yes Chris@4: else Chris@4: cat conftest.err >&5 Chris@4: fi Chris@4: rm -rf libconftest.dylib* Chris@4: rm -f conftest.* Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 Chris@4: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } Chris@4: { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 Chris@4: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_ld_exported_symbols_list=no Chris@4: save_LDFLAGS=$LDFLAGS Chris@4: echo "_main" > conftest.sym Chris@4: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: lt_cv_ld_exported_symbols_list=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: lt_cv_ld_exported_symbols_list=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LDFLAGS="$save_LDFLAGS" Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 Chris@4: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } Chris@4: case $host_os in Chris@4: rhapsody* | darwin1.[012]) Chris@4: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; Chris@4: darwin1.*) Chris@4: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; Chris@4: darwin*) # darwin 5.x on Chris@4: # if running on 10.5 or later, the deployment target defaults Chris@4: # to the OS version, if on x86, and 10.4, the deployment Chris@4: # target defaults to 10.4. Don't you love it? Chris@4: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in Chris@4: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) Chris@4: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; Chris@4: 10.[012]*) Chris@4: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; Chris@4: 10.*) Chris@4: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: if test "$lt_cv_apple_cc_single_mod" = "yes"; then Chris@4: _lt_dar_single_mod='$single_module' Chris@4: fi Chris@4: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then Chris@4: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' Chris@4: else Chris@4: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' Chris@4: fi Chris@4: if test "$DSYMUTIL" != ":"; then Chris@4: _lt_dsymutil='~$DSYMUTIL $lib || :' Chris@4: else Chris@4: _lt_dsymutil= Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 Chris@4: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } Chris@4: # On Suns, sometimes $CPP names a directory. Chris@4: if test -n "$CPP" && test -d "$CPP"; then Chris@4: CPP= Chris@4: fi Chris@4: if test -z "$CPP"; then Chris@4: if test "${ac_cv_prog_CPP+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: # Double quotes because CPP needs to be expanded Chris@4: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" Chris@4: do Chris@4: ac_preproc_ok=false Chris@4: for ac_c_preproc_warn_flag in '' yes Chris@4: do Chris@4: # Use a header file that comes with gcc, so configuring glibc Chris@4: # with a fresh cross-compiler works. Chris@4: # Prefer to if __STDC__ is defined, since Chris@4: # exists even on freestanding compilers. Chris@4: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@4: # not just through cpp. "Syntax error" is here to catch this case. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Syntax error Chris@4: _ACEOF Chris@4: if { (ac_try="$ac_cpp conftest.$ac_ext" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } >/dev/null && { Chris@4: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: }; then Chris@4: : Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: # Broken: fails on valid input. Chris@4: continue Chris@4: fi Chris@4: Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: Chris@4: # OK, works on sane cases. Now check whether nonexistent headers Chris@4: # can be detected and how. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: _ACEOF Chris@4: if { (ac_try="$ac_cpp conftest.$ac_ext" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } >/dev/null && { Chris@4: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: }; then Chris@4: # Broken: success on invalid input. Chris@4: continue Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: # Passes both tests. Chris@4: ac_preproc_ok=: Chris@4: break Chris@4: fi Chris@4: Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: Chris@4: done Chris@4: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: if $ac_preproc_ok; then Chris@4: break Chris@4: fi Chris@4: Chris@4: done Chris@4: ac_cv_prog_CPP=$CPP Chris@4: Chris@4: fi Chris@4: CPP=$ac_cv_prog_CPP Chris@4: else Chris@4: ac_cv_prog_CPP=$CPP Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $CPP" >&5 Chris@4: echo "${ECHO_T}$CPP" >&6; } Chris@4: ac_preproc_ok=false Chris@4: for ac_c_preproc_warn_flag in '' yes Chris@4: do Chris@4: # Use a header file that comes with gcc, so configuring glibc Chris@4: # with a fresh cross-compiler works. Chris@4: # Prefer to if __STDC__ is defined, since Chris@4: # exists even on freestanding compilers. Chris@4: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@4: # not just through cpp. "Syntax error" is here to catch this case. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Syntax error Chris@4: _ACEOF Chris@4: if { (ac_try="$ac_cpp conftest.$ac_ext" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } >/dev/null && { Chris@4: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: }; then Chris@4: : Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: # Broken: fails on valid input. Chris@4: continue Chris@4: fi Chris@4: Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: Chris@4: # OK, works on sane cases. Now check whether nonexistent headers Chris@4: # can be detected and how. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: _ACEOF Chris@4: if { (ac_try="$ac_cpp conftest.$ac_ext" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } >/dev/null && { Chris@4: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: }; then Chris@4: # Broken: success on invalid input. Chris@4: continue Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: # Passes both tests. Chris@4: ac_preproc_ok=: Chris@4: break Chris@4: fi Chris@4: Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: Chris@4: done Chris@4: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: if $ac_preproc_ok; then Chris@4: : Chris@4: else Chris@4: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check Chris@4: See \`config.log' for more details." >&5 Chris@4: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check Chris@4: See \`config.log' for more details." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 Chris@4: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_header_stdc+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_header_stdc=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: Chris@4: _ACEOF Chris@4: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@4: $EGREP "memchr" >/dev/null 2>&1; then Chris@4: : Chris@4: else Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f conftest* Chris@4: Chris@4: fi Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: Chris@4: _ACEOF Chris@4: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@4: $EGREP "free" >/dev/null 2>&1; then Chris@4: : Chris@4: else Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f conftest* Chris@4: Chris@4: fi Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. Chris@4: if test "$cross_compiling" = yes; then Chris@4: : Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: #if ((' ' & 0x0FF) == 0x020) Chris@4: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') Chris@4: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) Chris@4: #else Chris@4: # define ISLOWER(c) \ Chris@4: (('a' <= (c) && (c) <= 'i') \ Chris@4: || ('j' <= (c) && (c) <= 'r') \ Chris@4: || ('s' <= (c) && (c) <= 'z')) Chris@4: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) Chris@4: #endif Chris@4: Chris@4: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) Chris@4: int Chris@4: main () Chris@4: { Chris@4: int i; Chris@4: for (i = 0; i < 256; i++) Chris@4: if (XOR (islower (i), ISLOWER (i)) Chris@4: || toupper (i) != TOUPPER (i)) Chris@4: return 2; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' Chris@4: { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; }; then Chris@4: : Chris@4: else Chris@4: echo "$as_me: program exited with status $ac_status" >&5 Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ( exit $ac_status ) Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 Chris@4: echo "${ECHO_T}$ac_cv_header_stdc" >&6; } Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define STDC_HEADERS 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: # On IRIX 5.3, sys/types and inttypes.h are conflicting. Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ Chris@4: inttypes.h stdint.h unistd.h Chris@4: do Chris@4: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` Chris@4: { echo "$as_me:$LINENO: checking for $ac_header" >&5 Chris@4: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } Chris@4: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: $ac_includes_default Chris@4: Chris@4: #include <$ac_header> Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: eval "$as_ac_Header=yes" Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: eval "$as_ac_Header=no" Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: ac_res=`eval echo '${'$as_ac_Header'}'` Chris@4: { echo "$as_me:$LINENO: result: $ac_res" >&5 Chris@4: echo "${ECHO_T}$ac_res" >&6; } Chris@4: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: done Chris@4: Chris@4: Chris@4: Chris@4: for ac_header in dlfcn.h Chris@4: do Chris@4: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` Chris@4: { echo "$as_me:$LINENO: checking for $ac_header" >&5 Chris@4: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } Chris@4: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: $ac_includes_default Chris@4: Chris@4: #include <$ac_header> Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: eval "$as_ac_Header=yes" Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: eval "$as_ac_Header=no" Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: ac_res=`eval echo '${'$as_ac_Header'}'` Chris@4: { echo "$as_me:$LINENO: result: $ac_res" >&5 Chris@4: echo "${ECHO_T}$ac_res" >&6; } Chris@4: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: done Chris@4: Chris@4: Chris@4: Chris@4: # Set options Chris@4: Chris@4: Chris@4: Chris@4: enable_dlopen=no Chris@4: Chris@4: Chris@4: enable_win32_dll=no Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --with-pic was given. Chris@4: if test "${with_pic+set}" = set; then Chris@4: withval=$with_pic; pic_mode="$withval" Chris@4: else Chris@4: pic_mode=default Chris@4: fi Chris@4: Chris@4: Chris@4: test -z "$pic_mode" && pic_mode=default Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Check whether --enable-fast-install was given. Chris@4: if test "${enable_fast_install+set}" = set; then Chris@4: enableval=$enable_fast_install; p=${PACKAGE-default} Chris@4: case $enableval in Chris@4: yes) enable_fast_install=yes ;; Chris@4: no) enable_fast_install=no ;; Chris@4: *) Chris@4: enable_fast_install=no Chris@4: # Look at the argument we got. We use all the common list separators. Chris@4: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," Chris@4: for pkg in $enableval; do Chris@4: IFS="$lt_save_ifs" Chris@4: if test "X$pkg" = "X$p"; then Chris@4: enable_fast_install=yes Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: enable_fast_install=yes Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # This can be used to rebuild libtool when needed Chris@4: LIBTOOL_DEPS="$ltmain" Chris@4: Chris@4: # Always use our own libtool. Chris@4: LIBTOOL='$(SHELL) $(top_builddir)/libtool' Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: test -z "$LN_S" && LN_S="ln -s" Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test -n "${ZSH_VERSION+set}" ; then Chris@4: setopt NO_GLOB_SUBST Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for objdir" >&5 Chris@4: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_objdir+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: rm -f .libs 2>/dev/null Chris@4: mkdir .libs 2>/dev/null Chris@4: if test -d .libs; then Chris@4: lt_cv_objdir=.libs Chris@4: else Chris@4: # MS-DOS does not allow filenames that begin with a dot. Chris@4: lt_cv_objdir=_libs Chris@4: fi Chris@4: rmdir .libs 2>/dev/null Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 Chris@4: echo "${ECHO_T}$lt_cv_objdir" >&6; } Chris@4: objdir=$lt_cv_objdir Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define LT_OBJDIR "$lt_cv_objdir/" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: case $host_os in Chris@4: aix3*) Chris@4: # AIX sometimes has problems with the GCC collect2 program. For some Chris@4: # reason, if we set the COLLECT_NAMES environment variable, the problems Chris@4: # vanish in a puff of smoke. Chris@4: if test "X${COLLECT_NAMES+set}" != Xset; then Chris@4: COLLECT_NAMES= Chris@4: export COLLECT_NAMES Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: # Sed substitution that helps us do robust quoting. It backslashifies Chris@4: # metacharacters that are still active within double-quoted strings. Chris@4: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' Chris@4: Chris@4: # Same as above, but do not quote variable references. Chris@4: double_quote_subst='s/\(["`\\]\)/\\\1/g' Chris@4: Chris@4: # Sed substitution to delay expansion of an escaped shell variable in a Chris@4: # double_quote_subst'ed string. Chris@4: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' Chris@4: Chris@4: # Sed substitution to delay expansion of an escaped single quote. Chris@4: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' Chris@4: Chris@4: # Sed substitution to avoid accidental globbing in evaled expressions Chris@4: no_glob_subst='s/\*/\\\*/g' Chris@4: Chris@4: # Global variables: Chris@4: ofile=libtool Chris@4: can_build_shared=yes Chris@4: Chris@4: # All known linkers require a `.a' archive for static linking (except MSVC, Chris@4: # which needs '.lib'). Chris@4: libext=a Chris@4: Chris@4: with_gnu_ld="$lt_cv_prog_gnu_ld" Chris@4: Chris@4: old_CC="$CC" Chris@4: old_CFLAGS="$CFLAGS" Chris@4: Chris@4: # Set sane defaults for various variables Chris@4: test -z "$CC" && CC=cc Chris@4: test -z "$LTCC" && LTCC=$CC Chris@4: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS Chris@4: test -z "$LD" && LD=ld Chris@4: test -z "$ac_objext" && ac_objext=o Chris@4: Chris@4: for cc_temp in $compiler""; do Chris@4: case $cc_temp in Chris@4: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; Chris@4: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; Chris@4: \-*) ;; Chris@4: *) break;; Chris@4: esac Chris@4: done Chris@4: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` Chris@4: Chris@4: Chris@4: # Only perform the check for file, if the check method requires it Chris@4: test -z "$MAGIC_CMD" && MAGIC_CMD=file Chris@4: case $deplibs_check_method in Chris@4: file_magic*) Chris@4: if test "$file_magic_cmd" = '$MAGIC_CMD'; then Chris@4: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 Chris@4: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: case $MAGIC_CMD in Chris@4: [\\/*] | ?:[\\/]*) Chris@4: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. Chris@4: ;; Chris@4: *) Chris@4: lt_save_MAGIC_CMD="$MAGIC_CMD" Chris@4: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR Chris@4: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" Chris@4: for ac_dir in $ac_dummy; do Chris@4: IFS="$lt_save_ifs" Chris@4: test -z "$ac_dir" && ac_dir=. Chris@4: if test -f $ac_dir/${ac_tool_prefix}file; then Chris@4: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" Chris@4: if test -n "$file_magic_test_file"; then Chris@4: case $deplibs_check_method in Chris@4: "file_magic "*) Chris@4: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` Chris@4: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" Chris@4: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | Chris@4: $EGREP "$file_magic_regex" > /dev/null; then Chris@4: : Chris@4: else Chris@4: cat <<_LT_EOF 1>&2 Chris@4: Chris@4: *** Warning: the command libtool uses to detect shared libraries, Chris@4: *** $file_magic_cmd, produces output that libtool cannot recognize. Chris@4: *** The result is that libtool may fail to recognize shared libraries Chris@4: *** as such. This will affect the creation of libtool libraries that Chris@4: *** depend on shared libraries, but programs linked with such libtool Chris@4: *** libraries will work regardless of this problem. Nevertheless, you Chris@4: *** may want to report the problem to your system manager and/or to Chris@4: *** bug-libtool@gnu.org Chris@4: Chris@4: _LT_EOF Chris@4: fi ;; Chris@4: esac Chris@4: fi Chris@4: break Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: MAGIC_CMD="$lt_save_MAGIC_CMD" Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: Chris@4: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" Chris@4: if test -n "$MAGIC_CMD"; then Chris@4: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 Chris@4: echo "${ECHO_T}$MAGIC_CMD" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test -z "$lt_cv_path_MAGIC_CMD"; then Chris@4: if test -n "$ac_tool_prefix"; then Chris@4: { echo "$as_me:$LINENO: checking for file" >&5 Chris@4: echo $ECHO_N "checking for file... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: case $MAGIC_CMD in Chris@4: [\\/*] | ?:[\\/]*) Chris@4: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. Chris@4: ;; Chris@4: *) Chris@4: lt_save_MAGIC_CMD="$MAGIC_CMD" Chris@4: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR Chris@4: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" Chris@4: for ac_dir in $ac_dummy; do Chris@4: IFS="$lt_save_ifs" Chris@4: test -z "$ac_dir" && ac_dir=. Chris@4: if test -f $ac_dir/file; then Chris@4: lt_cv_path_MAGIC_CMD="$ac_dir/file" Chris@4: if test -n "$file_magic_test_file"; then Chris@4: case $deplibs_check_method in Chris@4: "file_magic "*) Chris@4: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` Chris@4: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" Chris@4: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | Chris@4: $EGREP "$file_magic_regex" > /dev/null; then Chris@4: : Chris@4: else Chris@4: cat <<_LT_EOF 1>&2 Chris@4: Chris@4: *** Warning: the command libtool uses to detect shared libraries, Chris@4: *** $file_magic_cmd, produces output that libtool cannot recognize. Chris@4: *** The result is that libtool may fail to recognize shared libraries Chris@4: *** as such. This will affect the creation of libtool libraries that Chris@4: *** depend on shared libraries, but programs linked with such libtool Chris@4: *** libraries will work regardless of this problem. Nevertheless, you Chris@4: *** may want to report the problem to your system manager and/or to Chris@4: *** bug-libtool@gnu.org Chris@4: Chris@4: _LT_EOF Chris@4: fi ;; Chris@4: esac Chris@4: fi Chris@4: break Chris@4: fi Chris@4: done Chris@4: IFS="$lt_save_ifs" Chris@4: MAGIC_CMD="$lt_save_MAGIC_CMD" Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: Chris@4: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" Chris@4: if test -n "$MAGIC_CMD"; then Chris@4: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 Chris@4: echo "${ECHO_T}$MAGIC_CMD" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: else Chris@4: MAGIC_CMD=: Chris@4: fi Chris@4: fi Chris@4: Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: # Use C for the default configuration in the libtool script Chris@4: Chris@4: lt_save_CC="$CC" Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: Chris@4: # Source file extension for C test sources. Chris@4: ac_ext=c Chris@4: Chris@4: # Object file extension for compiled C test sources. Chris@4: objext=o Chris@4: objext=$objext Chris@4: Chris@4: # Code to be used in simple compile tests Chris@4: lt_simple_compile_test_code="int some_variable = 0;" Chris@4: Chris@4: # Code to be used in simple link tests Chris@4: lt_simple_link_test_code='int main(){return(0);}' Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # If no C compiler was specified, use CC. Chris@4: LTCC=${LTCC-"$CC"} Chris@4: Chris@4: # If no C compiler flags were specified, use CFLAGS. Chris@4: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} Chris@4: Chris@4: # Allow CC to be a program name with arguments. Chris@4: compiler=$CC Chris@4: Chris@4: # Save the default compiler, since it gets overwritten when the other Chris@4: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. Chris@4: compiler_DEFAULT=$CC Chris@4: Chris@4: # save warnings/boilerplate of simple test code Chris@4: ac_outfile=conftest.$ac_objext Chris@4: echo "$lt_simple_compile_test_code" >conftest.$ac_ext Chris@4: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err Chris@4: _lt_compiler_boilerplate=`cat conftest.err` Chris@4: $RM conftest* Chris@4: Chris@4: ac_outfile=conftest.$ac_objext Chris@4: echo "$lt_simple_link_test_code" >conftest.$ac_ext Chris@4: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err Chris@4: _lt_linker_boilerplate=`cat conftest.err` Chris@4: $RM -r conftest* Chris@4: Chris@4: Chris@4: if test -n "$compiler"; then Chris@4: Chris@4: lt_prog_compiler_no_builtin_flag= Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: lt_prog_compiler_no_builtin_flag=' -fno-builtin' Chris@4: Chris@4: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 Chris@4: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_prog_compiler_rtti_exceptions=no Chris@4: ac_outfile=conftest.$ac_objext Chris@4: echo "$lt_simple_compile_test_code" > conftest.$ac_ext Chris@4: lt_compiler_flag="-fno-rtti -fno-exceptions" Chris@4: # Insert the option either (1) after the last *FLAGS variable, or Chris@4: # (2) before a word containing "conftest.", or (3) at the end. Chris@4: # Note that $ac_compile itself does not contain backslashes and begins Chris@4: # with a dollar sign (not a hyphen), so the echo should work correctly. Chris@4: # The option is referenced via a variable to avoid confusing sed. Chris@4: lt_compile=`echo "$ac_compile" | $SED \ Chris@4: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ Chris@4: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ Chris@4: -e 's:$: $lt_compiler_flag:'` Chris@4: (eval echo "\"\$as_me:7257: $lt_compile\"" >&5) Chris@4: (eval "$lt_compile" 2>conftest.err) Chris@4: ac_status=$? Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:7261: \$? = $ac_status" >&5 Chris@4: if (exit $ac_status) && test -s "$ac_outfile"; then Chris@4: # The compiler can only warn and ignore the option if not recognized Chris@4: # So say no if there are warnings other than the usual output. Chris@4: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp Chris@4: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 Chris@4: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then Chris@4: lt_cv_prog_compiler_rtti_exceptions=yes Chris@4: fi Chris@4: fi Chris@4: $RM conftest* Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 Chris@4: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } Chris@4: Chris@4: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then Chris@4: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" Chris@4: else Chris@4: : Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: lt_prog_compiler_wl= Chris@4: lt_prog_compiler_pic= Chris@4: lt_prog_compiler_static= Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 Chris@4: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_static='-static' Chris@4: Chris@4: case $host_os in Chris@4: aix*) Chris@4: # All AIX code is PIC. Chris@4: if test "$host_cpu" = ia64; then Chris@4: # AIX 5 now supports IA64 processor Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: amigaos*) Chris@4: case $host_cpu in Chris@4: powerpc) Chris@4: # see comment about AmigaOS4 .so support Chris@4: lt_prog_compiler_pic='-fPIC' Chris@4: ;; Chris@4: m68k) Chris@4: # FIXME: we need at least 68020 code to build shared libraries, but Chris@4: # adding the `-m68020' flag to GCC prevents building anything better, Chris@4: # like `-m68040'. Chris@4: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) Chris@4: # PIC is the default for these OSes. Chris@4: ;; Chris@4: Chris@4: mingw* | cygwin* | pw32* | os2*) Chris@4: # This hack is so that the source file can tell whether it is being Chris@4: # built for inclusion in a dll (and should export symbols for example). Chris@4: # Although the cygwin gcc ignores -fPIC, still need this for old-style Chris@4: # (--disable-auto-import) libraries Chris@4: lt_prog_compiler_pic='-DDLL_EXPORT' Chris@4: ;; Chris@4: Chris@4: darwin* | rhapsody*) Chris@4: # PIC is the default on this platform Chris@4: # Common symbols not allowed in MH_DYLIB files Chris@4: lt_prog_compiler_pic='-fno-common' Chris@4: ;; Chris@4: Chris@4: hpux*) Chris@4: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but Chris@4: # not for PA HP-UX. Chris@4: case $host_cpu in Chris@4: hppa*64*|ia64*) Chris@4: # +Z the default Chris@4: ;; Chris@4: *) Chris@4: lt_prog_compiler_pic='-fPIC' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: interix[3-9]*) Chris@4: # Interix 3.x gcc -fpic/-fPIC options generate broken code. Chris@4: # Instead, we relocate shared libraries at runtime. Chris@4: ;; Chris@4: Chris@4: msdosdjgpp*) Chris@4: # Just because we use GCC doesn't mean we suddenly get shared libraries Chris@4: # on systems that don't support them. Chris@4: lt_prog_compiler_can_build_shared=no Chris@4: enable_shared=no Chris@4: ;; Chris@4: Chris@4: *nto* | *qnx*) Chris@4: # QNX uses GNU C++, but need to define -shared option too, otherwise Chris@4: # it will coredump. Chris@4: lt_prog_compiler_pic='-fPIC -shared' Chris@4: ;; Chris@4: Chris@4: sysv4*MP*) Chris@4: if test -d /usr/nec; then Chris@4: lt_prog_compiler_pic=-Kconform_pic Chris@4: fi Chris@4: ;; Chris@4: Chris@4: *) Chris@4: lt_prog_compiler_pic='-fPIC' Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: # PORTME Check for flag to pass linker flags through the system compiler. Chris@4: case $host_os in Chris@4: aix*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: if test "$host_cpu" = ia64; then Chris@4: # AIX 5 now supports IA64 processor Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: else Chris@4: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: mingw* | cygwin* | pw32* | os2*) Chris@4: # This hack is so that the source file can tell whether it is being Chris@4: # built for inclusion in a dll (and should export symbols for example). Chris@4: lt_prog_compiler_pic='-DDLL_EXPORT' Chris@4: ;; Chris@4: Chris@4: hpux9* | hpux10* | hpux11*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but Chris@4: # not for PA HP-UX. Chris@4: case $host_cpu in Chris@4: hppa*64*|ia64*) Chris@4: # +Z the default Chris@4: ;; Chris@4: *) Chris@4: lt_prog_compiler_pic='+Z' Chris@4: ;; Chris@4: esac Chris@4: # Is there a better lt_prog_compiler_static that works with the bundled CC? Chris@4: lt_prog_compiler_static='${wl}-a ${wl}archive' Chris@4: ;; Chris@4: Chris@4: irix5* | irix6* | nonstopux*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: # PIC (with -KPIC) is the default. Chris@4: lt_prog_compiler_static='-non_shared' Chris@4: ;; Chris@4: Chris@4: linux* | k*bsd*-gnu) Chris@4: case $cc_basename in Chris@4: icc* | ecc* | ifort*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-static' Chris@4: ;; Chris@4: pgcc* | pgf77* | pgf90* | pgf95*) Chris@4: # Portland Group compilers (*not* the Pentium gcc compiler, Chris@4: # which looks to be a dead project) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_pic='-fpic' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: ccc*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: # All Alpha code is PIC. Chris@4: lt_prog_compiler_static='-non_shared' Chris@4: ;; Chris@4: xl*) Chris@4: # IBM XL C 8.0/Fortran 10.1 on PPC Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_pic='-qpic' Chris@4: lt_prog_compiler_static='-qstaticlink' Chris@4: ;; Chris@4: *) Chris@4: case `$CC -V 2>&1 | sed 5q` in Chris@4: *Sun\ C*) Chris@4: # Sun C 5.9 Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: ;; Chris@4: *Sun\ F*) Chris@4: # Sun Fortran 8.3 passes all unrecognized flags to the linker Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: lt_prog_compiler_wl='' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: newsos6) Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: Chris@4: *nto* | *qnx*) Chris@4: # QNX uses GNU C++, but need to define -shared option too, otherwise Chris@4: # it will coredump. Chris@4: lt_prog_compiler_pic='-fPIC -shared' Chris@4: ;; Chris@4: Chris@4: osf3* | osf4* | osf5*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: # All OSF/1 code is PIC. Chris@4: lt_prog_compiler_static='-non_shared' Chris@4: ;; Chris@4: Chris@4: rdos*) Chris@4: lt_prog_compiler_static='-non_shared' Chris@4: ;; Chris@4: Chris@4: solaris*) Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: case $cc_basename in Chris@4: f77* | f90* | f95*) Chris@4: lt_prog_compiler_wl='-Qoption ld ';; Chris@4: *) Chris@4: lt_prog_compiler_wl='-Wl,';; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: sunos4*) Chris@4: lt_prog_compiler_wl='-Qoption ld ' Chris@4: lt_prog_compiler_pic='-PIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: Chris@4: sysv4 | sysv4.2uw2* | sysv4.3*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: Chris@4: sysv4*MP*) Chris@4: if test -d /usr/nec ;then Chris@4: lt_prog_compiler_pic='-Kconform_pic' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_pic='-KPIC' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: Chris@4: unicos*) Chris@4: lt_prog_compiler_wl='-Wl,' Chris@4: lt_prog_compiler_can_build_shared=no Chris@4: ;; Chris@4: Chris@4: uts4*) Chris@4: lt_prog_compiler_pic='-pic' Chris@4: lt_prog_compiler_static='-Bstatic' Chris@4: ;; Chris@4: Chris@4: *) Chris@4: lt_prog_compiler_can_build_shared=no Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: Chris@4: case $host_os in Chris@4: # For platforms which do not support PIC, -DPIC is meaningless: Chris@4: *djgpp*) Chris@4: lt_prog_compiler_pic= Chris@4: ;; Chris@4: *) Chris@4: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" Chris@4: ;; Chris@4: esac Chris@4: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 Chris@4: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Chris@4: # Check to make sure the PIC flag actually works. Chris@4: # Chris@4: if test -n "$lt_prog_compiler_pic"; then Chris@4: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 Chris@4: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_prog_compiler_pic_works=no Chris@4: ac_outfile=conftest.$ac_objext Chris@4: echo "$lt_simple_compile_test_code" > conftest.$ac_ext Chris@4: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" Chris@4: # Insert the option either (1) after the last *FLAGS variable, or Chris@4: # (2) before a word containing "conftest.", or (3) at the end. Chris@4: # Note that $ac_compile itself does not contain backslashes and begins Chris@4: # with a dollar sign (not a hyphen), so the echo should work correctly. Chris@4: # The option is referenced via a variable to avoid confusing sed. Chris@4: lt_compile=`echo "$ac_compile" | $SED \ Chris@4: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ Chris@4: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ Chris@4: -e 's:$: $lt_compiler_flag:'` Chris@4: (eval echo "\"\$as_me:7581: $lt_compile\"" >&5) Chris@4: (eval "$lt_compile" 2>conftest.err) Chris@4: ac_status=$? Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:7585: \$? = $ac_status" >&5 Chris@4: if (exit $ac_status) && test -s "$ac_outfile"; then Chris@4: # The compiler can only warn and ignore the option if not recognized Chris@4: # So say no if there are warnings other than the usual output. Chris@4: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp Chris@4: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 Chris@4: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then Chris@4: lt_cv_prog_compiler_pic_works=yes Chris@4: fi Chris@4: fi Chris@4: $RM conftest* Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 Chris@4: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } Chris@4: Chris@4: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then Chris@4: case $lt_prog_compiler_pic in Chris@4: "" | " "*) ;; Chris@4: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; Chris@4: esac Chris@4: else Chris@4: lt_prog_compiler_pic= Chris@4: lt_prog_compiler_can_build_shared=no Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Chris@4: # Check to make sure the static flag actually works. Chris@4: # Chris@4: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" Chris@4: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 Chris@4: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_compiler_static_works+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_prog_compiler_static_works=no Chris@4: save_LDFLAGS="$LDFLAGS" Chris@4: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" Chris@4: echo "$lt_simple_link_test_code" > conftest.$ac_ext Chris@4: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then Chris@4: # The linker can only warn and ignore the option if not recognized Chris@4: # So say no if there are warnings Chris@4: if test -s conftest.err; then Chris@4: # Append any errors to the config.log. Chris@4: cat conftest.err 1>&5 Chris@4: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp Chris@4: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 Chris@4: if diff conftest.exp conftest.er2 >/dev/null; then Chris@4: lt_cv_prog_compiler_static_works=yes Chris@4: fi Chris@4: else Chris@4: lt_cv_prog_compiler_static_works=yes Chris@4: fi Chris@4: fi Chris@4: $RM -r conftest* Chris@4: LDFLAGS="$save_LDFLAGS" Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 Chris@4: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } Chris@4: Chris@4: if test x"$lt_cv_prog_compiler_static_works" = xyes; then Chris@4: : Chris@4: else Chris@4: lt_prog_compiler_static= Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 Chris@4: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_compiler_c_o+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_prog_compiler_c_o=no Chris@4: $RM -r conftest 2>/dev/null Chris@4: mkdir conftest Chris@4: cd conftest Chris@4: mkdir out Chris@4: echo "$lt_simple_compile_test_code" > conftest.$ac_ext Chris@4: Chris@4: lt_compiler_flag="-o out/conftest2.$ac_objext" Chris@4: # Insert the option either (1) after the last *FLAGS variable, or Chris@4: # (2) before a word containing "conftest.", or (3) at the end. Chris@4: # Note that $ac_compile itself does not contain backslashes and begins Chris@4: # with a dollar sign (not a hyphen), so the echo should work correctly. Chris@4: lt_compile=`echo "$ac_compile" | $SED \ Chris@4: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ Chris@4: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ Chris@4: -e 's:$: $lt_compiler_flag:'` Chris@4: (eval echo "\"\$as_me:7686: $lt_compile\"" >&5) Chris@4: (eval "$lt_compile" 2>out/conftest.err) Chris@4: ac_status=$? Chris@4: cat out/conftest.err >&5 Chris@4: echo "$as_me:7690: \$? = $ac_status" >&5 Chris@4: if (exit $ac_status) && test -s out/conftest2.$ac_objext Chris@4: then Chris@4: # The compiler can only warn and ignore the option if not recognized Chris@4: # So say no if there are warnings Chris@4: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp Chris@4: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 Chris@4: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then Chris@4: lt_cv_prog_compiler_c_o=yes Chris@4: fi Chris@4: fi Chris@4: chmod u+w . 2>&5 Chris@4: $RM conftest* Chris@4: # SGI C++ compiler will create directory out/ii_files/ for Chris@4: # template instantiation Chris@4: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files Chris@4: $RM out/* && rmdir out Chris@4: cd .. Chris@4: $RM -r conftest Chris@4: $RM conftest* Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 Chris@4: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 Chris@4: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_prog_compiler_c_o+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: lt_cv_prog_compiler_c_o=no Chris@4: $RM -r conftest 2>/dev/null Chris@4: mkdir conftest Chris@4: cd conftest Chris@4: mkdir out Chris@4: echo "$lt_simple_compile_test_code" > conftest.$ac_ext Chris@4: Chris@4: lt_compiler_flag="-o out/conftest2.$ac_objext" Chris@4: # Insert the option either (1) after the last *FLAGS variable, or Chris@4: # (2) before a word containing "conftest.", or (3) at the end. Chris@4: # Note that $ac_compile itself does not contain backslashes and begins Chris@4: # with a dollar sign (not a hyphen), so the echo should work correctly. Chris@4: lt_compile=`echo "$ac_compile" | $SED \ Chris@4: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ Chris@4: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ Chris@4: -e 's:$: $lt_compiler_flag:'` Chris@4: (eval echo "\"\$as_me:7741: $lt_compile\"" >&5) Chris@4: (eval "$lt_compile" 2>out/conftest.err) Chris@4: ac_status=$? Chris@4: cat out/conftest.err >&5 Chris@4: echo "$as_me:7745: \$? = $ac_status" >&5 Chris@4: if (exit $ac_status) && test -s out/conftest2.$ac_objext Chris@4: then Chris@4: # The compiler can only warn and ignore the option if not recognized Chris@4: # So say no if there are warnings Chris@4: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp Chris@4: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 Chris@4: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then Chris@4: lt_cv_prog_compiler_c_o=yes Chris@4: fi Chris@4: fi Chris@4: chmod u+w . 2>&5 Chris@4: $RM conftest* Chris@4: # SGI C++ compiler will create directory out/ii_files/ for Chris@4: # template instantiation Chris@4: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files Chris@4: $RM out/* && rmdir out Chris@4: cd .. Chris@4: $RM -r conftest Chris@4: $RM conftest* Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 Chris@4: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: hard_links="nottested" Chris@4: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then Chris@4: # do not overwrite the value of need_locks provided by the user Chris@4: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 Chris@4: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } Chris@4: hard_links=yes Chris@4: $RM conftest* Chris@4: ln conftest.a conftest.b 2>/dev/null && hard_links=no Chris@4: touch conftest.a Chris@4: ln conftest.a conftest.b 2>&5 || hard_links=no Chris@4: ln conftest.a conftest.b 2>/dev/null && hard_links=no Chris@4: { echo "$as_me:$LINENO: result: $hard_links" >&5 Chris@4: echo "${ECHO_T}$hard_links" >&6; } Chris@4: if test "$hard_links" = no; then Chris@4: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 Chris@4: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} Chris@4: need_locks=warn Chris@4: fi Chris@4: else Chris@4: need_locks=no Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 Chris@4: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } Chris@4: Chris@4: runpath_var= Chris@4: allow_undefined_flag= Chris@4: always_export_symbols=no Chris@4: archive_cmds= Chris@4: archive_expsym_cmds= Chris@4: compiler_needs_object=no Chris@4: enable_shared_with_static_runtimes=no Chris@4: export_dynamic_flag_spec= Chris@4: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' Chris@4: hardcode_automatic=no Chris@4: hardcode_direct=no Chris@4: hardcode_direct_absolute=no Chris@4: hardcode_libdir_flag_spec= Chris@4: hardcode_libdir_flag_spec_ld= Chris@4: hardcode_libdir_separator= Chris@4: hardcode_minus_L=no Chris@4: hardcode_shlibpath_var=unsupported Chris@4: inherit_rpath=no Chris@4: link_all_deplibs=unknown Chris@4: module_cmds= Chris@4: module_expsym_cmds= Chris@4: old_archive_from_new_cmds= Chris@4: old_archive_from_expsyms_cmds= Chris@4: thread_safe_flag_spec= Chris@4: whole_archive_flag_spec= Chris@4: # include_expsyms should be a list of space-separated symbols to be *always* Chris@4: # included in the symbol list Chris@4: include_expsyms= Chris@4: # exclude_expsyms can be an extended regexp of symbols to exclude Chris@4: # it will be wrapped by ` (' and `)$', so one must not match beginning or Chris@4: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', Chris@4: # as well as any symbol that contains `d'. Chris@4: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' Chris@4: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out Chris@4: # platforms (ab)use it in PIC code, but their linkers get confused if Chris@4: # the symbol is explicitly referenced. Since portable code cannot Chris@4: # rely on this symbol name, it's probably fine to never include it in Chris@4: # preloaded symbol tables. Chris@4: # Exclude shared library initialization/finalization symbols. Chris@4: extract_expsyms_cmds= Chris@4: Chris@4: case $host_os in Chris@4: cygwin* | mingw* | pw32*) Chris@4: # FIXME: the MSVC++ port hasn't been tested in a loooong time Chris@4: # When not using gcc, we currently assume that we are using Chris@4: # Microsoft Visual C++. Chris@4: if test "$GCC" != yes; then Chris@4: with_gnu_ld=no Chris@4: fi Chris@4: ;; Chris@4: interix*) Chris@4: # we just hope/assume this is gcc and not c89 (= MSVC++) Chris@4: with_gnu_ld=yes Chris@4: ;; Chris@4: openbsd*) Chris@4: with_gnu_ld=no Chris@4: ;; Chris@4: esac Chris@4: Chris@4: ld_shlibs=yes Chris@4: if test "$with_gnu_ld" = yes; then Chris@4: # If archive_cmds runs LD, not CC, wlarc should be empty Chris@4: wlarc='${wl}' Chris@4: Chris@4: # Set some defaults for GNU ld with shared library support. These Chris@4: # are reset later if shared libraries are not supported. Putting them Chris@4: # here allows them to be overridden if necessary. Chris@4: runpath_var=LD_RUN_PATH Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: export_dynamic_flag_spec='${wl}--export-dynamic' Chris@4: # ancient GNU ld didn't support --whole-archive et. al. Chris@4: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then Chris@4: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' Chris@4: else Chris@4: whole_archive_flag_spec= Chris@4: fi Chris@4: supports_anon_versioning=no Chris@4: case `$LD -v 2>&1` in Chris@4: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 Chris@4: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... Chris@4: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... Chris@4: *\ 2.11.*) ;; # other 2.11 versions Chris@4: *) supports_anon_versioning=yes ;; Chris@4: esac Chris@4: Chris@4: # See if GNU ld supports shared libraries. Chris@4: case $host_os in Chris@4: aix[3-9]*) Chris@4: # On AIX/PPC, the GNU linker is very broken Chris@4: if test "$host_cpu" != ia64; then Chris@4: ld_shlibs=no Chris@4: cat <<_LT_EOF 1>&2 Chris@4: Chris@4: *** Warning: the GNU linker, at least up to release 2.9.1, is reported Chris@4: *** to be unable to reliably create shared libraries on AIX. Chris@4: *** Therefore, libtool is disabling shared libraries support. If you Chris@4: *** really care for shared libraries, you may want to modify your PATH Chris@4: *** so that a non-GNU linker is found, and then restart. Chris@4: Chris@4: _LT_EOF Chris@4: fi Chris@4: ;; Chris@4: Chris@4: amigaos*) Chris@4: case $host_cpu in Chris@4: powerpc) Chris@4: # see comment about AmigaOS4 .so support Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='' Chris@4: ;; Chris@4: m68k) Chris@4: 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)' Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_minus_L=yes Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: beos*) Chris@4: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then Chris@4: allow_undefined_flag=unsupported Chris@4: # Joseph Beckenbach says some releases of gcc Chris@4: # support --undefined. This deserves some investigation. FIXME Chris@4: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: Chris@4: cygwin* | mingw* | pw32*) Chris@4: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, Chris@4: # as there is no search path for DLLs. Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: allow_undefined_flag=unsupported Chris@4: always_export_symbols=no Chris@4: enable_shared_with_static_runtimes=yes Chris@4: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' Chris@4: Chris@4: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' Chris@4: # If the export-symbols file already is a .def file (1st line Chris@4: # is EXPORTS), use it as is; otherwise, prepend... Chris@4: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then Chris@4: cp $export_symbols $output_objdir/$soname.def; Chris@4: else Chris@4: echo EXPORTS > $output_objdir/$soname.def; Chris@4: cat $export_symbols >> $output_objdir/$soname.def; Chris@4: fi~ Chris@4: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: Chris@4: interix[3-9]*) Chris@4: hardcode_direct=no Chris@4: hardcode_shlibpath_var=no Chris@4: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' Chris@4: export_dynamic_flag_spec='${wl}-E' Chris@4: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. Chris@4: # Instead, shared libraries are loaded at an image base (0x10000000 by Chris@4: # default) and relocated if they conflict, which is a slow very memory Chris@4: # consuming and fragmenting process. To avoid this, we pick a random, Chris@4: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link Chris@4: # time. Moving up from 0x10000000 also allows more sbrk(2) space. Chris@4: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' Chris@4: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' Chris@4: ;; Chris@4: Chris@4: gnu* | linux* | tpf* | k*bsd*-gnu) Chris@4: tmp_diet=no Chris@4: if test "$host_os" = linux-dietlibc; then Chris@4: case $cc_basename in Chris@4: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) Chris@4: esac Chris@4: fi Chris@4: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ Chris@4: && test "$tmp_diet" = no Chris@4: then Chris@4: tmp_addflag= Chris@4: tmp_sharedflag='-shared' Chris@4: case $cc_basename,$host_cpu in Chris@4: pgcc*) # Portland Group C compiler Chris@4: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' Chris@4: tmp_addflag=' $pic_flag' Chris@4: ;; Chris@4: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers Chris@4: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' Chris@4: tmp_addflag=' $pic_flag -Mnomain' ;; Chris@4: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 Chris@4: tmp_addflag=' -i_dynamic' ;; Chris@4: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 Chris@4: tmp_addflag=' -i_dynamic -nofor_main' ;; Chris@4: ifc* | ifort*) # Intel Fortran compiler Chris@4: tmp_addflag=' -nofor_main' ;; Chris@4: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) Chris@4: tmp_sharedflag='-qmkshrobj' Chris@4: tmp_addflag= ;; Chris@4: esac Chris@4: case `$CC -V 2>&1 | sed 5q` in Chris@4: *Sun\ C*) # Sun C 5.9 Chris@4: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' Chris@4: compiler_needs_object=yes Chris@4: tmp_sharedflag='-G' ;; Chris@4: *Sun\ F*) # Sun Fortran 8.3 Chris@4: tmp_sharedflag='-G' ;; Chris@4: esac Chris@4: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: Chris@4: if test "x$supports_anon_versioning" = xyes; then Chris@4: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ Chris@4: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ Chris@4: echo "local: *; };" >> $output_objdir/$libname.ver~ Chris@4: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' Chris@4: fi Chris@4: Chris@4: case $cc_basename in Chris@4: xlf*) Chris@4: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself Chris@4: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' Chris@4: hardcode_libdir_flag_spec= Chris@4: hardcode_libdir_flag_spec_ld='-rpath $libdir' Chris@4: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' Chris@4: if test "x$supports_anon_versioning" = xyes; then Chris@4: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ Chris@4: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ Chris@4: echo "local: *; };" >> $output_objdir/$libname.ver~ Chris@4: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: Chris@4: netbsd* | netbsdelf*-gnu) Chris@4: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then Chris@4: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' Chris@4: wlarc= Chris@4: else Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: solaris*) Chris@4: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then Chris@4: ld_shlibs=no Chris@4: cat <<_LT_EOF 1>&2 Chris@4: Chris@4: *** Warning: The releases 2.8.* of the GNU linker cannot reliably Chris@4: *** create shared libraries on Solaris systems. Therefore, libtool Chris@4: *** is disabling shared libraries support. We urge you to upgrade GNU Chris@4: *** binutils to release 2.9.1 or newer. Another option is to modify Chris@4: *** your PATH or compiler configuration so that the native linker is Chris@4: *** used, and then restart. Chris@4: Chris@4: _LT_EOF Chris@4: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: Chris@4: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) Chris@4: case `$LD -v 2>&1` in Chris@4: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) Chris@4: ld_shlibs=no Chris@4: cat <<_LT_EOF 1>&2 Chris@4: Chris@4: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not Chris@4: *** reliably create shared libraries on SCO systems. Therefore, libtool Chris@4: *** is disabling shared libraries support. We urge you to upgrade GNU Chris@4: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify Chris@4: *** your PATH or compiler configuration so that the native linker is Chris@4: *** used, and then restart. Chris@4: Chris@4: _LT_EOF Chris@4: ;; Chris@4: *) Chris@4: # For security reasons, it is highly recommended that you always Chris@4: # use absolute paths for naming shared libraries, and exclude the Chris@4: # DT_RUNPATH tag from executables and libraries. But doing so Chris@4: # requires that you compile everything twice, which is a pain. Chris@4: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: sunos4*) Chris@4: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' Chris@4: wlarc= Chris@4: hardcode_direct=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: *) Chris@4: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: if test "$ld_shlibs" = no; then Chris@4: runpath_var= Chris@4: hardcode_libdir_flag_spec= Chris@4: export_dynamic_flag_spec= Chris@4: whole_archive_flag_spec= Chris@4: fi Chris@4: else Chris@4: # PORTME fill in a description of your system's linker (not GNU ld) Chris@4: case $host_os in Chris@4: aix3*) Chris@4: allow_undefined_flag=unsupported Chris@4: always_export_symbols=yes Chris@4: 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' Chris@4: # Note: this linker hardcodes the directories in LIBPATH if there Chris@4: # are no directories specified by -L. Chris@4: hardcode_minus_L=yes Chris@4: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then Chris@4: # Neither direct hardcoding nor static linking is supported with a Chris@4: # broken collect2. Chris@4: hardcode_direct=unsupported Chris@4: fi Chris@4: ;; Chris@4: Chris@4: aix[4-9]*) Chris@4: if test "$host_cpu" = ia64; then Chris@4: # On IA64, the linker does run time linking by default, so we don't Chris@4: # have to do anything special. Chris@4: aix_use_runtimelinking=no Chris@4: exp_sym_flag='-Bexport' Chris@4: no_entry_flag="" Chris@4: else Chris@4: # If we're using GNU nm, then we don't want the "-C" option. Chris@4: # -C means demangle to AIX nm, but means don't demangle with GNU nm Chris@4: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then Chris@4: 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' Chris@4: else Chris@4: 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' Chris@4: fi Chris@4: aix_use_runtimelinking=no Chris@4: Chris@4: # Test if we are trying to use run time linking or normal Chris@4: # AIX style linking. If -brtl is somewhere in LDFLAGS, we Chris@4: # need to do runtime linking. Chris@4: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) Chris@4: for ld_flag in $LDFLAGS; do Chris@4: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then Chris@4: aix_use_runtimelinking=yes Chris@4: break Chris@4: fi Chris@4: done Chris@4: ;; Chris@4: esac Chris@4: Chris@4: exp_sym_flag='-bexport' Chris@4: no_entry_flag='-bnoentry' Chris@4: fi Chris@4: Chris@4: # When large executables or shared objects are built, AIX ld can Chris@4: # have problems creating the table of contents. If linking a library Chris@4: # or program results in "error TOC overflow" add -mminimal-toc to Chris@4: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not Chris@4: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. Chris@4: Chris@4: archive_cmds='' Chris@4: hardcode_direct=yes Chris@4: hardcode_direct_absolute=yes Chris@4: hardcode_libdir_separator=':' Chris@4: link_all_deplibs=yes Chris@4: file_list_spec='${wl}-f,' Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: case $host_os in aix4.[012]|aix4.[012].*) Chris@4: # We only want to do this on AIX 4.2 and lower, the check Chris@4: # below for broken collect2 doesn't work under 4.3+ Chris@4: collect2name=`${CC} -print-prog-name=collect2` Chris@4: if test -f "$collect2name" && Chris@4: strings "$collect2name" | $GREP resolve_lib_name >/dev/null Chris@4: then Chris@4: # We have reworked collect2 Chris@4: : Chris@4: else Chris@4: # We have old collect2 Chris@4: hardcode_direct=unsupported Chris@4: # It fails to find uninstalled libraries when the uninstalled Chris@4: # path is not listed in the libpath. Setting hardcode_minus_L Chris@4: # to unsupported forces relinking Chris@4: hardcode_minus_L=yes Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_libdir_separator= Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: shared_flag='-shared' Chris@4: if test "$aix_use_runtimelinking" = yes; then Chris@4: shared_flag="$shared_flag "'${wl}-G' Chris@4: fi Chris@4: link_all_deplibs=no Chris@4: else Chris@4: # not using gcc Chris@4: if test "$host_cpu" = ia64; then Chris@4: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release Chris@4: # chokes on -Wl,-G. The following line is correct: Chris@4: shared_flag='-G' Chris@4: else Chris@4: if test "$aix_use_runtimelinking" = yes; then Chris@4: shared_flag='${wl}-G' Chris@4: else Chris@4: shared_flag='${wl}-bM:SRE' Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: Chris@4: # It seems that -bexpall does not export symbols beginning with Chris@4: # underscore (_), so it is better to generate a list of symbols to export. Chris@4: always_export_symbols=yes Chris@4: if test "$aix_use_runtimelinking" = yes; then Chris@4: # Warning - without using the other runtime loading flags (-brtl), Chris@4: # -berok will link without error, but may produce a broken library. Chris@4: allow_undefined_flag='-berok' Chris@4: # Determine the default libpath from the value encoded in an Chris@4: # empty executable. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: Chris@4: lt_aix_libpath_sed=' Chris@4: /Import File Strings/,/^$/ { Chris@4: /^0/ { Chris@4: s/^0 *\(.*\)$/\1/ Chris@4: p Chris@4: } Chris@4: }' Chris@4: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` Chris@4: # Check for a 64-bit object if we didn't find anything. Chris@4: if test -z "$aix_libpath"; then Chris@4: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` Chris@4: fi Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi Chris@4: Chris@4: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" Chris@4: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" Chris@4: else Chris@4: if test "$host_cpu" = ia64; then Chris@4: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' Chris@4: allow_undefined_flag="-z nodefs" Chris@4: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" Chris@4: else Chris@4: # Determine the default libpath from the value encoded in an Chris@4: # empty executable. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: Chris@4: lt_aix_libpath_sed=' Chris@4: /Import File Strings/,/^$/ { Chris@4: /^0/ { Chris@4: s/^0 *\(.*\)$/\1/ Chris@4: p Chris@4: } Chris@4: }' Chris@4: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` Chris@4: # Check for a 64-bit object if we didn't find anything. Chris@4: if test -z "$aix_libpath"; then Chris@4: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` Chris@4: fi Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi Chris@4: Chris@4: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" Chris@4: # Warning - without using the other run time loading flags, Chris@4: # -berok will link without error, but may produce a broken library. Chris@4: no_undefined_flag=' ${wl}-bernotok' Chris@4: allow_undefined_flag=' ${wl}-berok' Chris@4: # Exported symbols can be pulled into shared objects from archives Chris@4: whole_archive_flag_spec='$convenience' Chris@4: archive_cmds_need_lc=yes Chris@4: # This is similar to how AIX traditionally builds its shared libraries. Chris@4: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' Chris@4: fi Chris@4: fi Chris@4: ;; Chris@4: Chris@4: amigaos*) Chris@4: case $host_cpu in Chris@4: powerpc) Chris@4: # see comment about AmigaOS4 .so support Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' Chris@4: archive_expsym_cmds='' Chris@4: ;; Chris@4: m68k) Chris@4: 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)' Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_minus_L=yes Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: bsdi[45]*) Chris@4: export_dynamic_flag_spec=-rdynamic Chris@4: ;; Chris@4: Chris@4: cygwin* | mingw* | pw32*) Chris@4: # When not using gcc, we currently assume that we are using Chris@4: # Microsoft Visual C++. Chris@4: # hardcode_libdir_flag_spec is actually meaningless, as there is Chris@4: # no search path for DLLs. Chris@4: hardcode_libdir_flag_spec=' ' Chris@4: allow_undefined_flag=unsupported Chris@4: # Tell ltmain to make .lib files, not .a files. Chris@4: libext=lib Chris@4: # Tell ltmain to make .dll files, not .so files. Chris@4: shrext_cmds=".dll" Chris@4: # FIXME: Setting linknames here is a bad hack. Chris@4: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' Chris@4: # The linker will automatically build a .lib file if we build a DLL. Chris@4: old_archive_from_new_cmds='true' Chris@4: # FIXME: Should let the user specify the lib program. Chris@4: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' Chris@4: fix_srcfile_path='`cygpath -w "$srcfile"`' Chris@4: enable_shared_with_static_runtimes=yes Chris@4: ;; Chris@4: Chris@4: darwin* | rhapsody*) Chris@4: Chris@4: Chris@4: archive_cmds_need_lc=no Chris@4: hardcode_direct=no Chris@4: hardcode_automatic=yes Chris@4: hardcode_shlibpath_var=unsupported Chris@4: whole_archive_flag_spec='' Chris@4: link_all_deplibs=yes Chris@4: allow_undefined_flag="$_lt_dar_allow_undefined" Chris@4: if test "$GCC" = "yes"; then Chris@4: output_verbose_link_cmd=echo Chris@4: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" Chris@4: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" Chris@4: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" Chris@4: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" Chris@4: Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: Chris@4: ;; Chris@4: Chris@4: dgux*) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: freebsd1*) Chris@4: ld_shlibs=no Chris@4: ;; Chris@4: Chris@4: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor Chris@4: # support. Future versions do this automatically, but an explicit c++rt0.o Chris@4: # does not break anything, and helps significantly (at the cost of a little Chris@4: # extra space). Chris@4: freebsd2.2*) Chris@4: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' Chris@4: hardcode_libdir_flag_spec='-R$libdir' Chris@4: hardcode_direct=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: # Unfortunately, older versions of FreeBSD 2 do not have this feature. Chris@4: freebsd2*) Chris@4: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_direct=yes Chris@4: hardcode_minus_L=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. Chris@4: freebsd* | dragonfly*) Chris@4: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' Chris@4: hardcode_libdir_flag_spec='-R$libdir' Chris@4: hardcode_direct=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: hpux9*) Chris@4: if test "$GCC" = yes; then Chris@4: 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' Chris@4: else Chris@4: 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' Chris@4: fi Chris@4: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' Chris@4: hardcode_libdir_separator=: Chris@4: hardcode_direct=yes Chris@4: Chris@4: # hardcode_minus_L: Not really in the search PATH, Chris@4: # but as the default location of the library. Chris@4: hardcode_minus_L=yes Chris@4: export_dynamic_flag_spec='${wl}-E' Chris@4: ;; Chris@4: Chris@4: hpux10*) Chris@4: if test "$GCC" = yes -a "$with_gnu_ld" = no; then Chris@4: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' Chris@4: else Chris@4: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' Chris@4: fi Chris@4: if test "$with_gnu_ld" = no; then Chris@4: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' Chris@4: hardcode_libdir_flag_spec_ld='+b $libdir' Chris@4: hardcode_libdir_separator=: Chris@4: hardcode_direct=yes Chris@4: hardcode_direct_absolute=yes Chris@4: export_dynamic_flag_spec='${wl}-E' Chris@4: # hardcode_minus_L: Not really in the search PATH, Chris@4: # but as the default location of the library. Chris@4: hardcode_minus_L=yes Chris@4: fi Chris@4: ;; Chris@4: Chris@4: hpux11*) Chris@4: if test "$GCC" = yes -a "$with_gnu_ld" = no; then Chris@4: case $host_cpu in Chris@4: hppa*64*) Chris@4: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: ia64*) Chris@4: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: *) Chris@4: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: case $host_cpu in Chris@4: hppa*64*) Chris@4: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: ia64*) Chris@4: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: *) Chris@4: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: if test "$with_gnu_ld" = no; then Chris@4: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' Chris@4: hardcode_libdir_separator=: Chris@4: Chris@4: case $host_cpu in Chris@4: hppa*64*|ia64*) Chris@4: hardcode_direct=no Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: *) Chris@4: hardcode_direct=yes Chris@4: hardcode_direct_absolute=yes Chris@4: export_dynamic_flag_spec='${wl}-E' Chris@4: Chris@4: # hardcode_minus_L: Not really in the search PATH, Chris@4: # but as the default location of the library. Chris@4: hardcode_minus_L=yes Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: ;; Chris@4: Chris@4: irix5* | irix6* | nonstopux*) Chris@4: if test "$GCC" = yes; then Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' Chris@4: # Try to use the -exported_symbol ld option, if it does not Chris@4: # work, assume that -exports_file does not work either and Chris@4: # implicitly export all symbols. Chris@4: save_LDFLAGS="$LDFLAGS" Chris@4: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: int foo(void) {} Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' Chris@4: Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LDFLAGS="$save_LDFLAGS" Chris@4: else Chris@4: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' Chris@4: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' Chris@4: fi Chris@4: archive_cmds_need_lc='no' Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: hardcode_libdir_separator=: Chris@4: inherit_rpath=yes Chris@4: link_all_deplibs=yes Chris@4: ;; Chris@4: Chris@4: netbsd* | netbsdelf*-gnu) Chris@4: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then Chris@4: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out Chris@4: else Chris@4: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF Chris@4: fi Chris@4: hardcode_libdir_flag_spec='-R$libdir' Chris@4: hardcode_direct=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: newsos6) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_direct=yes Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: hardcode_libdir_separator=: Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: *nto* | *qnx*) Chris@4: ;; Chris@4: Chris@4: openbsd*) Chris@4: if test -f /usr/libexec/ld.so; then Chris@4: hardcode_direct=yes Chris@4: hardcode_shlibpath_var=no Chris@4: hardcode_direct_absolute=yes Chris@4: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then Chris@4: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' Chris@4: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' Chris@4: export_dynamic_flag_spec='${wl}-E' Chris@4: else Chris@4: case $host_os in Chris@4: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) Chris@4: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_libdir_flag_spec='-R$libdir' Chris@4: ;; Chris@4: *) Chris@4: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' Chris@4: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: else Chris@4: ld_shlibs=no Chris@4: fi Chris@4: ;; Chris@4: Chris@4: os2*) Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_minus_L=yes Chris@4: allow_undefined_flag=unsupported Chris@4: 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' Chris@4: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' Chris@4: ;; Chris@4: Chris@4: osf3*) Chris@4: if test "$GCC" = yes; then Chris@4: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' Chris@4: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' Chris@4: else Chris@4: allow_undefined_flag=' -expect_unresolved \*' Chris@4: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' Chris@4: fi Chris@4: archive_cmds_need_lc='no' Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: hardcode_libdir_separator=: Chris@4: ;; Chris@4: Chris@4: osf4* | osf5*) # as osf3* with the addition of -msym flag Chris@4: if test "$GCC" = yes; then Chris@4: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' Chris@4: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' Chris@4: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' Chris@4: else Chris@4: allow_undefined_flag=' -expect_unresolved \*' Chris@4: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' Chris@4: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ Chris@4: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' Chris@4: Chris@4: # Both c and cxx compiler support -rpath directly Chris@4: hardcode_libdir_flag_spec='-rpath $libdir' Chris@4: fi Chris@4: archive_cmds_need_lc='no' Chris@4: hardcode_libdir_separator=: Chris@4: ;; Chris@4: Chris@4: solaris*) Chris@4: no_undefined_flag=' -z defs' Chris@4: if test "$GCC" = yes; then Chris@4: wlarc='${wl}' Chris@4: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ Chris@4: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' Chris@4: else Chris@4: case `$CC -V 2>&1` in Chris@4: *"Compilers 5.0"*) Chris@4: wlarc='' Chris@4: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ Chris@4: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' Chris@4: ;; Chris@4: *) Chris@4: wlarc='${wl}' Chris@4: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ Chris@4: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: hardcode_libdir_flag_spec='-R$libdir' Chris@4: hardcode_shlibpath_var=no Chris@4: case $host_os in Chris@4: solaris2.[0-5] | solaris2.[0-5].*) ;; Chris@4: *) Chris@4: # The compiler driver will combine and reorder linker options, Chris@4: # but understands `-z linker_flag'. GCC discards it without `$wl', Chris@4: # but is careful enough not to reorder. Chris@4: # Supported since Solaris 2.6 (maybe 2.5.1?) Chris@4: if test "$GCC" = yes; then Chris@4: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' Chris@4: else Chris@4: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: link_all_deplibs=yes Chris@4: ;; Chris@4: Chris@4: sunos4*) Chris@4: if test "x$host_vendor" = xsequent; then Chris@4: # Use $CC to link under sequent, because it throws in some extra .o Chris@4: # files that make .init and .fini sections work. Chris@4: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: else Chris@4: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' Chris@4: fi Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_direct=yes Chris@4: hardcode_minus_L=yes Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: sysv4) Chris@4: case $host_vendor in Chris@4: sni) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_direct=yes # is this really true??? Chris@4: ;; Chris@4: siemens) Chris@4: ## LD is ld it makes a PLAMLIB Chris@4: ## CC just makes a GrossModule. Chris@4: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' Chris@4: reload_cmds='$CC -r -o $output$reload_objs' Chris@4: hardcode_direct=no Chris@4: ;; Chris@4: motorola) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_direct=no #Motorola manual says yes, but my tests say they lie Chris@4: ;; Chris@4: esac Chris@4: runpath_var='LD_RUN_PATH' Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: sysv4.3*) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_shlibpath_var=no Chris@4: export_dynamic_flag_spec='-Bexport' Chris@4: ;; Chris@4: Chris@4: sysv4*MP*) Chris@4: if test -d /usr/nec; then Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_shlibpath_var=no Chris@4: runpath_var=LD_RUN_PATH Chris@4: hardcode_runpath_var=yes Chris@4: ld_shlibs=yes Chris@4: fi Chris@4: ;; Chris@4: Chris@4: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) Chris@4: no_undefined_flag='${wl}-z,text' Chris@4: archive_cmds_need_lc=no Chris@4: hardcode_shlibpath_var=no Chris@4: runpath_var='LD_RUN_PATH' Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: else Chris@4: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: sysv5* | sco3.2v5* | sco5v6*) Chris@4: # Note: We can NOT use -z defs as we might desire, because we do not Chris@4: # link with -lc, and that would cause any symbols used from libc to Chris@4: # always be unresolved, which means just about no library would Chris@4: # ever link correctly. If we're not using GNU ld we use -z text Chris@4: # though, which does catch some bad symbols but isn't as heavy-handed Chris@4: # as -z defs. Chris@4: no_undefined_flag='${wl}-z,text' Chris@4: allow_undefined_flag='${wl}-z,nodefs' Chris@4: archive_cmds_need_lc=no Chris@4: hardcode_shlibpath_var=no Chris@4: hardcode_libdir_flag_spec='${wl}-R,$libdir' Chris@4: hardcode_libdir_separator=':' Chris@4: link_all_deplibs=yes Chris@4: export_dynamic_flag_spec='${wl}-Bexport' Chris@4: runpath_var='LD_RUN_PATH' Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: else Chris@4: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: uts4*) Chris@4: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' Chris@4: hardcode_libdir_flag_spec='-L$libdir' Chris@4: hardcode_shlibpath_var=no Chris@4: ;; Chris@4: Chris@4: *) Chris@4: ld_shlibs=no Chris@4: ;; Chris@4: esac Chris@4: Chris@4: if test x$host_vendor = xsni; then Chris@4: case $host in Chris@4: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Chris@4: export_dynamic_flag_spec='${wl}-Blargedynsym' Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 Chris@4: echo "${ECHO_T}$ld_shlibs" >&6; } Chris@4: test "$ld_shlibs" = no && can_build_shared=no Chris@4: Chris@4: with_gnu_ld=$with_gnu_ld Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Chris@4: # Do we need to explicitly link libc? Chris@4: # Chris@4: case "x$archive_cmds_need_lc" in Chris@4: x|xyes) Chris@4: # Assume -lc should be added Chris@4: archive_cmds_need_lc=yes Chris@4: Chris@4: if test "$enable_shared" = yes && test "$GCC" = yes; then Chris@4: case $archive_cmds in Chris@4: *'~'*) Chris@4: # FIXME: we may have to deal with multi-command sequences. Chris@4: ;; Chris@4: '$CC '*) Chris@4: # Test whether the compiler implicitly links with -lc since on some Chris@4: # systems, -lgcc has to come before -lc. If gcc already passes -lc Chris@4: # to ld, don't add -lc before -lgcc. Chris@4: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 Chris@4: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } Chris@4: $RM conftest* Chris@4: echo "$lt_simple_compile_test_code" > conftest.$ac_ext Chris@4: Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 Chris@4: (eval $ac_compile) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } 2>conftest.err; then Chris@4: soname=conftest Chris@4: lib=conftest Chris@4: libobjs=conftest.$ac_objext Chris@4: deplibs= Chris@4: wl=$lt_prog_compiler_wl Chris@4: pic_flag=$lt_prog_compiler_pic Chris@4: compiler_flags=-v Chris@4: linker_flags=-v Chris@4: verstring= Chris@4: output_objdir=. Chris@4: libname=conftest Chris@4: lt_save_allow_undefined_flag=$allow_undefined_flag Chris@4: allow_undefined_flag= Chris@4: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 Chris@4: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } Chris@4: then Chris@4: archive_cmds_need_lc=no Chris@4: else Chris@4: archive_cmds_need_lc=yes Chris@4: fi Chris@4: allow_undefined_flag=$lt_save_allow_undefined_flag Chris@4: else Chris@4: cat conftest.err 1>&5 Chris@4: fi Chris@4: $RM conftest* Chris@4: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 Chris@4: echo "${ECHO_T}$archive_cmds_need_lc" >&6; } Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 Chris@4: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } Chris@4: Chris@4: if test "$GCC" = yes; then Chris@4: case $host_os in Chris@4: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; Chris@4: *) lt_awk_arg="/^libraries:/" ;; Chris@4: esac Chris@4: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` Chris@4: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then Chris@4: # if the path contains ";" then we assume it to be the separator Chris@4: # otherwise default to the standard path separator (i.e. ":") - it is Chris@4: # assumed that no part of a normal pathname contains ";" but that should Chris@4: # okay in the real world where ";" in dirpaths is itself problematic. Chris@4: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` Chris@4: else Chris@4: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` Chris@4: fi Chris@4: # Ok, now we have the path, separated by spaces, we can step through it Chris@4: # and add multilib dir if necessary. Chris@4: lt_tmp_lt_search_path_spec= Chris@4: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` Chris@4: for lt_sys_path in $lt_search_path_spec; do Chris@4: if test -d "$lt_sys_path/$lt_multi_os_dir"; then Chris@4: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" Chris@4: else Chris@4: test -d "$lt_sys_path" && \ Chris@4: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" Chris@4: fi Chris@4: done Chris@4: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' Chris@4: BEGIN {RS=" "; FS="/|\n";} { Chris@4: lt_foo=""; Chris@4: lt_count=0; Chris@4: for (lt_i = NF; lt_i > 0; lt_i--) { Chris@4: if ($lt_i != "" && $lt_i != ".") { Chris@4: if ($lt_i == "..") { Chris@4: lt_count++; Chris@4: } else { Chris@4: if (lt_count == 0) { Chris@4: lt_foo="/" $lt_i lt_foo; Chris@4: } else { Chris@4: lt_count--; Chris@4: } Chris@4: } Chris@4: } Chris@4: } Chris@4: if (lt_foo != "") { lt_freq[lt_foo]++; } Chris@4: if (lt_freq[lt_foo] == 1) { print lt_foo; } Chris@4: }'` Chris@4: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` Chris@4: else Chris@4: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" Chris@4: fi Chris@4: library_names_spec= Chris@4: libname_spec='lib$name' Chris@4: soname_spec= Chris@4: shrext_cmds=".so" Chris@4: postinstall_cmds= Chris@4: postuninstall_cmds= Chris@4: finish_cmds= Chris@4: finish_eval= Chris@4: shlibpath_var= Chris@4: shlibpath_overrides_runpath=unknown Chris@4: version_type=none Chris@4: dynamic_linker="$host_os ld.so" Chris@4: sys_lib_dlsearch_path_spec="/lib /usr/lib" Chris@4: need_lib_prefix=unknown Chris@4: hardcode_into_libs=no Chris@4: Chris@4: # when you set need_version to no, make sure it does not cause -set_version Chris@4: # flags to be left without arguments Chris@4: need_version=unknown Chris@4: Chris@4: case $host_os in Chris@4: aix3*) Chris@4: version_type=linux Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' Chris@4: shlibpath_var=LIBPATH Chris@4: Chris@4: # AIX 3 has no versioning support, so we append a major version to the name. Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: ;; Chris@4: Chris@4: aix[4-9]*) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: hardcode_into_libs=yes Chris@4: if test "$host_cpu" = ia64; then Chris@4: # AIX 5 supports IA64 Chris@4: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: else Chris@4: # With GCC up to 2.95.x, collect2 would create an import file Chris@4: # for dependence libraries. The import file would start with Chris@4: # the line `#! .'. This would cause the generated library to Chris@4: # depend on `.', always an invalid library. This was fixed in Chris@4: # development snapshots of GCC prior to 3.0. Chris@4: case $host_os in Chris@4: aix4 | aix4.[01] | aix4.[01].*) Chris@4: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' Chris@4: echo ' yes ' Chris@4: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then Chris@4: : Chris@4: else Chris@4: can_build_shared=no Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct Chris@4: # soname into executable. Probably we can add versioning support to Chris@4: # collect2, so additional links can be useful in future. Chris@4: if test "$aix_use_runtimelinking" = yes; then Chris@4: # If using run time linking (on AIX 4.2 or later) use lib.so Chris@4: # instead of lib.a to let people know that these are not Chris@4: # typical AIX shared libraries. Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: else Chris@4: # We preserve .a as extension for shared libraries through AIX4.2 Chris@4: # and later when we are not doing run time linking. Chris@4: library_names_spec='${libname}${release}.a $libname.a' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: fi Chris@4: shlibpath_var=LIBPATH Chris@4: fi Chris@4: ;; Chris@4: Chris@4: amigaos*) Chris@4: case $host_cpu in Chris@4: powerpc) Chris@4: # Since July 2007 AmigaOS4 officially supports .so libraries. Chris@4: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: ;; Chris@4: m68k) Chris@4: library_names_spec='$libname.ixlibrary $libname.a' Chris@4: # Create ${libname}_ixlibrary.a entries in /sys/libs. Chris@4: 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' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: beos*) Chris@4: library_names_spec='${libname}${shared_ext}' Chris@4: dynamic_linker="$host_os ld.so" Chris@4: shlibpath_var=LIBRARY_PATH Chris@4: ;; Chris@4: Chris@4: bsdi[45]*) Chris@4: version_type=linux Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" Chris@4: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" Chris@4: # the default ld.so.conf also contains /usr/contrib/lib and Chris@4: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow Chris@4: # libtool to hard-code these into programs Chris@4: ;; Chris@4: Chris@4: cygwin* | mingw* | pw32*) Chris@4: version_type=windows Chris@4: shrext_cmds=".dll" Chris@4: need_version=no Chris@4: need_lib_prefix=no Chris@4: Chris@4: case $GCC,$host_os in Chris@4: yes,cygwin* | yes,mingw* | yes,pw32*) Chris@4: library_names_spec='$libname.dll.a' Chris@4: # DLL is installed to $(libdir)/../bin by postinstall_cmds Chris@4: postinstall_cmds='base_file=`basename \${file}`~ Chris@4: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ Chris@4: dldir=$destdir/`dirname \$dlpath`~ Chris@4: test -d \$dldir || mkdir -p \$dldir~ Chris@4: $install_prog $dir/$dlname \$dldir/$dlname~ Chris@4: chmod a+x \$dldir/$dlname~ Chris@4: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then Chris@4: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; Chris@4: fi' Chris@4: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ Chris@4: dlpath=$dir/\$dldll~ Chris@4: $RM \$dlpath' Chris@4: shlibpath_overrides_runpath=yes Chris@4: Chris@4: case $host_os in Chris@4: cygwin*) Chris@4: # Cygwin DLLs use 'cyg' prefix rather than 'lib' Chris@4: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' Chris@4: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" Chris@4: ;; Chris@4: mingw*) Chris@4: # MinGW DLLs use traditional 'lib' prefix Chris@4: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' Chris@4: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` Chris@4: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then Chris@4: # It is most probably a Windows format PATH printed by Chris@4: # mingw gcc, but we are running on Cygwin. Gcc prints its search Chris@4: # path with ; separators, and with drive letters. We can handle the Chris@4: # drive letters (cygwin fileutils understands them), so leave them, Chris@4: # especially as we might pass files found there to a mingw objdump, Chris@4: # which wouldn't understand a cygwinified path. Ahh. Chris@4: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` Chris@4: else Chris@4: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` Chris@4: fi Chris@4: ;; Chris@4: pw32*) Chris@4: # pw32 DLLs use 'pw' prefix rather than 'lib' Chris@4: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: *) Chris@4: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' Chris@4: ;; Chris@4: esac Chris@4: dynamic_linker='Win32 ld.exe' Chris@4: # FIXME: first we should search . and the directory the executable is in Chris@4: shlibpath_var=PATH Chris@4: ;; Chris@4: Chris@4: darwin* | rhapsody*) Chris@4: dynamic_linker="$host_os dyld" Chris@4: version_type=darwin Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' Chris@4: soname_spec='${libname}${release}${major}$shared_ext' Chris@4: shlibpath_overrides_runpath=yes Chris@4: shlibpath_var=DYLD_LIBRARY_PATH Chris@4: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' Chris@4: Chris@4: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" Chris@4: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' Chris@4: ;; Chris@4: Chris@4: dgux*) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: ;; Chris@4: Chris@4: freebsd1*) Chris@4: dynamic_linker=no Chris@4: ;; Chris@4: Chris@4: freebsd* | dragonfly*) Chris@4: # DragonFly does not have aout. When/if they implement a new Chris@4: # versioning mechanism, adjust this. Chris@4: if test -x /usr/bin/objformat; then Chris@4: objformat=`/usr/bin/objformat` Chris@4: else Chris@4: case $host_os in Chris@4: freebsd[123]*) objformat=aout ;; Chris@4: *) objformat=elf ;; Chris@4: esac Chris@4: fi Chris@4: version_type=freebsd-$objformat Chris@4: case $version_type in Chris@4: freebsd-elf*) Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' Chris@4: need_version=no Chris@4: need_lib_prefix=no Chris@4: ;; Chris@4: freebsd-*) Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' Chris@4: need_version=yes Chris@4: ;; Chris@4: esac Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: case $host_os in Chris@4: freebsd2*) Chris@4: shlibpath_overrides_runpath=yes Chris@4: ;; Chris@4: freebsd3.[01]* | freebsdelf3.[01]*) Chris@4: shlibpath_overrides_runpath=yes Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ Chris@4: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) Chris@4: shlibpath_overrides_runpath=no Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: *) # from 4.6 on, and DragonFly Chris@4: shlibpath_overrides_runpath=yes Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: gnu*) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: Chris@4: hpux9* | hpux10* | hpux11*) Chris@4: # Give a soname corresponding to the major version so that dld.sl refuses to Chris@4: # link against other versions. Chris@4: version_type=sunos Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: case $host_cpu in Chris@4: ia64*) Chris@4: shrext_cmds='.so' Chris@4: hardcode_into_libs=yes Chris@4: dynamic_linker="$host_os dld.so" Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: if test "X$HPUX_IA64_MODE" = X32; then Chris@4: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" Chris@4: else Chris@4: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" Chris@4: fi Chris@4: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec Chris@4: ;; Chris@4: hppa*64*) Chris@4: shrext_cmds='.sl' Chris@4: hardcode_into_libs=yes Chris@4: dynamic_linker="$host_os dld.sl" Chris@4: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH Chris@4: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" Chris@4: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec Chris@4: ;; Chris@4: *) Chris@4: shrext_cmds='.sl' Chris@4: dynamic_linker="$host_os dld.sl" Chris@4: shlibpath_var=SHLIB_PATH Chris@4: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: ;; Chris@4: esac Chris@4: # HP-UX runs *really* slowly unless shared libraries are mode 555. Chris@4: postinstall_cmds='chmod 555 $lib' Chris@4: ;; Chris@4: Chris@4: interix[3-9]*) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: Chris@4: irix5* | irix6* | nonstopux*) Chris@4: case $host_os in Chris@4: nonstopux*) version_type=nonstopux ;; Chris@4: *) Chris@4: if test "$lt_cv_prog_gnu_ld" = yes; then Chris@4: version_type=linux Chris@4: else Chris@4: version_type=irix Chris@4: fi ;; Chris@4: esac Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' Chris@4: case $host_os in Chris@4: irix5* | nonstopux*) Chris@4: libsuff= shlibsuff= Chris@4: ;; Chris@4: *) Chris@4: case $LD in # libtool.m4 will add one of these switches to LD Chris@4: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") Chris@4: libsuff= shlibsuff= libmagic=32-bit;; Chris@4: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") Chris@4: libsuff=32 shlibsuff=N32 libmagic=N32;; Chris@4: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") Chris@4: libsuff=64 shlibsuff=64 libmagic=64-bit;; Chris@4: *) libsuff= shlibsuff= libmagic=never-match;; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" Chris@4: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: Chris@4: # No shared lib support for Linux oldld, aout, or coff. Chris@4: linux*oldld* | linux*aout* | linux*coff*) Chris@4: dynamic_linker=no Chris@4: ;; Chris@4: Chris@4: # This must be Linux ELF. Chris@4: linux* | k*bsd*-gnu) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: # Some binutils ld are patched to set DT_RUNPATH Chris@4: save_LDFLAGS=$LDFLAGS Chris@4: save_libdir=$libdir Chris@4: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ Chris@4: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then Chris@4: shlibpath_overrides_runpath=yes Chris@4: fi Chris@4: Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LDFLAGS=$save_LDFLAGS Chris@4: libdir=$save_libdir Chris@4: Chris@4: # This implies no fast_install, which is unacceptable. Chris@4: # Some rework will be needed to allow for fast_install Chris@4: # before this can be enabled. Chris@4: hardcode_into_libs=yes Chris@4: Chris@4: # Append ld.so.conf contents to the search path Chris@4: if test -f /etc/ld.so.conf; then Chris@4: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` Chris@4: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" Chris@4: fi Chris@4: Chris@4: # We used to test for /lib/ld.so.1 and disable shared libraries on Chris@4: # powerpc, because MkLinux only supported shared libraries with the Chris@4: # GNU dynamic linker. Since this was broken with cross compilers, Chris@4: # most powerpc-linux boxes support dynamic linking these days and Chris@4: # people can always --disable-shared, the test was removed, and we Chris@4: # assume the GNU/Linux dynamic linker is in use. Chris@4: dynamic_linker='GNU/Linux ld.so' Chris@4: ;; Chris@4: Chris@4: netbsdelf*-gnu) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: hardcode_into_libs=yes Chris@4: dynamic_linker='NetBSD ld.elf_so' Chris@4: ;; Chris@4: Chris@4: netbsd*) Chris@4: version_type=sunos Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' Chris@4: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' Chris@4: dynamic_linker='NetBSD (a.out) ld.so' Chris@4: else Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: dynamic_linker='NetBSD ld.elf_so' Chris@4: fi Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: Chris@4: newsos6) Chris@4: version_type=linux Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes Chris@4: ;; Chris@4: Chris@4: *nto* | *qnx*) Chris@4: version_type=qnx Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: hardcode_into_libs=yes Chris@4: dynamic_linker='ldqnx.so' Chris@4: ;; Chris@4: Chris@4: openbsd*) Chris@4: version_type=sunos Chris@4: sys_lib_dlsearch_path_spec="/usr/lib" Chris@4: need_lib_prefix=no Chris@4: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. Chris@4: case $host_os in Chris@4: openbsd3.3 | openbsd3.3.*) need_version=yes ;; Chris@4: *) need_version=no ;; Chris@4: esac Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' Chris@4: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then Chris@4: case $host_os in Chris@4: openbsd2.[89] | openbsd2.[89].*) Chris@4: shlibpath_overrides_runpath=no Chris@4: ;; Chris@4: *) Chris@4: shlibpath_overrides_runpath=yes Chris@4: ;; Chris@4: esac Chris@4: else Chris@4: shlibpath_overrides_runpath=yes Chris@4: fi Chris@4: ;; Chris@4: Chris@4: os2*) Chris@4: libname_spec='$name' Chris@4: shrext_cmds=".dll" Chris@4: need_lib_prefix=no Chris@4: library_names_spec='$libname${shared_ext} $libname.a' Chris@4: dynamic_linker='OS/2 ld.exe' Chris@4: shlibpath_var=LIBPATH Chris@4: ;; Chris@4: Chris@4: osf3* | osf4* | osf5*) Chris@4: version_type=osf Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" Chris@4: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" Chris@4: ;; Chris@4: Chris@4: rdos*) Chris@4: dynamic_linker=no Chris@4: ;; Chris@4: Chris@4: solaris*) Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes Chris@4: hardcode_into_libs=yes Chris@4: # ldd complains unless libraries are executable Chris@4: postinstall_cmds='chmod +x $lib' Chris@4: ;; Chris@4: Chris@4: sunos4*) Chris@4: version_type=sunos Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' Chris@4: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes Chris@4: if test "$with_gnu_ld" = yes; then Chris@4: need_lib_prefix=no Chris@4: fi Chris@4: need_version=yes Chris@4: ;; Chris@4: Chris@4: sysv4 | sysv4.3*) Chris@4: version_type=linux Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: case $host_vendor in Chris@4: sni) Chris@4: shlibpath_overrides_runpath=no Chris@4: need_lib_prefix=no Chris@4: runpath_var=LD_RUN_PATH Chris@4: ;; Chris@4: siemens) Chris@4: need_lib_prefix=no Chris@4: ;; Chris@4: motorola) Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: shlibpath_overrides_runpath=no Chris@4: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' Chris@4: ;; Chris@4: esac Chris@4: ;; Chris@4: Chris@4: sysv4*MP*) Chris@4: if test -d /usr/nec ;then Chris@4: version_type=linux Chris@4: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' Chris@4: soname_spec='$libname${shared_ext}.$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: fi Chris@4: ;; Chris@4: Chris@4: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) Chris@4: version_type=freebsd-elf Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=yes Chris@4: hardcode_into_libs=yes Chris@4: if test "$with_gnu_ld" = yes; then Chris@4: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' Chris@4: else Chris@4: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' Chris@4: case $host_os in Chris@4: sco3.2v5*) Chris@4: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: sys_lib_dlsearch_path_spec='/usr/lib' Chris@4: ;; Chris@4: Chris@4: tpf*) Chris@4: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. Chris@4: version_type=linux Chris@4: need_lib_prefix=no Chris@4: need_version=no Chris@4: library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: shlibpath_overrides_runpath=no Chris@4: hardcode_into_libs=yes Chris@4: ;; Chris@4: Chris@4: uts4*) Chris@4: version_type=linux Chris@4: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' Chris@4: soname_spec='${libname}${release}${shared_ext}$major' Chris@4: shlibpath_var=LD_LIBRARY_PATH Chris@4: ;; Chris@4: Chris@4: *) Chris@4: dynamic_linker=no Chris@4: ;; Chris@4: esac Chris@4: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 Chris@4: echo "${ECHO_T}$dynamic_linker" >&6; } Chris@4: test "$dynamic_linker" = no && can_build_shared=no Chris@4: Chris@4: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" Chris@4: if test "$GCC" = yes; then Chris@4: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" Chris@4: fi Chris@4: Chris@4: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then Chris@4: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" Chris@4: fi Chris@4: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then Chris@4: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 Chris@4: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } Chris@4: hardcode_action= Chris@4: if test -n "$hardcode_libdir_flag_spec" || Chris@4: test -n "$runpath_var" || Chris@4: test "X$hardcode_automatic" = "Xyes" ; then Chris@4: Chris@4: # We can hardcode non-existent directories. Chris@4: if test "$hardcode_direct" != no && Chris@4: # If the only mechanism to avoid hardcoding is shlibpath_var, we Chris@4: # have to relink, otherwise we might link with an installed library Chris@4: # when we should be linking with a yet-to-be-installed one Chris@4: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && Chris@4: test "$hardcode_minus_L" != no; then Chris@4: # Linking always hardcodes the temporary library directory. Chris@4: hardcode_action=relink Chris@4: else Chris@4: # We can link without hardcoding, and we can hardcode nonexisting dirs. Chris@4: hardcode_action=immediate Chris@4: fi Chris@4: else Chris@4: # We cannot hardcode anything, or else we can only hardcode existing Chris@4: # directories. Chris@4: hardcode_action=unsupported Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $hardcode_action" >&5 Chris@4: echo "${ECHO_T}$hardcode_action" >&6; } Chris@4: Chris@4: if test "$hardcode_action" = relink || Chris@4: test "$inherit_rpath" = yes; then Chris@4: # Fast installation is not supported Chris@4: enable_fast_install=no Chris@4: elif test "$shlibpath_overrides_runpath" = yes || Chris@4: test "$enable_shared" = no; then Chris@4: # Fast installation is not necessary Chris@4: enable_fast_install=needless Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: if test "x$enable_dlopen" != xyes; then Chris@4: enable_dlopen=unknown Chris@4: enable_dlopen_self=unknown Chris@4: enable_dlopen_self_static=unknown Chris@4: else Chris@4: lt_cv_dlopen=no Chris@4: lt_cv_dlopen_libs= Chris@4: Chris@4: case $host_os in Chris@4: beos*) Chris@4: lt_cv_dlopen="load_add_on" Chris@4: lt_cv_dlopen_libs= Chris@4: lt_cv_dlopen_self=yes Chris@4: ;; Chris@4: Chris@4: mingw* | pw32*) Chris@4: lt_cv_dlopen="LoadLibrary" Chris@4: lt_cv_dlopen_libs= Chris@4: ;; Chris@4: Chris@4: cygwin*) Chris@4: lt_cv_dlopen="dlopen" Chris@4: lt_cv_dlopen_libs= Chris@4: ;; Chris@4: Chris@4: darwin*) Chris@4: # if libdl is installed we need to link against it Chris@4: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 Chris@4: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_dl_dlopen+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-ldl $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char dlopen (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return dlopen (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_dl_dlopen=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_dl_dlopen=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } Chris@4: if test $ac_cv_lib_dl_dlopen = yes; then Chris@4: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" Chris@4: else Chris@4: Chris@4: lt_cv_dlopen="dyld" Chris@4: lt_cv_dlopen_libs= Chris@4: lt_cv_dlopen_self=yes Chris@4: Chris@4: fi Chris@4: Chris@4: ;; Chris@4: Chris@4: *) Chris@4: { echo "$as_me:$LINENO: checking for shl_load" >&5 Chris@4: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_shl_load+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define shl_load to an innocuous variant, in case declares shl_load. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define shl_load innocuous_shl_load Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char shl_load (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef shl_load Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char shl_load (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_shl_load || defined __stub___shl_load Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return shl_load (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_shl_load=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_shl_load=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } Chris@4: if test $ac_cv_func_shl_load = yes; then Chris@4: lt_cv_dlopen="shl_load" Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 Chris@4: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_dld_shl_load+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-ldld $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char shl_load (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return shl_load (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_dld_shl_load=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_dld_shl_load=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } Chris@4: if test $ac_cv_lib_dld_shl_load = yes; then Chris@4: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for dlopen" >&5 Chris@4: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_dlopen+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define dlopen to an innocuous variant, in case declares dlopen. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define dlopen innocuous_dlopen Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char dlopen (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef dlopen Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char dlopen (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_dlopen || defined __stub___dlopen Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return dlopen (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_dlopen=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_dlopen=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } Chris@4: if test $ac_cv_func_dlopen = yes; then Chris@4: lt_cv_dlopen="dlopen" Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 Chris@4: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_dl_dlopen+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-ldl $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char dlopen (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return dlopen (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_dl_dlopen=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_dl_dlopen=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } Chris@4: if test $ac_cv_lib_dl_dlopen = yes; then Chris@4: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 Chris@4: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_svld_dlopen+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-lsvld $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char dlopen (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return dlopen (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_svld_dlopen=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_svld_dlopen=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } Chris@4: if test $ac_cv_lib_svld_dlopen = yes; then Chris@4: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 Chris@4: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_dld_dld_link+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-ldld $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char dld_link (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return dld_link (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_dld_dld_link=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_dld_dld_link=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } Chris@4: if test $ac_cv_lib_dld_dld_link = yes; then Chris@4: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: ;; Chris@4: esac Chris@4: Chris@4: if test "x$lt_cv_dlopen" != xno; then Chris@4: enable_dlopen=yes Chris@4: else Chris@4: enable_dlopen=no Chris@4: fi Chris@4: Chris@4: case $lt_cv_dlopen in Chris@4: dlopen) Chris@4: save_CPPFLAGS="$CPPFLAGS" Chris@4: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" Chris@4: Chris@4: save_LDFLAGS="$LDFLAGS" Chris@4: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" Chris@4: Chris@4: save_LIBS="$LIBS" Chris@4: LIBS="$lt_cv_dlopen_libs $LIBS" Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 Chris@4: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_dlopen_self+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test "$cross_compiling" = yes; then : Chris@4: lt_cv_dlopen_self=cross Chris@4: else Chris@4: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 Chris@4: lt_status=$lt_dlunknown Chris@4: cat > conftest.$ac_ext <<_LT_EOF Chris@4: #line 10502 "configure" Chris@4: #include "confdefs.h" Chris@4: Chris@4: #if HAVE_DLFCN_H Chris@4: #include Chris@4: #endif Chris@4: Chris@4: #include Chris@4: Chris@4: #ifdef RTLD_GLOBAL Chris@4: # define LT_DLGLOBAL RTLD_GLOBAL Chris@4: #else Chris@4: # ifdef DL_GLOBAL Chris@4: # define LT_DLGLOBAL DL_GLOBAL Chris@4: # else Chris@4: # define LT_DLGLOBAL 0 Chris@4: # endif Chris@4: #endif Chris@4: Chris@4: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we Chris@4: find out it does not work in some platform. */ Chris@4: #ifndef LT_DLLAZY_OR_NOW Chris@4: # ifdef RTLD_LAZY Chris@4: # define LT_DLLAZY_OR_NOW RTLD_LAZY Chris@4: # else Chris@4: # ifdef DL_LAZY Chris@4: # define LT_DLLAZY_OR_NOW DL_LAZY Chris@4: # else Chris@4: # ifdef RTLD_NOW Chris@4: # define LT_DLLAZY_OR_NOW RTLD_NOW Chris@4: # else Chris@4: # ifdef DL_NOW Chris@4: # define LT_DLLAZY_OR_NOW DL_NOW Chris@4: # else Chris@4: # define LT_DLLAZY_OR_NOW 0 Chris@4: # endif Chris@4: # endif Chris@4: # endif Chris@4: # endif Chris@4: #endif Chris@4: Chris@4: #ifdef __cplusplus Chris@4: extern "C" void exit (int); Chris@4: #endif Chris@4: Chris@4: void fnord() { int i=42;} Chris@4: int main () Chris@4: { Chris@4: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); Chris@4: int status = $lt_dlunknown; Chris@4: Chris@4: if (self) Chris@4: { Chris@4: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; Chris@4: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; Chris@4: /* dlclose (self); */ Chris@4: } Chris@4: else Chris@4: puts (dlerror ()); Chris@4: Chris@4: exit (status); Chris@4: } Chris@4: _LT_EOF Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 Chris@4: (eval $ac_link) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then Chris@4: (./conftest; exit; ) >&5 2>/dev/null Chris@4: lt_status=$? Chris@4: case x$lt_status in Chris@4: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; Chris@4: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; Chris@4: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; Chris@4: esac Chris@4: else : Chris@4: # compilation failed Chris@4: lt_cv_dlopen_self=no Chris@4: fi Chris@4: fi Chris@4: rm -fr conftest* Chris@4: Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 Chris@4: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } Chris@4: Chris@4: if test "x$lt_cv_dlopen_self" = xyes; then Chris@4: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" Chris@4: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 Chris@4: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } Chris@4: if test "${lt_cv_dlopen_self_static+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test "$cross_compiling" = yes; then : Chris@4: lt_cv_dlopen_self_static=cross Chris@4: else Chris@4: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 Chris@4: lt_status=$lt_dlunknown Chris@4: cat > conftest.$ac_ext <<_LT_EOF Chris@4: #line 10602 "configure" Chris@4: #include "confdefs.h" Chris@4: Chris@4: #if HAVE_DLFCN_H Chris@4: #include Chris@4: #endif Chris@4: Chris@4: #include Chris@4: Chris@4: #ifdef RTLD_GLOBAL Chris@4: # define LT_DLGLOBAL RTLD_GLOBAL Chris@4: #else Chris@4: # ifdef DL_GLOBAL Chris@4: # define LT_DLGLOBAL DL_GLOBAL Chris@4: # else Chris@4: # define LT_DLGLOBAL 0 Chris@4: # endif Chris@4: #endif Chris@4: Chris@4: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we Chris@4: find out it does not work in some platform. */ Chris@4: #ifndef LT_DLLAZY_OR_NOW Chris@4: # ifdef RTLD_LAZY Chris@4: # define LT_DLLAZY_OR_NOW RTLD_LAZY Chris@4: # else Chris@4: # ifdef DL_LAZY Chris@4: # define LT_DLLAZY_OR_NOW DL_LAZY Chris@4: # else Chris@4: # ifdef RTLD_NOW Chris@4: # define LT_DLLAZY_OR_NOW RTLD_NOW Chris@4: # else Chris@4: # ifdef DL_NOW Chris@4: # define LT_DLLAZY_OR_NOW DL_NOW Chris@4: # else Chris@4: # define LT_DLLAZY_OR_NOW 0 Chris@4: # endif Chris@4: # endif Chris@4: # endif Chris@4: # endif Chris@4: #endif Chris@4: Chris@4: #ifdef __cplusplus Chris@4: extern "C" void exit (int); Chris@4: #endif Chris@4: Chris@4: void fnord() { int i=42;} Chris@4: int main () Chris@4: { Chris@4: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); Chris@4: int status = $lt_dlunknown; Chris@4: Chris@4: if (self) Chris@4: { Chris@4: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; Chris@4: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; Chris@4: /* dlclose (self); */ Chris@4: } Chris@4: else Chris@4: puts (dlerror ()); Chris@4: Chris@4: exit (status); Chris@4: } Chris@4: _LT_EOF Chris@4: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 Chris@4: (eval $ac_link) 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then Chris@4: (./conftest; exit; ) >&5 2>/dev/null Chris@4: lt_status=$? Chris@4: case x$lt_status in Chris@4: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; Chris@4: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; Chris@4: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; Chris@4: esac Chris@4: else : Chris@4: # compilation failed Chris@4: lt_cv_dlopen_self_static=no Chris@4: fi Chris@4: fi Chris@4: rm -fr conftest* Chris@4: Chris@4: Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 Chris@4: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } Chris@4: fi Chris@4: Chris@4: CPPFLAGS="$save_CPPFLAGS" Chris@4: LDFLAGS="$save_LDFLAGS" Chris@4: LIBS="$save_LIBS" Chris@4: ;; Chris@4: esac Chris@4: Chris@4: case $lt_cv_dlopen_self in Chris@4: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; Chris@4: *) enable_dlopen_self=unknown ;; Chris@4: esac Chris@4: Chris@4: case $lt_cv_dlopen_self_static in Chris@4: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; Chris@4: *) enable_dlopen_self_static=unknown ;; Chris@4: esac Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: striplib= Chris@4: old_striplib= Chris@4: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 Chris@4: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } Chris@4: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then Chris@4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" Chris@4: test -z "$striplib" && striplib="$STRIP --strip-unneeded" Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: else Chris@4: # FIXME - insert some real tests, host_os isn't really good enough Chris@4: case $host_os in Chris@4: darwin*) Chris@4: if test -n "$STRIP" ; then Chris@4: striplib="$STRIP -x" Chris@4: old_striplib="$STRIP -S" Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: ;; Chris@4: *) Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: ;; Chris@4: esac Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Report which library types will actually be built Chris@4: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 Chris@4: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } Chris@4: { echo "$as_me:$LINENO: result: $can_build_shared" >&5 Chris@4: echo "${ECHO_T}$can_build_shared" >&6; } Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 Chris@4: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } Chris@4: test "$can_build_shared" = "no" && enable_shared=no Chris@4: Chris@4: # On AIX, shared libraries and static libraries use the same namespace, and Chris@4: # are all built from PIC. Chris@4: case $host_os in Chris@4: aix3*) Chris@4: test "$enable_shared" = yes && enable_static=no Chris@4: if test -n "$RANLIB"; then Chris@4: archive_cmds="$archive_cmds~\$RANLIB \$lib" Chris@4: postinstall_cmds='$RANLIB $lib' Chris@4: fi Chris@4: ;; Chris@4: Chris@4: aix[4-9]*) Chris@4: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then Chris@4: test "$enable_shared" = yes && enable_static=no Chris@4: fi Chris@4: ;; Chris@4: esac Chris@4: { echo "$as_me:$LINENO: result: $enable_shared" >&5 Chris@4: echo "${ECHO_T}$enable_shared" >&6; } Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 Chris@4: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } Chris@4: # Make sure either enable_shared or enable_static is yes. Chris@4: test "$enable_shared" = yes || enable_static=yes Chris@4: { echo "$as_me:$LINENO: result: $enable_static" >&5 Chris@4: echo "${ECHO_T}$enable_static" >&6; } Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: fi Chris@4: ac_ext=c Chris@4: ac_cpp='$CPP $CPPFLAGS' Chris@4: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@4: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@4: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@4: Chris@4: CC="$lt_save_CC" Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: ac_config_commands="$ac_config_commands libtool" Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Only expand once: Chris@4: Chris@4: Chris@4: if test "x$CC" != xcc; then Chris@4: { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 Chris@4: echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 Chris@4: echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } Chris@4: fi Chris@4: set dummy $CC; ac_cc=`echo $2 | Chris@4: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` Chris@4: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: # Make sure it works both with $CC and with simple cc. Chris@4: # We do the test twice because some compilers refuse to overwrite an Chris@4: # existing .o file with -o, though they will create one. Chris@4: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' Chris@4: rm -f conftest2.* Chris@4: if { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && Chris@4: test -f conftest2.$ac_objext && { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; Chris@4: then Chris@4: eval ac_cv_prog_cc_${ac_cc}_c_o=yes Chris@4: if test "x$CC" != xcc; then Chris@4: # Test first that cc exists at all. Chris@4: if { ac_try='cc -c conftest.$ac_ext >&5' Chris@4: { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; }; then Chris@4: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' Chris@4: rm -f conftest2.* Chris@4: if { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && Chris@4: test -f conftest2.$ac_objext && { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; Chris@4: then Chris@4: # cc works too. Chris@4: : Chris@4: else Chris@4: # cc exists but doesn't like -o. Chris@4: eval ac_cv_prog_cc_${ac_cc}_c_o=no Chris@4: fi Chris@4: fi Chris@4: fi Chris@4: else Chris@4: eval ac_cv_prog_cc_${ac_cc}_c_o=no Chris@4: fi Chris@4: rm -f core conftest* Chris@4: Chris@4: fi Chris@4: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define NO_MINUS_C_MINUS_O 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: # FIXME: we rely on the cache variable name because Chris@4: # there is no other way. Chris@4: set dummy $CC Chris@4: ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` Chris@4: if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then Chris@4: # Losing compiler, so override with the script. Chris@4: # FIXME: It is wrong to rewrite CC. Chris@4: # But if we don't then we get into trouble of one sort or another. Chris@4: # A longer-term fix would be to have automake use am__CC in this case, Chris@4: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" Chris@4: CC="$am_aux_dir/compile $CC" Chris@4: fi Chris@4: Chris@4: Chris@4: # Extract the first word of "doxygen", so it can be a program name with args. Chris@4: set dummy doxygen; ac_word=$2 Chris@4: { echo "$as_me:$LINENO: checking for $ac_word" >&5 Chris@4: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_prog_DOXYGEN+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: if test -n "$DOXYGEN"; then Chris@4: ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. Chris@4: else Chris@4: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: for ac_exec_ext in '' $ac_executable_extensions; do Chris@4: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@4: ac_cv_prog_DOXYGEN="doc" Chris@4: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@4: break 2 Chris@4: fi Chris@4: done Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: fi Chris@4: fi Chris@4: DOXYGEN=$ac_cv_prog_DOXYGEN Chris@4: if test -n "$DOXYGEN"; then Chris@4: { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 Chris@4: echo "${ECHO_T}$DOXYGEN" >&6; } Chris@4: else Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # Checks for libraries. Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 Chris@4: echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-lpthread $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char pthread_create (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return pthread_create (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_pthread_pthread_create=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_pthread_pthread_create=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } Chris@4: if test $ac_cv_lib_pthread_pthread_create = yes; then Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define HAVE_LIBPTHREAD 1 Chris@4: _ACEOF Chris@4: Chris@4: LIBS="-lpthread $LIBS" Chris@4: Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for library containing recvfrom" >&5 Chris@4: echo $ECHO_N "checking for library containing recvfrom... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_search_recvfrom+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_func_search_save_LIBS=$LIBS Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char recvfrom (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return recvfrom (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: for ac_lib in '' socket; do Chris@4: if test -z "$ac_lib"; then Chris@4: ac_res="none required" Chris@4: else Chris@4: ac_res=-l$ac_lib Chris@4: LIBS="-l$ac_lib $ac_func_search_save_LIBS" Chris@4: fi Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_search_recvfrom=$ac_res Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext Chris@4: if test "${ac_cv_search_recvfrom+set}" = set; then Chris@4: break Chris@4: fi Chris@4: done Chris@4: if test "${ac_cv_search_recvfrom+set}" = set; then Chris@4: : Chris@4: else Chris@4: ac_cv_search_recvfrom=no Chris@4: fi Chris@4: rm conftest.$ac_ext Chris@4: LIBS=$ac_func_search_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_search_recvfrom" >&5 Chris@4: echo "${ECHO_T}$ac_cv_search_recvfrom" >&6; } Chris@4: ac_res=$ac_cv_search_recvfrom Chris@4: if test "$ac_res" != no; then Chris@4: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" Chris@4: Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for log" >&5 Chris@4: echo $ECHO_N "checking for log... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_log+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define log to an innocuous variant, in case declares log. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define log innocuous_log Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char log (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef log Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char log (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_log || defined __stub___log Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return log (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_log=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_log=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_log" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_log" >&6; } Chris@4: if test $ac_cv_func_log = yes; then Chris@4: : Chris@4: else Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for log in -lm" >&5 Chris@4: echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_lib_m_log+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: ac_check_lib_save_LIBS=$LIBS Chris@4: LIBS="-lm $LIBS" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char log (); Chris@4: int Chris@4: main () Chris@4: { Chris@4: return log (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_lib_m_log=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_lib_m_log=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: LIBS=$ac_check_lib_save_LIBS Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 Chris@4: echo "${ECHO_T}$ac_cv_lib_m_log" >&6; } Chris@4: if test $ac_cv_lib_m_log = yes; then Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define HAVE_LIBM 1 Chris@4: _ACEOF Chris@4: Chris@4: LIBS="-lm $LIBS" Chris@4: Chris@4: fi Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: # Checks for header files. Chris@4: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 Chris@4: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_header_stdc+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: #include Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_header_stdc=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: Chris@4: _ACEOF Chris@4: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@4: $EGREP "memchr" >/dev/null 2>&1; then Chris@4: : Chris@4: else Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f conftest* Chris@4: Chris@4: fi Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: Chris@4: _ACEOF Chris@4: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@4: $EGREP "free" >/dev/null 2>&1; then Chris@4: : Chris@4: else Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f conftest* Chris@4: Chris@4: fi Chris@4: Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. Chris@4: if test "$cross_compiling" = yes; then Chris@4: : Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: #if ((' ' & 0x0FF) == 0x020) Chris@4: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') Chris@4: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) Chris@4: #else Chris@4: # define ISLOWER(c) \ Chris@4: (('a' <= (c) && (c) <= 'i') \ Chris@4: || ('j' <= (c) && (c) <= 'r') \ Chris@4: || ('s' <= (c) && (c) <= 'z')) Chris@4: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) Chris@4: #endif Chris@4: Chris@4: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) Chris@4: int Chris@4: main () Chris@4: { Chris@4: int i; Chris@4: for (i = 0; i < 256; i++) Chris@4: if (XOR (islower (i), ISLOWER (i)) Chris@4: || toupper (i) != TOUPPER (i)) Chris@4: return 2; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' Chris@4: { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; }; then Chris@4: : Chris@4: else Chris@4: echo "$as_me: program exited with status $ac_status" >&5 Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ( exit $ac_status ) Chris@4: ac_cv_header_stdc=no Chris@4: fi Chris@4: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 Chris@4: echo "${ECHO_T}$ac_cv_header_stdc" >&6; } Chris@4: if test $ac_cv_header_stdc = yes; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define STDC_HEADERS 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h Chris@4: do Chris@4: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` Chris@4: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: { echo "$as_me:$LINENO: checking for $ac_header" >&5 Chris@4: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } Chris@4: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: fi Chris@4: ac_res=`eval echo '${'$as_ac_Header'}'` Chris@4: { echo "$as_me:$LINENO: result: $ac_res" >&5 Chris@4: echo "${ECHO_T}$ac_res" >&6; } Chris@4: else Chris@4: # Is the header compilable? Chris@4: { echo "$as_me:$LINENO: checking $ac_header usability" >&5 Chris@4: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: $ac_includes_default Chris@4: #include <$ac_header> Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_header_compiler=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_header_compiler=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 Chris@4: echo "${ECHO_T}$ac_header_compiler" >&6; } Chris@4: Chris@4: # Is the header present? Chris@4: { echo "$as_me:$LINENO: checking $ac_header presence" >&5 Chris@4: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include <$ac_header> Chris@4: _ACEOF Chris@4: if { (ac_try="$ac_cpp conftest.$ac_ext" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } >/dev/null && { Chris@4: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: }; then Chris@4: ac_header_preproc=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_header_preproc=no Chris@4: fi Chris@4: Chris@4: rm -f conftest.err conftest.$ac_ext Chris@4: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 Chris@4: echo "${ECHO_T}$ac_header_preproc" >&6; } Chris@4: Chris@4: # So? What about this header? Chris@4: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in Chris@4: yes:no: ) Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} Chris@4: ac_header_preproc=yes Chris@4: ;; Chris@4: no:yes:* ) Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 Chris@4: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} Chris@4: ( cat <<\_ASBOX Chris@4: ## ------------------------------------------------ ## Chris@4: ## Report this to liblo-devel@lists.sourceforge.net ## Chris@4: ## ------------------------------------------------ ## Chris@4: _ASBOX Chris@4: ) | sed "s/^/$as_me: WARNING: /" >&2 Chris@4: ;; Chris@4: esac Chris@4: { echo "$as_me:$LINENO: checking for $ac_header" >&5 Chris@4: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } Chris@4: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: eval "$as_ac_Header=\$ac_header_preproc" Chris@4: fi Chris@4: ac_res=`eval echo '${'$as_ac_Header'}'` Chris@4: { echo "$as_me:$LINENO: result: $ac_res" >&5 Chris@4: echo "${ECHO_T}$ac_res" >&6; } Chris@4: Chris@4: fi Chris@4: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: done Chris@4: Chris@4: Chris@4: # Checks for typedefs, structures, and compiler characteristics. Chris@4: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 Chris@4: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_c_const+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: /* FIXME: Include the comments suggested by Paul. */ Chris@4: #ifndef __cplusplus Chris@4: /* Ultrix mips cc rejects this. */ Chris@4: typedef int charset[2]; Chris@4: const charset cs; Chris@4: /* SunOS 4.1.1 cc rejects this. */ Chris@4: char const *const *pcpcc; Chris@4: char **ppc; Chris@4: /* NEC SVR4.0.2 mips cc rejects this. */ Chris@4: struct point {int x, y;}; Chris@4: static struct point const zero = {0,0}; Chris@4: /* AIX XL C 1.02.0.0 rejects this. Chris@4: It does not let you subtract one const X* pointer from another in Chris@4: an arm of an if-expression whose if-part is not a constant Chris@4: expression */ Chris@4: const char *g = "string"; Chris@4: pcpcc = &g + (g ? g-g : 0); Chris@4: /* HPUX 7.0 cc rejects these. */ Chris@4: ++pcpcc; Chris@4: ppc = (char**) pcpcc; Chris@4: pcpcc = (char const *const *) ppc; Chris@4: { /* SCO 3.2v4 cc rejects this. */ Chris@4: char *t; Chris@4: char const *s = 0 ? (char *) 0 : (char const *) 0; Chris@4: Chris@4: *t++ = 0; Chris@4: if (s) return 0; Chris@4: } Chris@4: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ Chris@4: int x[] = {25, 17}; Chris@4: const int *foo = &x[0]; Chris@4: ++foo; Chris@4: } Chris@4: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ Chris@4: typedef const int *iptr; Chris@4: iptr p = 0; Chris@4: ++p; Chris@4: } Chris@4: { /* AIX XL C 1.02.0.0 rejects this saying Chris@4: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ Chris@4: struct s { int j; const int *ap[3]; }; Chris@4: struct s *b; b->j = 5; Chris@4: } Chris@4: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ Chris@4: const int foo = 10; Chris@4: if (!foo) return 0; Chris@4: } Chris@4: return !cs[0] && !zero.x; Chris@4: #endif Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_c_const=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_c_const=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 Chris@4: echo "${ECHO_T}$ac_cv_c_const" >&6; } Chris@4: if test $ac_cv_c_const = no; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define const Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for size_t" >&5 Chris@4: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_type_size_t+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: $ac_includes_default Chris@4: typedef size_t ac__type_new_; Chris@4: int Chris@4: main () Chris@4: { Chris@4: if ((ac__type_new_ *) 0) Chris@4: return 0; Chris@4: if (sizeof (ac__type_new_)) Chris@4: return 0; Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_type_size_t=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_type_size_t=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 Chris@4: echo "${ECHO_T}$ac_cv_type_size_t" >&6; } Chris@4: if test $ac_cv_type_size_t = yes; then Chris@4: : Chris@4: else Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define size_t unsigned int Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: # Check for features Chris@4: { echo "$as_me:$LINENO: checking for select" >&5 Chris@4: echo $ECHO_N "checking for select... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_select+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define select to an innocuous variant, in case declares select. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define select innocuous_select Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char select (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef select Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char select (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_select || defined __stub___select Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return select (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_select=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_select=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_select" >&6; } Chris@4: if test $ac_cv_func_select = yes; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define HAVE_SELECT 1 Chris@4: _ACEOF Chris@4: Chris@4: else Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for select in ws2_32" >&5 Chris@4: echo $ECHO_N "checking for select in ws2_32... $ECHO_C" >&6; } Chris@4: LIBS="$LIBS -lws2_32" Chris@4: # some winsock2 functions require XP, so WINNT=0x501 Chris@4: CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501" Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: int Chris@4: main () Chris@4: { Chris@4: select(0,0,0,0,0) Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: { echo "$as_me:$LINENO: result: yes" >&5 Chris@4: echo "${ECHO_T}yes" >&6; } Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define HAVE_SELECT 1 Chris@4: _ACEOF Chris@4: Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: { echo "$as_me:$LINENO: result: no" >&5 Chris@4: echo "${ECHO_T}no" >&6; } Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for poll" >&5 Chris@4: echo $ECHO_N "checking for poll... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_poll+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define poll to an innocuous variant, in case declares poll. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define poll innocuous_poll Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char poll (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef poll Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char poll (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_poll || defined __stub___poll Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return poll (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_poll=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_poll=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_poll" >&6; } Chris@4: if test $ac_cv_func_poll = yes; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define HAVE_POLL 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: { echo "$as_me:$LINENO: checking for inet_aton" >&5 Chris@4: echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_func_inet_aton+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: /* Define inet_aton to an innocuous variant, in case declares inet_aton. Chris@4: For example, HP-UX 11i declares gettimeofday. */ Chris@4: #define inet_aton innocuous_inet_aton Chris@4: Chris@4: /* System header to define __stub macros and hopefully few prototypes, Chris@4: which can conflict with char inet_aton (); below. Chris@4: Prefer to if __STDC__ is defined, since Chris@4: exists even on freestanding compilers. */ Chris@4: Chris@4: #ifdef __STDC__ Chris@4: # include Chris@4: #else Chris@4: # include Chris@4: #endif Chris@4: Chris@4: #undef inet_aton Chris@4: Chris@4: /* Override any GCC internal prototype to avoid an error. Chris@4: Use char because int might match the return type of a GCC Chris@4: builtin and then its argument prototype would still apply. */ Chris@4: #ifdef __cplusplus Chris@4: extern "C" Chris@4: #endif Chris@4: char inet_aton (); Chris@4: /* The GNU C library defines this for functions which it implements Chris@4: to always fail with ENOSYS. Some functions are actually named Chris@4: something starting with __ and the normal name is an alias. */ Chris@4: #if defined __stub_inet_aton || defined __stub___inet_aton Chris@4: choke me Chris@4: #endif Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: return inet_aton (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest$ac_exeext && Chris@4: $as_test_x conftest$ac_exeext; then Chris@4: ac_cv_func_inet_aton=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_func_inet_aton=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ Chris@4: conftest$ac_exeext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 Chris@4: echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; } Chris@4: if test $ac_cv_func_inet_aton = yes; then Chris@4: Chris@4: cat >>confdefs.h <<\_ACEOF Chris@4: #define HAVE_INET_ATON 1 Chris@4: _ACEOF Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 Chris@4: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } Chris@4: if test "${ac_cv_c_bigendian+set}" = set; then Chris@4: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@4: else Chris@4: # See if sys/param.h defines the BYTE_ORDER macro. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ Chris@4: && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) Chris@4: bogus endian macros Chris@4: #endif Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: # It does; now see whether it defined to BIG_ENDIAN or not. Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: #include Chris@4: #include Chris@4: Chris@4: int Chris@4: main () Chris@4: { Chris@4: #if BYTE_ORDER != BIG_ENDIAN Chris@4: not big endian Chris@4: #endif Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: ac_cv_c_bigendian=yes Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ac_cv_c_bigendian=no Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: # It does not; compile a test program. Chris@4: if test "$cross_compiling" = yes; then Chris@4: # try to guess the endianness by grepping values into an object file Chris@4: ac_cv_c_bigendian=unknown Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; Chris@4: short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; Chris@4: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } Chris@4: short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; Chris@4: short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; Chris@4: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } Chris@4: int Chris@4: main () Chris@4: { Chris@4: _ascii (); _ebcdic (); Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest.$ac_objext Chris@4: if { (ac_try="$ac_compile" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_compile") 2>conftest.er1 Chris@4: ac_status=$? Chris@4: grep -v '^ *+' conftest.er1 >conftest.err Chris@4: rm -f conftest.er1 Chris@4: cat conftest.err >&5 Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { Chris@4: test -z "$ac_c_werror_flag" || Chris@4: test ! -s conftest.err Chris@4: } && test -s conftest.$ac_objext; then Chris@4: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then Chris@4: ac_cv_c_bigendian=yes Chris@4: fi Chris@4: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then Chris@4: if test "$ac_cv_c_bigendian" = unknown; then Chris@4: ac_cv_c_bigendian=no Chris@4: else Chris@4: # finding both strings is unlikely to happen, but who knows? Chris@4: ac_cv_c_bigendian=unknown Chris@4: fi Chris@4: fi Chris@4: else Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: else Chris@4: cat >conftest.$ac_ext <<_ACEOF Chris@4: /* confdefs.h. */ Chris@4: _ACEOF Chris@4: cat confdefs.h >>conftest.$ac_ext Chris@4: cat >>conftest.$ac_ext <<_ACEOF Chris@4: /* end confdefs.h. */ Chris@4: $ac_includes_default Chris@4: int Chris@4: main () Chris@4: { Chris@4: Chris@4: /* Are we little or big endian? From Harbison&Steele. */ Chris@4: union Chris@4: { Chris@4: long int l; Chris@4: char c[sizeof (long int)]; Chris@4: } u; Chris@4: u.l = 1; Chris@4: return u.c[sizeof (long int) - 1] == 1; Chris@4: Chris@4: ; Chris@4: return 0; Chris@4: } Chris@4: _ACEOF Chris@4: rm -f conftest$ac_exeext Chris@4: if { (ac_try="$ac_link" Chris@4: case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_link") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' Chris@4: { (case "(($ac_try" in Chris@4: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@4: *) ac_try_echo=$ac_try;; Chris@4: esac Chris@4: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@4: (eval "$ac_try") 2>&5 Chris@4: ac_status=$? Chris@4: echo "$as_me:$LINENO: \$? = $ac_status" >&5 Chris@4: (exit $ac_status); }; }; then Chris@4: ac_cv_c_bigendian=no Chris@4: else Chris@4: echo "$as_me: program exited with status $ac_status" >&5 Chris@4: echo "$as_me: failed program was:" >&5 Chris@4: sed 's/^/| /' conftest.$ac_ext >&5 Chris@4: Chris@4: ( exit $ac_status ) Chris@4: ac_cv_c_bigendian=yes Chris@4: fi Chris@4: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: Chris@4: Chris@4: fi Chris@4: Chris@4: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@4: fi Chris@4: { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 Chris@4: echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } Chris@4: case $ac_cv_c_bigendian in Chris@4: yes) Chris@4: LO_BIGENDIAN="1" ;; Chris@4: no) Chris@4: LO_BIGENDIAN="0" ;; Chris@4: *) Chris@4: { { echo "$as_me:$LINENO: error: unknown endianness Chris@4: presetting ac_cv_c_bigendian=no (or yes) will help" >&5 Chris@4: echo "$as_me: error: unknown endianness Chris@4: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} Chris@4: { (exit 1); exit 1; }; } ;; Chris@4: esac Chris@4: Chris@4: Chris@4: cat >>confdefs.h <<_ACEOF Chris@4: #define LO_BIGENDIAN "$LO_BIGENDIAN" Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: Chris@4: ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile examples/Makefile lo/Makefile lo/lo_endian.h liblo.pc doc/Makefile doc/reference.doxygen build/Makefile" Chris@4: Chris@4: cat >confcache <<\_ACEOF Chris@4: # This file is a shell script that caches the results of configure Chris@4: # tests run on this system so they can be shared between configure Chris@4: # scripts and configure runs, see configure's option --config-cache. Chris@4: # It is not useful on other systems. If it contains results you don't Chris@4: # want to keep, you may remove or edit it. Chris@4: # Chris@4: # config.status only pays attention to the cache file if you give it Chris@4: # the --recheck option to rerun configure. Chris@4: # Chris@4: # `ac_cv_env_foo' variables (set or unset) will be overridden when Chris@4: # loading this file, other *unset* `ac_cv_foo' will be assigned the Chris@4: # following values. Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: # The following way of writing the cache mishandles newlines in values, Chris@4: # but we know of no workaround that is simple, portable, and efficient. Chris@4: # So, we kill variables containing newlines. Chris@4: # Ultrix sh set writes to stderr and can't be redirected directly, Chris@4: # and sets the high bit in the cache file unless we assign to the vars. Chris@4: ( Chris@4: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do Chris@4: eval ac_val=\$$ac_var Chris@4: case $ac_val in #( Chris@4: *${as_nl}*) Chris@4: case $ac_var in #( Chris@4: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 Chris@4: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; Chris@4: esac Chris@4: case $ac_var in #( Chris@4: _ | IFS | as_nl) ;; #( Chris@4: *) $as_unset $ac_var ;; Chris@4: esac ;; Chris@4: esac Chris@4: done Chris@4: Chris@4: (set) 2>&1 | Chris@4: case $as_nl`(ac_space=' '; set) 2>&1` in #( Chris@4: *${as_nl}ac_space=\ *) Chris@4: # `set' does not quote correctly, so add quotes (double-quote Chris@4: # substitution turns \\\\ into \\, and sed turns \\ into \). Chris@4: sed -n \ Chris@4: "s/'/'\\\\''/g; Chris@4: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" Chris@4: ;; #( Chris@4: *) Chris@4: # `set' quotes correctly as required by POSIX, so do not add quotes. Chris@4: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@4: ;; Chris@4: esac | Chris@4: sort Chris@4: ) | Chris@4: sed ' Chris@4: /^ac_cv_env_/b end Chris@4: t clear Chris@4: :clear Chris@4: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ Chris@4: t end Chris@4: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ Chris@4: :end' >>confcache Chris@4: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else Chris@4: if test -w "$cache_file"; then Chris@4: test "x$cache_file" != "x/dev/null" && Chris@4: { echo "$as_me:$LINENO: updating cache $cache_file" >&5 Chris@4: echo "$as_me: updating cache $cache_file" >&6;} Chris@4: cat confcache >$cache_file Chris@4: else Chris@4: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 Chris@4: echo "$as_me: not updating unwritable cache $cache_file" >&6;} Chris@4: fi Chris@4: fi Chris@4: rm -f confcache Chris@4: Chris@4: test "x$prefix" = xNONE && prefix=$ac_default_prefix Chris@4: # Let make expand exec_prefix. Chris@4: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' Chris@4: Chris@4: DEFS=-DHAVE_CONFIG_H Chris@4: Chris@4: ac_libobjs= Chris@4: ac_ltlibobjs= Chris@4: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue Chris@4: # 1. Remove the extension, and $U if already installed. Chris@4: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' Chris@4: ac_i=`echo "$ac_i" | sed "$ac_script"` Chris@4: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR Chris@4: # will be set to the directory where LIBOBJS objects are built. Chris@4: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" Chris@4: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' Chris@4: done Chris@4: LIBOBJS=$ac_libobjs Chris@4: Chris@4: LTLIBOBJS=$ac_ltlibobjs Chris@4: Chris@4: Chris@4: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then Chris@4: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Chris@4: Usually this means the macro was only invoked conditionally." >&5 Chris@4: echo "$as_me: error: conditional \"AMDEP\" was never defined. Chris@4: Usually this means the macro was only invoked conditionally." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then Chris@4: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Chris@4: Usually this means the macro was only invoked conditionally." >&5 Chris@4: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Chris@4: Usually this means the macro was only invoked conditionally." >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: fi Chris@4: Chris@4: : ${CONFIG_STATUS=./config.status} Chris@4: ac_clean_files_save=$ac_clean_files Chris@4: ac_clean_files="$ac_clean_files $CONFIG_STATUS" Chris@4: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 Chris@4: echo "$as_me: creating $CONFIG_STATUS" >&6;} Chris@4: cat >$CONFIG_STATUS <<_ACEOF Chris@4: #! $SHELL Chris@4: # Generated by $as_me. Chris@4: # Run this file to recreate the current configuration. Chris@4: # Compiler output produced by configure, useful for debugging Chris@4: # configure, is in config.log if it exists. Chris@4: Chris@4: debug=false Chris@4: ac_cs_recheck=false Chris@4: ac_cs_silent=false Chris@4: SHELL=\${CONFIG_SHELL-$SHELL} Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: ## --------------------- ## Chris@4: ## M4sh Initialization. ## Chris@4: ## --------------------- ## Chris@4: Chris@4: # Be more Bourne compatible Chris@4: DUALCASE=1; export DUALCASE # for MKS sh Chris@4: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@4: emulate sh Chris@4: NULLCMD=: Chris@4: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@4: # is contrary to our usage. Disable this feature. Chris@4: alias -g '${1+"$@"}'='"$@"' Chris@4: setopt NO_GLOB_SUBST Chris@4: else Chris@4: case `(set -o) 2>/dev/null` in Chris@4: *posix*) set -o posix ;; Chris@4: esac Chris@4: Chris@4: fi Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: # PATH needs CR Chris@4: # Avoid depending upon Character Ranges. Chris@4: as_cr_letters='abcdefghijklmnopqrstuvwxyz' Chris@4: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' Chris@4: as_cr_Letters=$as_cr_letters$as_cr_LETTERS Chris@4: as_cr_digits='0123456789' Chris@4: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@4: Chris@4: # The user is always right. Chris@4: if test "${PATH_SEPARATOR+set}" != set; then Chris@4: echo "#! /bin/sh" >conf$$.sh Chris@4: echo "exit 0" >>conf$$.sh Chris@4: chmod +x conf$$.sh Chris@4: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then Chris@4: PATH_SEPARATOR=';' Chris@4: else Chris@4: PATH_SEPARATOR=: Chris@4: fi Chris@4: rm -f conf$$.sh Chris@4: fi Chris@4: Chris@4: # Support unset when possible. Chris@4: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then Chris@4: as_unset=unset Chris@4: else Chris@4: as_unset=false Chris@4: fi Chris@4: Chris@4: Chris@4: # IFS Chris@4: # We need space, tab and new line, in precisely that order. Quoting is Chris@4: # there to prevent editors from complaining about space-tab. Chris@4: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@4: # splitting by setting IFS to empty value.) Chris@4: as_nl=' Chris@4: ' Chris@4: IFS=" "" $as_nl" Chris@4: Chris@4: # Find who we are. Look in the path if we contain no directory separator. Chris@4: case $0 in Chris@4: *[\\/]* ) as_myself=$0 ;; Chris@4: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@4: for as_dir in $PATH Chris@4: do Chris@4: IFS=$as_save_IFS Chris@4: test -z "$as_dir" && as_dir=. Chris@4: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break Chris@4: done Chris@4: IFS=$as_save_IFS Chris@4: Chris@4: ;; Chris@4: esac Chris@4: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@4: # in which case we are not to be found in the path. Chris@4: if test "x$as_myself" = x; then Chris@4: as_myself=$0 Chris@4: fi Chris@4: if test ! -f "$as_myself"; then Chris@4: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 Chris@4: { (exit 1); exit 1; } Chris@4: fi Chris@4: Chris@4: # Work around bugs in pre-3.0 UWIN ksh. Chris@4: for as_var in ENV MAIL MAILPATH Chris@4: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@4: done Chris@4: PS1='$ ' Chris@4: PS2='> ' Chris@4: PS4='+ ' Chris@4: Chris@4: # NLS nuisances. Chris@4: for as_var in \ Chris@4: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ Chris@4: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ Chris@4: LC_TELEPHONE LC_TIME Chris@4: do Chris@4: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then Chris@4: eval $as_var=C; export $as_var Chris@4: else Chris@4: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@4: fi Chris@4: done Chris@4: Chris@4: # Required to use basename. Chris@4: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@4: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@4: as_expr=expr Chris@4: else Chris@4: as_expr=false Chris@4: fi Chris@4: Chris@4: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@4: as_basename=basename Chris@4: else Chris@4: as_basename=false Chris@4: fi Chris@4: Chris@4: Chris@4: # Name of the executable. Chris@4: as_me=`$as_basename -- "$0" || Chris@4: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@4: X"$0" : 'X\(//\)$' \| \ Chris@4: X"$0" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X/"$0" | Chris@4: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\/\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\/\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: Chris@4: # CDPATH. Chris@4: $as_unset CDPATH Chris@4: Chris@4: Chris@4: Chris@4: as_lineno_1=$LINENO Chris@4: as_lineno_2=$LINENO Chris@4: test "x$as_lineno_1" != "x$as_lineno_2" && Chris@4: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { Chris@4: Chris@4: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO Chris@4: # uniformly replaced by the line number. The first 'sed' inserts a Chris@4: # line-number line after each line using $LINENO; the second 'sed' Chris@4: # does the real work. The second script uses 'N' to pair each Chris@4: # line-number line with the line containing $LINENO, and appends Chris@4: # trailing '-' during substitution so that $LINENO is not a special Chris@4: # case at line end. Chris@4: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the Chris@4: # scripts with optimization help from Paolo Bonzini. Blame Lee Chris@4: # E. McMahon (1931-1989) for sed's syntax. :-) Chris@4: sed -n ' Chris@4: p Chris@4: /[$]LINENO/= Chris@4: ' <$as_myself | Chris@4: sed ' Chris@4: s/[$]LINENO.*/&-/ Chris@4: t lineno Chris@4: b Chris@4: :lineno Chris@4: N Chris@4: :loop Chris@4: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ Chris@4: t loop Chris@4: s/-\n.*// Chris@4: ' >$as_me.lineno && Chris@4: chmod +x "$as_me.lineno" || Chris@4: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 Chris@4: { (exit 1); exit 1; }; } Chris@4: Chris@4: # Don't try to exec as it changes $[0], causing all sort of problems Chris@4: # (the dirname of $[0] is not the place where we might find the Chris@4: # original and so on. Autoconf is especially sensitive to this). Chris@4: . "./$as_me.lineno" Chris@4: # Exit status is that of the last command. Chris@4: exit Chris@4: } Chris@4: Chris@4: Chris@4: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then Chris@4: as_dirname=dirname Chris@4: else Chris@4: as_dirname=false Chris@4: fi Chris@4: Chris@4: ECHO_C= ECHO_N= ECHO_T= Chris@4: case `echo -n x` in Chris@4: -n*) Chris@4: case `echo 'x\c'` in Chris@4: *c*) ECHO_T=' ';; # ECHO_T is single tab character. Chris@4: *) ECHO_C='\c';; Chris@4: esac;; Chris@4: *) Chris@4: ECHO_N='-n';; Chris@4: esac Chris@4: Chris@4: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@4: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@4: as_expr=expr Chris@4: else Chris@4: as_expr=false Chris@4: fi Chris@4: Chris@4: rm -f conf$$ conf$$.exe conf$$.file Chris@4: if test -d conf$$.dir; then Chris@4: rm -f conf$$.dir/conf$$.file Chris@4: else Chris@4: rm -f conf$$.dir Chris@4: mkdir conf$$.dir Chris@4: fi Chris@4: echo >conf$$.file Chris@4: if ln -s conf$$.file conf$$ 2>/dev/null; then Chris@4: as_ln_s='ln -s' Chris@4: # ... but there are two gotchas: Chris@4: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. Chris@4: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. Chris@4: # In both cases, we have to default to `cp -p'. Chris@4: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@4: as_ln_s='cp -p' Chris@4: elif ln conf$$.file conf$$ 2>/dev/null; then Chris@4: as_ln_s=ln Chris@4: else Chris@4: as_ln_s='cp -p' Chris@4: fi Chris@4: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@4: rmdir conf$$.dir 2>/dev/null Chris@4: Chris@4: if mkdir -p . 2>/dev/null; then Chris@4: as_mkdir_p=: Chris@4: else Chris@4: test -d ./-p && rmdir ./-p Chris@4: as_mkdir_p=false Chris@4: fi Chris@4: Chris@4: if test -x / >/dev/null 2>&1; then Chris@4: as_test_x='test -x' Chris@4: else Chris@4: if ls -dL / >/dev/null 2>&1; then Chris@4: as_ls_L_option=L Chris@4: else Chris@4: as_ls_L_option= Chris@4: fi Chris@4: as_test_x=' Chris@4: eval sh -c '\'' Chris@4: if test -d "$1"; then Chris@4: test -d "$1/."; Chris@4: else Chris@4: case $1 in Chris@4: -*)set "./$1";; Chris@4: esac; Chris@4: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in Chris@4: ???[sx]*):;;*)false;;esac;fi Chris@4: '\'' sh Chris@4: ' Chris@4: fi Chris@4: as_executable_p=$as_test_x Chris@4: Chris@4: # Sed expression to map a string onto a valid CPP name. Chris@4: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" Chris@4: Chris@4: # Sed expression to map a string onto a valid variable name. Chris@4: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" Chris@4: Chris@4: Chris@4: exec 6>&1 Chris@4: Chris@4: # Save the log message, to keep $[0] and so on meaningful, and to Chris@4: # report actual input values of CONFIG_FILES etc. instead of their Chris@4: # values after options handling. Chris@4: ac_log=" Chris@4: This file was extended by liblo $as_me 0.26, which was Chris@4: generated by GNU Autoconf 2.61. Invocation command line was Chris@4: Chris@4: CONFIG_FILES = $CONFIG_FILES Chris@4: CONFIG_HEADERS = $CONFIG_HEADERS Chris@4: CONFIG_LINKS = $CONFIG_LINKS Chris@4: CONFIG_COMMANDS = $CONFIG_COMMANDS Chris@4: $ $0 $@ Chris@4: Chris@4: on `(hostname || uname -n) 2>/dev/null | sed 1q` Chris@4: " Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: # Files that config.status was made for. Chris@4: config_files="$ac_config_files" Chris@4: config_headers="$ac_config_headers" Chris@4: config_commands="$ac_config_commands" Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: ac_cs_usage="\ Chris@4: \`$as_me' instantiates files from templates according to the Chris@4: current configuration. Chris@4: Chris@4: Usage: $0 [OPTIONS] [FILE]... Chris@4: Chris@4: -h, --help print this help, then exit Chris@4: -V, --version print version number and configuration settings, then exit Chris@4: -q, --quiet do not print progress messages Chris@4: -d, --debug don't remove temporary files Chris@4: --recheck update $as_me by reconfiguring in the same conditions Chris@4: --file=FILE[:TEMPLATE] Chris@4: instantiate the configuration file FILE Chris@4: --header=FILE[:TEMPLATE] Chris@4: instantiate the configuration header FILE Chris@4: Chris@4: Configuration files: Chris@4: $config_files Chris@4: Chris@4: Configuration headers: Chris@4: $config_headers Chris@4: Chris@4: Configuration commands: Chris@4: $config_commands Chris@4: Chris@4: Report bugs to ." Chris@4: Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: ac_cs_version="\\ Chris@4: liblo config.status 0.26 Chris@4: configured by $0, generated by GNU Autoconf 2.61, Chris@4: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Chris@4: Chris@4: Copyright (C) 2006 Free Software Foundation, Inc. Chris@4: This config.status script is free software; the Free Software Foundation Chris@4: gives unlimited permission to copy, distribute and modify it." Chris@4: Chris@4: ac_pwd='$ac_pwd' Chris@4: srcdir='$srcdir' Chris@4: INSTALL='$INSTALL' Chris@4: MKDIR_P='$MKDIR_P' Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: # If no file are specified by the user, then we need to provide default Chris@4: # value. By we need to know if files were specified by the user. Chris@4: ac_need_defaults=: Chris@4: while test $# != 0 Chris@4: do Chris@4: case $1 in Chris@4: --*=*) Chris@4: ac_option=`expr "X$1" : 'X\([^=]*\)='` Chris@4: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` Chris@4: ac_shift=: Chris@4: ;; Chris@4: *) Chris@4: ac_option=$1 Chris@4: ac_optarg=$2 Chris@4: ac_shift=shift Chris@4: ;; Chris@4: esac Chris@4: Chris@4: case $ac_option in Chris@4: # Handling of the options. Chris@4: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) Chris@4: ac_cs_recheck=: ;; Chris@4: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) Chris@4: echo "$ac_cs_version"; exit ;; Chris@4: --debug | --debu | --deb | --de | --d | -d ) Chris@4: debug=: ;; Chris@4: --file | --fil | --fi | --f ) Chris@4: $ac_shift Chris@4: CONFIG_FILES="$CONFIG_FILES $ac_optarg" Chris@4: ac_need_defaults=false;; Chris@4: --header | --heade | --head | --hea ) Chris@4: $ac_shift Chris@4: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" Chris@4: ac_need_defaults=false;; Chris@4: --he | --h) Chris@4: # Conflict between --help and --header Chris@4: { echo "$as_me: error: ambiguous option: $1 Chris@4: Try \`$0 --help' for more information." >&2 Chris@4: { (exit 1); exit 1; }; };; Chris@4: --help | --hel | -h ) Chris@4: echo "$ac_cs_usage"; exit ;; Chris@4: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@4: | -silent | --silent | --silen | --sile | --sil | --si | --s) Chris@4: ac_cs_silent=: ;; Chris@4: Chris@4: # This is an error. Chris@4: -*) { echo "$as_me: error: unrecognized option: $1 Chris@4: Try \`$0 --help' for more information." >&2 Chris@4: { (exit 1); exit 1; }; } ;; Chris@4: Chris@4: *) ac_config_targets="$ac_config_targets $1" Chris@4: ac_need_defaults=false ;; Chris@4: Chris@4: esac Chris@4: shift Chris@4: done Chris@4: Chris@4: ac_configure_extra_args= Chris@4: Chris@4: if $ac_cs_silent; then Chris@4: exec 6>/dev/null Chris@4: ac_configure_extra_args="$ac_configure_extra_args --silent" Chris@4: fi Chris@4: Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: if \$ac_cs_recheck; then Chris@4: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 Chris@4: CONFIG_SHELL=$SHELL Chris@4: export CONFIG_SHELL Chris@4: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion Chris@4: fi Chris@4: Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: exec 5>>config.log Chris@4: { Chris@4: echo Chris@4: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX Chris@4: ## Running $as_me. ## Chris@4: _ASBOX Chris@4: echo "$ac_log" Chris@4: } >&5 Chris@4: Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: # Chris@4: # INIT-COMMANDS Chris@4: # Chris@4: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" Chris@4: Chris@4: Chris@4: # The HP-UX ksh and POSIX shell print the target directory to stdout Chris@4: # if CDPATH is set. Chris@4: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH Chris@4: Chris@4: sed_quote_subst='$sed_quote_subst' Chris@4: double_quote_subst='$double_quote_subst' Chris@4: delay_variable_subst='$delay_variable_subst' Chris@4: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' Chris@4: Chris@4: LTCC='$LTCC' Chris@4: LTCFLAGS='$LTCFLAGS' Chris@4: compiler='$compiler_DEFAULT' Chris@4: Chris@4: # Quote evaled strings. Chris@4: for var in SED \ Chris@4: GREP \ Chris@4: EGREP \ Chris@4: FGREP \ Chris@4: LD \ Chris@4: NM \ Chris@4: LN_S \ Chris@4: lt_SP2NL \ Chris@4: lt_NL2SP \ Chris@4: reload_flag \ Chris@4: deplibs_check_method \ Chris@4: file_magic_cmd \ Chris@4: AR \ Chris@4: AR_FLAGS \ Chris@4: STRIP \ Chris@4: RANLIB \ Chris@4: CC \ Chris@4: CFLAGS \ Chris@4: compiler \ Chris@4: lt_cv_sys_global_symbol_pipe \ Chris@4: lt_cv_sys_global_symbol_to_cdecl \ Chris@4: lt_cv_sys_global_symbol_to_c_name_address \ Chris@4: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ Chris@4: SHELL \ Chris@4: ECHO \ Chris@4: lt_prog_compiler_no_builtin_flag \ Chris@4: lt_prog_compiler_wl \ Chris@4: lt_prog_compiler_pic \ Chris@4: lt_prog_compiler_static \ Chris@4: lt_cv_prog_compiler_c_o \ Chris@4: need_locks \ Chris@4: DSYMUTIL \ Chris@4: NMEDIT \ Chris@4: LIPO \ Chris@4: OTOOL \ Chris@4: OTOOL64 \ Chris@4: shrext_cmds \ Chris@4: export_dynamic_flag_spec \ Chris@4: whole_archive_flag_spec \ Chris@4: compiler_needs_object \ Chris@4: with_gnu_ld \ Chris@4: allow_undefined_flag \ Chris@4: no_undefined_flag \ Chris@4: hardcode_libdir_flag_spec \ Chris@4: hardcode_libdir_flag_spec_ld \ Chris@4: hardcode_libdir_separator \ Chris@4: fix_srcfile_path \ Chris@4: exclude_expsyms \ Chris@4: include_expsyms \ Chris@4: file_list_spec \ Chris@4: variables_saved_for_relink \ Chris@4: libname_spec \ Chris@4: library_names_spec \ Chris@4: soname_spec \ Chris@4: finish_eval \ Chris@4: old_striplib \ Chris@4: striplib; do Chris@4: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in Chris@4: *[\\\\\\\`\\"\\\$]*) Chris@4: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" Chris@4: ;; Chris@4: *) Chris@4: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" Chris@4: ;; Chris@4: esac Chris@4: done Chris@4: Chris@4: # Double-quote double-evaled strings. Chris@4: for var in reload_cmds \ Chris@4: old_postinstall_cmds \ Chris@4: old_postuninstall_cmds \ Chris@4: old_archive_cmds \ Chris@4: extract_expsyms_cmds \ Chris@4: old_archive_from_new_cmds \ Chris@4: old_archive_from_expsyms_cmds \ Chris@4: archive_cmds \ Chris@4: archive_expsym_cmds \ Chris@4: module_cmds \ Chris@4: module_expsym_cmds \ Chris@4: export_symbols_cmds \ Chris@4: prelink_cmds \ Chris@4: postinstall_cmds \ Chris@4: postuninstall_cmds \ Chris@4: finish_cmds \ Chris@4: sys_lib_search_path_spec \ Chris@4: sys_lib_dlsearch_path_spec; do Chris@4: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in Chris@4: *[\\\\\\\`\\"\\\$]*) Chris@4: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" Chris@4: ;; Chris@4: *) Chris@4: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" Chris@4: ;; Chris@4: esac Chris@4: done Chris@4: Chris@4: # Fix-up fallback echo if it was mangled by the above quoting rules. Chris@4: case \$lt_ECHO in Chris@4: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` Chris@4: ;; Chris@4: esac Chris@4: Chris@4: ac_aux_dir='$ac_aux_dir' Chris@4: xsi_shell='$xsi_shell' Chris@4: lt_shell_append='$lt_shell_append' Chris@4: Chris@4: # See if we are running on zsh, and set the options which allow our Chris@4: # commands through without removal of \ escapes INIT. Chris@4: if test -n "\${ZSH_VERSION+set}" ; then Chris@4: setopt NO_GLOB_SUBST Chris@4: fi Chris@4: Chris@4: Chris@4: PACKAGE='$PACKAGE' Chris@4: VERSION='$VERSION' Chris@4: TIMESTAMP='$TIMESTAMP' Chris@4: RM='$RM' Chris@4: ofile='$ofile' Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: Chris@4: # Handling of arguments. Chris@4: for ac_config_target in $ac_config_targets Chris@4: do Chris@4: case $ac_config_target in Chris@4: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; Chris@4: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; Chris@4: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; Chris@4: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; Chris@4: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; Chris@4: "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; Chris@4: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; Chris@4: "lo/Makefile") CONFIG_FILES="$CONFIG_FILES lo/Makefile" ;; Chris@4: "lo/lo_endian.h") CONFIG_FILES="$CONFIG_FILES lo/lo_endian.h" ;; Chris@4: "liblo.pc") CONFIG_FILES="$CONFIG_FILES liblo.pc" ;; Chris@4: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; Chris@4: "doc/reference.doxygen") CONFIG_FILES="$CONFIG_FILES doc/reference.doxygen" ;; Chris@4: "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; Chris@4: Chris@4: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 Chris@4: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} Chris@4: { (exit 1); exit 1; }; };; Chris@4: esac Chris@4: done Chris@4: Chris@4: Chris@4: # If the user did not use the arguments to specify the items to instantiate, Chris@4: # then the envvar interface is used. Set only those that are not. Chris@4: # We use the long form for the default assignment because of an extremely Chris@4: # bizarre bug on SunOS 4.1.3. Chris@4: if $ac_need_defaults; then Chris@4: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files Chris@4: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers Chris@4: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands Chris@4: fi Chris@4: Chris@4: # Have a temporary directory for convenience. Make it in the build tree Chris@4: # simply because there is no reason against having it here, and in addition, Chris@4: # creating and moving files from /tmp can sometimes cause problems. Chris@4: # Hook for its removal unless debugging. Chris@4: # Note that there is a small window in which the directory will not be cleaned: Chris@4: # after its creation but before its name has been assigned to `$tmp'. Chris@4: $debug || Chris@4: { Chris@4: tmp= Chris@4: trap 'exit_status=$? Chris@4: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status Chris@4: ' 0 Chris@4: trap '{ (exit 1); exit 1; }' 1 2 13 15 Chris@4: } Chris@4: # Create a (secure) tmp directory for tmp files. Chris@4: Chris@4: { Chris@4: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && Chris@4: test -n "$tmp" && test -d "$tmp" Chris@4: } || Chris@4: { Chris@4: tmp=./conf$$-$RANDOM Chris@4: (umask 077 && mkdir "$tmp") Chris@4: } || Chris@4: { Chris@4: echo "$me: cannot create a temporary directory in ." >&2 Chris@4: { (exit 1); exit 1; } Chris@4: } Chris@4: Chris@4: # Chris@4: # Set up the sed scripts for CONFIG_FILES section. Chris@4: # Chris@4: Chris@4: # No need to generate the scripts if there are no CONFIG_FILES. Chris@4: # This happens for instance when ./config.status config.h Chris@4: if test -n "$CONFIG_FILES"; then Chris@4: Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: Chris@4: ac_delim='%!_!# ' Chris@4: for ac_last_try in false false false false false :; do Chris@4: cat >conf$$subs.sed <<_ACEOF Chris@4: SHELL!$SHELL$ac_delim Chris@4: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim Chris@4: PACKAGE_NAME!$PACKAGE_NAME$ac_delim Chris@4: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim Chris@4: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim Chris@4: PACKAGE_STRING!$PACKAGE_STRING$ac_delim Chris@4: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim Chris@4: exec_prefix!$exec_prefix$ac_delim Chris@4: prefix!$prefix$ac_delim Chris@4: program_transform_name!$program_transform_name$ac_delim Chris@4: bindir!$bindir$ac_delim Chris@4: sbindir!$sbindir$ac_delim Chris@4: libexecdir!$libexecdir$ac_delim Chris@4: datarootdir!$datarootdir$ac_delim Chris@4: datadir!$datadir$ac_delim Chris@4: sysconfdir!$sysconfdir$ac_delim Chris@4: sharedstatedir!$sharedstatedir$ac_delim Chris@4: localstatedir!$localstatedir$ac_delim Chris@4: includedir!$includedir$ac_delim Chris@4: oldincludedir!$oldincludedir$ac_delim Chris@4: docdir!$docdir$ac_delim Chris@4: infodir!$infodir$ac_delim Chris@4: htmldir!$htmldir$ac_delim Chris@4: dvidir!$dvidir$ac_delim Chris@4: pdfdir!$pdfdir$ac_delim Chris@4: psdir!$psdir$ac_delim Chris@4: libdir!$libdir$ac_delim Chris@4: localedir!$localedir$ac_delim Chris@4: mandir!$mandir$ac_delim Chris@4: DEFS!$DEFS$ac_delim Chris@4: ECHO_C!$ECHO_C$ac_delim Chris@4: ECHO_N!$ECHO_N$ac_delim Chris@4: ECHO_T!$ECHO_T$ac_delim Chris@4: LIBS!$LIBS$ac_delim Chris@4: build_alias!$build_alias$ac_delim Chris@4: host_alias!$host_alias$ac_delim Chris@4: target_alias!$target_alias$ac_delim Chris@4: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim Chris@4: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim Chris@4: INSTALL_DATA!$INSTALL_DATA$ac_delim Chris@4: am__isrc!$am__isrc$ac_delim Chris@4: CYGPATH_W!$CYGPATH_W$ac_delim Chris@4: PACKAGE!$PACKAGE$ac_delim Chris@4: VERSION!$VERSION$ac_delim Chris@4: ACLOCAL!$ACLOCAL$ac_delim Chris@4: AUTOCONF!$AUTOCONF$ac_delim Chris@4: AUTOMAKE!$AUTOMAKE$ac_delim Chris@4: AUTOHEADER!$AUTOHEADER$ac_delim Chris@4: MAKEINFO!$MAKEINFO$ac_delim Chris@4: install_sh!$install_sh$ac_delim Chris@4: STRIP!$STRIP$ac_delim Chris@4: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim Chris@4: mkdir_p!$mkdir_p$ac_delim Chris@4: AWK!$AWK$ac_delim Chris@4: SET_MAKE!$SET_MAKE$ac_delim Chris@4: am__leading_dot!$am__leading_dot$ac_delim Chris@4: AMTAR!$AMTAR$ac_delim Chris@4: am__tar!$am__tar$ac_delim Chris@4: am__untar!$am__untar$ac_delim Chris@4: LO_SO_VERSION!$LO_SO_VERSION$ac_delim Chris@4: CC!$CC$ac_delim Chris@4: CFLAGS!$CFLAGS$ac_delim Chris@4: LDFLAGS!$LDFLAGS$ac_delim Chris@4: CPPFLAGS!$CPPFLAGS$ac_delim Chris@4: ac_ct_CC!$ac_ct_CC$ac_delim Chris@4: EXEEXT!$EXEEXT$ac_delim Chris@4: OBJEXT!$OBJEXT$ac_delim Chris@4: DEPDIR!$DEPDIR$ac_delim Chris@4: am__include!$am__include$ac_delim Chris@4: am__quote!$am__quote$ac_delim Chris@4: AMDEP_TRUE!$AMDEP_TRUE$ac_delim Chris@4: AMDEP_FALSE!$AMDEP_FALSE$ac_delim Chris@4: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim Chris@4: CCDEPMODE!$CCDEPMODE$ac_delim Chris@4: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim Chris@4: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim Chris@4: LIBTOOL!$LIBTOOL$ac_delim Chris@4: build!$build$ac_delim Chris@4: build_cpu!$build_cpu$ac_delim Chris@4: build_vendor!$build_vendor$ac_delim Chris@4: build_os!$build_os$ac_delim Chris@4: host!$host$ac_delim Chris@4: host_cpu!$host_cpu$ac_delim Chris@4: host_vendor!$host_vendor$ac_delim Chris@4: host_os!$host_os$ac_delim Chris@4: SED!$SED$ac_delim Chris@4: GREP!$GREP$ac_delim Chris@4: EGREP!$EGREP$ac_delim Chris@4: FGREP!$FGREP$ac_delim Chris@4: LD!$LD$ac_delim Chris@4: DUMPBIN!$DUMPBIN$ac_delim Chris@4: ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim Chris@4: NM!$NM$ac_delim Chris@4: LN_S!$LN_S$ac_delim Chris@4: AR!$AR$ac_delim Chris@4: RANLIB!$RANLIB$ac_delim Chris@4: lt_ECHO!$lt_ECHO$ac_delim Chris@4: _ACEOF Chris@4: Chris@4: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then Chris@4: break Chris@4: elif $ac_last_try; then Chris@4: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 Chris@4: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: else Chris@4: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " Chris@4: fi Chris@4: done Chris@4: Chris@4: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` Chris@4: if test -n "$ac_eof"; then Chris@4: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` Chris@4: ac_eof=`expr $ac_eof + 1` Chris@4: fi Chris@4: Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof Chris@4: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b Chris@4: _ACEOF Chris@4: sed ' Chris@4: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g Chris@4: s/^/s,@/; s/!/@,|#_!!_#|/ Chris@4: :n Chris@4: t n Chris@4: s/'"$ac_delim"'$/,g/; t Chris@4: s/$/\\/; p Chris@4: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n Chris@4: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF Chris@4: CEOF$ac_eof Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: ac_delim='%!_!# ' Chris@4: for ac_last_try in false false false false false :; do Chris@4: cat >conf$$subs.sed <<_ACEOF Chris@4: DSYMUTIL!$DSYMUTIL$ac_delim Chris@4: NMEDIT!$NMEDIT$ac_delim Chris@4: LIPO!$LIPO$ac_delim Chris@4: OTOOL!$OTOOL$ac_delim Chris@4: OTOOL64!$OTOOL64$ac_delim Chris@4: CPP!$CPP$ac_delim Chris@4: DOXYGEN!$DOXYGEN$ac_delim Chris@4: LO_BIGENDIAN!$LO_BIGENDIAN$ac_delim Chris@4: LIBOBJS!$LIBOBJS$ac_delim Chris@4: LTLIBOBJS!$LTLIBOBJS$ac_delim Chris@4: _ACEOF Chris@4: Chris@4: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then Chris@4: break Chris@4: elif $ac_last_try; then Chris@4: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 Chris@4: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} Chris@4: { (exit 1); exit 1; }; } Chris@4: else Chris@4: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " Chris@4: fi Chris@4: done Chris@4: Chris@4: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` Chris@4: if test -n "$ac_eof"; then Chris@4: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` Chris@4: ac_eof=`expr $ac_eof + 1` Chris@4: fi Chris@4: Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof Chris@4: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end Chris@4: _ACEOF Chris@4: sed ' Chris@4: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g Chris@4: s/^/s,@/; s/!/@,|#_!!_#|/ Chris@4: :n Chris@4: t n Chris@4: s/'"$ac_delim"'$/,g/; t Chris@4: s/$/\\/; p Chris@4: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n Chris@4: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF Chris@4: :end Chris@4: s/|#_!!_#|//g Chris@4: CEOF$ac_eof Chris@4: _ACEOF Chris@4: Chris@4: Chris@4: # VPATH may cause trouble with some makes, so we remove $(srcdir), Chris@4: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and Chris@4: # trailing colons and then remove the whole line if VPATH becomes empty Chris@4: # (actually we leave an empty line to preserve line numbers). Chris@4: if test "x$srcdir" = x.; then Chris@4: ac_vpsub='/^[ ]*VPATH[ ]*=/{ Chris@4: s/:*\$(srcdir):*/:/ Chris@4: s/:*\${srcdir}:*/:/ Chris@4: s/:*@srcdir@:*/:/ Chris@4: s/^\([^=]*=[ ]*\):*/\1/ Chris@4: s/:*$// Chris@4: s/^[^=]*=[ ]*$// Chris@4: }' Chris@4: fi Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: fi # test -n "$CONFIG_FILES" Chris@4: Chris@4: Chris@4: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS Chris@4: do Chris@4: case $ac_tag in Chris@4: :[FHLC]) ac_mode=$ac_tag; continue;; Chris@4: esac Chris@4: case $ac_mode$ac_tag in Chris@4: :[FHL]*:*);; Chris@4: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 Chris@4: echo "$as_me: error: Invalid tag $ac_tag." >&2;} Chris@4: { (exit 1); exit 1; }; };; Chris@4: :[FH]-) ac_tag=-:-;; Chris@4: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; Chris@4: esac Chris@4: ac_save_IFS=$IFS Chris@4: IFS=: Chris@4: set x $ac_tag Chris@4: IFS=$ac_save_IFS Chris@4: shift Chris@4: ac_file=$1 Chris@4: shift Chris@4: Chris@4: case $ac_mode in Chris@4: :L) ac_source=$1;; Chris@4: :[FH]) Chris@4: ac_file_inputs= Chris@4: for ac_f Chris@4: do Chris@4: case $ac_f in Chris@4: -) ac_f="$tmp/stdin";; Chris@4: *) # Look for the file first in the build tree, then in the source tree Chris@4: # (if the path is not absolute). The absolute path cannot be DOS-style, Chris@4: # because $ac_f cannot contain `:'. Chris@4: test -f "$ac_f" || Chris@4: case $ac_f in Chris@4: [\\/$]*) false;; Chris@4: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; Chris@4: esac || Chris@4: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 Chris@4: echo "$as_me: error: cannot find input file: $ac_f" >&2;} Chris@4: { (exit 1); exit 1; }; };; Chris@4: esac Chris@4: ac_file_inputs="$ac_file_inputs $ac_f" Chris@4: done Chris@4: Chris@4: # Let's still pretend it is `configure' which instantiates (i.e., don't Chris@4: # use $as_me), people would be surprised to read: Chris@4: # /* config.h. Generated by config.status. */ Chris@4: configure_input="Generated from "`IFS=: Chris@4: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." Chris@4: if test x"$ac_file" != x-; then Chris@4: configure_input="$ac_file. $configure_input" Chris@4: { echo "$as_me:$LINENO: creating $ac_file" >&5 Chris@4: echo "$as_me: creating $ac_file" >&6;} Chris@4: fi Chris@4: Chris@4: case $ac_tag in Chris@4: *:-:* | *:-) cat >"$tmp/stdin";; Chris@4: esac Chris@4: ;; Chris@4: esac Chris@4: Chris@4: ac_dir=`$as_dirname -- "$ac_file" || Chris@4: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$ac_file" : 'X\(//\)[^/]' \| \ Chris@4: X"$ac_file" : 'X\(//\)$' \| \ Chris@4: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$ac_file" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: { as_dir="$ac_dir" Chris@4: case $as_dir in #( Chris@4: -*) as_dir=./$as_dir;; Chris@4: esac Chris@4: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { Chris@4: as_dirs= Chris@4: while :; do Chris@4: case $as_dir in #( Chris@4: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( Chris@4: *) as_qdir=$as_dir;; Chris@4: esac Chris@4: as_dirs="'$as_qdir' $as_dirs" Chris@4: as_dir=`$as_dirname -- "$as_dir" || Chris@4: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@4: X"$as_dir" : 'X\(//\)$' \| \ Chris@4: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$as_dir" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: test -d "$as_dir" && break Chris@4: done Chris@4: test -z "$as_dirs" || eval "mkdir $as_dirs" Chris@4: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 Chris@4: echo "$as_me: error: cannot create directory $as_dir" >&2;} Chris@4: { (exit 1); exit 1; }; }; } Chris@4: ac_builddir=. Chris@4: Chris@4: case "$ac_dir" in Chris@4: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@4: *) Chris@4: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` Chris@4: # A ".." for each directory in $ac_dir_suffix. Chris@4: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` Chris@4: case $ac_top_builddir_sub in Chris@4: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@4: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@4: esac ;; Chris@4: esac Chris@4: ac_abs_top_builddir=$ac_pwd Chris@4: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@4: # for backward compatibility: Chris@4: ac_top_builddir=$ac_top_build_prefix Chris@4: Chris@4: case $srcdir in Chris@4: .) # We are building in place. Chris@4: ac_srcdir=. Chris@4: ac_top_srcdir=$ac_top_builddir_sub Chris@4: ac_abs_top_srcdir=$ac_pwd ;; Chris@4: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@4: ac_srcdir=$srcdir$ac_dir_suffix; Chris@4: ac_top_srcdir=$srcdir Chris@4: ac_abs_top_srcdir=$srcdir ;; Chris@4: *) # Relative name. Chris@4: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@4: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@4: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@4: esac Chris@4: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@4: Chris@4: Chris@4: case $ac_mode in Chris@4: :F) Chris@4: # Chris@4: # CONFIG_FILE Chris@4: # Chris@4: Chris@4: case $INSTALL in Chris@4: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; Chris@4: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; Chris@4: esac Chris@4: ac_MKDIR_P=$MKDIR_P Chris@4: case $MKDIR_P in Chris@4: [\\/$]* | ?:[\\/]* ) ;; Chris@4: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; Chris@4: esac Chris@4: _ACEOF Chris@4: Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: # If the template does not know about datarootdir, expand it. Chris@4: # FIXME: This hack should be removed a few years after 2.60. Chris@4: ac_datarootdir_hack=; ac_datarootdir_seen= Chris@4: Chris@4: case `sed -n '/datarootdir/ { Chris@4: p Chris@4: q Chris@4: } Chris@4: /@datadir@/p Chris@4: /@docdir@/p Chris@4: /@infodir@/p Chris@4: /@localedir@/p Chris@4: /@mandir@/p Chris@4: ' $ac_file_inputs` in Chris@4: *datarootdir*) ac_datarootdir_seen=yes;; Chris@4: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 Chris@4: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: ac_datarootdir_hack=' Chris@4: s&@datadir@&$datadir&g Chris@4: s&@docdir@&$docdir&g Chris@4: s&@infodir@&$infodir&g Chris@4: s&@localedir@&$localedir&g Chris@4: s&@mandir@&$mandir&g Chris@4: s&\\\${datarootdir}&$datarootdir&g' ;; Chris@4: esac Chris@4: _ACEOF Chris@4: Chris@4: # Neutralize VPATH when `$srcdir' = `.'. Chris@4: # Shell code in configure.ac might set extrasub. Chris@4: # FIXME: do we really want to maintain this feature? Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: sed "$ac_vpsub Chris@4: $extrasub Chris@4: _ACEOF Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: :t Chris@4: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b Chris@4: s&@configure_input@&$configure_input&;t t Chris@4: s&@top_builddir@&$ac_top_builddir_sub&;t t Chris@4: s&@srcdir@&$ac_srcdir&;t t Chris@4: s&@abs_srcdir@&$ac_abs_srcdir&;t t Chris@4: s&@top_srcdir@&$ac_top_srcdir&;t t Chris@4: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t Chris@4: s&@builddir@&$ac_builddir&;t t Chris@4: s&@abs_builddir@&$ac_abs_builddir&;t t Chris@4: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t Chris@4: s&@INSTALL@&$ac_INSTALL&;t t Chris@4: s&@MKDIR_P@&$ac_MKDIR_P&;t t Chris@4: $ac_datarootdir_hack Chris@4: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out Chris@4: Chris@4: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && Chris@4: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && Chris@4: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && Chris@4: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' Chris@4: which seems to be undefined. Please make sure it is defined." >&5 Chris@4: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' Chris@4: which seems to be undefined. Please make sure it is defined." >&2;} Chris@4: Chris@4: rm -f "$tmp/stdin" Chris@4: case $ac_file in Chris@4: -) cat "$tmp/out"; rm -f "$tmp/out";; Chris@4: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; Chris@4: esac Chris@4: ;; Chris@4: :H) Chris@4: # Chris@4: # CONFIG_HEADER Chris@4: # Chris@4: _ACEOF Chris@4: Chris@4: # Transform confdefs.h into a sed script `conftest.defines', that Chris@4: # substitutes the proper values into config.h.in to produce config.h. Chris@4: rm -f conftest.defines conftest.tail Chris@4: # First, append a space to every undef/define line, to ease matching. Chris@4: echo 's/$/ /' >conftest.defines Chris@4: # Then, protect against being on the right side of a sed subst, or in Chris@4: # an unquoted here document, in config.status. If some macros were Chris@4: # called several times there might be several #defines for the same Chris@4: # symbol, which is useless. But do not sort them, since the last Chris@4: # AC_DEFINE must be honored. Chris@4: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* Chris@4: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where Chris@4: # NAME is the cpp macro being defined, VALUE is the value it is being given. Chris@4: # PARAMS is the parameter list in the macro definition--in most cases, it's Chris@4: # just an empty string. Chris@4: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' Chris@4: ac_dB='\\)[ (].*,\\1define\\2' Chris@4: ac_dC=' ' Chris@4: ac_dD=' ,' Chris@4: Chris@4: uniq confdefs.h | Chris@4: sed -n ' Chris@4: t rset Chris@4: :rset Chris@4: s/^[ ]*#[ ]*define[ ][ ]*// Chris@4: t ok Chris@4: d Chris@4: :ok Chris@4: s/[\\&,]/\\&/g Chris@4: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p Chris@4: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p Chris@4: ' >>conftest.defines Chris@4: Chris@4: # Remove the space that was appended to ease matching. Chris@4: # Then replace #undef with comments. This is necessary, for Chris@4: # example, in the case of _POSIX_SOURCE, which is predefined and required Chris@4: # on some systems where configure will not decide to define it. Chris@4: # (The regexp can be short, since the line contains either #define or #undef.) Chris@4: echo 's/ $// Chris@4: s,^[ #]*u.*,/* & */,' >>conftest.defines Chris@4: Chris@4: # Break up conftest.defines: Chris@4: ac_max_sed_lines=50 Chris@4: Chris@4: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" Chris@4: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" Chris@4: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" Chris@4: # et cetera. Chris@4: ac_in='$ac_file_inputs' Chris@4: ac_out='"$tmp/out1"' Chris@4: ac_nxt='"$tmp/out2"' Chris@4: Chris@4: while : Chris@4: do Chris@4: # Write a here document: Chris@4: cat >>$CONFIG_STATUS <<_ACEOF Chris@4: # First, check the format of the line: Chris@4: cat >"\$tmp/defines.sed" <<\\CEOF Chris@4: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def Chris@4: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def Chris@4: b Chris@4: :def Chris@4: _ACEOF Chris@4: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS Chris@4: echo 'CEOF Chris@4: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS Chris@4: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in Chris@4: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail Chris@4: grep . conftest.tail >/dev/null || break Chris@4: rm -f conftest.defines Chris@4: mv conftest.tail conftest.defines Chris@4: done Chris@4: rm -f conftest.defines conftest.tail Chris@4: Chris@4: echo "ac_result=$ac_in" >>$CONFIG_STATUS Chris@4: cat >>$CONFIG_STATUS <<\_ACEOF Chris@4: if test x"$ac_file" != x-; then Chris@4: echo "/* $configure_input */" >"$tmp/config.h" Chris@4: cat "$ac_result" >>"$tmp/config.h" Chris@4: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then Chris@4: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 Chris@4: echo "$as_me: $ac_file is unchanged" >&6;} Chris@4: else Chris@4: rm -f $ac_file Chris@4: mv "$tmp/config.h" $ac_file Chris@4: fi Chris@4: else Chris@4: echo "/* $configure_input */" Chris@4: cat "$ac_result" Chris@4: fi Chris@4: rm -f "$tmp/out12" Chris@4: # Compute $ac_file's index in $config_headers. Chris@4: _am_arg=$ac_file Chris@4: _am_stamp_count=1 Chris@4: for _am_header in $config_headers :; do Chris@4: case $_am_header in Chris@4: $_am_arg | $_am_arg:* ) Chris@4: break ;; Chris@4: * ) Chris@4: _am_stamp_count=`expr $_am_stamp_count + 1` ;; Chris@4: esac Chris@4: done Chris@4: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || Chris@4: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$_am_arg" : 'X\(//\)[^/]' \| \ Chris@4: X"$_am_arg" : 'X\(//\)$' \| \ Chris@4: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$_am_arg" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'`/stamp-h$_am_stamp_count Chris@4: ;; Chris@4: Chris@4: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 Chris@4: echo "$as_me: executing $ac_file commands" >&6;} Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: case $ac_file$ac_mode in Chris@4: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do Chris@4: # Strip MF so we end up with the name of the file. Chris@4: mf=`echo "$mf" | sed -e 's/:.*$//'` Chris@4: # Check whether this is an Automake generated Makefile or not. Chris@4: # We used to match only the files named `Makefile.in', but Chris@4: # some people rename them; so instead we look at the file content. Chris@4: # Grep'ing the first line is not enough: some people post-process Chris@4: # each Makefile.in and add a new line on top of each file to say so. Chris@4: # Grep'ing the whole file is not good either: AIX grep has a line Chris@4: # limit of 2048, but all sed's we know have understand at least 4000. Chris@4: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then Chris@4: dirpart=`$as_dirname -- "$mf" || Chris@4: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$mf" : 'X\(//\)[^/]' \| \ Chris@4: X"$mf" : 'X\(//\)$' \| \ Chris@4: X"$mf" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$mf" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: else Chris@4: continue Chris@4: fi Chris@4: # Extract the definition of DEPDIR, am__include, and am__quote Chris@4: # from the Makefile without running `make'. Chris@4: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` Chris@4: test -z "$DEPDIR" && continue Chris@4: am__include=`sed -n 's/^am__include = //p' < "$mf"` Chris@4: test -z "am__include" && continue Chris@4: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` Chris@4: # When using ansi2knr, U may be empty or an underscore; expand it Chris@4: U=`sed -n 's/^U = //p' < "$mf"` Chris@4: # Find all dependency output files, they are included files with Chris@4: # $(DEPDIR) in their names. We invoke sed twice because it is the Chris@4: # simplest approach to changing $(DEPDIR) to its actual value in the Chris@4: # expansion. Chris@4: for file in `sed -n " Chris@4: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ Chris@4: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do Chris@4: # Make sure the directory exists. Chris@4: test -f "$dirpart/$file" && continue Chris@4: fdir=`$as_dirname -- "$file" || Chris@4: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$file" : 'X\(//\)[^/]' \| \ Chris@4: X"$file" : 'X\(//\)$' \| \ Chris@4: X"$file" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$file" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: { as_dir=$dirpart/$fdir Chris@4: case $as_dir in #( Chris@4: -*) as_dir=./$as_dir;; Chris@4: esac Chris@4: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { Chris@4: as_dirs= Chris@4: while :; do Chris@4: case $as_dir in #( Chris@4: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( Chris@4: *) as_qdir=$as_dir;; Chris@4: esac Chris@4: as_dirs="'$as_qdir' $as_dirs" Chris@4: as_dir=`$as_dirname -- "$as_dir" || Chris@4: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@4: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@4: X"$as_dir" : 'X\(//\)$' \| \ Chris@4: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || Chris@4: echo X"$as_dir" | Chris@4: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)[^/].*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\/\)$/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: /^X\(\/\).*/{ Chris@4: s//\1/ Chris@4: q Chris@4: } Chris@4: s/.*/./; q'` Chris@4: test -d "$as_dir" && break Chris@4: done Chris@4: test -z "$as_dirs" || eval "mkdir $as_dirs" Chris@4: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 Chris@4: echo "$as_me: error: cannot create directory $as_dir" >&2;} Chris@4: { (exit 1); exit 1; }; }; } Chris@4: # echo "creating $dirpart/$file" Chris@4: echo '# dummy' > "$dirpart/$file" Chris@4: done Chris@4: done Chris@4: ;; Chris@4: "libtool":C) Chris@4: Chris@4: # See if we are running on zsh, and set the options which allow our Chris@4: # commands through without removal of \ escapes. Chris@4: if test -n "${ZSH_VERSION+set}" ; then Chris@4: setopt NO_GLOB_SUBST Chris@4: fi Chris@4: Chris@4: cfgfile="${ofile}T" Chris@4: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 Chris@4: $RM "$cfgfile" Chris@4: Chris@4: cat <<_LT_EOF >> "$cfgfile" Chris@4: #! $SHELL Chris@4: Chris@4: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. Chris@4: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION Chris@4: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: Chris@4: # NOTE: Changes made to this file will be lost: look at ltmain.sh. Chris@4: # Chris@4: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, Chris@4: # 2006, 2007, 2008 Free Software Foundation, Inc. Chris@4: # Written by Gordon Matzigkeit, 1996 Chris@4: # Chris@4: # This file is part of GNU Libtool. Chris@4: # Chris@4: # GNU Libtool is free software; you can redistribute it and/or Chris@4: # modify it under the terms of the GNU General Public License as Chris@4: # published by the Free Software Foundation; either version 2 of Chris@4: # the License, or (at your option) any later version. Chris@4: # Chris@4: # As a special exception to the GNU General Public License, Chris@4: # if you distribute this file as part of a program or library that Chris@4: # is built using GNU Libtool, you may include this file under the Chris@4: # same distribution terms that you use for the rest of that program. Chris@4: # Chris@4: # GNU Libtool is distributed in the hope that it will be useful, Chris@4: # but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@4: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@4: # GNU General Public License for more details. Chris@4: # Chris@4: # You should have received a copy of the GNU General Public License Chris@4: # along with GNU Libtool; see the file COPYING. If not, a copy Chris@4: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or Chris@4: # obtained by writing to the Free Software Foundation, Inc., Chris@4: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Chris@4: Chris@4: Chris@4: # The names of the tagged configurations supported by this script. Chris@4: available_tags="" Chris@4: Chris@4: # ### BEGIN LIBTOOL CONFIG Chris@4: Chris@4: # Whether or not to build static libraries. Chris@4: build_old_libs=$enable_static Chris@4: Chris@4: # Whether or not to build shared libraries. Chris@4: build_libtool_libs=$enable_shared Chris@4: Chris@4: # Which release of libtool.m4 was used? Chris@4: macro_version=$macro_version Chris@4: macro_revision=$macro_revision Chris@4: Chris@4: # What type of objects to build. Chris@4: pic_mode=$pic_mode Chris@4: Chris@4: # Whether or not to optimize for fast installation. Chris@4: fast_install=$enable_fast_install Chris@4: Chris@4: # The host system. Chris@4: host_alias=$host_alias Chris@4: host=$host Chris@4: host_os=$host_os Chris@4: Chris@4: # The build system. Chris@4: build_alias=$build_alias Chris@4: build=$build Chris@4: build_os=$build_os Chris@4: Chris@4: # A sed program that does not truncate output. Chris@4: SED=$lt_SED Chris@4: Chris@4: # Sed that helps us avoid accidentally triggering echo(1) options like -n. Chris@4: Xsed="\$SED -e 1s/^X//" Chris@4: Chris@4: # A grep program that handles long lines. Chris@4: GREP=$lt_GREP Chris@4: Chris@4: # An ERE matcher. Chris@4: EGREP=$lt_EGREP Chris@4: Chris@4: # A literal string matcher. Chris@4: FGREP=$lt_FGREP Chris@4: Chris@4: # A BSD- or MS-compatible name lister. Chris@4: NM=$lt_NM Chris@4: Chris@4: # Whether we need soft or hard links. Chris@4: LN_S=$lt_LN_S Chris@4: Chris@4: # What is the maximum length of a command? Chris@4: max_cmd_len=$max_cmd_len Chris@4: Chris@4: # Object file suffix (normally "o"). Chris@4: objext=$ac_objext Chris@4: Chris@4: # Executable file suffix (normally ""). Chris@4: exeext=$exeext Chris@4: Chris@4: # whether the shell understands "unset". Chris@4: lt_unset=$lt_unset Chris@4: Chris@4: # turn spaces into newlines. Chris@4: SP2NL=$lt_lt_SP2NL Chris@4: Chris@4: # turn newlines into spaces. Chris@4: NL2SP=$lt_lt_NL2SP Chris@4: Chris@4: # How to create reloadable object files. Chris@4: reload_flag=$lt_reload_flag Chris@4: reload_cmds=$lt_reload_cmds Chris@4: Chris@4: # Method to check whether dependent libraries are shared objects. Chris@4: deplibs_check_method=$lt_deplibs_check_method Chris@4: Chris@4: # Command to use when deplibs_check_method == "file_magic". Chris@4: file_magic_cmd=$lt_file_magic_cmd Chris@4: Chris@4: # The archiver. Chris@4: AR=$lt_AR Chris@4: AR_FLAGS=$lt_AR_FLAGS Chris@4: Chris@4: # A symbol stripping program. Chris@4: STRIP=$lt_STRIP Chris@4: Chris@4: # Commands used to install an old-style archive. Chris@4: RANLIB=$lt_RANLIB Chris@4: old_postinstall_cmds=$lt_old_postinstall_cmds Chris@4: old_postuninstall_cmds=$lt_old_postuninstall_cmds Chris@4: Chris@4: # A C compiler. Chris@4: LTCC=$lt_CC Chris@4: Chris@4: # LTCC compiler flags. Chris@4: LTCFLAGS=$lt_CFLAGS Chris@4: Chris@4: # Take the output of nm and produce a listing of raw symbols and C names. Chris@4: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe Chris@4: Chris@4: # Transform the output of nm in a proper C declaration. Chris@4: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl Chris@4: Chris@4: # Transform the output of nm in a C name address pair. Chris@4: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address Chris@4: Chris@4: # Transform the output of nm in a C name address pair when lib prefix is needed. Chris@4: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix Chris@4: Chris@4: # The name of the directory that contains temporary libtool files. Chris@4: objdir=$objdir Chris@4: Chris@4: # Shell to use when invoking shell scripts. Chris@4: SHELL=$lt_SHELL Chris@4: Chris@4: # An echo program that does not interpret backslashes. Chris@4: ECHO=$lt_ECHO Chris@4: Chris@4: # Used to examine libraries when file_magic_cmd begins with "file". Chris@4: MAGIC_CMD=$MAGIC_CMD Chris@4: Chris@4: # Must we lock files when doing compilation? Chris@4: need_locks=$lt_need_locks Chris@4: Chris@4: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. Chris@4: DSYMUTIL=$lt_DSYMUTIL Chris@4: Chris@4: # Tool to change global to local symbols on Mac OS X. Chris@4: NMEDIT=$lt_NMEDIT Chris@4: Chris@4: # Tool to manipulate fat objects and archives on Mac OS X. Chris@4: LIPO=$lt_LIPO Chris@4: Chris@4: # ldd/readelf like tool for Mach-O binaries on Mac OS X. Chris@4: OTOOL=$lt_OTOOL Chris@4: Chris@4: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. Chris@4: OTOOL64=$lt_OTOOL64 Chris@4: Chris@4: # Old archive suffix (normally "a"). Chris@4: libext=$libext Chris@4: Chris@4: # Shared library suffix (normally ".so"). Chris@4: shrext_cmds=$lt_shrext_cmds Chris@4: Chris@4: # The commands to extract the exported symbol list from a shared archive. Chris@4: extract_expsyms_cmds=$lt_extract_expsyms_cmds Chris@4: Chris@4: # Variables whose values should be saved in libtool wrapper scripts and Chris@4: # restored at link time. Chris@4: variables_saved_for_relink=$lt_variables_saved_for_relink Chris@4: Chris@4: # Do we need the "lib" prefix for modules? Chris@4: need_lib_prefix=$need_lib_prefix Chris@4: Chris@4: # Do we need a version for libraries? Chris@4: need_version=$need_version Chris@4: Chris@4: # Library versioning type. Chris@4: version_type=$version_type Chris@4: Chris@4: # Shared library runtime path variable. Chris@4: runpath_var=$runpath_var Chris@4: Chris@4: # Shared library path variable. Chris@4: shlibpath_var=$shlibpath_var Chris@4: Chris@4: # Is shlibpath searched before the hard-coded library search path? Chris@4: shlibpath_overrides_runpath=$shlibpath_overrides_runpath Chris@4: Chris@4: # Format of library name prefix. Chris@4: libname_spec=$lt_libname_spec Chris@4: Chris@4: # List of archive names. First name is the real one, the rest are links. Chris@4: # The last name is the one that the linker finds with -lNAME Chris@4: library_names_spec=$lt_library_names_spec Chris@4: Chris@4: # The coded name of the library, if different from the real name. Chris@4: soname_spec=$lt_soname_spec Chris@4: Chris@4: # Command to use after installation of a shared archive. Chris@4: postinstall_cmds=$lt_postinstall_cmds Chris@4: Chris@4: # Command to use after uninstallation of a shared archive. Chris@4: postuninstall_cmds=$lt_postuninstall_cmds Chris@4: Chris@4: # Commands used to finish a libtool library installation in a directory. Chris@4: finish_cmds=$lt_finish_cmds Chris@4: Chris@4: # As "finish_cmds", except a single script fragment to be evaled but Chris@4: # not shown. Chris@4: finish_eval=$lt_finish_eval Chris@4: Chris@4: # Whether we should hardcode library paths into libraries. Chris@4: hardcode_into_libs=$hardcode_into_libs Chris@4: Chris@4: # Compile-time system search path for libraries. Chris@4: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec Chris@4: Chris@4: # Run-time system search path for libraries. Chris@4: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec Chris@4: Chris@4: # Whether dlopen is supported. Chris@4: dlopen_support=$enable_dlopen Chris@4: Chris@4: # Whether dlopen of programs is supported. Chris@4: dlopen_self=$enable_dlopen_self Chris@4: Chris@4: # Whether dlopen of statically linked programs is supported. Chris@4: dlopen_self_static=$enable_dlopen_self_static Chris@4: Chris@4: # Commands to strip libraries. Chris@4: old_striplib=$lt_old_striplib Chris@4: striplib=$lt_striplib Chris@4: Chris@4: Chris@4: # The linker used to build libraries. Chris@4: LD=$lt_LD Chris@4: Chris@4: # Commands used to build an old-style archive. Chris@4: old_archive_cmds=$lt_old_archive_cmds Chris@4: Chris@4: # A language specific compiler. Chris@4: CC=$lt_compiler Chris@4: Chris@4: # Is the compiler the GNU compiler? Chris@4: with_gcc=$GCC Chris@4: Chris@4: # Compiler flag to turn off builtin functions. Chris@4: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag Chris@4: Chris@4: # How to pass a linker flag through the compiler. Chris@4: wl=$lt_lt_prog_compiler_wl Chris@4: Chris@4: # Additional compiler flags for building library objects. Chris@4: pic_flag=$lt_lt_prog_compiler_pic Chris@4: Chris@4: # Compiler flag to prevent dynamic linking. Chris@4: link_static_flag=$lt_lt_prog_compiler_static Chris@4: Chris@4: # Does compiler simultaneously support -c and -o options? Chris@4: compiler_c_o=$lt_lt_cv_prog_compiler_c_o Chris@4: Chris@4: # Whether or not to add -lc for building shared libraries. Chris@4: build_libtool_need_lc=$archive_cmds_need_lc Chris@4: Chris@4: # Whether or not to disallow shared libs when runtime libs are static. Chris@4: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes Chris@4: Chris@4: # Compiler flag to allow reflexive dlopens. Chris@4: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec Chris@4: Chris@4: # Compiler flag to generate shared objects directly from archives. Chris@4: whole_archive_flag_spec=$lt_whole_archive_flag_spec Chris@4: Chris@4: # Whether the compiler copes with passing no objects directly. Chris@4: compiler_needs_object=$lt_compiler_needs_object Chris@4: Chris@4: # Create an old-style archive from a shared archive. Chris@4: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds Chris@4: Chris@4: # Create a temporary old-style archive to link instead of a shared archive. Chris@4: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds Chris@4: Chris@4: # Commands used to build a shared archive. Chris@4: archive_cmds=$lt_archive_cmds Chris@4: archive_expsym_cmds=$lt_archive_expsym_cmds Chris@4: Chris@4: # Commands used to build a loadable module if different from building Chris@4: # a shared archive. Chris@4: module_cmds=$lt_module_cmds Chris@4: module_expsym_cmds=$lt_module_expsym_cmds Chris@4: Chris@4: # Whether we are building with GNU ld or not. Chris@4: with_gnu_ld=$lt_with_gnu_ld Chris@4: Chris@4: # Flag that allows shared libraries with undefined symbols to be built. Chris@4: allow_undefined_flag=$lt_allow_undefined_flag Chris@4: Chris@4: # Flag that enforces no undefined symbols. Chris@4: no_undefined_flag=$lt_no_undefined_flag Chris@4: Chris@4: # Flag to hardcode \$libdir into a binary during linking. Chris@4: # This must work even if \$libdir does not exist Chris@4: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec Chris@4: Chris@4: # If ld is used when linking, flag to hardcode \$libdir into a binary Chris@4: # during linking. This must work even if \$libdir does not exist. Chris@4: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld Chris@4: Chris@4: # Whether we need a single "-rpath" flag with a separated argument. Chris@4: hardcode_libdir_separator=$lt_hardcode_libdir_separator Chris@4: Chris@4: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes Chris@4: # DIR into the resulting binary. Chris@4: hardcode_direct=$hardcode_direct Chris@4: Chris@4: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes Chris@4: # DIR into the resulting binary and the resulting library dependency is Chris@4: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the Chris@4: # library is relocated. Chris@4: hardcode_direct_absolute=$hardcode_direct_absolute Chris@4: Chris@4: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR Chris@4: # into the resulting binary. Chris@4: hardcode_minus_L=$hardcode_minus_L Chris@4: Chris@4: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR Chris@4: # into the resulting binary. Chris@4: hardcode_shlibpath_var=$hardcode_shlibpath_var Chris@4: Chris@4: # Set to "yes" if building a shared library automatically hardcodes DIR Chris@4: # into the library and all subsequent libraries and executables linked Chris@4: # against it. Chris@4: hardcode_automatic=$hardcode_automatic Chris@4: Chris@4: # Set to yes if linker adds runtime paths of dependent libraries Chris@4: # to runtime path list. Chris@4: inherit_rpath=$inherit_rpath Chris@4: Chris@4: # Whether libtool must link a program against all its dependency libraries. Chris@4: link_all_deplibs=$link_all_deplibs Chris@4: Chris@4: # Fix the shell variable \$srcfile for the compiler. Chris@4: fix_srcfile_path=$lt_fix_srcfile_path Chris@4: Chris@4: # Set to "yes" if exported symbols are required. Chris@4: always_export_symbols=$always_export_symbols Chris@4: Chris@4: # The commands to list exported symbols. Chris@4: export_symbols_cmds=$lt_export_symbols_cmds Chris@4: Chris@4: # Symbols that should not be listed in the preloaded symbols. Chris@4: exclude_expsyms=$lt_exclude_expsyms Chris@4: Chris@4: # Symbols that must always be exported. Chris@4: include_expsyms=$lt_include_expsyms Chris@4: Chris@4: # Commands necessary for linking programs (against libraries) with templates. Chris@4: prelink_cmds=$lt_prelink_cmds Chris@4: Chris@4: # Specify filename containing input files. Chris@4: file_list_spec=$lt_file_list_spec Chris@4: Chris@4: # How to hardcode a shared library path into an executable. Chris@4: hardcode_action=$hardcode_action Chris@4: Chris@4: # ### END LIBTOOL CONFIG Chris@4: Chris@4: _LT_EOF Chris@4: Chris@4: case $host_os in Chris@4: aix3*) Chris@4: cat <<\_LT_EOF >> "$cfgfile" Chris@4: # AIX sometimes has problems with the GCC collect2 program. For some Chris@4: # reason, if we set the COLLECT_NAMES environment variable, the problems Chris@4: # vanish in a puff of smoke. Chris@4: if test "X${COLLECT_NAMES+set}" != Xset; then Chris@4: COLLECT_NAMES= Chris@4: export COLLECT_NAMES Chris@4: fi Chris@4: _LT_EOF Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: ltmain="$ac_aux_dir/ltmain.sh" Chris@4: Chris@4: Chris@4: # We use sed instead of cat because bash on DJGPP gets confused if Chris@4: # if finds mixed CR/LF and LF-only lines. Since sed operates in Chris@4: # text mode, it properly converts lines to CR/LF. This bash problem Chris@4: # is reportedly fixed, but why not run on old versions too? Chris@4: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ Chris@4: || (rm -f "$cfgfile"; exit 1) Chris@4: Chris@4: case $xsi_shell in Chris@4: yes) Chris@4: cat << \_LT_EOF >> "$cfgfile" Chris@4: Chris@4: # func_dirname file append nondir_replacement Chris@4: # Compute the dirname of FILE. If nonempty, add APPEND to the result, Chris@4: # otherwise set result to NONDIR_REPLACEMENT. Chris@4: func_dirname () Chris@4: { Chris@4: case ${1} in Chris@4: */*) func_dirname_result="${1%/*}${2}" ;; Chris@4: * ) func_dirname_result="${3}" ;; Chris@4: esac Chris@4: } Chris@4: Chris@4: # func_basename file Chris@4: func_basename () Chris@4: { Chris@4: func_basename_result="${1##*/}" Chris@4: } Chris@4: Chris@4: # func_dirname_and_basename file append nondir_replacement Chris@4: # perform func_basename and func_dirname in a single function Chris@4: # call: Chris@4: # dirname: Compute the dirname of FILE. If nonempty, Chris@4: # add APPEND to the result, otherwise set result Chris@4: # to NONDIR_REPLACEMENT. Chris@4: # value returned in "$func_dirname_result" Chris@4: # basename: Compute filename of FILE. Chris@4: # value retuned in "$func_basename_result" Chris@4: # Implementation must be kept synchronized with func_dirname Chris@4: # and func_basename. For efficiency, we do not delegate to Chris@4: # those functions but instead duplicate the functionality here. Chris@4: func_dirname_and_basename () Chris@4: { Chris@4: case ${1} in Chris@4: */*) func_dirname_result="${1%/*}${2}" ;; Chris@4: * ) func_dirname_result="${3}" ;; Chris@4: esac Chris@4: func_basename_result="${1##*/}" Chris@4: } Chris@4: Chris@4: # func_stripname prefix suffix name Chris@4: # strip PREFIX and SUFFIX off of NAME. Chris@4: # PREFIX and SUFFIX must not contain globbing or regex special Chris@4: # characters, hashes, percent signs, but SUFFIX may contain a leading Chris@4: # dot (in which case that matches only a dot). Chris@4: func_stripname () Chris@4: { Chris@4: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are Chris@4: # positional parameters, so assign one to ordinary parameter first. Chris@4: func_stripname_result=${3} Chris@4: func_stripname_result=${func_stripname_result#"${1}"} Chris@4: func_stripname_result=${func_stripname_result%"${2}"} Chris@4: } Chris@4: Chris@4: # func_opt_split Chris@4: func_opt_split () Chris@4: { Chris@4: func_opt_split_opt=${1%%=*} Chris@4: func_opt_split_arg=${1#*=} Chris@4: } Chris@4: Chris@4: # func_lo2o object Chris@4: func_lo2o () Chris@4: { Chris@4: case ${1} in Chris@4: *.lo) func_lo2o_result=${1%.lo}.${objext} ;; Chris@4: *) func_lo2o_result=${1} ;; Chris@4: esac Chris@4: } Chris@4: Chris@4: # func_xform libobj-or-source Chris@4: func_xform () Chris@4: { Chris@4: func_xform_result=${1%.*}.lo Chris@4: } Chris@4: Chris@4: # func_arith arithmetic-term... Chris@4: func_arith () Chris@4: { Chris@4: func_arith_result=$(( $* )) Chris@4: } Chris@4: Chris@4: # func_len string Chris@4: # STRING may not start with a hyphen. Chris@4: func_len () Chris@4: { Chris@4: func_len_result=${#1} Chris@4: } Chris@4: Chris@4: _LT_EOF Chris@4: ;; Chris@4: *) # Bourne compatible functions. Chris@4: cat << \_LT_EOF >> "$cfgfile" Chris@4: Chris@4: # func_dirname file append nondir_replacement Chris@4: # Compute the dirname of FILE. If nonempty, add APPEND to the result, Chris@4: # otherwise set result to NONDIR_REPLACEMENT. Chris@4: func_dirname () Chris@4: { Chris@4: # Extract subdirectory from the argument. Chris@4: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` Chris@4: if test "X$func_dirname_result" = "X${1}"; then Chris@4: func_dirname_result="${3}" Chris@4: else Chris@4: func_dirname_result="$func_dirname_result${2}" Chris@4: fi Chris@4: } Chris@4: Chris@4: # func_basename file Chris@4: func_basename () Chris@4: { Chris@4: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` Chris@4: } Chris@4: Chris@4: Chris@4: # func_stripname prefix suffix name Chris@4: # strip PREFIX and SUFFIX off of NAME. Chris@4: # PREFIX and SUFFIX must not contain globbing or regex special Chris@4: # characters, hashes, percent signs, but SUFFIX may contain a leading Chris@4: # dot (in which case that matches only a dot). Chris@4: # func_strip_suffix prefix name Chris@4: func_stripname () Chris@4: { Chris@4: case ${2} in Chris@4: .*) func_stripname_result=`$ECHO "X${3}" \ Chris@4: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; Chris@4: *) func_stripname_result=`$ECHO "X${3}" \ Chris@4: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; Chris@4: esac Chris@4: } Chris@4: Chris@4: # sed scripts: Chris@4: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' Chris@4: my_sed_long_arg='1s/^-[^=]*=//' Chris@4: Chris@4: # func_opt_split Chris@4: func_opt_split () Chris@4: { Chris@4: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` Chris@4: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` Chris@4: } Chris@4: Chris@4: # func_lo2o object Chris@4: func_lo2o () Chris@4: { Chris@4: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` Chris@4: } Chris@4: Chris@4: # func_xform libobj-or-source Chris@4: func_xform () Chris@4: { Chris@4: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` Chris@4: } Chris@4: Chris@4: # func_arith arithmetic-term... Chris@4: func_arith () Chris@4: { Chris@4: func_arith_result=`expr "$@"` Chris@4: } Chris@4: Chris@4: # func_len string Chris@4: # STRING may not start with a hyphen. Chris@4: func_len () Chris@4: { Chris@4: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` Chris@4: } Chris@4: Chris@4: _LT_EOF Chris@4: esac Chris@4: Chris@4: case $lt_shell_append in Chris@4: yes) Chris@4: cat << \_LT_EOF >> "$cfgfile" Chris@4: Chris@4: # func_append var value Chris@4: # Append VALUE to the end of shell variable VAR. Chris@4: func_append () Chris@4: { Chris@4: eval "$1+=\$2" Chris@4: } Chris@4: _LT_EOF Chris@4: ;; Chris@4: *) Chris@4: cat << \_LT_EOF >> "$cfgfile" Chris@4: Chris@4: # func_append var value Chris@4: # Append VALUE to the end of shell variable VAR. Chris@4: func_append () Chris@4: { Chris@4: eval "$1=\$$1\$2" Chris@4: } Chris@4: Chris@4: _LT_EOF Chris@4: ;; Chris@4: esac Chris@4: Chris@4: Chris@4: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ Chris@4: || (rm -f "$cfgfile"; exit 1) Chris@4: Chris@4: mv -f "$cfgfile" "$ofile" || Chris@4: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") Chris@4: chmod +x "$ofile" Chris@4: Chris@4: ;; Chris@4: Chris@4: esac Chris@4: done # for ac_tag Chris@4: Chris@4: Chris@4: { (exit 0); exit 0; } Chris@4: _ACEOF Chris@4: chmod +x $CONFIG_STATUS Chris@4: ac_clean_files=$ac_clean_files_save Chris@4: Chris@4: Chris@4: # configure is writing to config.log, and then calls config.status. Chris@4: # config.status does its own redirection, appending to config.log. Chris@4: # Unfortunately, on DOS this fails, as config.log is still kept open Chris@4: # by configure, so config.status won't be able to write to it; its Chris@4: # output is simply discarded. So we exec the FD to /dev/null, Chris@4: # effectively closing config.log, so it can be properly (re)opened and Chris@4: # appended to by config.status. When coming back to configure, we Chris@4: # need to make the FD available again. Chris@4: if test "$no_create" != yes; then Chris@4: ac_cs_success=: Chris@4: ac_config_status_args= Chris@4: test "$silent" = yes && Chris@4: ac_config_status_args="$ac_config_status_args --quiet" Chris@4: exec 5>/dev/null Chris@4: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false Chris@4: exec 5>>config.log Chris@4: # Use ||, not &&, to avoid exiting from the if with $? = 1, which Chris@4: # would make configure fail if this is the last instruction. Chris@4: $ac_cs_success || { (exit 1); exit 1; } Chris@4: fi Chris@4: