cannam@126: #! /bin/sh cannam@126: # Guess values for system-dependent variables and create Makefiles. cannam@126: # Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9. cannam@126: # cannam@126: # Report bugs to . cannam@126: # cannam@126: # cannam@126: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. cannam@126: # cannam@126: # cannam@126: # This configure script is free software; the Free Software Foundation cannam@126: # gives unlimited permission to copy, distribute and modify it. cannam@126: ## -------------------- ## cannam@126: ## M4sh Initialization. ## cannam@126: ## -------------------- ## cannam@126: cannam@126: # Be more Bourne compatible cannam@126: DUALCASE=1; export DUALCASE # for MKS sh cannam@126: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@126: emulate sh cannam@126: NULLCMD=: cannam@126: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@126: # is contrary to our usage. Disable this feature. cannam@126: alias -g '${1+"$@"}'='"$@"' cannam@126: setopt NO_GLOB_SUBST cannam@126: else cannam@126: case `(set -o) 2>/dev/null` in #( cannam@126: *posix*) : cannam@126: set -o posix ;; #( cannam@126: *) : cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: cannam@126: as_nl=' cannam@126: ' cannam@126: export as_nl cannam@126: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@126: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@126: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@126: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@126: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@126: # but without wasting forks for bash or zsh. cannam@126: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@126: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@126: as_echo='print -r --' cannam@126: as_echo_n='print -rn --' cannam@126: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@126: as_echo='printf %s\n' cannam@126: as_echo_n='printf %s' cannam@126: else cannam@126: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@126: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@126: as_echo_n='/usr/ucb/echo -n' cannam@126: else cannam@126: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@126: as_echo_n_body='eval cannam@126: arg=$1; cannam@126: case $arg in #( cannam@126: *"$as_nl"*) cannam@126: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@126: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@126: esac; cannam@126: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@126: ' cannam@126: export as_echo_n_body cannam@126: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@126: fi cannam@126: export as_echo_body cannam@126: as_echo='sh -c $as_echo_body as_echo' cannam@126: fi cannam@126: cannam@126: # The user is always right. cannam@126: if test "${PATH_SEPARATOR+set}" != set; then cannam@126: PATH_SEPARATOR=: cannam@126: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@126: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@126: PATH_SEPARATOR=';' cannam@126: } cannam@126: fi cannam@126: cannam@126: cannam@126: # IFS cannam@126: # We need space, tab and new line, in precisely that order. Quoting is cannam@126: # there to prevent editors from complaining about space-tab. cannam@126: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@126: # splitting by setting IFS to empty value.) cannam@126: IFS=" "" $as_nl" cannam@126: cannam@126: # Find who we are. Look in the path if we contain no directory separator. cannam@126: as_myself= cannam@126: case $0 in #(( cannam@126: *[\\/]* ) as_myself=$0 ;; cannam@126: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: ;; cannam@126: esac cannam@126: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@126: # in which case we are not to be found in the path. cannam@126: if test "x$as_myself" = x; then cannam@126: as_myself=$0 cannam@126: fi cannam@126: if test ! -f "$as_myself"; then cannam@126: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@126: exit 1 cannam@126: fi cannam@126: cannam@126: # Unset variables that we do not need and which cause bugs (e.g. in cannam@126: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@126: # suppresses any "Segmentation fault" message there. '((' could cannam@126: # trigger a bug in pdksh 5.2.14. cannam@126: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@126: do eval test x\${$as_var+set} = xset \ cannam@126: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@126: done cannam@126: PS1='$ ' cannam@126: PS2='> ' cannam@126: PS4='+ ' cannam@126: cannam@126: # NLS nuisances. cannam@126: LC_ALL=C cannam@126: export LC_ALL cannam@126: LANGUAGE=C cannam@126: export LANGUAGE cannam@126: cannam@126: # CDPATH. cannam@126: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@126: cannam@126: # Use a proper internal environment variable to ensure we don't fall cannam@126: # into an infinite loop, continuously re-executing ourselves. cannam@126: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then cannam@126: _as_can_reexec=no; export _as_can_reexec; cannam@126: # We cannot yet assume a decent shell, so we have to provide a cannam@126: # neutralization value for shells without unset; and this also cannam@126: # works around shells that cannot unset nonexistent variables. cannam@126: # Preserve -v and -x to the replacement shell. cannam@126: BASH_ENV=/dev/null cannam@126: ENV=/dev/null cannam@126: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@126: case $- in # (((( cannam@126: *v*x* | *x*v* ) as_opts=-vx ;; cannam@126: *v* ) as_opts=-v ;; cannam@126: *x* ) as_opts=-x ;; cannam@126: * ) as_opts= ;; cannam@126: esac cannam@126: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@126: # Admittedly, this is quite paranoid, since all the known shells bail cannam@126: # out after a failed `exec'. cannam@126: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@126: as_fn_exit 255 cannam@126: fi cannam@126: # We don't want this to propagate to other subprocesses. cannam@126: { _as_can_reexec=; unset _as_can_reexec;} cannam@126: if test "x$CONFIG_SHELL" = x; then cannam@126: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : cannam@126: emulate sh cannam@126: NULLCMD=: cannam@126: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which cannam@126: # is contrary to our usage. Disable this feature. cannam@126: alias -g '\${1+\"\$@\"}'='\"\$@\"' cannam@126: setopt NO_GLOB_SUBST cannam@126: else cannam@126: case \`(set -o) 2>/dev/null\` in #( cannam@126: *posix*) : cannam@126: set -o posix ;; #( cannam@126: *) : cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: " cannam@126: as_required="as_fn_return () { (exit \$1); } cannam@126: as_fn_success () { as_fn_return 0; } cannam@126: as_fn_failure () { as_fn_return 1; } cannam@126: as_fn_ret_success () { return 0; } cannam@126: as_fn_ret_failure () { return 1; } cannam@126: cannam@126: exitcode=0 cannam@126: as_fn_success || { exitcode=1; echo as_fn_success failed.; } cannam@126: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } cannam@126: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } cannam@126: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } cannam@126: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : cannam@126: cannam@126: else cannam@126: exitcode=1; echo positional parameters were not saved. cannam@126: fi cannam@126: test x\$exitcode = x0 || exit 1 cannam@126: test -x / || exit 1" cannam@126: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO cannam@126: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO cannam@126: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && cannam@126: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 cannam@126: test \$(( 1 + 1 )) = 2 || exit 1 cannam@126: cannam@126: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( cannam@126: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@126: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO cannam@126: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO cannam@126: PATH=/empty FPATH=/empty; export PATH FPATH cannam@126: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ cannam@126: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" cannam@126: if (eval "$as_required") 2>/dev/null; then : cannam@126: as_have_required=yes cannam@126: else cannam@126: as_have_required=no cannam@126: fi cannam@126: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : cannam@126: cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: as_found=false cannam@126: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: as_found=: cannam@126: case $as_dir in #( cannam@126: /*) cannam@126: for as_base in sh bash ksh sh5; do cannam@126: # Try only shells that exist, to save several forks. cannam@126: as_shell=$as_dir/$as_base cannam@126: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && cannam@126: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@126: CONFIG_SHELL=$as_shell as_have_required=yes cannam@126: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@126: break 2 cannam@126: fi cannam@126: fi cannam@126: done;; cannam@126: esac cannam@126: as_found=false cannam@126: done cannam@126: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && cannam@126: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : cannam@126: CONFIG_SHELL=$SHELL as_have_required=yes cannam@126: fi; } cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: cannam@126: if test "x$CONFIG_SHELL" != x; then : cannam@126: export CONFIG_SHELL cannam@126: # We cannot yet assume a decent shell, so we have to provide a cannam@126: # neutralization value for shells without unset; and this also cannam@126: # works around shells that cannot unset nonexistent variables. cannam@126: # Preserve -v and -x to the replacement shell. cannam@126: BASH_ENV=/dev/null cannam@126: ENV=/dev/null cannam@126: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@126: case $- in # (((( cannam@126: *v*x* | *x*v* ) as_opts=-vx ;; cannam@126: *v* ) as_opts=-v ;; cannam@126: *x* ) as_opts=-x ;; cannam@126: * ) as_opts= ;; cannam@126: esac cannam@126: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@126: # Admittedly, this is quite paranoid, since all the known shells bail cannam@126: # out after a failed `exec'. cannam@126: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@126: exit 255 cannam@126: fi cannam@126: cannam@126: if test x$as_have_required = xno; then : cannam@126: $as_echo "$0: This script requires a shell more modern than all" cannam@126: $as_echo "$0: the shells that I found on your system." cannam@126: if test x${ZSH_VERSION+set} = xset ; then cannam@126: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" cannam@126: $as_echo "$0: be upgraded to zsh 4.3.4 or later." cannam@126: else cannam@126: $as_echo "$0: Please tell bug-autoconf@gnu.org and cannam@126: $0: erikd@mega-nerd.com about your system, including any cannam@126: $0: error possibly output before this message. Then install cannam@126: $0: a modern shell, or manually run the script under such a cannam@126: $0: shell if you do have one." cannam@126: fi cannam@126: exit 1 cannam@126: fi cannam@126: fi cannam@126: fi cannam@126: SHELL=${CONFIG_SHELL-/bin/sh} cannam@126: export SHELL cannam@126: # Unset more variables known to interfere with behavior of common tools. cannam@126: CLICOLOR_FORCE= GREP_OPTIONS= cannam@126: unset CLICOLOR_FORCE GREP_OPTIONS cannam@126: cannam@126: ## --------------------- ## cannam@126: ## M4sh Shell Functions. ## cannam@126: ## --------------------- ## cannam@126: # as_fn_unset VAR cannam@126: # --------------- cannam@126: # Portably unset VAR. cannam@126: as_fn_unset () cannam@126: { cannam@126: { eval $1=; unset $1;} cannam@126: } cannam@126: as_unset=as_fn_unset cannam@126: cannam@126: # as_fn_set_status STATUS cannam@126: # ----------------------- cannam@126: # Set $? to STATUS, without forking. cannam@126: as_fn_set_status () cannam@126: { cannam@126: return $1 cannam@126: } # as_fn_set_status cannam@126: cannam@126: # as_fn_exit STATUS cannam@126: # ----------------- cannam@126: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@126: as_fn_exit () cannam@126: { cannam@126: set +e cannam@126: as_fn_set_status $1 cannam@126: exit $1 cannam@126: } # as_fn_exit cannam@126: cannam@126: # as_fn_mkdir_p cannam@126: # ------------- cannam@126: # Create "$as_dir" as a directory, including parents if necessary. cannam@126: as_fn_mkdir_p () cannam@126: { cannam@126: cannam@126: case $as_dir in #( cannam@126: -*) as_dir=./$as_dir;; cannam@126: esac cannam@126: test -d "$as_dir" || eval $as_mkdir_p || { cannam@126: as_dirs= cannam@126: while :; do cannam@126: case $as_dir in #( cannam@126: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@126: *) as_qdir=$as_dir;; cannam@126: esac cannam@126: as_dirs="'$as_qdir' $as_dirs" cannam@126: as_dir=`$as_dirname -- "$as_dir" || cannam@126: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@126: X"$as_dir" : 'X\(//\)$' \| \ cannam@126: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$as_dir" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: test -d "$as_dir" && break cannam@126: done cannam@126: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@126: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@126: cannam@126: cannam@126: } # as_fn_mkdir_p cannam@126: cannam@126: # as_fn_executable_p FILE cannam@126: # ----------------------- cannam@126: # Test if FILE is an executable regular file. cannam@126: as_fn_executable_p () cannam@126: { cannam@126: test -f "$1" && test -x "$1" cannam@126: } # as_fn_executable_p cannam@126: # as_fn_append VAR VALUE cannam@126: # ---------------------- cannam@126: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@126: # advantage of any shell optimizations that allow amortized linear growth over cannam@126: # repeated appends, instead of the typical quadratic growth present in naive cannam@126: # implementations. cannam@126: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@126: eval 'as_fn_append () cannam@126: { cannam@126: eval $1+=\$2 cannam@126: }' cannam@126: else cannam@126: as_fn_append () cannam@126: { cannam@126: eval $1=\$$1\$2 cannam@126: } cannam@126: fi # as_fn_append cannam@126: cannam@126: # as_fn_arith ARG... cannam@126: # ------------------ cannam@126: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@126: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@126: # must be portable across $(()) and expr. cannam@126: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@126: eval 'as_fn_arith () cannam@126: { cannam@126: as_val=$(( $* )) cannam@126: }' cannam@126: else cannam@126: as_fn_arith () cannam@126: { cannam@126: as_val=`expr "$@" || test $? -eq 1` cannam@126: } cannam@126: fi # as_fn_arith cannam@126: cannam@126: cannam@126: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@126: # ---------------------------------------- cannam@126: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@126: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@126: # script with STATUS, using 1 if that was 0. cannam@126: as_fn_error () cannam@126: { cannam@126: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@126: if test "$4"; then cannam@126: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@126: fi cannam@126: $as_echo "$as_me: error: $2" >&2 cannam@126: as_fn_exit $as_status cannam@126: } # as_fn_error cannam@126: cannam@126: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@126: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@126: as_expr=expr cannam@126: else cannam@126: as_expr=false cannam@126: fi cannam@126: cannam@126: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@126: as_basename=basename cannam@126: else cannam@126: as_basename=false cannam@126: fi cannam@126: cannam@126: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@126: as_dirname=dirname cannam@126: else cannam@126: as_dirname=false cannam@126: fi cannam@126: cannam@126: as_me=`$as_basename -- "$0" || cannam@126: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@126: X"$0" : 'X\(//\)$' \| \ cannam@126: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X/"$0" | cannam@126: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\/\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\/\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: cannam@126: # Avoid depending upon Character Ranges. cannam@126: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@126: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@126: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@126: as_cr_digits='0123456789' cannam@126: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@126: cannam@126: cannam@126: as_lineno_1=$LINENO as_lineno_1a=$LINENO cannam@126: as_lineno_2=$LINENO as_lineno_2a=$LINENO cannam@126: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && cannam@126: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { cannam@126: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) cannam@126: sed -n ' cannam@126: p cannam@126: /[$]LINENO/= cannam@126: ' <$as_myself | cannam@126: sed ' cannam@126: s/[$]LINENO.*/&-/ cannam@126: t lineno cannam@126: b cannam@126: :lineno cannam@126: N cannam@126: :loop cannam@126: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ cannam@126: t loop cannam@126: s/-\n.*// cannam@126: ' >$as_me.lineno && cannam@126: chmod +x "$as_me.lineno" || cannam@126: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } cannam@126: cannam@126: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have cannam@126: # already done that, so ensure we don't try to do so again and fall cannam@126: # in an infinite loop. This has already happened in practice. cannam@126: _as_can_reexec=no; export _as_can_reexec cannam@126: # Don't try to exec as it changes $[0], causing all sort of problems cannam@126: # (the dirname of $[0] is not the place where we might find the cannam@126: # original and so on. Autoconf is especially sensitive to this). cannam@126: . "./$as_me.lineno" cannam@126: # Exit status is that of the last command. cannam@126: exit cannam@126: } cannam@126: cannam@126: ECHO_C= ECHO_N= ECHO_T= cannam@126: case `echo -n x` in #((((( cannam@126: -n*) cannam@126: case `echo 'xy\c'` in cannam@126: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@126: xy) ECHO_C='\c';; cannam@126: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@126: ECHO_T=' ';; cannam@126: esac;; cannam@126: *) cannam@126: ECHO_N='-n';; cannam@126: esac cannam@126: cannam@126: rm -f conf$$ conf$$.exe conf$$.file cannam@126: if test -d conf$$.dir; then cannam@126: rm -f conf$$.dir/conf$$.file cannam@126: else cannam@126: rm -f conf$$.dir cannam@126: mkdir conf$$.dir 2>/dev/null cannam@126: fi cannam@126: if (echo >conf$$.file) 2>/dev/null; then cannam@126: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@126: as_ln_s='ln -s' cannam@126: # ... but there are two gotchas: cannam@126: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@126: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@126: # In both cases, we have to default to `cp -pR'. cannam@126: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@126: as_ln_s='cp -pR' cannam@126: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@126: as_ln_s=ln cannam@126: else cannam@126: as_ln_s='cp -pR' cannam@126: fi cannam@126: else cannam@126: as_ln_s='cp -pR' cannam@126: fi cannam@126: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@126: rmdir conf$$.dir 2>/dev/null cannam@126: cannam@126: if mkdir -p . 2>/dev/null; then cannam@126: as_mkdir_p='mkdir -p "$as_dir"' cannam@126: else cannam@126: test -d ./-p && rmdir ./-p cannam@126: as_mkdir_p=false cannam@126: fi cannam@126: cannam@126: as_test_x='test -x' cannam@126: as_executable_p=as_fn_executable_p cannam@126: cannam@126: # Sed expression to map a string onto a valid CPP name. cannam@126: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@126: cannam@126: # Sed expression to map a string onto a valid variable name. cannam@126: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@126: cannam@126: SHELL=${CONFIG_SHELL-/bin/sh} cannam@126: cannam@126: cannam@126: test -n "$DJDIR" || exec 7<&0 &1 cannam@126: cannam@126: # Name of the host. cannam@126: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, cannam@126: # so uname gets run too. cannam@126: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@126: cannam@126: # cannam@126: # Initializations. cannam@126: # cannam@126: ac_default_prefix=/usr/local cannam@126: ac_clean_files= cannam@126: ac_config_libobj_dir=. cannam@126: LIBOBJS= cannam@126: cross_compiling=no cannam@126: subdirs= cannam@126: MFLAGS= cannam@126: MAKEFLAGS= cannam@126: cannam@126: # Identity of this package. cannam@126: PACKAGE_NAME='libsamplerate' cannam@126: PACKAGE_TARNAME='libsamplerate' cannam@126: PACKAGE_VERSION='0.1.9' cannam@126: PACKAGE_STRING='libsamplerate 0.1.9' cannam@126: PACKAGE_BUGREPORT='erikd@mega-nerd.com' cannam@126: PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/' cannam@126: cannam@126: ac_unique_file="src/samplerate.c" cannam@126: # Factoring default headers for most tests. cannam@126: ac_includes_default="\ cannam@126: #include cannam@126: #ifdef HAVE_SYS_TYPES_H cannam@126: # include cannam@126: #endif cannam@126: #ifdef HAVE_SYS_STAT_H cannam@126: # include cannam@126: #endif cannam@126: #ifdef STDC_HEADERS cannam@126: # include cannam@126: # include cannam@126: #else cannam@126: # ifdef HAVE_STDLIB_H cannam@126: # include cannam@126: # endif cannam@126: #endif cannam@126: #ifdef HAVE_STRING_H cannam@126: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H cannam@126: # include cannam@126: # endif cannam@126: # include cannam@126: #endif cannam@126: #ifdef HAVE_STRINGS_H cannam@126: # include cannam@126: #endif cannam@126: #ifdef HAVE_INTTYPES_H cannam@126: # include cannam@126: #endif cannam@126: #ifdef HAVE_STDINT_H cannam@126: # include cannam@126: #endif cannam@126: #ifdef HAVE_UNISTD_H cannam@126: # include cannam@126: #endif" cannam@126: cannam@126: ac_subst_vars='am__EXEEXT_FALSE cannam@126: am__EXEEXT_TRUE cannam@126: LTLIBOBJS cannam@126: LIBOBJS cannam@126: ALSA_LIBS cannam@126: HAVE_SNDFILE cannam@126: HAVE_FFTW3 cannam@126: GCC_MAJOR_VERSION cannam@126: COMPILER_IS_GCC cannam@126: OS_SPECIFIC_LINKS cannam@126: OS_SPECIFIC_INCLUDES cannam@126: SHARED_VERSION_INFO cannam@126: SHLIB_VERSION_ARG cannam@126: htmldocdir cannam@126: FFTW3_LIBS cannam@126: FFTW3_CFLAGS cannam@126: SNDFILE_LIBS cannam@126: SNDFILE_CFLAGS cannam@126: PKG_CONFIG_LIBDIR cannam@126: PKG_CONFIG_PATH cannam@126: PKG_CONFIG cannam@126: PEXPORTS cannam@126: DLLWRAP cannam@126: RC cannam@126: CXXCPP cannam@126: CPP cannam@126: LT_SYS_LIBRARY_PATH cannam@126: OTOOL64 cannam@126: OTOOL cannam@126: LIPO cannam@126: NMEDIT cannam@126: DSYMUTIL cannam@126: MANIFEST_TOOL cannam@126: RANLIB cannam@126: ac_ct_AR cannam@126: AR cannam@126: DLLTOOL cannam@126: OBJDUMP cannam@126: LN_S cannam@126: NM cannam@126: ac_ct_DUMPBIN cannam@126: DUMPBIN cannam@126: LD cannam@126: FGREP cannam@126: EGREP cannam@126: GREP cannam@126: LIBTOOL cannam@126: SED cannam@126: am__fastdepCXX_FALSE cannam@126: am__fastdepCXX_TRUE cannam@126: CXXDEPMODE cannam@126: ac_ct_CXX cannam@126: CXXFLAGS cannam@126: CXX cannam@126: am__fastdepCC_FALSE cannam@126: am__fastdepCC_TRUE cannam@126: CCDEPMODE cannam@126: am__nodep cannam@126: AMDEPBACKSLASH cannam@126: AMDEP_FALSE cannam@126: AMDEP_TRUE cannam@126: am__quote cannam@126: am__include cannam@126: DEPDIR cannam@126: OBJEXT cannam@126: EXEEXT cannam@126: ac_ct_CC cannam@126: CPPFLAGS cannam@126: LDFLAGS cannam@126: CFLAGS cannam@126: CC cannam@126: ACLOCAL_AMFLAGS cannam@126: AM_BACKSLASH cannam@126: AM_DEFAULT_VERBOSITY cannam@126: AM_DEFAULT_V cannam@126: AM_V cannam@126: am__untar cannam@126: am__tar cannam@126: AMTAR cannam@126: am__leading_dot cannam@126: SET_MAKE cannam@126: AWK cannam@126: mkdir_p cannam@126: MKDIR_P cannam@126: INSTALL_STRIP_PROGRAM cannam@126: STRIP cannam@126: install_sh cannam@126: MAKEINFO cannam@126: AUTOHEADER cannam@126: AUTOMAKE cannam@126: AUTOCONF cannam@126: ACLOCAL cannam@126: VERSION cannam@126: PACKAGE cannam@126: CYGPATH_W cannam@126: am__isrc cannam@126: INSTALL_DATA cannam@126: INSTALL_SCRIPT cannam@126: INSTALL_PROGRAM cannam@126: target_os cannam@126: target_vendor cannam@126: target_cpu cannam@126: target cannam@126: host_os cannam@126: host_vendor cannam@126: host_cpu cannam@126: host cannam@126: build_os cannam@126: build_vendor cannam@126: build_cpu cannam@126: build cannam@126: target_alias cannam@126: host_alias cannam@126: build_alias cannam@126: LIBS cannam@126: ECHO_T cannam@126: ECHO_N cannam@126: ECHO_C cannam@126: DEFS cannam@126: mandir cannam@126: localedir cannam@126: libdir cannam@126: psdir cannam@126: pdfdir cannam@126: dvidir cannam@126: htmldir cannam@126: infodir cannam@126: docdir cannam@126: oldincludedir cannam@126: includedir cannam@126: runstatedir cannam@126: localstatedir cannam@126: sharedstatedir cannam@126: sysconfdir cannam@126: datadir cannam@126: datarootdir cannam@126: libexecdir cannam@126: sbindir cannam@126: bindir cannam@126: program_transform_name cannam@126: prefix cannam@126: exec_prefix cannam@126: PACKAGE_URL cannam@126: PACKAGE_BUGREPORT cannam@126: PACKAGE_STRING cannam@126: PACKAGE_VERSION cannam@126: PACKAGE_TARNAME cannam@126: PACKAGE_NAME cannam@126: PATH_SEPARATOR cannam@126: SHELL' cannam@126: ac_subst_files='' cannam@126: ac_user_opts=' cannam@126: enable_option_checking cannam@126: enable_silent_rules cannam@126: enable_dependency_tracking cannam@126: enable_shared cannam@126: enable_static cannam@126: with_pic cannam@126: enable_fast_install cannam@126: with_aix_soname cannam@126: with_gnu_ld cannam@126: with_sysroot cannam@126: enable_libtool_lock cannam@126: enable_gcc_werror cannam@126: enable_gcc_pipe cannam@126: enable_gcc_opt cannam@126: enable_fftw cannam@126: enable_cpu_clip cannam@126: enable_sndfile cannam@126: ' cannam@126: ac_precious_vars='build_alias cannam@126: host_alias cannam@126: target_alias cannam@126: CC cannam@126: CFLAGS cannam@126: LDFLAGS cannam@126: LIBS cannam@126: CPPFLAGS cannam@126: CXX cannam@126: CXXFLAGS cannam@126: CCC cannam@126: LT_SYS_LIBRARY_PATH cannam@126: CPP cannam@126: CXXCPP cannam@126: PKG_CONFIG cannam@126: PKG_CONFIG_PATH cannam@126: PKG_CONFIG_LIBDIR cannam@126: SNDFILE_CFLAGS cannam@126: SNDFILE_LIBS cannam@126: FFTW3_CFLAGS cannam@126: FFTW3_LIBS' cannam@126: cannam@126: cannam@126: # Initialize some variables set by options. cannam@126: ac_init_help= cannam@126: ac_init_version=false cannam@126: ac_unrecognized_opts= cannam@126: ac_unrecognized_sep= cannam@126: # The variables have the same names as the options, with cannam@126: # dashes changed to underlines. cannam@126: cache_file=/dev/null cannam@126: exec_prefix=NONE cannam@126: no_create= cannam@126: no_recursion= cannam@126: prefix=NONE cannam@126: program_prefix=NONE cannam@126: program_suffix=NONE cannam@126: program_transform_name=s,x,x, cannam@126: silent= cannam@126: site= cannam@126: srcdir= cannam@126: verbose= cannam@126: x_includes=NONE cannam@126: x_libraries=NONE cannam@126: cannam@126: # Installation directory options. cannam@126: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@126: # and all the variables that are supposed to be based on exec_prefix cannam@126: # by default will actually change. cannam@126: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@126: # (The list follows the same order as the GNU Coding Standards.) cannam@126: bindir='${exec_prefix}/bin' cannam@126: sbindir='${exec_prefix}/sbin' cannam@126: libexecdir='${exec_prefix}/libexec' cannam@126: datarootdir='${prefix}/share' cannam@126: datadir='${datarootdir}' cannam@126: sysconfdir='${prefix}/etc' cannam@126: sharedstatedir='${prefix}/com' cannam@126: localstatedir='${prefix}/var' cannam@126: runstatedir='${localstatedir}/run' cannam@126: includedir='${prefix}/include' cannam@126: oldincludedir='/usr/include' cannam@126: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' cannam@126: infodir='${datarootdir}/info' cannam@126: htmldir='${docdir}' cannam@126: dvidir='${docdir}' cannam@126: pdfdir='${docdir}' cannam@126: psdir='${docdir}' cannam@126: libdir='${exec_prefix}/lib' cannam@126: localedir='${datarootdir}/locale' cannam@126: mandir='${datarootdir}/man' cannam@126: cannam@126: ac_prev= cannam@126: ac_dashdash= cannam@126: for ac_option cannam@126: do cannam@126: # If the previous option needs an argument, assign it. cannam@126: if test -n "$ac_prev"; then cannam@126: eval $ac_prev=\$ac_option cannam@126: ac_prev= cannam@126: continue cannam@126: fi cannam@126: cannam@126: case $ac_option in cannam@126: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; cannam@126: *=) ac_optarg= ;; cannam@126: *) ac_optarg=yes ;; cannam@126: esac cannam@126: cannam@126: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@126: cannam@126: case $ac_dashdash$ac_option in cannam@126: --) cannam@126: ac_dashdash=yes ;; cannam@126: cannam@126: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@126: ac_prev=bindir ;; cannam@126: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@126: bindir=$ac_optarg ;; cannam@126: cannam@126: -build | --build | --buil | --bui | --bu) cannam@126: ac_prev=build_alias ;; cannam@126: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@126: build_alias=$ac_optarg ;; cannam@126: cannam@126: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@126: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@126: ac_prev=cache_file ;; cannam@126: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@126: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@126: cache_file=$ac_optarg ;; cannam@126: cannam@126: --config-cache | -C) cannam@126: cache_file=config.cache ;; cannam@126: cannam@126: -datadir | --datadir | --datadi | --datad) cannam@126: ac_prev=datadir ;; cannam@126: -datadir=* | --datadir=* | --datadi=* | --datad=*) cannam@126: datadir=$ac_optarg ;; cannam@126: cannam@126: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ cannam@126: | --dataroo | --dataro | --datar) cannam@126: ac_prev=datarootdir ;; cannam@126: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ cannam@126: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) cannam@126: datarootdir=$ac_optarg ;; cannam@126: cannam@126: -disable-* | --disable-*) cannam@126: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@126: # Reject names that are not valid shell variable names. cannam@126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@126: as_fn_error $? "invalid feature name: $ac_useropt" cannam@126: ac_useropt_orig=$ac_useropt cannam@126: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@126: case $ac_user_opts in cannam@126: *" cannam@126: "enable_$ac_useropt" cannam@126: "*) ;; cannam@126: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" cannam@126: ac_unrecognized_sep=', ';; cannam@126: esac cannam@126: eval enable_$ac_useropt=no ;; cannam@126: cannam@126: -docdir | --docdir | --docdi | --doc | --do) cannam@126: ac_prev=docdir ;; cannam@126: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) cannam@126: docdir=$ac_optarg ;; cannam@126: cannam@126: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) cannam@126: ac_prev=dvidir ;; cannam@126: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) cannam@126: dvidir=$ac_optarg ;; cannam@126: cannam@126: -enable-* | --enable-*) cannam@126: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@126: # Reject names that are not valid shell variable names. cannam@126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@126: as_fn_error $? "invalid feature name: $ac_useropt" cannam@126: ac_useropt_orig=$ac_useropt cannam@126: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@126: case $ac_user_opts in cannam@126: *" cannam@126: "enable_$ac_useropt" cannam@126: "*) ;; cannam@126: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" cannam@126: ac_unrecognized_sep=', ';; cannam@126: esac cannam@126: eval enable_$ac_useropt=\$ac_optarg ;; cannam@126: cannam@126: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@126: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@126: | --exec | --exe | --ex) cannam@126: ac_prev=exec_prefix ;; cannam@126: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@126: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@126: | --exec=* | --exe=* | --ex=*) cannam@126: exec_prefix=$ac_optarg ;; cannam@126: cannam@126: -gas | --gas | --ga | --g) cannam@126: # Obsolete; use --with-gas. cannam@126: with_gas=yes ;; cannam@126: cannam@126: -help | --help | --hel | --he | -h) cannam@126: ac_init_help=long ;; cannam@126: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@126: ac_init_help=recursive ;; cannam@126: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@126: ac_init_help=short ;; cannam@126: cannam@126: -host | --host | --hos | --ho) cannam@126: ac_prev=host_alias ;; cannam@126: -host=* | --host=* | --hos=* | --ho=*) cannam@126: host_alias=$ac_optarg ;; cannam@126: cannam@126: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) cannam@126: ac_prev=htmldir ;; cannam@126: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ cannam@126: | --ht=*) cannam@126: htmldir=$ac_optarg ;; cannam@126: cannam@126: -includedir | --includedir | --includedi | --included | --include \ cannam@126: | --includ | --inclu | --incl | --inc) cannam@126: ac_prev=includedir ;; cannam@126: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@126: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@126: includedir=$ac_optarg ;; cannam@126: cannam@126: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@126: ac_prev=infodir ;; cannam@126: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@126: infodir=$ac_optarg ;; cannam@126: cannam@126: -libdir | --libdir | --libdi | --libd) cannam@126: ac_prev=libdir ;; cannam@126: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@126: libdir=$ac_optarg ;; cannam@126: cannam@126: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@126: | --libexe | --libex | --libe) cannam@126: ac_prev=libexecdir ;; cannam@126: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@126: | --libexe=* | --libex=* | --libe=*) cannam@126: libexecdir=$ac_optarg ;; cannam@126: cannam@126: -localedir | --localedir | --localedi | --localed | --locale) cannam@126: ac_prev=localedir ;; cannam@126: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) cannam@126: localedir=$ac_optarg ;; cannam@126: cannam@126: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@126: | --localstate | --localstat | --localsta | --localst | --locals) cannam@126: ac_prev=localstatedir ;; cannam@126: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@126: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) cannam@126: localstatedir=$ac_optarg ;; cannam@126: cannam@126: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@126: ac_prev=mandir ;; cannam@126: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@126: mandir=$ac_optarg ;; cannam@126: cannam@126: -nfp | --nfp | --nf) cannam@126: # Obsolete; use --without-fp. cannam@126: with_fp=no ;; cannam@126: cannam@126: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@126: | --no-cr | --no-c | -n) cannam@126: no_create=yes ;; cannam@126: cannam@126: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@126: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@126: no_recursion=yes ;; cannam@126: cannam@126: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@126: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@126: | --oldin | --oldi | --old | --ol | --o) cannam@126: ac_prev=oldincludedir ;; cannam@126: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@126: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@126: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@126: oldincludedir=$ac_optarg ;; cannam@126: cannam@126: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@126: ac_prev=prefix ;; cannam@126: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@126: prefix=$ac_optarg ;; cannam@126: cannam@126: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@126: | --program-pre | --program-pr | --program-p) cannam@126: ac_prev=program_prefix ;; cannam@126: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@126: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@126: program_prefix=$ac_optarg ;; cannam@126: cannam@126: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@126: | --program-suf | --program-su | --program-s) cannam@126: ac_prev=program_suffix ;; cannam@126: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@126: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@126: program_suffix=$ac_optarg ;; cannam@126: cannam@126: -program-transform-name | --program-transform-name \ cannam@126: | --program-transform-nam | --program-transform-na \ cannam@126: | --program-transform-n | --program-transform- \ cannam@126: | --program-transform | --program-transfor \ cannam@126: | --program-transfo | --program-transf \ cannam@126: | --program-trans | --program-tran \ cannam@126: | --progr-tra | --program-tr | --program-t) cannam@126: ac_prev=program_transform_name ;; cannam@126: -program-transform-name=* | --program-transform-name=* \ cannam@126: | --program-transform-nam=* | --program-transform-na=* \ cannam@126: | --program-transform-n=* | --program-transform-=* \ cannam@126: | --program-transform=* | --program-transfor=* \ cannam@126: | --program-transfo=* | --program-transf=* \ cannam@126: | --program-trans=* | --program-tran=* \ cannam@126: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@126: program_transform_name=$ac_optarg ;; cannam@126: cannam@126: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) cannam@126: ac_prev=pdfdir ;; cannam@126: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) cannam@126: pdfdir=$ac_optarg ;; cannam@126: cannam@126: -psdir | --psdir | --psdi | --psd | --ps) cannam@126: ac_prev=psdir ;; cannam@126: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) cannam@126: psdir=$ac_optarg ;; cannam@126: cannam@126: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@126: | -silent | --silent | --silen | --sile | --sil) cannam@126: silent=yes ;; cannam@126: cannam@126: -runstatedir | --runstatedir | --runstatedi | --runstated \ cannam@126: | --runstate | --runstat | --runsta | --runst | --runs \ cannam@126: | --run | --ru | --r) cannam@126: ac_prev=runstatedir ;; cannam@126: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ cannam@126: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ cannam@126: | --run=* | --ru=* | --r=*) cannam@126: runstatedir=$ac_optarg ;; cannam@126: cannam@126: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@126: ac_prev=sbindir ;; cannam@126: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@126: | --sbi=* | --sb=*) cannam@126: sbindir=$ac_optarg ;; cannam@126: cannam@126: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@126: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@126: | --sharedst | --shareds | --shared | --share | --shar \ cannam@126: | --sha | --sh) cannam@126: ac_prev=sharedstatedir ;; cannam@126: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@126: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@126: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@126: | --sha=* | --sh=*) cannam@126: sharedstatedir=$ac_optarg ;; cannam@126: cannam@126: -site | --site | --sit) cannam@126: ac_prev=site ;; cannam@126: -site=* | --site=* | --sit=*) cannam@126: site=$ac_optarg ;; cannam@126: cannam@126: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@126: ac_prev=srcdir ;; cannam@126: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@126: srcdir=$ac_optarg ;; cannam@126: cannam@126: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@126: | --syscon | --sysco | --sysc | --sys | --sy) cannam@126: ac_prev=sysconfdir ;; cannam@126: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@126: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@126: sysconfdir=$ac_optarg ;; cannam@126: cannam@126: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@126: ac_prev=target_alias ;; cannam@126: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@126: target_alias=$ac_optarg ;; cannam@126: cannam@126: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@126: verbose=yes ;; cannam@126: cannam@126: -version | --version | --versio | --versi | --vers | -V) cannam@126: ac_init_version=: ;; cannam@126: cannam@126: -with-* | --with-*) cannam@126: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@126: # Reject names that are not valid shell variable names. cannam@126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@126: as_fn_error $? "invalid package name: $ac_useropt" cannam@126: ac_useropt_orig=$ac_useropt cannam@126: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@126: case $ac_user_opts in cannam@126: *" cannam@126: "with_$ac_useropt" cannam@126: "*) ;; cannam@126: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" cannam@126: ac_unrecognized_sep=', ';; cannam@126: esac cannam@126: eval with_$ac_useropt=\$ac_optarg ;; cannam@126: cannam@126: -without-* | --without-*) cannam@126: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@126: # Reject names that are not valid shell variable names. cannam@126: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@126: as_fn_error $? "invalid package name: $ac_useropt" cannam@126: ac_useropt_orig=$ac_useropt cannam@126: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@126: case $ac_user_opts in cannam@126: *" cannam@126: "with_$ac_useropt" cannam@126: "*) ;; cannam@126: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" cannam@126: ac_unrecognized_sep=', ';; cannam@126: esac cannam@126: eval with_$ac_useropt=no ;; cannam@126: cannam@126: --x) cannam@126: # Obsolete; use --with-x. cannam@126: with_x=yes ;; cannam@126: cannam@126: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@126: | --x-incl | --x-inc | --x-in | --x-i) cannam@126: ac_prev=x_includes ;; cannam@126: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@126: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@126: x_includes=$ac_optarg ;; cannam@126: cannam@126: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@126: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@126: ac_prev=x_libraries ;; cannam@126: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@126: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@126: x_libraries=$ac_optarg ;; cannam@126: cannam@126: -*) as_fn_error $? "unrecognized option: \`$ac_option' cannam@126: Try \`$0 --help' for more information" cannam@126: ;; cannam@126: cannam@126: *=*) cannam@126: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@126: # Reject names that are not valid shell variable names. cannam@126: case $ac_envvar in #( cannam@126: '' | [0-9]* | *[!_$as_cr_alnum]* ) cannam@126: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; cannam@126: esac cannam@126: eval $ac_envvar=\$ac_optarg cannam@126: export $ac_envvar ;; cannam@126: cannam@126: *) cannam@126: # FIXME: should be removed in autoconf 3.0. cannam@126: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@126: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@126: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@126: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" cannam@126: ;; cannam@126: cannam@126: esac cannam@126: done cannam@126: cannam@126: if test -n "$ac_prev"; then cannam@126: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@126: as_fn_error $? "missing argument to $ac_option" cannam@126: fi cannam@126: cannam@126: if test -n "$ac_unrecognized_opts"; then cannam@126: case $enable_option_checking in cannam@126: no) ;; cannam@126: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; cannam@126: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: # Check all directory arguments for consistency. cannam@126: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ cannam@126: datadir sysconfdir sharedstatedir localstatedir includedir \ cannam@126: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ cannam@126: libdir localedir mandir runstatedir cannam@126: do cannam@126: eval ac_val=\$$ac_var cannam@126: # Remove trailing slashes. cannam@126: case $ac_val in cannam@126: */ ) cannam@126: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` cannam@126: eval $ac_var=\$ac_val;; cannam@126: esac cannam@126: # Be sure to have absolute directory names. cannam@126: case $ac_val in cannam@126: [\\/$]* | ?:[\\/]* ) continue;; cannam@126: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; cannam@126: esac cannam@126: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" cannam@126: done cannam@126: cannam@126: # There might be people who depend on the old broken behavior: `$host' cannam@126: # used to hold the argument of --host etc. cannam@126: # FIXME: To remove some day. cannam@126: build=$build_alias cannam@126: host=$host_alias cannam@126: target=$target_alias cannam@126: cannam@126: # FIXME: To remove some day. cannam@126: if test "x$host_alias" != x; then cannam@126: if test "x$build_alias" = x; then cannam@126: cross_compiling=maybe cannam@126: elif test "x$build_alias" != "x$host_alias"; then cannam@126: cross_compiling=yes cannam@126: fi cannam@126: fi cannam@126: cannam@126: ac_tool_prefix= cannam@126: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@126: cannam@126: test "$silent" = yes && exec 6>/dev/null cannam@126: cannam@126: cannam@126: ac_pwd=`pwd` && test -n "$ac_pwd" && cannam@126: ac_ls_di=`ls -di .` && cannam@126: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || cannam@126: as_fn_error $? "working directory cannot be determined" cannam@126: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || cannam@126: as_fn_error $? "pwd does not report name of working directory" cannam@126: cannam@126: cannam@126: # Find the source files, if location was not specified. cannam@126: if test -z "$srcdir"; then cannam@126: ac_srcdir_defaulted=yes cannam@126: # Try the directory containing this script, then the parent directory. cannam@126: ac_confdir=`$as_dirname -- "$as_myself" || cannam@126: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$as_myself" : 'X\(//\)[^/]' \| \ cannam@126: X"$as_myself" : 'X\(//\)$' \| \ cannam@126: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$as_myself" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: srcdir=$ac_confdir cannam@126: if test ! -r "$srcdir/$ac_unique_file"; then cannam@126: srcdir=.. cannam@126: fi cannam@126: else cannam@126: ac_srcdir_defaulted=no cannam@126: fi cannam@126: if test ! -r "$srcdir/$ac_unique_file"; then cannam@126: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." cannam@126: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" cannam@126: fi cannam@126: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" cannam@126: ac_abs_confdir=`( cannam@126: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" cannam@126: pwd)` cannam@126: # When building in place, set srcdir=. cannam@126: if test "$ac_abs_confdir" = "$ac_pwd"; then cannam@126: srcdir=. cannam@126: fi cannam@126: # Remove unnecessary trailing slashes from srcdir. cannam@126: # Double slashes in file names in object file debugging info cannam@126: # mess up M-x gdb in Emacs. cannam@126: case $srcdir in cannam@126: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; cannam@126: esac cannam@126: for ac_var in $ac_precious_vars; do cannam@126: eval ac_env_${ac_var}_set=\${${ac_var}+set} cannam@126: eval ac_env_${ac_var}_value=\$${ac_var} cannam@126: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} cannam@126: eval ac_cv_env_${ac_var}_value=\$${ac_var} cannam@126: done cannam@126: cannam@126: # cannam@126: # Report the --help message. cannam@126: # cannam@126: if test "$ac_init_help" = "long"; then cannam@126: # Omit some internal or obsolete options to make the list less imposing. cannam@126: # This message is too long to be a string in the A/UX 3.1 sh. cannam@126: cat <<_ACEOF cannam@126: \`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems. cannam@126: cannam@126: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@126: cannam@126: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@126: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@126: cannam@126: Defaults for the options are specified in brackets. cannam@126: cannam@126: Configuration: cannam@126: -h, --help display this help and exit cannam@126: --help=short display options specific to this package cannam@126: --help=recursive display the short help of all the included packages cannam@126: -V, --version display version information and exit cannam@126: -q, --quiet, --silent do not print \`checking ...' messages cannam@126: --cache-file=FILE cache test results in FILE [disabled] cannam@126: -C, --config-cache alias for \`--cache-file=config.cache' cannam@126: -n, --no-create do not create output files cannam@126: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@126: cannam@126: Installation directories: cannam@126: --prefix=PREFIX install architecture-independent files in PREFIX cannam@126: [$ac_default_prefix] cannam@126: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@126: [PREFIX] cannam@126: cannam@126: By default, \`make install' will install all the files in cannam@126: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@126: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@126: for instance \`--prefix=\$HOME'. cannam@126: cannam@126: For better control, use the options below. cannam@126: cannam@126: Fine tuning of the installation directories: cannam@126: --bindir=DIR user executables [EPREFIX/bin] cannam@126: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@126: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@126: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@126: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@126: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@126: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] cannam@126: --libdir=DIR object code libraries [EPREFIX/lib] cannam@126: --includedir=DIR C header files [PREFIX/include] cannam@126: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@126: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] cannam@126: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] cannam@126: --infodir=DIR info documentation [DATAROOTDIR/info] cannam@126: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] cannam@126: --mandir=DIR man documentation [DATAROOTDIR/man] cannam@126: --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate] cannam@126: --htmldir=DIR html documentation [DOCDIR] cannam@126: --dvidir=DIR dvi documentation [DOCDIR] cannam@126: --pdfdir=DIR pdf documentation [DOCDIR] cannam@126: --psdir=DIR ps documentation [DOCDIR] cannam@126: _ACEOF cannam@126: cannam@126: cat <<\_ACEOF cannam@126: cannam@126: Program names: cannam@126: --program-prefix=PREFIX prepend PREFIX to installed program names cannam@126: --program-suffix=SUFFIX append SUFFIX to installed program names cannam@126: --program-transform-name=PROGRAM run sed PROGRAM on installed program names cannam@126: cannam@126: System types: cannam@126: --build=BUILD configure for building on BUILD [guessed] cannam@126: --host=HOST cross-compile to build programs to run on HOST [BUILD] cannam@126: --target=TARGET configure for building compilers for TARGET [HOST] cannam@126: _ACEOF cannam@126: fi cannam@126: cannam@126: if test -n "$ac_init_help"; then cannam@126: case $ac_init_help in cannam@126: short | recursive ) echo "Configuration of libsamplerate 0.1.9:";; cannam@126: esac cannam@126: cat <<\_ACEOF cannam@126: cannam@126: Optional Features: cannam@126: --disable-option-checking ignore unrecognized --enable/--with options cannam@126: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) cannam@126: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] cannam@126: --enable-silent-rules less verbose build output (undo: "make V=1") cannam@126: --disable-silent-rules verbose build output (undo: "make V=0") cannam@126: --enable-dependency-tracking cannam@126: do not reject slow dependency extractors cannam@126: --disable-dependency-tracking cannam@126: speeds up one-time build cannam@126: --enable-shared[=PKGS] build shared libraries [default=yes] cannam@126: --enable-static[=PKGS] build static libraries [default=yes] cannam@126: --enable-fast-install[=PKGS] cannam@126: optimize for fast installation [default=yes] cannam@126: --disable-libtool-lock avoid locking (might break parallel builds) cannam@126: --enable-gcc-werror enable -Werror in all Makefiles cannam@126: --disable-gcc-pipe disable gcc -pipe option cannam@126: --disable-gcc-opt disable gcc optimisations cannam@126: --disable-fftw disable usage of FFTW cannam@126: --disable-cpu-clip disable tricky cpu specific clipper cannam@126: --disable-sndfile disable support for sndfile (default=autodetect) cannam@126: cannam@126: Optional Packages: cannam@126: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] cannam@126: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) cannam@126: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use cannam@126: both] cannam@126: --with-aix-soname=aix|svr4|both cannam@126: shared library versioning (aka "SONAME") variant to cannam@126: provide on AIX, [default=aix]. cannam@126: --with-gnu-ld assume the C compiler uses GNU ld [default=no] cannam@126: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the cannam@126: compiler's sysroot if not specified). cannam@126: cannam@126: Some influential environment variables: cannam@126: CC C compiler command cannam@126: CFLAGS C compiler flags cannam@126: LDFLAGS linker flags, e.g. -L if you have libraries in a cannam@126: nonstandard directory cannam@126: LIBS libraries to pass to the linker, e.g. -l cannam@126: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if cannam@126: you have headers in a nonstandard directory cannam@126: CXX C++ compiler command cannam@126: CXXFLAGS C++ compiler flags cannam@126: LT_SYS_LIBRARY_PATH cannam@126: User-defined run-time library search path. cannam@126: CPP C preprocessor cannam@126: CXXCPP C++ preprocessor cannam@126: PKG_CONFIG path to pkg-config utility cannam@126: PKG_CONFIG_PATH cannam@126: directories to add to pkg-config's search path cannam@126: PKG_CONFIG_LIBDIR cannam@126: path overriding pkg-config's built-in search path cannam@126: SNDFILE_CFLAGS cannam@126: C compiler flags for SNDFILE, overriding pkg-config cannam@126: SNDFILE_LIBS cannam@126: linker flags for SNDFILE, overriding pkg-config cannam@126: FFTW3_CFLAGS cannam@126: C compiler flags for FFTW3, overriding pkg-config cannam@126: FFTW3_LIBS linker flags for FFTW3, overriding pkg-config cannam@126: cannam@126: Use these variables to override the choices made by `configure' or to help cannam@126: it to find libraries and programs with nonstandard names/locations. cannam@126: cannam@126: Report bugs to . cannam@126: libsamplerate home page: . cannam@126: _ACEOF cannam@126: ac_status=$? cannam@126: fi cannam@126: cannam@126: if test "$ac_init_help" = "recursive"; then cannam@126: # If there are subdirs, report their specific --help. cannam@126: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@126: test -d "$ac_dir" || cannam@126: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || cannam@126: continue cannam@126: ac_builddir=. cannam@126: cannam@126: case "$ac_dir" in cannam@126: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@126: *) cannam@126: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@126: # A ".." for each directory in $ac_dir_suffix. cannam@126: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@126: case $ac_top_builddir_sub in cannam@126: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@126: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@126: esac ;; cannam@126: esac cannam@126: ac_abs_top_builddir=$ac_pwd cannam@126: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@126: # for backward compatibility: cannam@126: ac_top_builddir=$ac_top_build_prefix cannam@126: cannam@126: case $srcdir in cannam@126: .) # We are building in place. cannam@126: ac_srcdir=. cannam@126: ac_top_srcdir=$ac_top_builddir_sub cannam@126: ac_abs_top_srcdir=$ac_pwd ;; cannam@126: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@126: ac_srcdir=$srcdir$ac_dir_suffix; cannam@126: ac_top_srcdir=$srcdir cannam@126: ac_abs_top_srcdir=$srcdir ;; cannam@126: *) # Relative name. cannam@126: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@126: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@126: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@126: esac cannam@126: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@126: cannam@126: cd "$ac_dir" || { ac_status=$?; continue; } cannam@126: # Check for guested configure. cannam@126: if test -f "$ac_srcdir/configure.gnu"; then cannam@126: echo && cannam@126: $SHELL "$ac_srcdir/configure.gnu" --help=recursive cannam@126: elif test -f "$ac_srcdir/configure"; then cannam@126: echo && cannam@126: $SHELL "$ac_srcdir/configure" --help=recursive cannam@126: else cannam@126: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@126: fi || ac_status=$? cannam@126: cd "$ac_pwd" || { ac_status=$?; break; } cannam@126: done cannam@126: fi cannam@126: cannam@126: test -n "$ac_init_help" && exit $ac_status cannam@126: if $ac_init_version; then cannam@126: cat <<\_ACEOF cannam@126: libsamplerate configure 0.1.9 cannam@126: generated by GNU Autoconf 2.69 cannam@126: cannam@126: Copyright (C) 2012 Free Software Foundation, Inc. cannam@126: This configure script is free software; the Free Software Foundation cannam@126: gives unlimited permission to copy, distribute and modify it. cannam@126: _ACEOF cannam@126: exit cannam@126: fi cannam@126: cannam@126: ## ------------------------ ## cannam@126: ## Autoconf initialization. ## cannam@126: ## ------------------------ ## cannam@126: cannam@126: # ac_fn_c_try_compile LINENO cannam@126: # -------------------------- cannam@126: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_c_try_compile () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: rm -f conftest.$ac_objext cannam@126: if { { ac_try="$ac_compile" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_compile") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && { cannam@126: test -z "$ac_c_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: } && test -s conftest.$ac_objext; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_c_try_compile cannam@126: cannam@126: # ac_fn_cxx_try_compile LINENO cannam@126: # ---------------------------- cannam@126: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_cxx_try_compile () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: rm -f conftest.$ac_objext cannam@126: if { { ac_try="$ac_compile" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_compile") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && { cannam@126: test -z "$ac_cxx_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: } && test -s conftest.$ac_objext; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_cxx_try_compile cannam@126: cannam@126: # ac_fn_c_try_link LINENO cannam@126: # ----------------------- cannam@126: # Try to link conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_c_try_link () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: rm -f conftest.$ac_objext conftest$ac_exeext cannam@126: if { { ac_try="$ac_link" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && { cannam@126: test -z "$ac_c_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: } && test -s conftest$ac_exeext && { cannam@126: test "$cross_compiling" = yes || cannam@126: test -x conftest$ac_exeext cannam@126: }; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information cannam@126: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would cannam@126: # interfere with the next link command; also delete a directory that is cannam@126: # left behind by Apple's compiler. We do this before executing the actions. cannam@126: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_c_try_link cannam@126: cannam@126: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES cannam@126: # ------------------------------------------------------- cannam@126: # Tests whether HEADER exists and can be compiled using the include files in cannam@126: # INCLUDES, setting the cache variable VAR accordingly. cannam@126: ac_fn_c_check_header_compile () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@126: $as_echo_n "checking for $2... " >&6; } cannam@126: if eval \${$3+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: #include <$2> cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: eval "$3=yes" cannam@126: else cannam@126: eval "$3=no" cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: eval ac_res=\$$3 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@126: $as_echo "$ac_res" >&6; } cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: cannam@126: } # ac_fn_c_check_header_compile cannam@126: cannam@126: # ac_fn_c_try_cpp LINENO cannam@126: # ---------------------- cannam@126: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_c_try_cpp () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: if { { ac_try="$ac_cpp conftest.$ac_ext" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } > conftest.i && { cannam@126: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: }; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_c_try_cpp cannam@126: cannam@126: # ac_fn_c_try_run LINENO cannam@126: # ---------------------- cannam@126: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes cannam@126: # that executables *can* be run. cannam@126: ac_fn_c_try_run () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: if { { ac_try="$ac_link" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' cannam@126: { { case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_try") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; }; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: program exited with status $ac_status" >&5 cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=$ac_status cannam@126: fi cannam@126: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_c_try_run cannam@126: cannam@126: # ac_fn_c_check_func LINENO FUNC VAR cannam@126: # ---------------------------------- cannam@126: # Tests whether FUNC exists, setting the cache variable VAR accordingly cannam@126: ac_fn_c_check_func () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@126: $as_echo_n "checking for $2... " >&6; } cannam@126: if eval \${$3+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: /* Define $2 to an innocuous variant, in case declares $2. cannam@126: For example, HP-UX 11i declares gettimeofday. */ cannam@126: #define $2 innocuous_$2 cannam@126: cannam@126: /* System header to define __stub macros and hopefully few prototypes, cannam@126: which can conflict with char $2 (); below. cannam@126: Prefer to if __STDC__ is defined, since cannam@126: exists even on freestanding compilers. */ cannam@126: cannam@126: #ifdef __STDC__ cannam@126: # include cannam@126: #else cannam@126: # include cannam@126: #endif cannam@126: cannam@126: #undef $2 cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char $2 (); cannam@126: /* The GNU C library defines this for functions which it implements cannam@126: to always fail with ENOSYS. Some functions are actually named cannam@126: something starting with __ and the normal name is an alias. */ cannam@126: #if defined __stub_$2 || defined __stub___$2 cannam@126: choke me cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return $2 (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: eval "$3=yes" cannam@126: else cannam@126: eval "$3=no" cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: fi cannam@126: eval ac_res=\$$3 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@126: $as_echo "$ac_res" >&6; } cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: cannam@126: } # ac_fn_c_check_func cannam@126: cannam@126: # ac_fn_cxx_try_cpp LINENO cannam@126: # ------------------------ cannam@126: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_cxx_try_cpp () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: if { { ac_try="$ac_cpp conftest.$ac_ext" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } > conftest.i && { cannam@126: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: }; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_cxx_try_cpp cannam@126: cannam@126: # ac_fn_cxx_try_link LINENO cannam@126: # ------------------------- cannam@126: # Try to link conftest.$ac_ext, and return whether this succeeded. cannam@126: ac_fn_cxx_try_link () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: rm -f conftest.$ac_objext conftest$ac_exeext cannam@126: if { { ac_try="$ac_link" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: grep -v '^ *+' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: mv -f conftest.er1 conftest.err cannam@126: fi cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && { cannam@126: test -z "$ac_cxx_werror_flag" || cannam@126: test ! -s conftest.err cannam@126: } && test -s conftest$ac_exeext && { cannam@126: test "$cross_compiling" = yes || cannam@126: test -x conftest$ac_exeext cannam@126: }; then : cannam@126: ac_retval=0 cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: ac_retval=1 cannam@126: fi cannam@126: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information cannam@126: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would cannam@126: # interfere with the next link command; also delete a directory that is cannam@126: # left behind by Apple's compiler. We do this before executing the actions. cannam@126: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: as_fn_set_status $ac_retval cannam@126: cannam@126: } # ac_fn_cxx_try_link cannam@126: cannam@126: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES cannam@126: # ------------------------------------------------------- cannam@126: # Tests whether HEADER exists, giving a warning if it cannot be compiled using cannam@126: # the include files in INCLUDES and setting the cache variable VAR cannam@126: # accordingly. cannam@126: ac_fn_c_check_header_mongrel () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: if eval \${$3+:} false; then : cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@126: $as_echo_n "checking for $2... " >&6; } cannam@126: if eval \${$3+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: fi cannam@126: eval ac_res=\$$3 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@126: $as_echo "$ac_res" >&6; } cannam@126: else cannam@126: # Is the header compilable? cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 cannam@126: $as_echo_n "checking $2 usability... " >&6; } cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: #include <$2> cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_header_compiler=yes cannam@126: else cannam@126: ac_header_compiler=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 cannam@126: $as_echo "$ac_header_compiler" >&6; } cannam@126: cannam@126: # Is the header present? cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 cannam@126: $as_echo_n "checking $2 presence... " >&6; } cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include <$2> cannam@126: _ACEOF cannam@126: if ac_fn_c_try_cpp "$LINENO"; then : cannam@126: ac_header_preproc=yes cannam@126: else cannam@126: ac_header_preproc=no cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 cannam@126: $as_echo "$ac_header_preproc" >&6; } cannam@126: cannam@126: # So? What about this header? cannam@126: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( cannam@126: yes:no: ) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@126: ;; cannam@126: no:yes:* ) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@126: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@126: ( $as_echo "## ---------------------------------- ## cannam@126: ## Report this to erikd@mega-nerd.com ## cannam@126: ## ---------------------------------- ##" cannam@126: ) | sed "s/^/$as_me: WARNING: /" >&2 cannam@126: ;; cannam@126: esac cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@126: $as_echo_n "checking for $2... " >&6; } cannam@126: if eval \${$3+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: eval "$3=\$ac_header_compiler" cannam@126: fi cannam@126: eval ac_res=\$$3 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@126: $as_echo "$ac_res" >&6; } cannam@126: fi cannam@126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@126: cannam@126: } # ac_fn_c_check_header_mongrel cannam@126: cannam@126: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES cannam@126: # -------------------------------------------- cannam@126: # Tries to find the compile-time value of EXPR in a program that includes cannam@126: # INCLUDES, setting VAR accordingly. Returns whether the value could be cannam@126: # computed cannam@126: ac_fn_c_compute_int () cannam@126: { cannam@126: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: if test "$cross_compiling" = yes; then cannam@126: # Depending upon the size, compute the lo and hi bounds. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: int cannam@126: main () cannam@126: { cannam@126: static int test_array [1 - 2 * !(($2) >= 0)]; cannam@126: test_array [0] = 0; cannam@126: return test_array [0]; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_lo=0 ac_mid=0 cannam@126: while :; do cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: int cannam@126: main () cannam@126: { cannam@126: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; cannam@126: test_array [0] = 0; cannam@126: return test_array [0]; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_hi=$ac_mid; break cannam@126: else cannam@126: as_fn_arith $ac_mid + 1 && ac_lo=$as_val cannam@126: if test $ac_lo -le $ac_mid; then cannam@126: ac_lo= ac_hi= cannam@126: break cannam@126: fi cannam@126: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: done cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: int cannam@126: main () cannam@126: { cannam@126: static int test_array [1 - 2 * !(($2) < 0)]; cannam@126: test_array [0] = 0; cannam@126: return test_array [0]; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_hi=-1 ac_mid=-1 cannam@126: while :; do cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: int cannam@126: main () cannam@126: { cannam@126: static int test_array [1 - 2 * !(($2) >= $ac_mid)]; cannam@126: test_array [0] = 0; cannam@126: return test_array [0]; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_lo=$ac_mid; break cannam@126: else cannam@126: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val cannam@126: if test $ac_mid -le $ac_hi; then cannam@126: ac_lo= ac_hi= cannam@126: break cannam@126: fi cannam@126: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: done cannam@126: else cannam@126: ac_lo= ac_hi= cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: # Binary search between lo and hi bounds. cannam@126: while test "x$ac_lo" != "x$ac_hi"; do cannam@126: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: int cannam@126: main () cannam@126: { cannam@126: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; cannam@126: test_array [0] = 0; cannam@126: return test_array [0]; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_hi=$ac_mid cannam@126: else cannam@126: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: done cannam@126: case $ac_lo in #(( cannam@126: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; cannam@126: '') ac_retval=1 ;; cannam@126: esac cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: $4 cannam@126: static long int longval () { return $2; } cannam@126: static unsigned long int ulongval () { return $2; } cannam@126: #include cannam@126: #include cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: FILE *f = fopen ("conftest.val", "w"); cannam@126: if (! f) cannam@126: return 1; cannam@126: if (($2) < 0) cannam@126: { cannam@126: long int i = longval (); cannam@126: if (i != ($2)) cannam@126: return 1; cannam@126: fprintf (f, "%ld", i); cannam@126: } cannam@126: else cannam@126: { cannam@126: unsigned long int i = ulongval (); cannam@126: if (i != ($2)) cannam@126: return 1; cannam@126: fprintf (f, "%lu", i); cannam@126: } cannam@126: /* Do not output a trailing newline, as this causes \r\n confusion cannam@126: on some platforms. */ cannam@126: return ferror (f) || fclose (f) != 0; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: echo >>conftest.val; read $3 config.log <<_ACEOF cannam@126: This file contains any messages produced by compilers while cannam@126: running configure, to aid debugging if configure makes a mistake. cannam@126: cannam@126: It was created by libsamplerate $as_me 0.1.9, which was cannam@126: generated by GNU Autoconf 2.69. Invocation command line was cannam@126: cannam@126: $ $0 $@ cannam@126: cannam@126: _ACEOF cannam@126: exec 5>>config.log cannam@126: { cannam@126: cat <<_ASUNAME cannam@126: ## --------- ## cannam@126: ## Platform. ## cannam@126: ## --------- ## cannam@126: cannam@126: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@126: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@126: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@126: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@126: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@126: cannam@126: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@126: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@126: cannam@126: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@126: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@126: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@126: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` cannam@126: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@126: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@126: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@126: cannam@126: _ASUNAME cannam@126: cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: $as_echo "PATH: $as_dir" cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: } >&5 cannam@126: cannam@126: cat >&5 <<_ACEOF cannam@126: cannam@126: cannam@126: ## ----------- ## cannam@126: ## Core tests. ## cannam@126: ## ----------- ## cannam@126: cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: # Keep a trace of the command line. cannam@126: # Strip out --no-create and --no-recursion so they do not pile up. cannam@126: # Strip out --silent because we don't want to record it for future runs. cannam@126: # Also quote any args containing shell meta-characters. cannam@126: # Make two passes to allow for proper duplicate-argument suppression. cannam@126: ac_configure_args= cannam@126: ac_configure_args0= cannam@126: ac_configure_args1= cannam@126: ac_must_keep_next=false cannam@126: for ac_pass in 1 2 cannam@126: do cannam@126: for ac_arg cannam@126: do cannam@126: case $ac_arg in cannam@126: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@126: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@126: | -silent | --silent | --silen | --sile | --sil) cannam@126: continue ;; cannam@126: *\'*) cannam@126: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@126: esac cannam@126: case $ac_pass in cannam@126: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; cannam@126: 2) cannam@126: as_fn_append ac_configure_args1 " '$ac_arg'" cannam@126: if test $ac_must_keep_next = true; then cannam@126: ac_must_keep_next=false # Got value, back to normal. cannam@126: else cannam@126: case $ac_arg in cannam@126: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@126: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@126: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@126: | -with-* | --with-* | -without-* | --without-* | --x) cannam@126: case "$ac_configure_args0 " in cannam@126: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@126: esac cannam@126: ;; cannam@126: -* ) ac_must_keep_next=true ;; cannam@126: esac cannam@126: fi cannam@126: as_fn_append ac_configure_args " '$ac_arg'" cannam@126: ;; cannam@126: esac cannam@126: done cannam@126: done cannam@126: { ac_configure_args0=; unset ac_configure_args0;} cannam@126: { ac_configure_args1=; unset ac_configure_args1;} cannam@126: cannam@126: # When interrupted or exit'd, cleanup temporary files, and complete cannam@126: # config.log. We remove comments because anyway the quotes in there cannam@126: # would cause problems or look ugly. cannam@126: # WARNING: Use '\'' to represent an apostrophe within the trap. cannam@126: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. cannam@126: trap 'exit_status=$? cannam@126: # Save into config.log some information that might help in debugging. cannam@126: { cannam@126: echo cannam@126: cannam@126: $as_echo "## ---------------- ## cannam@126: ## Cache variables. ## cannam@126: ## ---------------- ##" cannam@126: echo cannam@126: # The following way of writing the cache mishandles newlines in values, cannam@126: ( cannam@126: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do cannam@126: eval ac_val=\$$ac_var cannam@126: case $ac_val in #( cannam@126: *${as_nl}*) cannam@126: case $ac_var in #( cannam@126: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@126: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@126: esac cannam@126: case $ac_var in #( cannam@126: _ | IFS | as_nl) ;; #( cannam@126: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@126: *) { eval $ac_var=; unset $ac_var;} ;; cannam@126: esac ;; cannam@126: esac cannam@126: done cannam@126: (set) 2>&1 | cannam@126: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( cannam@126: *${as_nl}ac_space=\ *) cannam@126: sed -n \ cannam@126: "s/'\''/'\''\\\\'\'''\''/g; cannam@126: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" cannam@126: ;; #( cannam@126: *) cannam@126: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@126: ;; cannam@126: esac | cannam@126: sort cannam@126: ) cannam@126: echo cannam@126: cannam@126: $as_echo "## ----------------- ## cannam@126: ## Output variables. ## cannam@126: ## ----------------- ##" cannam@126: echo cannam@126: for ac_var in $ac_subst_vars cannam@126: do cannam@126: eval ac_val=\$$ac_var cannam@126: case $ac_val in cannam@126: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@126: esac cannam@126: $as_echo "$ac_var='\''$ac_val'\''" cannam@126: done | sort cannam@126: echo cannam@126: cannam@126: if test -n "$ac_subst_files"; then cannam@126: $as_echo "## ------------------- ## cannam@126: ## File substitutions. ## cannam@126: ## ------------------- ##" cannam@126: echo cannam@126: for ac_var in $ac_subst_files cannam@126: do cannam@126: eval ac_val=\$$ac_var cannam@126: case $ac_val in cannam@126: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@126: esac cannam@126: $as_echo "$ac_var='\''$ac_val'\''" cannam@126: done | sort cannam@126: echo cannam@126: fi cannam@126: cannam@126: if test -s confdefs.h; then cannam@126: $as_echo "## ----------- ## cannam@126: ## confdefs.h. ## cannam@126: ## ----------- ##" cannam@126: echo cannam@126: cat confdefs.h cannam@126: echo cannam@126: fi cannam@126: test "$ac_signal" != 0 && cannam@126: $as_echo "$as_me: caught signal $ac_signal" cannam@126: $as_echo "$as_me: exit $exit_status" cannam@126: } >&5 cannam@126: rm -f core *.core core.conftest.* && cannam@126: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && cannam@126: exit $exit_status cannam@126: ' 0 cannam@126: for ac_signal in 1 2 13 15; do cannam@126: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal cannam@126: done cannam@126: ac_signal=0 cannam@126: cannam@126: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@126: rm -f -r conftest* confdefs.h cannam@126: cannam@126: $as_echo "/* confdefs.h */" > confdefs.h cannam@126: cannam@126: # Predefined preprocessor variables. cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@126: _ACEOF cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@126: _ACEOF cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@126: _ACEOF cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@126: _ACEOF cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@126: _ACEOF cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE_URL "$PACKAGE_URL" cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: # Let the site file select an alternate cache file if it wants to. cannam@126: # Prefer an explicitly selected file to automatically selected ones. cannam@126: ac_site_file1=NONE cannam@126: ac_site_file2=NONE cannam@126: if test -n "$CONFIG_SITE"; then cannam@126: # We do not want a PATH search for config.site. cannam@126: case $CONFIG_SITE in #(( cannam@126: -*) ac_site_file1=./$CONFIG_SITE;; cannam@126: */*) ac_site_file1=$CONFIG_SITE;; cannam@126: *) ac_site_file1=./$CONFIG_SITE;; cannam@126: esac cannam@126: elif test "x$prefix" != xNONE; then cannam@126: ac_site_file1=$prefix/share/config.site cannam@126: ac_site_file2=$prefix/etc/config.site cannam@126: else cannam@126: ac_site_file1=$ac_default_prefix/share/config.site cannam@126: ac_site_file2=$ac_default_prefix/etc/config.site cannam@126: fi cannam@126: for ac_site_file in "$ac_site_file1" "$ac_site_file2" cannam@126: do cannam@126: test "x$ac_site_file" = xNONE && continue cannam@126: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 cannam@126: $as_echo "$as_me: loading site script $ac_site_file" >&6;} cannam@126: sed 's/^/| /' "$ac_site_file" >&5 cannam@126: . "$ac_site_file" \ cannam@126: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "failed to load site script $ac_site_file cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: done cannam@126: cannam@126: if test -r "$cache_file"; then cannam@126: # Some versions of bash will fail to source /dev/null (special files cannam@126: # actually), so we avoid doing that. DJGPP emulates it as a regular file. cannam@126: if test /dev/null != "$cache_file" && test -f "$cache_file"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 cannam@126: $as_echo "$as_me: loading cache $cache_file" >&6;} cannam@126: case $cache_file in cannam@126: [\\/]* | ?:[\\/]* ) . "$cache_file";; cannam@126: *) . "./$cache_file";; cannam@126: esac cannam@126: fi cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 cannam@126: $as_echo "$as_me: creating cache $cache_file" >&6;} cannam@126: >$cache_file cannam@126: fi cannam@126: cannam@126: # Check that the precious variables saved in the cache have kept the same cannam@126: # value. cannam@126: ac_cache_corrupted=false cannam@126: for ac_var in $ac_precious_vars; do cannam@126: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@126: eval ac_new_set=\$ac_env_${ac_var}_set cannam@126: eval ac_old_val=\$ac_cv_env_${ac_var}_value cannam@126: eval ac_new_val=\$ac_env_${ac_var}_value cannam@126: case $ac_old_set,$ac_new_set in cannam@126: set,) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@126: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@126: ac_cache_corrupted=: ;; cannam@126: ,set) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 cannam@126: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@126: ac_cache_corrupted=: ;; cannam@126: ,);; cannam@126: *) cannam@126: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@126: # differences in whitespace do not lead to failure. cannam@126: ac_old_val_w=`echo x $ac_old_val` cannam@126: ac_new_val_w=`echo x $ac_new_val` cannam@126: if test "$ac_old_val_w" != "$ac_new_val_w"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 cannam@126: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@126: ac_cache_corrupted=: cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 cannam@126: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} cannam@126: eval $ac_var=\$ac_old_val cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 cannam@126: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 cannam@126: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} cannam@126: fi;; cannam@126: esac cannam@126: # Pass precious variables to config.status. cannam@126: if test "$ac_new_set" = set; then cannam@126: case $ac_new_val in cannam@126: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@126: *) ac_arg=$ac_var=$ac_new_val ;; cannam@126: esac cannam@126: case " $ac_configure_args " in cannam@126: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@126: *) as_fn_append ac_configure_args " '$ac_arg'" ;; cannam@126: esac cannam@126: fi cannam@126: done cannam@126: if $ac_cache_corrupted; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 cannam@126: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@126: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 cannam@126: fi cannam@126: ## -------------------- ## cannam@126: ## Main body of script. ## cannam@126: ## -------------------- ## cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cannam@126: cannam@126: # Put config stuff in Cfg. cannam@126: ac_aux_dir= cannam@126: for ac_dir in Cfg "$srcdir"/Cfg; do cannam@126: if test -f "$ac_dir/install-sh"; then cannam@126: ac_aux_dir=$ac_dir cannam@126: ac_install_sh="$ac_aux_dir/install-sh -c" cannam@126: break cannam@126: elif test -f "$ac_dir/install.sh"; then cannam@126: ac_aux_dir=$ac_dir cannam@126: ac_install_sh="$ac_aux_dir/install.sh -c" cannam@126: break cannam@126: elif test -f "$ac_dir/shtool"; then cannam@126: ac_aux_dir=$ac_dir cannam@126: ac_install_sh="$ac_aux_dir/shtool install -c" cannam@126: break cannam@126: fi cannam@126: done cannam@126: if test -z "$ac_aux_dir"; then cannam@126: as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5 cannam@126: fi cannam@126: cannam@126: # These three variables are undocumented and unsupported, cannam@126: # and are intended to be withdrawn in a future Autoconf release. cannam@126: # They can cause serious problems if a builder's source tree is in a directory cannam@126: # whose full name contains unusual characters. cannam@126: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. cannam@126: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. cannam@126: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Make sure we can run config.sub. cannam@126: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || cannam@126: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 cannam@126: $as_echo_n "checking build system type... " >&6; } cannam@126: if ${ac_cv_build+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_build_alias=$build_alias cannam@126: test "x$ac_build_alias" = x && cannam@126: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` cannam@126: test "x$ac_build_alias" = x && cannam@126: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 cannam@126: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || cannam@126: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 cannam@126: $as_echo "$ac_cv_build" >&6; } cannam@126: case $ac_cv_build in cannam@126: *-*-*) ;; cannam@126: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; cannam@126: esac cannam@126: build=$ac_cv_build cannam@126: ac_save_IFS=$IFS; IFS='-' cannam@126: set x $ac_cv_build cannam@126: shift cannam@126: build_cpu=$1 cannam@126: build_vendor=$2 cannam@126: shift; shift cannam@126: # Remember, the first character of IFS is used to create $*, cannam@126: # except with old shells: cannam@126: build_os=$* cannam@126: IFS=$ac_save_IFS cannam@126: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 cannam@126: $as_echo_n "checking host system type... " >&6; } cannam@126: if ${ac_cv_host+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test "x$host_alias" = x; then cannam@126: ac_cv_host=$ac_cv_build cannam@126: else cannam@126: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || cannam@126: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 cannam@126: $as_echo "$ac_cv_host" >&6; } cannam@126: case $ac_cv_host in cannam@126: *-*-*) ;; cannam@126: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; cannam@126: esac cannam@126: host=$ac_cv_host cannam@126: ac_save_IFS=$IFS; IFS='-' cannam@126: set x $ac_cv_host cannam@126: shift cannam@126: host_cpu=$1 cannam@126: host_vendor=$2 cannam@126: shift; shift cannam@126: # Remember, the first character of IFS is used to create $*, cannam@126: # except with old shells: cannam@126: host_os=$* cannam@126: IFS=$ac_save_IFS cannam@126: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 cannam@126: $as_echo_n "checking target system type... " >&6; } cannam@126: if ${ac_cv_target+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test "x$target_alias" = x; then cannam@126: ac_cv_target=$ac_cv_host cannam@126: else cannam@126: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || cannam@126: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 cannam@126: $as_echo "$ac_cv_target" >&6; } cannam@126: case $ac_cv_target in cannam@126: *-*-*) ;; cannam@126: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; cannam@126: esac cannam@126: target=$ac_cv_target cannam@126: ac_save_IFS=$IFS; IFS='-' cannam@126: set x $ac_cv_target cannam@126: shift cannam@126: target_cpu=$1 cannam@126: target_vendor=$2 cannam@126: shift; shift cannam@126: # Remember, the first character of IFS is used to create $*, cannam@126: # except with old shells: cannam@126: target_os=$* cannam@126: IFS=$ac_save_IFS cannam@126: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac cannam@126: cannam@126: cannam@126: # The aliases save the names the user supplied, while $host etc. cannam@126: # will get canonicalized. cannam@126: test -n "$target_alias" && cannam@126: test "$program_prefix$program_suffix$program_transform_name" = \ cannam@126: NONENONEs,x,x, && cannam@126: program_prefix=${target_alias}- cannam@126: cannam@126: cannam@126: ac_config_headers="$ac_config_headers src/config.h" cannam@126: cannam@126: cannam@126: am__api_version='1.15' cannam@126: cannam@126: # Find a good install program. We prefer a C program (faster), cannam@126: # so one script is as good as another. But avoid the broken or cannam@126: # incompatible versions: cannam@126: # SysV /etc/install, /usr/sbin/install cannam@126: # SunOS /usr/etc/install cannam@126: # IRIX /sbin/install cannam@126: # AIX /bin/install cannam@126: # AmigaOS /C/install, which installs bootblocks on floppy discs cannam@126: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag cannam@126: # AFS /usr/afsws/bin/install, which mishandles nonexistent args cannam@126: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" cannam@126: # OS/2's system install, which has a completely different semantic cannam@126: # ./install, which can be erroneously created by make from ./install.sh. cannam@126: # Reject install programs that cannot install multiple files. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 cannam@126: $as_echo_n "checking for a BSD-compatible install... " >&6; } cannam@126: if test -z "$INSTALL"; then cannam@126: if ${ac_cv_path_install+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: # Account for people who put trailing slashes in PATH elements. cannam@126: case $as_dir/ in #(( cannam@126: ./ | .// | /[cC]/* | \ cannam@126: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ cannam@126: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ cannam@126: /usr/ucb/* ) ;; cannam@126: *) cannam@126: # OSF1 and SCO ODT 3.0 have their own names for install. cannam@126: # Don't use installbsd from OSF since it installs stuff as root cannam@126: # by default. cannam@126: for ac_prog in ginstall scoinst install; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then cannam@126: if test $ac_prog = install && cannam@126: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@126: # AIX install. It has an incompatible calling convention. cannam@126: : cannam@126: elif test $ac_prog = install && cannam@126: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@126: # program-specific install script used by HP pwplus--don't use. cannam@126: : cannam@126: else cannam@126: rm -rf conftest.one conftest.two conftest.dir cannam@126: echo one > conftest.one cannam@126: echo two > conftest.two cannam@126: mkdir conftest.dir cannam@126: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && cannam@126: test -s conftest.one && test -s conftest.two && cannam@126: test -s conftest.dir/conftest.one && cannam@126: test -s conftest.dir/conftest.two cannam@126: then cannam@126: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" cannam@126: break 3 cannam@126: fi cannam@126: fi cannam@126: fi cannam@126: done cannam@126: done cannam@126: ;; cannam@126: esac cannam@126: cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: rm -rf conftest.one conftest.two conftest.dir cannam@126: cannam@126: fi cannam@126: if test "${ac_cv_path_install+set}" = set; then cannam@126: INSTALL=$ac_cv_path_install cannam@126: else cannam@126: # As a last resort, use the slow shell script. Don't cache a cannam@126: # value for INSTALL within a source directory, because that will cannam@126: # break other packages using the cache if that directory is cannam@126: # removed, or if the value is a relative name. cannam@126: INSTALL=$ac_install_sh cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 cannam@126: $as_echo "$INSTALL" >&6; } cannam@126: cannam@126: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. cannam@126: # It thinks the first close brace ends the variable substitution. cannam@126: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' cannam@126: cannam@126: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' cannam@126: cannam@126: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 cannam@126: $as_echo_n "checking whether build environment is sane... " >&6; } cannam@126: # Reject unsafe characters in $srcdir or the absolute working directory cannam@126: # name. Accept space and tab only in the latter. cannam@126: am_lf=' cannam@126: ' cannam@126: case `pwd` in cannam@126: *[\\\"\#\$\&\'\`$am_lf]*) cannam@126: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; cannam@126: esac cannam@126: case $srcdir in cannam@126: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) cannam@126: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; cannam@126: esac cannam@126: cannam@126: # Do 'set' in a subshell so we don't clobber the current shell's cannam@126: # arguments. Must try -L first in case configure is actually a cannam@126: # symlink; some systems play weird games with the mod time of symlinks cannam@126: # (eg FreeBSD returns the mod time of the symlink's containing cannam@126: # directory). cannam@126: if ( cannam@126: am_has_slept=no cannam@126: for am_try in 1 2; do cannam@126: echo "timestamp, slept: $am_has_slept" > conftest.file cannam@126: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` cannam@126: if test "$*" = "X"; then cannam@126: # -L didn't work. cannam@126: set X `ls -t "$srcdir/configure" conftest.file` cannam@126: fi cannam@126: if test "$*" != "X $srcdir/configure conftest.file" \ cannam@126: && test "$*" != "X conftest.file $srcdir/configure"; then cannam@126: cannam@126: # If neither matched, then we have a broken ls. This can happen cannam@126: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@126: # broken ls alias from the environment. This has actually cannam@126: # happened. Such a system could not be considered "sane". cannam@126: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken cannam@126: alias in your environment" "$LINENO" 5 cannam@126: fi cannam@126: if test "$2" = conftest.file || test $am_try -eq 2; then cannam@126: break cannam@126: fi cannam@126: # Just in case. cannam@126: sleep 1 cannam@126: am_has_slept=yes cannam@126: done cannam@126: test "$2" = conftest.file cannam@126: ) cannam@126: then cannam@126: # Ok. cannam@126: : cannam@126: else cannam@126: as_fn_error $? "newly created file is older than distributed files! cannam@126: Check your system clock" "$LINENO" 5 cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: # If we didn't sleep, we still need to ensure time stamps of config.status and cannam@126: # generated files are strictly newer. cannam@126: am_sleep_pid= cannam@126: if grep 'slept: no' conftest.file >/dev/null 2>&1; then cannam@126: ( sleep 1 ) & cannam@126: am_sleep_pid=$! cannam@126: fi cannam@126: cannam@126: rm -f conftest.file cannam@126: cannam@126: test "$program_prefix" != NONE && cannam@126: program_transform_name="s&^&$program_prefix&;$program_transform_name" cannam@126: # Use a double $ so make ignores it. cannam@126: test "$program_suffix" != NONE && cannam@126: program_transform_name="s&\$&$program_suffix&;$program_transform_name" cannam@126: # Double any \ or $. cannam@126: # By default was `s,x,x', remove it if useless. cannam@126: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' cannam@126: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` cannam@126: cannam@126: # Expand $ac_aux_dir to an absolute path. cannam@126: am_aux_dir=`cd "$ac_aux_dir" && pwd` cannam@126: cannam@126: if test x"${MISSING+set}" != xset; then cannam@126: case $am_aux_dir in cannam@126: *\ * | *\ *) cannam@126: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; cannam@126: *) cannam@126: MISSING="\${SHELL} $am_aux_dir/missing" ;; cannam@126: esac cannam@126: fi cannam@126: # Use eval to expand $SHELL cannam@126: if eval "$MISSING --is-lightweight"; then cannam@126: am_missing_run="$MISSING " cannam@126: else cannam@126: am_missing_run= cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 cannam@126: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} cannam@126: fi cannam@126: cannam@126: if test x"${install_sh+set}" != xset; then cannam@126: case $am_aux_dir in cannam@126: *\ * | *\ *) cannam@126: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; cannam@126: *) cannam@126: install_sh="\${SHELL} $am_aux_dir/install-sh" cannam@126: esac cannam@126: fi cannam@126: cannam@126: # Installed binaries are usually stripped using 'strip' when the user cannam@126: # run "make install-strip". However 'strip' might not be the right cannam@126: # tool to use in cross-compilation environments, therefore Automake cannam@126: # will honor the 'STRIP' environment variable to overrule this program. cannam@126: if test "$cross_compiling" != no; then cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_STRIP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$STRIP"; then cannam@126: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: STRIP=$ac_cv_prog_STRIP cannam@126: if test -n "$STRIP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 cannam@126: $as_echo "$STRIP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_STRIP"; then cannam@126: ac_ct_STRIP=$STRIP cannam@126: # Extract the first word of "strip", so it can be a program name with args. cannam@126: set dummy strip; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_STRIP"; then cannam@126: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_STRIP="strip" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@126: if test -n "$ac_ct_STRIP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 cannam@126: $as_echo "$ac_ct_STRIP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_STRIP" = x; then cannam@126: STRIP=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: STRIP=$ac_ct_STRIP cannam@126: fi cannam@126: else cannam@126: STRIP="$ac_cv_prog_STRIP" cannam@126: fi cannam@126: cannam@126: fi cannam@126: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 cannam@126: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } cannam@126: if test -z "$MKDIR_P"; then cannam@126: if ${ac_cv_path_mkdir+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in mkdir gmkdir; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue cannam@126: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( cannam@126: 'mkdir (GNU coreutils) '* | \ cannam@126: 'mkdir (coreutils) '* | \ cannam@126: 'mkdir (fileutils) '4.1*) cannam@126: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext cannam@126: break 3;; cannam@126: esac cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: cannam@126: test -d ./--version && rmdir ./--version cannam@126: if test "${ac_cv_path_mkdir+set}" = set; then cannam@126: MKDIR_P="$ac_cv_path_mkdir -p" cannam@126: else cannam@126: # As a last resort, use the slow shell script. Don't cache a cannam@126: # value for MKDIR_P within a source directory, because that will cannam@126: # break other packages using the cache if that directory is cannam@126: # removed, or if the value is a relative name. cannam@126: MKDIR_P="$ac_install_sh -d" cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 cannam@126: $as_echo "$MKDIR_P" >&6; } cannam@126: cannam@126: for ac_prog in gawk mawk nawk awk cannam@126: do cannam@126: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_AWK+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$AWK"; then cannam@126: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_AWK="$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: AWK=$ac_cv_prog_AWK cannam@126: if test -n "$AWK"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 cannam@126: $as_echo "$AWK" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$AWK" && break cannam@126: done cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@126: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } cannam@126: set x ${MAKE-make} cannam@126: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` cannam@126: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat >conftest.make <<\_ACEOF cannam@126: SHELL = /bin/sh cannam@126: all: cannam@126: @echo '@@@%%%=$(MAKE)=@@@%%%' cannam@126: _ACEOF cannam@126: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. cannam@126: case `${MAKE-make} -f conftest.make 2>/dev/null` in cannam@126: *@@@%%%=?*=@@@%%%*) cannam@126: eval ac_cv_prog_make_${ac_make}_set=yes;; cannam@126: *) cannam@126: eval ac_cv_prog_make_${ac_make}_set=no;; cannam@126: esac cannam@126: rm -f conftest.make cannam@126: fi cannam@126: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: SET_MAKE= cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: SET_MAKE="MAKE=${MAKE-make}" cannam@126: fi cannam@126: cannam@126: rm -rf .tst 2>/dev/null cannam@126: mkdir .tst 2>/dev/null cannam@126: if test -d .tst; then cannam@126: am__leading_dot=. cannam@126: else cannam@126: am__leading_dot=_ cannam@126: fi cannam@126: rmdir .tst 2>/dev/null cannam@126: cannam@126: # Check whether --enable-silent-rules was given. cannam@126: if test "${enable_silent_rules+set}" = set; then : cannam@126: enableval=$enable_silent_rules; cannam@126: fi cannam@126: cannam@126: case $enable_silent_rules in # ((( cannam@126: yes) AM_DEFAULT_VERBOSITY=0;; cannam@126: no) AM_DEFAULT_VERBOSITY=1;; cannam@126: *) AM_DEFAULT_VERBOSITY=1;; cannam@126: esac cannam@126: am_make=${MAKE-make} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 cannam@126: $as_echo_n "checking whether $am_make supports nested variables... " >&6; } cannam@126: if ${am_cv_make_support_nested_variables+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if $as_echo 'TRUE=$(BAR$(V)) cannam@126: BAR0=false cannam@126: BAR1=true cannam@126: V=1 cannam@126: am__doit: cannam@126: @$(TRUE) cannam@126: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then cannam@126: am_cv_make_support_nested_variables=yes cannam@126: else cannam@126: am_cv_make_support_nested_variables=no cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 cannam@126: $as_echo "$am_cv_make_support_nested_variables" >&6; } cannam@126: if test $am_cv_make_support_nested_variables = yes; then cannam@126: AM_V='$(V)' cannam@126: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' cannam@126: else cannam@126: AM_V=$AM_DEFAULT_VERBOSITY cannam@126: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY cannam@126: fi cannam@126: AM_BACKSLASH='\' cannam@126: cannam@126: if test "`cd $srcdir && pwd`" != "`pwd`"; then cannam@126: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output cannam@126: # is not polluted with repeated "-I." cannam@126: am__isrc=' -I$(srcdir)' cannam@126: # test to see if srcdir already configured cannam@126: if test -f $srcdir/config.status; then cannam@126: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 cannam@126: fi cannam@126: fi cannam@126: cannam@126: # test whether we have cygpath cannam@126: if test -z "$CYGPATH_W"; then cannam@126: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@126: CYGPATH_W='cygpath -w' cannam@126: else cannam@126: CYGPATH_W=echo cannam@126: fi cannam@126: fi cannam@126: cannam@126: cannam@126: # Define the identity of the package. cannam@126: cannam@126: PACKAGE=$PACKAGE_NAME cannam@126: VERSION=$PACKAGE_VERSION cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define PACKAGE "$PACKAGE" cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define VERSION "$VERSION" cannam@126: _ACEOF cannam@126: cannam@126: # Some tools Automake needs. cannam@126: cannam@126: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} cannam@126: cannam@126: cannam@126: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} cannam@126: cannam@126: cannam@126: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} cannam@126: cannam@126: cannam@126: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} cannam@126: cannam@126: cannam@126: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} cannam@126: cannam@126: # For better backward compatibility. To be removed once Automake 1.9.x cannam@126: # dies out for good. For more background, see: cannam@126: # cannam@126: # cannam@126: mkdir_p='$(MKDIR_P)' cannam@126: cannam@126: # We need awk for the "check" target (and possibly the TAP driver). The cannam@126: # system "awk" is bad on some platforms. cannam@126: # Always define AMTAR for backward compatibility. Yes, it's still used cannam@126: # in the wild :-( We should find a proper way to deprecate it ... cannam@126: AMTAR='$${TAR-tar}' cannam@126: cannam@126: cannam@126: # We'll loop over all known methods to create a tar archive until one works. cannam@126: _am_tools='gnutar pax cpio none' cannam@126: cannam@126: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # POSIX will say in a future version that running "rm -f" with no argument cannam@126: # is OK; and we want to be able to make that assumption in our Makefile cannam@126: # recipes. So use an aggressive probe to check that the usage we want is cannam@126: # actually supported "in the wild" to an acceptable degree. cannam@126: # See automake bug#10828. cannam@126: # To make any issue more visible, cause the running configure to be aborted cannam@126: # by default if the 'rm' program in use doesn't match our expectations; the cannam@126: # user can still override this though. cannam@126: if rm -f && rm -fr && rm -rf; then : OK; else cannam@126: cat >&2 <<'END' cannam@126: Oops! cannam@126: cannam@126: Your 'rm' program seems unable to run without file operands specified cannam@126: on the command line, even when the '-f' option is present. This is contrary cannam@126: to the behaviour of most rm programs out there, and not conforming with cannam@126: the upcoming POSIX standard: cannam@126: cannam@126: Please tell bug-automake@gnu.org about your system, including the value cannam@126: of your $PATH and any error possibly output before this message. This cannam@126: can help us improve future automake versions. cannam@126: cannam@126: END cannam@126: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then cannam@126: echo 'Configuration will proceed anyway, since you have set the' >&2 cannam@126: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 cannam@126: echo >&2 cannam@126: else cannam@126: cat >&2 <<'END' cannam@126: Aborting the configuration process, to ensure you take notice of the issue. cannam@126: cannam@126: You can download and install GNU coreutils to get an 'rm' implementation cannam@126: that behaves properly: . cannam@126: cannam@126: If you want to complete the configuration process using your problematic cannam@126: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM cannam@126: to "yes", and re-run configure. cannam@126: cannam@126: END cannam@126: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 cannam@126: fi cannam@126: fi cannam@126: cannam@126: # Check whether --enable-silent-rules was given. cannam@126: if test "${enable_silent_rules+set}" = set; then : cannam@126: enableval=$enable_silent_rules; cannam@126: fi cannam@126: cannam@126: case $enable_silent_rules in # ((( cannam@126: yes) AM_DEFAULT_VERBOSITY=0;; cannam@126: no) AM_DEFAULT_VERBOSITY=1;; cannam@126: *) AM_DEFAULT_VERBOSITY=0;; cannam@126: esac cannam@126: am_make=${MAKE-make} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 cannam@126: $as_echo_n "checking whether $am_make supports nested variables... " >&6; } cannam@126: if ${am_cv_make_support_nested_variables+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if $as_echo 'TRUE=$(BAR$(V)) cannam@126: BAR0=false cannam@126: BAR1=true cannam@126: V=1 cannam@126: am__doit: cannam@126: @$(TRUE) cannam@126: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then cannam@126: am_cv_make_support_nested_variables=yes cannam@126: else cannam@126: am_cv_make_support_nested_variables=no cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 cannam@126: $as_echo "$am_cv_make_support_nested_variables" >&6; } cannam@126: if test $am_cv_make_support_nested_variables = yes; then cannam@126: AM_V='$(V)' cannam@126: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' cannam@126: else cannam@126: AM_V=$AM_DEFAULT_VERBOSITY cannam@126: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY cannam@126: fi cannam@126: AM_BACKSLASH='\' cannam@126: cannam@126: cannam@126: ACLOCAL_AMFLAGS="-I M4" cannam@126: cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$CC"; then cannam@126: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: CC=$ac_cv_prog_CC cannam@126: if test -n "$CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@126: $as_echo "$CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_CC"; then cannam@126: ac_ct_CC=$CC cannam@126: # Extract the first word of "gcc", so it can be a program name with args. cannam@126: set dummy gcc; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_CC"; then cannam@126: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_CC="gcc" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@126: if test -n "$ac_ct_CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@126: $as_echo "$ac_ct_CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_CC" = x; then cannam@126: CC="" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: CC=$ac_ct_CC cannam@126: fi cannam@126: else cannam@126: CC="$ac_cv_prog_CC" cannam@126: fi cannam@126: cannam@126: if test -z "$CC"; then cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$CC"; then cannam@126: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: CC=$ac_cv_prog_CC cannam@126: if test -n "$CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@126: $as_echo "$CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: fi cannam@126: if test -z "$CC"; then cannam@126: # Extract the first word of "cc", so it can be a program name with args. cannam@126: set dummy cc; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$CC"; then cannam@126: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@126: else cannam@126: ac_prog_rejected=no cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@126: ac_prog_rejected=yes cannam@126: continue cannam@126: fi cannam@126: ac_cv_prog_CC="cc" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: if test $ac_prog_rejected = yes; then cannam@126: # We found a bogon in the path, so make sure we never use it. cannam@126: set dummy $ac_cv_prog_CC cannam@126: shift cannam@126: if test $# != 0; then cannam@126: # We chose a different compiler from the bogus one. cannam@126: # However, it has the same basename, so the bogon will be chosen cannam@126: # first if we set CC to just the basename; use the full file name. cannam@126: shift cannam@126: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@126: fi cannam@126: fi cannam@126: fi cannam@126: fi cannam@126: CC=$ac_cv_prog_CC cannam@126: if test -n "$CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@126: $as_echo "$CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$CC"; then cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: for ac_prog in cl.exe cannam@126: do cannam@126: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$CC"; then cannam@126: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: CC=$ac_cv_prog_CC cannam@126: if test -n "$CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@126: $as_echo "$CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$CC" && break cannam@126: done cannam@126: fi cannam@126: if test -z "$CC"; then cannam@126: ac_ct_CC=$CC cannam@126: for ac_prog in cl.exe cannam@126: do cannam@126: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_CC"; then cannam@126: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@126: if test -n "$ac_ct_CC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@126: $as_echo "$ac_ct_CC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$ac_ct_CC" && break cannam@126: done cannam@126: cannam@126: if test "x$ac_ct_CC" = x; then cannam@126: CC="" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: CC=$ac_ct_CC cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "no acceptable C compiler found in \$PATH cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: cannam@126: # Provide some information about the compiler. cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 cannam@126: set X $ac_compile cannam@126: ac_compiler=$2 cannam@126: for ac_option in --version -v -V -qversion; do cannam@126: { { ac_try="$ac_compiler $ac_option >&5" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: sed '10a\ cannam@126: ... rest of stderr output deleted ... cannam@126: 10q' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: fi cannam@126: rm -f conftest.er1 conftest.err cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: done cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: ac_clean_files_save=$ac_clean_files cannam@126: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" cannam@126: # Try to create an executable without -o first, disregard a.out. cannam@126: # It will help us diagnose broken compilers, and finding out an intuition cannam@126: # of exeext. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 cannam@126: $as_echo_n "checking whether the C compiler works... " >&6; } cannam@126: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@126: cannam@126: # The possible output files: cannam@126: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" cannam@126: cannam@126: ac_rmfiles= cannam@126: for ac_file in $ac_files cannam@126: do cannam@126: case $ac_file in cannam@126: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@126: * ) ac_rmfiles="$ac_rmfiles $ac_file";; cannam@126: esac cannam@126: done cannam@126: rm -f $ac_rmfiles cannam@126: cannam@126: if { { ac_try="$ac_link_default" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link_default") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then : cannam@126: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. cannam@126: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' cannam@126: # in a Makefile. We should not override ac_cv_exeext if it was cached, cannam@126: # so that the user can short-circuit this test for compilers unknown to cannam@126: # Autoconf. cannam@126: for ac_file in $ac_files '' cannam@126: do cannam@126: test -f "$ac_file" || continue cannam@126: case $ac_file in cannam@126: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) cannam@126: ;; cannam@126: [ab].out ) cannam@126: # We found the default executable, but exeext='' is most cannam@126: # certainly right. cannam@126: break;; cannam@126: *.* ) cannam@126: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; cannam@126: then :; else cannam@126: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@126: fi cannam@126: # We set ac_cv_exeext here because the later test for it is not cannam@126: # safe: cross compilers may not add the suffix if given an `-o' cannam@126: # argument, so we may need to know it at that point already. cannam@126: # Even if this section looks crufty: it has the advantage of cannam@126: # actually working. cannam@126: break;; cannam@126: * ) cannam@126: break;; cannam@126: esac cannam@126: done cannam@126: test "$ac_cv_exeext" = no && ac_cv_exeext= cannam@126: cannam@126: else cannam@126: ac_file='' cannam@126: fi cannam@126: if test -z "$ac_file"; then : cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error 77 "C compiler cannot create executables cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 cannam@126: $as_echo_n "checking for C compiler default output file name... " >&6; } cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 cannam@126: $as_echo "$ac_file" >&6; } cannam@126: ac_exeext=$ac_cv_exeext cannam@126: cannam@126: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out cannam@126: ac_clean_files=$ac_clean_files_save cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 cannam@126: $as_echo_n "checking for suffix of executables... " >&6; } cannam@126: if { { ac_try="$ac_link" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then : cannam@126: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@126: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@126: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@126: # `rm'. cannam@126: for ac_file in conftest.exe conftest conftest.*; do cannam@126: test -f "$ac_file" || continue cannam@126: case $ac_file in cannam@126: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@126: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@126: break;; cannam@126: * ) break;; cannam@126: esac cannam@126: done cannam@126: else cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "cannot compute suffix of executables: cannot compile and link cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: rm -f conftest conftest$ac_cv_exeext cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 cannam@126: $as_echo "$ac_cv_exeext" >&6; } cannam@126: cannam@126: rm -f conftest.$ac_ext cannam@126: EXEEXT=$ac_cv_exeext cannam@126: ac_exeext=$EXEEXT cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: int cannam@126: main () cannam@126: { cannam@126: FILE *f = fopen ("conftest.out", "w"); cannam@126: return ferror (f) || fclose (f) != 0; cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: ac_clean_files="$ac_clean_files conftest.out" cannam@126: # Check that the compiler produces executables we can run. If not, either cannam@126: # the compiler is broken, or we cross compile. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 cannam@126: $as_echo_n "checking whether we are cross compiling... " >&6; } cannam@126: if test "$cross_compiling" != yes; then cannam@126: { { ac_try="$ac_link" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_link") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: if { ac_try='./conftest$ac_cv_exeext' cannam@126: { { case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_try") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; }; then cannam@126: cross_compiling=no cannam@126: else cannam@126: if test "$cross_compiling" = maybe; then cannam@126: cross_compiling=yes cannam@126: else cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "cannot run C compiled programs. cannam@126: If you meant to cross compile, use \`--host'. cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 cannam@126: $as_echo "$cross_compiling" >&6; } cannam@126: cannam@126: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out cannam@126: ac_clean_files=$ac_clean_files_save cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 cannam@126: $as_echo_n "checking for suffix of object files... " >&6; } cannam@126: if ${ac_cv_objext+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: rm -f conftest.o conftest.obj cannam@126: if { { ac_try="$ac_compile" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_compile") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then : cannam@126: for ac_file in conftest.o conftest.obj conftest.*; do cannam@126: test -f "$ac_file" || continue; cannam@126: case $ac_file in cannam@126: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; cannam@126: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@126: break;; cannam@126: esac cannam@126: done cannam@126: else cannam@126: $as_echo "$as_me: failed program was:" >&5 cannam@126: sed 's/^/| /' conftest.$ac_ext >&5 cannam@126: cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "cannot compute suffix of object files: cannot compile cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 cannam@126: $as_echo "$ac_cv_objext" >&6; } cannam@126: OBJEXT=$ac_cv_objext cannam@126: ac_objext=$OBJEXT cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 cannam@126: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } cannam@126: if ${ac_cv_c_compiler_gnu+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: #ifndef __GNUC__ cannam@126: choke me cannam@126: #endif cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_compiler_gnu=yes cannam@126: else cannam@126: ac_compiler_gnu=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 cannam@126: $as_echo "$ac_cv_c_compiler_gnu" >&6; } cannam@126: if test $ac_compiler_gnu = yes; then cannam@126: GCC=yes cannam@126: else cannam@126: GCC= cannam@126: fi cannam@126: ac_test_CFLAGS=${CFLAGS+set} cannam@126: ac_save_CFLAGS=$CFLAGS cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 cannam@126: $as_echo_n "checking whether $CC accepts -g... " >&6; } cannam@126: if ${ac_cv_prog_cc_g+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_save_c_werror_flag=$ac_c_werror_flag cannam@126: ac_c_werror_flag=yes cannam@126: ac_cv_prog_cc_g=no cannam@126: CFLAGS="-g" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_cv_prog_cc_g=yes cannam@126: else cannam@126: CFLAGS="" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_c_werror_flag=$ac_save_c_werror_flag cannam@126: CFLAGS="-g" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_cv_prog_cc_g=yes cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: ac_c_werror_flag=$ac_save_c_werror_flag cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 cannam@126: $as_echo "$ac_cv_prog_cc_g" >&6; } cannam@126: if test "$ac_test_CFLAGS" = set; then cannam@126: CFLAGS=$ac_save_CFLAGS cannam@126: elif test $ac_cv_prog_cc_g = yes; then cannam@126: if test "$GCC" = yes; then cannam@126: CFLAGS="-g -O2" cannam@126: else cannam@126: CFLAGS="-g" cannam@126: fi cannam@126: else cannam@126: if test "$GCC" = yes; then cannam@126: CFLAGS="-O2" cannam@126: else cannam@126: CFLAGS= cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 cannam@126: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } cannam@126: if ${ac_cv_prog_cc_c89+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_cv_prog_cc_c89=no cannam@126: ac_save_CC=$CC cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: #include cannam@126: struct stat; cannam@126: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@126: struct buf { int x; }; cannam@126: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@126: static char *e (p, i) cannam@126: char **p; cannam@126: int i; cannam@126: { cannam@126: return p[i]; cannam@126: } cannam@126: static char *f (char * (*g) (char **, int), char **p, ...) cannam@126: { cannam@126: char *s; cannam@126: va_list v; cannam@126: va_start (v,p); cannam@126: s = g (p, va_arg (v,int)); cannam@126: va_end (v); cannam@126: return s; cannam@126: } cannam@126: cannam@126: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@126: function prototypes and stuff, but not '\xHH' hex character constants. cannam@126: These don't provoke an error unfortunately, instead are silently treated cannam@126: as 'x'. The following induces an error, until -std is added to get cannam@126: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@126: array size at least. It's necessary to write '\x00'==0 to get something cannam@126: that's true only with -std. */ cannam@126: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@126: cannam@126: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters cannam@126: inside strings and character constants. */ cannam@126: #define FOO(x) 'x' cannam@126: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; cannam@126: cannam@126: int test (int i, double x); cannam@126: struct s1 {int (*f) (int a);}; cannam@126: struct s2 {int (*f) (double a);}; cannam@126: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@126: int argc; cannam@126: char **argv; cannam@126: int cannam@126: main () cannam@126: { cannam@126: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ cannam@126: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@126: do cannam@126: CC="$ac_save_CC $ac_arg" cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_cv_prog_cc_c89=$ac_arg cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext cannam@126: test "x$ac_cv_prog_cc_c89" != "xno" && break cannam@126: done cannam@126: rm -f conftest.$ac_ext cannam@126: CC=$ac_save_CC cannam@126: cannam@126: fi cannam@126: # AC_CACHE_VAL cannam@126: case "x$ac_cv_prog_cc_c89" in cannam@126: x) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@126: $as_echo "none needed" >&6; } ;; cannam@126: xno) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@126: $as_echo "unsupported" >&6; } ;; cannam@126: *) cannam@126: CC="$CC $ac_cv_prog_cc_c89" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 cannam@126: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; cannam@126: esac cannam@126: if test "x$ac_cv_prog_cc_c89" != xno; then : cannam@126: cannam@126: fi cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 cannam@126: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } cannam@126: if ${am_cv_prog_cc_c_o+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: # Make sure it works both with $CC and with simple cc. cannam@126: # Following AC_PROG_CC_C_O, we do the test twice because some cannam@126: # compilers refuse to overwrite an existing .o file with -o, cannam@126: # though they will create one. cannam@126: am_cv_prog_cc_c_o=yes cannam@126: for am_i in 1 2; do cannam@126: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 cannam@126: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 cannam@126: ac_status=$? cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: (exit $ac_status); } \ cannam@126: && test -f conftest2.$ac_objext; then cannam@126: : OK cannam@126: else cannam@126: am_cv_prog_cc_c_o=no cannam@126: break cannam@126: fi cannam@126: done cannam@126: rm -f core conftest* cannam@126: unset am_i cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 cannam@126: $as_echo "$am_cv_prog_cc_c_o" >&6; } cannam@126: if test "$am_cv_prog_cc_c_o" != yes; then cannam@126: # Losing compiler, so override with the script. cannam@126: # FIXME: It is wrong to rewrite CC. cannam@126: # But if we don't then we get into trouble of one sort or another. cannam@126: # A longer-term fix would be to have automake use am__CC in this case, cannam@126: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" cannam@126: CC="$am_aux_dir/compile $CC" cannam@126: fi cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: DEPDIR="${am__leading_dot}deps" cannam@126: cannam@126: ac_config_commands="$ac_config_commands depfiles" cannam@126: cannam@126: cannam@126: am_make=${MAKE-make} cannam@126: cat > confinc << 'END' cannam@126: am__doit: cannam@126: @echo this is the am__doit target cannam@126: .PHONY: am__doit cannam@126: END cannam@126: # If we don't find an include directive, just comment out the code. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 cannam@126: $as_echo_n "checking for style of include used by $am_make... " >&6; } cannam@126: am__include="#" cannam@126: am__quote= cannam@126: _am_result=none cannam@126: # First try GNU make style include. cannam@126: echo "include confinc" > confmf cannam@126: # Ignore all kinds of additional output from 'make'. cannam@126: case `$am_make -s -f confmf 2> /dev/null` in #( cannam@126: *the\ am__doit\ target*) cannam@126: am__include=include cannam@126: am__quote= cannam@126: _am_result=GNU cannam@126: ;; cannam@126: esac cannam@126: # Now try BSD make style include. cannam@126: if test "$am__include" = "#"; then cannam@126: echo '.include "confinc"' > confmf cannam@126: case `$am_make -s -f confmf 2> /dev/null` in #( cannam@126: *the\ am__doit\ target*) cannam@126: am__include=.include cannam@126: am__quote="\"" cannam@126: _am_result=BSD cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 cannam@126: $as_echo "$_am_result" >&6; } cannam@126: rm -f confinc confmf cannam@126: cannam@126: # Check whether --enable-dependency-tracking was given. cannam@126: if test "${enable_dependency_tracking+set}" = set; then : cannam@126: enableval=$enable_dependency_tracking; cannam@126: fi cannam@126: cannam@126: if test "x$enable_dependency_tracking" != xno; then cannam@126: am_depcomp="$ac_aux_dir/depcomp" cannam@126: AMDEPBACKSLASH='\' cannam@126: am__nodep='_no' cannam@126: fi cannam@126: if test "x$enable_dependency_tracking" != xno; then cannam@126: AMDEP_TRUE= cannam@126: AMDEP_FALSE='#' cannam@126: else cannam@126: AMDEP_TRUE='#' cannam@126: AMDEP_FALSE= cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: depcc="$CC" am_compiler_list= cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 cannam@126: $as_echo_n "checking dependency style of $depcc... " >&6; } cannam@126: if ${am_cv_CC_dependencies_compiler_type+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@126: # We make a subdir and do the tests there. Otherwise we can end up cannam@126: # making bogus files that we don't know about and never remove. For cannam@126: # instance it was reported that on HP-UX the gcc test will end up cannam@126: # making a dummy file named 'D' -- because '-MD' means "put the output cannam@126: # in D". cannam@126: rm -rf conftest.dir cannam@126: mkdir conftest.dir cannam@126: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@126: # using a relative directory. cannam@126: cp "$am_depcomp" conftest.dir cannam@126: cd conftest.dir cannam@126: # We will build objects and dependencies in a subdirectory because cannam@126: # it helps to detect inapplicable dependency modes. For instance cannam@126: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@126: # side effect of compilation, but ICC will put the dependencies in cannam@126: # the current directory while Tru64 will put them in the object cannam@126: # directory. cannam@126: mkdir sub cannam@126: cannam@126: am_cv_CC_dependencies_compiler_type=none cannam@126: if test "$am_compiler_list" = ""; then cannam@126: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@126: fi cannam@126: am__universal=false cannam@126: case " $depcc " in #( cannam@126: *\ -arch\ *\ -arch\ *) am__universal=true ;; cannam@126: esac cannam@126: cannam@126: for depmode in $am_compiler_list; do cannam@126: # Setup a source with many dependencies, because some compilers cannam@126: # like to wrap large dependency lists on column 80 (with \), and cannam@126: # we should not choose a depcomp mode which is confused by this. cannam@126: # cannam@126: # We need to recreate these files for each test, as the compiler may cannam@126: # overwrite some of them when testing with obscure command lines. cannam@126: # This happens at least with the AIX C compiler. cannam@126: : > sub/conftest.c cannam@126: for i in 1 2 3 4 5 6; do cannam@126: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@126: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with cannam@126: # Solaris 10 /bin/sh. cannam@126: echo '/* dummy */' > sub/conftst$i.h cannam@126: done cannam@126: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@126: cannam@126: # We check with '-c' and '-o' for the sake of the "dashmstdout" cannam@126: # mode. It turns out that the SunPro C++ compiler does not properly cannam@126: # handle '-M -o', and we need to detect this. Also, some Intel cannam@126: # versions had trouble with output in subdirs. cannam@126: am__obj=sub/conftest.${OBJEXT-o} cannam@126: am__minus_obj="-o $am__obj" cannam@126: case $depmode in cannam@126: gcc) cannam@126: # This depmode causes a compiler race in universal mode. cannam@126: test "$am__universal" = false || continue cannam@126: ;; cannam@126: nosideeffect) cannam@126: # After this tag, mechanisms are not by side-effect, so they'll cannam@126: # only be used when explicitly requested. cannam@126: if test "x$enable_dependency_tracking" = xyes; then cannam@126: continue cannam@126: else cannam@126: break cannam@126: fi cannam@126: ;; cannam@126: msvc7 | msvc7msys | msvisualcpp | msvcmsys) cannam@126: # This compiler won't grok '-c -o', but also, the minuso test has cannam@126: # not run yet. These depmodes are late enough in the game, and cannam@126: # so weak that their functioning should not be impacted. cannam@126: am__obj=conftest.${OBJEXT-o} cannam@126: am__minus_obj= cannam@126: ;; cannam@126: none) break ;; cannam@126: esac cannam@126: if depmode=$depmode \ cannam@126: source=sub/conftest.c object=$am__obj \ cannam@126: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@126: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ cannam@126: >/dev/null 2>conftest.err && cannam@126: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && cannam@126: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@126: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && cannam@126: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@126: # icc doesn't choke on unknown options, it will just issue warnings cannam@126: # or remarks (even with -Werror). So we grep stderr for any message cannam@126: # that says an option was ignored or not supported. cannam@126: # When given -MP, icc 7.0 and 7.1 complain thusly: cannam@126: # icc: Command line warning: ignoring option '-M'; no argument required cannam@126: # The diagnosis changed in icc 8.0: cannam@126: # icc: Command line remark: option '-MP' not supported cannam@126: if (grep 'ignoring option' conftest.err || cannam@126: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else cannam@126: am_cv_CC_dependencies_compiler_type=$depmode cannam@126: break cannam@126: fi cannam@126: fi cannam@126: done cannam@126: cannam@126: cd .. cannam@126: rm -rf conftest.dir cannam@126: else cannam@126: am_cv_CC_dependencies_compiler_type=none cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 cannam@126: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } cannam@126: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type cannam@126: cannam@126: if cannam@126: test "x$enable_dependency_tracking" != xno \ cannam@126: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then cannam@126: am__fastdepCC_TRUE= cannam@126: am__fastdepCC_FALSE='#' cannam@126: else cannam@126: am__fastdepCC_TRUE='#' cannam@126: am__fastdepCC_FALSE= cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: ac_ext=cpp cannam@126: ac_cpp='$CXXCPP $CPPFLAGS' cannam@126: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@126: if test -z "$CXX"; then cannam@126: if test -n "$CCC"; then cannam@126: CXX=$CCC cannam@126: else cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC cannam@126: do cannam@126: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$CXX"; then cannam@126: ac_cv_prog_CXX="$CXX" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: CXX=$ac_cv_prog_CXX cannam@126: if test -n "$CXX"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 cannam@126: $as_echo "$CXX" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$CXX" && break cannam@126: done cannam@126: fi cannam@126: if test -z "$CXX"; then cannam@126: ac_ct_CXX=$CXX cannam@126: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC cannam@126: do cannam@126: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_CXX"; then cannam@126: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_CXX="$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX cannam@126: if test -n "$ac_ct_CXX"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 cannam@126: $as_echo "$ac_ct_CXX" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$ac_ct_CXX" && break cannam@126: done cannam@126: cannam@126: if test "x$ac_ct_CXX" = x; then cannam@126: CXX="g++" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: CXX=$ac_ct_CXX cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: # Provide some information about the compiler. cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 cannam@126: set X $ac_compile cannam@126: ac_compiler=$2 cannam@126: for ac_option in --version -v -V -qversion; do cannam@126: { { ac_try="$ac_compiler $ac_option >&5" cannam@126: case "(($ac_try" in cannam@126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@126: *) ac_try_echo=$ac_try;; cannam@126: esac cannam@126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@126: $as_echo "$ac_try_echo"; } >&5 cannam@126: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@126: ac_status=$? cannam@126: if test -s conftest.err; then cannam@126: sed '10a\ cannam@126: ... rest of stderr output deleted ... cannam@126: 10q' conftest.err >conftest.er1 cannam@126: cat conftest.er1 >&5 cannam@126: fi cannam@126: rm -f conftest.er1 conftest.err cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: done cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 cannam@126: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } cannam@126: if ${ac_cv_cxx_compiler_gnu+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: #ifndef __GNUC__ cannam@126: choke me cannam@126: #endif cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@126: ac_compiler_gnu=yes cannam@126: else cannam@126: ac_compiler_gnu=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 cannam@126: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } cannam@126: if test $ac_compiler_gnu = yes; then cannam@126: GXX=yes cannam@126: else cannam@126: GXX= cannam@126: fi cannam@126: ac_test_CXXFLAGS=${CXXFLAGS+set} cannam@126: ac_save_CXXFLAGS=$CXXFLAGS cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 cannam@126: $as_echo_n "checking whether $CXX accepts -g... " >&6; } cannam@126: if ${ac_cv_prog_cxx_g+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_save_cxx_werror_flag=$ac_cxx_werror_flag cannam@126: ac_cxx_werror_flag=yes cannam@126: ac_cv_prog_cxx_g=no cannam@126: CXXFLAGS="-g" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@126: ac_cv_prog_cxx_g=yes cannam@126: else cannam@126: CXXFLAGS="" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_cxx_werror_flag=$ac_save_cxx_werror_flag cannam@126: CXXFLAGS="-g" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@126: ac_cv_prog_cxx_g=yes cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: ac_cxx_werror_flag=$ac_save_cxx_werror_flag cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 cannam@126: $as_echo "$ac_cv_prog_cxx_g" >&6; } cannam@126: if test "$ac_test_CXXFLAGS" = set; then cannam@126: CXXFLAGS=$ac_save_CXXFLAGS cannam@126: elif test $ac_cv_prog_cxx_g = yes; then cannam@126: if test "$GXX" = yes; then cannam@126: CXXFLAGS="-g -O2" cannam@126: else cannam@126: CXXFLAGS="-g" cannam@126: fi cannam@126: else cannam@126: if test "$GXX" = yes; then cannam@126: CXXFLAGS="-O2" cannam@126: else cannam@126: CXXFLAGS= cannam@126: fi cannam@126: fi cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: depcc="$CXX" am_compiler_list= cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 cannam@126: $as_echo_n "checking dependency style of $depcc... " >&6; } cannam@126: if ${am_cv_CXX_dependencies_compiler_type+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@126: # We make a subdir and do the tests there. Otherwise we can end up cannam@126: # making bogus files that we don't know about and never remove. For cannam@126: # instance it was reported that on HP-UX the gcc test will end up cannam@126: # making a dummy file named 'D' -- because '-MD' means "put the output cannam@126: # in D". cannam@126: rm -rf conftest.dir cannam@126: mkdir conftest.dir cannam@126: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@126: # using a relative directory. cannam@126: cp "$am_depcomp" conftest.dir cannam@126: cd conftest.dir cannam@126: # We will build objects and dependencies in a subdirectory because cannam@126: # it helps to detect inapplicable dependency modes. For instance cannam@126: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@126: # side effect of compilation, but ICC will put the dependencies in cannam@126: # the current directory while Tru64 will put them in the object cannam@126: # directory. cannam@126: mkdir sub cannam@126: cannam@126: am_cv_CXX_dependencies_compiler_type=none cannam@126: if test "$am_compiler_list" = ""; then cannam@126: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@126: fi cannam@126: am__universal=false cannam@126: case " $depcc " in #( cannam@126: *\ -arch\ *\ -arch\ *) am__universal=true ;; cannam@126: esac cannam@126: cannam@126: for depmode in $am_compiler_list; do cannam@126: # Setup a source with many dependencies, because some compilers cannam@126: # like to wrap large dependency lists on column 80 (with \), and cannam@126: # we should not choose a depcomp mode which is confused by this. cannam@126: # cannam@126: # We need to recreate these files for each test, as the compiler may cannam@126: # overwrite some of them when testing with obscure command lines. cannam@126: # This happens at least with the AIX C compiler. cannam@126: : > sub/conftest.c cannam@126: for i in 1 2 3 4 5 6; do cannam@126: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@126: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with cannam@126: # Solaris 10 /bin/sh. cannam@126: echo '/* dummy */' > sub/conftst$i.h cannam@126: done cannam@126: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@126: cannam@126: # We check with '-c' and '-o' for the sake of the "dashmstdout" cannam@126: # mode. It turns out that the SunPro C++ compiler does not properly cannam@126: # handle '-M -o', and we need to detect this. Also, some Intel cannam@126: # versions had trouble with output in subdirs. cannam@126: am__obj=sub/conftest.${OBJEXT-o} cannam@126: am__minus_obj="-o $am__obj" cannam@126: case $depmode in cannam@126: gcc) cannam@126: # This depmode causes a compiler race in universal mode. cannam@126: test "$am__universal" = false || continue cannam@126: ;; cannam@126: nosideeffect) cannam@126: # After this tag, mechanisms are not by side-effect, so they'll cannam@126: # only be used when explicitly requested. cannam@126: if test "x$enable_dependency_tracking" = xyes; then cannam@126: continue cannam@126: else cannam@126: break cannam@126: fi cannam@126: ;; cannam@126: msvc7 | msvc7msys | msvisualcpp | msvcmsys) cannam@126: # This compiler won't grok '-c -o', but also, the minuso test has cannam@126: # not run yet. These depmodes are late enough in the game, and cannam@126: # so weak that their functioning should not be impacted. cannam@126: am__obj=conftest.${OBJEXT-o} cannam@126: am__minus_obj= cannam@126: ;; cannam@126: none) break ;; cannam@126: esac cannam@126: if depmode=$depmode \ cannam@126: source=sub/conftest.c object=$am__obj \ cannam@126: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@126: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ cannam@126: >/dev/null 2>conftest.err && cannam@126: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && cannam@126: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@126: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && cannam@126: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@126: # icc doesn't choke on unknown options, it will just issue warnings cannam@126: # or remarks (even with -Werror). So we grep stderr for any message cannam@126: # that says an option was ignored or not supported. cannam@126: # When given -MP, icc 7.0 and 7.1 complain thusly: cannam@126: # icc: Command line warning: ignoring option '-M'; no argument required cannam@126: # The diagnosis changed in icc 8.0: cannam@126: # icc: Command line remark: option '-MP' not supported cannam@126: if (grep 'ignoring option' conftest.err || cannam@126: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else cannam@126: am_cv_CXX_dependencies_compiler_type=$depmode cannam@126: break cannam@126: fi cannam@126: fi cannam@126: done cannam@126: cannam@126: cd .. cannam@126: rm -rf conftest.dir cannam@126: else cannam@126: am_cv_CXX_dependencies_compiler_type=none cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 cannam@126: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } cannam@126: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type cannam@126: cannam@126: if cannam@126: test "x$enable_dependency_tracking" != xno \ cannam@126: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then cannam@126: am__fastdepCXX_TRUE= cannam@126: am__fastdepCXX_FALSE='#' cannam@126: else cannam@126: am__fastdepCXX_TRUE='#' cannam@126: am__fastdepCXX_FALSE= cannam@126: fi cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 cannam@126: $as_echo_n "checking for a sed that does not truncate output... " >&6; } cannam@126: if ${ac_cv_path_SED+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ cannam@126: for ac_i in 1 2 3 4 5 6 7; do cannam@126: ac_script="$ac_script$as_nl$ac_script" cannam@126: done cannam@126: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed cannam@126: { ac_script=; unset ac_script;} cannam@126: if test -z "$SED"; then cannam@126: ac_path_SED_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in sed gsed; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_SED" || continue cannam@126: # Check for GNU ac_path_SED and select it if it is found. cannam@126: # Check for GNU $ac_path_SED cannam@126: case `"$ac_path_SED" --version 2>&1` in cannam@126: *GNU*) cannam@126: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; cannam@126: *) cannam@126: ac_count=0 cannam@126: $as_echo_n 0123456789 >"conftest.in" cannam@126: while : cannam@126: do cannam@126: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@126: mv "conftest.tmp" "conftest.in" cannam@126: cp "conftest.in" "conftest.nl" cannam@126: $as_echo '' >> "conftest.nl" cannam@126: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@126: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@126: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@126: if test $ac_count -gt ${ac_path_SED_max-0}; then cannam@126: # Best one so far, save it but keep looking for a better one cannam@126: ac_cv_path_SED="$ac_path_SED" cannam@126: ac_path_SED_max=$ac_count cannam@126: fi cannam@126: # 10*(2^10) chars as input seems more than enough cannam@126: test $ac_count -gt 10 && break cannam@126: done cannam@126: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@126: esac cannam@126: cannam@126: $ac_path_SED_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_SED"; then cannam@126: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: ac_cv_path_SED=$SED cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 cannam@126: $as_echo "$ac_cv_path_SED" >&6; } cannam@126: SED="$ac_cv_path_SED" cannam@126: rm -f conftest.sed cannam@126: cannam@126: cannam@126: # Do not check for F77. cannam@126: cannam@126: case `pwd` in cannam@126: *\ * | *\ *) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 cannam@126: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: macro_version='2.4.6' cannam@126: macro_revision='2.4.6' cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: ltmain=$ac_aux_dir/ltmain.sh cannam@126: cannam@126: # Backslashify metacharacters that are still active within cannam@126: # double-quoted strings. cannam@126: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' cannam@126: cannam@126: # Same as above, but do not quote variable references. cannam@126: double_quote_subst='s/\(["`\\]\)/\\\1/g' cannam@126: cannam@126: # Sed substitution to delay expansion of an escaped shell variable in a cannam@126: # double_quote_subst'ed string. cannam@126: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@126: cannam@126: # Sed substitution to delay expansion of an escaped single quote. cannam@126: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' cannam@126: cannam@126: # Sed substitution to avoid accidental globbing in evaled expressions cannam@126: no_glob_subst='s/\*/\\\*/g' cannam@126: cannam@126: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@126: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO cannam@126: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 cannam@126: $as_echo_n "checking how to print strings... " >&6; } cannam@126: # Test print first, because it will be a builtin if present. cannam@126: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ cannam@126: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then cannam@126: ECHO='print -r --' cannam@126: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then cannam@126: ECHO='printf %s\n' cannam@126: else cannam@126: # Use this function as a fallback that always works. cannam@126: func_fallback_echo () cannam@126: { cannam@126: eval 'cat <<_LTECHO_EOF cannam@126: $1 cannam@126: _LTECHO_EOF' cannam@126: } cannam@126: ECHO='func_fallback_echo' cannam@126: fi cannam@126: cannam@126: # func_echo_all arg... cannam@126: # Invoke $ECHO with all args, space-separated. cannam@126: func_echo_all () cannam@126: { cannam@126: $ECHO "" cannam@126: } cannam@126: cannam@126: case $ECHO in cannam@126: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 cannam@126: $as_echo "printf" >&6; } ;; cannam@126: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 cannam@126: $as_echo "print -r" >&6; } ;; cannam@126: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 cannam@126: $as_echo "cat" >&6; } ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 cannam@126: $as_echo_n "checking for a sed that does not truncate output... " >&6; } cannam@126: if ${ac_cv_path_SED+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ cannam@126: for ac_i in 1 2 3 4 5 6 7; do cannam@126: ac_script="$ac_script$as_nl$ac_script" cannam@126: done cannam@126: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed cannam@126: { ac_script=; unset ac_script;} cannam@126: if test -z "$SED"; then cannam@126: ac_path_SED_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in sed gsed; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_SED" || continue cannam@126: # Check for GNU ac_path_SED and select it if it is found. cannam@126: # Check for GNU $ac_path_SED cannam@126: case `"$ac_path_SED" --version 2>&1` in cannam@126: *GNU*) cannam@126: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; cannam@126: *) cannam@126: ac_count=0 cannam@126: $as_echo_n 0123456789 >"conftest.in" cannam@126: while : cannam@126: do cannam@126: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@126: mv "conftest.tmp" "conftest.in" cannam@126: cp "conftest.in" "conftest.nl" cannam@126: $as_echo '' >> "conftest.nl" cannam@126: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@126: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@126: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@126: if test $ac_count -gt ${ac_path_SED_max-0}; then cannam@126: # Best one so far, save it but keep looking for a better one cannam@126: ac_cv_path_SED="$ac_path_SED" cannam@126: ac_path_SED_max=$ac_count cannam@126: fi cannam@126: # 10*(2^10) chars as input seems more than enough cannam@126: test $ac_count -gt 10 && break cannam@126: done cannam@126: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@126: esac cannam@126: cannam@126: $ac_path_SED_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_SED"; then cannam@126: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: ac_cv_path_SED=$SED cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 cannam@126: $as_echo "$ac_cv_path_SED" >&6; } cannam@126: SED="$ac_cv_path_SED" cannam@126: rm -f conftest.sed cannam@126: cannam@126: test -z "$SED" && SED=sed cannam@126: Xsed="$SED -e 1s/^X//" cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 cannam@126: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } cannam@126: if ${ac_cv_path_GREP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -z "$GREP"; then cannam@126: ac_path_GREP_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in grep ggrep; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_GREP" || continue cannam@126: # Check for GNU ac_path_GREP and select it if it is found. cannam@126: # Check for GNU $ac_path_GREP cannam@126: case `"$ac_path_GREP" --version 2>&1` in cannam@126: *GNU*) cannam@126: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; cannam@126: *) cannam@126: ac_count=0 cannam@126: $as_echo_n 0123456789 >"conftest.in" cannam@126: while : cannam@126: do cannam@126: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@126: mv "conftest.tmp" "conftest.in" cannam@126: cp "conftest.in" "conftest.nl" cannam@126: $as_echo 'GREP' >> "conftest.nl" cannam@126: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@126: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@126: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@126: if test $ac_count -gt ${ac_path_GREP_max-0}; then cannam@126: # Best one so far, save it but keep looking for a better one cannam@126: ac_cv_path_GREP="$ac_path_GREP" cannam@126: ac_path_GREP_max=$ac_count cannam@126: fi cannam@126: # 10*(2^10) chars as input seems more than enough cannam@126: test $ac_count -gt 10 && break cannam@126: done cannam@126: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@126: esac cannam@126: cannam@126: $ac_path_GREP_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_GREP"; then cannam@126: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: ac_cv_path_GREP=$GREP cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 cannam@126: $as_echo "$ac_cv_path_GREP" >&6; } cannam@126: GREP="$ac_cv_path_GREP" cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 cannam@126: $as_echo_n "checking for egrep... " >&6; } cannam@126: if ${ac_cv_path_EGREP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 cannam@126: then ac_cv_path_EGREP="$GREP -E" cannam@126: else cannam@126: if test -z "$EGREP"; then cannam@126: ac_path_EGREP_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in egrep; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_EGREP" || continue cannam@126: # Check for GNU ac_path_EGREP and select it if it is found. cannam@126: # Check for GNU $ac_path_EGREP cannam@126: case `"$ac_path_EGREP" --version 2>&1` in cannam@126: *GNU*) cannam@126: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; cannam@126: *) cannam@126: ac_count=0 cannam@126: $as_echo_n 0123456789 >"conftest.in" cannam@126: while : cannam@126: do cannam@126: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@126: mv "conftest.tmp" "conftest.in" cannam@126: cp "conftest.in" "conftest.nl" cannam@126: $as_echo 'EGREP' >> "conftest.nl" cannam@126: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@126: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@126: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@126: if test $ac_count -gt ${ac_path_EGREP_max-0}; then cannam@126: # Best one so far, save it but keep looking for a better one cannam@126: ac_cv_path_EGREP="$ac_path_EGREP" cannam@126: ac_path_EGREP_max=$ac_count cannam@126: fi cannam@126: # 10*(2^10) chars as input seems more than enough cannam@126: test $ac_count -gt 10 && break cannam@126: done cannam@126: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@126: esac cannam@126: cannam@126: $ac_path_EGREP_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_EGREP"; then cannam@126: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: ac_cv_path_EGREP=$EGREP cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 cannam@126: $as_echo "$ac_cv_path_EGREP" >&6; } cannam@126: EGREP="$ac_cv_path_EGREP" cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 cannam@126: $as_echo_n "checking for fgrep... " >&6; } cannam@126: if ${ac_cv_path_FGREP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 cannam@126: then ac_cv_path_FGREP="$GREP -F" cannam@126: else cannam@126: if test -z "$FGREP"; then cannam@126: ac_path_FGREP_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in fgrep; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_FGREP" || continue cannam@126: # Check for GNU ac_path_FGREP and select it if it is found. cannam@126: # Check for GNU $ac_path_FGREP cannam@126: case `"$ac_path_FGREP" --version 2>&1` in cannam@126: *GNU*) cannam@126: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; cannam@126: *) cannam@126: ac_count=0 cannam@126: $as_echo_n 0123456789 >"conftest.in" cannam@126: while : cannam@126: do cannam@126: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@126: mv "conftest.tmp" "conftest.in" cannam@126: cp "conftest.in" "conftest.nl" cannam@126: $as_echo 'FGREP' >> "conftest.nl" cannam@126: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@126: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@126: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@126: if test $ac_count -gt ${ac_path_FGREP_max-0}; then cannam@126: # Best one so far, save it but keep looking for a better one cannam@126: ac_cv_path_FGREP="$ac_path_FGREP" cannam@126: ac_path_FGREP_max=$ac_count cannam@126: fi cannam@126: # 10*(2^10) chars as input seems more than enough cannam@126: test $ac_count -gt 10 && break cannam@126: done cannam@126: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@126: esac cannam@126: cannam@126: $ac_path_FGREP_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_FGREP"; then cannam@126: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: ac_cv_path_FGREP=$FGREP cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 cannam@126: $as_echo "$ac_cv_path_FGREP" >&6; } cannam@126: FGREP="$ac_cv_path_FGREP" cannam@126: cannam@126: cannam@126: test -z "$GREP" && GREP=grep cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Check whether --with-gnu-ld was given. cannam@126: if test "${with_gnu_ld+set}" = set; then : cannam@126: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes cannam@126: else cannam@126: with_gnu_ld=no cannam@126: fi cannam@126: cannam@126: ac_prog=ld cannam@126: if test yes = "$GCC"; then cannam@126: # Check if gcc -print-prog-name=ld gives a path. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 cannam@126: $as_echo_n "checking for ld used by $CC... " >&6; } cannam@126: case $host in cannam@126: *-*-mingw*) cannam@126: # gcc leaves a trailing carriage return, which upsets mingw cannam@126: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@126: *) cannam@126: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@126: esac cannam@126: case $ac_prog in cannam@126: # Accept absolute paths. cannam@126: [\\/]* | ?:[\\/]*) cannam@126: re_direlt='/[^/][^/]*/\.\./' cannam@126: # Canonicalize the pathname of ld cannam@126: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` cannam@126: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do cannam@126: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` cannam@126: done cannam@126: test -z "$LD" && LD=$ac_prog cannam@126: ;; cannam@126: "") cannam@126: # If it fails, then pretend we aren't using GCC. cannam@126: ac_prog=ld cannam@126: ;; cannam@126: *) cannam@126: # If it is relative, then search for the first ld in PATH. cannam@126: with_gnu_ld=unknown cannam@126: ;; cannam@126: esac cannam@126: elif test yes = "$with_gnu_ld"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 cannam@126: $as_echo_n "checking for GNU ld... " >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 cannam@126: $as_echo_n "checking for non-GNU ld... " >&6; } cannam@126: fi cannam@126: if ${lt_cv_path_LD+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -z "$LD"; then cannam@126: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@126: for ac_dir in $PATH; do cannam@126: IFS=$lt_save_ifs cannam@126: test -z "$ac_dir" && ac_dir=. cannam@126: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@126: lt_cv_path_LD=$ac_dir/$ac_prog cannam@126: # Check to see if the program is GNU ld. I'd rather use --version, cannam@126: # but apparently some variants of GNU ld only accept -v. cannam@126: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@126: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@126: $as_echo "$LD" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 cannam@126: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } cannam@126: if ${lt_cv_prog_gnu_ld+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # I'd rather use --version here, but apparently some GNU lds only accept -v. cannam@126: case `$LD -v 2>&1 &5 cannam@126: $as_echo "$lt_cv_prog_gnu_ld" >&6; } cannam@126: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 cannam@126: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } cannam@126: if ${lt_cv_path_NM+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$NM"; then cannam@126: # Let the user override the test. cannam@126: lt_cv_path_NM=$NM cannam@126: else cannam@126: lt_nm_to_check=${ac_tool_prefix}nm cannam@126: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then cannam@126: lt_nm_to_check="$lt_nm_to_check nm" cannam@126: fi cannam@126: for lt_tmp_nm in $lt_nm_to_check; do cannam@126: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@126: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do cannam@126: IFS=$lt_save_ifs cannam@126: test -z "$ac_dir" && ac_dir=. cannam@126: tmp_nm=$ac_dir/$lt_tmp_nm cannam@126: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then cannam@126: # Check to see if the nm accepts a BSD-compat flag. cannam@126: # Adding the 'sed 1q' prevents false positives on HP-UX, which says: cannam@126: # nm: unknown option "B" ignored cannam@126: # Tru64's nm complains that /dev/null is an invalid object file cannam@126: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty cannam@126: case $build_os in cannam@126: mingw*) lt_bad_file=conftest.nm/nofile ;; cannam@126: *) lt_bad_file=/dev/null ;; cannam@126: esac cannam@126: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in cannam@126: *$lt_bad_file* | *'Invalid file or object type'*) cannam@126: lt_cv_path_NM="$tmp_nm -B" cannam@126: break 2 cannam@126: ;; cannam@126: *) cannam@126: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@126: */dev/null*) cannam@126: lt_cv_path_NM="$tmp_nm -p" cannam@126: break 2 cannam@126: ;; cannam@126: *) cannam@126: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@126: continue # so that we can try to find one that supports BSD flags cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: done cannam@126: : ${lt_cv_path_NM=no} cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 cannam@126: $as_echo "$lt_cv_path_NM" >&6; } cannam@126: if test no != "$lt_cv_path_NM"; then cannam@126: NM=$lt_cv_path_NM cannam@126: else cannam@126: # Didn't find any BSD compatible name lister, look for dumpbin. cannam@126: if test -n "$DUMPBIN"; then : cannam@126: # Let the user override the test. cannam@126: else cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: for ac_prog in dumpbin "link -dump" cannam@126: do cannam@126: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_DUMPBIN+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$DUMPBIN"; then cannam@126: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: DUMPBIN=$ac_cv_prog_DUMPBIN cannam@126: if test -n "$DUMPBIN"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 cannam@126: $as_echo "$DUMPBIN" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$DUMPBIN" && break cannam@126: done cannam@126: fi cannam@126: if test -z "$DUMPBIN"; then cannam@126: ac_ct_DUMPBIN=$DUMPBIN cannam@126: for ac_prog in dumpbin "link -dump" cannam@126: do cannam@126: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_DUMPBIN"; then cannam@126: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN cannam@126: if test -n "$ac_ct_DUMPBIN"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 cannam@126: $as_echo "$ac_ct_DUMPBIN" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$ac_ct_DUMPBIN" && break cannam@126: done cannam@126: cannam@126: if test "x$ac_ct_DUMPBIN" = x; then cannam@126: DUMPBIN=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: DUMPBIN=$ac_ct_DUMPBIN cannam@126: fi cannam@126: fi cannam@126: cannam@126: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in cannam@126: *COFF*) cannam@126: DUMPBIN="$DUMPBIN -symbols -headers" cannam@126: ;; cannam@126: *) cannam@126: DUMPBIN=: cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: if test : != "$DUMPBIN"; then cannam@126: NM=$DUMPBIN cannam@126: fi cannam@126: fi cannam@126: test -z "$NM" && NM=nm cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 cannam@126: $as_echo_n "checking the name lister ($NM) interface... " >&6; } cannam@126: if ${lt_cv_nm_interface+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_nm_interface="BSD nm" cannam@126: echo "int some_variable = 0;" > conftest.$ac_ext cannam@126: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) cannam@126: (eval "$ac_compile" 2>conftest.err) cannam@126: cat conftest.err >&5 cannam@126: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) cannam@126: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cannam@126: cat conftest.err >&5 cannam@126: (eval echo "\"\$as_me:$LINENO: output\"" >&5) cannam@126: cat conftest.out >&5 cannam@126: if $GREP 'External.*some_variable' conftest.out > /dev/null; then cannam@126: lt_cv_nm_interface="MS dumpbin" cannam@126: fi cannam@126: rm -f conftest* cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 cannam@126: $as_echo "$lt_cv_nm_interface" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 cannam@126: $as_echo_n "checking whether ln -s works... " >&6; } cannam@126: LN_S=$as_ln_s cannam@126: if test "$LN_S" = "ln -s"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 cannam@126: $as_echo "no, using $LN_S" >&6; } cannam@126: fi cannam@126: cannam@126: # find the maximum length of command line arguments cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 cannam@126: $as_echo_n "checking the maximum length of command line arguments... " >&6; } cannam@126: if ${lt_cv_sys_max_cmd_len+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: i=0 cannam@126: teststring=ABCD cannam@126: cannam@126: case $build_os in cannam@126: msdosdjgpp*) cannam@126: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@126: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@126: # during glob expansion). Even if it were fixed, the result of this cannam@126: # check would be larger than it should be. cannam@126: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@126: ;; cannam@126: cannam@126: gnu*) cannam@126: # Under GNU Hurd, this test is not required because there is cannam@126: # no limit to the length of command line arguments. cannam@126: # Libtool will interpret -1 as no limit whatsoever cannam@126: lt_cv_sys_max_cmd_len=-1; cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | cegcc*) cannam@126: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@126: # about 5 minutes as the teststring grows exponentially. cannam@126: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@126: # you end up with a "frozen" computer, even though with patience cannam@126: # the test eventually succeeds (with a max line length of 256k). cannam@126: # Instead, let's just punt: use the minimum linelength reported by cannam@126: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@126: lt_cv_sys_max_cmd_len=8192; cannam@126: ;; cannam@126: cannam@126: mint*) cannam@126: # On MiNT this can take a long time and run out of memory. cannam@126: lt_cv_sys_max_cmd_len=8192; cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: # On AmigaOS with pdksh, this test takes hours, literally. cannam@126: # So we just punt and use a minimum line length of 8192. cannam@126: lt_cv_sys_max_cmd_len=8192; cannam@126: ;; cannam@126: cannam@126: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) cannam@126: # This has been around since 386BSD, at least. Likely further. cannam@126: if test -x /sbin/sysctl; then cannam@126: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` cannam@126: elif test -x /usr/sbin/sysctl; then cannam@126: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` cannam@126: else cannam@126: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs cannam@126: fi cannam@126: # And add a safety zone cannam@126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@126: ;; cannam@126: cannam@126: interix*) cannam@126: # We know the value 262144 and hardcode it with a safety zone (like BSD) cannam@126: lt_cv_sys_max_cmd_len=196608 cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: # The test takes a long time on OS/2. cannam@126: lt_cv_sys_max_cmd_len=8192 cannam@126: ;; cannam@126: cannam@126: osf*) cannam@126: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure cannam@126: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not cannam@126: # nice to cause kernel panics so lets avoid the loop below. cannam@126: # First set a reasonable default. cannam@126: lt_cv_sys_max_cmd_len=16384 cannam@126: # cannam@126: if test -x /sbin/sysconfig; then cannam@126: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in cannam@126: *1*) lt_cv_sys_max_cmd_len=-1 ;; cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: sco3.2v5*) cannam@126: lt_cv_sys_max_cmd_len=102400 cannam@126: ;; cannam@126: sysv5* | sco5v6* | sysv4.2uw2*) cannam@126: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` cannam@126: if test -n "$kargmax"; then cannam@126: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` cannam@126: else cannam@126: lt_cv_sys_max_cmd_len=32768 cannam@126: fi cannam@126: ;; cannam@126: *) cannam@126: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` cannam@126: if test -n "$lt_cv_sys_max_cmd_len" && \ cannam@126: test undefined != "$lt_cv_sys_max_cmd_len"; then cannam@126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@126: else cannam@126: # Make teststring a little bigger before we do anything with it. cannam@126: # a 1K string should be a reasonable start. cannam@126: for i in 1 2 3 4 5 6 7 8; do cannam@126: teststring=$teststring$teststring cannam@126: done cannam@126: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} cannam@126: # If test is not a shell built-in, we'll probably end up computing a cannam@126: # maximum length that is only half of the actual maximum length, but cannam@126: # we can't tell. cannam@126: while { test X`env echo "$teststring$teststring" 2>/dev/null` \ cannam@126: = "X$teststring$teststring"; } >/dev/null 2>&1 && cannam@126: test 17 != "$i" # 1/2 MB should be enough cannam@126: do cannam@126: i=`expr $i + 1` cannam@126: teststring=$teststring$teststring cannam@126: done cannam@126: # Only check the string length outside the loop. cannam@126: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` cannam@126: teststring= cannam@126: # Add a significant safety factor because C++ compilers can tack on cannam@126: # massive amounts of additional arguments before passing them to the cannam@126: # linker. It appears as though 1/2 is a usable value. cannam@126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: fi cannam@126: cannam@126: if test -n "$lt_cv_sys_max_cmd_len"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 cannam@126: $as_echo "$lt_cv_sys_max_cmd_len" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 cannam@126: $as_echo "none" >&6; } cannam@126: fi cannam@126: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: : ${CP="cp -f"} cannam@126: : ${MV="mv -f"} cannam@126: : ${RM="rm -f"} cannam@126: cannam@126: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@126: lt_unset=unset cannam@126: else cannam@126: lt_unset=false cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # test EBCDIC or ASCII cannam@126: case `echo X|tr X '\101'` in cannam@126: A) # ASCII based system cannam@126: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr cannam@126: lt_SP2NL='tr \040 \012' cannam@126: lt_NL2SP='tr \015\012 \040\040' cannam@126: ;; cannam@126: *) # EBCDIC based system cannam@126: lt_SP2NL='tr \100 \n' cannam@126: lt_NL2SP='tr \r\n \100\100' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 cannam@126: $as_echo_n "checking how to convert $build file names to $host format... " >&6; } cannam@126: if ${lt_cv_to_host_file_cmd+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: case $host in cannam@126: *-*-mingw* ) cannam@126: case $build in cannam@126: *-*-mingw* ) # actually msys cannam@126: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 cannam@126: ;; cannam@126: *-*-cygwin* ) cannam@126: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 cannam@126: ;; cannam@126: * ) # otherwise, assume *nix cannam@126: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *-*-cygwin* ) cannam@126: case $build in cannam@126: *-*-mingw* ) # actually msys cannam@126: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin cannam@126: ;; cannam@126: *-*-cygwin* ) cannam@126: lt_cv_to_host_file_cmd=func_convert_file_noop cannam@126: ;; cannam@126: * ) # otherwise, assume *nix cannam@126: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: * ) # unhandled hosts (and "normal" native builds) cannam@126: lt_cv_to_host_file_cmd=func_convert_file_noop cannam@126: ;; cannam@126: esac cannam@126: cannam@126: fi cannam@126: cannam@126: to_host_file_cmd=$lt_cv_to_host_file_cmd cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 cannam@126: $as_echo "$lt_cv_to_host_file_cmd" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 cannam@126: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } cannam@126: if ${lt_cv_to_tool_file_cmd+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: #assume ordinary cross tools, or native build. cannam@126: lt_cv_to_tool_file_cmd=func_convert_file_noop cannam@126: case $host in cannam@126: *-*-mingw* ) cannam@126: case $build in cannam@126: *-*-mingw* ) # actually msys cannam@126: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: cannam@126: fi cannam@126: cannam@126: to_tool_file_cmd=$lt_cv_to_tool_file_cmd cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 cannam@126: $as_echo "$lt_cv_to_tool_file_cmd" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 cannam@126: $as_echo_n "checking for $LD option to reload object files... " >&6; } cannam@126: if ${lt_cv_ld_reload_flag+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_ld_reload_flag='-r' cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 cannam@126: $as_echo "$lt_cv_ld_reload_flag" >&6; } cannam@126: reload_flag=$lt_cv_ld_reload_flag cannam@126: case $reload_flag in cannam@126: "" | " "*) ;; cannam@126: *) reload_flag=" $reload_flag" ;; cannam@126: esac cannam@126: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@126: case $host_os in cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: if test yes != "$GCC"; then cannam@126: reload_cmds=false cannam@126: fi cannam@126: ;; cannam@126: darwin*) cannam@126: if test yes = "$GCC"; then cannam@126: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' cannam@126: else cannam@126: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}objdump; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_OBJDUMP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$OBJDUMP"; then cannam@126: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: OBJDUMP=$ac_cv_prog_OBJDUMP cannam@126: if test -n "$OBJDUMP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 cannam@126: $as_echo "$OBJDUMP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_OBJDUMP"; then cannam@126: ac_ct_OBJDUMP=$OBJDUMP cannam@126: # Extract the first word of "objdump", so it can be a program name with args. cannam@126: set dummy objdump; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_OBJDUMP"; then cannam@126: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_OBJDUMP="objdump" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP cannam@126: if test -n "$ac_ct_OBJDUMP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 cannam@126: $as_echo "$ac_ct_OBJDUMP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_OBJDUMP" = x; then cannam@126: OBJDUMP="false" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: OBJDUMP=$ac_ct_OBJDUMP cannam@126: fi cannam@126: else cannam@126: OBJDUMP="$ac_cv_prog_OBJDUMP" cannam@126: fi cannam@126: cannam@126: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 cannam@126: $as_echo_n "checking how to recognize dependent libraries... " >&6; } cannam@126: if ${lt_cv_deplibs_check_method+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_file_magic_cmd='$MAGIC_CMD' cannam@126: lt_cv_file_magic_test_file= cannam@126: lt_cv_deplibs_check_method='unknown' cannam@126: # Need to set the preceding variable on all platforms that support cannam@126: # interlibrary dependencies. cannam@126: # 'none' -- dependencies not supported. cannam@126: # 'unknown' -- same as none, but documents that we really don't know. cannam@126: # 'pass_all' -- all dependencies passed with no checks. cannam@126: # 'test_compile' -- check by making test program. cannam@126: # 'file_magic [[regex]]' -- check by looking for files in library path cannam@126: # that responds to the $file_magic_cmd with a given extended regex. cannam@126: # If you have 'file' or equivalent on your system and you're not sure cannam@126: # whether 'pass_all' will *always* work, you probably want this one. cannam@126: cannam@126: case $host_os in cannam@126: aix[4-9]*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: beos*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: bsdi[45]*) cannam@126: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' cannam@126: lt_cv_file_magic_cmd='/usr/bin/file -L' cannam@126: lt_cv_file_magic_test_file=/shlib/libc.so cannam@126: ;; cannam@126: cannam@126: cygwin*) cannam@126: # func_win32_libid is a shell function defined in ltmain.sh cannam@126: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@126: lt_cv_file_magic_cmd='func_win32_libid' cannam@126: ;; cannam@126: cannam@126: mingw* | pw32*) cannam@126: # Base MSYS/MinGW do not provide the 'file' command needed by cannam@126: # func_win32_libid shell function, so use a weaker test based on 'objdump', cannam@126: # unless we find 'file', for example because we are cross-compiling. cannam@126: if ( file / ) >/dev/null 2>&1; then cannam@126: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@126: lt_cv_file_magic_cmd='func_win32_libid' cannam@126: else cannam@126: # Keep this pattern in sync with the one in func_win32_libid. cannam@126: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' cannam@126: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: cegcc*) cannam@126: # use the weaker test based on 'objdump'. See mingw*. cannam@126: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' cannam@126: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: freebsd* | dragonfly*) cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@126: case $host_cpu in cannam@126: i*86 ) cannam@126: # Not sure whether the presence of OpenBSD here was a mistake. cannam@126: # Let's accept both of them until this is cleared up. cannam@126: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' cannam@126: lt_cv_file_magic_cmd=/usr/bin/file cannam@126: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: fi cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: hpux10.20* | hpux11*) cannam@126: lt_cv_file_magic_cmd=/usr/bin/file cannam@126: case $host_cpu in cannam@126: ia64*) cannam@126: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' cannam@126: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@126: ;; cannam@126: hppa*64*) cannam@126: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' cannam@126: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@126: ;; cannam@126: *) cannam@126: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' cannam@126: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here cannam@126: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' cannam@126: ;; cannam@126: cannam@126: irix5* | irix6* | nonstopux*) cannam@126: case $LD in cannam@126: *-32|*"-32 ") libmagic=32-bit;; cannam@126: *-n32|*"-n32 ") libmagic=N32;; cannam@126: *-64|*"-64 ") libmagic=64-bit;; cannam@126: *) libmagic=never-match;; cannam@126: esac cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: # This must be glibc/ELF. cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: netbsd* | netbsdelf*-gnu) cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@126: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@126: else cannam@126: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: newos6*) cannam@126: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' cannam@126: lt_cv_file_magic_cmd=/usr/bin/file cannam@126: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: openbsd* | bitrig*) cannam@126: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@126: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' cannam@126: else cannam@126: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: osf3* | osf4* | osf5*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: rdos*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: cannam@126: sysv4 | sysv4.3*) cannam@126: case $host_vendor in cannam@126: motorola) cannam@126: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' cannam@126: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@126: ;; cannam@126: ncr) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: sequent) cannam@126: lt_cv_file_magic_cmd='/bin/file' cannam@126: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' cannam@126: ;; cannam@126: sni) cannam@126: lt_cv_file_magic_cmd='/bin/file' cannam@126: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" cannam@126: lt_cv_file_magic_test_file=/lib/libc.so cannam@126: ;; cannam@126: siemens) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: pc) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: tpf*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: os2*) cannam@126: lt_cv_deplibs_check_method=pass_all cannam@126: ;; cannam@126: esac cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 cannam@126: $as_echo "$lt_cv_deplibs_check_method" >&6; } cannam@126: cannam@126: file_magic_glob= cannam@126: want_nocaseglob=no cannam@126: if test "$build" = "$host"; then cannam@126: case $host_os in cannam@126: mingw* | pw32*) cannam@126: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then cannam@126: want_nocaseglob=yes cannam@126: else cannam@126: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: file_magic_cmd=$lt_cv_file_magic_cmd cannam@126: deplibs_check_method=$lt_cv_deplibs_check_method cannam@126: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_DLLTOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$DLLTOOL"; then cannam@126: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: DLLTOOL=$ac_cv_prog_DLLTOOL cannam@126: if test -n "$DLLTOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 cannam@126: $as_echo "$DLLTOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_DLLTOOL"; then cannam@126: ac_ct_DLLTOOL=$DLLTOOL cannam@126: # Extract the first word of "dlltool", so it can be a program name with args. cannam@126: set dummy dlltool; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_DLLTOOL"; then cannam@126: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_DLLTOOL="dlltool" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL cannam@126: if test -n "$ac_ct_DLLTOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 cannam@126: $as_echo "$ac_ct_DLLTOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_DLLTOOL" = x; then cannam@126: DLLTOOL="false" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: DLLTOOL=$ac_ct_DLLTOOL cannam@126: fi cannam@126: else cannam@126: DLLTOOL="$ac_cv_prog_DLLTOOL" cannam@126: fi cannam@126: cannam@126: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 cannam@126: $as_echo_n "checking how to associate runtime and link libraries... " >&6; } cannam@126: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_sharedlib_from_linklib_cmd='unknown' cannam@126: cannam@126: case $host_os in cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: # two different shell functions defined in ltmain.sh; cannam@126: # decide which one to use based on capabilities of $DLLTOOL cannam@126: case `$DLLTOOL --help 2>&1` in cannam@126: *--identify-strict*) cannam@126: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib cannam@126: ;; cannam@126: *) cannam@126: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *) cannam@126: # fallback: assume linklib IS sharedlib cannam@126: lt_cv_sharedlib_from_linklib_cmd=$ECHO cannam@126: ;; cannam@126: esac cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 cannam@126: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } cannam@126: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd cannam@126: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: for ac_prog in ar cannam@126: do cannam@126: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_AR+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$AR"; then cannam@126: ac_cv_prog_AR="$AR" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_AR="$ac_tool_prefix$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: AR=$ac_cv_prog_AR cannam@126: if test -n "$AR"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 cannam@126: $as_echo "$AR" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$AR" && break cannam@126: done cannam@126: fi cannam@126: if test -z "$AR"; then cannam@126: ac_ct_AR=$AR cannam@126: for ac_prog in ar cannam@126: do cannam@126: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@126: set dummy $ac_prog; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_AR+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_AR"; then cannam@126: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_AR="$ac_prog" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_AR=$ac_cv_prog_ac_ct_AR cannam@126: if test -n "$ac_ct_AR"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 cannam@126: $as_echo "$ac_ct_AR" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: test -n "$ac_ct_AR" && break cannam@126: done cannam@126: cannam@126: if test "x$ac_ct_AR" = x; then cannam@126: AR="false" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: AR=$ac_ct_AR cannam@126: fi cannam@126: fi cannam@126: cannam@126: : ${AR=ar} cannam@126: : ${AR_FLAGS=cru} cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 cannam@126: $as_echo_n "checking for archiver @FILE support... " >&6; } cannam@126: if ${lt_cv_ar_at_file+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_ar_at_file=no cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: echo conftest.$ac_objext > conftest.lst cannam@126: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' cannam@126: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 cannam@126: (eval $lt_ar_try) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: if test 0 -eq "$ac_status"; then cannam@126: # Ensure the archiver fails upon bogus file names. cannam@126: rm -f conftest.$ac_objext libconftest.a cannam@126: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 cannam@126: (eval $lt_ar_try) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: if test 0 -ne "$ac_status"; then cannam@126: lt_cv_ar_at_file=@ cannam@126: fi cannam@126: fi cannam@126: rm -f conftest.* libconftest.a cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 cannam@126: $as_echo "$lt_cv_ar_at_file" >&6; } cannam@126: cannam@126: if test no = "$lt_cv_ar_at_file"; then cannam@126: archiver_list_spec= cannam@126: else cannam@126: archiver_list_spec=$lt_cv_ar_at_file cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_STRIP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$STRIP"; then cannam@126: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: STRIP=$ac_cv_prog_STRIP cannam@126: if test -n "$STRIP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 cannam@126: $as_echo "$STRIP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_STRIP"; then cannam@126: ac_ct_STRIP=$STRIP cannam@126: # Extract the first word of "strip", so it can be a program name with args. cannam@126: set dummy strip; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_STRIP"; then cannam@126: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_STRIP="strip" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@126: if test -n "$ac_ct_STRIP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 cannam@126: $as_echo "$ac_ct_STRIP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_STRIP" = x; then cannam@126: STRIP=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: STRIP=$ac_ct_STRIP cannam@126: fi cannam@126: else cannam@126: STRIP="$ac_cv_prog_STRIP" cannam@126: fi cannam@126: cannam@126: test -z "$STRIP" && STRIP=: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_RANLIB+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$RANLIB"; then cannam@126: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: RANLIB=$ac_cv_prog_RANLIB cannam@126: if test -n "$RANLIB"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 cannam@126: $as_echo "$RANLIB" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_RANLIB"; then cannam@126: ac_ct_RANLIB=$RANLIB cannam@126: # Extract the first word of "ranlib", so it can be a program name with args. cannam@126: set dummy ranlib; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_RANLIB"; then cannam@126: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@126: if test -n "$ac_ct_RANLIB"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 cannam@126: $as_echo "$ac_ct_RANLIB" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_RANLIB" = x; then cannam@126: RANLIB=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: RANLIB=$ac_ct_RANLIB cannam@126: fi cannam@126: else cannam@126: RANLIB="$ac_cv_prog_RANLIB" cannam@126: fi cannam@126: cannam@126: test -z "$RANLIB" && RANLIB=: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Determine commands to create old-style static archives. cannam@126: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' cannam@126: old_postinstall_cmds='chmod 644 $oldlib' cannam@126: old_postuninstall_cmds= cannam@126: cannam@126: if test -n "$RANLIB"; then cannam@126: case $host_os in cannam@126: bitrig* | openbsd*) cannam@126: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" cannam@126: ;; cannam@126: *) cannam@126: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" cannam@126: ;; cannam@126: esac cannam@126: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" cannam@126: fi cannam@126: cannam@126: case $host_os in cannam@126: darwin*) cannam@126: lock_old_archive_extraction=yes ;; cannam@126: *) cannam@126: lock_old_archive_extraction=no ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # If no C compiler was specified, use CC. cannam@126: LTCC=${LTCC-"$CC"} cannam@126: cannam@126: # If no C compiler flags were specified, use CFLAGS. cannam@126: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: compiler=$CC cannam@126: cannam@126: cannam@126: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 cannam@126: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } cannam@126: if ${lt_cv_sys_global_symbol_pipe+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cannam@126: # These are sane defaults that work on at least a few old systems. cannam@126: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@126: cannam@126: # Character class describing NM global symbol codes. cannam@126: symcode='[BCDEGRST]' cannam@126: cannam@126: # Regexp to match symbols that can be accessed directly from C. cannam@126: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' cannam@126: cannam@126: # Define system-specific variables. cannam@126: case $host_os in cannam@126: aix*) cannam@126: symcode='[BCDT]' cannam@126: ;; cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: symcode='[ABCDGISTW]' cannam@126: ;; cannam@126: hpux*) cannam@126: if test ia64 = "$host_cpu"; then cannam@126: symcode='[ABCDEGRST]' cannam@126: fi cannam@126: ;; cannam@126: irix* | nonstopux*) cannam@126: symcode='[BCDEGRST]' cannam@126: ;; cannam@126: osf*) cannam@126: symcode='[BCDEGQRST]' cannam@126: ;; cannam@126: solaris*) cannam@126: symcode='[BDRT]' cannam@126: ;; cannam@126: sco3.2v5*) cannam@126: symcode='[DT]' cannam@126: ;; cannam@126: sysv4.2uw2*) cannam@126: symcode='[DT]' cannam@126: ;; cannam@126: sysv5* | sco5v6* | unixware* | OpenUNIX*) cannam@126: symcode='[ABDT]' cannam@126: ;; cannam@126: sysv4) cannam@126: symcode='[DFNSTU]' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # If we're using GNU nm, then use its standard symbol codes. cannam@126: case `$NM -V 2>&1` in cannam@126: *GNU* | *'with BFD'*) cannam@126: symcode='[ABCDGIRSTW]' ;; cannam@126: esac cannam@126: cannam@126: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@126: # Gets list of data symbols to import. cannam@126: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" cannam@126: # Adjust the below global symbol transforms to fixup imported variables. cannam@126: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" cannam@126: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" cannam@126: lt_c_name_lib_hook="\ cannam@126: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ cannam@126: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" cannam@126: else cannam@126: # Disable hooks by default. cannam@126: lt_cv_sys_global_symbol_to_import= cannam@126: lt_cdecl_hook= cannam@126: lt_c_name_hook= cannam@126: lt_c_name_lib_hook= cannam@126: fi cannam@126: cannam@126: # Transform an extracted symbol line into a proper C declaration. cannam@126: # Some systems (esp. on ia64) link data and code symbols differently, cannam@126: # so use this general approach. cannam@126: lt_cv_sys_global_symbol_to_cdecl="sed -n"\ cannam@126: $lt_cdecl_hook\ cannam@126: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ cannam@126: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" cannam@126: cannam@126: # Transform an extracted symbol line into symbol name and symbol address cannam@126: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ cannam@126: $lt_c_name_hook\ cannam@126: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ cannam@126: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" cannam@126: cannam@126: # Transform an extracted symbol line into symbol name with lib prefix and cannam@126: # symbol address. cannam@126: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ cannam@126: $lt_c_name_lib_hook\ cannam@126: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ cannam@126: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ cannam@126: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" cannam@126: cannam@126: # Handle CRLF in mingw tool chain cannam@126: opt_cr= cannam@126: case $build_os in cannam@126: mingw*) cannam@126: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # Try without a prefix underscore, then with it. cannam@126: for ac_symprfx in "" "_"; do cannam@126: cannam@126: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. cannam@126: symxfrm="\\1 $ac_symprfx\\2 \\2" cannam@126: cannam@126: # Write the raw and C identifiers. cannam@126: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@126: # Fake it for dumpbin and say T for any non-static function, cannam@126: # D for any global variable and I for any imported variable. cannam@126: # Also find C++ and __fastcall symbols from MSVC++, cannam@126: # which start with @ or ?. cannam@126: lt_cv_sys_global_symbol_pipe="$AWK '"\ cannam@126: " {last_section=section; section=\$ 3};"\ cannam@126: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ cannam@126: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ cannam@126: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ cannam@126: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ cannam@126: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ cannam@126: " \$ 0!~/External *\|/{next};"\ cannam@126: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ cannam@126: " {if(hide[section]) next};"\ cannam@126: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ cannam@126: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ cannam@126: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ cannam@126: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ cannam@126: " ' prfx=^$ac_symprfx" cannam@126: else cannam@126: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" cannam@126: fi cannam@126: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" cannam@126: cannam@126: # Check to see that the pipe works correctly. cannam@126: pipe_works=no cannam@126: cannam@126: rm -f conftest* cannam@126: cat > conftest.$ac_ext <<_LT_EOF cannam@126: #ifdef __cplusplus cannam@126: extern "C" { cannam@126: #endif cannam@126: char nm_test_var; cannam@126: void nm_test_func(void); cannam@126: void nm_test_func(void){} cannam@126: #ifdef __cplusplus cannam@126: } cannam@126: #endif cannam@126: int main(){nm_test_var='a';nm_test_func();return(0);} cannam@126: _LT_EOF cannam@126: cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: # Now try to grab the symbols. cannam@126: nlist=conftest.nm cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 cannam@126: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && test -s "$nlist"; then cannam@126: # Try sorting and uniquifying the output. cannam@126: if sort "$nlist" | uniq > "$nlist"T; then cannam@126: mv -f "$nlist"T "$nlist" cannam@126: else cannam@126: rm -f "$nlist"T cannam@126: fi cannam@126: cannam@126: # Make sure that we snagged all the symbols we need. cannam@126: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then cannam@126: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cannam@126: cat <<_LT_EOF > conftest.$ac_ext cannam@126: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ cannam@126: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE cannam@126: /* DATA imports from DLLs on WIN32 can't be const, because runtime cannam@126: relocations are performed -- see ld's documentation on pseudo-relocs. */ cannam@126: # define LT_DLSYM_CONST cannam@126: #elif defined __osf__ cannam@126: /* This system does not cope well with relocations in const data. */ cannam@126: # define LT_DLSYM_CONST cannam@126: #else cannam@126: # define LT_DLSYM_CONST const cannam@126: #endif cannam@126: cannam@126: #ifdef __cplusplus cannam@126: extern "C" { cannam@126: #endif cannam@126: cannam@126: _LT_EOF cannam@126: # Now generate the symbol file. cannam@126: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cannam@126: cannam@126: cat <<_LT_EOF >> conftest.$ac_ext cannam@126: cannam@126: /* The mapping between symbol names and symbols. */ cannam@126: LT_DLSYM_CONST struct { cannam@126: const char *name; cannam@126: void *address; cannam@126: } cannam@126: lt__PROGRAM__LTX_preloaded_symbols[] = cannam@126: { cannam@126: { "@PROGRAM@", (void *) 0 }, cannam@126: _LT_EOF cannam@126: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cannam@126: cat <<\_LT_EOF >> conftest.$ac_ext cannam@126: {0, (void *) 0} cannam@126: }; cannam@126: cannam@126: /* This works around a problem in FreeBSD linker */ cannam@126: #ifdef FREEBSD_WORKAROUND cannam@126: static const void *lt_preloaded_setup() { cannam@126: return lt__PROGRAM__LTX_preloaded_symbols; cannam@126: } cannam@126: #endif cannam@126: cannam@126: #ifdef __cplusplus cannam@126: } cannam@126: #endif cannam@126: _LT_EOF cannam@126: # Now try linking the two files. cannam@126: mv conftest.$ac_objext conftstm.$ac_objext cannam@126: lt_globsym_save_LIBS=$LIBS cannam@126: lt_globsym_save_CFLAGS=$CFLAGS cannam@126: LIBS=conftstm.$ac_objext cannam@126: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@126: (eval $ac_link) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && test -s conftest$ac_exeext; then cannam@126: pipe_works=yes cannam@126: fi cannam@126: LIBS=$lt_globsym_save_LIBS cannam@126: CFLAGS=$lt_globsym_save_CFLAGS cannam@126: else cannam@126: echo "cannot find nm_test_func in $nlist" >&5 cannam@126: fi cannam@126: else cannam@126: echo "cannot find nm_test_var in $nlist" >&5 cannam@126: fi cannam@126: else cannam@126: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 cannam@126: fi cannam@126: else cannam@126: echo "$progname: failed program was:" >&5 cannam@126: cat conftest.$ac_ext >&5 cannam@126: fi cannam@126: rm -rf conftest* conftst* cannam@126: cannam@126: # Do not use the global_symbol_pipe unless it works. cannam@126: if test yes = "$pipe_works"; then cannam@126: break cannam@126: else cannam@126: lt_cv_sys_global_symbol_pipe= cannam@126: fi cannam@126: done cannam@126: cannam@126: fi cannam@126: cannam@126: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@126: lt_cv_sys_global_symbol_to_cdecl= cannam@126: fi cannam@126: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 cannam@126: $as_echo "failed" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 cannam@126: $as_echo "ok" >&6; } cannam@126: fi cannam@126: cannam@126: # Response file support. cannam@126: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@126: nm_file_list_spec='@' cannam@126: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then cannam@126: nm_file_list_spec='@' cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 cannam@126: $as_echo_n "checking for sysroot... " >&6; } cannam@126: cannam@126: # Check whether --with-sysroot was given. cannam@126: if test "${with_sysroot+set}" = set; then : cannam@126: withval=$with_sysroot; cannam@126: else cannam@126: with_sysroot=no cannam@126: fi cannam@126: cannam@126: cannam@126: lt_sysroot= cannam@126: case $with_sysroot in #( cannam@126: yes) cannam@126: if test yes = "$GCC"; then cannam@126: lt_sysroot=`$CC --print-sysroot 2>/dev/null` cannam@126: fi cannam@126: ;; #( cannam@126: /*) cannam@126: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` cannam@126: ;; #( cannam@126: no|'') cannam@126: ;; #( cannam@126: *) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 cannam@126: $as_echo "$with_sysroot" >&6; } cannam@126: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 cannam@126: ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 cannam@126: $as_echo "${lt_sysroot:-no}" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 cannam@126: $as_echo_n "checking for a working dd... " >&6; } cannam@126: if ${ac_cv_path_lt_DD+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: printf 0123456789abcdef0123456789abcdef >conftest.i cannam@126: cat conftest.i conftest.i >conftest2.i cannam@126: : ${lt_DD:=$DD} cannam@126: if test -z "$lt_DD"; then cannam@126: ac_path_lt_DD_found=false cannam@126: # Loop through the user's path and test for each of PROGNAME-LIST cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_prog in dd; do cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" cannam@126: as_fn_executable_p "$ac_path_lt_DD" || continue cannam@126: if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cannam@126: cmp -s conftest.i conftest.out \ cannam@126: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: cannam@126: fi cannam@126: $ac_path_lt_DD_found && break 3 cannam@126: done cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: if test -z "$ac_cv_path_lt_DD"; then cannam@126: : cannam@126: fi cannam@126: else cannam@126: ac_cv_path_lt_DD=$lt_DD cannam@126: fi cannam@126: cannam@126: rm -f conftest.i conftest2.i conftest.out cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 cannam@126: $as_echo "$ac_cv_path_lt_DD" >&6; } cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 cannam@126: $as_echo_n "checking how to truncate binary pipes... " >&6; } cannam@126: if ${lt_cv_truncate_bin+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: printf 0123456789abcdef0123456789abcdef >conftest.i cannam@126: cat conftest.i conftest.i >conftest2.i cannam@126: lt_cv_truncate_bin= cannam@126: if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cannam@126: cmp -s conftest.i conftest.out \ cannam@126: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" cannam@126: fi cannam@126: rm -f conftest.i conftest2.i conftest.out cannam@126: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 cannam@126: $as_echo "$lt_cv_truncate_bin" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. cannam@126: func_cc_basename () cannam@126: { cannam@126: for cc_temp in $*""; do cannam@126: case $cc_temp in cannam@126: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@126: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@126: \-*) ;; cannam@126: *) break;; cannam@126: esac cannam@126: done cannam@126: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` cannam@126: } cannam@126: cannam@126: # Check whether --enable-libtool-lock was given. cannam@126: if test "${enable_libtool_lock+set}" = set; then : cannam@126: enableval=$enable_libtool_lock; cannam@126: fi cannam@126: cannam@126: test no = "$enable_libtool_lock" || enable_libtool_lock=yes cannam@126: cannam@126: # Some flags need to be propagated to the compiler or linker for good cannam@126: # libtool support. cannam@126: case $host in cannam@126: ia64-*-hpux*) cannam@126: # Find out what ABI is being produced by ac_compile, and set mode cannam@126: # options accordingly. cannam@126: echo 'int i;' > conftest.$ac_ext cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *ELF-32*) cannam@126: HPUX_IA64_MODE=32 cannam@126: ;; cannam@126: *ELF-64*) cannam@126: HPUX_IA64_MODE=64 cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: rm -rf conftest* cannam@126: ;; cannam@126: *-*-irix6*) cannam@126: # Find out what ABI is being produced by ac_compile, and set linker cannam@126: # options accordingly. cannam@126: echo '#line '$LINENO' "configure"' > conftest.$ac_ext cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *32-bit*) cannam@126: LD="${LD-ld} -melf32bsmip" cannam@126: ;; cannam@126: *N32*) cannam@126: LD="${LD-ld} -melf32bmipn32" cannam@126: ;; cannam@126: *64-bit*) cannam@126: LD="${LD-ld} -melf64bmip" cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *32-bit*) cannam@126: LD="${LD-ld} -32" cannam@126: ;; cannam@126: *N32*) cannam@126: LD="${LD-ld} -n32" cannam@126: ;; cannam@126: *64-bit*) cannam@126: LD="${LD-ld} -64" cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: fi cannam@126: rm -rf conftest* cannam@126: ;; cannam@126: cannam@126: mips64*-*linux*) cannam@126: # Find out what ABI is being produced by ac_compile, and set linker cannam@126: # options accordingly. cannam@126: echo '#line '$LINENO' "configure"' > conftest.$ac_ext cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: emul=elf cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *32-bit*) cannam@126: emul="${emul}32" cannam@126: ;; cannam@126: *64-bit*) cannam@126: emul="${emul}64" cannam@126: ;; cannam@126: esac cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *MSB*) cannam@126: emul="${emul}btsmip" cannam@126: ;; cannam@126: *LSB*) cannam@126: emul="${emul}ltsmip" cannam@126: ;; cannam@126: esac cannam@126: case `/usr/bin/file conftest.$ac_objext` in cannam@126: *N32*) cannam@126: emul="${emul}n32" cannam@126: ;; cannam@126: esac cannam@126: LD="${LD-ld} -m $emul" cannam@126: fi cannam@126: rm -rf conftest* cannam@126: ;; cannam@126: cannam@126: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ cannam@126: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) cannam@126: # Find out what ABI is being produced by ac_compile, and set linker cannam@126: # options accordingly. Note that the listed cases only cover the cannam@126: # situations where additional linker options are needed (such as when cannam@126: # doing 32-bit compilation for a host where ld defaults to 64-bit, or cannam@126: # vice versa); the common cases where no linker options are needed do cannam@126: # not appear in the list. cannam@126: echo 'int i;' > conftest.$ac_ext cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: case `/usr/bin/file conftest.o` in cannam@126: *32-bit*) cannam@126: case $host in cannam@126: x86_64-*kfreebsd*-gnu) cannam@126: LD="${LD-ld} -m elf_i386_fbsd" cannam@126: ;; cannam@126: x86_64-*linux*) cannam@126: case `/usr/bin/file conftest.o` in cannam@126: *x86-64*) cannam@126: LD="${LD-ld} -m elf32_x86_64" cannam@126: ;; cannam@126: *) cannam@126: LD="${LD-ld} -m elf_i386" cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: powerpc64le-*linux*) cannam@126: LD="${LD-ld} -m elf32lppclinux" cannam@126: ;; cannam@126: powerpc64-*linux*) cannam@126: LD="${LD-ld} -m elf32ppclinux" cannam@126: ;; cannam@126: s390x-*linux*) cannam@126: LD="${LD-ld} -m elf_s390" cannam@126: ;; cannam@126: sparc64-*linux*) cannam@126: LD="${LD-ld} -m elf32_sparc" cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *64-bit*) cannam@126: case $host in cannam@126: x86_64-*kfreebsd*-gnu) cannam@126: LD="${LD-ld} -m elf_x86_64_fbsd" cannam@126: ;; cannam@126: x86_64-*linux*) cannam@126: LD="${LD-ld} -m elf_x86_64" cannam@126: ;; cannam@126: powerpcle-*linux*) cannam@126: LD="${LD-ld} -m elf64lppc" cannam@126: ;; cannam@126: powerpc-*linux*) cannam@126: LD="${LD-ld} -m elf64ppc" cannam@126: ;; cannam@126: s390*-*linux*|s390*-*tpf*) cannam@126: LD="${LD-ld} -m elf64_s390" cannam@126: ;; cannam@126: sparc*-*linux*) cannam@126: LD="${LD-ld} -m elf64_sparc" cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: rm -rf conftest* cannam@126: ;; cannam@126: cannam@126: *-*-sco3.2v5*) cannam@126: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@126: SAVE_CFLAGS=$CFLAGS cannam@126: CFLAGS="$CFLAGS -belf" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 cannam@126: $as_echo_n "checking whether the C compiler needs -belf... " >&6; } cannam@126: if ${lt_cv_cc_needs_belf+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: lt_cv_cc_needs_belf=yes cannam@126: else cannam@126: lt_cv_cc_needs_belf=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 cannam@126: $as_echo "$lt_cv_cc_needs_belf" >&6; } cannam@126: if test yes != "$lt_cv_cc_needs_belf"; then cannam@126: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@126: CFLAGS=$SAVE_CFLAGS cannam@126: fi cannam@126: ;; cannam@126: *-*solaris*) cannam@126: # Find out what ABI is being produced by ac_compile, and set linker cannam@126: # options accordingly. cannam@126: echo 'int i;' > conftest.$ac_ext cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: case `/usr/bin/file conftest.o` in cannam@126: *64-bit*) cannam@126: case $lt_cv_prog_gnu_ld in cannam@126: yes*) cannam@126: case $host in cannam@126: i?86-*-solaris*|x86_64-*-solaris*) cannam@126: LD="${LD-ld} -m elf_x86_64" cannam@126: ;; cannam@126: sparc*-*-solaris*) cannam@126: LD="${LD-ld} -m elf64_sparc" cannam@126: ;; cannam@126: esac cannam@126: # GNU ld 2.21 introduced _sol2 emulations. Use them if available. cannam@126: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then cannam@126: LD=${LD-ld}_sol2 cannam@126: fi cannam@126: ;; cannam@126: *) cannam@126: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then cannam@126: LD="${LD-ld} -64" cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: rm -rf conftest* cannam@126: ;; cannam@126: esac cannam@126: cannam@126: need_locks=$enable_libtool_lock cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}mt; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$MANIFEST_TOOL"; then cannam@126: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL cannam@126: if test -n "$MANIFEST_TOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 cannam@126: $as_echo "$MANIFEST_TOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then cannam@126: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL cannam@126: # Extract the first word of "mt", so it can be a program name with args. cannam@126: set dummy mt; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_MANIFEST_TOOL"; then cannam@126: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL cannam@126: if test -n "$ac_ct_MANIFEST_TOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 cannam@126: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_MANIFEST_TOOL" = x; then cannam@126: MANIFEST_TOOL=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL cannam@126: fi cannam@126: else cannam@126: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" cannam@126: fi cannam@126: cannam@126: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 cannam@126: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } cannam@126: if ${lt_cv_path_mainfest_tool+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_path_mainfest_tool=no cannam@126: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 cannam@126: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cannam@126: cat conftest.err >&5 cannam@126: if $GREP 'Manifest Tool' conftest.out > /dev/null; then cannam@126: lt_cv_path_mainfest_tool=yes cannam@126: fi cannam@126: rm -f conftest* cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 cannam@126: $as_echo "$lt_cv_path_mainfest_tool" >&6; } cannam@126: if test yes != "$lt_cv_path_mainfest_tool"; then cannam@126: MANIFEST_TOOL=: cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: case $host_os in cannam@126: rhapsody* | darwin*) cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_DSYMUTIL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$DSYMUTIL"; then cannam@126: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: DSYMUTIL=$ac_cv_prog_DSYMUTIL cannam@126: if test -n "$DSYMUTIL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 cannam@126: $as_echo "$DSYMUTIL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_DSYMUTIL"; then cannam@126: ac_ct_DSYMUTIL=$DSYMUTIL cannam@126: # Extract the first word of "dsymutil", so it can be a program name with args. cannam@126: set dummy dsymutil; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_DSYMUTIL"; then cannam@126: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL cannam@126: if test -n "$ac_ct_DSYMUTIL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 cannam@126: $as_echo "$ac_ct_DSYMUTIL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_DSYMUTIL" = x; then cannam@126: DSYMUTIL=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: DSYMUTIL=$ac_ct_DSYMUTIL cannam@126: fi cannam@126: else cannam@126: DSYMUTIL="$ac_cv_prog_DSYMUTIL" cannam@126: fi cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_NMEDIT+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$NMEDIT"; then cannam@126: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: NMEDIT=$ac_cv_prog_NMEDIT cannam@126: if test -n "$NMEDIT"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 cannam@126: $as_echo "$NMEDIT" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_NMEDIT"; then cannam@126: ac_ct_NMEDIT=$NMEDIT cannam@126: # Extract the first word of "nmedit", so it can be a program name with args. cannam@126: set dummy nmedit; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_NMEDIT"; then cannam@126: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_NMEDIT="nmedit" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT cannam@126: if test -n "$ac_ct_NMEDIT"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 cannam@126: $as_echo "$ac_ct_NMEDIT" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_NMEDIT" = x; then cannam@126: NMEDIT=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: NMEDIT=$ac_ct_NMEDIT cannam@126: fi cannam@126: else cannam@126: NMEDIT="$ac_cv_prog_NMEDIT" cannam@126: fi cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}lipo; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_LIPO+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$LIPO"; then cannam@126: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: LIPO=$ac_cv_prog_LIPO cannam@126: if test -n "$LIPO"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 cannam@126: $as_echo "$LIPO" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_LIPO"; then cannam@126: ac_ct_LIPO=$LIPO cannam@126: # Extract the first word of "lipo", so it can be a program name with args. cannam@126: set dummy lipo; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_LIPO+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_LIPO"; then cannam@126: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_LIPO="lipo" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO cannam@126: if test -n "$ac_ct_LIPO"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 cannam@126: $as_echo "$ac_ct_LIPO" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_LIPO" = x; then cannam@126: LIPO=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: LIPO=$ac_ct_LIPO cannam@126: fi cannam@126: else cannam@126: LIPO="$ac_cv_prog_LIPO" cannam@126: fi cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}otool; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_OTOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$OTOOL"; then cannam@126: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: OTOOL=$ac_cv_prog_OTOOL cannam@126: if test -n "$OTOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 cannam@126: $as_echo "$OTOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_OTOOL"; then cannam@126: ac_ct_OTOOL=$OTOOL cannam@126: # Extract the first word of "otool", so it can be a program name with args. cannam@126: set dummy otool; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_OTOOL"; then cannam@126: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_OTOOL="otool" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL cannam@126: if test -n "$ac_ct_OTOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 cannam@126: $as_echo "$ac_ct_OTOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_OTOOL" = x; then cannam@126: OTOOL=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: OTOOL=$ac_ct_OTOOL cannam@126: fi cannam@126: else cannam@126: OTOOL="$ac_cv_prog_OTOOL" cannam@126: fi cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}otool64; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_OTOOL64+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$OTOOL64"; then cannam@126: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: OTOOL64=$ac_cv_prog_OTOOL64 cannam@126: if test -n "$OTOOL64"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 cannam@126: $as_echo "$OTOOL64" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_OTOOL64"; then cannam@126: ac_ct_OTOOL64=$OTOOL64 cannam@126: # Extract the first word of "otool64", so it can be a program name with args. cannam@126: set dummy otool64; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_OTOOL64"; then cannam@126: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_OTOOL64="otool64" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 cannam@126: if test -n "$ac_ct_OTOOL64"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 cannam@126: $as_echo "$ac_ct_OTOOL64" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_OTOOL64" = x; then cannam@126: OTOOL64=":" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: OTOOL64=$ac_ct_OTOOL64 cannam@126: fi cannam@126: else cannam@126: OTOOL64="$ac_cv_prog_OTOOL64" cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 cannam@126: $as_echo_n "checking for -single_module linker flag... " >&6; } cannam@126: if ${lt_cv_apple_cc_single_mod+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_apple_cc_single_mod=no cannam@126: if test -z "$LT_MULTI_MODULE"; then cannam@126: # By default we will add the -single_module flag. You can override cannam@126: # by either setting the environment variable LT_MULTI_MODULE cannam@126: # non-empty at configure time, or by adding -multi_module to the cannam@126: # link flags. cannam@126: rm -rf libconftest.dylib* cannam@126: echo "int foo(void){return 1;}" > conftest.c cannam@126: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@126: -dynamiclib -Wl,-single_module conftest.c" >&5 cannam@126: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@126: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err cannam@126: _lt_result=$? cannam@126: # If there is a non-empty error log, and "single_module" cannam@126: # appears in it, assume the flag caused a linker warning cannam@126: if test -s conftest.err && $GREP single_module conftest.err; then cannam@126: cat conftest.err >&5 cannam@126: # Otherwise, if the output was created with a 0 exit code from cannam@126: # the compiler, it worked. cannam@126: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then cannam@126: lt_cv_apple_cc_single_mod=yes cannam@126: else cannam@126: cat conftest.err >&5 cannam@126: fi cannam@126: rm -rf libconftest.dylib* cannam@126: rm -f conftest.* cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 cannam@126: $as_echo "$lt_cv_apple_cc_single_mod" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 cannam@126: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } cannam@126: if ${lt_cv_ld_exported_symbols_list+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_ld_exported_symbols_list=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: echo "_main" > conftest.sym cannam@126: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: lt_cv_ld_exported_symbols_list=yes cannam@126: else cannam@126: lt_cv_ld_exported_symbols_list=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 cannam@126: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 cannam@126: $as_echo_n "checking for -force_load linker flag... " >&6; } cannam@126: if ${lt_cv_ld_force_load+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_ld_force_load=no cannam@126: cat > conftest.c << _LT_EOF cannam@126: int forced_loaded() { return 2;} cannam@126: _LT_EOF cannam@126: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 cannam@126: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 cannam@126: echo "$AR cru libconftest.a conftest.o" >&5 cannam@126: $AR cru libconftest.a conftest.o 2>&5 cannam@126: echo "$RANLIB libconftest.a" >&5 cannam@126: $RANLIB libconftest.a 2>&5 cannam@126: cat > conftest.c << _LT_EOF cannam@126: int main() { return 0;} cannam@126: _LT_EOF cannam@126: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 cannam@126: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err cannam@126: _lt_result=$? cannam@126: if test -s conftest.err && $GREP force_load conftest.err; then cannam@126: cat conftest.err >&5 cannam@126: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then cannam@126: lt_cv_ld_force_load=yes cannam@126: else cannam@126: cat conftest.err >&5 cannam@126: fi cannam@126: rm -f conftest.err libconftest.a conftest conftest.c cannam@126: rm -rf conftest.dSYM cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 cannam@126: $as_echo "$lt_cv_ld_force_load" >&6; } cannam@126: case $host_os in cannam@126: rhapsody* | darwin1.[012]) cannam@126: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; cannam@126: darwin1.*) cannam@126: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; cannam@126: darwin*) # darwin 5.x on cannam@126: # if running on 10.5 or later, the deployment target defaults cannam@126: # to the OS version, if on x86, and 10.4, the deployment cannam@126: # target defaults to 10.4. Don't you love it? cannam@126: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in cannam@126: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) cannam@126: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; cannam@126: 10.[012][,.]*) cannam@126: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; cannam@126: 10.*) cannam@126: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: if test yes = "$lt_cv_apple_cc_single_mod"; then cannam@126: _lt_dar_single_mod='$single_module' cannam@126: fi cannam@126: if test yes = "$lt_cv_ld_exported_symbols_list"; then cannam@126: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' cannam@126: else cannam@126: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' cannam@126: fi cannam@126: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then cannam@126: _lt_dsymutil='~$DSYMUTIL $lib || :' cannam@126: else cannam@126: _lt_dsymutil= cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # func_munge_path_list VARIABLE PATH cannam@126: # ----------------------------------- cannam@126: # VARIABLE is name of variable containing _space_ separated list of cannam@126: # directories to be munged by the contents of PATH, which is string cannam@126: # having a format: cannam@126: # "DIR[:DIR]:" cannam@126: # string "DIR[ DIR]" will be prepended to VARIABLE cannam@126: # ":DIR[:DIR]" cannam@126: # string "DIR[ DIR]" will be appended to VARIABLE cannam@126: # "DIRP[:DIRP]::[DIRA:]DIRA" cannam@126: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string cannam@126: # "DIRA[ DIRA]" will be appended to VARIABLE cannam@126: # "DIR[:DIR]" cannam@126: # VARIABLE will be replaced by "DIR[ DIR]" cannam@126: func_munge_path_list () cannam@126: { cannam@126: case x$2 in cannam@126: x) cannam@126: ;; cannam@126: *:) cannam@126: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" cannam@126: ;; cannam@126: x:*) cannam@126: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" cannam@126: ;; cannam@126: *::*) cannam@126: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" cannam@126: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" cannam@126: ;; cannam@126: *) cannam@126: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" cannam@126: ;; cannam@126: esac cannam@126: } cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 cannam@126: $as_echo_n "checking how to run the C preprocessor... " >&6; } cannam@126: # On Suns, sometimes $CPP names a directory. cannam@126: if test -n "$CPP" && test -d "$CPP"; then cannam@126: CPP= cannam@126: fi cannam@126: if test -z "$CPP"; then cannam@126: if ${ac_cv_prog_CPP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # Double quotes because CPP needs to be expanded cannam@126: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@126: do cannam@126: ac_preproc_ok=false cannam@126: for ac_c_preproc_warn_flag in '' yes cannam@126: do cannam@126: # Use a header file that comes with gcc, so configuring glibc cannam@126: # with a fresh cross-compiler works. cannam@126: # Prefer to if __STDC__ is defined, since cannam@126: # exists even on freestanding compilers. cannam@126: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@126: # not just through cpp. "Syntax error" is here to catch this case. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #ifdef __STDC__ cannam@126: # include cannam@126: #else cannam@126: # include cannam@126: #endif cannam@126: Syntax error cannam@126: _ACEOF cannam@126: if ac_fn_c_try_cpp "$LINENO"; then : cannam@126: cannam@126: else cannam@126: # Broken: fails on valid input. cannam@126: continue cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: # OK, works on sane cases. Now check whether nonexistent headers cannam@126: # can be detected and how. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: _ACEOF cannam@126: if ac_fn_c_try_cpp "$LINENO"; then : cannam@126: # Broken: success on invalid input. cannam@126: continue cannam@126: else cannam@126: # Passes both tests. cannam@126: ac_preproc_ok=: cannam@126: break cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: done cannam@126: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@126: rm -f conftest.i conftest.err conftest.$ac_ext cannam@126: if $ac_preproc_ok; then : cannam@126: break cannam@126: fi cannam@126: cannam@126: done cannam@126: ac_cv_prog_CPP=$CPP cannam@126: cannam@126: fi cannam@126: CPP=$ac_cv_prog_CPP cannam@126: else cannam@126: ac_cv_prog_CPP=$CPP cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 cannam@126: $as_echo "$CPP" >&6; } cannam@126: ac_preproc_ok=false cannam@126: for ac_c_preproc_warn_flag in '' yes cannam@126: do cannam@126: # Use a header file that comes with gcc, so configuring glibc cannam@126: # with a fresh cross-compiler works. cannam@126: # Prefer to if __STDC__ is defined, since cannam@126: # exists even on freestanding compilers. cannam@126: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@126: # not just through cpp. "Syntax error" is here to catch this case. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #ifdef __STDC__ cannam@126: # include cannam@126: #else cannam@126: # include cannam@126: #endif cannam@126: Syntax error cannam@126: _ACEOF cannam@126: if ac_fn_c_try_cpp "$LINENO"; then : cannam@126: cannam@126: else cannam@126: # Broken: fails on valid input. cannam@126: continue cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: # OK, works on sane cases. Now check whether nonexistent headers cannam@126: # can be detected and how. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: _ACEOF cannam@126: if ac_fn_c_try_cpp "$LINENO"; then : cannam@126: # Broken: success on invalid input. cannam@126: continue cannam@126: else cannam@126: # Passes both tests. cannam@126: ac_preproc_ok=: cannam@126: break cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: done cannam@126: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@126: rm -f conftest.i conftest.err conftest.$ac_ext cannam@126: if $ac_preproc_ok; then : cannam@126: cannam@126: else cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 cannam@126: $as_echo_n "checking for ANSI C header files... " >&6; } cannam@126: if ${ac_cv_header_stdc+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: #include cannam@126: #include cannam@126: #include cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_cv_header_stdc=yes cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: cannam@126: _ACEOF cannam@126: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@126: $EGREP "memchr" >/dev/null 2>&1; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f conftest* cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: cannam@126: _ACEOF cannam@126: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@126: $EGREP "free" >/dev/null 2>&1; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f conftest* cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@126: if test "$cross_compiling" = yes; then : cannam@126: : cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: #include cannam@126: #if ((' ' & 0x0FF) == 0x020) cannam@126: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@126: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@126: #else cannam@126: # define ISLOWER(c) \ cannam@126: (('a' <= (c) && (c) <= 'i') \ cannam@126: || ('j' <= (c) && (c) <= 'r') \ cannam@126: || ('s' <= (c) && (c) <= 'z')) cannam@126: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@126: #endif cannam@126: cannam@126: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@126: int cannam@126: main () cannam@126: { cannam@126: int i; cannam@126: for (i = 0; i < 256; i++) cannam@126: if (XOR (islower (i), ISLOWER (i)) cannam@126: || toupper (i) != TOUPPER (i)) cannam@126: return 2; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 cannam@126: $as_echo "$ac_cv_header_stdc" >&6; } cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: cannam@126: $as_echo "#define STDC_HEADERS 1" >>confdefs.h cannam@126: cannam@126: fi cannam@126: cannam@126: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@126: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@126: inttypes.h stdint.h unistd.h cannam@126: do : cannam@126: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@126: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default cannam@126: " cannam@126: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: cannam@126: done cannam@126: cannam@126: cannam@126: for ac_header in dlfcn.h cannam@126: do : cannam@126: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default cannam@126: " cannam@126: if test "x$ac_cv_header_dlfcn_h" = xyes; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define HAVE_DLFCN_H 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: cannam@126: done cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: func_stripname_cnf () cannam@126: { cannam@126: case $2 in cannam@126: .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; cannam@126: *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; cannam@126: esac cannam@126: } # func_stripname_cnf cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Set options cannam@126: cannam@126: cannam@126: cannam@126: enable_dlopen=no cannam@126: cannam@126: cannam@126: enable_win32_dll=no cannam@126: cannam@126: cannam@126: # Check whether --enable-shared was given. cannam@126: if test "${enable_shared+set}" = set; then : cannam@126: enableval=$enable_shared; p=${PACKAGE-default} cannam@126: case $enableval in cannam@126: yes) enable_shared=yes ;; cannam@126: no) enable_shared=no ;; cannam@126: *) cannam@126: enable_shared=no cannam@126: # Look at the argument we got. We use all the common list separators. cannam@126: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@126: for pkg in $enableval; do cannam@126: IFS=$lt_save_ifs cannam@126: if test "X$pkg" = "X$p"; then cannam@126: enable_shared=yes cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: enable_shared=yes cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Check whether --enable-static was given. cannam@126: if test "${enable_static+set}" = set; then : cannam@126: enableval=$enable_static; p=${PACKAGE-default} cannam@126: case $enableval in cannam@126: yes) enable_static=yes ;; cannam@126: no) enable_static=no ;; cannam@126: *) cannam@126: enable_static=no cannam@126: # Look at the argument we got. We use all the common list separators. cannam@126: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@126: for pkg in $enableval; do cannam@126: IFS=$lt_save_ifs cannam@126: if test "X$pkg" = "X$p"; then cannam@126: enable_static=yes cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: enable_static=yes cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Check whether --with-pic was given. cannam@126: if test "${with_pic+set}" = set; then : cannam@126: withval=$with_pic; lt_p=${PACKAGE-default} cannam@126: case $withval in cannam@126: yes|no) pic_mode=$withval ;; cannam@126: *) cannam@126: pic_mode=default cannam@126: # Look at the argument we got. We use all the common list separators. cannam@126: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@126: for lt_pkg in $withval; do cannam@126: IFS=$lt_save_ifs cannam@126: if test "X$lt_pkg" = "X$lt_p"; then cannam@126: pic_mode=yes cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: pic_mode=default cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Check whether --enable-fast-install was given. cannam@126: if test "${enable_fast_install+set}" = set; then : cannam@126: enableval=$enable_fast_install; p=${PACKAGE-default} cannam@126: case $enableval in cannam@126: yes) enable_fast_install=yes ;; cannam@126: no) enable_fast_install=no ;; cannam@126: *) cannam@126: enable_fast_install=no cannam@126: # Look at the argument we got. We use all the common list separators. cannam@126: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@126: for pkg in $enableval; do cannam@126: IFS=$lt_save_ifs cannam@126: if test "X$pkg" = "X$p"; then cannam@126: enable_fast_install=yes cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: enable_fast_install=yes cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: shared_archive_member_spec= cannam@126: case $host,$enable_shared in cannam@126: power*-*-aix[5-9]*,yes) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 cannam@126: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } cannam@126: cannam@126: # Check whether --with-aix-soname was given. cannam@126: if test "${with_aix_soname+set}" = set; then : cannam@126: withval=$with_aix_soname; case $withval in cannam@126: aix|svr4|both) cannam@126: ;; cannam@126: *) cannam@126: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 cannam@126: ;; cannam@126: esac cannam@126: lt_cv_with_aix_soname=$with_aix_soname cannam@126: else cannam@126: if ${lt_cv_with_aix_soname+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_with_aix_soname=aix cannam@126: fi cannam@126: cannam@126: with_aix_soname=$lt_cv_with_aix_soname cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 cannam@126: $as_echo "$with_aix_soname" >&6; } cannam@126: if test aix != "$with_aix_soname"; then cannam@126: # For the AIX way of multilib, we name the shared archive member cannam@126: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', cannam@126: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. cannam@126: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, cannam@126: # the AIX toolchain works better with OBJECT_MODE set (default 32). cannam@126: if test 64 = "${OBJECT_MODE-32}"; then cannam@126: shared_archive_member_spec=shr_64 cannam@126: else cannam@126: shared_archive_member_spec=shr cannam@126: fi cannam@126: fi cannam@126: ;; cannam@126: *) cannam@126: with_aix_soname=aix cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # This can be used to rebuild libtool when needed cannam@126: LIBTOOL_DEPS=$ltmain cannam@126: cannam@126: # Always use our own libtool. cannam@126: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: test -z "$LN_S" && LN_S="ln -s" cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -n "${ZSH_VERSION+set}"; then cannam@126: setopt NO_GLOB_SUBST cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 cannam@126: $as_echo_n "checking for objdir... " >&6; } cannam@126: if ${lt_cv_objdir+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: rm -f .libs 2>/dev/null cannam@126: mkdir .libs 2>/dev/null cannam@126: if test -d .libs; then cannam@126: lt_cv_objdir=.libs cannam@126: else cannam@126: # MS-DOS does not allow filenames that begin with a dot. cannam@126: lt_cv_objdir=_libs cannam@126: fi cannam@126: rmdir .libs 2>/dev/null cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 cannam@126: $as_echo "$lt_cv_objdir" >&6; } cannam@126: objdir=$lt_cv_objdir cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define LT_OBJDIR "$lt_cv_objdir/" cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: case $host_os in cannam@126: aix3*) cannam@126: # AIX sometimes has problems with the GCC collect2 program. For some cannam@126: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@126: # vanish in a puff of smoke. cannam@126: if test set != "${COLLECT_NAMES+set}"; then cannam@126: COLLECT_NAMES= cannam@126: export COLLECT_NAMES cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # Global variables: cannam@126: ofile=libtool cannam@126: can_build_shared=yes cannam@126: cannam@126: # All known linkers require a '.a' archive for static linking (except MSVC, cannam@126: # which needs '.lib'). cannam@126: libext=a cannam@126: cannam@126: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@126: cannam@126: old_CC=$CC cannam@126: old_CFLAGS=$CFLAGS cannam@126: cannam@126: # Set sane defaults for various variables cannam@126: test -z "$CC" && CC=cc cannam@126: test -z "$LTCC" && LTCC=$CC cannam@126: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS cannam@126: test -z "$LD" && LD=ld cannam@126: test -z "$ac_objext" && ac_objext=o cannam@126: cannam@126: func_cc_basename $compiler cannam@126: cc_basename=$func_cc_basename_result cannam@126: cannam@126: cannam@126: # Only perform the check for file, if the check method requires it cannam@126: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@126: case $deplibs_check_method in cannam@126: file_magic*) cannam@126: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 cannam@126: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } cannam@126: if ${lt_cv_path_MAGIC_CMD+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: case $MAGIC_CMD in cannam@126: [\\/*] | ?:[\\/]*) cannam@126: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. cannam@126: ;; cannam@126: *) cannam@126: lt_save_MAGIC_CMD=$MAGIC_CMD cannam@126: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@126: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@126: for ac_dir in $ac_dummy; do cannam@126: IFS=$lt_save_ifs cannam@126: test -z "$ac_dir" && ac_dir=. cannam@126: if test -f "$ac_dir/${ac_tool_prefix}file"; then cannam@126: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" cannam@126: if test -n "$file_magic_test_file"; then cannam@126: case $deplibs_check_method in cannam@126: "file_magic "*) cannam@126: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@126: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@126: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@126: $EGREP "$file_magic_regex" > /dev/null; then cannam@126: : cannam@126: else cannam@126: cat <<_LT_EOF 1>&2 cannam@126: cannam@126: *** Warning: the command libtool uses to detect shared libraries, cannam@126: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@126: *** The result is that libtool may fail to recognize shared libraries cannam@126: *** as such. This will affect the creation of libtool libraries that cannam@126: *** depend on shared libraries, but programs linked with such libtool cannam@126: *** libraries will work regardless of this problem. Nevertheless, you cannam@126: *** may want to report the problem to your system manager and/or to cannam@126: *** bug-libtool@gnu.org cannam@126: cannam@126: _LT_EOF cannam@126: fi ;; cannam@126: esac cannam@126: fi cannam@126: break cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: MAGIC_CMD=$lt_save_MAGIC_CMD cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@126: if test -n "$MAGIC_CMD"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 cannam@126: $as_echo "$MAGIC_CMD" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 cannam@126: $as_echo_n "checking for file... " >&6; } cannam@126: if ${lt_cv_path_MAGIC_CMD+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: case $MAGIC_CMD in cannam@126: [\\/*] | ?:[\\/]*) cannam@126: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. cannam@126: ;; cannam@126: *) cannam@126: lt_save_MAGIC_CMD=$MAGIC_CMD cannam@126: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@126: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@126: for ac_dir in $ac_dummy; do cannam@126: IFS=$lt_save_ifs cannam@126: test -z "$ac_dir" && ac_dir=. cannam@126: if test -f "$ac_dir/file"; then cannam@126: lt_cv_path_MAGIC_CMD=$ac_dir/"file" cannam@126: if test -n "$file_magic_test_file"; then cannam@126: case $deplibs_check_method in cannam@126: "file_magic "*) cannam@126: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@126: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@126: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@126: $EGREP "$file_magic_regex" > /dev/null; then cannam@126: : cannam@126: else cannam@126: cat <<_LT_EOF 1>&2 cannam@126: cannam@126: *** Warning: the command libtool uses to detect shared libraries, cannam@126: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@126: *** The result is that libtool may fail to recognize shared libraries cannam@126: *** as such. This will affect the creation of libtool libraries that cannam@126: *** depend on shared libraries, but programs linked with such libtool cannam@126: *** libraries will work regardless of this problem. Nevertheless, you cannam@126: *** may want to report the problem to your system manager and/or to cannam@126: *** bug-libtool@gnu.org cannam@126: cannam@126: _LT_EOF cannam@126: fi ;; cannam@126: esac cannam@126: fi cannam@126: break cannam@126: fi cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: MAGIC_CMD=$lt_save_MAGIC_CMD cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@126: if test -n "$MAGIC_CMD"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 cannam@126: $as_echo "$MAGIC_CMD" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: else cannam@126: MAGIC_CMD=: cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # Use C for the default configuration in the libtool script cannam@126: cannam@126: lt_save_CC=$CC cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cannam@126: # Source file extension for C test sources. cannam@126: ac_ext=c cannam@126: cannam@126: # Object file extension for compiled C test sources. cannam@126: objext=o cannam@126: objext=$objext cannam@126: cannam@126: # Code to be used in simple compile tests cannam@126: lt_simple_compile_test_code="int some_variable = 0;" cannam@126: cannam@126: # Code to be used in simple link tests cannam@126: lt_simple_link_test_code='int main(){return(0);}' cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # If no C compiler was specified, use CC. cannam@126: LTCC=${LTCC-"$CC"} cannam@126: cannam@126: # If no C compiler flags were specified, use CFLAGS. cannam@126: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: compiler=$CC cannam@126: cannam@126: # Save the default compiler, since it gets overwritten when the other cannam@126: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. cannam@126: compiler_DEFAULT=$CC cannam@126: cannam@126: # save warnings/boilerplate of simple test code cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@126: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_compiler_boilerplate=`cat conftest.err` cannam@126: $RM conftest* cannam@126: cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@126: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_linker_boilerplate=`cat conftest.err` cannam@126: $RM -r conftest* cannam@126: cannam@126: cannam@126: ## CAVEAT EMPTOR: cannam@126: ## There is no encapsulation within the following macros, do not change cannam@126: ## the running order or otherwise move them around unless you know exactly cannam@126: ## what you are doing... cannam@126: if test -n "$compiler"; then cannam@126: cannam@126: lt_prog_compiler_no_builtin_flag= cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: case $cc_basename in cannam@126: nvcc*) cannam@126: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; cannam@126: *) cannam@126: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@126: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } cannam@126: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_rtti_exceptions=no cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: # The option is referenced via a variable to avoid confusing sed. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>conftest.err) cannam@126: ac_status=$? cannam@126: cat conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings other than the usual output. cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_rtti_exceptions=yes cannam@126: fi cannam@126: fi cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then cannam@126: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" cannam@126: else cannam@126: : cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: lt_prog_compiler_wl= cannam@126: lt_prog_compiler_pic= cannam@126: lt_prog_compiler_static= cannam@126: cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_static='-static' cannam@126: cannam@126: case $host_os in cannam@126: aix*) cannam@126: # All AIX code is PIC. cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 now supports IA64 processor cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: fi cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # see comment about AmigaOS4 .so support cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: ;; cannam@126: m68k) cannam@126: # FIXME: we need at least 68020 code to build shared libraries, but cannam@126: # adding the '-m68020' flag to GCC prevents building anything better, cannam@126: # like '-m68040'. cannam@126: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@126: # PIC is the default for these OSes. cannam@126: ;; cannam@126: cannam@126: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@126: # This hack is so that the source file can tell whether it is being cannam@126: # built for inclusion in a dll (and should export symbols for example). cannam@126: # Although the cygwin gcc ignores -fPIC, still need this for old-style cannam@126: # (--disable-auto-import) libraries cannam@126: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@126: case $host_os in cannam@126: os2*) cannam@126: lt_prog_compiler_static='$wl-static' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: # PIC is the default on this platform cannam@126: # Common symbols not allowed in MH_DYLIB files cannam@126: lt_prog_compiler_pic='-fno-common' cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: # PIC is the default for Haiku. cannam@126: # The "-static" flag exists, but is broken. cannam@126: lt_prog_compiler_static= cannam@126: ;; cannam@126: cannam@126: hpux*) cannam@126: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit cannam@126: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag cannam@126: # sets the default TLS model and affects inlining. cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: # +Z the default cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: # Interix 3.x gcc -fpic/-fPIC options generate broken code. cannam@126: # Instead, we relocate shared libraries at runtime. cannam@126: ;; cannam@126: cannam@126: msdosdjgpp*) cannam@126: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@126: # on systems that don't support them. cannam@126: lt_prog_compiler_can_build_shared=no cannam@126: enable_shared=no cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@126: # it will coredump. cannam@126: lt_prog_compiler_pic='-fPIC -shared' cannam@126: ;; cannam@126: cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: lt_prog_compiler_pic=-Kconform_pic cannam@126: fi cannam@126: ;; cannam@126: cannam@126: *) cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: case $cc_basename in cannam@126: nvcc*) # Cuda Compiler Driver 2.2 cannam@126: lt_prog_compiler_wl='-Xlinker ' cannam@126: if test -n "$lt_prog_compiler_pic"; then cannam@126: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: # PORTME Check for flag to pass linker flags through the system compiler. cannam@126: case $host_os in cannam@126: aix*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 now supports IA64 processor cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: else cannam@126: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: # PIC is the default on this platform cannam@126: # Common symbols not allowed in MH_DYLIB files cannam@126: lt_prog_compiler_pic='-fno-common' cannam@126: case $cc_basename in cannam@126: nagfor*) cannam@126: # NAG Fortran compiler cannam@126: lt_prog_compiler_wl='-Wl,-Wl,,' cannam@126: lt_prog_compiler_pic='-PIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@126: # This hack is so that the source file can tell whether it is being cannam@126: # built for inclusion in a dll (and should export symbols for example). cannam@126: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@126: case $host_os in cannam@126: os2*) cannam@126: lt_prog_compiler_static='$wl-static' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: hpux9* | hpux10* | hpux11*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@126: # not for PA HP-UX. cannam@126: case $host_cpu in cannam@126: hppa*64*|ia64*) cannam@126: # +Z the default cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic='+Z' cannam@126: ;; cannam@126: esac cannam@126: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@126: lt_prog_compiler_static='$wl-a ${wl}archive' cannam@126: ;; cannam@126: cannam@126: irix5* | irix6* | nonstopux*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: # PIC (with -KPIC) is the default. cannam@126: lt_prog_compiler_static='-non_shared' cannam@126: ;; cannam@126: cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: case $cc_basename in cannam@126: # old Intel for x86_64, which still supported -KPIC. cannam@126: ecc*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-static' cannam@126: ;; cannam@126: # icc used to be incompatible with GCC. cannam@126: # ICC 10 doesn't accept -KPIC any more. cannam@126: icc* | ifort*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: lt_prog_compiler_static='-static' cannam@126: ;; cannam@126: # Lahey Fortran 8.1. cannam@126: lf95*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='--shared' cannam@126: lt_prog_compiler_static='--static' cannam@126: ;; cannam@126: nagfor*) cannam@126: # NAG Fortran compiler cannam@126: lt_prog_compiler_wl='-Wl,-Wl,,' cannam@126: lt_prog_compiler_pic='-PIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: tcc*) cannam@126: # Fabrice Bellard et al's Tiny C Compiler cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: lt_prog_compiler_static='-static' cannam@126: ;; cannam@126: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) cannam@126: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@126: # which looks to be a dead project) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-fpic' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: ccc*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: # All Alpha code is PIC. cannam@126: lt_prog_compiler_static='-non_shared' cannam@126: ;; cannam@126: xl* | bgxl* | bgf* | mpixl*) cannam@126: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-qpic' cannam@126: lt_prog_compiler_static='-qstaticlink' cannam@126: ;; cannam@126: *) cannam@126: case `$CC -V 2>&1 | sed 5q` in cannam@126: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) cannam@126: # Sun Fortran 8.3 passes all unrecognized flags to the linker cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: lt_prog_compiler_wl='' cannam@126: ;; cannam@126: *Sun\ F* | *Sun*Fortran*) cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: lt_prog_compiler_wl='-Qoption ld ' cannam@126: ;; cannam@126: *Sun\ C*) cannam@126: # Sun C 5.9 cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: ;; cannam@126: *Intel*\ [CF]*Compiler*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-fPIC' cannam@126: lt_prog_compiler_static='-static' cannam@126: ;; cannam@126: *Portland\ Group*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-fpic' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: newsos6) cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@126: # it will coredump. cannam@126: lt_prog_compiler_pic='-fPIC -shared' cannam@126: ;; cannam@126: cannam@126: osf3* | osf4* | osf5*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: # All OSF/1 code is PIC. cannam@126: lt_prog_compiler_static='-non_shared' cannam@126: ;; cannam@126: cannam@126: rdos*) cannam@126: lt_prog_compiler_static='-non_shared' cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: case $cc_basename in cannam@126: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) cannam@126: lt_prog_compiler_wl='-Qoption ld ';; cannam@126: *) cannam@126: lt_prog_compiler_wl='-Wl,';; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: lt_prog_compiler_wl='-Qoption ld ' cannam@126: lt_prog_compiler_pic='-PIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: cannam@126: sysv4 | sysv4.2uw2* | sysv4.3*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: lt_prog_compiler_pic='-Kconform_pic' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_pic='-KPIC' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: cannam@126: unicos*) cannam@126: lt_prog_compiler_wl='-Wl,' cannam@126: lt_prog_compiler_can_build_shared=no cannam@126: ;; cannam@126: cannam@126: uts4*) cannam@126: lt_prog_compiler_pic='-pic' cannam@126: lt_prog_compiler_static='-Bstatic' cannam@126: ;; cannam@126: cannam@126: *) cannam@126: lt_prog_compiler_can_build_shared=no cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: case $host_os in cannam@126: # For platforms that do not support PIC, -DPIC is meaningless: cannam@126: *djgpp*) cannam@126: lt_prog_compiler_pic= cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" cannam@126: ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 cannam@126: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } cannam@126: if ${lt_cv_prog_compiler_pic+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_pic" >&6; } cannam@126: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic cannam@126: cannam@126: # cannam@126: # Check to make sure the PIC flag actually works. cannam@126: # cannam@126: if test -n "$lt_prog_compiler_pic"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 cannam@126: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } cannam@126: if ${lt_cv_prog_compiler_pic_works+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_pic_works=no cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: # The option is referenced via a variable to avoid confusing sed. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>conftest.err) cannam@126: ac_status=$? cannam@126: cat conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings other than the usual output. cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_pic_works=yes cannam@126: fi cannam@126: fi cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler_pic_works"; then cannam@126: case $lt_prog_compiler_pic in cannam@126: "" | " "*) ;; cannam@126: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; cannam@126: esac cannam@126: else cannam@126: lt_prog_compiler_pic= cannam@126: lt_prog_compiler_can_build_shared=no cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # cannam@126: # Check to make sure the static flag actually works. cannam@126: # cannam@126: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 cannam@126: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } cannam@126: if ${lt_cv_prog_compiler_static_works+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_static_works=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" cannam@126: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@126: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@126: # The linker can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: if test -s conftest.err; then cannam@126: # Append any errors to the config.log. cannam@126: cat conftest.err 1>&5 cannam@126: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_static_works=yes cannam@126: fi cannam@126: else cannam@126: lt_cv_prog_compiler_static_works=yes cannam@126: fi cannam@126: fi cannam@126: $RM -r conftest* cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_static_works" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler_static_works"; then cannam@126: : cannam@126: else cannam@126: lt_prog_compiler_static= cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@126: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@126: if ${lt_cv_prog_compiler_c_o+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_c_o=no cannam@126: $RM -r conftest 2>/dev/null cannam@126: mkdir conftest cannam@126: cd conftest cannam@126: mkdir out cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>out/conftest.err) cannam@126: ac_status=$? cannam@126: cat out/conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@126: then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@126: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_c_o=yes cannam@126: fi cannam@126: fi cannam@126: chmod u+w . 2>&5 cannam@126: $RM conftest* cannam@126: # SGI C++ compiler will create directory out/ii_files/ for cannam@126: # template instantiation cannam@126: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@126: $RM out/* && rmdir out cannam@126: cd .. cannam@126: $RM -r conftest cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@126: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@126: if ${lt_cv_prog_compiler_c_o+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_c_o=no cannam@126: $RM -r conftest 2>/dev/null cannam@126: mkdir conftest cannam@126: cd conftest cannam@126: mkdir out cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>out/conftest.err) cannam@126: ac_status=$? cannam@126: cat out/conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@126: then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@126: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_c_o=yes cannam@126: fi cannam@126: fi cannam@126: chmod u+w . 2>&5 cannam@126: $RM conftest* cannam@126: # SGI C++ compiler will create directory out/ii_files/ for cannam@126: # template instantiation cannam@126: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@126: $RM out/* && rmdir out cannam@126: cd .. cannam@126: $RM -r conftest cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: hard_links=nottested cannam@126: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then cannam@126: # do not overwrite the value of need_locks provided by the user cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 cannam@126: $as_echo_n "checking if we can lock with hard links... " >&6; } cannam@126: hard_links=yes cannam@126: $RM conftest* cannam@126: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@126: touch conftest.a cannam@126: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@126: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 cannam@126: $as_echo "$hard_links" >&6; } cannam@126: if test no = "$hard_links"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 cannam@126: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} cannam@126: need_locks=warn cannam@126: fi cannam@126: else cannam@126: need_locks=no cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@126: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } cannam@126: cannam@126: runpath_var= cannam@126: allow_undefined_flag= cannam@126: always_export_symbols=no cannam@126: archive_cmds= cannam@126: archive_expsym_cmds= cannam@126: compiler_needs_object=no cannam@126: enable_shared_with_static_runtimes=no cannam@126: export_dynamic_flag_spec= cannam@126: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@126: hardcode_automatic=no cannam@126: hardcode_direct=no cannam@126: hardcode_direct_absolute=no cannam@126: hardcode_libdir_flag_spec= cannam@126: hardcode_libdir_separator= cannam@126: hardcode_minus_L=no cannam@126: hardcode_shlibpath_var=unsupported cannam@126: inherit_rpath=no cannam@126: link_all_deplibs=unknown cannam@126: module_cmds= cannam@126: module_expsym_cmds= cannam@126: old_archive_from_new_cmds= cannam@126: old_archive_from_expsyms_cmds= cannam@126: thread_safe_flag_spec= cannam@126: whole_archive_flag_spec= cannam@126: # include_expsyms should be a list of space-separated symbols to be *always* cannam@126: # included in the symbol list cannam@126: include_expsyms= cannam@126: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@126: # it will be wrapped by ' (' and ')$', so one must not match beginning or cannam@126: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', cannam@126: # as well as any symbol that contains 'd'. cannam@126: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' cannam@126: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@126: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@126: # the symbol is explicitly referenced. Since portable code cannot cannam@126: # rely on this symbol name, it's probably fine to never include it in cannam@126: # preloaded symbol tables. cannam@126: # Exclude shared library initialization/finalization symbols. cannam@126: extract_expsyms_cmds= cannam@126: cannam@126: case $host_os in cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@126: # When not using gcc, we currently assume that we are using cannam@126: # Microsoft Visual C++. cannam@126: if test yes != "$GCC"; then cannam@126: with_gnu_ld=no cannam@126: fi cannam@126: ;; cannam@126: interix*) cannam@126: # we just hope/assume this is gcc and not c89 (= MSVC++) cannam@126: with_gnu_ld=yes cannam@126: ;; cannam@126: openbsd* | bitrig*) cannam@126: with_gnu_ld=no cannam@126: ;; cannam@126: linux* | k*bsd*-gnu | gnu*) cannam@126: link_all_deplibs=no cannam@126: ;; cannam@126: esac cannam@126: cannam@126: ld_shlibs=yes cannam@126: cannam@126: # On some targets, GNU ld is compatible enough with the native linker cannam@126: # that we're better off using the native interface for both. cannam@126: lt_use_gnu_ld_interface=no cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: case $host_os in cannam@126: aix*) cannam@126: # The AIX port of GNU ld has always aspired to compatibility cannam@126: # with the native linker. However, as the warning in the GNU ld cannam@126: # block says, versions before 2.19.5* couldn't really create working cannam@126: # shared libraries, regardless of the interface used. cannam@126: case `$LD -v 2>&1` in cannam@126: *\ \(GNU\ Binutils\)\ 2.19.5*) ;; cannam@126: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; cannam@126: *\ \(GNU\ Binutils\)\ [3-9]*) ;; cannam@126: *) cannam@126: lt_use_gnu_ld_interface=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *) cannam@126: lt_use_gnu_ld_interface=yes cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: if test yes = "$lt_use_gnu_ld_interface"; then cannam@126: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@126: wlarc='$wl' cannam@126: cannam@126: # Set some defaults for GNU ld with shared library support. These cannam@126: # are reset later if shared libraries are not supported. Putting them cannam@126: # here allows them to be overridden if necessary. cannam@126: runpath_var=LD_RUN_PATH cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: export_dynamic_flag_spec='$wl--export-dynamic' cannam@126: # ancient GNU ld didn't support --whole-archive et. al. cannam@126: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then cannam@126: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' cannam@126: else cannam@126: whole_archive_flag_spec= cannam@126: fi cannam@126: supports_anon_versioning=no cannam@126: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in cannam@126: *GNU\ gold*) supports_anon_versioning=yes ;; cannam@126: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@126: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@126: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@126: *\ 2.11.*) ;; # other 2.11 versions cannam@126: *) supports_anon_versioning=yes ;; cannam@126: esac cannam@126: cannam@126: # See if GNU ld supports shared libraries. cannam@126: case $host_os in cannam@126: aix[3-9]*) cannam@126: # On AIX/PPC, the GNU linker is very broken cannam@126: if test ia64 != "$host_cpu"; then cannam@126: ld_shlibs=no cannam@126: cat <<_LT_EOF 1>&2 cannam@126: cannam@126: *** Warning: the GNU linker, at least up to release 2.19, is reported cannam@126: *** to be unable to reliably create shared libraries on AIX. cannam@126: *** Therefore, libtool is disabling shared libraries support. If you cannam@126: *** really care for shared libraries, you may want to install binutils cannam@126: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. cannam@126: *** You will then need to restart the configuration process. cannam@126: cannam@126: _LT_EOF cannam@126: fi cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # see comment about AmigaOS4 .so support cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='' cannam@126: ;; cannam@126: m68k) cannam@126: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_minus_L=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: beos*) cannam@126: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@126: allow_undefined_flag=unsupported cannam@126: # Joseph Beckenbach says some releases of gcc cannam@126: # support --undefined. This deserves some investigation. FIXME cannam@126: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, cannam@126: # as there is no search path for DLLs. cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: export_dynamic_flag_spec='$wl--export-all-symbols' cannam@126: allow_undefined_flag=unsupported cannam@126: always_export_symbols=no cannam@126: enable_shared_with_static_runtimes=yes cannam@126: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' cannam@126: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' cannam@126: cannam@126: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@126: # If the export-symbols file already is a .def file, use it as cannam@126: # is; otherwise, prepend EXPORTS... cannam@126: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@126: cp $export_symbols $output_objdir/$soname.def; cannam@126: else cannam@126: echo EXPORTS > $output_objdir/$soname.def; cannam@126: cat $export_symbols >> $output_objdir/$soname.def; cannam@126: fi~ cannam@126: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: link_all_deplibs=yes cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_minus_L=yes cannam@126: allow_undefined_flag=unsupported cannam@126: shrext_cmds=.dll cannam@126: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: prefix_cmds="$SED"~ cannam@126: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@126: prefix_cmds="$prefix_cmds -e 1d"; cannam@126: fi~ cannam@126: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@126: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@126: enable_shared_with_static_runtimes=yes cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: hardcode_direct=no cannam@126: hardcode_shlibpath_var=no cannam@126: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@126: export_dynamic_flag_spec='$wl-E' cannam@126: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. cannam@126: # Instead, shared libraries are loaded at an image base (0x10000000 by cannam@126: # default) and relocated if they conflict, which is a slow very memory cannam@126: # consuming and fragmenting process. To avoid this, we pick a random, cannam@126: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link cannam@126: # time. Moving up from 0x10000000 also allows more sbrk(2) space. cannam@126: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' cannam@126: 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' cannam@126: ;; cannam@126: cannam@126: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) cannam@126: tmp_diet=no cannam@126: if test linux-dietlibc = "$host_os"; then cannam@126: case $cc_basename in cannam@126: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) cannam@126: esac cannam@126: fi cannam@126: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ cannam@126: && test no = "$tmp_diet" cannam@126: then cannam@126: tmp_addflag=' $pic_flag' cannam@126: tmp_sharedflag='-shared' cannam@126: case $cc_basename,$host_cpu in cannam@126: pgcc*) # Portland Group C compiler cannam@126: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: tmp_addflag=' $pic_flag' cannam@126: ;; cannam@126: pgf77* | pgf90* | pgf95* | pgfortran*) cannam@126: # Portland Group f77 and f90 compilers cannam@126: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: tmp_addflag=' $pic_flag -Mnomain' ;; cannam@126: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@126: tmp_addflag=' -i_dynamic' ;; cannam@126: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@126: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@126: ifc* | ifort*) # Intel Fortran compiler cannam@126: tmp_addflag=' -nofor_main' ;; cannam@126: lf95*) # Lahey Fortran 8.1 cannam@126: whole_archive_flag_spec= cannam@126: tmp_sharedflag='--shared' ;; cannam@126: nagfor*) # NAGFOR 5.3 cannam@126: tmp_sharedflag='-Wl,-shared' ;; cannam@126: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) cannam@126: tmp_sharedflag='-qmkshrobj' cannam@126: tmp_addflag= ;; cannam@126: nvcc*) # Cuda Compiler Driver 2.2 cannam@126: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: compiler_needs_object=yes cannam@126: ;; cannam@126: esac cannam@126: case `$CC -V 2>&1 | sed 5q` in cannam@126: *Sun\ C*) # Sun C 5.9 cannam@126: whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: compiler_needs_object=yes cannam@126: tmp_sharedflag='-G' ;; cannam@126: *Sun\ F*) # Sun Fortran 8.3 cannam@126: tmp_sharedflag='-G' ;; cannam@126: esac cannam@126: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: cannam@126: if test yes = "$supports_anon_versioning"; then cannam@126: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@126: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@126: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@126: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' cannam@126: fi cannam@126: cannam@126: case $cc_basename in cannam@126: tcc*) cannam@126: export_dynamic_flag_spec='-rdynamic' cannam@126: ;; cannam@126: xlf* | bgf* | bgxlf* | mpixlf*) cannam@126: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself cannam@126: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' cannam@126: if test yes = "$supports_anon_versioning"; then cannam@126: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@126: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@126: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@126: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: netbsd* | netbsdelf*-gnu) cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@126: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@126: wlarc= cannam@126: else cannam@126: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then cannam@126: ld_shlibs=no cannam@126: cat <<_LT_EOF 1>&2 cannam@126: cannam@126: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@126: *** create shared libraries on Solaris systems. Therefore, libtool cannam@126: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@126: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@126: *** your PATH or compiler configuration so that the native linker is cannam@126: *** used, and then restart. cannam@126: cannam@126: _LT_EOF cannam@126: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@126: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) cannam@126: case `$LD -v 2>&1` in cannam@126: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) cannam@126: ld_shlibs=no cannam@126: cat <<_LT_EOF 1>&2 cannam@126: cannam@126: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot cannam@126: *** reliably create shared libraries on SCO systems. Therefore, libtool cannam@126: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@126: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify cannam@126: *** your PATH or compiler configuration so that the native linker is cannam@126: *** used, and then restart. cannam@126: cannam@126: _LT_EOF cannam@126: ;; cannam@126: *) cannam@126: # For security reasons, it is highly recommended that you always cannam@126: # use absolute paths for naming shared libraries, and exclude the cannam@126: # DT_RUNPATH tag from executables and libraries. But doing so cannam@126: # requires that you compile everything twice, which is a pain. cannam@126: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@126: wlarc= cannam@126: hardcode_direct=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: *) cannam@126: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@126: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: if test no = "$ld_shlibs"; then cannam@126: runpath_var= cannam@126: hardcode_libdir_flag_spec= cannam@126: export_dynamic_flag_spec= cannam@126: whole_archive_flag_spec= cannam@126: fi cannam@126: else cannam@126: # PORTME fill in a description of your system's linker (not GNU ld) cannam@126: case $host_os in cannam@126: aix3*) cannam@126: allow_undefined_flag=unsupported cannam@126: always_export_symbols=yes cannam@126: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' cannam@126: # Note: this linker hardcodes the directories in LIBPATH if there cannam@126: # are no directories specified by -L. cannam@126: hardcode_minus_L=yes cannam@126: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then cannam@126: # Neither direct hardcoding nor static linking is supported with a cannam@126: # broken collect2. cannam@126: hardcode_direct=unsupported cannam@126: fi cannam@126: ;; cannam@126: cannam@126: aix[4-9]*) cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # On IA64, the linker does run time linking by default, so we don't cannam@126: # have to do anything special. cannam@126: aix_use_runtimelinking=no cannam@126: exp_sym_flag='-Bexport' cannam@126: no_entry_flag= cannam@126: else cannam@126: # If we're using GNU nm, then we don't want the "-C" option. cannam@126: # -C means demangle to GNU nm, but means don't demangle to AIX nm. cannam@126: # Without the "-l" option, or with the "-B" option, AIX nm treats cannam@126: # weak defined symbols like other global defined symbols, whereas cannam@126: # GNU nm marks them as "W". cannam@126: # While the 'weak' keyword is ignored in the Export File, we need cannam@126: # it in the Import File for the 'aix-soname' feature, so we have cannam@126: # to replace the "-B" option with "-P" for AIX nm. cannam@126: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then cannam@126: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' cannam@126: else cannam@126: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' cannam@126: fi cannam@126: aix_use_runtimelinking=no cannam@126: cannam@126: # Test if we are trying to use run time linking or normal cannam@126: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@126: # have runtime linking enabled, and use it for executables. cannam@126: # For shared libraries, we enable/disable runtime linking cannam@126: # depending on the kind of the shared library created - cannam@126: # when "with_aix_soname,aix_use_runtimelinking" is: cannam@126: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables cannam@126: # "aix,yes" lib.so shared, rtl:yes, for executables cannam@126: # lib.a static archive cannam@126: # "both,no" lib.so.V(shr.o) shared, rtl:yes cannam@126: # lib.a(lib.so.V) shared, rtl:no, for executables cannam@126: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@126: # lib.a(lib.so.V) shared, rtl:no cannam@126: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@126: # lib.a static archive cannam@126: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) cannam@126: for ld_flag in $LDFLAGS; do cannam@126: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then cannam@126: aix_use_runtimelinking=yes cannam@126: break cannam@126: fi cannam@126: done cannam@126: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@126: # With aix-soname=svr4, we create the lib.so.V shared archives only, cannam@126: # so we don't have lib.a shared libs to link our executables. cannam@126: # We have to force runtime linking in this case. cannam@126: aix_use_runtimelinking=yes cannam@126: LDFLAGS="$LDFLAGS -Wl,-brtl" cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: exp_sym_flag='-bexport' cannam@126: no_entry_flag='-bnoentry' cannam@126: fi cannam@126: cannam@126: # When large executables or shared objects are built, AIX ld can cannam@126: # have problems creating the table of contents. If linking a library cannam@126: # or program results in "error TOC overflow" add -mminimal-toc to cannam@126: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@126: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@126: cannam@126: archive_cmds='' cannam@126: hardcode_direct=yes cannam@126: hardcode_direct_absolute=yes cannam@126: hardcode_libdir_separator=':' cannam@126: link_all_deplibs=yes cannam@126: file_list_spec='$wl-f,' cannam@126: case $with_aix_soname,$aix_use_runtimelinking in cannam@126: aix,*) ;; # traditional, no import file cannam@126: svr4,* | *,yes) # use import file cannam@126: # The Import File defines what to hardcode. cannam@126: hardcode_direct=no cannam@126: hardcode_direct_absolute=no cannam@126: ;; cannam@126: esac cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: case $host_os in aix4.[012]|aix4.[012].*) cannam@126: # We only want to do this on AIX 4.2 and lower, the check cannam@126: # below for broken collect2 doesn't work under 4.3+ cannam@126: collect2name=`$CC -print-prog-name=collect2` cannam@126: if test -f "$collect2name" && cannam@126: strings "$collect2name" | $GREP resolve_lib_name >/dev/null cannam@126: then cannam@126: # We have reworked collect2 cannam@126: : cannam@126: else cannam@126: # We have old collect2 cannam@126: hardcode_direct=unsupported cannam@126: # It fails to find uninstalled libraries when the uninstalled cannam@126: # path is not listed in the libpath. Setting hardcode_minus_L cannam@126: # to unsupported forces relinking cannam@126: hardcode_minus_L=yes cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_libdir_separator= cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: shared_flag='-shared' cannam@126: if test yes = "$aix_use_runtimelinking"; then cannam@126: shared_flag="$shared_flag "'$wl-G' cannam@126: fi cannam@126: # Need to ensure runtime linking is disabled for the traditional cannam@126: # shared library, or the linker may eventually find shared libraries cannam@126: # /with/ Import File - we do not want to mix them. cannam@126: shared_flag_aix='-shared' cannam@126: shared_flag_svr4='-shared $wl-G' cannam@126: else cannam@126: # not using gcc cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@126: # chokes on -Wl,-G. The following line is correct: cannam@126: shared_flag='-G' cannam@126: else cannam@126: if test yes = "$aix_use_runtimelinking"; then cannam@126: shared_flag='$wl-G' cannam@126: else cannam@126: shared_flag='$wl-bM:SRE' cannam@126: fi cannam@126: shared_flag_aix='$wl-bM:SRE' cannam@126: shared_flag_svr4='$wl-G' cannam@126: fi cannam@126: fi cannam@126: cannam@126: export_dynamic_flag_spec='$wl-bexpall' cannam@126: # It seems that -bexpall does not export symbols beginning with cannam@126: # underscore (_), so it is better to generate a list of symbols to export. cannam@126: always_export_symbols=yes cannam@126: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@126: # Warning - without using the other runtime loading flags (-brtl), cannam@126: # -berok will link without error, but may produce a broken library. cannam@126: allow_undefined_flag='-berok' cannam@126: # Determine the default libpath from the value encoded in an cannam@126: # empty executable. cannam@126: if test set = "${lt_cv_aix_libpath+set}"; then cannam@126: aix_libpath=$lt_cv_aix_libpath cannam@126: else cannam@126: if ${lt_cv_aix_libpath_+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: cannam@126: lt_aix_libpath_sed=' cannam@126: /Import File Strings/,/^$/ { cannam@126: /^0/ { cannam@126: s/^0 *\([^ ]*\) *$/\1/ cannam@126: p cannam@126: } cannam@126: }' cannam@126: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: # Check for a 64-bit object if we didn't find anything. cannam@126: if test -z "$lt_cv_aix_libpath_"; then cannam@126: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: if test -z "$lt_cv_aix_libpath_"; then cannam@126: lt_cv_aix_libpath_=/usr/lib:/lib cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: aix_libpath=$lt_cv_aix_libpath_ cannam@126: fi cannam@126: cannam@126: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" cannam@126: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag cannam@126: else cannam@126: if test ia64 = "$host_cpu"; then cannam@126: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' cannam@126: allow_undefined_flag="-z nodefs" cannam@126: 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" cannam@126: else cannam@126: # Determine the default libpath from the value encoded in an cannam@126: # empty executable. cannam@126: if test set = "${lt_cv_aix_libpath+set}"; then cannam@126: aix_libpath=$lt_cv_aix_libpath cannam@126: else cannam@126: if ${lt_cv_aix_libpath_+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: cannam@126: lt_aix_libpath_sed=' cannam@126: /Import File Strings/,/^$/ { cannam@126: /^0/ { cannam@126: s/^0 *\([^ ]*\) *$/\1/ cannam@126: p cannam@126: } cannam@126: }' cannam@126: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: # Check for a 64-bit object if we didn't find anything. cannam@126: if test -z "$lt_cv_aix_libpath_"; then cannam@126: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: if test -z "$lt_cv_aix_libpath_"; then cannam@126: lt_cv_aix_libpath_=/usr/lib:/lib cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: aix_libpath=$lt_cv_aix_libpath_ cannam@126: fi cannam@126: cannam@126: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" cannam@126: # Warning - without using the other run time loading flags, cannam@126: # -berok will link without error, but may produce a broken library. cannam@126: no_undefined_flag=' $wl-bernotok' cannam@126: allow_undefined_flag=' $wl-berok' cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: # We only use this code for GNU lds that support --whole-archive. cannam@126: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' cannam@126: else cannam@126: # Exported symbols can be pulled into shared objects from archives cannam@126: whole_archive_flag_spec='$convenience' cannam@126: fi cannam@126: archive_cmds_need_lc=yes cannam@126: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' cannam@126: # -brtl affects multiple linker settings, -berok does not and is overridden later cannam@126: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' cannam@126: if test svr4 != "$with_aix_soname"; then cannam@126: # This is similar to how AIX traditionally builds its shared libraries. cannam@126: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' cannam@126: fi cannam@126: if test aix != "$with_aix_soname"; then cannam@126: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' cannam@126: else cannam@126: # used by -dlpreopen to get the symbols cannam@126: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' cannam@126: fi cannam@126: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' cannam@126: fi cannam@126: fi cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # see comment about AmigaOS4 .so support cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds='' cannam@126: ;; cannam@126: m68k) cannam@126: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_minus_L=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: bsdi[45]*) cannam@126: export_dynamic_flag_spec=-rdynamic cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: # When not using gcc, we currently assume that we are using cannam@126: # Microsoft Visual C++. cannam@126: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@126: # no search path for DLLs. cannam@126: case $cc_basename in cannam@126: cl*) cannam@126: # Native MSVC cannam@126: hardcode_libdir_flag_spec=' ' cannam@126: allow_undefined_flag=unsupported cannam@126: always_export_symbols=yes cannam@126: file_list_spec='@' cannam@126: # Tell ltmain to make .lib files, not .a files. cannam@126: libext=lib cannam@126: # Tell ltmain to make .dll files, not .so files. cannam@126: shrext_cmds=.dll cannam@126: # FIXME: Setting linknames here is a bad hack. cannam@126: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' cannam@126: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@126: cp "$export_symbols" "$output_objdir/$soname.def"; cannam@126: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; cannam@126: else cannam@126: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; cannam@126: fi~ cannam@126: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ cannam@126: linknames=' cannam@126: # The linker will not automatically build a static lib if we build a DLL. cannam@126: # _LT_TAGVAR(old_archive_from_new_cmds, )='true' cannam@126: enable_shared_with_static_runtimes=yes cannam@126: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' cannam@126: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' cannam@126: # Don't use ranlib cannam@126: old_postinstall_cmds='chmod 644 $oldlib' cannam@126: postlink_cmds='lt_outputfile="@OUTPUT@"~ cannam@126: lt_tool_outputfile="@TOOL_OUTPUT@"~ cannam@126: case $lt_outputfile in cannam@126: *.exe|*.EXE) ;; cannam@126: *) cannam@126: lt_outputfile=$lt_outputfile.exe cannam@126: lt_tool_outputfile=$lt_tool_outputfile.exe cannam@126: ;; cannam@126: esac~ cannam@126: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then cannam@126: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; cannam@126: $RM "$lt_outputfile.manifest"; cannam@126: fi' cannam@126: ;; cannam@126: *) cannam@126: # Assume MSVC wrapper cannam@126: hardcode_libdir_flag_spec=' ' cannam@126: allow_undefined_flag=unsupported cannam@126: # Tell ltmain to make .lib files, not .a files. cannam@126: libext=lib cannam@126: # Tell ltmain to make .dll files, not .so files. cannam@126: shrext_cmds=.dll cannam@126: # FIXME: Setting linknames here is a bad hack. cannam@126: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@126: # The linker will automatically build a .lib file if we build a DLL. cannam@126: old_archive_from_new_cmds='true' cannam@126: # FIXME: Should let the user specify the lib program. cannam@126: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' cannam@126: enable_shared_with_static_runtimes=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: cannam@126: cannam@126: archive_cmds_need_lc=no cannam@126: hardcode_direct=no cannam@126: hardcode_automatic=yes cannam@126: hardcode_shlibpath_var=unsupported cannam@126: if test yes = "$lt_cv_ld_force_load"; then cannam@126: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' cannam@126: cannam@126: else cannam@126: whole_archive_flag_spec='' cannam@126: fi cannam@126: link_all_deplibs=yes cannam@126: allow_undefined_flag=$_lt_dar_allow_undefined cannam@126: case $cc_basename in cannam@126: ifort*|nagfor*) _lt_dar_can_shared=yes ;; cannam@126: *) _lt_dar_can_shared=$GCC ;; cannam@126: esac cannam@126: if test yes = "$_lt_dar_can_shared"; then cannam@126: output_verbose_link_cmd=func_echo_all cannam@126: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" cannam@126: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" cannam@126: 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" cannam@126: 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" cannam@126: cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: cannam@126: ;; cannam@126: cannam@126: dgux*) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@126: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@126: # does not break anything, and helps significantly (at the cost of a little cannam@126: # extra space). cannam@126: freebsd2.2*) cannam@126: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@126: hardcode_libdir_flag_spec='-R$libdir' cannam@126: hardcode_direct=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@126: freebsd2.*) cannam@126: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_direct=yes cannam@126: hardcode_minus_L=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@126: freebsd* | dragonfly*) cannam@126: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@126: hardcode_libdir_flag_spec='-R$libdir' cannam@126: hardcode_direct=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: hpux9*) cannam@126: if test yes = "$GCC"; then cannam@126: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' cannam@126: else cannam@126: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' cannam@126: fi cannam@126: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: hardcode_direct=yes cannam@126: cannam@126: # hardcode_minus_L: Not really in the search PATH, cannam@126: # but as the default location of the library. cannam@126: hardcode_minus_L=yes cannam@126: export_dynamic_flag_spec='$wl-E' cannam@126: ;; cannam@126: cannam@126: hpux10*) cannam@126: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@126: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@126: else cannam@126: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@126: fi cannam@126: if test no = "$with_gnu_ld"; then cannam@126: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: hardcode_direct=yes cannam@126: hardcode_direct_absolute=yes cannam@126: export_dynamic_flag_spec='$wl-E' cannam@126: # hardcode_minus_L: Not really in the search PATH, cannam@126: # but as the default location of the library. cannam@126: hardcode_minus_L=yes cannam@126: fi cannam@126: ;; cannam@126: cannam@126: hpux11*) cannam@126: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: ia64*) cannam@126: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: *) cannam@126: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: ia64*) cannam@126: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: *) cannam@126: cannam@126: # Older versions of the 11.00 compiler do not understand -b yet cannam@126: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 cannam@126: $as_echo_n "checking if $CC understands -b... " >&6; } cannam@126: if ${lt_cv_prog_compiler__b+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler__b=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: LDFLAGS="$LDFLAGS -b" cannam@126: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@126: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@126: # The linker can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: if test -s conftest.err; then cannam@126: # Append any errors to the config.log. cannam@126: cat conftest.err 1>&5 cannam@126: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler__b=yes cannam@126: fi cannam@126: else cannam@126: lt_cv_prog_compiler__b=yes cannam@126: fi cannam@126: fi cannam@126: $RM -r conftest* cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler__b" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler__b"; then cannam@126: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@126: else cannam@126: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@126: fi cannam@126: cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: if test no = "$with_gnu_ld"; then cannam@126: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: cannam@126: case $host_cpu in cannam@126: hppa*64*|ia64*) cannam@126: hardcode_direct=no cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: *) cannam@126: hardcode_direct=yes cannam@126: hardcode_direct_absolute=yes cannam@126: export_dynamic_flag_spec='$wl-E' cannam@126: cannam@126: # hardcode_minus_L: Not really in the search PATH, cannam@126: # but as the default location of the library. cannam@126: hardcode_minus_L=yes cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: cannam@126: irix5* | irix6* | nonstopux*) cannam@126: if test yes = "$GCC"; then cannam@126: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: # Try to use the -exported_symbol ld option, if it does not cannam@126: # work, assume that -exports_file does not work either and cannam@126: # implicitly export all symbols. cannam@126: # This should be the same for all languages, so no per-tag cache variable. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 cannam@126: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } cannam@126: if ${lt_cv_irix_exported_symbol+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: int foo (void) { return 0; } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: lt_cv_irix_exported_symbol=yes cannam@126: else cannam@126: lt_cv_irix_exported_symbol=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 cannam@126: $as_echo "$lt_cv_irix_exported_symbol" >&6; } cannam@126: if test yes = "$lt_cv_irix_exported_symbol"; then cannam@126: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' cannam@126: fi cannam@126: link_all_deplibs=no cannam@126: else cannam@126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' cannam@126: fi cannam@126: archive_cmds_need_lc='no' cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: inherit_rpath=yes cannam@126: link_all_deplibs=yes cannam@126: ;; cannam@126: cannam@126: linux*) cannam@126: case $cc_basename in cannam@126: tcc*) cannam@126: # Fabrice Bellard et al's Tiny C Compiler cannam@126: ld_shlibs=yes cannam@126: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: netbsd* | netbsdelf*-gnu) cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@126: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@126: else cannam@126: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@126: fi cannam@126: hardcode_libdir_flag_spec='-R$libdir' cannam@126: hardcode_direct=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: newsos6) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_direct=yes cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: ;; cannam@126: cannam@126: openbsd* | bitrig*) cannam@126: if test -f /usr/libexec/ld.so; then cannam@126: hardcode_direct=yes cannam@126: hardcode_shlibpath_var=no cannam@126: hardcode_direct_absolute=yes cannam@126: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@126: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' cannam@126: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@126: export_dynamic_flag_spec='$wl-E' cannam@126: else cannam@126: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@126: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@126: fi cannam@126: else cannam@126: ld_shlibs=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_minus_L=yes cannam@126: allow_undefined_flag=unsupported cannam@126: shrext_cmds=.dll cannam@126: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: prefix_cmds="$SED"~ cannam@126: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@126: prefix_cmds="$prefix_cmds -e 1d"; cannam@126: fi~ cannam@126: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@126: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@126: enable_shared_with_static_runtimes=yes cannam@126: ;; cannam@126: cannam@126: osf3*) cannam@126: if test yes = "$GCC"; then cannam@126: allow_undefined_flag=' $wl-expect_unresolved $wl\*' cannam@126: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: else cannam@126: allow_undefined_flag=' -expect_unresolved \*' cannam@126: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: fi cannam@126: archive_cmds_need_lc='no' cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: hardcode_libdir_separator=: cannam@126: ;; cannam@126: cannam@126: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@126: if test yes = "$GCC"; then cannam@126: allow_undefined_flag=' $wl-expect_unresolved $wl\*' cannam@126: archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@126: else cannam@126: allow_undefined_flag=' -expect_unresolved \*' cannam@126: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: 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~ cannam@126: $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' cannam@126: cannam@126: # Both c and cxx compiler support -rpath directly cannam@126: hardcode_libdir_flag_spec='-rpath $libdir' cannam@126: fi cannam@126: archive_cmds_need_lc='no' cannam@126: hardcode_libdir_separator=: cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: no_undefined_flag=' -z defs' cannam@126: if test yes = "$GCC"; then cannam@126: wlarc='$wl' cannam@126: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@126: else cannam@126: case `$CC -V 2>&1` in cannam@126: *"Compilers 5.0"*) cannam@126: wlarc='' cannam@126: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' cannam@126: ;; cannam@126: *) cannam@126: wlarc='$wl' cannam@126: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: hardcode_libdir_flag_spec='-R$libdir' cannam@126: hardcode_shlibpath_var=no cannam@126: case $host_os in cannam@126: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@126: *) cannam@126: # The compiler driver will combine and reorder linker options, cannam@126: # but understands '-z linker_flag'. GCC discards it without '$wl', cannam@126: # but is careful enough not to reorder. cannam@126: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@126: if test yes = "$GCC"; then cannam@126: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' cannam@126: else cannam@126: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: link_all_deplibs=yes cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: if test sequent = "$host_vendor"; then cannam@126: # Use $CC to link under sequent, because it throws in some extra .o cannam@126: # files that make .init and .fini sections work. cannam@126: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: else cannam@126: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@126: fi cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_direct=yes cannam@126: hardcode_minus_L=yes cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: sysv4) cannam@126: case $host_vendor in cannam@126: sni) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_direct=yes # is this really true??? cannam@126: ;; cannam@126: siemens) cannam@126: ## LD is ld it makes a PLAMLIB cannam@126: ## CC just makes a GrossModule. cannam@126: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@126: reload_cmds='$CC -r -o $output$reload_objs' cannam@126: hardcode_direct=no cannam@126: ;; cannam@126: motorola) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_direct=no #Motorola manual says yes, but my tests say they lie cannam@126: ;; cannam@126: esac cannam@126: runpath_var='LD_RUN_PATH' cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: sysv4.3*) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_shlibpath_var=no cannam@126: export_dynamic_flag_spec='-Bexport' cannam@126: ;; cannam@126: cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_shlibpath_var=no cannam@126: runpath_var=LD_RUN_PATH cannam@126: hardcode_runpath_var=yes cannam@126: ld_shlibs=yes cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) cannam@126: no_undefined_flag='$wl-z,text' cannam@126: archive_cmds_need_lc=no cannam@126: hardcode_shlibpath_var=no cannam@126: runpath_var='LD_RUN_PATH' cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: else cannam@126: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6*) cannam@126: # Note: We CANNOT use -z defs as we might desire, because we do not cannam@126: # link with -lc, and that would cause any symbols used from libc to cannam@126: # always be unresolved, which means just about no library would cannam@126: # ever link correctly. If we're not using GNU ld we use -z text cannam@126: # though, which does catch some bad symbols but isn't as heavy-handed cannam@126: # as -z defs. cannam@126: no_undefined_flag='$wl-z,text' cannam@126: allow_undefined_flag='$wl-z,nodefs' cannam@126: archive_cmds_need_lc=no cannam@126: hardcode_shlibpath_var=no cannam@126: hardcode_libdir_flag_spec='$wl-R,$libdir' cannam@126: hardcode_libdir_separator=':' cannam@126: link_all_deplibs=yes cannam@126: export_dynamic_flag_spec='$wl-Bexport' cannam@126: runpath_var='LD_RUN_PATH' cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: else cannam@126: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: uts4*) cannam@126: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: hardcode_shlibpath_var=no cannam@126: ;; cannam@126: cannam@126: *) cannam@126: ld_shlibs=no cannam@126: ;; cannam@126: esac cannam@126: cannam@126: if test sni = "$host_vendor"; then cannam@126: case $host in cannam@126: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@126: export_dynamic_flag_spec='$wl-Blargedynsym' cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 cannam@126: $as_echo "$ld_shlibs" >&6; } cannam@126: test no = "$ld_shlibs" && can_build_shared=no cannam@126: cannam@126: with_gnu_ld=$with_gnu_ld cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # cannam@126: # Do we need to explicitly link libc? cannam@126: # cannam@126: case "x$archive_cmds_need_lc" in cannam@126: x|xyes) cannam@126: # Assume -lc should be added cannam@126: archive_cmds_need_lc=yes cannam@126: cannam@126: if test yes,yes = "$GCC,$enable_shared"; then cannam@126: case $archive_cmds in cannam@126: *'~'*) cannam@126: # FIXME: we may have to deal with multi-command sequences. cannam@126: ;; cannam@126: '$CC '*) cannam@126: # Test whether the compiler implicitly links with -lc since on some cannam@126: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@126: # to ld, don't add -lc before -lgcc. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 cannam@126: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cannam@126: if ${lt_cv_archive_cmds_need_lc+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: $RM conftest* cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } 2>conftest.err; then cannam@126: soname=conftest cannam@126: lib=conftest cannam@126: libobjs=conftest.$ac_objext cannam@126: deplibs= cannam@126: wl=$lt_prog_compiler_wl cannam@126: pic_flag=$lt_prog_compiler_pic cannam@126: compiler_flags=-v cannam@126: linker_flags=-v cannam@126: verstring= cannam@126: output_objdir=. cannam@126: libname=conftest cannam@126: lt_save_allow_undefined_flag=$allow_undefined_flag cannam@126: allow_undefined_flag= cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 cannam@126: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: then cannam@126: lt_cv_archive_cmds_need_lc=no cannam@126: else cannam@126: lt_cv_archive_cmds_need_lc=yes cannam@126: fi cannam@126: allow_undefined_flag=$lt_save_allow_undefined_flag cannam@126: else cannam@126: cat conftest.err 1>&5 cannam@126: fi cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 cannam@126: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } cannam@126: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 cannam@126: $as_echo_n "checking dynamic linker characteristics... " >&6; } cannam@126: cannam@126: if test yes = "$GCC"; then cannam@126: case $host_os in cannam@126: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; cannam@126: *) lt_awk_arg='/^libraries:/' ;; cannam@126: esac cannam@126: case $host_os in cannam@126: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; cannam@126: *) lt_sed_strip_eq='s|=/|/|g' ;; cannam@126: esac cannam@126: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` cannam@126: case $lt_search_path_spec in cannam@126: *\;*) cannam@126: # if the path contains ";" then we assume it to be the separator cannam@126: # otherwise default to the standard path separator (i.e. ":") - it is cannam@126: # assumed that no part of a normal pathname contains ";" but that should cannam@126: # okay in the real world where ";" in dirpaths is itself problematic. cannam@126: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` cannam@126: ;; cannam@126: *) cannam@126: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` cannam@126: ;; cannam@126: esac cannam@126: # Ok, now we have the path, separated by spaces, we can step through it cannam@126: # and add multilib dir if necessary... cannam@126: lt_tmp_lt_search_path_spec= cannam@126: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` cannam@126: # ...but if some path component already ends with the multilib dir we assume cannam@126: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). cannam@126: case "$lt_multi_os_dir; $lt_search_path_spec " in cannam@126: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) cannam@126: lt_multi_os_dir= cannam@126: ;; cannam@126: esac cannam@126: for lt_sys_path in $lt_search_path_spec; do cannam@126: if test -d "$lt_sys_path$lt_multi_os_dir"; then cannam@126: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" cannam@126: elif test -n "$lt_multi_os_dir"; then cannam@126: test -d "$lt_sys_path" && \ cannam@126: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" cannam@126: fi cannam@126: done cannam@126: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' cannam@126: BEGIN {RS = " "; FS = "/|\n";} { cannam@126: lt_foo = ""; cannam@126: lt_count = 0; cannam@126: for (lt_i = NF; lt_i > 0; lt_i--) { cannam@126: if ($lt_i != "" && $lt_i != ".") { cannam@126: if ($lt_i == "..") { cannam@126: lt_count++; cannam@126: } else { cannam@126: if (lt_count == 0) { cannam@126: lt_foo = "/" $lt_i lt_foo; cannam@126: } else { cannam@126: lt_count--; cannam@126: } cannam@126: } cannam@126: } cannam@126: } cannam@126: if (lt_foo != "") { lt_freq[lt_foo]++; } cannam@126: if (lt_freq[lt_foo] == 1) { print lt_foo; } cannam@126: }'` cannam@126: # AWK program above erroneously prepends '/' to C:/dos/paths cannam@126: # for these hosts. cannam@126: case $host_os in cannam@126: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ cannam@126: $SED 's|/\([A-Za-z]:\)|\1|g'` ;; cannam@126: esac cannam@126: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` cannam@126: else cannam@126: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@126: fi cannam@126: library_names_spec= cannam@126: libname_spec='lib$name' cannam@126: soname_spec= cannam@126: shrext_cmds=.so cannam@126: postinstall_cmds= cannam@126: postuninstall_cmds= cannam@126: finish_cmds= cannam@126: finish_eval= cannam@126: shlibpath_var= cannam@126: shlibpath_overrides_runpath=unknown cannam@126: version_type=none cannam@126: dynamic_linker="$host_os ld.so" cannam@126: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@126: need_lib_prefix=unknown cannam@126: hardcode_into_libs=no cannam@126: cannam@126: # when you set need_version to no, make sure it does not cause -set_version cannam@126: # flags to be left without arguments cannam@126: need_version=unknown cannam@126: cannam@126: cannam@126: cannam@126: case $host_os in cannam@126: aix3*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname.a' cannam@126: shlibpath_var=LIBPATH cannam@126: cannam@126: # AIX 3 has no versioning support, so we append a major version to the name. cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: cannam@126: aix[4-9]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: hardcode_into_libs=yes cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 supports IA64 cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: else cannam@126: # With GCC up to 2.95.x, collect2 would create an import file cannam@126: # for dependence libraries. The import file would start with cannam@126: # the line '#! .'. This would cause the generated library to cannam@126: # depend on '.', always an invalid library. This was fixed in cannam@126: # development snapshots of GCC prior to 3.0. cannam@126: case $host_os in cannam@126: aix4 | aix4.[01] | aix4.[01].*) cannam@126: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@126: echo ' yes ' cannam@126: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then cannam@126: : cannam@126: else cannam@126: can_build_shared=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: # Using Import Files as archive members, it is possible to support cannam@126: # filename-based versioning of shared library archives on AIX. While cannam@126: # this would work for both with and without runtime linking, it will cannam@126: # prevent static linking of such archives. So we do filename-based cannam@126: # shared library versioning with .so extension only, which is used cannam@126: # when both runtime linking and shared linking is enabled. cannam@126: # Unfortunately, runtime linking may impact performance, so we do cannam@126: # not want this to be the default eventually. Also, we use the cannam@126: # versioned .so libs for executables only if there is the -brtl cannam@126: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. cannam@126: # To allow for filename-based versioning support, we need to create cannam@126: # libNAME.so.V as an archive file, containing: cannam@126: # *) an Import File, referring to the versioned filename of the cannam@126: # archive as well as the shared archive member, telling the cannam@126: # bitwidth (32 or 64) of that shared object, and providing the cannam@126: # list of exported symbols of that shared object, eventually cannam@126: # decorated with the 'weak' keyword cannam@126: # *) the shared object with the F_LOADONLY flag set, to really avoid cannam@126: # it being seen by the linker. cannam@126: # At run time we better use the real file rather than another symlink, cannam@126: # but for link time we create the symlink libNAME.so -> libNAME.so.V cannam@126: cannam@126: case $with_aix_soname,$aix_use_runtimelinking in cannam@126: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct cannam@126: # soname into executable. Probably we can add versioning support to cannam@126: # collect2, so additional links can be useful in future. cannam@126: aix,yes) # traditional libtool cannam@126: dynamic_linker='AIX unversionable lib.so' cannam@126: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@126: # instead of lib.a to let people know that these are not cannam@126: # typical AIX shared libraries. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: ;; cannam@126: aix,no) # traditional AIX only cannam@126: dynamic_linker='AIX lib.a(lib.so.V)' cannam@126: # We preserve .a as extension for shared libraries through AIX4.2 cannam@126: # and later when we are not doing run time linking. cannam@126: library_names_spec='$libname$release.a $libname.a' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: svr4,*) # full svr4 only cannam@126: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@126: # We do not specify a path in Import Files, so LIBPATH fires. cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: *,yes) # both, prefer svr4 cannam@126: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@126: # unpreferred sharedlib libNAME.a needs extra handling cannam@126: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' cannam@126: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' cannam@126: # We do not specify a path in Import Files, so LIBPATH fires. cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: *,no) # both, prefer aix cannam@126: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" cannam@126: library_names_spec='$libname$release.a $libname.a' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling cannam@126: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' cannam@126: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LIBPATH cannam@126: fi cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # Since July 2007 AmigaOS4 officially supports .so libraries. cannam@126: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: ;; cannam@126: m68k) cannam@126: library_names_spec='$libname.ixlibrary $libname.a' cannam@126: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@126: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: beos*) cannam@126: library_names_spec='$libname$shared_ext' cannam@126: dynamic_linker="$host_os ld.so" cannam@126: shlibpath_var=LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: bsdi[45]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@126: # the default ld.so.conf also contains /usr/contrib/lib and cannam@126: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@126: # libtool to hard-code these into programs cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: version_type=windows cannam@126: shrext_cmds=.dll cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: cannam@126: case $GCC,$cc_basename in cannam@126: yes,*) cannam@126: # gcc cannam@126: library_names_spec='$libname.dll.a' cannam@126: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@126: chmod a+x \$dldir/$dlname~ cannam@126: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@126: fi' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: shlibpath_overrides_runpath=yes cannam@126: cannam@126: case $host_os in cannam@126: cygwin*) cannam@126: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@126: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" cannam@126: ;; cannam@126: mingw* | cegcc*) cannam@126: # MinGW DLLs use traditional 'lib' prefix cannam@126: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: ;; cannam@126: pw32*) cannam@126: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@126: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: ;; cannam@126: esac cannam@126: dynamic_linker='Win32 ld.exe' cannam@126: ;; cannam@126: cannam@126: *,cl*) cannam@126: # Native MSVC cannam@126: libname_spec='$name' cannam@126: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: library_names_spec='$libname.dll.lib' cannam@126: cannam@126: case $build_os in cannam@126: mingw*) cannam@126: sys_lib_search_path_spec= cannam@126: lt_save_ifs=$IFS cannam@126: IFS=';' cannam@126: for lt_path in $LIB cannam@126: do cannam@126: IFS=$lt_save_ifs cannam@126: # Let DOS variable expansion print the short 8.3 style file name. cannam@126: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: # Convert to MSYS style. cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` cannam@126: ;; cannam@126: cygwin*) cannam@126: # Convert to unix form, then to dos form, then back to unix form cannam@126: # but this time dos style (no spaces!) so that the unix form looks cannam@126: # like /cygdrive/c/PROGRA~1:/cygdr... cannam@126: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` cannam@126: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` cannam@126: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@126: ;; cannam@126: *) cannam@126: sys_lib_search_path_spec=$LIB cannam@126: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then cannam@126: # It is most probably a Windows format PATH. cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@126: else cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@126: fi cannam@126: # FIXME: find the short name or the path components, as spaces are cannam@126: # common. (e.g. "Program Files" -> "PROGRA~1") cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: shlibpath_overrides_runpath=yes cannam@126: dynamic_linker='Win32 link.exe' cannam@126: ;; cannam@126: cannam@126: *) cannam@126: # Assume MSVC wrapper cannam@126: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' cannam@126: dynamic_linker='Win32 ld.exe' cannam@126: ;; cannam@126: esac cannam@126: # FIXME: first we should search . and the directory the executable is in cannam@126: shlibpath_var=PATH cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: dynamic_linker="$host_os dyld" cannam@126: version_type=darwin cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' cannam@126: soname_spec='$libname$release$major$shared_ext' cannam@126: shlibpath_overrides_runpath=yes cannam@126: shlibpath_var=DYLD_LIBRARY_PATH cannam@126: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' cannam@126: cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@126: ;; cannam@126: cannam@126: dgux*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: freebsd* | dragonfly*) cannam@126: # DragonFly does not have aout. When/if they implement a new cannam@126: # versioning mechanism, adjust this. cannam@126: if test -x /usr/bin/objformat; then cannam@126: objformat=`/usr/bin/objformat` cannam@126: else cannam@126: case $host_os in cannam@126: freebsd[23].*) objformat=aout ;; cannam@126: *) objformat=elf ;; cannam@126: esac cannam@126: fi cannam@126: version_type=freebsd-$objformat cannam@126: case $version_type in cannam@126: freebsd-elf*) cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: ;; cannam@126: freebsd-*) cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: need_version=yes cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: case $host_os in cannam@126: freebsd2.*) cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: freebsd3.[01]* | freebsdelf3.[01]*) cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ cannam@126: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: *) # from 4.6 on, and DragonFly cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: dynamic_linker="$host_os runtime_loader" cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: hpux9* | hpux10* | hpux11*) cannam@126: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@126: # link against other versions. cannam@126: version_type=sunos cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: case $host_cpu in cannam@126: ia64*) cannam@126: shrext_cmds='.so' cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker="$host_os dld.so" cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: if test 32 = "$HPUX_IA64_MODE"; then cannam@126: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec=/usr/lib/hpux32 cannam@126: else cannam@126: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@126: sys_lib_dlsearch_path_spec=/usr/lib/hpux64 cannam@126: fi cannam@126: ;; cannam@126: hppa*64*) cannam@126: shrext_cmds='.sl' cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker="$host_os dld.sl" cannam@126: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@126: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: ;; cannam@126: *) cannam@126: shrext_cmds='.sl' cannam@126: dynamic_linker="$host_os dld.sl" cannam@126: shlibpath_var=SHLIB_PATH cannam@126: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: esac cannam@126: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... cannam@126: postinstall_cmds='chmod 555 $lib' cannam@126: # or fails outright, so override atomically: cannam@126: install_override_mode=555 cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: irix5* | irix6* | nonstopux*) cannam@126: case $host_os in cannam@126: nonstopux*) version_type=nonstopux ;; cannam@126: *) cannam@126: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: else cannam@126: version_type=irix cannam@126: fi ;; cannam@126: esac cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' cannam@126: case $host_os in cannam@126: irix5* | nonstopux*) cannam@126: libsuff= shlibsuff= cannam@126: ;; cannam@126: *) cannam@126: case $LD in # libtool.m4 will add one of these switches to LD cannam@126: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@126: libsuff= shlibsuff= libmagic=32-bit;; cannam@126: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@126: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@126: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@126: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@126: *) libsuff= shlibsuff= libmagic=never-match;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" cannam@126: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: # No shared lib support for Linux oldld, aout, or coff. cannam@126: linux*oldld* | linux*aout* | linux*coff*) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: cannam@126: linux*android*) cannam@126: version_type=none # Android doesn't support versioned libraries. cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext' cannam@126: finish_cmds= cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: cannam@126: # This implies no fast_install, which is unacceptable. cannam@126: # Some rework will be needed to allow for fast_install cannam@126: # before this can be enabled. cannam@126: hardcode_into_libs=yes cannam@126: cannam@126: dynamic_linker='Android linker' cannam@126: # Don't embed -rpath directories since the linker doesn't support them. cannam@126: hardcode_libdir_flag_spec='-L$libdir' cannam@126: ;; cannam@126: cannam@126: # This must be glibc/ELF. cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: cannam@126: # Some binutils ld are patched to set DT_RUNPATH cannam@126: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_shlibpath_overrides_runpath=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: save_libdir=$libdir cannam@126: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ cannam@126: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : cannam@126: lt_cv_shlibpath_overrides_runpath=yes cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: libdir=$save_libdir cannam@126: cannam@126: fi cannam@126: cannam@126: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath cannam@126: cannam@126: # This implies no fast_install, which is unacceptable. cannam@126: # Some rework will be needed to allow for fast_install cannam@126: # before this can be enabled. cannam@126: hardcode_into_libs=yes cannam@126: cannam@126: # Ideally, we could use ldconfig to report *all* directores which are cannam@126: # searched for libraries, however this is still not possible. Aside from not cannam@126: # being certain /sbin/ldconfig is available, command cannam@126: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, cannam@126: # even though it is searched at run-time. Try to do the best guess by cannam@126: # appending ld.so.conf contents (and includes) to the search path. cannam@126: if test -f /etc/ld.so.conf; then cannam@126: 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;s/"//g;/^$/d' | tr '\n' ' '` cannam@126: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" cannam@126: fi cannam@126: cannam@126: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@126: # powerpc, because MkLinux only supported shared libraries with the cannam@126: # GNU dynamic linker. Since this was broken with cross compilers, cannam@126: # most powerpc-linux boxes support dynamic linking these days and cannam@126: # people can always --disable-shared, the test was removed, and we cannam@126: # assume the GNU/Linux dynamic linker is in use. cannam@126: dynamic_linker='GNU/Linux ld.so' cannam@126: ;; cannam@126: cannam@126: netbsdelf*-gnu) cannam@126: version_type=linux cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@126: soname_spec='${libname}${release}${shared_ext}$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker='NetBSD ld.elf_so' cannam@126: ;; cannam@126: cannam@126: netbsd*) cannam@126: version_type=sunos cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@126: dynamic_linker='NetBSD (a.out) ld.so' cannam@126: else cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: dynamic_linker='NetBSD ld.elf_so' cannam@126: fi cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: newsos6) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: version_type=qnx cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker='ldqnx.so' cannam@126: ;; cannam@126: cannam@126: openbsd* | bitrig*) cannam@126: version_type=sunos cannam@126: sys_lib_dlsearch_path_spec=/usr/lib cannam@126: need_lib_prefix=no cannam@126: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@126: need_version=no cannam@126: else cannam@126: need_version=yes cannam@126: fi cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: libname_spec='$name' cannam@126: version_type=windows cannam@126: shrext_cmds=.dll cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: # OS/2 can only load a DLL with a base name of 8 characters or less. cannam@126: soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; cannam@126: v=$($ECHO $release$versuffix | tr -d .-); cannam@126: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); cannam@126: $ECHO $n$v`$shared_ext' cannam@126: library_names_spec='${libname}_dll.$libext' cannam@126: dynamic_linker='OS/2 ld.exe' cannam@126: shlibpath_var=BEGINLIBPATH cannam@126: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@126: chmod a+x \$dldir/$dlname~ cannam@126: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@126: fi' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: ;; cannam@126: cannam@126: osf3* | osf4* | osf5*) cannam@126: version_type=osf cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: ;; cannam@126: cannam@126: rdos*) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: # ldd complains unless libraries are executable cannam@126: postinstall_cmds='chmod +x $lib' cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: version_type=sunos cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: need_lib_prefix=no cannam@126: fi cannam@126: need_version=yes cannam@126: ;; cannam@126: cannam@126: sysv4 | sysv4.3*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: case $host_vendor in cannam@126: sni) cannam@126: shlibpath_overrides_runpath=no cannam@126: need_lib_prefix=no cannam@126: runpath_var=LD_RUN_PATH cannam@126: ;; cannam@126: siemens) cannam@126: need_lib_prefix=no cannam@126: ;; cannam@126: motorola) cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' cannam@126: soname_spec='$libname$shared_ext.$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@126: version_type=sco cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' cannam@126: else cannam@126: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' cannam@126: case $host_os in cannam@126: sco3.2v5*) cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: sys_lib_dlsearch_path_spec='/usr/lib' cannam@126: ;; cannam@126: cannam@126: tpf*) cannam@126: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: uts4*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: *) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: esac cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 cannam@126: $as_echo "$dynamic_linker" >&6; } cannam@126: test no = "$dynamic_linker" && can_build_shared=no cannam@126: cannam@126: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@126: if test yes = "$GCC"; then cannam@126: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@126: fi cannam@126: cannam@126: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then cannam@126: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec cannam@126: fi cannam@126: cannam@126: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then cannam@126: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec cannam@126: fi cannam@126: cannam@126: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... cannam@126: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec cannam@126: cannam@126: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code cannam@126: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" cannam@126: cannam@126: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool cannam@126: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 cannam@126: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } cannam@126: hardcode_action= cannam@126: if test -n "$hardcode_libdir_flag_spec" || cannam@126: test -n "$runpath_var" || cannam@126: test yes = "$hardcode_automatic"; then cannam@126: cannam@126: # We can hardcode non-existent directories. cannam@126: if test no != "$hardcode_direct" && cannam@126: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@126: # have to relink, otherwise we might link with an installed library cannam@126: # when we should be linking with a yet-to-be-installed one cannam@126: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && cannam@126: test no != "$hardcode_minus_L"; then cannam@126: # Linking always hardcodes the temporary library directory. cannam@126: hardcode_action=relink cannam@126: else cannam@126: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@126: hardcode_action=immediate cannam@126: fi cannam@126: else cannam@126: # We cannot hardcode anything, or else we can only hardcode existing cannam@126: # directories. cannam@126: hardcode_action=unsupported cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 cannam@126: $as_echo "$hardcode_action" >&6; } cannam@126: cannam@126: if test relink = "$hardcode_action" || cannam@126: test yes = "$inherit_rpath"; then cannam@126: # Fast installation is not supported cannam@126: enable_fast_install=no cannam@126: elif test yes = "$shlibpath_overrides_runpath" || cannam@126: test no = "$enable_shared"; then cannam@126: # Fast installation is not necessary cannam@126: enable_fast_install=needless cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test yes != "$enable_dlopen"; then cannam@126: enable_dlopen=unknown cannam@126: enable_dlopen_self=unknown cannam@126: enable_dlopen_self_static=unknown cannam@126: else cannam@126: lt_cv_dlopen=no cannam@126: lt_cv_dlopen_libs= cannam@126: cannam@126: case $host_os in cannam@126: beos*) cannam@126: lt_cv_dlopen=load_add_on cannam@126: lt_cv_dlopen_libs= cannam@126: lt_cv_dlopen_self=yes cannam@126: ;; cannam@126: cannam@126: mingw* | pw32* | cegcc*) cannam@126: lt_cv_dlopen=LoadLibrary cannam@126: lt_cv_dlopen_libs= cannam@126: ;; cannam@126: cannam@126: cygwin*) cannam@126: lt_cv_dlopen=dlopen cannam@126: lt_cv_dlopen_libs= cannam@126: ;; cannam@126: cannam@126: darwin*) cannam@126: # if libdl is installed we need to link against it cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 cannam@126: $as_echo_n "checking for dlopen in -ldl... " >&6; } cannam@126: if ${ac_cv_lib_dl_dlopen+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-ldl $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char dlopen (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return dlopen (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_dl_dlopen=yes cannam@126: else cannam@126: ac_cv_lib_dl_dlopen=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 cannam@126: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } cannam@126: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : cannam@126: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl cannam@126: else cannam@126: cannam@126: lt_cv_dlopen=dyld cannam@126: lt_cv_dlopen_libs= cannam@126: lt_cv_dlopen_self=yes cannam@126: cannam@126: fi cannam@126: cannam@126: ;; cannam@126: cannam@126: tpf*) cannam@126: # Don't try to run any link tests for TPF. We know it's impossible cannam@126: # because TPF is a cross-compiler, and we know how we open DSOs. cannam@126: lt_cv_dlopen=dlopen cannam@126: lt_cv_dlopen_libs= cannam@126: lt_cv_dlopen_self=no cannam@126: ;; cannam@126: cannam@126: *) cannam@126: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" cannam@126: if test "x$ac_cv_func_shl_load" = xyes; then : cannam@126: lt_cv_dlopen=shl_load cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 cannam@126: $as_echo_n "checking for shl_load in -ldld... " >&6; } cannam@126: if ${ac_cv_lib_dld_shl_load+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-ldld $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char shl_load (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return shl_load (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_dld_shl_load=yes cannam@126: else cannam@126: ac_cv_lib_dld_shl_load=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 cannam@126: $as_echo "$ac_cv_lib_dld_shl_load" >&6; } cannam@126: if test "x$ac_cv_lib_dld_shl_load" = xyes; then : cannam@126: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld cannam@126: else cannam@126: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" cannam@126: if test "x$ac_cv_func_dlopen" = xyes; then : cannam@126: lt_cv_dlopen=dlopen cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 cannam@126: $as_echo_n "checking for dlopen in -ldl... " >&6; } cannam@126: if ${ac_cv_lib_dl_dlopen+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-ldl $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char dlopen (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return dlopen (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_dl_dlopen=yes cannam@126: else cannam@126: ac_cv_lib_dl_dlopen=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 cannam@126: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } cannam@126: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : cannam@126: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 cannam@126: $as_echo_n "checking for dlopen in -lsvld... " >&6; } cannam@126: if ${ac_cv_lib_svld_dlopen+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-lsvld $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char dlopen (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return dlopen (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_svld_dlopen=yes cannam@126: else cannam@126: ac_cv_lib_svld_dlopen=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 cannam@126: $as_echo "$ac_cv_lib_svld_dlopen" >&6; } cannam@126: if test "x$ac_cv_lib_svld_dlopen" = xyes; then : cannam@126: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 cannam@126: $as_echo_n "checking for dld_link in -ldld... " >&6; } cannam@126: if ${ac_cv_lib_dld_dld_link+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-ldld $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char dld_link (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return dld_link (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_dld_dld_link=yes cannam@126: else cannam@126: ac_cv_lib_dld_dld_link=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 cannam@126: $as_echo "$ac_cv_lib_dld_dld_link" >&6; } cannam@126: if test "x$ac_cv_lib_dld_dld_link" = xyes; then : cannam@126: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: ;; cannam@126: esac cannam@126: cannam@126: if test no = "$lt_cv_dlopen"; then cannam@126: enable_dlopen=no cannam@126: else cannam@126: enable_dlopen=yes cannam@126: fi cannam@126: cannam@126: case $lt_cv_dlopen in cannam@126: dlopen) cannam@126: save_CPPFLAGS=$CPPFLAGS cannam@126: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@126: cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@126: cannam@126: save_LIBS=$LIBS cannam@126: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 cannam@126: $as_echo_n "checking whether a program can dlopen itself... " >&6; } cannam@126: if ${lt_cv_dlopen_self+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test yes = "$cross_compiling"; then : cannam@126: lt_cv_dlopen_self=cross cannam@126: else cannam@126: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@126: lt_status=$lt_dlunknown cannam@126: cat > conftest.$ac_ext <<_LT_EOF cannam@126: #line $LINENO "configure" cannam@126: #include "confdefs.h" cannam@126: cannam@126: #if HAVE_DLFCN_H cannam@126: #include cannam@126: #endif cannam@126: cannam@126: #include cannam@126: cannam@126: #ifdef RTLD_GLOBAL cannam@126: # define LT_DLGLOBAL RTLD_GLOBAL cannam@126: #else cannam@126: # ifdef DL_GLOBAL cannam@126: # define LT_DLGLOBAL DL_GLOBAL cannam@126: # else cannam@126: # define LT_DLGLOBAL 0 cannam@126: # endif cannam@126: #endif cannam@126: cannam@126: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@126: find out it does not work in some platform. */ cannam@126: #ifndef LT_DLLAZY_OR_NOW cannam@126: # ifdef RTLD_LAZY cannam@126: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@126: # else cannam@126: # ifdef DL_LAZY cannam@126: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@126: # else cannam@126: # ifdef RTLD_NOW cannam@126: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@126: # else cannam@126: # ifdef DL_NOW cannam@126: # define LT_DLLAZY_OR_NOW DL_NOW cannam@126: # else cannam@126: # define LT_DLLAZY_OR_NOW 0 cannam@126: # endif cannam@126: # endif cannam@126: # endif cannam@126: # endif cannam@126: #endif cannam@126: cannam@126: /* When -fvisibility=hidden is used, assume the code has been annotated cannam@126: correspondingly for the symbols needed. */ cannam@126: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) cannam@126: int fnord () __attribute__((visibility("default"))); cannam@126: #endif cannam@126: cannam@126: int fnord () { return 42; } cannam@126: int main () cannam@126: { cannam@126: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@126: int status = $lt_dlunknown; cannam@126: cannam@126: if (self) cannam@126: { cannam@126: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@126: else cannam@126: { cannam@126: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@126: else puts (dlerror ()); cannam@126: } cannam@126: /* dlclose (self); */ cannam@126: } cannam@126: else cannam@126: puts (dlerror ()); cannam@126: cannam@126: return status; cannam@126: } cannam@126: _LT_EOF cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@126: (eval $ac_link) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then cannam@126: (./conftest; exit; ) >&5 2>/dev/null cannam@126: lt_status=$? cannam@126: case x$lt_status in cannam@126: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@126: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@126: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; cannam@126: esac cannam@126: else : cannam@126: # compilation failed cannam@126: lt_cv_dlopen_self=no cannam@126: fi cannam@126: fi cannam@126: rm -fr conftest* cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 cannam@126: $as_echo "$lt_cv_dlopen_self" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_dlopen_self"; then cannam@126: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 cannam@126: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } cannam@126: if ${lt_cv_dlopen_self_static+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test yes = "$cross_compiling"; then : cannam@126: lt_cv_dlopen_self_static=cross cannam@126: else cannam@126: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@126: lt_status=$lt_dlunknown cannam@126: cat > conftest.$ac_ext <<_LT_EOF cannam@126: #line $LINENO "configure" cannam@126: #include "confdefs.h" cannam@126: cannam@126: #if HAVE_DLFCN_H cannam@126: #include cannam@126: #endif cannam@126: cannam@126: #include cannam@126: cannam@126: #ifdef RTLD_GLOBAL cannam@126: # define LT_DLGLOBAL RTLD_GLOBAL cannam@126: #else cannam@126: # ifdef DL_GLOBAL cannam@126: # define LT_DLGLOBAL DL_GLOBAL cannam@126: # else cannam@126: # define LT_DLGLOBAL 0 cannam@126: # endif cannam@126: #endif cannam@126: cannam@126: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@126: find out it does not work in some platform. */ cannam@126: #ifndef LT_DLLAZY_OR_NOW cannam@126: # ifdef RTLD_LAZY cannam@126: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@126: # else cannam@126: # ifdef DL_LAZY cannam@126: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@126: # else cannam@126: # ifdef RTLD_NOW cannam@126: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@126: # else cannam@126: # ifdef DL_NOW cannam@126: # define LT_DLLAZY_OR_NOW DL_NOW cannam@126: # else cannam@126: # define LT_DLLAZY_OR_NOW 0 cannam@126: # endif cannam@126: # endif cannam@126: # endif cannam@126: # endif cannam@126: #endif cannam@126: cannam@126: /* When -fvisibility=hidden is used, assume the code has been annotated cannam@126: correspondingly for the symbols needed. */ cannam@126: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) cannam@126: int fnord () __attribute__((visibility("default"))); cannam@126: #endif cannam@126: cannam@126: int fnord () { return 42; } cannam@126: int main () cannam@126: { cannam@126: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@126: int status = $lt_dlunknown; cannam@126: cannam@126: if (self) cannam@126: { cannam@126: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@126: else cannam@126: { cannam@126: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@126: else puts (dlerror ()); cannam@126: } cannam@126: /* dlclose (self); */ cannam@126: } cannam@126: else cannam@126: puts (dlerror ()); cannam@126: cannam@126: return status; cannam@126: } cannam@126: _LT_EOF cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@126: (eval $ac_link) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then cannam@126: (./conftest; exit; ) >&5 2>/dev/null cannam@126: lt_status=$? cannam@126: case x$lt_status in cannam@126: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@126: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@126: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; cannam@126: esac cannam@126: else : cannam@126: # compilation failed cannam@126: lt_cv_dlopen_self_static=no cannam@126: fi cannam@126: fi cannam@126: rm -fr conftest* cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 cannam@126: $as_echo "$lt_cv_dlopen_self_static" >&6; } cannam@126: fi cannam@126: cannam@126: CPPFLAGS=$save_CPPFLAGS cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: LIBS=$save_LIBS cannam@126: ;; cannam@126: esac cannam@126: cannam@126: case $lt_cv_dlopen_self in cannam@126: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@126: *) enable_dlopen_self=unknown ;; cannam@126: esac cannam@126: cannam@126: case $lt_cv_dlopen_self_static in cannam@126: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@126: *) enable_dlopen_self_static=unknown ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: striplib= cannam@126: old_striplib= cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 cannam@126: $as_echo_n "checking whether stripping libraries is possible... " >&6; } cannam@126: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then cannam@126: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@126: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: # FIXME - insert some real tests, host_os isn't really good enough cannam@126: case $host_os in cannam@126: darwin*) cannam@126: if test -n "$STRIP"; then cannam@126: striplib="$STRIP -x" cannam@126: old_striplib="$STRIP -S" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: ;; cannam@126: *) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Report what library types will actually be built cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 cannam@126: $as_echo_n "checking if libtool supports shared libraries... " >&6; } cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 cannam@126: $as_echo "$can_build_shared" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 cannam@126: $as_echo_n "checking whether to build shared libraries... " >&6; } cannam@126: test no = "$can_build_shared" && enable_shared=no cannam@126: cannam@126: # On AIX, shared libraries and static libraries use the same namespace, and cannam@126: # are all built from PIC. cannam@126: case $host_os in cannam@126: aix3*) cannam@126: test yes = "$enable_shared" && enable_static=no cannam@126: if test -n "$RANLIB"; then cannam@126: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@126: postinstall_cmds='$RANLIB $lib' cannam@126: fi cannam@126: ;; cannam@126: cannam@126: aix[4-9]*) cannam@126: if test ia64 != "$host_cpu"; then cannam@126: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in cannam@126: yes,aix,yes) ;; # shared object as lib.so file only cannam@126: yes,svr4,*) ;; # shared object as lib.so archive member only cannam@126: yes,*) enable_static=no ;; # shared object in lib.a archive as well cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 cannam@126: $as_echo "$enable_shared" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 cannam@126: $as_echo_n "checking whether to build static libraries... " >&6; } cannam@126: # Make sure either enable_shared or enable_static is yes. cannam@126: test yes = "$enable_shared" || enable_static=yes cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 cannam@126: $as_echo "$enable_static" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: fi cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: CC=$lt_save_CC cannam@126: cannam@126: if test -n "$CXX" && ( test no != "$CXX" && cannam@126: ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || cannam@126: (test g++ != "$CXX"))); then cannam@126: ac_ext=cpp cannam@126: ac_cpp='$CXXCPP $CPPFLAGS' cannam@126: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 cannam@126: $as_echo_n "checking how to run the C++ preprocessor... " >&6; } cannam@126: if test -z "$CXXCPP"; then cannam@126: if ${ac_cv_prog_CXXCPP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # Double quotes because CXXCPP needs to be expanded cannam@126: for CXXCPP in "$CXX -E" "/lib/cpp" cannam@126: do cannam@126: ac_preproc_ok=false cannam@126: for ac_cxx_preproc_warn_flag in '' yes cannam@126: do cannam@126: # Use a header file that comes with gcc, so configuring glibc cannam@126: # with a fresh cross-compiler works. cannam@126: # Prefer to if __STDC__ is defined, since cannam@126: # exists even on freestanding compilers. cannam@126: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@126: # not just through cpp. "Syntax error" is here to catch this case. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #ifdef __STDC__ cannam@126: # include cannam@126: #else cannam@126: # include cannam@126: #endif cannam@126: Syntax error cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_cpp "$LINENO"; then : cannam@126: cannam@126: else cannam@126: # Broken: fails on valid input. cannam@126: continue cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: # OK, works on sane cases. Now check whether nonexistent headers cannam@126: # can be detected and how. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_cpp "$LINENO"; then : cannam@126: # Broken: success on invalid input. cannam@126: continue cannam@126: else cannam@126: # Passes both tests. cannam@126: ac_preproc_ok=: cannam@126: break cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: done cannam@126: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@126: rm -f conftest.i conftest.err conftest.$ac_ext cannam@126: if $ac_preproc_ok; then : cannam@126: break cannam@126: fi cannam@126: cannam@126: done cannam@126: ac_cv_prog_CXXCPP=$CXXCPP cannam@126: cannam@126: fi cannam@126: CXXCPP=$ac_cv_prog_CXXCPP cannam@126: else cannam@126: ac_cv_prog_CXXCPP=$CXXCPP cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 cannam@126: $as_echo "$CXXCPP" >&6; } cannam@126: ac_preproc_ok=false cannam@126: for ac_cxx_preproc_warn_flag in '' yes cannam@126: do cannam@126: # Use a header file that comes with gcc, so configuring glibc cannam@126: # with a fresh cross-compiler works. cannam@126: # Prefer to if __STDC__ is defined, since cannam@126: # exists even on freestanding compilers. cannam@126: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@126: # not just through cpp. "Syntax error" is here to catch this case. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #ifdef __STDC__ cannam@126: # include cannam@126: #else cannam@126: # include cannam@126: #endif cannam@126: Syntax error cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_cpp "$LINENO"; then : cannam@126: cannam@126: else cannam@126: # Broken: fails on valid input. cannam@126: continue cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: # OK, works on sane cases. Now check whether nonexistent headers cannam@126: # can be detected and how. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_cpp "$LINENO"; then : cannam@126: # Broken: success on invalid input. cannam@126: continue cannam@126: else cannam@126: # Passes both tests. cannam@126: ac_preproc_ok=: cannam@126: break cannam@126: fi cannam@126: rm -f conftest.err conftest.i conftest.$ac_ext cannam@126: cannam@126: done cannam@126: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@126: rm -f conftest.i conftest.err conftest.$ac_ext cannam@126: if $ac_preproc_ok; then : cannam@126: cannam@126: else cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: fi cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: else cannam@126: _lt_caught_CXX_error=yes cannam@126: fi cannam@126: cannam@126: ac_ext=cpp cannam@126: ac_cpp='$CXXCPP $CPPFLAGS' cannam@126: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@126: cannam@126: archive_cmds_need_lc_CXX=no cannam@126: allow_undefined_flag_CXX= cannam@126: always_export_symbols_CXX=no cannam@126: archive_expsym_cmds_CXX= cannam@126: compiler_needs_object_CXX=no cannam@126: export_dynamic_flag_spec_CXX= cannam@126: hardcode_direct_CXX=no cannam@126: hardcode_direct_absolute_CXX=no cannam@126: hardcode_libdir_flag_spec_CXX= cannam@126: hardcode_libdir_separator_CXX= cannam@126: hardcode_minus_L_CXX=no cannam@126: hardcode_shlibpath_var_CXX=unsupported cannam@126: hardcode_automatic_CXX=no cannam@126: inherit_rpath_CXX=no cannam@126: module_cmds_CXX= cannam@126: module_expsym_cmds_CXX= cannam@126: link_all_deplibs_CXX=unknown cannam@126: old_archive_cmds_CXX=$old_archive_cmds cannam@126: reload_flag_CXX=$reload_flag cannam@126: reload_cmds_CXX=$reload_cmds cannam@126: no_undefined_flag_CXX= cannam@126: whole_archive_flag_spec_CXX= cannam@126: enable_shared_with_static_runtimes_CXX=no cannam@126: cannam@126: # Source file extension for C++ test sources. cannam@126: ac_ext=cpp cannam@126: cannam@126: # Object file extension for compiled C++ test sources. cannam@126: objext=o cannam@126: objext_CXX=$objext cannam@126: cannam@126: # No sense in running all these tests if we already determined that cannam@126: # the CXX compiler isn't working. Some variables (like enable_shared) cannam@126: # are currently assumed to apply to all compilers on this platform, cannam@126: # and will be corrupted by setting them based on a non-working compiler. cannam@126: if test yes != "$_lt_caught_CXX_error"; then cannam@126: # Code to be used in simple compile tests cannam@126: lt_simple_compile_test_code="int some_variable = 0;" cannam@126: cannam@126: # Code to be used in simple link tests cannam@126: lt_simple_link_test_code='int main(int, char *[]) { return(0); }' cannam@126: cannam@126: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # If no C compiler was specified, use CC. cannam@126: LTCC=${LTCC-"$CC"} cannam@126: cannam@126: # If no C compiler flags were specified, use CFLAGS. cannam@126: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: compiler=$CC cannam@126: cannam@126: cannam@126: # save warnings/boilerplate of simple test code cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@126: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_compiler_boilerplate=`cat conftest.err` cannam@126: $RM conftest* cannam@126: cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@126: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_linker_boilerplate=`cat conftest.err` cannam@126: $RM -r conftest* cannam@126: cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: lt_save_CC=$CC cannam@126: lt_save_CFLAGS=$CFLAGS cannam@126: lt_save_LD=$LD cannam@126: lt_save_GCC=$GCC cannam@126: GCC=$GXX cannam@126: lt_save_with_gnu_ld=$with_gnu_ld cannam@126: lt_save_path_LD=$lt_cv_path_LD cannam@126: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then cannam@126: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx cannam@126: else cannam@126: $as_unset lt_cv_prog_gnu_ld cannam@126: fi cannam@126: if test -n "${lt_cv_path_LDCXX+set}"; then cannam@126: lt_cv_path_LD=$lt_cv_path_LDCXX cannam@126: else cannam@126: $as_unset lt_cv_path_LD cannam@126: fi cannam@126: test -z "${LDCXX+set}" || LD=$LDCXX cannam@126: CC=${CXX-"c++"} cannam@126: CFLAGS=$CXXFLAGS cannam@126: compiler=$CC cannam@126: compiler_CXX=$CC cannam@126: func_cc_basename $compiler cannam@126: cc_basename=$func_cc_basename_result cannam@126: cannam@126: cannam@126: if test -n "$compiler"; then cannam@126: # We don't want -fno-exception when compiling C++ code, so set the cannam@126: # no_builtin_flag separately cannam@126: if test yes = "$GXX"; then cannam@126: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' cannam@126: else cannam@126: lt_prog_compiler_no_builtin_flag_CXX= cannam@126: fi cannam@126: cannam@126: if test yes = "$GXX"; then cannam@126: # Set up default GNU C++ configuration cannam@126: cannam@126: cannam@126: cannam@126: # Check whether --with-gnu-ld was given. cannam@126: if test "${with_gnu_ld+set}" = set; then : cannam@126: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes cannam@126: else cannam@126: with_gnu_ld=no cannam@126: fi cannam@126: cannam@126: ac_prog=ld cannam@126: if test yes = "$GCC"; then cannam@126: # Check if gcc -print-prog-name=ld gives a path. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 cannam@126: $as_echo_n "checking for ld used by $CC... " >&6; } cannam@126: case $host in cannam@126: *-*-mingw*) cannam@126: # gcc leaves a trailing carriage return, which upsets mingw cannam@126: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@126: *) cannam@126: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@126: esac cannam@126: case $ac_prog in cannam@126: # Accept absolute paths. cannam@126: [\\/]* | ?:[\\/]*) cannam@126: re_direlt='/[^/][^/]*/\.\./' cannam@126: # Canonicalize the pathname of ld cannam@126: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` cannam@126: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do cannam@126: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` cannam@126: done cannam@126: test -z "$LD" && LD=$ac_prog cannam@126: ;; cannam@126: "") cannam@126: # If it fails, then pretend we aren't using GCC. cannam@126: ac_prog=ld cannam@126: ;; cannam@126: *) cannam@126: # If it is relative, then search for the first ld in PATH. cannam@126: with_gnu_ld=unknown cannam@126: ;; cannam@126: esac cannam@126: elif test yes = "$with_gnu_ld"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 cannam@126: $as_echo_n "checking for GNU ld... " >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 cannam@126: $as_echo_n "checking for non-GNU ld... " >&6; } cannam@126: fi cannam@126: if ${lt_cv_path_LD+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -z "$LD"; then cannam@126: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@126: for ac_dir in $PATH; do cannam@126: IFS=$lt_save_ifs cannam@126: test -z "$ac_dir" && ac_dir=. cannam@126: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@126: lt_cv_path_LD=$ac_dir/$ac_prog cannam@126: # Check to see if the program is GNU ld. I'd rather use --version, cannam@126: # but apparently some variants of GNU ld only accept -v. cannam@126: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@126: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@126: $as_echo "$LD" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 cannam@126: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } cannam@126: if ${lt_cv_prog_gnu_ld+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # I'd rather use --version here, but apparently some GNU lds only accept -v. cannam@126: case `$LD -v 2>&1 &5 cannam@126: $as_echo "$lt_cv_prog_gnu_ld" >&6; } cannam@126: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Check if GNU C++ uses GNU ld as the underlying linker, since the cannam@126: # archiving commands below assume that GNU ld is being used. cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-dynamic' cannam@126: cannam@126: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@126: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to cannam@126: # investigate it a little bit more. (MM) cannam@126: wlarc='$wl' cannam@126: cannam@126: # ancient GNU ld didn't support --whole-archive et. al. cannam@126: if eval "`$CC -print-prog-name=ld` --help 2>&1" | cannam@126: $GREP 'no-whole-archive' > /dev/null; then cannam@126: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' cannam@126: else cannam@126: whole_archive_flag_spec_CXX= cannam@126: fi cannam@126: else cannam@126: with_gnu_ld=no cannam@126: wlarc= cannam@126: cannam@126: # A generic and very simple default shared library creation cannam@126: # command for GNU C++ for the case where it uses the native cannam@126: # linker, instead of GNU ld. If possible, this setting should cannam@126: # overridden to take advantage of the native linker features on cannam@126: # the platform it is being used on. cannam@126: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@126: fi cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' cannam@126: cannam@126: else cannam@126: GXX=no cannam@126: with_gnu_ld=no cannam@126: wlarc= cannam@126: fi cannam@126: cannam@126: # PORTME: fill in a description of your system's C++ link characteristics cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@126: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } cannam@126: ld_shlibs_CXX=yes cannam@126: case $host_os in cannam@126: aix3*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: aix[4-9]*) cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # On IA64, the linker does run time linking by default, so we don't cannam@126: # have to do anything special. cannam@126: aix_use_runtimelinking=no cannam@126: exp_sym_flag='-Bexport' cannam@126: no_entry_flag= cannam@126: else cannam@126: aix_use_runtimelinking=no cannam@126: cannam@126: # Test if we are trying to use run time linking or normal cannam@126: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@126: # have runtime linking enabled, and use it for executables. cannam@126: # For shared libraries, we enable/disable runtime linking cannam@126: # depending on the kind of the shared library created - cannam@126: # when "with_aix_soname,aix_use_runtimelinking" is: cannam@126: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables cannam@126: # "aix,yes" lib.so shared, rtl:yes, for executables cannam@126: # lib.a static archive cannam@126: # "both,no" lib.so.V(shr.o) shared, rtl:yes cannam@126: # lib.a(lib.so.V) shared, rtl:no, for executables cannam@126: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@126: # lib.a(lib.so.V) shared, rtl:no cannam@126: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@126: # lib.a static archive cannam@126: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) cannam@126: for ld_flag in $LDFLAGS; do cannam@126: case $ld_flag in cannam@126: *-brtl*) cannam@126: aix_use_runtimelinking=yes cannam@126: break cannam@126: ;; cannam@126: esac cannam@126: done cannam@126: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@126: # With aix-soname=svr4, we create the lib.so.V shared archives only, cannam@126: # so we don't have lib.a shared libs to link our executables. cannam@126: # We have to force runtime linking in this case. cannam@126: aix_use_runtimelinking=yes cannam@126: LDFLAGS="$LDFLAGS -Wl,-brtl" cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: exp_sym_flag='-bexport' cannam@126: no_entry_flag='-bnoentry' cannam@126: fi cannam@126: cannam@126: # When large executables or shared objects are built, AIX ld can cannam@126: # have problems creating the table of contents. If linking a library cannam@126: # or program results in "error TOC overflow" add -mminimal-toc to cannam@126: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@126: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@126: cannam@126: archive_cmds_CXX='' cannam@126: hardcode_direct_CXX=yes cannam@126: hardcode_direct_absolute_CXX=yes cannam@126: hardcode_libdir_separator_CXX=':' cannam@126: link_all_deplibs_CXX=yes cannam@126: file_list_spec_CXX='$wl-f,' cannam@126: case $with_aix_soname,$aix_use_runtimelinking in cannam@126: aix,*) ;; # no import file cannam@126: svr4,* | *,yes) # use import file cannam@126: # The Import File defines what to hardcode. cannam@126: hardcode_direct_CXX=no cannam@126: hardcode_direct_absolute_CXX=no cannam@126: ;; cannam@126: esac cannam@126: cannam@126: if test yes = "$GXX"; then cannam@126: case $host_os in aix4.[012]|aix4.[012].*) cannam@126: # We only want to do this on AIX 4.2 and lower, the check cannam@126: # below for broken collect2 doesn't work under 4.3+ cannam@126: collect2name=`$CC -print-prog-name=collect2` cannam@126: if test -f "$collect2name" && cannam@126: strings "$collect2name" | $GREP resolve_lib_name >/dev/null cannam@126: then cannam@126: # We have reworked collect2 cannam@126: : cannam@126: else cannam@126: # We have old collect2 cannam@126: hardcode_direct_CXX=unsupported cannam@126: # It fails to find uninstalled libraries when the uninstalled cannam@126: # path is not listed in the libpath. Setting hardcode_minus_L cannam@126: # to unsupported forces relinking cannam@126: hardcode_minus_L_CXX=yes cannam@126: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@126: hardcode_libdir_separator_CXX= cannam@126: fi cannam@126: esac cannam@126: shared_flag='-shared' cannam@126: if test yes = "$aix_use_runtimelinking"; then cannam@126: shared_flag=$shared_flag' $wl-G' cannam@126: fi cannam@126: # Need to ensure runtime linking is disabled for the traditional cannam@126: # shared library, or the linker may eventually find shared libraries cannam@126: # /with/ Import File - we do not want to mix them. cannam@126: shared_flag_aix='-shared' cannam@126: shared_flag_svr4='-shared $wl-G' cannam@126: else cannam@126: # not using gcc cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@126: # chokes on -Wl,-G. The following line is correct: cannam@126: shared_flag='-G' cannam@126: else cannam@126: if test yes = "$aix_use_runtimelinking"; then cannam@126: shared_flag='$wl-G' cannam@126: else cannam@126: shared_flag='$wl-bM:SRE' cannam@126: fi cannam@126: shared_flag_aix='$wl-bM:SRE' cannam@126: shared_flag_svr4='$wl-G' cannam@126: fi cannam@126: fi cannam@126: cannam@126: export_dynamic_flag_spec_CXX='$wl-bexpall' cannam@126: # It seems that -bexpall does not export symbols beginning with cannam@126: # underscore (_), so it is better to generate a list of symbols to cannam@126: # export. cannam@126: always_export_symbols_CXX=yes cannam@126: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@126: # Warning - without using the other runtime loading flags (-brtl), cannam@126: # -berok will link without error, but may produce a broken library. cannam@126: # The "-G" linker flag allows undefined symbols. cannam@126: no_undefined_flag_CXX='-bernotok' cannam@126: # Determine the default libpath from the value encoded in an empty cannam@126: # executable. cannam@126: if test set = "${lt_cv_aix_libpath+set}"; then cannam@126: aix_libpath=$lt_cv_aix_libpath cannam@126: else cannam@126: if ${lt_cv_aix_libpath__CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_link "$LINENO"; then : cannam@126: cannam@126: lt_aix_libpath_sed=' cannam@126: /Import File Strings/,/^$/ { cannam@126: /^0/ { cannam@126: s/^0 *\([^ ]*\) *$/\1/ cannam@126: p cannam@126: } cannam@126: }' cannam@126: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: # Check for a 64-bit object if we didn't find anything. cannam@126: if test -z "$lt_cv_aix_libpath__CXX"; then cannam@126: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: if test -z "$lt_cv_aix_libpath__CXX"; then cannam@126: lt_cv_aix_libpath__CXX=/usr/lib:/lib cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: aix_libpath=$lt_cv_aix_libpath__CXX cannam@126: fi cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" cannam@126: cannam@126: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag cannam@126: else cannam@126: if test ia64 = "$host_cpu"; then cannam@126: hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' cannam@126: allow_undefined_flag_CXX="-z nodefs" cannam@126: archive_expsym_cmds_CXX="\$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" cannam@126: else cannam@126: # Determine the default libpath from the value encoded in an cannam@126: # empty executable. cannam@126: if test set = "${lt_cv_aix_libpath+set}"; then cannam@126: aix_libpath=$lt_cv_aix_libpath cannam@126: else cannam@126: if ${lt_cv_aix_libpath__CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_link "$LINENO"; then : cannam@126: cannam@126: lt_aix_libpath_sed=' cannam@126: /Import File Strings/,/^$/ { cannam@126: /^0/ { cannam@126: s/^0 *\([^ ]*\) *$/\1/ cannam@126: p cannam@126: } cannam@126: }' cannam@126: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: # Check for a 64-bit object if we didn't find anything. cannam@126: if test -z "$lt_cv_aix_libpath__CXX"; then cannam@126: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: if test -z "$lt_cv_aix_libpath__CXX"; then cannam@126: lt_cv_aix_libpath__CXX=/usr/lib:/lib cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: aix_libpath=$lt_cv_aix_libpath__CXX cannam@126: fi cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" cannam@126: # Warning - without using the other run time loading flags, cannam@126: # -berok will link without error, but may produce a broken library. cannam@126: no_undefined_flag_CXX=' $wl-bernotok' cannam@126: allow_undefined_flag_CXX=' $wl-berok' cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: # We only use this code for GNU lds that support --whole-archive. cannam@126: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' cannam@126: else cannam@126: # Exported symbols can be pulled into shared objects from archives cannam@126: whole_archive_flag_spec_CXX='$convenience' cannam@126: fi cannam@126: archive_cmds_need_lc_CXX=yes cannam@126: archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' cannam@126: # -brtl affects multiple linker settings, -berok does not and is overridden later cannam@126: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' cannam@126: if test svr4 != "$with_aix_soname"; then cannam@126: # This is similar to how AIX traditionally builds its shared cannam@126: # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. cannam@126: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' cannam@126: fi cannam@126: if test aix != "$with_aix_soname"; then cannam@126: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' cannam@126: else cannam@126: # used by -dlpreopen to get the symbols cannam@126: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' cannam@126: fi cannam@126: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' cannam@126: fi cannam@126: fi cannam@126: ;; cannam@126: cannam@126: beos*) cannam@126: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@126: allow_undefined_flag_CXX=unsupported cannam@126: # Joseph Beckenbach says some releases of gcc cannam@126: # support --undefined. This deserves some investigation. FIXME cannam@126: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: else cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: chorus*) cannam@126: case $cc_basename in cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: case $GXX,$cc_basename in cannam@126: ,cl* | no,cl*) cannam@126: # Native MSVC cannam@126: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@126: # no search path for DLLs. cannam@126: hardcode_libdir_flag_spec_CXX=' ' cannam@126: allow_undefined_flag_CXX=unsupported cannam@126: always_export_symbols_CXX=yes cannam@126: file_list_spec_CXX='@' cannam@126: # Tell ltmain to make .lib files, not .a files. cannam@126: libext=lib cannam@126: # Tell ltmain to make .dll files, not .so files. cannam@126: shrext_cmds=.dll cannam@126: # FIXME: Setting linknames here is a bad hack. cannam@126: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' cannam@126: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@126: cp "$export_symbols" "$output_objdir/$soname.def"; cannam@126: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; cannam@126: else cannam@126: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; cannam@126: fi~ cannam@126: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ cannam@126: linknames=' cannam@126: # The linker will not automatically build a static lib if we build a DLL. cannam@126: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' cannam@126: enable_shared_with_static_runtimes_CXX=yes cannam@126: # Don't use ranlib cannam@126: old_postinstall_cmds_CXX='chmod 644 $oldlib' cannam@126: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ cannam@126: lt_tool_outputfile="@TOOL_OUTPUT@"~ cannam@126: case $lt_outputfile in cannam@126: *.exe|*.EXE) ;; cannam@126: *) cannam@126: lt_outputfile=$lt_outputfile.exe cannam@126: lt_tool_outputfile=$lt_tool_outputfile.exe cannam@126: ;; cannam@126: esac~ cannam@126: func_to_tool_file "$lt_outputfile"~ cannam@126: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then cannam@126: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; cannam@126: $RM "$lt_outputfile.manifest"; cannam@126: fi' cannam@126: ;; cannam@126: *) cannam@126: # g++ cannam@126: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, cannam@126: # as there is no search path for DLLs. cannam@126: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-all-symbols' cannam@126: allow_undefined_flag_CXX=unsupported cannam@126: always_export_symbols_CXX=no cannam@126: enable_shared_with_static_runtimes_CXX=yes cannam@126: cannam@126: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then cannam@126: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@126: # If the export-symbols file already is a .def file, use it as cannam@126: # is; otherwise, prepend EXPORTS... cannam@126: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@126: cp $export_symbols $output_objdir/$soname.def; cannam@126: else cannam@126: echo EXPORTS > $output_objdir/$soname.def; cannam@126: cat $export_symbols >> $output_objdir/$soname.def; cannam@126: fi~ cannam@126: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@126: else cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: darwin* | rhapsody*) cannam@126: cannam@126: cannam@126: archive_cmds_need_lc_CXX=no cannam@126: hardcode_direct_CXX=no cannam@126: hardcode_automatic_CXX=yes cannam@126: hardcode_shlibpath_var_CXX=unsupported cannam@126: if test yes = "$lt_cv_ld_force_load"; then cannam@126: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' cannam@126: cannam@126: else cannam@126: whole_archive_flag_spec_CXX='' cannam@126: fi cannam@126: link_all_deplibs_CXX=yes cannam@126: allow_undefined_flag_CXX=$_lt_dar_allow_undefined cannam@126: case $cc_basename in cannam@126: ifort*|nagfor*) _lt_dar_can_shared=yes ;; cannam@126: *) _lt_dar_can_shared=$GCC ;; cannam@126: esac cannam@126: if test yes = "$_lt_dar_can_shared"; then cannam@126: output_verbose_link_cmd=func_echo_all cannam@126: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" cannam@126: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" cannam@126: archive_expsym_cmds_CXX="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" cannam@126: module_expsym_cmds_CXX="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" cannam@126: if test yes != "$lt_cv_apple_cc_single_mod"; then cannam@126: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" cannam@126: archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" cannam@126: fi cannam@126: cannam@126: else cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@126: hardcode_minus_L_CXX=yes cannam@126: allow_undefined_flag_CXX=unsupported cannam@126: shrext_cmds=.dll cannam@126: archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@126: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@126: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@126: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@126: prefix_cmds="$SED"~ cannam@126: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@126: prefix_cmds="$prefix_cmds -e 1d"; cannam@126: fi~ cannam@126: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@126: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@126: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@126: emximp -o $lib $output_objdir/$libname.def' cannam@126: old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@126: enable_shared_with_static_runtimes_CXX=yes cannam@126: ;; cannam@126: cannam@126: dgux*) cannam@126: case $cc_basename in cannam@126: ec++*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: ghcx*) cannam@126: # Green Hills C++ Compiler cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: freebsd2.*) cannam@126: # C++ shared libraries reported to be fairly broken before cannam@126: # switch to ELF cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cannam@126: freebsd-elf*) cannam@126: archive_cmds_need_lc_CXX=no cannam@126: ;; cannam@126: cannam@126: freebsd* | dragonfly*) cannam@126: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF cannam@126: # conventions cannam@126: ld_shlibs_CXX=yes cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: link_all_deplibs_CXX=yes cannam@126: ;; cannam@126: cannam@126: hpux9*) cannam@126: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: export_dynamic_flag_spec_CXX='$wl-E' cannam@126: hardcode_direct_CXX=yes cannam@126: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@126: # but as the default cannam@126: # location of the library. cannam@126: cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: aCC*) cannam@126: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: # cannam@126: # There doesn't appear to be a way to prevent this compiler from cannam@126: # explicitly linking system object files so we need to strip them cannam@126: # from the output so that they don't get included in the library cannam@126: # dependencies. cannam@126: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' cannam@126: ;; cannam@126: *) cannam@126: if test yes = "$GXX"; then cannam@126: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' cannam@126: else cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: hpux10*|hpux11*) cannam@126: if test no = "$with_gnu_ld"; then cannam@126: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: cannam@126: case $host_cpu in cannam@126: hppa*64*|ia64*) cannam@126: ;; cannam@126: *) cannam@126: export_dynamic_flag_spec_CXX='$wl-E' cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: case $host_cpu in cannam@126: hppa*64*|ia64*) cannam@126: hardcode_direct_CXX=no cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: ;; cannam@126: *) cannam@126: hardcode_direct_CXX=yes cannam@126: hardcode_direct_absolute_CXX=yes cannam@126: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@126: # but as the default cannam@126: # location of the library. cannam@126: ;; cannam@126: esac cannam@126: cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: aCC*) cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: ia64*) cannam@126: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: *) cannam@126: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: # cannam@126: # There doesn't appear to be a way to prevent this compiler from cannam@126: # explicitly linking system object files so we need to strip them cannam@126: # from the output so that they don't get included in the library cannam@126: # dependencies. cannam@126: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' cannam@126: ;; cannam@126: *) cannam@126: if test yes = "$GXX"; then cannam@126: if test no = "$with_gnu_ld"; then cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: ia64*) cannam@126: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: *) cannam@126: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: else cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: hardcode_direct_CXX=no cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl-E' cannam@126: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. cannam@126: # Instead, shared libraries are loaded at an image base (0x10000000 by cannam@126: # default) and relocated if they conflict, which is a slow very memory cannam@126: # consuming and fragmenting process. To avoid this, we pick a random, cannam@126: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link cannam@126: # time. Moving up from 0x10000000 also allows more sbrk(2) space. cannam@126: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' cannam@126: archive_expsym_cmds_CXX='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' cannam@126: ;; cannam@126: irix5* | irix6*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: # SGI C++ cannam@126: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: cannam@126: # Archives containing C++ object files must be created using cannam@126: # "CC -ar", where "CC" is the IRIX C++ compiler. This is cannam@126: # necessary to make sure instantiated templates are included cannam@126: # in the archive. cannam@126: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' cannam@126: ;; cannam@126: *) cannam@126: if test yes = "$GXX"; then cannam@126: if test no = "$with_gnu_ld"; then cannam@126: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: else cannam@126: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' cannam@126: fi cannam@126: fi cannam@126: link_all_deplibs_CXX=yes cannam@126: ;; cannam@126: esac cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: inherit_rpath_CXX=yes cannam@126: ;; cannam@126: cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: case $cc_basename in cannam@126: KCC*) cannam@126: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@126: cannam@126: # KCC will only create a shared library if the output file cannam@126: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@126: # to its proper name (with version) after linking. cannam@126: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@126: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: # cannam@126: # There doesn't appear to be a way to prevent this compiler from cannam@126: # explicitly linking system object files so we need to strip them cannam@126: # from the output so that they don't get included in the library cannam@126: # dependencies. cannam@126: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-dynamic' cannam@126: cannam@126: # Archives containing C++ object files must be created using cannam@126: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@126: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' cannam@126: ;; cannam@126: icpc* | ecpc* ) cannam@126: # Intel C++ cannam@126: with_gnu_ld=yes cannam@126: # version 8.0 and above of icpc choke on multiply defined symbols cannam@126: # if we add $predep_objects and $postdep_objects, however 7.1 and cannam@126: # earlier do not add the objects themselves. cannam@126: case `$CC -V 2>&1` in cannam@126: *"Version 7."*) cannam@126: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: ;; cannam@126: *) # Version 8.0 or newer cannam@126: tmp_idyn= cannam@126: case $host_cpu in cannam@126: ia64*) tmp_idyn=' -i_dynamic';; cannam@126: esac cannam@126: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: ;; cannam@126: esac cannam@126: archive_cmds_need_lc_CXX=no cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-dynamic' cannam@126: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' cannam@126: ;; cannam@126: pgCC* | pgcpp*) cannam@126: # Portland Group C++ compiler cannam@126: case `$CC -V` in cannam@126: *pgCC\ [1-5].* | *pgcpp\ [1-5].*) cannam@126: prelink_cmds_CXX='tpldir=Template.dir~ cannam@126: rm -rf $tpldir~ cannam@126: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ cannam@126: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' cannam@126: old_archive_cmds_CXX='tpldir=Template.dir~ cannam@126: rm -rf $tpldir~ cannam@126: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ cannam@126: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ cannam@126: $RANLIB $oldlib' cannam@126: archive_cmds_CXX='tpldir=Template.dir~ cannam@126: rm -rf $tpldir~ cannam@126: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ cannam@126: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='tpldir=Template.dir~ cannam@126: rm -rf $tpldir~ cannam@126: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ cannam@126: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: ;; cannam@126: *) # Version 6 and above use weak symbols cannam@126: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-dynamic' cannam@126: whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: ;; cannam@126: cxx*) cannam@126: # Compaq C++ cannam@126: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' cannam@126: cannam@126: runpath_var=LD_RUN_PATH cannam@126: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: # cannam@126: # There doesn't appear to be a way to prevent this compiler from cannam@126: # explicitly linking system object files so we need to strip them cannam@126: # from the output so that they don't get included in the library cannam@126: # dependencies. cannam@126: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' cannam@126: ;; cannam@126: xl* | mpixl* | bgxl*) cannam@126: # IBM XL 8.0 on PPC, with GNU ld cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' cannam@126: export_dynamic_flag_spec_CXX='$wl--export-dynamic' cannam@126: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@126: if test yes = "$supports_anon_versioning"; then cannam@126: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cannam@126: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@126: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@126: $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' cannam@126: fi cannam@126: ;; cannam@126: *) cannam@126: case `$CC -V 2>&1 | sed 5q` in cannam@126: *Sun\ C*) cannam@126: # Sun C++ 5.9 cannam@126: no_undefined_flag_CXX=' -zdefs' cannam@126: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' cannam@126: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@126: whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' cannam@126: compiler_needs_object_CXX=yes cannam@126: cannam@126: # Not sure whether something based on cannam@126: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 cannam@126: # would be better. cannam@126: output_verbose_link_cmd='func_echo_all' cannam@126: cannam@126: # Archives containing C++ object files must be created using cannam@126: # "CC -xar", where "CC" is the Sun C++ compiler. This is cannam@126: # necessary to make sure instantiated templates are included cannam@126: # in the archive. cannam@126: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: lynxos*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cannam@126: m88k*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cannam@126: mvs*) cannam@126: case $cc_basename in cannam@126: cxx*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: netbsd*) cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@126: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' cannam@126: wlarc= cannam@126: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@126: hardcode_direct_CXX=yes cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: fi cannam@126: # Workaround some broken pre-1.5 toolchains cannam@126: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: ld_shlibs_CXX=yes cannam@126: ;; cannam@126: cannam@126: openbsd* | bitrig*) cannam@126: if test -f /usr/libexec/ld.so; then cannam@126: hardcode_direct_CXX=yes cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: hardcode_direct_absolute_CXX=yes cannam@126: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' cannam@126: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then cannam@126: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' cannam@126: export_dynamic_flag_spec_CXX='$wl-E' cannam@126: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' cannam@126: fi cannam@126: output_verbose_link_cmd=func_echo_all cannam@126: else cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: cannam@126: osf3* | osf4* | osf5*) cannam@126: case $cc_basename in cannam@126: KCC*) cannam@126: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@126: cannam@126: # KCC will only create a shared library if the output file cannam@126: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@126: # to its proper name (with version) after linking. cannam@126: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: cannam@126: # Archives containing C++ object files must be created using cannam@126: # the KAI C++ compiler. cannam@126: case $host in cannam@126: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; cannam@126: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; cannam@126: esac cannam@126: ;; cannam@126: RCC*) cannam@126: # Rational C++ 2.4.1 cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cxx*) cannam@126: case $host in cannam@126: osf3*) cannam@126: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' cannam@126: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' cannam@126: ;; cannam@126: *) cannam@126: allow_undefined_flag_CXX=' -expect_unresolved \*' cannam@126: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' cannam@126: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ cannam@126: echo "-hidden">> $lib.exp~ cannam@126: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ cannam@126: $RM $lib.exp' cannam@126: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: hardcode_libdir_separator_CXX=: cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: # cannam@126: # There doesn't appear to be a way to prevent this compiler from cannam@126: # explicitly linking system object files so we need to strip them cannam@126: # from the output so that they don't get included in the library cannam@126: # dependencies. cannam@126: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' cannam@126: ;; cannam@126: *) cannam@126: if test yes,no = "$GXX,$with_gnu_ld"; then cannam@126: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' cannam@126: case $host in cannam@126: osf3*) cannam@126: archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: ;; cannam@126: *) cannam@126: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' cannam@126: hardcode_libdir_separator_CXX=: cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' cannam@126: cannam@126: else cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: psos*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: # Sun C++ 4.x cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: lcc*) cannam@126: # Lucid cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: case $cc_basename in cannam@126: CC* | sunCC*) cannam@126: # Sun C++ 4.2, 5.x and Centerline C++ cannam@126: archive_cmds_need_lc_CXX=yes cannam@126: no_undefined_flag_CXX=' -zdefs' cannam@126: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@126: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: case $host_os in cannam@126: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@126: *) cannam@126: # The compiler driver will combine and reorder linker options, cannam@126: # but understands '-z linker_flag'. cannam@126: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@126: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' cannam@126: ;; cannam@126: esac cannam@126: link_all_deplibs_CXX=yes cannam@126: cannam@126: output_verbose_link_cmd='func_echo_all' cannam@126: cannam@126: # Archives containing C++ object files must be created using cannam@126: # "CC -xar", where "CC" is the Sun C++ compiler. This is cannam@126: # necessary to make sure instantiated templates are included cannam@126: # in the archive. cannam@126: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' cannam@126: ;; cannam@126: gcx*) cannam@126: # Green Hills C++ Compiler cannam@126: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' cannam@126: cannam@126: # The C++ compiler must be used to create the archive. cannam@126: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' cannam@126: ;; cannam@126: *) cannam@126: # GNU C++ compiler with Solaris linker cannam@126: if test yes,no = "$GXX,$with_gnu_ld"; then cannam@126: no_undefined_flag_CXX=' $wl-z ${wl}defs' cannam@126: if $CC --version | $GREP -v '^2\.7' > /dev/null; then cannam@126: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' cannam@126: else cannam@126: # g++ 2.7 appears to require '-G' NOT '-shared' on this cannam@126: # platform. cannam@126: archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' cannam@126: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@126: $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' cannam@126: cannam@126: # Commands to make compiler produce verbose output that lists cannam@126: # what "hidden" libraries, object files and flags are used when cannam@126: # linking a shared library. cannam@126: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' cannam@126: fi cannam@126: cannam@126: hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' cannam@126: case $host_os in cannam@126: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@126: *) cannam@126: whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) cannam@126: no_undefined_flag_CXX='$wl-z,text' cannam@126: archive_cmds_need_lc_CXX=no cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: runpath_var='LD_RUN_PATH' cannam@126: cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: *) cannam@126: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6*) cannam@126: # Note: We CANNOT use -z defs as we might desire, because we do not cannam@126: # link with -lc, and that would cause any symbols used from libc to cannam@126: # always be unresolved, which means just about no library would cannam@126: # ever link correctly. If we're not using GNU ld we use -z text cannam@126: # though, which does catch some bad symbols but isn't as heavy-handed cannam@126: # as -z defs. cannam@126: no_undefined_flag_CXX='$wl-z,text' cannam@126: allow_undefined_flag_CXX='$wl-z,nodefs' cannam@126: archive_cmds_need_lc_CXX=no cannam@126: hardcode_shlibpath_var_CXX=no cannam@126: hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' cannam@126: hardcode_libdir_separator_CXX=':' cannam@126: link_all_deplibs_CXX=yes cannam@126: export_dynamic_flag_spec_CXX='$wl-Bexport' cannam@126: runpath_var='LD_RUN_PATH' cannam@126: cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ cannam@126: '"$old_archive_cmds_CXX" cannam@126: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ cannam@126: '"$reload_cmds_CXX" cannam@126: ;; cannam@126: *) cannam@126: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: tandem*) cannam@126: case $cc_basename in cannam@126: NCC*) cannam@126: # NonStop-UX NCC 3.20 cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: vxworks*) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: cannam@126: *) cannam@126: # FIXME: insert proper C++ library support cannam@126: ld_shlibs_CXX=no cannam@126: ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 cannam@126: $as_echo "$ld_shlibs_CXX" >&6; } cannam@126: test no = "$ld_shlibs_CXX" && can_build_shared=no cannam@126: cannam@126: GCC_CXX=$GXX cannam@126: LD_CXX=$LD cannam@126: cannam@126: ## CAVEAT EMPTOR: cannam@126: ## There is no encapsulation within the following macros, do not change cannam@126: ## the running order or otherwise move them around unless you know exactly cannam@126: ## what you are doing... cannam@126: # Dependencies to place before and after the object being linked: cannam@126: predep_objects_CXX= cannam@126: postdep_objects_CXX= cannam@126: predeps_CXX= cannam@126: postdeps_CXX= cannam@126: compiler_lib_search_path_CXX= cannam@126: cannam@126: cat > conftest.$ac_ext <<_LT_EOF cannam@126: class Foo cannam@126: { cannam@126: public: cannam@126: Foo (void) { a = 0; } cannam@126: private: cannam@126: int a; cannam@126: }; cannam@126: _LT_EOF cannam@126: cannam@126: cannam@126: _lt_libdeps_save_CFLAGS=$CFLAGS cannam@126: case "$CC $CFLAGS " in #( cannam@126: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; cannam@126: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; cannam@126: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; cannam@126: esac cannam@126: cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: # Parse the compiler output and extract the necessary cannam@126: # objects, libraries and library flags. cannam@126: cannam@126: # Sentinel used to keep track of whether or not we are before cannam@126: # the conftest object file. cannam@126: pre_test_object_deps_done=no cannam@126: cannam@126: for p in `eval "$output_verbose_link_cmd"`; do cannam@126: case $prev$p in cannam@126: cannam@126: -L* | -R* | -l*) cannam@126: # Some compilers place space between "-{L,R}" and the path. cannam@126: # Remove the space. cannam@126: if test x-L = "$p" || cannam@126: test x-R = "$p"; then cannam@126: prev=$p cannam@126: continue cannam@126: fi cannam@126: cannam@126: # Expand the sysroot to ease extracting the directories later. cannam@126: if test -z "$prev"; then cannam@126: case $p in cannam@126: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; cannam@126: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; cannam@126: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; cannam@126: esac cannam@126: fi cannam@126: case $p in cannam@126: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; cannam@126: esac cannam@126: if test no = "$pre_test_object_deps_done"; then cannam@126: case $prev in cannam@126: -L | -R) cannam@126: # Internal compiler library paths should come after those cannam@126: # provided the user. The postdeps already come after the cannam@126: # user supplied libs so there is no need to process them. cannam@126: if test -z "$compiler_lib_search_path_CXX"; then cannam@126: compiler_lib_search_path_CXX=$prev$p cannam@126: else cannam@126: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" cannam@126: fi cannam@126: ;; cannam@126: # The "-l" case would never come before the object being cannam@126: # linked, so don't bother handling this case. cannam@126: esac cannam@126: else cannam@126: if test -z "$postdeps_CXX"; then cannam@126: postdeps_CXX=$prev$p cannam@126: else cannam@126: postdeps_CXX="${postdeps_CXX} $prev$p" cannam@126: fi cannam@126: fi cannam@126: prev= cannam@126: ;; cannam@126: cannam@126: *.lto.$objext) ;; # Ignore GCC LTO objects cannam@126: *.$objext) cannam@126: # This assumes that the test object file only shows up cannam@126: # once in the compiler output. cannam@126: if test "$p" = "conftest.$objext"; then cannam@126: pre_test_object_deps_done=yes cannam@126: continue cannam@126: fi cannam@126: cannam@126: if test no = "$pre_test_object_deps_done"; then cannam@126: if test -z "$predep_objects_CXX"; then cannam@126: predep_objects_CXX=$p cannam@126: else cannam@126: predep_objects_CXX="$predep_objects_CXX $p" cannam@126: fi cannam@126: else cannam@126: if test -z "$postdep_objects_CXX"; then cannam@126: postdep_objects_CXX=$p cannam@126: else cannam@126: postdep_objects_CXX="$postdep_objects_CXX $p" cannam@126: fi cannam@126: fi cannam@126: ;; cannam@126: cannam@126: *) ;; # Ignore the rest. cannam@126: cannam@126: esac cannam@126: done cannam@126: cannam@126: # Clean up. cannam@126: rm -f a.out a.exe cannam@126: else cannam@126: echo "libtool.m4: error: problem compiling CXX test program" cannam@126: fi cannam@126: cannam@126: $RM -f confest.$objext cannam@126: CFLAGS=$_lt_libdeps_save_CFLAGS cannam@126: cannam@126: # PORTME: override above test on systems where it is broken cannam@126: case $host_os in cannam@126: interix[3-9]*) cannam@126: # Interix 3.5 installs completely hosed .la files for C++, so rather than cannam@126: # hack all around it, let's just trust "g++" to DTRT. cannam@126: predep_objects_CXX= cannam@126: postdep_objects_CXX= cannam@126: postdeps_CXX= cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: case " $postdeps_CXX " in cannam@126: *" -lc "*) archive_cmds_need_lc_CXX=no ;; cannam@126: esac cannam@126: compiler_lib_search_dirs_CXX= cannam@126: if test -n "${compiler_lib_search_path_CXX}"; then cannam@126: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: lt_prog_compiler_wl_CXX= cannam@126: lt_prog_compiler_pic_CXX= cannam@126: lt_prog_compiler_static_CXX= cannam@126: cannam@126: cannam@126: # C++ specific cases for pic, static, wl, etc. cannam@126: if test yes = "$GXX"; then cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_static_CXX='-static' cannam@126: cannam@126: case $host_os in cannam@126: aix*) cannam@126: # All AIX code is PIC. cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 now supports IA64 processor cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: fi cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # see comment about AmigaOS4 .so support cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: ;; cannam@126: m68k) cannam@126: # FIXME: we need at least 68020 code to build shared libraries, but cannam@126: # adding the '-m68020' flag to GCC prevents building anything better, cannam@126: # like '-m68040'. cannam@126: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@126: # PIC is the default for these OSes. cannam@126: ;; cannam@126: mingw* | cygwin* | os2* | pw32* | cegcc*) cannam@126: # This hack is so that the source file can tell whether it is being cannam@126: # built for inclusion in a dll (and should export symbols for example). cannam@126: # Although the cygwin gcc ignores -fPIC, still need this for old-style cannam@126: # (--disable-auto-import) libraries cannam@126: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' cannam@126: case $host_os in cannam@126: os2*) cannam@126: lt_prog_compiler_static_CXX='$wl-static' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: darwin* | rhapsody*) cannam@126: # PIC is the default on this platform cannam@126: # Common symbols not allowed in MH_DYLIB files cannam@126: lt_prog_compiler_pic_CXX='-fno-common' cannam@126: ;; cannam@126: *djgpp*) cannam@126: # DJGPP does not support shared libraries at all cannam@126: lt_prog_compiler_pic_CXX= cannam@126: ;; cannam@126: haiku*) cannam@126: # PIC is the default for Haiku. cannam@126: # The "-static" flag exists, but is broken. cannam@126: lt_prog_compiler_static_CXX= cannam@126: ;; cannam@126: interix[3-9]*) cannam@126: # Interix 3.x gcc -fpic/-fPIC options generate broken code. cannam@126: # Instead, we relocate shared libraries at runtime. cannam@126: ;; cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: lt_prog_compiler_pic_CXX=-Kconform_pic cannam@126: fi cannam@126: ;; cannam@126: hpux*) cannam@126: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit cannam@126: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag cannam@126: # sets the default TLS model and affects inlining. cannam@126: case $host_cpu in cannam@126: hppa*64*) cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *qnx* | *nto*) cannam@126: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@126: # it will coredump. cannam@126: lt_prog_compiler_pic_CXX='-fPIC -shared' cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: ;; cannam@126: esac cannam@126: else cannam@126: case $host_os in cannam@126: aix[4-9]*) cannam@126: # All AIX code is PIC. cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 now supports IA64 processor cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: else cannam@126: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' cannam@126: fi cannam@126: ;; cannam@126: chorus*) cannam@126: case $cc_basename in cannam@126: cxch68*) cannam@126: # Green Hills C++ Compiler cannam@126: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: mingw* | cygwin* | os2* | pw32* | cegcc*) cannam@126: # This hack is so that the source file can tell whether it is being cannam@126: # built for inclusion in a dll (and should export symbols for example). cannam@126: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' cannam@126: ;; cannam@126: dgux*) cannam@126: case $cc_basename in cannam@126: ec++*) cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: ;; cannam@126: ghcx*) cannam@126: # Green Hills C++ Compiler cannam@126: lt_prog_compiler_pic_CXX='-pic' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: freebsd* | dragonfly*) cannam@126: # FreeBSD uses GNU C++ cannam@126: ;; cannam@126: hpux9* | hpux10* | hpux11*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_static_CXX='$wl-a ${wl}archive' cannam@126: if test ia64 != "$host_cpu"; then cannam@126: lt_prog_compiler_pic_CXX='+Z' cannam@126: fi cannam@126: ;; cannam@126: aCC*) cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_static_CXX='$wl-a ${wl}archive' cannam@126: case $host_cpu in cannam@126: hppa*64*|ia64*) cannam@126: # +Z the default cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic_CXX='+Z' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: interix*) cannam@126: # This is c89, which is MS Visual C++ (no shared libs) cannam@126: # Anyone wants to do a port? cannam@126: ;; cannam@126: irix5* | irix6* | nonstopux*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_static_CXX='-non_shared' cannam@126: # CC pic flag -KPIC is the default. cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: case $cc_basename in cannam@126: KCC*) cannam@126: # KAI C++ Compiler cannam@126: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: ;; cannam@126: ecpc* ) cannam@126: # old Intel C++ for x86_64, which still supported -KPIC. cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: lt_prog_compiler_static_CXX='-static' cannam@126: ;; cannam@126: icpc* ) cannam@126: # Intel C++, used to be incompatible with GCC. cannam@126: # ICC 10 doesn't accept -KPIC any more. cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_pic_CXX='-fPIC' cannam@126: lt_prog_compiler_static_CXX='-static' cannam@126: ;; cannam@126: pgCC* | pgcpp*) cannam@126: # Portland Group C++ compiler cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_pic_CXX='-fpic' cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: ;; cannam@126: cxx*) cannam@126: # Compaq C++ cannam@126: # Make sure the PIC flag is empty. It appears that all Alpha cannam@126: # Linux and Compaq Tru64 Unix objects are PIC. cannam@126: lt_prog_compiler_pic_CXX= cannam@126: lt_prog_compiler_static_CXX='-non_shared' cannam@126: ;; cannam@126: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) cannam@126: # IBM XL 8.0, 9.0 on PPC and BlueGene cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_pic_CXX='-qpic' cannam@126: lt_prog_compiler_static_CXX='-qstaticlink' cannam@126: ;; cannam@126: *) cannam@126: case `$CC -V 2>&1 | sed 5q` in cannam@126: *Sun\ C*) cannam@126: # Sun C++ 5.9 cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: lt_prog_compiler_wl_CXX='-Qoption ld ' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: lynxos*) cannam@126: ;; cannam@126: m88k*) cannam@126: ;; cannam@126: mvs*) cannam@126: case $cc_basename in cannam@126: cxx*) cannam@126: lt_prog_compiler_pic_CXX='-W c,exportall' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: netbsd* | netbsdelf*-gnu) cannam@126: ;; cannam@126: *qnx* | *nto*) cannam@126: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@126: # it will coredump. cannam@126: lt_prog_compiler_pic_CXX='-fPIC -shared' cannam@126: ;; cannam@126: osf3* | osf4* | osf5*) cannam@126: case $cc_basename in cannam@126: KCC*) cannam@126: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@126: ;; cannam@126: RCC*) cannam@126: # Rational C++ 2.4.1 cannam@126: lt_prog_compiler_pic_CXX='-pic' cannam@126: ;; cannam@126: cxx*) cannam@126: # Digital/Compaq C++ cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: # Make sure the PIC flag is empty. It appears that all Alpha cannam@126: # Linux and Compaq Tru64 Unix objects are PIC. cannam@126: lt_prog_compiler_pic_CXX= cannam@126: lt_prog_compiler_static_CXX='-non_shared' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: psos*) cannam@126: ;; cannam@126: solaris*) cannam@126: case $cc_basename in cannam@126: CC* | sunCC*) cannam@126: # Sun C++ 4.2, 5.x and Centerline C++ cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: lt_prog_compiler_wl_CXX='-Qoption ld ' cannam@126: ;; cannam@126: gcx*) cannam@126: # Green Hills C++ Compiler cannam@126: lt_prog_compiler_pic_CXX='-PIC' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: sunos4*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: # Sun C++ 4.x cannam@126: lt_prog_compiler_pic_CXX='-pic' cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: ;; cannam@126: lcc*) cannam@126: # Lucid cannam@126: lt_prog_compiler_pic_CXX='-pic' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) cannam@126: case $cc_basename in cannam@126: CC*) cannam@126: lt_prog_compiler_wl_CXX='-Wl,' cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: lt_prog_compiler_static_CXX='-Bstatic' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: tandem*) cannam@126: case $cc_basename in cannam@126: NCC*) cannam@126: # NonStop-UX NCC 3.20 cannam@126: lt_prog_compiler_pic_CXX='-KPIC' cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: vxworks*) cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_can_build_shared_CXX=no cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: case $host_os in cannam@126: # For platforms that do not support PIC, -DPIC is meaningless: cannam@126: *djgpp*) cannam@126: lt_prog_compiler_pic_CXX= cannam@126: ;; cannam@126: *) cannam@126: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" cannam@126: ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 cannam@126: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } cannam@126: if ${lt_cv_prog_compiler_pic_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } cannam@126: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX cannam@126: cannam@126: # cannam@126: # Check to make sure the PIC flag actually works. cannam@126: # cannam@126: if test -n "$lt_prog_compiler_pic_CXX"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 cannam@126: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } cannam@126: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_pic_works_CXX=no cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: # The option is referenced via a variable to avoid confusing sed. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>conftest.err) cannam@126: ac_status=$? cannam@126: cat conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings other than the usual output. cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_pic_works_CXX=yes cannam@126: fi cannam@126: fi cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then cannam@126: case $lt_prog_compiler_pic_CXX in cannam@126: "" | " "*) ;; cannam@126: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; cannam@126: esac cannam@126: else cannam@126: lt_prog_compiler_pic_CXX= cannam@126: lt_prog_compiler_can_build_shared_CXX=no cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # cannam@126: # Check to make sure the static flag actually works. cannam@126: # cannam@126: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 cannam@126: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } cannam@126: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_static_works_CXX=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" cannam@126: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@126: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@126: # The linker can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: if test -s conftest.err; then cannam@126: # Append any errors to the config.log. cannam@126: cat conftest.err 1>&5 cannam@126: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@126: if diff conftest.exp conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_static_works_CXX=yes cannam@126: fi cannam@126: else cannam@126: lt_cv_prog_compiler_static_works_CXX=yes cannam@126: fi cannam@126: fi cannam@126: $RM -r conftest* cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } cannam@126: cannam@126: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then cannam@126: : cannam@126: else cannam@126: lt_prog_compiler_static_CXX= cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@126: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@126: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_c_o_CXX=no cannam@126: $RM -r conftest 2>/dev/null cannam@126: mkdir conftest cannam@126: cd conftest cannam@126: mkdir out cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>out/conftest.err) cannam@126: ac_status=$? cannam@126: cat out/conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@126: then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@126: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_c_o_CXX=yes cannam@126: fi cannam@126: fi cannam@126: chmod u+w . 2>&5 cannam@126: $RM conftest* cannam@126: # SGI C++ compiler will create directory out/ii_files/ for cannam@126: # template instantiation cannam@126: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@126: $RM out/* && rmdir out cannam@126: cd .. cannam@126: $RM -r conftest cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@126: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@126: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_prog_compiler_c_o_CXX=no cannam@126: $RM -r conftest 2>/dev/null cannam@126: mkdir conftest cannam@126: cd conftest cannam@126: mkdir out cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@126: # Insert the option either (1) after the last *FLAGS variable, or cannam@126: # (2) before a word containing "conftest.", or (3) at the end. cannam@126: # Note that $ac_compile itself does not contain backslashes and begins cannam@126: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@126: lt_compile=`echo "$ac_compile" | $SED \ cannam@126: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@126: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@126: -e 's:$: $lt_compiler_flag:'` cannam@126: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@126: (eval "$lt_compile" 2>out/conftest.err) cannam@126: ac_status=$? cannam@126: cat out/conftest.err >&5 cannam@126: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@126: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@126: then cannam@126: # The compiler can only warn and ignore the option if not recognized cannam@126: # So say no if there are warnings cannam@126: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@126: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@126: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@126: lt_cv_prog_compiler_c_o_CXX=yes cannam@126: fi cannam@126: fi cannam@126: chmod u+w . 2>&5 cannam@126: $RM conftest* cannam@126: # SGI C++ compiler will create directory out/ii_files/ for cannam@126: # template instantiation cannam@126: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@126: $RM out/* && rmdir out cannam@126: cd .. cannam@126: $RM -r conftest cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 cannam@126: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: hard_links=nottested cannam@126: if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then cannam@126: # do not overwrite the value of need_locks provided by the user cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 cannam@126: $as_echo_n "checking if we can lock with hard links... " >&6; } cannam@126: hard_links=yes cannam@126: $RM conftest* cannam@126: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@126: touch conftest.a cannam@126: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@126: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 cannam@126: $as_echo "$hard_links" >&6; } cannam@126: if test no = "$hard_links"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 cannam@126: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} cannam@126: need_locks=warn cannam@126: fi cannam@126: else cannam@126: need_locks=no cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@126: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } cannam@126: cannam@126: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@126: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' cannam@126: case $host_os in cannam@126: aix[4-9]*) cannam@126: # If we're using GNU nm, then we don't want the "-C" option. cannam@126: # -C means demangle to GNU nm, but means don't demangle to AIX nm. cannam@126: # Without the "-l" option, or with the "-B" option, AIX nm treats cannam@126: # weak defined symbols like other global defined symbols, whereas cannam@126: # GNU nm marks them as "W". cannam@126: # While the 'weak' keyword is ignored in the Export File, we need cannam@126: # it in the Import File for the 'aix-soname' feature, so we have cannam@126: # to replace the "-B" option with "-P" for AIX nm. cannam@126: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then cannam@126: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' cannam@126: else cannam@126: export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' cannam@126: fi cannam@126: ;; cannam@126: pw32*) cannam@126: export_symbols_cmds_CXX=$ltdll_cmds cannam@126: ;; cannam@126: cygwin* | mingw* | cegcc*) cannam@126: case $cc_basename in cannam@126: cl*) cannam@126: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' cannam@126: ;; cannam@126: *) cannam@126: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' cannam@126: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: linux* | k*bsd*-gnu | gnu*) cannam@126: link_all_deplibs_CXX=no cannam@126: ;; cannam@126: *) cannam@126: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@126: ;; cannam@126: esac cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 cannam@126: $as_echo "$ld_shlibs_CXX" >&6; } cannam@126: test no = "$ld_shlibs_CXX" && can_build_shared=no cannam@126: cannam@126: with_gnu_ld_CXX=$with_gnu_ld cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # cannam@126: # Do we need to explicitly link libc? cannam@126: # cannam@126: case "x$archive_cmds_need_lc_CXX" in cannam@126: x|xyes) cannam@126: # Assume -lc should be added cannam@126: archive_cmds_need_lc_CXX=yes cannam@126: cannam@126: if test yes,yes = "$GCC,$enable_shared"; then cannam@126: case $archive_cmds_CXX in cannam@126: *'~'*) cannam@126: # FIXME: we may have to deal with multi-command sequences. cannam@126: ;; cannam@126: '$CC '*) cannam@126: # Test whether the compiler implicitly links with -lc since on some cannam@126: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@126: # to ld, don't add -lc before -lgcc. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 cannam@126: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cannam@126: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: $RM conftest* cannam@126: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@126: cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@126: (eval $ac_compile) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } 2>conftest.err; then cannam@126: soname=conftest cannam@126: lib=conftest cannam@126: libobjs=conftest.$ac_objext cannam@126: deplibs= cannam@126: wl=$lt_prog_compiler_wl_CXX cannam@126: pic_flag=$lt_prog_compiler_pic_CXX cannam@126: compiler_flags=-v cannam@126: linker_flags=-v cannam@126: verstring= cannam@126: output_objdir=. cannam@126: libname=conftest cannam@126: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX cannam@126: allow_undefined_flag_CXX= cannam@126: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 cannam@126: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; } cannam@126: then cannam@126: lt_cv_archive_cmds_need_lc_CXX=no cannam@126: else cannam@126: lt_cv_archive_cmds_need_lc_CXX=yes cannam@126: fi cannam@126: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag cannam@126: else cannam@126: cat conftest.err 1>&5 cannam@126: fi cannam@126: $RM conftest* cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 cannam@126: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } cannam@126: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 cannam@126: $as_echo_n "checking dynamic linker characteristics... " >&6; } cannam@126: cannam@126: library_names_spec= cannam@126: libname_spec='lib$name' cannam@126: soname_spec= cannam@126: shrext_cmds=.so cannam@126: postinstall_cmds= cannam@126: postuninstall_cmds= cannam@126: finish_cmds= cannam@126: finish_eval= cannam@126: shlibpath_var= cannam@126: shlibpath_overrides_runpath=unknown cannam@126: version_type=none cannam@126: dynamic_linker="$host_os ld.so" cannam@126: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@126: need_lib_prefix=unknown cannam@126: hardcode_into_libs=no cannam@126: cannam@126: # when you set need_version to no, make sure it does not cause -set_version cannam@126: # flags to be left without arguments cannam@126: need_version=unknown cannam@126: cannam@126: cannam@126: cannam@126: case $host_os in cannam@126: aix3*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname.a' cannam@126: shlibpath_var=LIBPATH cannam@126: cannam@126: # AIX 3 has no versioning support, so we append a major version to the name. cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: cannam@126: aix[4-9]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: hardcode_into_libs=yes cannam@126: if test ia64 = "$host_cpu"; then cannam@126: # AIX 5 supports IA64 cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: else cannam@126: # With GCC up to 2.95.x, collect2 would create an import file cannam@126: # for dependence libraries. The import file would start with cannam@126: # the line '#! .'. This would cause the generated library to cannam@126: # depend on '.', always an invalid library. This was fixed in cannam@126: # development snapshots of GCC prior to 3.0. cannam@126: case $host_os in cannam@126: aix4 | aix4.[01] | aix4.[01].*) cannam@126: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@126: echo ' yes ' cannam@126: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then cannam@126: : cannam@126: else cannam@126: can_build_shared=no cannam@126: fi cannam@126: ;; cannam@126: esac cannam@126: # Using Import Files as archive members, it is possible to support cannam@126: # filename-based versioning of shared library archives on AIX. While cannam@126: # this would work for both with and without runtime linking, it will cannam@126: # prevent static linking of such archives. So we do filename-based cannam@126: # shared library versioning with .so extension only, which is used cannam@126: # when both runtime linking and shared linking is enabled. cannam@126: # Unfortunately, runtime linking may impact performance, so we do cannam@126: # not want this to be the default eventually. Also, we use the cannam@126: # versioned .so libs for executables only if there is the -brtl cannam@126: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. cannam@126: # To allow for filename-based versioning support, we need to create cannam@126: # libNAME.so.V as an archive file, containing: cannam@126: # *) an Import File, referring to the versioned filename of the cannam@126: # archive as well as the shared archive member, telling the cannam@126: # bitwidth (32 or 64) of that shared object, and providing the cannam@126: # list of exported symbols of that shared object, eventually cannam@126: # decorated with the 'weak' keyword cannam@126: # *) the shared object with the F_LOADONLY flag set, to really avoid cannam@126: # it being seen by the linker. cannam@126: # At run time we better use the real file rather than another symlink, cannam@126: # but for link time we create the symlink libNAME.so -> libNAME.so.V cannam@126: cannam@126: case $with_aix_soname,$aix_use_runtimelinking in cannam@126: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct cannam@126: # soname into executable. Probably we can add versioning support to cannam@126: # collect2, so additional links can be useful in future. cannam@126: aix,yes) # traditional libtool cannam@126: dynamic_linker='AIX unversionable lib.so' cannam@126: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@126: # instead of lib.a to let people know that these are not cannam@126: # typical AIX shared libraries. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: ;; cannam@126: aix,no) # traditional AIX only cannam@126: dynamic_linker='AIX lib.a(lib.so.V)' cannam@126: # We preserve .a as extension for shared libraries through AIX4.2 cannam@126: # and later when we are not doing run time linking. cannam@126: library_names_spec='$libname$release.a $libname.a' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: svr4,*) # full svr4 only cannam@126: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@126: # We do not specify a path in Import Files, so LIBPATH fires. cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: *,yes) # both, prefer svr4 cannam@126: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" cannam@126: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@126: # unpreferred sharedlib libNAME.a needs extra handling cannam@126: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' cannam@126: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' cannam@126: # We do not specify a path in Import Files, so LIBPATH fires. cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: *,no) # both, prefer aix cannam@126: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" cannam@126: library_names_spec='$libname$release.a $libname.a' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling cannam@126: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' cannam@126: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LIBPATH cannam@126: fi cannam@126: ;; cannam@126: cannam@126: amigaos*) cannam@126: case $host_cpu in cannam@126: powerpc) cannam@126: # Since July 2007 AmigaOS4 officially supports .so libraries. cannam@126: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: ;; cannam@126: m68k) cannam@126: library_names_spec='$libname.ixlibrary $libname.a' cannam@126: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@126: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: beos*) cannam@126: library_names_spec='$libname$shared_ext' cannam@126: dynamic_linker="$host_os ld.so" cannam@126: shlibpath_var=LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: bsdi[45]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@126: # the default ld.so.conf also contains /usr/contrib/lib and cannam@126: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@126: # libtool to hard-code these into programs cannam@126: ;; cannam@126: cannam@126: cygwin* | mingw* | pw32* | cegcc*) cannam@126: version_type=windows cannam@126: shrext_cmds=.dll cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: cannam@126: case $GCC,$cc_basename in cannam@126: yes,*) cannam@126: # gcc cannam@126: library_names_spec='$libname.dll.a' cannam@126: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@126: chmod a+x \$dldir/$dlname~ cannam@126: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@126: fi' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: shlibpath_overrides_runpath=yes cannam@126: cannam@126: case $host_os in cannam@126: cygwin*) cannam@126: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@126: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: cannam@126: ;; cannam@126: mingw* | cegcc*) cannam@126: # MinGW DLLs use traditional 'lib' prefix cannam@126: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: ;; cannam@126: pw32*) cannam@126: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@126: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: ;; cannam@126: esac cannam@126: dynamic_linker='Win32 ld.exe' cannam@126: ;; cannam@126: cannam@126: *,cl*) cannam@126: # Native MSVC cannam@126: libname_spec='$name' cannam@126: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@126: library_names_spec='$libname.dll.lib' cannam@126: cannam@126: case $build_os in cannam@126: mingw*) cannam@126: sys_lib_search_path_spec= cannam@126: lt_save_ifs=$IFS cannam@126: IFS=';' cannam@126: for lt_path in $LIB cannam@126: do cannam@126: IFS=$lt_save_ifs cannam@126: # Let DOS variable expansion print the short 8.3 style file name. cannam@126: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" cannam@126: done cannam@126: IFS=$lt_save_ifs cannam@126: # Convert to MSYS style. cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` cannam@126: ;; cannam@126: cygwin*) cannam@126: # Convert to unix form, then to dos form, then back to unix form cannam@126: # but this time dos style (no spaces!) so that the unix form looks cannam@126: # like /cygdrive/c/PROGRA~1:/cygdr... cannam@126: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` cannam@126: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` cannam@126: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@126: ;; cannam@126: *) cannam@126: sys_lib_search_path_spec=$LIB cannam@126: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then cannam@126: # It is most probably a Windows format PATH. cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@126: else cannam@126: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@126: fi cannam@126: # FIXME: find the short name or the path components, as spaces are cannam@126: # common. (e.g. "Program Files" -> "PROGRA~1") cannam@126: ;; cannam@126: esac cannam@126: cannam@126: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: shlibpath_overrides_runpath=yes cannam@126: dynamic_linker='Win32 link.exe' cannam@126: ;; cannam@126: cannam@126: *) cannam@126: # Assume MSVC wrapper cannam@126: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' cannam@126: dynamic_linker='Win32 ld.exe' cannam@126: ;; cannam@126: esac cannam@126: # FIXME: first we should search . and the directory the executable is in cannam@126: shlibpath_var=PATH cannam@126: ;; cannam@126: cannam@126: darwin* | rhapsody*) cannam@126: dynamic_linker="$host_os dyld" cannam@126: version_type=darwin cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' cannam@126: soname_spec='$libname$release$major$shared_ext' cannam@126: shlibpath_overrides_runpath=yes cannam@126: shlibpath_var=DYLD_LIBRARY_PATH cannam@126: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' cannam@126: cannam@126: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@126: ;; cannam@126: cannam@126: dgux*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: freebsd* | dragonfly*) cannam@126: # DragonFly does not have aout. When/if they implement a new cannam@126: # versioning mechanism, adjust this. cannam@126: if test -x /usr/bin/objformat; then cannam@126: objformat=`/usr/bin/objformat` cannam@126: else cannam@126: case $host_os in cannam@126: freebsd[23].*) objformat=aout ;; cannam@126: *) objformat=elf ;; cannam@126: esac cannam@126: fi cannam@126: version_type=freebsd-$objformat cannam@126: case $version_type in cannam@126: freebsd-elf*) cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: ;; cannam@126: freebsd-*) cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: need_version=yes cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: case $host_os in cannam@126: freebsd2.*) cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: freebsd3.[01]* | freebsdelf3.[01]*) cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ cannam@126: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: *) # from 4.6 on, and DragonFly cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: haiku*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: dynamic_linker="$host_os runtime_loader" cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: hpux9* | hpux10* | hpux11*) cannam@126: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@126: # link against other versions. cannam@126: version_type=sunos cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: case $host_cpu in cannam@126: ia64*) cannam@126: shrext_cmds='.so' cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker="$host_os dld.so" cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: if test 32 = "$HPUX_IA64_MODE"; then cannam@126: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec=/usr/lib/hpux32 cannam@126: else cannam@126: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@126: sys_lib_dlsearch_path_spec=/usr/lib/hpux64 cannam@126: fi cannam@126: ;; cannam@126: hppa*64*) cannam@126: shrext_cmds='.sl' cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker="$host_os dld.sl" cannam@126: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@126: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: ;; cannam@126: *) cannam@126: shrext_cmds='.sl' cannam@126: dynamic_linker="$host_os dld.sl" cannam@126: shlibpath_var=SHLIB_PATH cannam@126: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: ;; cannam@126: esac cannam@126: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... cannam@126: postinstall_cmds='chmod 555 $lib' cannam@126: # or fails outright, so override atomically: cannam@126: install_override_mode=555 cannam@126: ;; cannam@126: cannam@126: interix[3-9]*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: irix5* | irix6* | nonstopux*) cannam@126: case $host_os in cannam@126: nonstopux*) version_type=nonstopux ;; cannam@126: *) cannam@126: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: else cannam@126: version_type=irix cannam@126: fi ;; cannam@126: esac cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' cannam@126: case $host_os in cannam@126: irix5* | nonstopux*) cannam@126: libsuff= shlibsuff= cannam@126: ;; cannam@126: *) cannam@126: case $LD in # libtool.m4 will add one of these switches to LD cannam@126: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@126: libsuff= shlibsuff= libmagic=32-bit;; cannam@126: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@126: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@126: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@126: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@126: *) libsuff= shlibsuff= libmagic=never-match;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" cannam@126: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: # No shared lib support for Linux oldld, aout, or coff. cannam@126: linux*oldld* | linux*aout* | linux*coff*) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: cannam@126: linux*android*) cannam@126: version_type=none # Android doesn't support versioned libraries. cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext' cannam@126: finish_cmds= cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: cannam@126: # This implies no fast_install, which is unacceptable. cannam@126: # Some rework will be needed to allow for fast_install cannam@126: # before this can be enabled. cannam@126: hardcode_into_libs=yes cannam@126: cannam@126: dynamic_linker='Android linker' cannam@126: # Don't embed -rpath directories since the linker doesn't support them. cannam@126: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@126: ;; cannam@126: cannam@126: # This must be glibc/ELF. cannam@126: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: cannam@126: # Some binutils ld are patched to set DT_RUNPATH cannam@126: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: lt_cv_shlibpath_overrides_runpath=no cannam@126: save_LDFLAGS=$LDFLAGS cannam@126: save_libdir=$libdir cannam@126: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ cannam@126: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_cxx_try_link "$LINENO"; then : cannam@126: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : cannam@126: lt_cv_shlibpath_overrides_runpath=yes cannam@126: fi cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LDFLAGS=$save_LDFLAGS cannam@126: libdir=$save_libdir cannam@126: cannam@126: fi cannam@126: cannam@126: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath cannam@126: cannam@126: # This implies no fast_install, which is unacceptable. cannam@126: # Some rework will be needed to allow for fast_install cannam@126: # before this can be enabled. cannam@126: hardcode_into_libs=yes cannam@126: cannam@126: # Ideally, we could use ldconfig to report *all* directores which are cannam@126: # searched for libraries, however this is still not possible. Aside from not cannam@126: # being certain /sbin/ldconfig is available, command cannam@126: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, cannam@126: # even though it is searched at run-time. Try to do the best guess by cannam@126: # appending ld.so.conf contents (and includes) to the search path. cannam@126: if test -f /etc/ld.so.conf; then cannam@126: 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;s/"//g;/^$/d' | tr '\n' ' '` cannam@126: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" cannam@126: fi cannam@126: cannam@126: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@126: # powerpc, because MkLinux only supported shared libraries with the cannam@126: # GNU dynamic linker. Since this was broken with cross compilers, cannam@126: # most powerpc-linux boxes support dynamic linking these days and cannam@126: # people can always --disable-shared, the test was removed, and we cannam@126: # assume the GNU/Linux dynamic linker is in use. cannam@126: dynamic_linker='GNU/Linux ld.so' cannam@126: ;; cannam@126: cannam@126: netbsdelf*-gnu) cannam@126: version_type=linux cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@126: soname_spec='${libname}${release}${shared_ext}$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker='NetBSD ld.elf_so' cannam@126: ;; cannam@126: cannam@126: netbsd*) cannam@126: version_type=sunos cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@126: dynamic_linker='NetBSD (a.out) ld.so' cannam@126: else cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: dynamic_linker='NetBSD ld.elf_so' cannam@126: fi cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: newsos6) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: cannam@126: *nto* | *qnx*) cannam@126: version_type=qnx cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: dynamic_linker='ldqnx.so' cannam@126: ;; cannam@126: cannam@126: openbsd* | bitrig*) cannam@126: version_type=sunos cannam@126: sys_lib_dlsearch_path_spec=/usr/lib cannam@126: need_lib_prefix=no cannam@126: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@126: need_version=no cannam@126: else cannam@126: need_version=yes cannam@126: fi cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: ;; cannam@126: cannam@126: os2*) cannam@126: libname_spec='$name' cannam@126: version_type=windows cannam@126: shrext_cmds=.dll cannam@126: need_version=no cannam@126: need_lib_prefix=no cannam@126: # OS/2 can only load a DLL with a base name of 8 characters or less. cannam@126: soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; cannam@126: v=$($ECHO $release$versuffix | tr -d .-); cannam@126: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); cannam@126: $ECHO $n$v`$shared_ext' cannam@126: library_names_spec='${libname}_dll.$libext' cannam@126: dynamic_linker='OS/2 ld.exe' cannam@126: shlibpath_var=BEGINLIBPATH cannam@126: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: postinstall_cmds='base_file=`basename \$file`~ cannam@126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ cannam@126: dldir=$destdir/`dirname \$dlpath`~ cannam@126: test -d \$dldir || mkdir -p \$dldir~ cannam@126: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@126: chmod a+x \$dldir/$dlname~ cannam@126: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@126: fi' cannam@126: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ cannam@126: dlpath=$dir/\$dldll~ cannam@126: $RM \$dlpath' cannam@126: ;; cannam@126: cannam@126: osf3* | osf4* | osf5*) cannam@126: version_type=osf cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@126: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@126: ;; cannam@126: cannam@126: rdos*) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: cannam@126: solaris*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: # ldd complains unless libraries are executable cannam@126: postinstall_cmds='chmod +x $lib' cannam@126: ;; cannam@126: cannam@126: sunos4*) cannam@126: version_type=sunos cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@126: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: need_lib_prefix=no cannam@126: fi cannam@126: need_version=yes cannam@126: ;; cannam@126: cannam@126: sysv4 | sysv4.3*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: case $host_vendor in cannam@126: sni) cannam@126: shlibpath_overrides_runpath=no cannam@126: need_lib_prefix=no cannam@126: runpath_var=LD_RUN_PATH cannam@126: ;; cannam@126: siemens) cannam@126: need_lib_prefix=no cannam@126: ;; cannam@126: motorola) cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: shlibpath_overrides_runpath=no cannam@126: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@126: ;; cannam@126: esac cannam@126: ;; cannam@126: cannam@126: sysv4*MP*) cannam@126: if test -d /usr/nec; then cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' cannam@126: soname_spec='$libname$shared_ext.$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: fi cannam@126: ;; cannam@126: cannam@126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@126: version_type=sco cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=yes cannam@126: hardcode_into_libs=yes cannam@126: if test yes = "$with_gnu_ld"; then cannam@126: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' cannam@126: else cannam@126: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' cannam@126: case $host_os in cannam@126: sco3.2v5*) cannam@126: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: sys_lib_dlsearch_path_spec='/usr/lib' cannam@126: ;; cannam@126: cannam@126: tpf*) cannam@126: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: need_lib_prefix=no cannam@126: need_version=no cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: shlibpath_overrides_runpath=no cannam@126: hardcode_into_libs=yes cannam@126: ;; cannam@126: cannam@126: uts4*) cannam@126: version_type=linux # correct to gnu/linux during the next big refactor cannam@126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@126: soname_spec='$libname$release$shared_ext$major' cannam@126: shlibpath_var=LD_LIBRARY_PATH cannam@126: ;; cannam@126: cannam@126: *) cannam@126: dynamic_linker=no cannam@126: ;; cannam@126: esac cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 cannam@126: $as_echo "$dynamic_linker" >&6; } cannam@126: test no = "$dynamic_linker" && can_build_shared=no cannam@126: cannam@126: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@126: if test yes = "$GCC"; then cannam@126: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@126: fi cannam@126: cannam@126: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then cannam@126: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec cannam@126: fi cannam@126: cannam@126: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then cannam@126: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec cannam@126: fi cannam@126: cannam@126: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... cannam@126: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec cannam@126: cannam@126: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code cannam@126: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" cannam@126: cannam@126: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool cannam@126: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 cannam@126: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } cannam@126: hardcode_action_CXX= cannam@126: if test -n "$hardcode_libdir_flag_spec_CXX" || cannam@126: test -n "$runpath_var_CXX" || cannam@126: test yes = "$hardcode_automatic_CXX"; then cannam@126: cannam@126: # We can hardcode non-existent directories. cannam@126: if test no != "$hardcode_direct_CXX" && cannam@126: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@126: # have to relink, otherwise we might link with an installed library cannam@126: # when we should be linking with a yet-to-be-installed one cannam@126: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && cannam@126: test no != "$hardcode_minus_L_CXX"; then cannam@126: # Linking always hardcodes the temporary library directory. cannam@126: hardcode_action_CXX=relink cannam@126: else cannam@126: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@126: hardcode_action_CXX=immediate cannam@126: fi cannam@126: else cannam@126: # We cannot hardcode anything, or else we can only hardcode existing cannam@126: # directories. cannam@126: hardcode_action_CXX=unsupported cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 cannam@126: $as_echo "$hardcode_action_CXX" >&6; } cannam@126: cannam@126: if test relink = "$hardcode_action_CXX" || cannam@126: test yes = "$inherit_rpath_CXX"; then cannam@126: # Fast installation is not supported cannam@126: enable_fast_install=no cannam@126: elif test yes = "$shlibpath_overrides_runpath" || cannam@126: test no = "$enable_shared"; then cannam@126: # Fast installation is not necessary cannam@126: enable_fast_install=needless cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: fi # test -n "$compiler" cannam@126: cannam@126: CC=$lt_save_CC cannam@126: CFLAGS=$lt_save_CFLAGS cannam@126: LDCXX=$LD cannam@126: LD=$lt_save_LD cannam@126: GCC=$lt_save_GCC cannam@126: with_gnu_ld=$lt_save_with_gnu_ld cannam@126: lt_cv_path_LDCXX=$lt_cv_path_LD cannam@126: lt_cv_path_LD=$lt_save_path_LD cannam@126: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld cannam@126: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld cannam@126: fi # test yes != "$_lt_caught_CXX_error" cannam@126: cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: ac_config_commands="$ac_config_commands libtool" cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # Only expand once: cannam@126: cannam@126: cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}windres; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_RC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$RC"; then cannam@126: ac_cv_prog_RC="$RC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_RC="${ac_tool_prefix}windres" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: RC=$ac_cv_prog_RC cannam@126: if test -n "$RC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 cannam@126: $as_echo "$RC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_prog_RC"; then cannam@126: ac_ct_RC=$RC cannam@126: # Extract the first word of "windres", so it can be a program name with args. cannam@126: set dummy windres; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_ac_ct_RC+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$ac_ct_RC"; then cannam@126: ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_ac_ct_RC="windres" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: ac_ct_RC=$ac_cv_prog_ac_ct_RC cannam@126: if test -n "$ac_ct_RC"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 cannam@126: $as_echo "$ac_ct_RC" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_ct_RC" = x; then cannam@126: RC="" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: RC=$ac_ct_RC cannam@126: fi cannam@126: else cannam@126: RC="$ac_cv_prog_RC" cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: # Source file extension for RC test sources. cannam@126: ac_ext=rc cannam@126: cannam@126: # Object file extension for compiled RC test sources. cannam@126: objext=o cannam@126: objext_RC=$objext cannam@126: cannam@126: # Code to be used in simple compile tests cannam@126: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' cannam@126: cannam@126: # Code to be used in simple link tests cannam@126: lt_simple_link_test_code=$lt_simple_compile_test_code cannam@126: cannam@126: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: # If no C compiler was specified, use CC. cannam@126: LTCC=${LTCC-"$CC"} cannam@126: cannam@126: # If no C compiler flags were specified, use CFLAGS. cannam@126: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: compiler=$CC cannam@126: cannam@126: cannam@126: # save warnings/boilerplate of simple test code cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@126: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_compiler_boilerplate=`cat conftest.err` cannam@126: $RM conftest* cannam@126: cannam@126: ac_outfile=conftest.$ac_objext cannam@126: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@126: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@126: _lt_linker_boilerplate=`cat conftest.err` cannam@126: $RM -r conftest* cannam@126: cannam@126: cannam@126: # Allow CC to be a program name with arguments. cannam@126: lt_save_CC=$CC cannam@126: lt_save_CFLAGS=$CFLAGS cannam@126: lt_save_GCC=$GCC cannam@126: GCC= cannam@126: CC=${RC-"windres"} cannam@126: CFLAGS= cannam@126: compiler=$CC cannam@126: compiler_RC=$CC cannam@126: func_cc_basename $compiler cannam@126: cc_basename=$func_cc_basename_result cannam@126: cannam@126: lt_cv_prog_compiler_c_o_RC=yes cannam@126: cannam@126: if test -n "$compiler"; then cannam@126: : cannam@126: cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: GCC=$lt_save_GCC cannam@126: ac_ext=c cannam@126: ac_cpp='$CPP $CPPFLAGS' cannam@126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@126: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@126: cannam@126: CC=$lt_save_CC cannam@126: CFLAGS=$lt_save_CFLAGS cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 cannam@126: $as_echo_n "checking whether ln -s works... " >&6; } cannam@126: LN_S=$as_ln_s cannam@126: if test "$LN_S" = "ln -s"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 cannam@126: $as_echo "no, using $LN_S" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: #------------------------------------------------------------------------------------ cannam@126: # Rules for library version information: cannam@126: # cannam@126: # 1. Start with version information of `0:0:0' for each libtool library. cannam@126: # 2. Update the version information only immediately before a public release of cannam@126: # your software. More frequent updates are unnecessary, and only guarantee cannam@126: # that the current interface number gets larger faster. cannam@126: # 3. If the library source code has changed at all since the last update, then cannam@126: # increment revision (`c:r:a' becomes `c:r+1:a'). cannam@126: # 4. If any interfaces have been added, removed, or changed since the last update, cannam@126: # increment current, and set revision to 0. cannam@126: # 5. If any interfaces have been added since the last public release, then increment cannam@126: # age. cannam@126: # 6. If any interfaces have been removed since the last public release, then set age cannam@126: # to 0. cannam@126: cannam@126: SHARED_VERSION_INFO="1:8:1" cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@126: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } cannam@126: set x ${MAKE-make} cannam@126: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` cannam@126: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat >conftest.make <<\_ACEOF cannam@126: SHELL = /bin/sh cannam@126: all: cannam@126: @echo '@@@%%%=$(MAKE)=@@@%%%' cannam@126: _ACEOF cannam@126: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. cannam@126: case `${MAKE-make} -f conftest.make 2>/dev/null` in cannam@126: *@@@%%%=?*=@@@%%%*) cannam@126: eval ac_cv_prog_make_${ac_make}_set=yes;; cannam@126: *) cannam@126: eval ac_cv_prog_make_${ac_make}_set=no;; cannam@126: esac cannam@126: rm -f conftest.make cannam@126: fi cannam@126: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: SET_MAKE= cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: SET_MAKE="MAKE=${MAKE-make}" cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 cannam@126: $as_echo_n "checking whether ln -s works... " >&6; } cannam@126: LN_S=$as_ln_s cannam@126: if test "$LN_S" = "ln -s"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 cannam@126: $as_echo "no, using $LN_S" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then cannam@126: # Extract the first word of "dlltool", so it can be a program name with args. cannam@126: set dummy dlltool; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_DLLTOOL+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$DLLTOOL"; then cannam@126: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_DLLTOOL="dlltool" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: DLLTOOL=$ac_cv_prog_DLLTOOL cannam@126: if test -n "$DLLTOOL"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 cannam@126: $as_echo "$DLLTOOL" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: # Extract the first word of "dllwrap", so it can be a program name with args. cannam@126: set dummy dllwrap; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_DLLWRAP+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$DLLWRAP"; then cannam@126: ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_DLLWRAP="dllwrap" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: DLLWRAP=$ac_cv_prog_DLLWRAP cannam@126: if test -n "$DLLWRAP"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 cannam@126: $as_echo "$DLLWRAP" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: # Extract the first word of "pexports", so it can be a program name with args. cannam@126: set dummy pexports; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_prog_PEXPORTS+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if test -n "$PEXPORTS"; then cannam@126: ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test. cannam@126: else cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_prog_PEXPORTS="pexports" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: fi cannam@126: fi cannam@126: PEXPORTS=$ac_cv_prog_PEXPORTS cannam@126: if test -n "$PEXPORTS"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5 cannam@126: $as_echo "$PEXPORTS" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 cannam@126: $as_echo_n "checking for ANSI C header files... " >&6; } cannam@126: if ${ac_cv_header_stdc+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: #include cannam@126: #include cannam@126: #include cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_compile "$LINENO"; then : cannam@126: ac_cv_header_stdc=yes cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: cannam@126: _ACEOF cannam@126: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@126: $EGREP "memchr" >/dev/null 2>&1; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f conftest* cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: cannam@126: _ACEOF cannam@126: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@126: $EGREP "free" >/dev/null 2>&1; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f conftest* cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@126: if test "$cross_compiling" = yes; then : cannam@126: : cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: #include cannam@126: #include cannam@126: #if ((' ' & 0x0FF) == 0x020) cannam@126: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@126: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@126: #else cannam@126: # define ISLOWER(c) \ cannam@126: (('a' <= (c) && (c) <= 'i') \ cannam@126: || ('j' <= (c) && (c) <= 'r') \ cannam@126: || ('s' <= (c) && (c) <= 'z')) cannam@126: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@126: #endif cannam@126: cannam@126: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@126: int cannam@126: main () cannam@126: { cannam@126: int i; cannam@126: for (i = 0; i < 256; i++) cannam@126: if (XOR (islower (i), ISLOWER (i)) cannam@126: || toupper (i) != TOUPPER (i)) cannam@126: return 2; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_cv_header_stdc=no cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 cannam@126: $as_echo "$ac_cv_header_stdc" >&6; } cannam@126: if test $ac_cv_header_stdc = yes; then cannam@126: cannam@126: $as_echo "#define STDC_HEADERS 1" >>confdefs.h cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: for ac_header in stdint.h sys/times.h cannam@126: do : cannam@126: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@126: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" cannam@126: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: cannam@126: done cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: # Couple of initializations here. Fill in real values later. cannam@126: cannam@126: SHLIB_VERSION_ARG="" cannam@126: cannam@126: #==================================================================================== cannam@126: # Finished checking, handle options. cannam@126: cannam@126: # Check whether --enable-gcc-werror was given. cannam@126: if test "${enable_gcc_werror+set}" = set; then : cannam@126: enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes cannam@126: else cannam@126: ac_arg_gcc_werror=no cannam@126: fi cannam@126: cannam@126: cannam@126: # Check whether --enable-gcc-pipe was given. cannam@126: if test "${enable_gcc_pipe+set}" = set; then : cannam@126: enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N" cannam@126: else cannam@126: ac_arg_gcc_pipe="Y" cannam@126: fi cannam@126: cannam@126: cannam@126: # Check whether --enable-gcc-opt was given. cannam@126: if test "${enable_gcc_opt+set}" = set; then : cannam@126: enableval=$enable_gcc_opt; ac_arg_gcc_opt="N" cannam@126: else cannam@126: ac_arg_gcc_opt="Y" cannam@126: fi cannam@126: cannam@126: cannam@126: # Check whether --enable-fftw was given. cannam@126: if test "${enable_fftw+set}" = set; then : cannam@126: enableval=$enable_fftw; ac_arg_fftw="N" cannam@126: else cannam@126: ac_arg_fftw="Y" cannam@126: fi cannam@126: cannam@126: cannam@126: # Check whether --enable-cpu-clip was given. cannam@126: if test "${enable_cpu_clip+set}" = set; then : cannam@126: enableval=$enable_cpu_clip; ac_arg_cpu_clip="N" cannam@126: else cannam@126: ac_arg_cpu_clip="Y" cannam@126: fi cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: # Check types and their sizes. cannam@126: cannam@126: # The cast to long int works around a bug in the HP C Compiler cannam@126: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@126: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@126: # This bug is HP SR number 8606223364. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 cannam@126: $as_echo_n "checking size of int... " >&6; } cannam@126: if ${ac_cv_sizeof_int+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : cannam@126: cannam@126: else cannam@126: if test "$ac_cv_type_int" = yes; then cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error 77 "cannot compute sizeof (int) cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: ac_cv_sizeof_int=0 cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 cannam@126: $as_echo "$ac_cv_sizeof_int" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define SIZEOF_INT $ac_cv_sizeof_int cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: # The cast to long int works around a bug in the HP C Compiler cannam@126: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@126: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@126: # This bug is HP SR number 8606223364. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 cannam@126: $as_echo_n "checking size of long... " >&6; } cannam@126: if ${ac_cv_sizeof_long+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : cannam@126: cannam@126: else cannam@126: if test "$ac_cv_type_long" = yes; then cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error 77 "cannot compute sizeof (long) cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: ac_cv_sizeof_long=0 cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 cannam@126: $as_echo "$ac_cv_sizeof_long" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define SIZEOF_LONG $ac_cv_sizeof_long cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: # The cast to long int works around a bug in the HP C Compiler cannam@126: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@126: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@126: # This bug is HP SR number 8606223364. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 cannam@126: $as_echo_n "checking size of float... " >&6; } cannam@126: if ${ac_cv_sizeof_float+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : cannam@126: cannam@126: else cannam@126: if test "$ac_cv_type_float" = yes; then cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error 77 "cannot compute sizeof (float) cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: ac_cv_sizeof_float=0 cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 cannam@126: $as_echo "$ac_cv_sizeof_float" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define SIZEOF_FLOAT $ac_cv_sizeof_float cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: # The cast to long int works around a bug in the HP C Compiler cannam@126: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@126: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@126: # This bug is HP SR number 8606223364. cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 cannam@126: $as_echo_n "checking size of double... " >&6; } cannam@126: if ${ac_cv_sizeof_double+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : cannam@126: cannam@126: else cannam@126: if test "$ac_cv_type_double" = yes; then cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error 77 "cannot compute sizeof (double) cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: ac_cv_sizeof_double=0 cannam@126: fi cannam@126: fi cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 cannam@126: $as_echo "$ac_cv_sizeof_double" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define SIZEOF_DOUBLE $ac_cv_sizeof_double cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: # Determine endian-ness of target processor. cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5 cannam@126: $as_echo_n "checking processor byte ordering... " >&6; } cannam@126: if ${ac_cv_c_byte_order+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # Initialize to unknown cannam@126: ac_cv_c_byte_order=unknown cannam@126: cannam@126: if test x$ac_cv_header_endian_h = xyes ; then cannam@126: cannam@126: # First try which should set BYTE_ORDER. cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: #if BYTE_ORDER != LITTLE_ENDIAN cannam@126: not big endian cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return 0 ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c_byte_order=little cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: #if BYTE_ORDER != BIG_ENDIAN cannam@126: not big endian cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return 0 ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c_byte_order=big cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_c_byte_order = unknown ; then cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: #include cannam@126: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN cannam@126: bogus endian macros cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return 0 ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: #include cannam@126: #if BYTE_ORDER != LITTLE_ENDIAN cannam@126: not big endian cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return 0 ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c_byte_order=little cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: #include cannam@126: #if BYTE_ORDER != LITTLE_ENDIAN cannam@126: not big endian cannam@126: #endif cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: return 0 ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c_byte_order=little cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_c_byte_order = unknown ; then cannam@126: if test $cross_compiling = yes ; then cannam@126: # This is the last resort. Try to guess the target processor endian-ness cannam@126: # by looking at the target CPU type. cannam@126: cannam@126: case "$target_cpu" in cannam@126: alpha* | i?86* | mipsel* | ia64*) cannam@126: ac_cv_c_byte_order=little cannam@126: ;; cannam@126: cannam@126: m68* | mips* | powerpc* | hppa* | sparc*) cannam@126: ac_cv_c_byte_order=big cannam@126: ;; cannam@126: cannam@126: esac cannam@126: cannam@126: else cannam@126: if test "$cross_compiling" = yes; then : cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "cannot run test program while cross compiling cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: int main (void) cannam@126: { /* Are we little or big endian? From Harbison&Steele. */ cannam@126: union cannam@126: { long l ; cannam@126: char c [sizeof (long)] ; cannam@126: } u ; cannam@126: u.l = 1 ; cannam@126: return (u.c [sizeof (long) - 1] == 1); cannam@126: } cannam@126: cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_cv_c_byte_order=big cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: cannam@126: if test "$cross_compiling" = yes; then : cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@126: as_fn_error $? "cannot run test program while cross compiling cannam@126: See \`config.log' for more details" "$LINENO" 5; } cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: int main (void) cannam@126: { /* Are we little or big endian? From Harbison&Steele. */ cannam@126: union cannam@126: { long l ; cannam@126: char c [sizeof (long)] ; cannam@126: } u ; cannam@126: u.l = 1 ; cannam@126: return (u.c [0] == 1); cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: cannam@126: else cannam@126: ac_cv_c_byte_order=little cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: fi cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5 cannam@126: $as_echo "$ac_cv_c_byte_order" >&6; } cannam@126: cannam@126: if test $ac_cv_c_byte_order = big ; then cannam@126: ac_cv_c_big_endian=1 cannam@126: ac_cv_c_little_endian=0 cannam@126: elif test $ac_cv_c_byte_order = little ; then cannam@126: ac_cv_c_big_endian=0 cannam@126: ac_cv_c_little_endian=1 cannam@126: else cannam@126: ac_cv_c_big_endian=0 cannam@126: ac_cv_c_little_endian=0 cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 cannam@126: $as_echo "$as_me: WARNING: *****************************************************************" >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5 cannam@126: $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5 cannam@126: $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5 cannam@126: $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 cannam@126: $as_echo "$as_me: WARNING: *****************************************************************" >&2;} cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian} cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian} cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: # Check for functions. cannam@126: cannam@126: for ac_func in malloc calloc free memcpy memmove alarm signal cannam@126: do : cannam@126: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@126: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" cannam@126: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: done cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 cannam@126: $as_echo_n "checking for floor in -lm... " >&6; } cannam@126: if ${ac_cv_lib_m_floor+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: ac_check_lib_save_LIBS=$LIBS cannam@126: LIBS="-lm $LIBS" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: /* Override any GCC internal prototype to avoid an error. cannam@126: Use char because int might match the return type of a GCC cannam@126: builtin and then its argument prototype would still apply. */ cannam@126: #ifdef __cplusplus cannam@126: extern "C" cannam@126: #endif cannam@126: char floor (); cannam@126: int cannam@126: main () cannam@126: { cannam@126: return floor (); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_lib_m_floor=yes cannam@126: else cannam@126: ac_cv_lib_m_floor=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: LIBS=$ac_check_lib_save_LIBS cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 cannam@126: $as_echo "$ac_cv_lib_m_floor" >&6; } cannam@126: if test "x$ac_cv_lib_m_floor" = xyes; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define HAVE_LIBM 1 cannam@126: _ACEOF cannam@126: cannam@126: LIBS="-lm $LIBS" cannam@126: cannam@126: fi cannam@126: cannam@126: for ac_func in floor ceil fmod cannam@126: do : cannam@126: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@126: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" cannam@126: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: done cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5 cannam@126: $as_echo_n "checking for SIGALRM... " >&6; } cannam@126: if ${ac_cv_signal_SIGALRM+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #include cannam@126: cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: signal(SIGALRM, SIG_DFL) ; cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_signal_SIGALRM=yes cannam@126: else cannam@126: ac_cv_signal_SIGALRM=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5 cannam@126: $as_echo "$ac_cv_signal_SIGALRM" >&6; } cannam@126: cannam@126: if test "$ac_cv_signal_SIGALRM" = yes; then cannam@126: cannam@126: $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h cannam@126: cannam@126: fi cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5 cannam@126: $as_echo_n "checking for lrint... " >&6; } cannam@126: if ${ac_cv_c99_lrint+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cannam@126: lrint_save_CFLAGS=$CFLAGS cannam@126: CFLAGS="-lm" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #define _ISOC9X_SOURCE 1 cannam@126: #define _ISOC99_SOURCE 1 cannam@126: #define __USE_ISOC99 1 cannam@126: #define __USE_ISOC9X 1 cannam@126: cannam@126: #include cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: if (!lrint(3.14159)) lrint(2.7183); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c99_lrint=yes cannam@126: else cannam@126: ac_cv_c99_lrint=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: CFLAGS=$lrint_save_CFLAGS cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5 cannam@126: $as_echo "$ac_cv_c99_lrint" >&6; } cannam@126: cannam@126: if test "$ac_cv_c99_lrint" = yes; then cannam@126: cannam@126: $as_echo "#define HAVE_LRINT 1" >>confdefs.h cannam@126: cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5 cannam@126: $as_echo_n "checking for lrintf... " >&6; } cannam@126: if ${ac_cv_c99_lrintf+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: cannam@126: lrintf_save_CFLAGS=$CFLAGS cannam@126: CFLAGS="-lm" cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #define _ISOC9X_SOURCE 1 cannam@126: #define _ISOC99_SOURCE 1 cannam@126: #define __USE_ISOC99 1 cannam@126: #define __USE_ISOC9X 1 cannam@126: cannam@126: #include cannam@126: cannam@126: int cannam@126: main () cannam@126: { cannam@126: if (!lrintf(3.14159)) lrintf(2.7183); cannam@126: ; cannam@126: return 0; cannam@126: } cannam@126: _ACEOF cannam@126: if ac_fn_c_try_link "$LINENO"; then : cannam@126: ac_cv_c99_lrintf=yes cannam@126: else cannam@126: ac_cv_c99_lrintf=no cannam@126: fi cannam@126: rm -f core conftest.err conftest.$ac_objext \ cannam@126: conftest$ac_exeext conftest.$ac_ext cannam@126: cannam@126: CFLAGS=$lrintf_save_CFLAGS cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5 cannam@126: $as_echo "$ac_cv_c99_lrintf" >&6; } cannam@126: cannam@126: if test "$ac_cv_c99_lrintf" = yes; then cannam@126: cannam@126: $as_echo "#define HAVE_LRINTF 1" >>confdefs.h cannam@126: cannam@126: fi cannam@126: cannam@126: # AC_C99_FUNC_LLRINT Don't need this (yet?). cannam@126: cannam@126: case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in cannam@126: xyesyes) cannam@126: ;; cannam@126: *) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5 cannam@126: $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;} cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5 cannam@126: $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;} cannam@126: ;; cannam@126: esac cannam@126: cannam@126: #==================================================================================== cannam@126: # Determine if the processor can do clipping on float to int conversions. cannam@126: cannam@126: if test x$ac_arg_cpu_clip = "xY" ; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5 cannam@126: $as_echo_n "checking processor clipping capabilities... " >&6; } cannam@126: if ${ac_cv_c_clip_type+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: # Initialize to unknown cannam@126: ac_cv_c_clip_positive=unknown cannam@126: ac_cv_c_clip_negative=unknown cannam@126: cannam@126: cannam@126: if test $ac_cv_c_clip_positive = unknown ; then cannam@126: if test "$cross_compiling" = yes; then : cannam@126: ac_cv_c_clip_positive=unknown cannam@126: cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #define _ISOC9X_SOURCE 1 cannam@126: #define _ISOC99_SOURCE 1 cannam@126: #define __USE_ISOC99 1 cannam@126: #define __USE_ISOC9X 1 cannam@126: #include cannam@126: int main (void) cannam@126: { double fval ; cannam@126: int k, ival ; cannam@126: cannam@126: fval = 1.0 * 0x7FFFFFFF ; cannam@126: for (k = 0 ; k < 100 ; k++) cannam@126: { ival = (lrint (fval)) >> 24 ; cannam@126: if (ival != 127) cannam@126: return 1 ; cannam@126: cannam@126: fval *= 1.2499999 ; cannam@126: } ; cannam@126: cannam@126: return 0 ; cannam@126: } cannam@126: cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: ac_cv_c_clip_positive=yes cannam@126: else cannam@126: ac_cv_c_clip_positive=no cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: cannam@126: if test "$cross_compiling" = yes; then : cannam@126: ac_cv_c_clip_negative=unknown cannam@126: cannam@126: else cannam@126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@126: /* end confdefs.h. */ cannam@126: cannam@126: #define _ISOC9X_SOURCE 1 cannam@126: #define _ISOC99_SOURCE 1 cannam@126: #define __USE_ISOC99 1 cannam@126: #define __USE_ISOC9X 1 cannam@126: #include cannam@126: int main (void) cannam@126: { double fval ; cannam@126: int k, ival ; cannam@126: cannam@126: fval = -8.0 * 0x10000000 ; cannam@126: for (k = 0 ; k < 100 ; k++) cannam@126: { ival = (lrint (fval)) >> 24 ; cannam@126: if (ival != -128) cannam@126: return 1 ; cannam@126: cannam@126: fval *= 1.2499999 ; cannam@126: } ; cannam@126: cannam@126: return 0 ; cannam@126: } cannam@126: cannam@126: _ACEOF cannam@126: if ac_fn_c_try_run "$LINENO"; then : cannam@126: ac_cv_c_clip_negative=yes cannam@126: else cannam@126: ac_cv_c_clip_negative=no cannam@126: fi cannam@126: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@126: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@126: fi cannam@126: cannam@126: fi cannam@126: cannam@126: if test $ac_cv_c_clip_positive = yes ; then cannam@126: ac_cv_c_clip_positive=1 cannam@126: else cannam@126: ac_cv_c_clip_positive=0 cannam@126: fi cannam@126: cannam@126: if test $ac_cv_c_clip_negative = yes ; then cannam@126: ac_cv_c_clip_negative=1 cannam@126: else cannam@126: ac_cv_c_clip_negative=0 cannam@126: fi cannam@126: cannam@126: cannam@126: case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in cannam@126: "00") cannam@126: ac_cv_c_clip_type="none" cannam@126: ;; cannam@126: "10") cannam@126: ac_cv_c_clip_type="positive" cannam@126: ;; cannam@126: "01") cannam@126: ac_cv_c_clip_type="negative" cannam@126: ;; cannam@126: "11") cannam@126: ac_cv_c_clip_type="both" cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5 cannam@126: $as_echo "$ac_cv_c_clip_type" >&6; } cannam@126: cannam@126: cannam@126: cannam@126: else cannam@126: echo "checking processor clipping capabilities... disabled" cannam@126: ac_cv_c_clip_positive=0 cannam@126: ac_cv_c_clip_negative=0 cannam@126: fi cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive} cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative} cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: # Check for libsndfile which is required for the test and example programs. cannam@126: cannam@126: # Check whether --enable-sndfile was given. cannam@126: if test "${enable_sndfile+set}" = set; then : cannam@126: enableval=$enable_sndfile; enable_sndfile=$enableval cannam@126: else cannam@126: enable_sndfile=yes cannam@126: fi cannam@126: cannam@126: cannam@126: # Check for pkg-config outside the if statement. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then cannam@126: if test -n "$ac_tool_prefix"; then cannam@126: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. cannam@126: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_path_PKG_CONFIG+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: case $PKG_CONFIG in cannam@126: [\\/]* | ?:[\\/]*) cannam@126: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. cannam@126: ;; cannam@126: *) cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: PKG_CONFIG=$ac_cv_path_PKG_CONFIG cannam@126: if test -n "$PKG_CONFIG"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 cannam@126: $as_echo "$PKG_CONFIG" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: cannam@126: fi cannam@126: if test -z "$ac_cv_path_PKG_CONFIG"; then cannam@126: ac_pt_PKG_CONFIG=$PKG_CONFIG cannam@126: # Extract the first word of "pkg-config", so it can be a program name with args. cannam@126: set dummy pkg-config; ac_word=$2 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@126: $as_echo_n "checking for $ac_word... " >&6; } cannam@126: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : cannam@126: $as_echo_n "(cached) " >&6 cannam@126: else cannam@126: case $ac_pt_PKG_CONFIG in cannam@126: [\\/]* | ?:[\\/]*) cannam@126: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. cannam@126: ;; cannam@126: *) cannam@126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: for ac_exec_ext in '' $ac_executable_extensions; do cannam@126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@126: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@126: break 2 cannam@126: fi cannam@126: done cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG cannam@126: if test -n "$ac_pt_PKG_CONFIG"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 cannam@126: $as_echo "$ac_pt_PKG_CONFIG" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: fi cannam@126: cannam@126: if test "x$ac_pt_PKG_CONFIG" = x; then cannam@126: PKG_CONFIG="" cannam@126: else cannam@126: case $cross_compiling:$ac_tool_warned in cannam@126: yes:) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@126: ac_tool_warned=yes ;; cannam@126: esac cannam@126: PKG_CONFIG=$ac_pt_PKG_CONFIG cannam@126: fi cannam@126: else cannam@126: PKG_CONFIG="$ac_cv_path_PKG_CONFIG" cannam@126: fi cannam@126: cannam@126: fi cannam@126: if test -n "$PKG_CONFIG"; then cannam@126: _pkg_min_version=0.9.0 cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 cannam@126: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } cannam@126: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: PKG_CONFIG="" cannam@126: fi cannam@126: fi cannam@126: cannam@126: if test "x$enable_sndfile" = "xyes"; then cannam@126: cannam@126: pkg_failed=no cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 cannam@126: $as_echo_n "checking for SNDFILE... " >&6; } cannam@126: cannam@126: if test -n "$SNDFILE_CFLAGS"; then cannam@126: pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" cannam@126: elif test -n "$PKG_CONFIG"; then cannam@126: if test -n "$PKG_CONFIG" && \ cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5 cannam@126: ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null` cannam@126: test "x$?" != "x0" && pkg_failed=yes cannam@126: else cannam@126: pkg_failed=yes cannam@126: fi cannam@126: else cannam@126: pkg_failed=untried cannam@126: fi cannam@126: if test -n "$SNDFILE_LIBS"; then cannam@126: pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" cannam@126: elif test -n "$PKG_CONFIG"; then cannam@126: if test -n "$PKG_CONFIG" && \ cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5 cannam@126: ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null` cannam@126: test "x$?" != "x0" && pkg_failed=yes cannam@126: else cannam@126: pkg_failed=yes cannam@126: fi cannam@126: else cannam@126: pkg_failed=untried cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: if test $pkg_failed = yes; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: cannam@126: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@126: _pkg_short_errors_supported=yes cannam@126: else cannam@126: _pkg_short_errors_supported=no cannam@126: fi cannam@126: if test $_pkg_short_errors_supported = yes; then cannam@126: SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1` cannam@126: else cannam@126: SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1` cannam@126: fi cannam@126: # Put the nasty error message in config.log where it belongs cannam@126: echo "$SNDFILE_PKG_ERRORS" >&5 cannam@126: cannam@126: ac_cv_sndfile=0 cannam@126: elif test $pkg_failed = untried; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: ac_cv_sndfile=0 cannam@126: else cannam@126: SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS cannam@126: SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: ac_cv_sndfile=1 cannam@126: fi cannam@126: else cannam@126: ac_cv_sndfile=0 cannam@126: fi cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define HAVE_SNDFILE $ac_cv_sndfile cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: if test x$ac_cv_sndfile = x1 ; then cannam@126: ac_cv_sndfile=yes cannam@126: HAVE_SNDFILE=1 cannam@126: else cannam@126: ac_cv_sndfile=no cannam@126: HAVE_SNDFILE=0 cannam@126: fi cannam@126: cannam@126: #==================================================================================== cannam@126: # Check for ALSA. cannam@126: cannam@126: ALSA_LIBS="" cannam@126: cannam@126: if test x$enable_alsa != xno ; then cannam@126: for ac_header in alsa/asoundlib.h cannam@126: do : cannam@126: ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" cannam@126: if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define HAVE_ALSA_ASOUNDLIB_H 1 cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: cannam@126: done cannam@126: cannam@126: if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then cannam@126: ALSA_LIBS="-lasound" cannam@126: enable_alsa=yes cannam@126: fi cannam@126: fi cannam@126: cannam@126: #==================================================================================== cannam@126: # Check for libfftw3 which is required for the test and example programs. cannam@126: cannam@126: if test $ac_arg_fftw = "Y" ; then cannam@126: cannam@126: pkg_failed=no cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5 cannam@126: $as_echo_n "checking for FFTW3... " >&6; } cannam@126: cannam@126: if test -n "$FFTW3_CFLAGS"; then cannam@126: pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS" cannam@126: elif test -n "$PKG_CONFIG"; then cannam@126: if test -n "$PKG_CONFIG" && \ cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5 cannam@126: ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null` cannam@126: test "x$?" != "x0" && pkg_failed=yes cannam@126: else cannam@126: pkg_failed=yes cannam@126: fi cannam@126: else cannam@126: pkg_failed=untried cannam@126: fi cannam@126: if test -n "$FFTW3_LIBS"; then cannam@126: pkg_cv_FFTW3_LIBS="$FFTW3_LIBS" cannam@126: elif test -n "$PKG_CONFIG"; then cannam@126: if test -n "$PKG_CONFIG" && \ cannam@126: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5 cannam@126: ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5 cannam@126: ac_status=$? cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@126: test $ac_status = 0; }; then cannam@126: pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null` cannam@126: test "x$?" != "x0" && pkg_failed=yes cannam@126: else cannam@126: pkg_failed=yes cannam@126: fi cannam@126: else cannam@126: pkg_failed=untried cannam@126: fi cannam@126: cannam@126: cannam@126: cannam@126: if test $pkg_failed = yes; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: cannam@126: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@126: _pkg_short_errors_supported=yes cannam@126: else cannam@126: _pkg_short_errors_supported=no cannam@126: fi cannam@126: if test $_pkg_short_errors_supported = yes; then cannam@126: FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1` cannam@126: else cannam@126: FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1` cannam@126: fi cannam@126: # Put the nasty error message in config.log where it belongs cannam@126: echo "$FFTW3_PKG_ERRORS" >&5 cannam@126: cannam@126: ac_cv_fftw3=0 cannam@126: elif test $pkg_failed = untried; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@126: $as_echo "no" >&6; } cannam@126: ac_cv_fftw3=0 cannam@126: else cannam@126: FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS cannam@126: FFTW3_LIBS=$pkg_cv_FFTW3_LIBS cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@126: $as_echo "yes" >&6; } cannam@126: ac_cv_fftw3=1 cannam@126: fi cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define HAVE_FFTW3 $ac_cv_fftw3 cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: if test x$ac_cv_fftw3 = x1 ; then cannam@126: ac_cv_fftw3=yes cannam@126: HAVE_FFTW3=1 cannam@126: fi cannam@126: fi cannam@126: cannam@126: if test x$ac_cv_fftw3 != xyes ; then cannam@126: ac_cv_fftw3=no cannam@126: HAVE_FFTW3=0 cannam@126: fi cannam@126: cannam@126: #==================================================================================== cannam@126: # GCC stuff. cannam@126: cannam@126: if test $ac_cv_c_compiler_gnu = yes ; then cannam@126: CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith" cannam@126: # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline" cannam@126: if test "$ac_arg_gcc_opt" = "N" ; then cannam@126: temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"` cannam@126: CFLAGS=$temp_CFLAGS cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5 cannam@126: $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;} cannam@126: fi cannam@126: cannam@126: # Disable -Wall for Apple Darwin/Rhapsody. cannam@126: # System headers on these systems are broken. cannam@126: case "$target_os" in cannam@126: darwin* | rhapsody*) cannam@126: temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"` cannam@126: CFLAGS=$temp_CFLAGS cannam@126: ;; cannam@126: cannam@126: linux*|kfreebsd*-gnu*|gnu*) cannam@126: SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" cannam@126: ;; cannam@126: *) cannam@126: ;; cannam@126: esac cannam@126: if test x$ac_arg_gcc_pipe != "xN" ; then cannam@126: CFLAGS="$CFLAGS -pipe" cannam@126: fi cannam@126: cannam@126: if test x$ac_arg_gcc_werror = "xyes" ; then cannam@126: CFLAGS="-Werror $CFLAGS" cannam@126: fi cannam@126: cannam@126: cannam@126: $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h cannam@126: cannam@126: GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"` cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION} cannam@126: _ACEOF cannam@126: cannam@126: fi cannam@126: cannam@126: #==================================================================================== cannam@126: # Find known target OS. cannam@126: cannam@126: OS_SPECIFIC_INCLUDES="" cannam@126: os_is_win32=0 cannam@126: cannam@126: case "$target_os" in cannam@126: darwin* | rhapsody*) cannam@126: OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon" cannam@126: OS_SPECIFIC_LINKS="-framework CoreAudio" cannam@126: ;; cannam@126: mingw32*) cannam@126: OS_SPECIFIC_LINKS="-lwinmm" cannam@126: os_is_win32=1 cannam@126: ;; cannam@126: *) cannam@126: OS_SPECIFIC_INCLUDES="" cannam@126: OS_SPECIFIC_LINKS="" cannam@126: ;; cannam@126: esac cannam@126: cannam@126: htmldocdir=$prefix/share/doc/libsamplerate0-dev/html cannam@126: cannam@126: if test $prefix = "NONE" ; then cannam@126: htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html cannam@126: else cannam@126: htmldocdir=$prefix/share/doc/libsamplerate0-dev/html cannam@126: fi cannam@126: cannam@126: #==================================================================================== cannam@126: # Now use the information from the checking stage. cannam@126: cannam@126: cannam@126: cat >>confdefs.h <<_ACEOF cannam@126: #define OS_IS_WIN32 ${os_is_win32} cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc" cannam@126: cannam@126: cat >confcache <<\_ACEOF cannam@126: # This file is a shell script that caches the results of configure cannam@126: # tests run on this system so they can be shared between configure cannam@126: # scripts and configure runs, see configure's option --config-cache. cannam@126: # It is not useful on other systems. If it contains results you don't cannam@126: # want to keep, you may remove or edit it. cannam@126: # cannam@126: # config.status only pays attention to the cache file if you give it cannam@126: # the --recheck option to rerun configure. cannam@126: # cannam@126: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@126: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@126: # following values. cannam@126: cannam@126: _ACEOF cannam@126: cannam@126: # The following way of writing the cache mishandles newlines in values, cannam@126: # but we know of no workaround that is simple, portable, and efficient. cannam@126: # So, we kill variables containing newlines. cannam@126: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@126: # and sets the high bit in the cache file unless we assign to the vars. cannam@126: ( cannam@126: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do cannam@126: eval ac_val=\$$ac_var cannam@126: case $ac_val in #( cannam@126: *${as_nl}*) cannam@126: case $ac_var in #( cannam@126: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@126: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@126: esac cannam@126: case $ac_var in #( cannam@126: _ | IFS | as_nl) ;; #( cannam@126: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@126: *) { eval $ac_var=; unset $ac_var;} ;; cannam@126: esac ;; cannam@126: esac cannam@126: done cannam@126: cannam@126: (set) 2>&1 | cannam@126: case $as_nl`(ac_space=' '; set) 2>&1` in #( cannam@126: *${as_nl}ac_space=\ *) cannam@126: # `set' does not quote correctly, so add quotes: double-quote cannam@126: # substitution turns \\\\ into \\, and sed turns \\ into \. cannam@126: sed -n \ cannam@126: "s/'/'\\\\''/g; cannam@126: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@126: ;; #( cannam@126: *) cannam@126: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@126: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@126: ;; cannam@126: esac | cannam@126: sort cannam@126: ) | cannam@126: sed ' cannam@126: /^ac_cv_env_/b end cannam@126: t clear cannam@126: :clear cannam@126: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@126: t end cannam@126: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@126: :end' >>confcache cannam@126: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else cannam@126: if test -w "$cache_file"; then cannam@126: if test "x$cache_file" != "x/dev/null"; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 cannam@126: $as_echo "$as_me: updating cache $cache_file" >&6;} cannam@126: if test ! -f "$cache_file" || test -h "$cache_file"; then cannam@126: cat confcache >"$cache_file" cannam@126: else cannam@126: case $cache_file in #( cannam@126: */* | ?:*) cannam@126: mv -f confcache "$cache_file"$$ && cannam@126: mv -f "$cache_file"$$ "$cache_file" ;; #( cannam@126: *) cannam@126: mv -f confcache "$cache_file" ;; cannam@126: esac cannam@126: fi cannam@126: fi cannam@126: else cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 cannam@126: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} cannam@126: fi cannam@126: fi cannam@126: rm -f confcache cannam@126: cannam@126: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@126: # Let make expand exec_prefix. cannam@126: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@126: cannam@126: DEFS=-DHAVE_CONFIG_H cannam@126: cannam@126: ac_libobjs= cannam@126: ac_ltlibobjs= cannam@126: U= cannam@126: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@126: # 1. Remove the extension, and $U if already installed. cannam@126: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' cannam@126: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` cannam@126: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR cannam@126: # will be set to the directory where LIBOBJS objects are built. cannam@126: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" cannam@126: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' cannam@126: done cannam@126: LIBOBJS=$ac_libobjs cannam@126: cannam@126: LTLIBOBJS=$ac_ltlibobjs cannam@126: cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 cannam@126: $as_echo_n "checking that generated files are newer than configure... " >&6; } cannam@126: if test -n "$am_sleep_pid"; then cannam@126: # Hide warnings about reused PIDs. cannam@126: wait $am_sleep_pid 2>/dev/null cannam@126: fi cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 cannam@126: $as_echo "done" >&6; } cannam@126: if test -n "$EXEEXT"; then cannam@126: am__EXEEXT_TRUE= cannam@126: am__EXEEXT_FALSE='#' cannam@126: else cannam@126: am__EXEEXT_TRUE='#' cannam@126: am__EXEEXT_FALSE= cannam@126: fi cannam@126: cannam@126: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then cannam@126: as_fn_error $? "conditional \"AMDEP\" was never defined. cannam@126: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@126: fi cannam@126: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then cannam@126: as_fn_error $? "conditional \"am__fastdepCC\" was never defined. cannam@126: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@126: fi cannam@126: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then cannam@126: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. cannam@126: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@126: fi cannam@126: cannam@126: : "${CONFIG_STATUS=./config.status}" cannam@126: ac_write_fail=0 cannam@126: ac_clean_files_save=$ac_clean_files cannam@126: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 cannam@126: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@126: as_write_fail=0 cannam@126: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 cannam@126: #! $SHELL cannam@126: # Generated by $as_me. cannam@126: # Run this file to recreate the current configuration. cannam@126: # Compiler output produced by configure, useful for debugging cannam@126: # configure, is in config.log if it exists. cannam@126: cannam@126: debug=false cannam@126: ac_cs_recheck=false cannam@126: ac_cs_silent=false cannam@126: cannam@126: SHELL=\${CONFIG_SHELL-$SHELL} cannam@126: export SHELL cannam@126: _ASEOF cannam@126: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 cannam@126: ## -------------------- ## cannam@126: ## M4sh Initialization. ## cannam@126: ## -------------------- ## cannam@126: cannam@126: # Be more Bourne compatible cannam@126: DUALCASE=1; export DUALCASE # for MKS sh cannam@126: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@126: emulate sh cannam@126: NULLCMD=: cannam@126: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@126: # is contrary to our usage. Disable this feature. cannam@126: alias -g '${1+"$@"}'='"$@"' cannam@126: setopt NO_GLOB_SUBST cannam@126: else cannam@126: case `(set -o) 2>/dev/null` in #( cannam@126: *posix*) : cannam@126: set -o posix ;; #( cannam@126: *) : cannam@126: ;; cannam@126: esac cannam@126: fi cannam@126: cannam@126: cannam@126: as_nl=' cannam@126: ' cannam@126: export as_nl cannam@126: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@126: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@126: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@126: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@126: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@126: # but without wasting forks for bash or zsh. cannam@126: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@126: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@126: as_echo='print -r --' cannam@126: as_echo_n='print -rn --' cannam@126: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@126: as_echo='printf %s\n' cannam@126: as_echo_n='printf %s' cannam@126: else cannam@126: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@126: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@126: as_echo_n='/usr/ucb/echo -n' cannam@126: else cannam@126: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@126: as_echo_n_body='eval cannam@126: arg=$1; cannam@126: case $arg in #( cannam@126: *"$as_nl"*) cannam@126: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@126: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@126: esac; cannam@126: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@126: ' cannam@126: export as_echo_n_body cannam@126: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@126: fi cannam@126: export as_echo_body cannam@126: as_echo='sh -c $as_echo_body as_echo' cannam@126: fi cannam@126: cannam@126: # The user is always right. cannam@126: if test "${PATH_SEPARATOR+set}" != set; then cannam@126: PATH_SEPARATOR=: cannam@126: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@126: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@126: PATH_SEPARATOR=';' cannam@126: } cannam@126: fi cannam@126: cannam@126: cannam@126: # IFS cannam@126: # We need space, tab and new line, in precisely that order. Quoting is cannam@126: # there to prevent editors from complaining about space-tab. cannam@126: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@126: # splitting by setting IFS to empty value.) cannam@126: IFS=" "" $as_nl" cannam@126: cannam@126: # Find who we are. Look in the path if we contain no directory separator. cannam@126: as_myself= cannam@126: case $0 in #(( cannam@126: *[\\/]* ) as_myself=$0 ;; cannam@126: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@126: for as_dir in $PATH cannam@126: do cannam@126: IFS=$as_save_IFS cannam@126: test -z "$as_dir" && as_dir=. cannam@126: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@126: done cannam@126: IFS=$as_save_IFS cannam@126: cannam@126: ;; cannam@126: esac cannam@126: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@126: # in which case we are not to be found in the path. cannam@126: if test "x$as_myself" = x; then cannam@126: as_myself=$0 cannam@126: fi cannam@126: if test ! -f "$as_myself"; then cannam@126: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@126: exit 1 cannam@126: fi cannam@126: cannam@126: # Unset variables that we do not need and which cause bugs (e.g. in cannam@126: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@126: # suppresses any "Segmentation fault" message there. '((' could cannam@126: # trigger a bug in pdksh 5.2.14. cannam@126: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@126: do eval test x\${$as_var+set} = xset \ cannam@126: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@126: done cannam@126: PS1='$ ' cannam@126: PS2='> ' cannam@126: PS4='+ ' cannam@126: cannam@126: # NLS nuisances. cannam@126: LC_ALL=C cannam@126: export LC_ALL cannam@126: LANGUAGE=C cannam@126: export LANGUAGE cannam@126: cannam@126: # CDPATH. cannam@126: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@126: cannam@126: cannam@126: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@126: # ---------------------------------------- cannam@126: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@126: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@126: # script with STATUS, using 1 if that was 0. cannam@126: as_fn_error () cannam@126: { cannam@126: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@126: if test "$4"; then cannam@126: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@126: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@126: fi cannam@126: $as_echo "$as_me: error: $2" >&2 cannam@126: as_fn_exit $as_status cannam@126: } # as_fn_error cannam@126: cannam@126: cannam@126: # as_fn_set_status STATUS cannam@126: # ----------------------- cannam@126: # Set $? to STATUS, without forking. cannam@126: as_fn_set_status () cannam@126: { cannam@126: return $1 cannam@126: } # as_fn_set_status cannam@126: cannam@126: # as_fn_exit STATUS cannam@126: # ----------------- cannam@126: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@126: as_fn_exit () cannam@126: { cannam@126: set +e cannam@126: as_fn_set_status $1 cannam@126: exit $1 cannam@126: } # as_fn_exit cannam@126: cannam@126: # as_fn_unset VAR cannam@126: # --------------- cannam@126: # Portably unset VAR. cannam@126: as_fn_unset () cannam@126: { cannam@126: { eval $1=; unset $1;} cannam@126: } cannam@126: as_unset=as_fn_unset cannam@126: # as_fn_append VAR VALUE cannam@126: # ---------------------- cannam@126: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@126: # advantage of any shell optimizations that allow amortized linear growth over cannam@126: # repeated appends, instead of the typical quadratic growth present in naive cannam@126: # implementations. cannam@126: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@126: eval 'as_fn_append () cannam@126: { cannam@126: eval $1+=\$2 cannam@126: }' cannam@126: else cannam@126: as_fn_append () cannam@126: { cannam@126: eval $1=\$$1\$2 cannam@126: } cannam@126: fi # as_fn_append cannam@126: cannam@126: # as_fn_arith ARG... cannam@126: # ------------------ cannam@126: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@126: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@126: # must be portable across $(()) and expr. cannam@126: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@126: eval 'as_fn_arith () cannam@126: { cannam@126: as_val=$(( $* )) cannam@126: }' cannam@126: else cannam@126: as_fn_arith () cannam@126: { cannam@126: as_val=`expr "$@" || test $? -eq 1` cannam@126: } cannam@126: fi # as_fn_arith cannam@126: cannam@126: cannam@126: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@126: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@126: as_expr=expr cannam@126: else cannam@126: as_expr=false cannam@126: fi cannam@126: cannam@126: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@126: as_basename=basename cannam@126: else cannam@126: as_basename=false cannam@126: fi cannam@126: cannam@126: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@126: as_dirname=dirname cannam@126: else cannam@126: as_dirname=false cannam@126: fi cannam@126: cannam@126: as_me=`$as_basename -- "$0" || cannam@126: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@126: X"$0" : 'X\(//\)$' \| \ cannam@126: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X/"$0" | cannam@126: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\/\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\/\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: cannam@126: # Avoid depending upon Character Ranges. cannam@126: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@126: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@126: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@126: as_cr_digits='0123456789' cannam@126: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@126: cannam@126: ECHO_C= ECHO_N= ECHO_T= cannam@126: case `echo -n x` in #((((( cannam@126: -n*) cannam@126: case `echo 'xy\c'` in cannam@126: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@126: xy) ECHO_C='\c';; cannam@126: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@126: ECHO_T=' ';; cannam@126: esac;; cannam@126: *) cannam@126: ECHO_N='-n';; cannam@126: esac cannam@126: cannam@126: rm -f conf$$ conf$$.exe conf$$.file cannam@126: if test -d conf$$.dir; then cannam@126: rm -f conf$$.dir/conf$$.file cannam@126: else cannam@126: rm -f conf$$.dir cannam@126: mkdir conf$$.dir 2>/dev/null cannam@126: fi cannam@126: if (echo >conf$$.file) 2>/dev/null; then cannam@126: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@126: as_ln_s='ln -s' cannam@126: # ... but there are two gotchas: cannam@126: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@126: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@126: # In both cases, we have to default to `cp -pR'. cannam@126: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@126: as_ln_s='cp -pR' cannam@126: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@126: as_ln_s=ln cannam@126: else cannam@126: as_ln_s='cp -pR' cannam@126: fi cannam@126: else cannam@126: as_ln_s='cp -pR' cannam@126: fi cannam@126: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@126: rmdir conf$$.dir 2>/dev/null cannam@126: cannam@126: cannam@126: # as_fn_mkdir_p cannam@126: # ------------- cannam@126: # Create "$as_dir" as a directory, including parents if necessary. cannam@126: as_fn_mkdir_p () cannam@126: { cannam@126: cannam@126: case $as_dir in #( cannam@126: -*) as_dir=./$as_dir;; cannam@126: esac cannam@126: test -d "$as_dir" || eval $as_mkdir_p || { cannam@126: as_dirs= cannam@126: while :; do cannam@126: case $as_dir in #( cannam@126: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@126: *) as_qdir=$as_dir;; cannam@126: esac cannam@126: as_dirs="'$as_qdir' $as_dirs" cannam@126: as_dir=`$as_dirname -- "$as_dir" || cannam@126: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@126: X"$as_dir" : 'X\(//\)$' \| \ cannam@126: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$as_dir" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: test -d "$as_dir" && break cannam@126: done cannam@126: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@126: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@126: cannam@126: cannam@126: } # as_fn_mkdir_p cannam@126: if mkdir -p . 2>/dev/null; then cannam@126: as_mkdir_p='mkdir -p "$as_dir"' cannam@126: else cannam@126: test -d ./-p && rmdir ./-p cannam@126: as_mkdir_p=false cannam@126: fi cannam@126: cannam@126: cannam@126: # as_fn_executable_p FILE cannam@126: # ----------------------- cannam@126: # Test if FILE is an executable regular file. cannam@126: as_fn_executable_p () cannam@126: { cannam@126: test -f "$1" && test -x "$1" cannam@126: } # as_fn_executable_p cannam@126: as_test_x='test -x' cannam@126: as_executable_p=as_fn_executable_p cannam@126: cannam@126: # Sed expression to map a string onto a valid CPP name. cannam@126: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@126: cannam@126: # Sed expression to map a string onto a valid variable name. cannam@126: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@126: cannam@126: cannam@126: exec 6>&1 cannam@126: ## ----------------------------------- ## cannam@126: ## Main body of $CONFIG_STATUS script. ## cannam@126: ## ----------------------------------- ## cannam@126: _ASEOF cannam@126: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: # Save the log message, to keep $0 and so on meaningful, and to cannam@126: # report actual input values of CONFIG_FILES etc. instead of their cannam@126: # values after options handling. cannam@126: ac_log=" cannam@126: This file was extended by libsamplerate $as_me 0.1.9, which was cannam@126: generated by GNU Autoconf 2.69. Invocation command line was cannam@126: cannam@126: CONFIG_FILES = $CONFIG_FILES cannam@126: CONFIG_HEADERS = $CONFIG_HEADERS cannam@126: CONFIG_LINKS = $CONFIG_LINKS cannam@126: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@126: $ $0 $@ cannam@126: cannam@126: on `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@126: " cannam@126: cannam@126: _ACEOF cannam@126: cannam@126: case $ac_config_files in *" cannam@126: "*) set x $ac_config_files; shift; ac_config_files=$*;; cannam@126: esac cannam@126: cannam@126: case $ac_config_headers in *" cannam@126: "*) set x $ac_config_headers; shift; ac_config_headers=$*;; cannam@126: esac cannam@126: cannam@126: cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: # Files that config.status was made for. cannam@126: config_files="$ac_config_files" cannam@126: config_headers="$ac_config_headers" cannam@126: config_commands="$ac_config_commands" cannam@126: cannam@126: _ACEOF cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: ac_cs_usage="\ cannam@126: \`$as_me' instantiates files and other configuration actions cannam@126: from templates according to the current configuration. Unless the files cannam@126: and actions are specified as TAGs, all are instantiated by default. cannam@126: cannam@126: Usage: $0 [OPTION]... [TAG]... cannam@126: cannam@126: -h, --help print this help, then exit cannam@126: -V, --version print version number and configuration settings, then exit cannam@126: --config print configuration, then exit cannam@126: -q, --quiet, --silent cannam@126: do not print progress messages cannam@126: -d, --debug don't remove temporary files cannam@126: --recheck update $as_me by reconfiguring in the same conditions cannam@126: --file=FILE[:TEMPLATE] cannam@126: instantiate the configuration file FILE cannam@126: --header=FILE[:TEMPLATE] cannam@126: instantiate the configuration header FILE cannam@126: cannam@126: Configuration files: cannam@126: $config_files cannam@126: cannam@126: Configuration headers: cannam@126: $config_headers cannam@126: cannam@126: Configuration commands: cannam@126: $config_commands cannam@126: cannam@126: Report bugs to . cannam@126: libsamplerate home page: ." cannam@126: cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" cannam@126: ac_cs_version="\\ cannam@126: libsamplerate config.status 0.1.9 cannam@126: configured by $0, generated by GNU Autoconf 2.69, cannam@126: with options \\"\$ac_cs_config\\" cannam@126: cannam@126: Copyright (C) 2012 Free Software Foundation, Inc. cannam@126: This config.status script is free software; the Free Software Foundation cannam@126: gives unlimited permission to copy, distribute and modify it." cannam@126: cannam@126: ac_pwd='$ac_pwd' cannam@126: srcdir='$srcdir' cannam@126: INSTALL='$INSTALL' cannam@126: MKDIR_P='$MKDIR_P' cannam@126: AWK='$AWK' cannam@126: test -n "\$AWK" || AWK=awk cannam@126: _ACEOF cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: # The default lists apply if the user does not specify any file. cannam@126: ac_need_defaults=: cannam@126: while test $# != 0 cannam@126: do cannam@126: case $1 in cannam@126: --*=?*) cannam@126: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@126: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` cannam@126: ac_shift=: cannam@126: ;; cannam@126: --*=) cannam@126: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@126: ac_optarg= cannam@126: ac_shift=: cannam@126: ;; cannam@126: *) cannam@126: ac_option=$1 cannam@126: ac_optarg=$2 cannam@126: ac_shift=shift cannam@126: ;; cannam@126: esac cannam@126: cannam@126: case $ac_option in cannam@126: # Handling of the options. cannam@126: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@126: ac_cs_recheck=: ;; cannam@126: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) cannam@126: $as_echo "$ac_cs_version"; exit ;; cannam@126: --config | --confi | --conf | --con | --co | --c ) cannam@126: $as_echo "$ac_cs_config"; exit ;; cannam@126: --debug | --debu | --deb | --de | --d | -d ) cannam@126: debug=: ;; cannam@126: --file | --fil | --fi | --f ) cannam@126: $ac_shift cannam@126: case $ac_optarg in cannam@126: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@126: '') as_fn_error $? "missing file argument" ;; cannam@126: esac cannam@126: as_fn_append CONFIG_FILES " '$ac_optarg'" cannam@126: ac_need_defaults=false;; cannam@126: --header | --heade | --head | --hea ) cannam@126: $ac_shift cannam@126: case $ac_optarg in cannam@126: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@126: esac cannam@126: as_fn_append CONFIG_HEADERS " '$ac_optarg'" cannam@126: ac_need_defaults=false;; cannam@126: --he | --h) cannam@126: # Conflict between --help and --header cannam@126: as_fn_error $? "ambiguous option: \`$1' cannam@126: Try \`$0 --help' for more information.";; cannam@126: --help | --hel | -h ) cannam@126: $as_echo "$ac_cs_usage"; exit ;; cannam@126: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@126: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@126: ac_cs_silent=: ;; cannam@126: cannam@126: # This is an error. cannam@126: -*) as_fn_error $? "unrecognized option: \`$1' cannam@126: Try \`$0 --help' for more information." ;; cannam@126: cannam@126: *) as_fn_append ac_config_targets " $1" cannam@126: ac_need_defaults=false ;; cannam@126: cannam@126: esac cannam@126: shift cannam@126: done cannam@126: cannam@126: ac_configure_extra_args= cannam@126: cannam@126: if $ac_cs_silent; then cannam@126: exec 6>/dev/null cannam@126: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@126: fi cannam@126: cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: if \$ac_cs_recheck; then cannam@126: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@126: shift cannam@126: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 cannam@126: CONFIG_SHELL='$SHELL' cannam@126: export CONFIG_SHELL cannam@126: exec "\$@" cannam@126: fi cannam@126: cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: exec 5>>config.log cannam@126: { cannam@126: echo cannam@126: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@126: ## Running $as_me. ## cannam@126: _ASBOX cannam@126: $as_echo "$ac_log" cannam@126: } >&5 cannam@126: cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: # cannam@126: # INIT-COMMANDS cannam@126: # cannam@126: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" cannam@126: cannam@126: cannam@126: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@126: # if CDPATH is set. cannam@126: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@126: cannam@126: sed_quote_subst='$sed_quote_subst' cannam@126: double_quote_subst='$double_quote_subst' cannam@126: delay_variable_subst='$delay_variable_subst' cannam@126: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' cannam@126: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' cannam@126: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' cannam@126: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' cannam@126: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' cannam@126: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' cannam@126: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' cannam@126: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' cannam@126: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' cannam@126: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' cannam@126: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' cannam@126: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' cannam@126: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' cannam@126: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' cannam@126: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' cannam@126: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' cannam@126: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' cannam@126: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' cannam@126: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' cannam@126: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' cannam@126: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' cannam@126: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' cannam@126: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' cannam@126: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' cannam@126: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' cannam@126: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' cannam@126: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' cannam@126: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' cannam@126: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' cannam@126: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' cannam@126: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' cannam@126: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' cannam@126: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' cannam@126: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' cannam@126: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' cannam@126: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' cannam@126: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' cannam@126: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' cannam@126: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' cannam@126: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' cannam@126: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' cannam@126: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' cannam@126: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' cannam@126: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' cannam@126: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' cannam@126: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' cannam@126: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' cannam@126: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' cannam@126: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' cannam@126: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' cannam@126: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' cannam@126: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' cannam@126: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' cannam@126: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' cannam@126: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' cannam@126: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' cannam@126: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' cannam@126: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' cannam@126: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' cannam@126: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' cannam@126: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' cannam@126: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' cannam@126: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@126: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' cannam@126: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' cannam@126: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' cannam@126: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' cannam@126: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' cannam@126: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' cannam@126: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' cannam@126: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' cannam@126: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' cannam@126: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' cannam@126: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' cannam@126: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' cannam@126: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' cannam@126: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' cannam@126: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' cannam@126: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' cannam@126: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' cannam@126: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' cannam@126: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' cannam@126: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' cannam@126: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' cannam@126: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' cannam@126: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' cannam@126: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' cannam@126: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' cannam@126: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' cannam@126: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' cannam@126: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' cannam@126: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' cannam@126: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' cannam@126: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' cannam@126: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' cannam@126: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' cannam@126: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' cannam@126: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' cannam@126: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' cannam@126: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' cannam@126: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' cannam@126: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' cannam@126: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' cannam@126: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' cannam@126: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' cannam@126: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' cannam@126: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' cannam@126: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' cannam@126: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' cannam@126: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' cannam@126: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' cannam@126: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' cannam@126: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`' cannam@126: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`' cannam@126: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`' cannam@126: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`' cannam@126: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' cannam@126: compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`' cannam@126: cannam@126: LTCC='$LTCC' cannam@126: LTCFLAGS='$LTCFLAGS' cannam@126: compiler='$compiler_DEFAULT' cannam@126: cannam@126: # A function that is used when there is no print builtin or printf. cannam@126: func_fallback_echo () cannam@126: { cannam@126: eval 'cat <<_LTECHO_EOF cannam@126: \$1 cannam@126: _LTECHO_EOF' cannam@126: } cannam@126: cannam@126: # Quote evaled strings. cannam@126: for var in SHELL \ cannam@126: ECHO \ cannam@126: PATH_SEPARATOR \ cannam@126: SED \ cannam@126: GREP \ cannam@126: EGREP \ cannam@126: FGREP \ cannam@126: LD \ cannam@126: NM \ cannam@126: LN_S \ cannam@126: lt_SP2NL \ cannam@126: lt_NL2SP \ cannam@126: reload_flag \ cannam@126: OBJDUMP \ cannam@126: deplibs_check_method \ cannam@126: file_magic_cmd \ cannam@126: file_magic_glob \ cannam@126: want_nocaseglob \ cannam@126: DLLTOOL \ cannam@126: sharedlib_from_linklib_cmd \ cannam@126: AR \ cannam@126: AR_FLAGS \ cannam@126: archiver_list_spec \ cannam@126: STRIP \ cannam@126: RANLIB \ cannam@126: CC \ cannam@126: CFLAGS \ cannam@126: compiler \ cannam@126: lt_cv_sys_global_symbol_pipe \ cannam@126: lt_cv_sys_global_symbol_to_cdecl \ cannam@126: lt_cv_sys_global_symbol_to_import \ cannam@126: lt_cv_sys_global_symbol_to_c_name_address \ cannam@126: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ cannam@126: lt_cv_nm_interface \ cannam@126: nm_file_list_spec \ cannam@126: lt_cv_truncate_bin \ cannam@126: lt_prog_compiler_no_builtin_flag \ cannam@126: lt_prog_compiler_pic \ cannam@126: lt_prog_compiler_wl \ cannam@126: lt_prog_compiler_static \ cannam@126: lt_cv_prog_compiler_c_o \ cannam@126: need_locks \ cannam@126: MANIFEST_TOOL \ cannam@126: DSYMUTIL \ cannam@126: NMEDIT \ cannam@126: LIPO \ cannam@126: OTOOL \ cannam@126: OTOOL64 \ cannam@126: shrext_cmds \ cannam@126: export_dynamic_flag_spec \ cannam@126: whole_archive_flag_spec \ cannam@126: compiler_needs_object \ cannam@126: with_gnu_ld \ cannam@126: allow_undefined_flag \ cannam@126: no_undefined_flag \ cannam@126: hardcode_libdir_flag_spec \ cannam@126: hardcode_libdir_separator \ cannam@126: exclude_expsyms \ cannam@126: include_expsyms \ cannam@126: file_list_spec \ cannam@126: variables_saved_for_relink \ cannam@126: libname_spec \ cannam@126: library_names_spec \ cannam@126: soname_spec \ cannam@126: install_override_mode \ cannam@126: finish_eval \ cannam@126: old_striplib \ cannam@126: striplib \ cannam@126: compiler_lib_search_dirs \ cannam@126: predep_objects \ cannam@126: postdep_objects \ cannam@126: predeps \ cannam@126: postdeps \ cannam@126: compiler_lib_search_path \ cannam@126: LD_CXX \ cannam@126: LD_RC \ cannam@126: reload_flag_CXX \ cannam@126: reload_flag_RC \ cannam@126: compiler_CXX \ cannam@126: compiler_RC \ cannam@126: lt_prog_compiler_no_builtin_flag_CXX \ cannam@126: lt_prog_compiler_no_builtin_flag_RC \ cannam@126: lt_prog_compiler_pic_CXX \ cannam@126: lt_prog_compiler_pic_RC \ cannam@126: lt_prog_compiler_wl_CXX \ cannam@126: lt_prog_compiler_wl_RC \ cannam@126: lt_prog_compiler_static_CXX \ cannam@126: lt_prog_compiler_static_RC \ cannam@126: lt_cv_prog_compiler_c_o_CXX \ cannam@126: lt_cv_prog_compiler_c_o_RC \ cannam@126: export_dynamic_flag_spec_CXX \ cannam@126: export_dynamic_flag_spec_RC \ cannam@126: whole_archive_flag_spec_CXX \ cannam@126: whole_archive_flag_spec_RC \ cannam@126: compiler_needs_object_CXX \ cannam@126: compiler_needs_object_RC \ cannam@126: with_gnu_ld_CXX \ cannam@126: with_gnu_ld_RC \ cannam@126: allow_undefined_flag_CXX \ cannam@126: allow_undefined_flag_RC \ cannam@126: no_undefined_flag_CXX \ cannam@126: no_undefined_flag_RC \ cannam@126: hardcode_libdir_flag_spec_CXX \ cannam@126: hardcode_libdir_flag_spec_RC \ cannam@126: hardcode_libdir_separator_CXX \ cannam@126: hardcode_libdir_separator_RC \ cannam@126: exclude_expsyms_CXX \ cannam@126: exclude_expsyms_RC \ cannam@126: include_expsyms_CXX \ cannam@126: include_expsyms_RC \ cannam@126: file_list_spec_CXX \ cannam@126: file_list_spec_RC \ cannam@126: compiler_lib_search_dirs_CXX \ cannam@126: compiler_lib_search_dirs_RC \ cannam@126: predep_objects_CXX \ cannam@126: predep_objects_RC \ cannam@126: postdep_objects_CXX \ cannam@126: postdep_objects_RC \ cannam@126: predeps_CXX \ cannam@126: predeps_RC \ cannam@126: postdeps_CXX \ cannam@126: postdeps_RC \ cannam@126: compiler_lib_search_path_CXX \ cannam@126: compiler_lib_search_path_RC; do cannam@126: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in cannam@126: *[\\\\\\\`\\"\\\$]*) cannam@126: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes cannam@126: ;; cannam@126: *) cannam@126: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@126: ;; cannam@126: esac cannam@126: done cannam@126: cannam@126: # Double-quote double-evaled strings. cannam@126: for var in reload_cmds \ cannam@126: old_postinstall_cmds \ cannam@126: old_postuninstall_cmds \ cannam@126: old_archive_cmds \ cannam@126: extract_expsyms_cmds \ cannam@126: old_archive_from_new_cmds \ cannam@126: old_archive_from_expsyms_cmds \ cannam@126: archive_cmds \ cannam@126: archive_expsym_cmds \ cannam@126: module_cmds \ cannam@126: module_expsym_cmds \ cannam@126: export_symbols_cmds \ cannam@126: prelink_cmds \ cannam@126: postlink_cmds \ cannam@126: postinstall_cmds \ cannam@126: postuninstall_cmds \ cannam@126: finish_cmds \ cannam@126: sys_lib_search_path_spec \ cannam@126: configure_time_dlsearch_path \ cannam@126: configure_time_lt_sys_library_path \ cannam@126: reload_cmds_CXX \ cannam@126: reload_cmds_RC \ cannam@126: old_archive_cmds_CXX \ cannam@126: old_archive_cmds_RC \ cannam@126: old_archive_from_new_cmds_CXX \ cannam@126: old_archive_from_new_cmds_RC \ cannam@126: old_archive_from_expsyms_cmds_CXX \ cannam@126: old_archive_from_expsyms_cmds_RC \ cannam@126: archive_cmds_CXX \ cannam@126: archive_cmds_RC \ cannam@126: archive_expsym_cmds_CXX \ cannam@126: archive_expsym_cmds_RC \ cannam@126: module_cmds_CXX \ cannam@126: module_cmds_RC \ cannam@126: module_expsym_cmds_CXX \ cannam@126: module_expsym_cmds_RC \ cannam@126: export_symbols_cmds_CXX \ cannam@126: export_symbols_cmds_RC \ cannam@126: prelink_cmds_CXX \ cannam@126: prelink_cmds_RC \ cannam@126: postlink_cmds_CXX \ cannam@126: postlink_cmds_RC; do cannam@126: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in cannam@126: *[\\\\\\\`\\"\\\$]*) cannam@126: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes cannam@126: ;; cannam@126: *) cannam@126: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@126: ;; cannam@126: esac cannam@126: done cannam@126: cannam@126: ac_aux_dir='$ac_aux_dir' cannam@126: cannam@126: # See if we are running on zsh, and set the options that allow our cannam@126: # commands through without removal of \ escapes INIT. cannam@126: if test -n "\${ZSH_VERSION+set}"; then cannam@126: setopt NO_GLOB_SUBST cannam@126: fi cannam@126: cannam@126: cannam@126: PACKAGE='$PACKAGE' cannam@126: VERSION='$VERSION' cannam@126: RM='$RM' cannam@126: ofile='$ofile' cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: _ACEOF cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: cannam@126: # Handling of arguments. cannam@126: for ac_config_target in $ac_config_targets cannam@126: do cannam@126: case $ac_config_target in cannam@126: "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; cannam@126: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; cannam@126: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; cannam@126: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@126: "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;; cannam@126: "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;; cannam@126: "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;; cannam@126: "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;; cannam@126: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; cannam@126: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; cannam@126: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; cannam@126: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; cannam@126: "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;; cannam@126: "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;; cannam@126: cannam@126: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; cannam@126: esac cannam@126: done cannam@126: cannam@126: cannam@126: # If the user did not use the arguments to specify the items to instantiate, cannam@126: # then the envvar interface is used. Set only those that are not. cannam@126: # We use the long form for the default assignment because of an extremely cannam@126: # bizarre bug on SunOS 4.1.3. cannam@126: if $ac_need_defaults; then cannam@126: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@126: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers cannam@126: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands cannam@126: fi cannam@126: cannam@126: # Have a temporary directory for convenience. Make it in the build tree cannam@126: # simply because there is no reason against having it here, and in addition, cannam@126: # creating and moving files from /tmp can sometimes cause problems. cannam@126: # Hook for its removal unless debugging. cannam@126: # Note that there is a small window in which the directory will not be cleaned: cannam@126: # after its creation but before its name has been assigned to `$tmp'. cannam@126: $debug || cannam@126: { cannam@126: tmp= ac_tmp= cannam@126: trap 'exit_status=$? cannam@126: : "${ac_tmp:=$tmp}" cannam@126: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status cannam@126: ' 0 cannam@126: trap 'as_fn_exit 1' 1 2 13 15 cannam@126: } cannam@126: # Create a (secure) tmp directory for tmp files. cannam@126: cannam@126: { cannam@126: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && cannam@126: test -d "$tmp" cannam@126: } || cannam@126: { cannam@126: tmp=./conf$$-$RANDOM cannam@126: (umask 077 && mkdir "$tmp") cannam@126: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 cannam@126: ac_tmp=$tmp cannam@126: cannam@126: # Set up the scripts for CONFIG_FILES section. cannam@126: # No need to generate them if there are no CONFIG_FILES. cannam@126: # This happens for instance with `./config.status config.h'. cannam@126: if test -n "$CONFIG_FILES"; then cannam@126: cannam@126: cannam@126: ac_cr=`echo X | tr X '\015'` cannam@126: # On cygwin, bash can eat \r inside `` if the user requested igncr. cannam@126: # But we know of no other shell where ac_cr would be empty at this cannam@126: # point, so we can use a bashism as a fallback. cannam@126: if test "x$ac_cr" = x; then cannam@126: eval ac_cr=\$\'\\r\' cannam@126: fi cannam@126: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` cannam@126: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then cannam@126: ac_cs_awk_cr='\\r' cannam@126: else cannam@126: ac_cs_awk_cr=$ac_cr cannam@126: fi cannam@126: cannam@126: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && cannam@126: _ACEOF cannam@126: cannam@126: cannam@126: { cannam@126: echo "cat >conf$$subs.awk <<_ACEOF" && cannam@126: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && cannam@126: echo "_ACEOF" cannam@126: } >conf$$subs.sh || cannam@126: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@126: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` cannam@126: ac_delim='%!_!# ' cannam@126: for ac_last_try in false false false false false :; do cannam@126: . ./conf$$subs.sh || cannam@126: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@126: cannam@126: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` cannam@126: if test $ac_delim_n = $ac_delim_num; then cannam@126: break cannam@126: elif $ac_last_try; then cannam@126: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@126: else cannam@126: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@126: fi cannam@126: done cannam@126: rm -f conf$$subs.sh cannam@126: cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && cannam@126: _ACEOF cannam@126: sed -n ' cannam@126: h cannam@126: s/^/S["/; s/!.*/"]=/ cannam@126: p cannam@126: g cannam@126: s/^[^!]*!// cannam@126: :repl cannam@126: t repl cannam@126: s/'"$ac_delim"'$// cannam@126: t delim cannam@126: :nl cannam@126: h cannam@126: s/\(.\{148\}\)..*/\1/ cannam@126: t more1 cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ cannam@126: p cannam@126: n cannam@126: b repl cannam@126: :more1 cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@126: p cannam@126: g cannam@126: s/.\{148\}// cannam@126: t nl cannam@126: :delim cannam@126: h cannam@126: s/\(.\{148\}\)..*/\1/ cannam@126: t more2 cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/"/ cannam@126: p cannam@126: b cannam@126: :more2 cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@126: p cannam@126: g cannam@126: s/.\{148\}// cannam@126: t delim cannam@126: ' >$CONFIG_STATUS || ac_write_fail=1 cannam@126: rm -f conf$$subs.awk cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: _ACAWK cannam@126: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && cannam@126: for (key in S) S_is_set[key] = 1 cannam@126: FS = "" cannam@126: cannam@126: } cannam@126: { cannam@126: line = $ 0 cannam@126: nfields = split(line, field, "@") cannam@126: substed = 0 cannam@126: len = length(field[1]) cannam@126: for (i = 2; i < nfields; i++) { cannam@126: key = field[i] cannam@126: keylen = length(key) cannam@126: if (S_is_set[key]) { cannam@126: value = S[key] cannam@126: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) cannam@126: len += length(value) + length(field[++i]) cannam@126: substed = 1 cannam@126: } else cannam@126: len += 1 + keylen cannam@126: } cannam@126: cannam@126: print line cannam@126: } cannam@126: cannam@126: _ACAWK cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then cannam@126: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" cannam@126: else cannam@126: cat cannam@126: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ cannam@126: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 cannam@126: _ACEOF cannam@126: cannam@126: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), cannam@126: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and cannam@126: # trailing colons and then remove the whole line if VPATH becomes empty cannam@126: # (actually we leave an empty line to preserve line numbers). cannam@126: if test "x$srcdir" = x.; then cannam@126: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ cannam@126: h cannam@126: s/// cannam@126: s/^/:/ cannam@126: s/[ ]*$/:/ cannam@126: s/:\$(srcdir):/:/g cannam@126: s/:\${srcdir}:/:/g cannam@126: s/:@srcdir@:/:/g cannam@126: s/^:*// cannam@126: s/:*$// cannam@126: x cannam@126: s/\(=[ ]*\).*/\1/ cannam@126: G cannam@126: s/\n// cannam@126: s/^[^=]*=[ ]*$// cannam@126: }' cannam@126: fi cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: fi # test -n "$CONFIG_FILES" cannam@126: cannam@126: # Set up the scripts for CONFIG_HEADERS section. cannam@126: # No need to generate them if there are no CONFIG_HEADERS. cannam@126: # This happens for instance with `./config.status Makefile'. cannam@126: if test -n "$CONFIG_HEADERS"; then cannam@126: cat >"$ac_tmp/defines.awk" <<\_ACAWK || cannam@126: BEGIN { cannam@126: _ACEOF cannam@126: cannam@126: # Transform confdefs.h into an awk script `defines.awk', embedded as cannam@126: # here-document in config.status, that substitutes the proper values into cannam@126: # config.h.in to produce config.h. cannam@126: cannam@126: # Create a delimiter string that does not exist in confdefs.h, to ease cannam@126: # handling of long lines. cannam@126: ac_delim='%!_!# ' cannam@126: for ac_last_try in false false :; do cannam@126: ac_tt=`sed -n "/$ac_delim/p" confdefs.h` cannam@126: if test -z "$ac_tt"; then cannam@126: break cannam@126: elif $ac_last_try; then cannam@126: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 cannam@126: else cannam@126: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@126: fi cannam@126: done cannam@126: cannam@126: # For the awk script, D is an array of macro values keyed by name, cannam@126: # likewise P contains macro parameters if any. Preserve backslash cannam@126: # newline sequences. cannam@126: cannam@126: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* cannam@126: sed -n ' cannam@126: s/.\{148\}/&'"$ac_delim"'/g cannam@126: t rset cannam@126: :rset cannam@126: s/^[ ]*#[ ]*define[ ][ ]*/ / cannam@126: t def cannam@126: d cannam@126: :def cannam@126: s/\\$// cannam@126: t bsnl cannam@126: s/["\\]/\\&/g cannam@126: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ cannam@126: D["\1"]=" \3"/p cannam@126: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p cannam@126: d cannam@126: :bsnl cannam@126: s/["\\]/\\&/g cannam@126: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ cannam@126: D["\1"]=" \3\\\\\\n"\\/p cannam@126: t cont cannam@126: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p cannam@126: t cont cannam@126: d cannam@126: :cont cannam@126: n cannam@126: s/.\{148\}/&'"$ac_delim"'/g cannam@126: t clear cannam@126: :clear cannam@126: s/\\$// cannam@126: t bsnlc cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/"/p cannam@126: d cannam@126: :bsnlc cannam@126: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p cannam@126: b cont cannam@126: ' >$CONFIG_STATUS || ac_write_fail=1 cannam@126: cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: for (key in D) D_is_set[key] = 1 cannam@126: FS = "" cannam@126: } cannam@126: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { cannam@126: line = \$ 0 cannam@126: split(line, arg, " ") cannam@126: if (arg[1] == "#") { cannam@126: defundef = arg[2] cannam@126: mac1 = arg[3] cannam@126: } else { cannam@126: defundef = substr(arg[1], 2) cannam@126: mac1 = arg[2] cannam@126: } cannam@126: split(mac1, mac2, "(") #) cannam@126: macro = mac2[1] cannam@126: prefix = substr(line, 1, index(line, defundef) - 1) cannam@126: if (D_is_set[macro]) { cannam@126: # Preserve the white space surrounding the "#". cannam@126: print prefix "define", macro P[macro] D[macro] cannam@126: next cannam@126: } else { cannam@126: # Replace #undef with comments. This is necessary, for example, cannam@126: # in the case of _POSIX_SOURCE, which is predefined and required cannam@126: # on some systems where configure will not decide to define it. cannam@126: if (defundef == "undef") { cannam@126: print "/*", prefix defundef, macro, "*/" cannam@126: next cannam@126: } cannam@126: } cannam@126: } cannam@126: { print } cannam@126: _ACAWK cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 cannam@126: fi # test -n "$CONFIG_HEADERS" cannam@126: cannam@126: cannam@126: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" cannam@126: shift cannam@126: for ac_tag cannam@126: do cannam@126: case $ac_tag in cannam@126: :[FHLC]) ac_mode=$ac_tag; continue;; cannam@126: esac cannam@126: case $ac_mode$ac_tag in cannam@126: :[FHL]*:*);; cannam@126: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; cannam@126: :[FH]-) ac_tag=-:-;; cannam@126: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; cannam@126: esac cannam@126: ac_save_IFS=$IFS cannam@126: IFS=: cannam@126: set x $ac_tag cannam@126: IFS=$ac_save_IFS cannam@126: shift cannam@126: ac_file=$1 cannam@126: shift cannam@126: cannam@126: case $ac_mode in cannam@126: :L) ac_source=$1;; cannam@126: :[FH]) cannam@126: ac_file_inputs= cannam@126: for ac_f cannam@126: do cannam@126: case $ac_f in cannam@126: -) ac_f="$ac_tmp/stdin";; cannam@126: *) # Look for the file first in the build tree, then in the source tree cannam@126: # (if the path is not absolute). The absolute path cannot be DOS-style, cannam@126: # because $ac_f cannot contain `:'. cannam@126: test -f "$ac_f" || cannam@126: case $ac_f in cannam@126: [\\/$]*) false;; cannam@126: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; cannam@126: esac || cannam@126: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; cannam@126: esac cannam@126: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac cannam@126: as_fn_append ac_file_inputs " '$ac_f'" cannam@126: done cannam@126: cannam@126: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@126: # use $as_me), people would be surprised to read: cannam@126: # /* config.h. Generated by config.status. */ cannam@126: configure_input='Generated from '` cannam@126: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' cannam@126: `' by configure.' cannam@126: if test x"$ac_file" != x-; then cannam@126: configure_input="$ac_file. $configure_input" cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 cannam@126: $as_echo "$as_me: creating $ac_file" >&6;} cannam@126: fi cannam@126: # Neutralize special characters interpreted by sed in replacement strings. cannam@126: case $configure_input in #( cannam@126: *\&* | *\|* | *\\* ) cannam@126: ac_sed_conf_input=`$as_echo "$configure_input" | cannam@126: sed 's/[\\\\&|]/\\\\&/g'`;; #( cannam@126: *) ac_sed_conf_input=$configure_input;; cannam@126: esac cannam@126: cannam@126: case $ac_tag in cannam@126: *:-:* | *:-) cat >"$ac_tmp/stdin" \ cannam@126: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; cannam@126: esac cannam@126: ;; cannam@126: esac cannam@126: cannam@126: ac_dir=`$as_dirname -- "$ac_file" || cannam@126: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@126: X"$ac_file" : 'X\(//\)$' \| \ cannam@126: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$ac_file" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: as_dir="$ac_dir"; as_fn_mkdir_p cannam@126: ac_builddir=. cannam@126: cannam@126: case "$ac_dir" in cannam@126: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@126: *) cannam@126: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@126: # A ".." for each directory in $ac_dir_suffix. cannam@126: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@126: case $ac_top_builddir_sub in cannam@126: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@126: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@126: esac ;; cannam@126: esac cannam@126: ac_abs_top_builddir=$ac_pwd cannam@126: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@126: # for backward compatibility: cannam@126: ac_top_builddir=$ac_top_build_prefix cannam@126: cannam@126: case $srcdir in cannam@126: .) # We are building in place. cannam@126: ac_srcdir=. cannam@126: ac_top_srcdir=$ac_top_builddir_sub cannam@126: ac_abs_top_srcdir=$ac_pwd ;; cannam@126: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@126: ac_srcdir=$srcdir$ac_dir_suffix; cannam@126: ac_top_srcdir=$srcdir cannam@126: ac_abs_top_srcdir=$srcdir ;; cannam@126: *) # Relative name. cannam@126: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@126: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@126: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@126: esac cannam@126: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@126: cannam@126: cannam@126: case $ac_mode in cannam@126: :F) cannam@126: # cannam@126: # CONFIG_FILE cannam@126: # cannam@126: cannam@126: case $INSTALL in cannam@126: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; cannam@126: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; cannam@126: esac cannam@126: ac_MKDIR_P=$MKDIR_P cannam@126: case $MKDIR_P in cannam@126: [\\/$]* | ?:[\\/]* ) ;; cannam@126: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; cannam@126: esac cannam@126: _ACEOF cannam@126: cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: # If the template does not know about datarootdir, expand it. cannam@126: # FIXME: This hack should be removed a few years after 2.60. cannam@126: ac_datarootdir_hack=; ac_datarootdir_seen= cannam@126: ac_sed_dataroot=' cannam@126: /datarootdir/ { cannam@126: p cannam@126: q cannam@126: } cannam@126: /@datadir@/p cannam@126: /@docdir@/p cannam@126: /@infodir@/p cannam@126: /@localedir@/p cannam@126: /@mandir@/p' cannam@126: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in cannam@126: *datarootdir*) ac_datarootdir_seen=yes;; cannam@126: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 cannam@126: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: ac_datarootdir_hack=' cannam@126: s&@datadir@&$datadir&g cannam@126: s&@docdir@&$docdir&g cannam@126: s&@infodir@&$infodir&g cannam@126: s&@localedir@&$localedir&g cannam@126: s&@mandir@&$mandir&g cannam@126: s&\\\${datarootdir}&$datarootdir&g' ;; cannam@126: esac cannam@126: _ACEOF cannam@126: cannam@126: # Neutralize VPATH when `$srcdir' = `.'. cannam@126: # Shell code in configure.ac might set extrasub. cannam@126: # FIXME: do we really want to maintain this feature? cannam@126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@126: ac_sed_extra="$ac_vpsub cannam@126: $extrasub cannam@126: _ACEOF cannam@126: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@126: :t cannam@126: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@126: s|@configure_input@|$ac_sed_conf_input|;t t cannam@126: s&@top_builddir@&$ac_top_builddir_sub&;t t cannam@126: s&@top_build_prefix@&$ac_top_build_prefix&;t t cannam@126: s&@srcdir@&$ac_srcdir&;t t cannam@126: s&@abs_srcdir@&$ac_abs_srcdir&;t t cannam@126: s&@top_srcdir@&$ac_top_srcdir&;t t cannam@126: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t cannam@126: s&@builddir@&$ac_builddir&;t t cannam@126: s&@abs_builddir@&$ac_abs_builddir&;t t cannam@126: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t cannam@126: s&@INSTALL@&$ac_INSTALL&;t t cannam@126: s&@MKDIR_P@&$ac_MKDIR_P&;t t cannam@126: $ac_datarootdir_hack cannam@126: " cannam@126: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ cannam@126: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@126: cannam@126: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && cannam@126: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && cannam@126: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ cannam@126: "$ac_tmp/out"`; test -z "$ac_out"; } && cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@126: which seems to be undefined. Please make sure it is defined" >&5 cannam@126: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@126: which seems to be undefined. Please make sure it is defined" >&2;} cannam@126: cannam@126: rm -f "$ac_tmp/stdin" cannam@126: case $ac_file in cannam@126: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; cannam@126: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; cannam@126: esac \ cannam@126: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@126: ;; cannam@126: :H) cannam@126: # cannam@126: # CONFIG_HEADER cannam@126: # cannam@126: if test x"$ac_file" != x-; then cannam@126: { cannam@126: $as_echo "/* $configure_input */" \ cannam@126: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" cannam@126: } >"$ac_tmp/config.h" \ cannam@126: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@126: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 cannam@126: $as_echo "$as_me: $ac_file is unchanged" >&6;} cannam@126: else cannam@126: rm -f "$ac_file" cannam@126: mv "$ac_tmp/config.h" "$ac_file" \ cannam@126: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@126: fi cannam@126: else cannam@126: $as_echo "/* $configure_input */" \ cannam@126: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ cannam@126: || as_fn_error $? "could not create -" "$LINENO" 5 cannam@126: fi cannam@126: # Compute "$ac_file"'s index in $config_headers. cannam@126: _am_arg="$ac_file" cannam@126: _am_stamp_count=1 cannam@126: for _am_header in $config_headers :; do cannam@126: case $_am_header in cannam@126: $_am_arg | $_am_arg:* ) cannam@126: break ;; cannam@126: * ) cannam@126: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@126: esac cannam@126: done cannam@126: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || cannam@126: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$_am_arg" : 'X\(//\)[^/]' \| \ cannam@126: X"$_am_arg" : 'X\(//\)$' \| \ cannam@126: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$_am_arg" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'`/stamp-h$_am_stamp_count cannam@126: ;; cannam@126: cannam@126: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 cannam@126: $as_echo "$as_me: executing $ac_file commands" >&6;} cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: case $ac_file$ac_mode in cannam@126: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { cannam@126: # Older Autoconf quotes --file arguments for eval, but not when files cannam@126: # are listed without --file. Let's play safe and only enable the eval cannam@126: # if we detect the quoting. cannam@126: case $CONFIG_FILES in cannam@126: *\'*) eval set x "$CONFIG_FILES" ;; cannam@126: *) set x $CONFIG_FILES ;; cannam@126: esac cannam@126: shift cannam@126: for mf cannam@126: do cannam@126: # Strip MF so we end up with the name of the file. cannam@126: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@126: # Check whether this is an Automake generated Makefile or not. cannam@126: # We used to match only the files named 'Makefile.in', but cannam@126: # some people rename them; so instead we look at the file content. cannam@126: # Grep'ing the first line is not enough: some people post-process cannam@126: # each Makefile.in and add a new line on top of each file to say so. cannam@126: # Grep'ing the whole file is not good either: AIX grep has a line cannam@126: # limit of 2048, but all sed's we know have understand at least 4000. cannam@126: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then cannam@126: dirpart=`$as_dirname -- "$mf" || cannam@126: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$mf" : 'X\(//\)[^/]' \| \ cannam@126: X"$mf" : 'X\(//\)$' \| \ cannam@126: X"$mf" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$mf" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: else cannam@126: continue cannam@126: fi cannam@126: # Extract the definition of DEPDIR, am__include, and am__quote cannam@126: # from the Makefile without running 'make'. cannam@126: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` cannam@126: test -z "$DEPDIR" && continue cannam@126: am__include=`sed -n 's/^am__include = //p' < "$mf"` cannam@126: test -z "$am__include" && continue cannam@126: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` cannam@126: # Find all dependency output files, they are included files with cannam@126: # $(DEPDIR) in their names. We invoke sed twice because it is the cannam@126: # simplest approach to changing $(DEPDIR) to its actual value in the cannam@126: # expansion. cannam@126: for file in `sed -n " cannam@126: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ cannam@126: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do cannam@126: # Make sure the directory exists. cannam@126: test -f "$dirpart/$file" && continue cannam@126: fdir=`$as_dirname -- "$file" || cannam@126: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@126: X"$file" : 'X\(//\)[^/]' \| \ cannam@126: X"$file" : 'X\(//\)$' \| \ cannam@126: X"$file" : 'X\(/\)' \| . 2>/dev/null || cannam@126: $as_echo X"$file" | cannam@126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)[^/].*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\/\)$/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: /^X\(\/\).*/{ cannam@126: s//\1/ cannam@126: q cannam@126: } cannam@126: s/.*/./; q'` cannam@126: as_dir=$dirpart/$fdir; as_fn_mkdir_p cannam@126: # echo "creating $dirpart/$file" cannam@126: echo '# dummy' > "$dirpart/$file" cannam@126: done cannam@126: done cannam@126: } cannam@126: ;; cannam@126: "libtool":C) cannam@126: cannam@126: # See if we are running on zsh, and set the options that allow our cannam@126: # commands through without removal of \ escapes. cannam@126: if test -n "${ZSH_VERSION+set}"; then cannam@126: setopt NO_GLOB_SUBST cannam@126: fi cannam@126: cannam@126: cfgfile=${ofile}T cannam@126: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 cannam@126: $RM "$cfgfile" cannam@126: cannam@126: cat <<_LT_EOF >> "$cfgfile" cannam@126: #! $SHELL cannam@126: # Generated automatically by $as_me ($PACKAGE) $VERSION cannam@126: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@126: cannam@126: # Provide generalized library-building support services. cannam@126: # Written by Gordon Matzigkeit, 1996 cannam@126: cannam@126: # Copyright (C) 2014 Free Software Foundation, Inc. cannam@126: # This is free software; see the source for copying conditions. There is NO cannam@126: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. cannam@126: cannam@126: # GNU Libtool is free software; you can redistribute it and/or modify cannam@126: # it under the terms of the GNU General Public License as published by cannam@126: # the Free Software Foundation; either version 2 of of the License, or cannam@126: # (at your option) any later version. cannam@126: # cannam@126: # As a special exception to the GNU General Public License, if you cannam@126: # distribute this file as part of a program or library that is built cannam@126: # using GNU Libtool, you may include this file under the same cannam@126: # distribution terms that you use for the rest of that program. cannam@126: # cannam@126: # GNU Libtool is distributed in the hope that it will be useful, but cannam@126: # WITHOUT ANY WARRANTY; without even the implied warranty of cannam@126: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@126: # GNU General Public License for more details. cannam@126: # cannam@126: # You should have received a copy of the GNU General Public License cannam@126: # along with this program. If not, see . cannam@126: cannam@126: cannam@126: # The names of the tagged configurations supported by this script. cannam@126: available_tags='CXX RC ' cannam@126: cannam@126: # Configured defaults for sys_lib_dlsearch_path munging. cannam@126: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} cannam@126: cannam@126: # ### BEGIN LIBTOOL CONFIG cannam@126: cannam@126: # Which release of libtool.m4 was used? cannam@126: macro_version=$macro_version cannam@126: macro_revision=$macro_revision cannam@126: cannam@126: # Whether or not to build shared libraries. cannam@126: build_libtool_libs=$enable_shared cannam@126: cannam@126: # Whether or not to build static libraries. cannam@126: build_old_libs=$enable_static cannam@126: cannam@126: # What type of objects to build. cannam@126: pic_mode=$pic_mode cannam@126: cannam@126: # Whether or not to optimize for fast installation. cannam@126: fast_install=$enable_fast_install cannam@126: cannam@126: # Shared archive member basename,for filename based shared library versioning on AIX. cannam@126: shared_archive_member_spec=$shared_archive_member_spec cannam@126: cannam@126: # Shell to use when invoking shell scripts. cannam@126: SHELL=$lt_SHELL cannam@126: cannam@126: # An echo program that protects backslashes. cannam@126: ECHO=$lt_ECHO cannam@126: cannam@126: # The PATH separator for the build system. cannam@126: PATH_SEPARATOR=$lt_PATH_SEPARATOR cannam@126: cannam@126: # The host system. cannam@126: host_alias=$host_alias cannam@126: host=$host cannam@126: host_os=$host_os cannam@126: cannam@126: # The build system. cannam@126: build_alias=$build_alias cannam@126: build=$build cannam@126: build_os=$build_os cannam@126: cannam@126: # A sed program that does not truncate output. cannam@126: SED=$lt_SED cannam@126: cannam@126: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@126: Xsed="\$SED -e 1s/^X//" cannam@126: cannam@126: # A grep program that handles long lines. cannam@126: GREP=$lt_GREP cannam@126: cannam@126: # An ERE matcher. cannam@126: EGREP=$lt_EGREP cannam@126: cannam@126: # A literal string matcher. cannam@126: FGREP=$lt_FGREP cannam@126: cannam@126: # A BSD- or MS-compatible name lister. cannam@126: NM=$lt_NM cannam@126: cannam@126: # Whether we need soft or hard links. cannam@126: LN_S=$lt_LN_S cannam@126: cannam@126: # What is the maximum length of a command? cannam@126: max_cmd_len=$max_cmd_len cannam@126: cannam@126: # Object file suffix (normally "o"). cannam@126: objext=$ac_objext cannam@126: cannam@126: # Executable file suffix (normally ""). cannam@126: exeext=$exeext cannam@126: cannam@126: # whether the shell understands "unset". cannam@126: lt_unset=$lt_unset cannam@126: cannam@126: # turn spaces into newlines. cannam@126: SP2NL=$lt_lt_SP2NL cannam@126: cannam@126: # turn newlines into spaces. cannam@126: NL2SP=$lt_lt_NL2SP cannam@126: cannam@126: # convert \$build file names to \$host format. cannam@126: to_host_file_cmd=$lt_cv_to_host_file_cmd cannam@126: cannam@126: # convert \$build files to toolchain format. cannam@126: to_tool_file_cmd=$lt_cv_to_tool_file_cmd cannam@126: cannam@126: # An object symbol dumper. cannam@126: OBJDUMP=$lt_OBJDUMP cannam@126: cannam@126: # Method to check whether dependent libraries are shared objects. cannam@126: deplibs_check_method=$lt_deplibs_check_method cannam@126: cannam@126: # Command to use when deplibs_check_method = "file_magic". cannam@126: file_magic_cmd=$lt_file_magic_cmd cannam@126: cannam@126: # How to find potential files when deplibs_check_method = "file_magic". cannam@126: file_magic_glob=$lt_file_magic_glob cannam@126: cannam@126: # Find potential files using nocaseglob when deplibs_check_method = "file_magic". cannam@126: want_nocaseglob=$lt_want_nocaseglob cannam@126: cannam@126: # DLL creation program. cannam@126: DLLTOOL=$lt_DLLTOOL cannam@126: cannam@126: # Command to associate shared and link libraries. cannam@126: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd cannam@126: cannam@126: # The archiver. cannam@126: AR=$lt_AR cannam@126: cannam@126: # Flags to create an archive. cannam@126: AR_FLAGS=$lt_AR_FLAGS cannam@126: cannam@126: # How to feed a file listing to the archiver. cannam@126: archiver_list_spec=$lt_archiver_list_spec cannam@126: cannam@126: # A symbol stripping program. cannam@126: STRIP=$lt_STRIP cannam@126: cannam@126: # Commands used to install an old-style archive. cannam@126: RANLIB=$lt_RANLIB cannam@126: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@126: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@126: cannam@126: # Whether to use a lock for old archive extraction. cannam@126: lock_old_archive_extraction=$lock_old_archive_extraction cannam@126: cannam@126: # A C compiler. cannam@126: LTCC=$lt_CC cannam@126: cannam@126: # LTCC compiler flags. cannam@126: LTCFLAGS=$lt_CFLAGS cannam@126: cannam@126: # Take the output of nm and produce a listing of raw symbols and C names. cannam@126: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@126: cannam@126: # Transform the output of nm in a proper C declaration. cannam@126: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@126: cannam@126: # Transform the output of nm into a list of symbols to manually relocate. cannam@126: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import cannam@126: cannam@126: # Transform the output of nm in a C name address pair. cannam@126: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@126: cannam@126: # Transform the output of nm in a C name address pair when lib prefix is needed. cannam@126: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix cannam@126: cannam@126: # The name lister interface. cannam@126: nm_interface=$lt_lt_cv_nm_interface cannam@126: cannam@126: # Specify filename containing input files for \$NM. cannam@126: nm_file_list_spec=$lt_nm_file_list_spec cannam@126: cannam@126: # The root where to search for dependent libraries,and where our libraries should be installed. cannam@126: lt_sysroot=$lt_sysroot cannam@126: cannam@126: # Command to truncate a binary pipe. cannam@126: lt_truncate_bin=$lt_lt_cv_truncate_bin cannam@126: cannam@126: # The name of the directory that contains temporary libtool files. cannam@126: objdir=$objdir cannam@126: cannam@126: # Used to examine libraries when file_magic_cmd begins with "file". cannam@126: MAGIC_CMD=$MAGIC_CMD cannam@126: cannam@126: # Must we lock files when doing compilation? cannam@126: need_locks=$lt_need_locks cannam@126: cannam@126: # Manifest tool. cannam@126: MANIFEST_TOOL=$lt_MANIFEST_TOOL cannam@126: cannam@126: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. cannam@126: DSYMUTIL=$lt_DSYMUTIL cannam@126: cannam@126: # Tool to change global to local symbols on Mac OS X. cannam@126: NMEDIT=$lt_NMEDIT cannam@126: cannam@126: # Tool to manipulate fat objects and archives on Mac OS X. cannam@126: LIPO=$lt_LIPO cannam@126: cannam@126: # ldd/readelf like tool for Mach-O binaries on Mac OS X. cannam@126: OTOOL=$lt_OTOOL cannam@126: cannam@126: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. cannam@126: OTOOL64=$lt_OTOOL64 cannam@126: cannam@126: # Old archive suffix (normally "a"). cannam@126: libext=$libext cannam@126: cannam@126: # Shared library suffix (normally ".so"). cannam@126: shrext_cmds=$lt_shrext_cmds cannam@126: cannam@126: # The commands to extract the exported symbol list from a shared archive. cannam@126: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@126: cannam@126: # Variables whose values should be saved in libtool wrapper scripts and cannam@126: # restored at link time. cannam@126: variables_saved_for_relink=$lt_variables_saved_for_relink cannam@126: cannam@126: # Do we need the "lib" prefix for modules? cannam@126: need_lib_prefix=$need_lib_prefix cannam@126: cannam@126: # Do we need a version for libraries? cannam@126: need_version=$need_version cannam@126: cannam@126: # Library versioning type. cannam@126: version_type=$version_type cannam@126: cannam@126: # Shared library runtime path variable. cannam@126: runpath_var=$runpath_var cannam@126: cannam@126: # Shared library path variable. cannam@126: shlibpath_var=$shlibpath_var cannam@126: cannam@126: # Is shlibpath searched before the hard-coded library search path? cannam@126: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@126: cannam@126: # Format of library name prefix. cannam@126: libname_spec=$lt_libname_spec cannam@126: cannam@126: # List of archive names. First name is the real one, the rest are links. cannam@126: # The last name is the one that the linker finds with -lNAME cannam@126: library_names_spec=$lt_library_names_spec cannam@126: cannam@126: # The coded name of the library, if different from the real name. cannam@126: soname_spec=$lt_soname_spec cannam@126: cannam@126: # Permission mode override for installation of shared libraries. cannam@126: install_override_mode=$lt_install_override_mode cannam@126: cannam@126: # Command to use after installation of a shared archive. cannam@126: postinstall_cmds=$lt_postinstall_cmds cannam@126: cannam@126: # Command to use after uninstallation of a shared archive. cannam@126: postuninstall_cmds=$lt_postuninstall_cmds cannam@126: cannam@126: # Commands used to finish a libtool library installation in a directory. cannam@126: finish_cmds=$lt_finish_cmds cannam@126: cannam@126: # As "finish_cmds", except a single script fragment to be evaled but cannam@126: # not shown. cannam@126: finish_eval=$lt_finish_eval cannam@126: cannam@126: # Whether we should hardcode library paths into libraries. cannam@126: hardcode_into_libs=$hardcode_into_libs cannam@126: cannam@126: # Compile-time system search path for libraries. cannam@126: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@126: cannam@126: # Detected run-time system search path for libraries. cannam@126: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path cannam@126: cannam@126: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. cannam@126: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path cannam@126: cannam@126: # Whether dlopen is supported. cannam@126: dlopen_support=$enable_dlopen cannam@126: cannam@126: # Whether dlopen of programs is supported. cannam@126: dlopen_self=$enable_dlopen_self cannam@126: cannam@126: # Whether dlopen of statically linked programs is supported. cannam@126: dlopen_self_static=$enable_dlopen_self_static cannam@126: cannam@126: # Commands to strip libraries. cannam@126: old_striplib=$lt_old_striplib cannam@126: striplib=$lt_striplib cannam@126: cannam@126: cannam@126: # The linker used to build libraries. cannam@126: LD=$lt_LD cannam@126: cannam@126: # How to create reloadable object files. cannam@126: reload_flag=$lt_reload_flag cannam@126: reload_cmds=$lt_reload_cmds cannam@126: cannam@126: # Commands used to build an old-style archive. cannam@126: old_archive_cmds=$lt_old_archive_cmds cannam@126: cannam@126: # A language specific compiler. cannam@126: CC=$lt_compiler cannam@126: cannam@126: # Is the compiler the GNU compiler? cannam@126: with_gcc=$GCC cannam@126: cannam@126: # Compiler flag to turn off builtin functions. cannam@126: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag cannam@126: cannam@126: # Additional compiler flags for building library objects. cannam@126: pic_flag=$lt_lt_prog_compiler_pic cannam@126: cannam@126: # How to pass a linker flag through the compiler. cannam@126: wl=$lt_lt_prog_compiler_wl cannam@126: cannam@126: # Compiler flag to prevent dynamic linking. cannam@126: link_static_flag=$lt_lt_prog_compiler_static cannam@126: cannam@126: # Does compiler simultaneously support -c and -o options? cannam@126: compiler_c_o=$lt_lt_cv_prog_compiler_c_o cannam@126: cannam@126: # Whether or not to add -lc for building shared libraries. cannam@126: build_libtool_need_lc=$archive_cmds_need_lc cannam@126: cannam@126: # Whether or not to disallow shared libs when runtime libs are static. cannam@126: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes cannam@126: cannam@126: # Compiler flag to allow reflexive dlopens. cannam@126: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec cannam@126: cannam@126: # Compiler flag to generate shared objects directly from archives. cannam@126: whole_archive_flag_spec=$lt_whole_archive_flag_spec cannam@126: cannam@126: # Whether the compiler copes with passing no objects directly. cannam@126: compiler_needs_object=$lt_compiler_needs_object cannam@126: cannam@126: # Create an old-style archive from a shared archive. cannam@126: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds cannam@126: cannam@126: # Create a temporary old-style archive to link instead of a shared archive. cannam@126: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds cannam@126: cannam@126: # Commands used to build a shared archive. cannam@126: archive_cmds=$lt_archive_cmds cannam@126: archive_expsym_cmds=$lt_archive_expsym_cmds cannam@126: cannam@126: # Commands used to build a loadable module if different from building cannam@126: # a shared archive. cannam@126: module_cmds=$lt_module_cmds cannam@126: module_expsym_cmds=$lt_module_expsym_cmds cannam@126: cannam@126: # Whether we are building with GNU ld or not. cannam@126: with_gnu_ld=$lt_with_gnu_ld cannam@126: cannam@126: # Flag that allows shared libraries with undefined symbols to be built. cannam@126: allow_undefined_flag=$lt_allow_undefined_flag cannam@126: cannam@126: # Flag that enforces no undefined symbols. cannam@126: no_undefined_flag=$lt_no_undefined_flag cannam@126: cannam@126: # Flag to hardcode \$libdir into a binary during linking. cannam@126: # This must work even if \$libdir does not exist cannam@126: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec cannam@126: cannam@126: # Whether we need a single "-rpath" flag with a separated argument. cannam@126: hardcode_libdir_separator=$lt_hardcode_libdir_separator cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary. cannam@126: hardcode_direct=$hardcode_direct cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary and the resulting library dependency is cannam@126: # "absolute",i.e impossible to change by setting \$shlibpath_var if the cannam@126: # library is relocated. cannam@126: hardcode_direct_absolute=$hardcode_direct_absolute cannam@126: cannam@126: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_minus_L=$hardcode_minus_L cannam@126: cannam@126: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_shlibpath_var=$hardcode_shlibpath_var cannam@126: cannam@126: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@126: # into the library and all subsequent libraries and executables linked cannam@126: # against it. cannam@126: hardcode_automatic=$hardcode_automatic cannam@126: cannam@126: # Set to yes if linker adds runtime paths of dependent libraries cannam@126: # to runtime path list. cannam@126: inherit_rpath=$inherit_rpath cannam@126: cannam@126: # Whether libtool must link a program against all its dependency libraries. cannam@126: link_all_deplibs=$link_all_deplibs cannam@126: cannam@126: # Set to "yes" if exported symbols are required. cannam@126: always_export_symbols=$always_export_symbols cannam@126: cannam@126: # The commands to list exported symbols. cannam@126: export_symbols_cmds=$lt_export_symbols_cmds cannam@126: cannam@126: # Symbols that should not be listed in the preloaded symbols. cannam@126: exclude_expsyms=$lt_exclude_expsyms cannam@126: cannam@126: # Symbols that must always be exported. cannam@126: include_expsyms=$lt_include_expsyms cannam@126: cannam@126: # Commands necessary for linking programs (against libraries) with templates. cannam@126: prelink_cmds=$lt_prelink_cmds cannam@126: cannam@126: # Commands necessary for finishing linking programs. cannam@126: postlink_cmds=$lt_postlink_cmds cannam@126: cannam@126: # Specify filename containing input files. cannam@126: file_list_spec=$lt_file_list_spec cannam@126: cannam@126: # How to hardcode a shared library path into an executable. cannam@126: hardcode_action=$hardcode_action cannam@126: cannam@126: # The directories searched by this compiler when creating a shared library. cannam@126: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs cannam@126: cannam@126: # Dependencies to place before and after the objects being linked to cannam@126: # create a shared library. cannam@126: predep_objects=$lt_predep_objects cannam@126: postdep_objects=$lt_postdep_objects cannam@126: predeps=$lt_predeps cannam@126: postdeps=$lt_postdeps cannam@126: cannam@126: # The library search path used internally by the compiler when linking cannam@126: # a shared library. cannam@126: compiler_lib_search_path=$lt_compiler_lib_search_path cannam@126: cannam@126: # ### END LIBTOOL CONFIG cannam@126: cannam@126: _LT_EOF cannam@126: cannam@126: cat <<'_LT_EOF' >> "$cfgfile" cannam@126: cannam@126: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE cannam@126: cannam@126: # func_munge_path_list VARIABLE PATH cannam@126: # ----------------------------------- cannam@126: # VARIABLE is name of variable containing _space_ separated list of cannam@126: # directories to be munged by the contents of PATH, which is string cannam@126: # having a format: cannam@126: # "DIR[:DIR]:" cannam@126: # string "DIR[ DIR]" will be prepended to VARIABLE cannam@126: # ":DIR[:DIR]" cannam@126: # string "DIR[ DIR]" will be appended to VARIABLE cannam@126: # "DIRP[:DIRP]::[DIRA:]DIRA" cannam@126: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string cannam@126: # "DIRA[ DIRA]" will be appended to VARIABLE cannam@126: # "DIR[:DIR]" cannam@126: # VARIABLE will be replaced by "DIR[ DIR]" cannam@126: func_munge_path_list () cannam@126: { cannam@126: case x$2 in cannam@126: x) cannam@126: ;; cannam@126: *:) cannam@126: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" cannam@126: ;; cannam@126: x:*) cannam@126: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" cannam@126: ;; cannam@126: *::*) cannam@126: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" cannam@126: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" cannam@126: ;; cannam@126: *) cannam@126: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" cannam@126: ;; cannam@126: esac cannam@126: } cannam@126: cannam@126: cannam@126: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. cannam@126: func_cc_basename () cannam@126: { cannam@126: for cc_temp in $*""; do cannam@126: case $cc_temp in cannam@126: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@126: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@126: \-*) ;; cannam@126: *) break;; cannam@126: esac cannam@126: done cannam@126: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` cannam@126: } cannam@126: cannam@126: cannam@126: # ### END FUNCTIONS SHARED WITH CONFIGURE cannam@126: cannam@126: _LT_EOF cannam@126: cannam@126: case $host_os in cannam@126: aix3*) cannam@126: cat <<\_LT_EOF >> "$cfgfile" cannam@126: # AIX sometimes has problems with the GCC collect2 program. For some cannam@126: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@126: # vanish in a puff of smoke. cannam@126: if test set != "${COLLECT_NAMES+set}"; then cannam@126: COLLECT_NAMES= cannam@126: export COLLECT_NAMES cannam@126: fi cannam@126: _LT_EOF cannam@126: ;; cannam@126: esac cannam@126: cannam@126: cannam@126: ltmain=$ac_aux_dir/ltmain.sh cannam@126: cannam@126: cannam@126: # We use sed instead of cat because bash on DJGPP gets confused if cannam@126: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@126: # text mode, it properly converts lines to CR/LF. This bash problem cannam@126: # is reportedly fixed, but why not run on old versions too? cannam@126: sed '$q' "$ltmain" >> "$cfgfile" \ cannam@126: || (rm -f "$cfgfile"; exit 1) cannam@126: cannam@126: mv -f "$cfgfile" "$ofile" || cannam@126: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@126: chmod +x "$ofile" cannam@126: cannam@126: cannam@126: cat <<_LT_EOF >> "$ofile" cannam@126: cannam@126: # ### BEGIN LIBTOOL TAG CONFIG: CXX cannam@126: cannam@126: # The linker used to build libraries. cannam@126: LD=$lt_LD_CXX cannam@126: cannam@126: # How to create reloadable object files. cannam@126: reload_flag=$lt_reload_flag_CXX cannam@126: reload_cmds=$lt_reload_cmds_CXX cannam@126: cannam@126: # Commands used to build an old-style archive. cannam@126: old_archive_cmds=$lt_old_archive_cmds_CXX cannam@126: cannam@126: # A language specific compiler. cannam@126: CC=$lt_compiler_CXX cannam@126: cannam@126: # Is the compiler the GNU compiler? cannam@126: with_gcc=$GCC_CXX cannam@126: cannam@126: # Compiler flag to turn off builtin functions. cannam@126: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX cannam@126: cannam@126: # Additional compiler flags for building library objects. cannam@126: pic_flag=$lt_lt_prog_compiler_pic_CXX cannam@126: cannam@126: # How to pass a linker flag through the compiler. cannam@126: wl=$lt_lt_prog_compiler_wl_CXX cannam@126: cannam@126: # Compiler flag to prevent dynamic linking. cannam@126: link_static_flag=$lt_lt_prog_compiler_static_CXX cannam@126: cannam@126: # Does compiler simultaneously support -c and -o options? cannam@126: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX cannam@126: cannam@126: # Whether or not to add -lc for building shared libraries. cannam@126: build_libtool_need_lc=$archive_cmds_need_lc_CXX cannam@126: cannam@126: # Whether or not to disallow shared libs when runtime libs are static. cannam@126: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX cannam@126: cannam@126: # Compiler flag to allow reflexive dlopens. cannam@126: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX cannam@126: cannam@126: # Compiler flag to generate shared objects directly from archives. cannam@126: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX cannam@126: cannam@126: # Whether the compiler copes with passing no objects directly. cannam@126: compiler_needs_object=$lt_compiler_needs_object_CXX cannam@126: cannam@126: # Create an old-style archive from a shared archive. cannam@126: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX cannam@126: cannam@126: # Create a temporary old-style archive to link instead of a shared archive. cannam@126: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX cannam@126: cannam@126: # Commands used to build a shared archive. cannam@126: archive_cmds=$lt_archive_cmds_CXX cannam@126: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX cannam@126: cannam@126: # Commands used to build a loadable module if different from building cannam@126: # a shared archive. cannam@126: module_cmds=$lt_module_cmds_CXX cannam@126: module_expsym_cmds=$lt_module_expsym_cmds_CXX cannam@126: cannam@126: # Whether we are building with GNU ld or not. cannam@126: with_gnu_ld=$lt_with_gnu_ld_CXX cannam@126: cannam@126: # Flag that allows shared libraries with undefined symbols to be built. cannam@126: allow_undefined_flag=$lt_allow_undefined_flag_CXX cannam@126: cannam@126: # Flag that enforces no undefined symbols. cannam@126: no_undefined_flag=$lt_no_undefined_flag_CXX cannam@126: cannam@126: # Flag to hardcode \$libdir into a binary during linking. cannam@126: # This must work even if \$libdir does not exist cannam@126: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX cannam@126: cannam@126: # Whether we need a single "-rpath" flag with a separated argument. cannam@126: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary. cannam@126: hardcode_direct=$hardcode_direct_CXX cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary and the resulting library dependency is cannam@126: # "absolute",i.e impossible to change by setting \$shlibpath_var if the cannam@126: # library is relocated. cannam@126: hardcode_direct_absolute=$hardcode_direct_absolute_CXX cannam@126: cannam@126: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_minus_L=$hardcode_minus_L_CXX cannam@126: cannam@126: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX cannam@126: cannam@126: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@126: # into the library and all subsequent libraries and executables linked cannam@126: # against it. cannam@126: hardcode_automatic=$hardcode_automatic_CXX cannam@126: cannam@126: # Set to yes if linker adds runtime paths of dependent libraries cannam@126: # to runtime path list. cannam@126: inherit_rpath=$inherit_rpath_CXX cannam@126: cannam@126: # Whether libtool must link a program against all its dependency libraries. cannam@126: link_all_deplibs=$link_all_deplibs_CXX cannam@126: cannam@126: # Set to "yes" if exported symbols are required. cannam@126: always_export_symbols=$always_export_symbols_CXX cannam@126: cannam@126: # The commands to list exported symbols. cannam@126: export_symbols_cmds=$lt_export_symbols_cmds_CXX cannam@126: cannam@126: # Symbols that should not be listed in the preloaded symbols. cannam@126: exclude_expsyms=$lt_exclude_expsyms_CXX cannam@126: cannam@126: # Symbols that must always be exported. cannam@126: include_expsyms=$lt_include_expsyms_CXX cannam@126: cannam@126: # Commands necessary for linking programs (against libraries) with templates. cannam@126: prelink_cmds=$lt_prelink_cmds_CXX cannam@126: cannam@126: # Commands necessary for finishing linking programs. cannam@126: postlink_cmds=$lt_postlink_cmds_CXX cannam@126: cannam@126: # Specify filename containing input files. cannam@126: file_list_spec=$lt_file_list_spec_CXX cannam@126: cannam@126: # How to hardcode a shared library path into an executable. cannam@126: hardcode_action=$hardcode_action_CXX cannam@126: cannam@126: # The directories searched by this compiler when creating a shared library. cannam@126: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX cannam@126: cannam@126: # Dependencies to place before and after the objects being linked to cannam@126: # create a shared library. cannam@126: predep_objects=$lt_predep_objects_CXX cannam@126: postdep_objects=$lt_postdep_objects_CXX cannam@126: predeps=$lt_predeps_CXX cannam@126: postdeps=$lt_postdeps_CXX cannam@126: cannam@126: # The library search path used internally by the compiler when linking cannam@126: # a shared library. cannam@126: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX cannam@126: cannam@126: # ### END LIBTOOL TAG CONFIG: CXX cannam@126: _LT_EOF cannam@126: cannam@126: cannam@126: cat <<_LT_EOF >> "$ofile" cannam@126: cannam@126: # ### BEGIN LIBTOOL TAG CONFIG: RC cannam@126: cannam@126: # The linker used to build libraries. cannam@126: LD=$lt_LD_RC cannam@126: cannam@126: # How to create reloadable object files. cannam@126: reload_flag=$lt_reload_flag_RC cannam@126: reload_cmds=$lt_reload_cmds_RC cannam@126: cannam@126: # Commands used to build an old-style archive. cannam@126: old_archive_cmds=$lt_old_archive_cmds_RC cannam@126: cannam@126: # A language specific compiler. cannam@126: CC=$lt_compiler_RC cannam@126: cannam@126: # Is the compiler the GNU compiler? cannam@126: with_gcc=$GCC_RC cannam@126: cannam@126: # Compiler flag to turn off builtin functions. cannam@126: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC cannam@126: cannam@126: # Additional compiler flags for building library objects. cannam@126: pic_flag=$lt_lt_prog_compiler_pic_RC cannam@126: cannam@126: # How to pass a linker flag through the compiler. cannam@126: wl=$lt_lt_prog_compiler_wl_RC cannam@126: cannam@126: # Compiler flag to prevent dynamic linking. cannam@126: link_static_flag=$lt_lt_prog_compiler_static_RC cannam@126: cannam@126: # Does compiler simultaneously support -c and -o options? cannam@126: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC cannam@126: cannam@126: # Whether or not to add -lc for building shared libraries. cannam@126: build_libtool_need_lc=$archive_cmds_need_lc_RC cannam@126: cannam@126: # Whether or not to disallow shared libs when runtime libs are static. cannam@126: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC cannam@126: cannam@126: # Compiler flag to allow reflexive dlopens. cannam@126: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC cannam@126: cannam@126: # Compiler flag to generate shared objects directly from archives. cannam@126: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC cannam@126: cannam@126: # Whether the compiler copes with passing no objects directly. cannam@126: compiler_needs_object=$lt_compiler_needs_object_RC cannam@126: cannam@126: # Create an old-style archive from a shared archive. cannam@126: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC cannam@126: cannam@126: # Create a temporary old-style archive to link instead of a shared archive. cannam@126: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC cannam@126: cannam@126: # Commands used to build a shared archive. cannam@126: archive_cmds=$lt_archive_cmds_RC cannam@126: archive_expsym_cmds=$lt_archive_expsym_cmds_RC cannam@126: cannam@126: # Commands used to build a loadable module if different from building cannam@126: # a shared archive. cannam@126: module_cmds=$lt_module_cmds_RC cannam@126: module_expsym_cmds=$lt_module_expsym_cmds_RC cannam@126: cannam@126: # Whether we are building with GNU ld or not. cannam@126: with_gnu_ld=$lt_with_gnu_ld_RC cannam@126: cannam@126: # Flag that allows shared libraries with undefined symbols to be built. cannam@126: allow_undefined_flag=$lt_allow_undefined_flag_RC cannam@126: cannam@126: # Flag that enforces no undefined symbols. cannam@126: no_undefined_flag=$lt_no_undefined_flag_RC cannam@126: cannam@126: # Flag to hardcode \$libdir into a binary during linking. cannam@126: # This must work even if \$libdir does not exist cannam@126: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC cannam@126: cannam@126: # Whether we need a single "-rpath" flag with a separated argument. cannam@126: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary. cannam@126: hardcode_direct=$hardcode_direct_RC cannam@126: cannam@126: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@126: # DIR into the resulting binary and the resulting library dependency is cannam@126: # "absolute",i.e impossible to change by setting \$shlibpath_var if the cannam@126: # library is relocated. cannam@126: hardcode_direct_absolute=$hardcode_direct_absolute_RC cannam@126: cannam@126: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_minus_L=$hardcode_minus_L_RC cannam@126: cannam@126: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@126: # into the resulting binary. cannam@126: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC cannam@126: cannam@126: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@126: # into the library and all subsequent libraries and executables linked cannam@126: # against it. cannam@126: hardcode_automatic=$hardcode_automatic_RC cannam@126: cannam@126: # Set to yes if linker adds runtime paths of dependent libraries cannam@126: # to runtime path list. cannam@126: inherit_rpath=$inherit_rpath_RC cannam@126: cannam@126: # Whether libtool must link a program against all its dependency libraries. cannam@126: link_all_deplibs=$link_all_deplibs_RC cannam@126: cannam@126: # Set to "yes" if exported symbols are required. cannam@126: always_export_symbols=$always_export_symbols_RC cannam@126: cannam@126: # The commands to list exported symbols. cannam@126: export_symbols_cmds=$lt_export_symbols_cmds_RC cannam@126: cannam@126: # Symbols that should not be listed in the preloaded symbols. cannam@126: exclude_expsyms=$lt_exclude_expsyms_RC cannam@126: cannam@126: # Symbols that must always be exported. cannam@126: include_expsyms=$lt_include_expsyms_RC cannam@126: cannam@126: # Commands necessary for linking programs (against libraries) with templates. cannam@126: prelink_cmds=$lt_prelink_cmds_RC cannam@126: cannam@126: # Commands necessary for finishing linking programs. cannam@126: postlink_cmds=$lt_postlink_cmds_RC cannam@126: cannam@126: # Specify filename containing input files. cannam@126: file_list_spec=$lt_file_list_spec_RC cannam@126: cannam@126: # How to hardcode a shared library path into an executable. cannam@126: hardcode_action=$hardcode_action_RC cannam@126: cannam@126: # The directories searched by this compiler when creating a shared library. cannam@126: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC cannam@126: cannam@126: # Dependencies to place before and after the objects being linked to cannam@126: # create a shared library. cannam@126: predep_objects=$lt_predep_objects_RC cannam@126: postdep_objects=$lt_postdep_objects_RC cannam@126: predeps=$lt_predeps_RC cannam@126: postdeps=$lt_postdeps_RC cannam@126: cannam@126: # The library search path used internally by the compiler when linking cannam@126: # a shared library. cannam@126: compiler_lib_search_path=$lt_compiler_lib_search_path_RC cannam@126: cannam@126: # ### END LIBTOOL TAG CONFIG: RC cannam@126: _LT_EOF cannam@126: cannam@126: ;; cannam@126: cannam@126: esac cannam@126: done # for ac_tag cannam@126: cannam@126: cannam@126: as_fn_exit 0 cannam@126: _ACEOF cannam@126: ac_clean_files=$ac_clean_files_save cannam@126: cannam@126: test $ac_write_fail = 0 || cannam@126: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 cannam@126: cannam@126: cannam@126: # configure is writing to config.log, and then calls config.status. cannam@126: # config.status does its own redirection, appending to config.log. cannam@126: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@126: # by configure, so config.status won't be able to write to it; its cannam@126: # output is simply discarded. So we exec the FD to /dev/null, cannam@126: # effectively closing config.log, so it can be properly (re)opened and cannam@126: # appended to by config.status. When coming back to configure, we cannam@126: # need to make the FD available again. cannam@126: if test "$no_create" != yes; then cannam@126: ac_cs_success=: cannam@126: ac_config_status_args= cannam@126: test "$silent" = yes && cannam@126: ac_config_status_args="$ac_config_status_args --quiet" cannam@126: exec 5>/dev/null cannam@126: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@126: exec 5>>config.log cannam@126: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@126: # would make configure fail if this is the last instruction. cannam@126: $ac_cs_success || as_fn_exit 1 cannam@126: fi cannam@126: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 cannam@126: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} cannam@126: fi cannam@126: cannam@126: cannam@126: #==================================================================================== cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannam@126: -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=- cannam@126: cannam@126: Configuration summary : cannam@126: cannam@126: Version : ..................... ${VERSION} cannam@126: cannam@126: Host CPU : .................... ${host_cpu} cannam@126: Host Vendor : ................. ${host_vendor} cannam@126: Host OS : ..................... ${host_os} cannam@126: " >&5 cannam@126: $as_echo " cannam@126: -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=- cannam@126: cannam@126: Configuration summary : cannam@126: cannam@126: Version : ..................... ${VERSION} cannam@126: cannam@126: Host CPU : .................... ${host_cpu} cannam@126: Host Vendor : ................. ${host_vendor} cannam@126: Host OS : ..................... ${host_os} cannam@126: " >&6; } cannam@126: cannam@126: if test x$ac_cv_c_compiler_gnu = xyes ; then cannam@126: echo -e " Tools :\n" cannam@126: echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}" cannam@126: echo " GCC major version : ........... ${GCC_MAJOR_VERSION}" cannam@126: fi cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannam@126: Extra tools required for testing and examples : cannam@126: cannam@126: Have FFTW : ................... ${ac_cv_fftw3}" >&5 cannam@126: $as_echo " cannam@126: Extra tools required for testing and examples : cannam@126: cannam@126: Have FFTW : ................... ${ac_cv_fftw3}" >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5 cannam@126: $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; } cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h} cannam@126: " >&5 cannam@126: $as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h} cannam@126: " >&6; } cannam@126: cannam@126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories : cannam@126: cannam@126: Library directory : ........... ${prefix}/lib cannam@126: Program directory : ........... ${prefix}/bin cannam@126: Pkgconfig directory : ......... ${prefix}/lib/pkgconfig cannam@126: " >&5 cannam@126: $as_echo " Installation directories : cannam@126: cannam@126: Library directory : ........... ${prefix}/lib cannam@126: Program directory : ........... ${prefix}/bin cannam@126: Pkgconfig directory : ......... ${prefix}/lib/pkgconfig cannam@126: " >&6; } cannam@126: cannam@126: if test x$prefix != "x/usr" ; then cannam@126: echo "Compiling some other packages against ${PACKAGE} may require " cannam@126: echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the " cannam@126: echo -e "PKG_CONFIG_PATH environment variable.\n" cannam@126: fi cannam@126: