cannam@95: #! /bin/sh cannam@95: # Guess values for system-dependent variables and create Makefiles. cannam@95: # Generated by GNU Autoconf 2.69 for RubberBand 1.7. cannam@95: # cannam@95: # Report bugs to . cannam@95: # cannam@95: # cannam@95: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. cannam@95: # cannam@95: # cannam@95: # This configure script is free software; the Free Software Foundation cannam@95: # gives unlimited permission to copy, distribute and modify it. cannam@95: ## -------------------- ## cannam@95: ## M4sh Initialization. ## cannam@95: ## -------------------- ## cannam@95: cannam@95: # Be more Bourne compatible cannam@95: DUALCASE=1; export DUALCASE # for MKS sh cannam@95: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@95: emulate sh cannam@95: NULLCMD=: cannam@95: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@95: # is contrary to our usage. Disable this feature. cannam@95: alias -g '${1+"$@"}'='"$@"' cannam@95: setopt NO_GLOB_SUBST cannam@95: else cannam@95: case `(set -o) 2>/dev/null` in #( cannam@95: *posix*) : cannam@95: set -o posix ;; #( cannam@95: *) : cannam@95: ;; cannam@95: esac cannam@95: fi cannam@95: cannam@95: cannam@95: as_nl=' cannam@95: ' cannam@95: export as_nl cannam@95: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@95: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@95: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@95: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@95: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@95: # but without wasting forks for bash or zsh. cannam@95: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@95: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@95: as_echo='print -r --' cannam@95: as_echo_n='print -rn --' cannam@95: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@95: as_echo='printf %s\n' cannam@95: as_echo_n='printf %s' cannam@95: else cannam@95: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@95: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@95: as_echo_n='/usr/ucb/echo -n' cannam@95: else cannam@95: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@95: as_echo_n_body='eval cannam@95: arg=$1; cannam@95: case $arg in #( cannam@95: *"$as_nl"*) cannam@95: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@95: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@95: esac; cannam@95: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@95: ' cannam@95: export as_echo_n_body cannam@95: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@95: fi cannam@95: export as_echo_body cannam@95: as_echo='sh -c $as_echo_body as_echo' cannam@95: fi cannam@95: cannam@95: # The user is always right. cannam@95: if test "${PATH_SEPARATOR+set}" != set; then cannam@95: PATH_SEPARATOR=: cannam@95: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@95: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@95: PATH_SEPARATOR=';' cannam@95: } cannam@95: fi cannam@95: cannam@95: cannam@95: # IFS cannam@95: # We need space, tab and new line, in precisely that order. Quoting is cannam@95: # there to prevent editors from complaining about space-tab. cannam@95: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@95: # splitting by setting IFS to empty value.) cannam@95: IFS=" "" $as_nl" cannam@95: cannam@95: # Find who we are. Look in the path if we contain no directory separator. cannam@95: as_myself= cannam@95: case $0 in #(( cannam@95: *[\\/]* ) as_myself=$0 ;; cannam@95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: ;; cannam@95: esac cannam@95: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@95: # in which case we are not to be found in the path. cannam@95: if test "x$as_myself" = x; then cannam@95: as_myself=$0 cannam@95: fi cannam@95: if test ! -f "$as_myself"; then cannam@95: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@95: exit 1 cannam@95: fi cannam@95: cannam@95: # Unset variables that we do not need and which cause bugs (e.g. in cannam@95: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@95: # suppresses any "Segmentation fault" message there. '((' could cannam@95: # trigger a bug in pdksh 5.2.14. cannam@95: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@95: do eval test x\${$as_var+set} = xset \ cannam@95: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@95: done cannam@95: PS1='$ ' cannam@95: PS2='> ' cannam@95: PS4='+ ' cannam@95: cannam@95: # NLS nuisances. cannam@95: LC_ALL=C cannam@95: export LC_ALL cannam@95: LANGUAGE=C cannam@95: export LANGUAGE cannam@95: cannam@95: # CDPATH. cannam@95: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@95: cannam@95: # Use a proper internal environment variable to ensure we don't fall cannam@95: # into an infinite loop, continuously re-executing ourselves. cannam@95: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then cannam@95: _as_can_reexec=no; export _as_can_reexec; cannam@95: # We cannot yet assume a decent shell, so we have to provide a cannam@95: # neutralization value for shells without unset; and this also cannam@95: # works around shells that cannot unset nonexistent variables. cannam@95: # Preserve -v and -x to the replacement shell. cannam@95: BASH_ENV=/dev/null cannam@95: ENV=/dev/null cannam@95: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@95: case $- in # (((( cannam@95: *v*x* | *x*v* ) as_opts=-vx ;; cannam@95: *v* ) as_opts=-v ;; cannam@95: *x* ) as_opts=-x ;; cannam@95: * ) as_opts= ;; cannam@95: esac cannam@95: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@95: # Admittedly, this is quite paranoid, since all the known shells bail cannam@95: # out after a failed `exec'. cannam@95: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@95: as_fn_exit 255 cannam@95: fi cannam@95: # We don't want this to propagate to other subprocesses. cannam@95: { _as_can_reexec=; unset _as_can_reexec;} cannam@95: if test "x$CONFIG_SHELL" = x; then cannam@95: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : cannam@95: emulate sh cannam@95: NULLCMD=: cannam@95: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which cannam@95: # is contrary to our usage. Disable this feature. cannam@95: alias -g '\${1+\"\$@\"}'='\"\$@\"' cannam@95: setopt NO_GLOB_SUBST cannam@95: else cannam@95: case \`(set -o) 2>/dev/null\` in #( cannam@95: *posix*) : cannam@95: set -o posix ;; #( cannam@95: *) : cannam@95: ;; cannam@95: esac cannam@95: fi cannam@95: " cannam@95: as_required="as_fn_return () { (exit \$1); } cannam@95: as_fn_success () { as_fn_return 0; } cannam@95: as_fn_failure () { as_fn_return 1; } cannam@95: as_fn_ret_success () { return 0; } cannam@95: as_fn_ret_failure () { return 1; } cannam@95: cannam@95: exitcode=0 cannam@95: as_fn_success || { exitcode=1; echo as_fn_success failed.; } cannam@95: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } cannam@95: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } cannam@95: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } cannam@95: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : cannam@95: cannam@95: else cannam@95: exitcode=1; echo positional parameters were not saved. cannam@95: fi cannam@95: test x\$exitcode = x0 || exit 1 cannam@95: test -x / || exit 1" cannam@95: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO cannam@95: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO cannam@95: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && cannam@95: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 cannam@95: test \$(( 1 + 1 )) = 2 || exit 1" cannam@95: if (eval "$as_required") 2>/dev/null; then : cannam@95: as_have_required=yes cannam@95: else cannam@95: as_have_required=no cannam@95: fi cannam@95: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : cannam@95: cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: as_found=false cannam@95: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: as_found=: cannam@95: case $as_dir in #( cannam@95: /*) cannam@95: for as_base in sh bash ksh sh5; do cannam@95: # Try only shells that exist, to save several forks. cannam@95: as_shell=$as_dir/$as_base cannam@95: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && cannam@95: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@95: CONFIG_SHELL=$as_shell as_have_required=yes cannam@95: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@95: break 2 cannam@95: fi cannam@95: fi cannam@95: done;; cannam@95: esac cannam@95: as_found=false cannam@95: done cannam@95: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && cannam@95: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : cannam@95: CONFIG_SHELL=$SHELL as_have_required=yes cannam@95: fi; } cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: cannam@95: if test "x$CONFIG_SHELL" != x; then : cannam@95: export CONFIG_SHELL cannam@95: # We cannot yet assume a decent shell, so we have to provide a cannam@95: # neutralization value for shells without unset; and this also cannam@95: # works around shells that cannot unset nonexistent variables. cannam@95: # Preserve -v and -x to the replacement shell. cannam@95: BASH_ENV=/dev/null cannam@95: ENV=/dev/null cannam@95: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@95: case $- in # (((( cannam@95: *v*x* | *x*v* ) as_opts=-vx ;; cannam@95: *v* ) as_opts=-v ;; cannam@95: *x* ) as_opts=-x ;; cannam@95: * ) as_opts= ;; cannam@95: esac cannam@95: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@95: # Admittedly, this is quite paranoid, since all the known shells bail cannam@95: # out after a failed `exec'. cannam@95: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@95: exit 255 cannam@95: fi cannam@95: cannam@95: if test x$as_have_required = xno; then : cannam@95: $as_echo "$0: This script requires a shell more modern than all" cannam@95: $as_echo "$0: the shells that I found on your system." cannam@95: if test x${ZSH_VERSION+set} = xset ; then cannam@95: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" cannam@95: $as_echo "$0: be upgraded to zsh 4.3.4 or later." cannam@95: else cannam@95: $as_echo "$0: Please tell bug-autoconf@gnu.org and cannam@95: $0: chris.cannam@breakfastquay.com about your system, cannam@95: $0: including any error possibly output before this cannam@95: $0: message. Then install a modern shell, or manually run cannam@95: $0: the script under such a shell if you do have one." cannam@95: fi cannam@95: exit 1 cannam@95: fi cannam@95: fi cannam@95: fi cannam@95: SHELL=${CONFIG_SHELL-/bin/sh} cannam@95: export SHELL cannam@95: # Unset more variables known to interfere with behavior of common tools. cannam@95: CLICOLOR_FORCE= GREP_OPTIONS= cannam@95: unset CLICOLOR_FORCE GREP_OPTIONS cannam@95: cannam@95: ## --------------------- ## cannam@95: ## M4sh Shell Functions. ## cannam@95: ## --------------------- ## cannam@95: # as_fn_unset VAR cannam@95: # --------------- cannam@95: # Portably unset VAR. cannam@95: as_fn_unset () cannam@95: { cannam@95: { eval $1=; unset $1;} cannam@95: } cannam@95: as_unset=as_fn_unset cannam@95: cannam@95: # as_fn_set_status STATUS cannam@95: # ----------------------- cannam@95: # Set $? to STATUS, without forking. cannam@95: as_fn_set_status () cannam@95: { cannam@95: return $1 cannam@95: } # as_fn_set_status cannam@95: cannam@95: # as_fn_exit STATUS cannam@95: # ----------------- cannam@95: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@95: as_fn_exit () cannam@95: { cannam@95: set +e cannam@95: as_fn_set_status $1 cannam@95: exit $1 cannam@95: } # as_fn_exit cannam@95: cannam@95: # as_fn_mkdir_p cannam@95: # ------------- cannam@95: # Create "$as_dir" as a directory, including parents if necessary. cannam@95: as_fn_mkdir_p () cannam@95: { cannam@95: cannam@95: case $as_dir in #( cannam@95: -*) as_dir=./$as_dir;; cannam@95: esac cannam@95: test -d "$as_dir" || eval $as_mkdir_p || { cannam@95: as_dirs= cannam@95: while :; do cannam@95: case $as_dir in #( cannam@95: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@95: *) as_qdir=$as_dir;; cannam@95: esac cannam@95: as_dirs="'$as_qdir' $as_dirs" cannam@95: as_dir=`$as_dirname -- "$as_dir" || cannam@95: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@95: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@95: X"$as_dir" : 'X\(//\)$' \| \ cannam@95: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X"$as_dir" | cannam@95: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)[^/].*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: test -d "$as_dir" && break cannam@95: done cannam@95: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@95: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@95: cannam@95: cannam@95: } # as_fn_mkdir_p cannam@95: cannam@95: # as_fn_executable_p FILE cannam@95: # ----------------------- cannam@95: # Test if FILE is an executable regular file. cannam@95: as_fn_executable_p () cannam@95: { cannam@95: test -f "$1" && test -x "$1" cannam@95: } # as_fn_executable_p cannam@95: # as_fn_append VAR VALUE cannam@95: # ---------------------- cannam@95: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@95: # advantage of any shell optimizations that allow amortized linear growth over cannam@95: # repeated appends, instead of the typical quadratic growth present in naive cannam@95: # implementations. cannam@95: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@95: eval 'as_fn_append () cannam@95: { cannam@95: eval $1+=\$2 cannam@95: }' cannam@95: else cannam@95: as_fn_append () cannam@95: { cannam@95: eval $1=\$$1\$2 cannam@95: } cannam@95: fi # as_fn_append cannam@95: cannam@95: # as_fn_arith ARG... cannam@95: # ------------------ cannam@95: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@95: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@95: # must be portable across $(()) and expr. cannam@95: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@95: eval 'as_fn_arith () cannam@95: { cannam@95: as_val=$(( $* )) cannam@95: }' cannam@95: else cannam@95: as_fn_arith () cannam@95: { cannam@95: as_val=`expr "$@" || test $? -eq 1` cannam@95: } cannam@95: fi # as_fn_arith cannam@95: cannam@95: cannam@95: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@95: # ---------------------------------------- cannam@95: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@95: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@95: # script with STATUS, using 1 if that was 0. cannam@95: as_fn_error () cannam@95: { cannam@95: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@95: if test "$4"; then cannam@95: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@95: fi cannam@95: $as_echo "$as_me: error: $2" >&2 cannam@95: as_fn_exit $as_status cannam@95: } # as_fn_error cannam@95: cannam@95: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@95: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@95: as_expr=expr cannam@95: else cannam@95: as_expr=false cannam@95: fi cannam@95: cannam@95: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@95: as_basename=basename cannam@95: else cannam@95: as_basename=false cannam@95: fi cannam@95: cannam@95: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@95: as_dirname=dirname cannam@95: else cannam@95: as_dirname=false cannam@95: fi cannam@95: cannam@95: as_me=`$as_basename -- "$0" || cannam@95: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@95: X"$0" : 'X\(//\)$' \| \ cannam@95: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X/"$0" | cannam@95: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\/\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\/\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: cannam@95: # Avoid depending upon Character Ranges. cannam@95: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@95: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@95: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@95: as_cr_digits='0123456789' cannam@95: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@95: cannam@95: cannam@95: as_lineno_1=$LINENO as_lineno_1a=$LINENO cannam@95: as_lineno_2=$LINENO as_lineno_2a=$LINENO cannam@95: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && cannam@95: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { cannam@95: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) cannam@95: sed -n ' cannam@95: p cannam@95: /[$]LINENO/= cannam@95: ' <$as_myself | cannam@95: sed ' cannam@95: s/[$]LINENO.*/&-/ cannam@95: t lineno cannam@95: b cannam@95: :lineno cannam@95: N cannam@95: :loop cannam@95: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ cannam@95: t loop cannam@95: s/-\n.*// cannam@95: ' >$as_me.lineno && cannam@95: chmod +x "$as_me.lineno" || cannam@95: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } cannam@95: cannam@95: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have cannam@95: # already done that, so ensure we don't try to do so again and fall cannam@95: # in an infinite loop. This has already happened in practice. cannam@95: _as_can_reexec=no; export _as_can_reexec cannam@95: # Don't try to exec as it changes $[0], causing all sort of problems cannam@95: # (the dirname of $[0] is not the place where we might find the cannam@95: # original and so on. Autoconf is especially sensitive to this). cannam@95: . "./$as_me.lineno" cannam@95: # Exit status is that of the last command. cannam@95: exit cannam@95: } cannam@95: cannam@95: ECHO_C= ECHO_N= ECHO_T= cannam@95: case `echo -n x` in #((((( cannam@95: -n*) cannam@95: case `echo 'xy\c'` in cannam@95: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@95: xy) ECHO_C='\c';; cannam@95: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@95: ECHO_T=' ';; cannam@95: esac;; cannam@95: *) cannam@95: ECHO_N='-n';; cannam@95: esac cannam@95: cannam@95: rm -f conf$$ conf$$.exe conf$$.file cannam@95: if test -d conf$$.dir; then cannam@95: rm -f conf$$.dir/conf$$.file cannam@95: else cannam@95: rm -f conf$$.dir cannam@95: mkdir conf$$.dir 2>/dev/null cannam@95: fi cannam@95: if (echo >conf$$.file) 2>/dev/null; then cannam@95: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@95: as_ln_s='ln -s' cannam@95: # ... but there are two gotchas: cannam@95: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@95: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@95: # In both cases, we have to default to `cp -pR'. cannam@95: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@95: as_ln_s='cp -pR' cannam@95: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@95: as_ln_s=ln cannam@95: else cannam@95: as_ln_s='cp -pR' cannam@95: fi cannam@95: else cannam@95: as_ln_s='cp -pR' cannam@95: fi cannam@95: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@95: rmdir conf$$.dir 2>/dev/null cannam@95: cannam@95: if mkdir -p . 2>/dev/null; then cannam@95: as_mkdir_p='mkdir -p "$as_dir"' cannam@95: else cannam@95: test -d ./-p && rmdir ./-p cannam@95: as_mkdir_p=false cannam@95: fi cannam@95: cannam@95: as_test_x='test -x' cannam@95: as_executable_p=as_fn_executable_p cannam@95: cannam@95: # Sed expression to map a string onto a valid CPP name. cannam@95: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@95: cannam@95: # Sed expression to map a string onto a valid variable name. cannam@95: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@95: cannam@95: cannam@95: test -n "$DJDIR" || exec 7<&0 &1 cannam@95: cannam@95: # Name of the host. cannam@95: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, cannam@95: # so uname gets run too. cannam@95: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@95: cannam@95: # cannam@95: # Initializations. cannam@95: # cannam@95: ac_default_prefix=/usr/local cannam@95: ac_clean_files= cannam@95: ac_config_libobj_dir=. cannam@95: LIBOBJS= cannam@95: cross_compiling=no cannam@95: subdirs= cannam@95: MFLAGS= cannam@95: MAKEFLAGS= cannam@95: cannam@95: # Identity of this package. cannam@95: PACKAGE_NAME='RubberBand' cannam@95: PACKAGE_TARNAME='rubberband' cannam@95: PACKAGE_VERSION='1.7' cannam@95: PACKAGE_STRING='RubberBand 1.7' cannam@95: PACKAGE_BUGREPORT='chris.cannam@breakfastquay.com' cannam@95: PACKAGE_URL='' cannam@95: cannam@95: ac_unique_file="src/StretcherImpl.h" cannam@95: # Factoring default headers for most tests. cannam@95: ac_includes_default="\ cannam@95: #include cannam@95: #ifdef HAVE_SYS_TYPES_H cannam@95: # include cannam@95: #endif cannam@95: #ifdef HAVE_SYS_STAT_H cannam@95: # include cannam@95: #endif cannam@95: #ifdef STDC_HEADERS cannam@95: # include cannam@95: # include cannam@95: #else cannam@95: # ifdef HAVE_STDLIB_H cannam@95: # include cannam@95: # endif cannam@95: #endif cannam@95: #ifdef HAVE_STRING_H cannam@95: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H cannam@95: # include cannam@95: # endif cannam@95: # include cannam@95: #endif cannam@95: #ifdef HAVE_STRINGS_H cannam@95: # include cannam@95: #endif cannam@95: #ifdef HAVE_INTTYPES_H cannam@95: # include cannam@95: #endif cannam@95: #ifdef HAVE_STDINT_H cannam@95: # include cannam@95: #endif cannam@95: #ifdef HAVE_UNISTD_H cannam@95: # include cannam@95: #endif" cannam@95: cannam@95: ac_subst_vars='LTLIBOBJS cannam@95: LIBOBJS cannam@95: Vamp_LIBS cannam@95: Vamp_CFLAGS cannam@95: FFTW_LIBS cannam@95: FFTW_CFLAGS cannam@95: SNDFILE_LIBS cannam@95: SNDFILE_CFLAGS cannam@95: SRC_LIBS cannam@95: SRC_CFLAGS cannam@95: PKG_CONFIG_LIBDIR cannam@95: PKG_CONFIG_PATH cannam@95: PKG_CONFIG cannam@95: EGREP cannam@95: GREP cannam@95: CPP cannam@95: ac_ct_CC cannam@95: CFLAGS cannam@95: CC cannam@95: OBJEXT cannam@95: EXEEXT cannam@95: ac_ct_CXX cannam@95: CPPFLAGS cannam@95: LDFLAGS cannam@95: CXXFLAGS cannam@95: CXX cannam@95: target_alias cannam@95: host_alias cannam@95: build_alias cannam@95: LIBS cannam@95: ECHO_T cannam@95: ECHO_N cannam@95: ECHO_C cannam@95: DEFS cannam@95: mandir cannam@95: localedir cannam@95: libdir cannam@95: psdir cannam@95: pdfdir cannam@95: dvidir cannam@95: htmldir cannam@95: infodir cannam@95: docdir cannam@95: oldincludedir cannam@95: includedir cannam@95: localstatedir cannam@95: sharedstatedir cannam@95: sysconfdir cannam@95: datadir cannam@95: datarootdir cannam@95: libexecdir cannam@95: sbindir cannam@95: bindir cannam@95: program_transform_name cannam@95: prefix cannam@95: exec_prefix cannam@95: PACKAGE_URL cannam@95: PACKAGE_BUGREPORT cannam@95: PACKAGE_STRING cannam@95: PACKAGE_VERSION cannam@95: PACKAGE_TARNAME cannam@95: PACKAGE_NAME cannam@95: PATH_SEPARATOR cannam@95: SHELL' cannam@95: ac_subst_files='' cannam@95: ac_user_opts=' cannam@95: enable_option_checking cannam@95: ' cannam@95: ac_precious_vars='build_alias cannam@95: host_alias cannam@95: target_alias cannam@95: CXX cannam@95: CXXFLAGS cannam@95: LDFLAGS cannam@95: LIBS cannam@95: CPPFLAGS cannam@95: CCC cannam@95: CC cannam@95: CFLAGS cannam@95: CPP cannam@95: PKG_CONFIG cannam@95: PKG_CONFIG_PATH cannam@95: PKG_CONFIG_LIBDIR cannam@95: SRC_CFLAGS cannam@95: SRC_LIBS cannam@95: SNDFILE_CFLAGS cannam@95: SNDFILE_LIBS cannam@95: FFTW_CFLAGS cannam@95: FFTW_LIBS cannam@95: Vamp_CFLAGS cannam@95: Vamp_LIBS' cannam@95: cannam@95: cannam@95: # Initialize some variables set by options. cannam@95: ac_init_help= cannam@95: ac_init_version=false cannam@95: ac_unrecognized_opts= cannam@95: ac_unrecognized_sep= cannam@95: # The variables have the same names as the options, with cannam@95: # dashes changed to underlines. cannam@95: cache_file=/dev/null cannam@95: exec_prefix=NONE cannam@95: no_create= cannam@95: no_recursion= cannam@95: prefix=NONE cannam@95: program_prefix=NONE cannam@95: program_suffix=NONE cannam@95: program_transform_name=s,x,x, cannam@95: silent= cannam@95: site= cannam@95: srcdir= cannam@95: verbose= cannam@95: x_includes=NONE cannam@95: x_libraries=NONE cannam@95: cannam@95: # Installation directory options. cannam@95: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@95: # and all the variables that are supposed to be based on exec_prefix cannam@95: # by default will actually change. cannam@95: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@95: # (The list follows the same order as the GNU Coding Standards.) cannam@95: bindir='${exec_prefix}/bin' cannam@95: sbindir='${exec_prefix}/sbin' cannam@95: libexecdir='${exec_prefix}/libexec' cannam@95: datarootdir='${prefix}/share' cannam@95: datadir='${datarootdir}' cannam@95: sysconfdir='${prefix}/etc' cannam@95: sharedstatedir='${prefix}/com' cannam@95: localstatedir='${prefix}/var' cannam@95: includedir='${prefix}/include' cannam@95: oldincludedir='/usr/include' cannam@95: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' cannam@95: infodir='${datarootdir}/info' cannam@95: htmldir='${docdir}' cannam@95: dvidir='${docdir}' cannam@95: pdfdir='${docdir}' cannam@95: psdir='${docdir}' cannam@95: libdir='${exec_prefix}/lib' cannam@95: localedir='${datarootdir}/locale' cannam@95: mandir='${datarootdir}/man' cannam@95: cannam@95: ac_prev= cannam@95: ac_dashdash= cannam@95: for ac_option cannam@95: do cannam@95: # If the previous option needs an argument, assign it. cannam@95: if test -n "$ac_prev"; then cannam@95: eval $ac_prev=\$ac_option cannam@95: ac_prev= cannam@95: continue cannam@95: fi cannam@95: cannam@95: case $ac_option in cannam@95: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; cannam@95: *=) ac_optarg= ;; cannam@95: *) ac_optarg=yes ;; cannam@95: esac cannam@95: cannam@95: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@95: cannam@95: case $ac_dashdash$ac_option in cannam@95: --) cannam@95: ac_dashdash=yes ;; cannam@95: cannam@95: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@95: ac_prev=bindir ;; cannam@95: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@95: bindir=$ac_optarg ;; cannam@95: cannam@95: -build | --build | --buil | --bui | --bu) cannam@95: ac_prev=build_alias ;; cannam@95: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@95: build_alias=$ac_optarg ;; cannam@95: cannam@95: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@95: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@95: ac_prev=cache_file ;; cannam@95: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@95: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@95: cache_file=$ac_optarg ;; cannam@95: cannam@95: --config-cache | -C) cannam@95: cache_file=config.cache ;; cannam@95: cannam@95: -datadir | --datadir | --datadi | --datad) cannam@95: ac_prev=datadir ;; cannam@95: -datadir=* | --datadir=* | --datadi=* | --datad=*) cannam@95: datadir=$ac_optarg ;; cannam@95: cannam@95: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ cannam@95: | --dataroo | --dataro | --datar) cannam@95: ac_prev=datarootdir ;; cannam@95: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ cannam@95: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) cannam@95: datarootdir=$ac_optarg ;; cannam@95: cannam@95: -disable-* | --disable-*) cannam@95: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@95: # Reject names that are not valid shell variable names. cannam@95: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@95: as_fn_error $? "invalid feature name: $ac_useropt" cannam@95: ac_useropt_orig=$ac_useropt cannam@95: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@95: case $ac_user_opts in cannam@95: *" cannam@95: "enable_$ac_useropt" cannam@95: "*) ;; cannam@95: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" cannam@95: ac_unrecognized_sep=', ';; cannam@95: esac cannam@95: eval enable_$ac_useropt=no ;; cannam@95: cannam@95: -docdir | --docdir | --docdi | --doc | --do) cannam@95: ac_prev=docdir ;; cannam@95: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) cannam@95: docdir=$ac_optarg ;; cannam@95: cannam@95: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) cannam@95: ac_prev=dvidir ;; cannam@95: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) cannam@95: dvidir=$ac_optarg ;; cannam@95: cannam@95: -enable-* | --enable-*) cannam@95: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@95: # Reject names that are not valid shell variable names. cannam@95: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@95: as_fn_error $? "invalid feature name: $ac_useropt" cannam@95: ac_useropt_orig=$ac_useropt cannam@95: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@95: case $ac_user_opts in cannam@95: *" cannam@95: "enable_$ac_useropt" cannam@95: "*) ;; cannam@95: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" cannam@95: ac_unrecognized_sep=', ';; cannam@95: esac cannam@95: eval enable_$ac_useropt=\$ac_optarg ;; cannam@95: cannam@95: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@95: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@95: | --exec | --exe | --ex) cannam@95: ac_prev=exec_prefix ;; cannam@95: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@95: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@95: | --exec=* | --exe=* | --ex=*) cannam@95: exec_prefix=$ac_optarg ;; cannam@95: cannam@95: -gas | --gas | --ga | --g) cannam@95: # Obsolete; use --with-gas. cannam@95: with_gas=yes ;; cannam@95: cannam@95: -help | --help | --hel | --he | -h) cannam@95: ac_init_help=long ;; cannam@95: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@95: ac_init_help=recursive ;; cannam@95: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@95: ac_init_help=short ;; cannam@95: cannam@95: -host | --host | --hos | --ho) cannam@95: ac_prev=host_alias ;; cannam@95: -host=* | --host=* | --hos=* | --ho=*) cannam@95: host_alias=$ac_optarg ;; cannam@95: cannam@95: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) cannam@95: ac_prev=htmldir ;; cannam@95: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ cannam@95: | --ht=*) cannam@95: htmldir=$ac_optarg ;; cannam@95: cannam@95: -includedir | --includedir | --includedi | --included | --include \ cannam@95: | --includ | --inclu | --incl | --inc) cannam@95: ac_prev=includedir ;; cannam@95: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@95: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@95: includedir=$ac_optarg ;; cannam@95: cannam@95: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@95: ac_prev=infodir ;; cannam@95: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@95: infodir=$ac_optarg ;; cannam@95: cannam@95: -libdir | --libdir | --libdi | --libd) cannam@95: ac_prev=libdir ;; cannam@95: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@95: libdir=$ac_optarg ;; cannam@95: cannam@95: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@95: | --libexe | --libex | --libe) cannam@95: ac_prev=libexecdir ;; cannam@95: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@95: | --libexe=* | --libex=* | --libe=*) cannam@95: libexecdir=$ac_optarg ;; cannam@95: cannam@95: -localedir | --localedir | --localedi | --localed | --locale) cannam@95: ac_prev=localedir ;; cannam@95: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) cannam@95: localedir=$ac_optarg ;; cannam@95: cannam@95: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@95: | --localstate | --localstat | --localsta | --localst | --locals) cannam@95: ac_prev=localstatedir ;; cannam@95: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@95: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) cannam@95: localstatedir=$ac_optarg ;; cannam@95: cannam@95: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@95: ac_prev=mandir ;; cannam@95: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@95: mandir=$ac_optarg ;; cannam@95: cannam@95: -nfp | --nfp | --nf) cannam@95: # Obsolete; use --without-fp. cannam@95: with_fp=no ;; cannam@95: cannam@95: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@95: | --no-cr | --no-c | -n) cannam@95: no_create=yes ;; cannam@95: cannam@95: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@95: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@95: no_recursion=yes ;; cannam@95: cannam@95: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@95: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@95: | --oldin | --oldi | --old | --ol | --o) cannam@95: ac_prev=oldincludedir ;; cannam@95: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@95: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@95: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@95: oldincludedir=$ac_optarg ;; cannam@95: cannam@95: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@95: ac_prev=prefix ;; cannam@95: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@95: prefix=$ac_optarg ;; cannam@95: cannam@95: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@95: | --program-pre | --program-pr | --program-p) cannam@95: ac_prev=program_prefix ;; cannam@95: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@95: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@95: program_prefix=$ac_optarg ;; cannam@95: cannam@95: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@95: | --program-suf | --program-su | --program-s) cannam@95: ac_prev=program_suffix ;; cannam@95: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@95: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@95: program_suffix=$ac_optarg ;; cannam@95: cannam@95: -program-transform-name | --program-transform-name \ cannam@95: | --program-transform-nam | --program-transform-na \ cannam@95: | --program-transform-n | --program-transform- \ cannam@95: | --program-transform | --program-transfor \ cannam@95: | --program-transfo | --program-transf \ cannam@95: | --program-trans | --program-tran \ cannam@95: | --progr-tra | --program-tr | --program-t) cannam@95: ac_prev=program_transform_name ;; cannam@95: -program-transform-name=* | --program-transform-name=* \ cannam@95: | --program-transform-nam=* | --program-transform-na=* \ cannam@95: | --program-transform-n=* | --program-transform-=* \ cannam@95: | --program-transform=* | --program-transfor=* \ cannam@95: | --program-transfo=* | --program-transf=* \ cannam@95: | --program-trans=* | --program-tran=* \ cannam@95: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@95: program_transform_name=$ac_optarg ;; cannam@95: cannam@95: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) cannam@95: ac_prev=pdfdir ;; cannam@95: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) cannam@95: pdfdir=$ac_optarg ;; cannam@95: cannam@95: -psdir | --psdir | --psdi | --psd | --ps) cannam@95: ac_prev=psdir ;; cannam@95: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) cannam@95: psdir=$ac_optarg ;; cannam@95: cannam@95: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@95: | -silent | --silent | --silen | --sile | --sil) cannam@95: silent=yes ;; cannam@95: cannam@95: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@95: ac_prev=sbindir ;; cannam@95: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@95: | --sbi=* | --sb=*) cannam@95: sbindir=$ac_optarg ;; cannam@95: cannam@95: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@95: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@95: | --sharedst | --shareds | --shared | --share | --shar \ cannam@95: | --sha | --sh) cannam@95: ac_prev=sharedstatedir ;; cannam@95: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@95: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@95: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@95: | --sha=* | --sh=*) cannam@95: sharedstatedir=$ac_optarg ;; cannam@95: cannam@95: -site | --site | --sit) cannam@95: ac_prev=site ;; cannam@95: -site=* | --site=* | --sit=*) cannam@95: site=$ac_optarg ;; cannam@95: cannam@95: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@95: ac_prev=srcdir ;; cannam@95: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@95: srcdir=$ac_optarg ;; cannam@95: cannam@95: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@95: | --syscon | --sysco | --sysc | --sys | --sy) cannam@95: ac_prev=sysconfdir ;; cannam@95: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@95: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@95: sysconfdir=$ac_optarg ;; cannam@95: cannam@95: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@95: ac_prev=target_alias ;; cannam@95: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@95: target_alias=$ac_optarg ;; cannam@95: cannam@95: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@95: verbose=yes ;; cannam@95: cannam@95: -version | --version | --versio | --versi | --vers | -V) cannam@95: ac_init_version=: ;; cannam@95: cannam@95: -with-* | --with-*) cannam@95: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@95: # Reject names that are not valid shell variable names. cannam@95: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@95: as_fn_error $? "invalid package name: $ac_useropt" cannam@95: ac_useropt_orig=$ac_useropt cannam@95: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@95: case $ac_user_opts in cannam@95: *" cannam@95: "with_$ac_useropt" cannam@95: "*) ;; cannam@95: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" cannam@95: ac_unrecognized_sep=', ';; cannam@95: esac cannam@95: eval with_$ac_useropt=\$ac_optarg ;; cannam@95: cannam@95: -without-* | --without-*) cannam@95: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@95: # Reject names that are not valid shell variable names. cannam@95: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@95: as_fn_error $? "invalid package name: $ac_useropt" cannam@95: ac_useropt_orig=$ac_useropt cannam@95: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@95: case $ac_user_opts in cannam@95: *" cannam@95: "with_$ac_useropt" cannam@95: "*) ;; cannam@95: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" cannam@95: ac_unrecognized_sep=', ';; cannam@95: esac cannam@95: eval with_$ac_useropt=no ;; cannam@95: cannam@95: --x) cannam@95: # Obsolete; use --with-x. cannam@95: with_x=yes ;; cannam@95: cannam@95: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@95: | --x-incl | --x-inc | --x-in | --x-i) cannam@95: ac_prev=x_includes ;; cannam@95: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@95: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@95: x_includes=$ac_optarg ;; cannam@95: cannam@95: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@95: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@95: ac_prev=x_libraries ;; cannam@95: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@95: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@95: x_libraries=$ac_optarg ;; cannam@95: cannam@95: -*) as_fn_error $? "unrecognized option: \`$ac_option' cannam@95: Try \`$0 --help' for more information" cannam@95: ;; cannam@95: cannam@95: *=*) cannam@95: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@95: # Reject names that are not valid shell variable names. cannam@95: case $ac_envvar in #( cannam@95: '' | [0-9]* | *[!_$as_cr_alnum]* ) cannam@95: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; cannam@95: esac cannam@95: eval $ac_envvar=\$ac_optarg cannam@95: export $ac_envvar ;; cannam@95: cannam@95: *) cannam@95: # FIXME: should be removed in autoconf 3.0. cannam@95: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@95: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@95: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@95: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" cannam@95: ;; cannam@95: cannam@95: esac cannam@95: done cannam@95: cannam@95: if test -n "$ac_prev"; then cannam@95: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@95: as_fn_error $? "missing argument to $ac_option" cannam@95: fi cannam@95: cannam@95: if test -n "$ac_unrecognized_opts"; then cannam@95: case $enable_option_checking in cannam@95: no) ;; cannam@95: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; cannam@95: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; cannam@95: esac cannam@95: fi cannam@95: cannam@95: # Check all directory arguments for consistency. cannam@95: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ cannam@95: datadir sysconfdir sharedstatedir localstatedir includedir \ cannam@95: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ cannam@95: libdir localedir mandir cannam@95: do cannam@95: eval ac_val=\$$ac_var cannam@95: # Remove trailing slashes. cannam@95: case $ac_val in cannam@95: */ ) cannam@95: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` cannam@95: eval $ac_var=\$ac_val;; cannam@95: esac cannam@95: # Be sure to have absolute directory names. cannam@95: case $ac_val in cannam@95: [\\/$]* | ?:[\\/]* ) continue;; cannam@95: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; cannam@95: esac cannam@95: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" cannam@95: done cannam@95: cannam@95: # There might be people who depend on the old broken behavior: `$host' cannam@95: # used to hold the argument of --host etc. cannam@95: # FIXME: To remove some day. cannam@95: build=$build_alias cannam@95: host=$host_alias cannam@95: target=$target_alias cannam@95: cannam@95: # FIXME: To remove some day. cannam@95: if test "x$host_alias" != x; then cannam@95: if test "x$build_alias" = x; then cannam@95: cross_compiling=maybe cannam@95: elif test "x$build_alias" != "x$host_alias"; then cannam@95: cross_compiling=yes cannam@95: fi cannam@95: fi cannam@95: cannam@95: ac_tool_prefix= cannam@95: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@95: cannam@95: test "$silent" = yes && exec 6>/dev/null cannam@95: cannam@95: cannam@95: ac_pwd=`pwd` && test -n "$ac_pwd" && cannam@95: ac_ls_di=`ls -di .` && cannam@95: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || cannam@95: as_fn_error $? "working directory cannot be determined" cannam@95: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || cannam@95: as_fn_error $? "pwd does not report name of working directory" cannam@95: cannam@95: cannam@95: # Find the source files, if location was not specified. cannam@95: if test -z "$srcdir"; then cannam@95: ac_srcdir_defaulted=yes cannam@95: # Try the directory containing this script, then the parent directory. cannam@95: ac_confdir=`$as_dirname -- "$as_myself" || cannam@95: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@95: X"$as_myself" : 'X\(//\)[^/]' \| \ cannam@95: X"$as_myself" : 'X\(//\)$' \| \ cannam@95: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X"$as_myself" | cannam@95: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)[^/].*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: srcdir=$ac_confdir cannam@95: if test ! -r "$srcdir/$ac_unique_file"; then cannam@95: srcdir=.. cannam@95: fi cannam@95: else cannam@95: ac_srcdir_defaulted=no cannam@95: fi cannam@95: if test ! -r "$srcdir/$ac_unique_file"; then cannam@95: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." cannam@95: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" cannam@95: fi cannam@95: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" cannam@95: ac_abs_confdir=`( cannam@95: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" cannam@95: pwd)` cannam@95: # When building in place, set srcdir=. cannam@95: if test "$ac_abs_confdir" = "$ac_pwd"; then cannam@95: srcdir=. cannam@95: fi cannam@95: # Remove unnecessary trailing slashes from srcdir. cannam@95: # Double slashes in file names in object file debugging info cannam@95: # mess up M-x gdb in Emacs. cannam@95: case $srcdir in cannam@95: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; cannam@95: esac cannam@95: for ac_var in $ac_precious_vars; do cannam@95: eval ac_env_${ac_var}_set=\${${ac_var}+set} cannam@95: eval ac_env_${ac_var}_value=\$${ac_var} cannam@95: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} cannam@95: eval ac_cv_env_${ac_var}_value=\$${ac_var} cannam@95: done cannam@95: cannam@95: # cannam@95: # Report the --help message. cannam@95: # cannam@95: if test "$ac_init_help" = "long"; then cannam@95: # Omit some internal or obsolete options to make the list less imposing. cannam@95: # This message is too long to be a string in the A/UX 3.1 sh. cannam@95: cat <<_ACEOF cannam@95: \`configure' configures RubberBand 1.7 to adapt to many kinds of systems. cannam@95: cannam@95: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@95: cannam@95: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@95: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@95: cannam@95: Defaults for the options are specified in brackets. cannam@95: cannam@95: Configuration: cannam@95: -h, --help display this help and exit cannam@95: --help=short display options specific to this package cannam@95: --help=recursive display the short help of all the included packages cannam@95: -V, --version display version information and exit cannam@95: -q, --quiet, --silent do not print \`checking ...' messages cannam@95: --cache-file=FILE cache test results in FILE [disabled] cannam@95: -C, --config-cache alias for \`--cache-file=config.cache' cannam@95: -n, --no-create do not create output files cannam@95: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@95: cannam@95: Installation directories: cannam@95: --prefix=PREFIX install architecture-independent files in PREFIX cannam@95: [$ac_default_prefix] cannam@95: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@95: [PREFIX] cannam@95: cannam@95: By default, \`make install' will install all the files in cannam@95: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@95: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@95: for instance \`--prefix=\$HOME'. cannam@95: cannam@95: For better control, use the options below. cannam@95: cannam@95: Fine tuning of the installation directories: cannam@95: --bindir=DIR user executables [EPREFIX/bin] cannam@95: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@95: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@95: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@95: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@95: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@95: --libdir=DIR object code libraries [EPREFIX/lib] cannam@95: --includedir=DIR C header files [PREFIX/include] cannam@95: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@95: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] cannam@95: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] cannam@95: --infodir=DIR info documentation [DATAROOTDIR/info] cannam@95: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] cannam@95: --mandir=DIR man documentation [DATAROOTDIR/man] cannam@95: --docdir=DIR documentation root [DATAROOTDIR/doc/rubberband] cannam@95: --htmldir=DIR html documentation [DOCDIR] cannam@95: --dvidir=DIR dvi documentation [DOCDIR] cannam@95: --pdfdir=DIR pdf documentation [DOCDIR] cannam@95: --psdir=DIR ps documentation [DOCDIR] cannam@95: _ACEOF cannam@95: cannam@95: cat <<\_ACEOF cannam@95: _ACEOF cannam@95: fi cannam@95: cannam@95: if test -n "$ac_init_help"; then cannam@95: case $ac_init_help in cannam@95: short | recursive ) echo "Configuration of RubberBand 1.7:";; cannam@95: esac cannam@95: cat <<\_ACEOF cannam@95: cannam@95: Some influential environment variables: cannam@95: CXX C++ compiler command cannam@95: CXXFLAGS C++ compiler flags cannam@95: LDFLAGS linker flags, e.g. -L if you have libraries in a cannam@95: nonstandard directory cannam@95: LIBS libraries to pass to the linker, e.g. -l cannam@95: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if cannam@95: you have headers in a nonstandard directory cannam@95: CC C compiler command cannam@95: CFLAGS C compiler flags cannam@95: CPP C preprocessor cannam@95: PKG_CONFIG path to pkg-config utility cannam@95: PKG_CONFIG_PATH cannam@95: directories to add to pkg-config's search path cannam@95: PKG_CONFIG_LIBDIR cannam@95: path overriding pkg-config's built-in search path cannam@95: SRC_CFLAGS C compiler flags for SRC, overriding pkg-config cannam@95: SRC_LIBS linker flags for SRC, overriding pkg-config cannam@95: SNDFILE_CFLAGS cannam@95: C compiler flags for SNDFILE, overriding pkg-config cannam@95: SNDFILE_LIBS cannam@95: linker flags for SNDFILE, overriding pkg-config cannam@95: FFTW_CFLAGS C compiler flags for FFTW, overriding pkg-config cannam@95: FFTW_LIBS linker flags for FFTW, overriding pkg-config cannam@95: Vamp_CFLAGS C compiler flags for Vamp, overriding pkg-config cannam@95: Vamp_LIBS linker flags for Vamp, overriding pkg-config cannam@95: cannam@95: Use these variables to override the choices made by `configure' or to help cannam@95: it to find libraries and programs with nonstandard names/locations. cannam@95: cannam@95: Report bugs to . cannam@95: _ACEOF cannam@95: ac_status=$? cannam@95: fi cannam@95: cannam@95: if test "$ac_init_help" = "recursive"; then cannam@95: # If there are subdirs, report their specific --help. cannam@95: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@95: test -d "$ac_dir" || cannam@95: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || cannam@95: continue cannam@95: ac_builddir=. cannam@95: cannam@95: case "$ac_dir" in cannam@95: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@95: *) cannam@95: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@95: # A ".." for each directory in $ac_dir_suffix. cannam@95: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@95: case $ac_top_builddir_sub in cannam@95: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@95: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@95: esac ;; cannam@95: esac cannam@95: ac_abs_top_builddir=$ac_pwd cannam@95: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@95: # for backward compatibility: cannam@95: ac_top_builddir=$ac_top_build_prefix cannam@95: cannam@95: case $srcdir in cannam@95: .) # We are building in place. cannam@95: ac_srcdir=. cannam@95: ac_top_srcdir=$ac_top_builddir_sub cannam@95: ac_abs_top_srcdir=$ac_pwd ;; cannam@95: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@95: ac_srcdir=$srcdir$ac_dir_suffix; cannam@95: ac_top_srcdir=$srcdir cannam@95: ac_abs_top_srcdir=$srcdir ;; cannam@95: *) # Relative name. cannam@95: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@95: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@95: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@95: esac cannam@95: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@95: cannam@95: cd "$ac_dir" || { ac_status=$?; continue; } cannam@95: # Check for guested configure. cannam@95: if test -f "$ac_srcdir/configure.gnu"; then cannam@95: echo && cannam@95: $SHELL "$ac_srcdir/configure.gnu" --help=recursive cannam@95: elif test -f "$ac_srcdir/configure"; then cannam@95: echo && cannam@95: $SHELL "$ac_srcdir/configure" --help=recursive cannam@95: else cannam@95: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@95: fi || ac_status=$? cannam@95: cd "$ac_pwd" || { ac_status=$?; break; } cannam@95: done cannam@95: fi cannam@95: cannam@95: test -n "$ac_init_help" && exit $ac_status cannam@95: if $ac_init_version; then cannam@95: cat <<\_ACEOF cannam@95: RubberBand configure 1.7 cannam@95: generated by GNU Autoconf 2.69 cannam@95: cannam@95: Copyright (C) 2012 Free Software Foundation, Inc. cannam@95: This configure script is free software; the Free Software Foundation cannam@95: gives unlimited permission to copy, distribute and modify it. cannam@95: _ACEOF cannam@95: exit cannam@95: fi cannam@95: cannam@95: ## ------------------------ ## cannam@95: ## Autoconf initialization. ## cannam@95: ## ------------------------ ## cannam@95: cannam@95: # ac_fn_cxx_try_compile LINENO cannam@95: # ---------------------------- cannam@95: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@95: ac_fn_cxx_try_compile () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: rm -f conftest.$ac_objext cannam@95: if { { ac_try="$ac_compile" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_compile") 2>conftest.err cannam@95: ac_status=$? cannam@95: if test -s conftest.err; then cannam@95: grep -v '^ *+' conftest.err >conftest.er1 cannam@95: cat conftest.er1 >&5 cannam@95: mv -f conftest.er1 conftest.err cannam@95: fi cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } && { cannam@95: test -z "$ac_cxx_werror_flag" || cannam@95: test ! -s conftest.err cannam@95: } && test -s conftest.$ac_objext; then : cannam@95: ac_retval=0 cannam@95: else cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: ac_retval=1 cannam@95: fi cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: as_fn_set_status $ac_retval cannam@95: cannam@95: } # ac_fn_cxx_try_compile cannam@95: cannam@95: # ac_fn_c_try_compile LINENO cannam@95: # -------------------------- cannam@95: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@95: ac_fn_c_try_compile () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: rm -f conftest.$ac_objext cannam@95: if { { ac_try="$ac_compile" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_compile") 2>conftest.err cannam@95: ac_status=$? cannam@95: if test -s conftest.err; then cannam@95: grep -v '^ *+' conftest.err >conftest.er1 cannam@95: cat conftest.er1 >&5 cannam@95: mv -f conftest.er1 conftest.err cannam@95: fi cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } && { cannam@95: test -z "$ac_c_werror_flag" || cannam@95: test ! -s conftest.err cannam@95: } && test -s conftest.$ac_objext; then : cannam@95: ac_retval=0 cannam@95: else cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: ac_retval=1 cannam@95: fi cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: as_fn_set_status $ac_retval cannam@95: cannam@95: } # ac_fn_c_try_compile cannam@95: cannam@95: # ac_fn_c_try_cpp LINENO cannam@95: # ---------------------- cannam@95: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. cannam@95: ac_fn_c_try_cpp () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: if { { ac_try="$ac_cpp conftest.$ac_ext" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err cannam@95: ac_status=$? cannam@95: if test -s conftest.err; then cannam@95: grep -v '^ *+' conftest.err >conftest.er1 cannam@95: cat conftest.er1 >&5 cannam@95: mv -f conftest.er1 conftest.err cannam@95: fi cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } > conftest.i && { cannam@95: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@95: test ! -s conftest.err cannam@95: }; then : cannam@95: ac_retval=0 cannam@95: else cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: ac_retval=1 cannam@95: fi cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: as_fn_set_status $ac_retval cannam@95: cannam@95: } # ac_fn_c_try_cpp cannam@95: cannam@95: # ac_fn_c_try_run LINENO cannam@95: # ---------------------- cannam@95: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes cannam@95: # that executables *can* be run. cannam@95: ac_fn_c_try_run () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: if { { ac_try="$ac_link" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_link") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' cannam@95: { { case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_try") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; }; then : cannam@95: ac_retval=0 cannam@95: else cannam@95: $as_echo "$as_me: program exited with status $ac_status" >&5 cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: ac_retval=$ac_status cannam@95: fi cannam@95: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: as_fn_set_status $ac_retval cannam@95: cannam@95: } # ac_fn_c_try_run cannam@95: cannam@95: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES cannam@95: # ------------------------------------------------------- cannam@95: # Tests whether HEADER exists and can be compiled using the include files in cannam@95: # INCLUDES, setting the cache variable VAR accordingly. cannam@95: ac_fn_c_check_header_compile () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@95: $as_echo_n "checking for $2... " >&6; } cannam@95: if eval \${$3+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: $4 cannam@95: #include <$2> cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: eval "$3=yes" cannam@95: else cannam@95: eval "$3=no" cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: eval ac_res=\$$3 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@95: $as_echo "$ac_res" >&6; } cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: cannam@95: } # ac_fn_c_check_header_compile cannam@95: cannam@95: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES cannam@95: # ------------------------------------------------------- cannam@95: # Tests whether HEADER exists, giving a warning if it cannot be compiled using cannam@95: # the include files in INCLUDES and setting the cache variable VAR cannam@95: # accordingly. cannam@95: ac_fn_c_check_header_mongrel () cannam@95: { cannam@95: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: if eval \${$3+:} false; then : cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@95: $as_echo_n "checking for $2... " >&6; } cannam@95: if eval \${$3+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: fi cannam@95: eval ac_res=\$$3 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@95: $as_echo "$ac_res" >&6; } cannam@95: else cannam@95: # Is the header compilable? cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 cannam@95: $as_echo_n "checking $2 usability... " >&6; } cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: $4 cannam@95: #include <$2> cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_header_compiler=yes cannam@95: else cannam@95: ac_header_compiler=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 cannam@95: $as_echo "$ac_header_compiler" >&6; } cannam@95: cannam@95: # Is the header present? cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 cannam@95: $as_echo_n "checking $2 presence... " >&6; } cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include <$2> cannam@95: _ACEOF cannam@95: if ac_fn_c_try_cpp "$LINENO"; then : cannam@95: ac_header_preproc=yes cannam@95: else cannam@95: ac_header_preproc=no cannam@95: fi cannam@95: rm -f conftest.err conftest.i conftest.$ac_ext cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 cannam@95: $as_echo "$ac_header_preproc" >&6; } cannam@95: cannam@95: # So? What about this header? cannam@95: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( cannam@95: yes:no: ) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@95: ;; cannam@95: no:yes:* ) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@95: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@95: ( $as_echo "## --------------------------------------------- ## cannam@95: ## Report this to chris.cannam@breakfastquay.com ## cannam@95: ## --------------------------------------------- ##" cannam@95: ) | sed "s/^/$as_me: WARNING: /" >&2 cannam@95: ;; cannam@95: esac cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@95: $as_echo_n "checking for $2... " >&6; } cannam@95: if eval \${$3+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: eval "$3=\$ac_header_compiler" cannam@95: fi cannam@95: eval ac_res=\$$3 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@95: $as_echo "$ac_res" >&6; } cannam@95: fi cannam@95: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@95: cannam@95: } # ac_fn_c_check_header_mongrel cannam@95: cat >config.log <<_ACEOF cannam@95: This file contains any messages produced by compilers while cannam@95: running configure, to aid debugging if configure makes a mistake. cannam@95: cannam@95: It was created by RubberBand $as_me 1.7, which was cannam@95: generated by GNU Autoconf 2.69. Invocation command line was cannam@95: cannam@95: $ $0 $@ cannam@95: cannam@95: _ACEOF cannam@95: exec 5>>config.log cannam@95: { cannam@95: cat <<_ASUNAME cannam@95: ## --------- ## cannam@95: ## Platform. ## cannam@95: ## --------- ## cannam@95: cannam@95: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@95: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@95: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@95: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@95: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@95: cannam@95: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@95: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@95: cannam@95: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@95: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@95: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@95: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` cannam@95: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@95: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@95: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@95: cannam@95: _ASUNAME cannam@95: cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: $as_echo "PATH: $as_dir" cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: } >&5 cannam@95: cannam@95: cat >&5 <<_ACEOF cannam@95: cannam@95: cannam@95: ## ----------- ## cannam@95: ## Core tests. ## cannam@95: ## ----------- ## cannam@95: cannam@95: _ACEOF cannam@95: cannam@95: cannam@95: # Keep a trace of the command line. cannam@95: # Strip out --no-create and --no-recursion so they do not pile up. cannam@95: # Strip out --silent because we don't want to record it for future runs. cannam@95: # Also quote any args containing shell meta-characters. cannam@95: # Make two passes to allow for proper duplicate-argument suppression. cannam@95: ac_configure_args= cannam@95: ac_configure_args0= cannam@95: ac_configure_args1= cannam@95: ac_must_keep_next=false cannam@95: for ac_pass in 1 2 cannam@95: do cannam@95: for ac_arg cannam@95: do cannam@95: case $ac_arg in cannam@95: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@95: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@95: | -silent | --silent | --silen | --sile | --sil) cannam@95: continue ;; cannam@95: *\'*) cannam@95: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@95: esac cannam@95: case $ac_pass in cannam@95: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; cannam@95: 2) cannam@95: as_fn_append ac_configure_args1 " '$ac_arg'" cannam@95: if test $ac_must_keep_next = true; then cannam@95: ac_must_keep_next=false # Got value, back to normal. cannam@95: else cannam@95: case $ac_arg in cannam@95: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@95: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@95: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@95: | -with-* | --with-* | -without-* | --without-* | --x) cannam@95: case "$ac_configure_args0 " in cannam@95: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@95: esac cannam@95: ;; cannam@95: -* ) ac_must_keep_next=true ;; cannam@95: esac cannam@95: fi cannam@95: as_fn_append ac_configure_args " '$ac_arg'" cannam@95: ;; cannam@95: esac cannam@95: done cannam@95: done cannam@95: { ac_configure_args0=; unset ac_configure_args0;} cannam@95: { ac_configure_args1=; unset ac_configure_args1;} cannam@95: cannam@95: # When interrupted or exit'd, cleanup temporary files, and complete cannam@95: # config.log. We remove comments because anyway the quotes in there cannam@95: # would cause problems or look ugly. cannam@95: # WARNING: Use '\'' to represent an apostrophe within the trap. cannam@95: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. cannam@95: trap 'exit_status=$? cannam@95: # Save into config.log some information that might help in debugging. cannam@95: { cannam@95: echo cannam@95: cannam@95: $as_echo "## ---------------- ## cannam@95: ## Cache variables. ## cannam@95: ## ---------------- ##" cannam@95: echo cannam@95: # The following way of writing the cache mishandles newlines in values, cannam@95: ( cannam@95: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do cannam@95: eval ac_val=\$$ac_var cannam@95: case $ac_val in #( cannam@95: *${as_nl}*) cannam@95: case $ac_var in #( cannam@95: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@95: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@95: esac cannam@95: case $ac_var in #( cannam@95: _ | IFS | as_nl) ;; #( cannam@95: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@95: *) { eval $ac_var=; unset $ac_var;} ;; cannam@95: esac ;; cannam@95: esac cannam@95: done cannam@95: (set) 2>&1 | cannam@95: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( cannam@95: *${as_nl}ac_space=\ *) cannam@95: sed -n \ cannam@95: "s/'\''/'\''\\\\'\'''\''/g; cannam@95: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" cannam@95: ;; #( cannam@95: *) cannam@95: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@95: ;; cannam@95: esac | cannam@95: sort cannam@95: ) cannam@95: echo cannam@95: cannam@95: $as_echo "## ----------------- ## cannam@95: ## Output variables. ## cannam@95: ## ----------------- ##" cannam@95: echo cannam@95: for ac_var in $ac_subst_vars cannam@95: do cannam@95: eval ac_val=\$$ac_var cannam@95: case $ac_val in cannam@95: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@95: esac cannam@95: $as_echo "$ac_var='\''$ac_val'\''" cannam@95: done | sort cannam@95: echo cannam@95: cannam@95: if test -n "$ac_subst_files"; then cannam@95: $as_echo "## ------------------- ## cannam@95: ## File substitutions. ## cannam@95: ## ------------------- ##" cannam@95: echo cannam@95: for ac_var in $ac_subst_files cannam@95: do cannam@95: eval ac_val=\$$ac_var cannam@95: case $ac_val in cannam@95: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@95: esac cannam@95: $as_echo "$ac_var='\''$ac_val'\''" cannam@95: done | sort cannam@95: echo cannam@95: fi cannam@95: cannam@95: if test -s confdefs.h; then cannam@95: $as_echo "## ----------- ## cannam@95: ## confdefs.h. ## cannam@95: ## ----------- ##" cannam@95: echo cannam@95: cat confdefs.h cannam@95: echo cannam@95: fi cannam@95: test "$ac_signal" != 0 && cannam@95: $as_echo "$as_me: caught signal $ac_signal" cannam@95: $as_echo "$as_me: exit $exit_status" cannam@95: } >&5 cannam@95: rm -f core *.core core.conftest.* && cannam@95: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && cannam@95: exit $exit_status cannam@95: ' 0 cannam@95: for ac_signal in 1 2 13 15; do cannam@95: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal cannam@95: done cannam@95: ac_signal=0 cannam@95: cannam@95: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@95: rm -f -r conftest* confdefs.h cannam@95: cannam@95: $as_echo "/* confdefs.h */" > confdefs.h cannam@95: cannam@95: # Predefined preprocessor variables. cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@95: _ACEOF cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@95: _ACEOF cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@95: _ACEOF cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@95: _ACEOF cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@95: _ACEOF cannam@95: cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define PACKAGE_URL "$PACKAGE_URL" cannam@95: _ACEOF cannam@95: cannam@95: cannam@95: # Let the site file select an alternate cache file if it wants to. cannam@95: # Prefer an explicitly selected file to automatically selected ones. cannam@95: ac_site_file1=NONE cannam@95: ac_site_file2=NONE cannam@95: if test -n "$CONFIG_SITE"; then cannam@95: # We do not want a PATH search for config.site. cannam@95: case $CONFIG_SITE in #(( cannam@95: -*) ac_site_file1=./$CONFIG_SITE;; cannam@95: */*) ac_site_file1=$CONFIG_SITE;; cannam@95: *) ac_site_file1=./$CONFIG_SITE;; cannam@95: esac cannam@95: elif test "x$prefix" != xNONE; then cannam@95: ac_site_file1=$prefix/share/config.site cannam@95: ac_site_file2=$prefix/etc/config.site cannam@95: else cannam@95: ac_site_file1=$ac_default_prefix/share/config.site cannam@95: ac_site_file2=$ac_default_prefix/etc/config.site cannam@95: fi cannam@95: for ac_site_file in "$ac_site_file1" "$ac_site_file2" cannam@95: do cannam@95: test "x$ac_site_file" = xNONE && continue cannam@95: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 cannam@95: $as_echo "$as_me: loading site script $ac_site_file" >&6;} cannam@95: sed 's/^/| /' "$ac_site_file" >&5 cannam@95: . "$ac_site_file" \ cannam@95: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "failed to load site script $ac_site_file cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: fi cannam@95: done cannam@95: cannam@95: if test -r "$cache_file"; then cannam@95: # Some versions of bash will fail to source /dev/null (special files cannam@95: # actually), so we avoid doing that. DJGPP emulates it as a regular file. cannam@95: if test /dev/null != "$cache_file" && test -f "$cache_file"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 cannam@95: $as_echo "$as_me: loading cache $cache_file" >&6;} cannam@95: case $cache_file in cannam@95: [\\/]* | ?:[\\/]* ) . "$cache_file";; cannam@95: *) . "./$cache_file";; cannam@95: esac cannam@95: fi cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 cannam@95: $as_echo "$as_me: creating cache $cache_file" >&6;} cannam@95: >$cache_file cannam@95: fi cannam@95: cannam@95: # Check that the precious variables saved in the cache have kept the same cannam@95: # value. cannam@95: ac_cache_corrupted=false cannam@95: for ac_var in $ac_precious_vars; do cannam@95: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@95: eval ac_new_set=\$ac_env_${ac_var}_set cannam@95: eval ac_old_val=\$ac_cv_env_${ac_var}_value cannam@95: eval ac_new_val=\$ac_env_${ac_var}_value cannam@95: case $ac_old_set,$ac_new_set in cannam@95: set,) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@95: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@95: ac_cache_corrupted=: ;; cannam@95: ,set) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 cannam@95: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@95: ac_cache_corrupted=: ;; cannam@95: ,);; cannam@95: *) cannam@95: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@95: # differences in whitespace do not lead to failure. cannam@95: ac_old_val_w=`echo x $ac_old_val` cannam@95: ac_new_val_w=`echo x $ac_new_val` cannam@95: if test "$ac_old_val_w" != "$ac_new_val_w"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 cannam@95: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@95: ac_cache_corrupted=: cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 cannam@95: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} cannam@95: eval $ac_var=\$ac_old_val cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 cannam@95: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 cannam@95: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} cannam@95: fi;; cannam@95: esac cannam@95: # Pass precious variables to config.status. cannam@95: if test "$ac_new_set" = set; then cannam@95: case $ac_new_val in cannam@95: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@95: *) ac_arg=$ac_var=$ac_new_val ;; cannam@95: esac cannam@95: case " $ac_configure_args " in cannam@95: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@95: *) as_fn_append ac_configure_args " '$ac_arg'" ;; cannam@95: esac cannam@95: fi cannam@95: done cannam@95: if $ac_cache_corrupted; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 cannam@95: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@95: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 cannam@95: fi cannam@95: ## -------------------- ## cannam@95: ## Main body of script. ## cannam@95: ## -------------------- ## cannam@95: cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: ac_ext=cpp cannam@95: ac_cpp='$CXXCPP $CPPFLAGS' cannam@95: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@95: if test -z "$CXX"; then cannam@95: if test -n "$CCC"; then cannam@95: CXX=$CCC cannam@95: else cannam@95: if test -n "$ac_tool_prefix"; then cannam@95: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC cannam@95: do cannam@95: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@95: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_CXX+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$CXX"; then cannam@95: ac_cv_prog_CXX="$CXX" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: CXX=$ac_cv_prog_CXX cannam@95: if test -n "$CXX"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 cannam@95: $as_echo "$CXX" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: test -n "$CXX" && break cannam@95: done cannam@95: fi cannam@95: if test -z "$CXX"; then cannam@95: ac_ct_CXX=$CXX cannam@95: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC cannam@95: do cannam@95: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@95: set dummy $ac_prog; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_ac_ct_CXX+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$ac_ct_CXX"; then cannam@95: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_ac_ct_CXX="$ac_prog" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX cannam@95: if test -n "$ac_ct_CXX"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 cannam@95: $as_echo "$ac_ct_CXX" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: test -n "$ac_ct_CXX" && break cannam@95: done cannam@95: cannam@95: if test "x$ac_ct_CXX" = x; then cannam@95: CXX="g++" cannam@95: else cannam@95: case $cross_compiling:$ac_tool_warned in cannam@95: yes:) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@95: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@95: ac_tool_warned=yes ;; cannam@95: esac cannam@95: CXX=$ac_ct_CXX cannam@95: fi cannam@95: fi cannam@95: cannam@95: fi cannam@95: fi cannam@95: # Provide some information about the compiler. cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 cannam@95: set X $ac_compile cannam@95: ac_compiler=$2 cannam@95: for ac_option in --version -v -V -qversion; do cannam@95: { { ac_try="$ac_compiler $ac_option >&5" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@95: ac_status=$? cannam@95: if test -s conftest.err; then cannam@95: sed '10a\ cannam@95: ... rest of stderr output deleted ... cannam@95: 10q' conftest.err >conftest.er1 cannam@95: cat conftest.er1 >&5 cannam@95: fi cannam@95: rm -f conftest.er1 conftest.err cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } cannam@95: done cannam@95: cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: ac_clean_files_save=$ac_clean_files cannam@95: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" cannam@95: # Try to create an executable without -o first, disregard a.out. cannam@95: # It will help us diagnose broken compilers, and finding out an intuition cannam@95: # of exeext. cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 cannam@95: $as_echo_n "checking whether the C++ compiler works... " >&6; } cannam@95: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@95: cannam@95: # The possible output files: cannam@95: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" cannam@95: cannam@95: ac_rmfiles= cannam@95: for ac_file in $ac_files cannam@95: do cannam@95: case $ac_file in cannam@95: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@95: * ) ac_rmfiles="$ac_rmfiles $ac_file";; cannam@95: esac cannam@95: done cannam@95: rm -f $ac_rmfiles cannam@95: cannam@95: if { { ac_try="$ac_link_default" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_link_default") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then : cannam@95: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. cannam@95: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' cannam@95: # in a Makefile. We should not override ac_cv_exeext if it was cached, cannam@95: # so that the user can short-circuit this test for compilers unknown to cannam@95: # Autoconf. cannam@95: for ac_file in $ac_files '' cannam@95: do cannam@95: test -f "$ac_file" || continue cannam@95: case $ac_file in cannam@95: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) cannam@95: ;; cannam@95: [ab].out ) cannam@95: # We found the default executable, but exeext='' is most cannam@95: # certainly right. cannam@95: break;; cannam@95: *.* ) cannam@95: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; cannam@95: then :; else cannam@95: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@95: fi cannam@95: # We set ac_cv_exeext here because the later test for it is not cannam@95: # safe: cross compilers may not add the suffix if given an `-o' cannam@95: # argument, so we may need to know it at that point already. cannam@95: # Even if this section looks crufty: it has the advantage of cannam@95: # actually working. cannam@95: break;; cannam@95: * ) cannam@95: break;; cannam@95: esac cannam@95: done cannam@95: test "$ac_cv_exeext" = no && ac_cv_exeext= cannam@95: cannam@95: else cannam@95: ac_file='' cannam@95: fi cannam@95: if test -z "$ac_file"; then : cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error 77 "C++ compiler cannot create executables cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 cannam@95: $as_echo_n "checking for C++ compiler default output file name... " >&6; } cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 cannam@95: $as_echo "$ac_file" >&6; } cannam@95: ac_exeext=$ac_cv_exeext cannam@95: cannam@95: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out cannam@95: ac_clean_files=$ac_clean_files_save cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 cannam@95: $as_echo_n "checking for suffix of executables... " >&6; } cannam@95: if { { ac_try="$ac_link" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_link") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then : cannam@95: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@95: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@95: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@95: # `rm'. cannam@95: for ac_file in conftest.exe conftest conftest.*; do cannam@95: test -f "$ac_file" || continue cannam@95: case $ac_file in cannam@95: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@95: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@95: break;; cannam@95: * ) break;; cannam@95: esac cannam@95: done cannam@95: else cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "cannot compute suffix of executables: cannot compile and link cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: fi cannam@95: rm -f conftest conftest$ac_cv_exeext cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 cannam@95: $as_echo "$ac_cv_exeext" >&6; } cannam@95: cannam@95: rm -f conftest.$ac_ext cannam@95: EXEEXT=$ac_cv_exeext cannam@95: ac_exeext=$EXEEXT cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: int cannam@95: main () cannam@95: { cannam@95: FILE *f = fopen ("conftest.out", "w"); cannam@95: return ferror (f) || fclose (f) != 0; cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: ac_clean_files="$ac_clean_files conftest.out" cannam@95: # Check that the compiler produces executables we can run. If not, either cannam@95: # the compiler is broken, or we cross compile. cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 cannam@95: $as_echo_n "checking whether we are cross compiling... " >&6; } cannam@95: if test "$cross_compiling" != yes; then cannam@95: { { ac_try="$ac_link" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_link") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } cannam@95: if { ac_try='./conftest$ac_cv_exeext' cannam@95: { { case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_try") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; }; then cannam@95: cross_compiling=no cannam@95: else cannam@95: if test "$cross_compiling" = maybe; then cannam@95: cross_compiling=yes cannam@95: else cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "cannot run C++ compiled programs. cannam@95: If you meant to cross compile, use \`--host'. cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: fi cannam@95: fi cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 cannam@95: $as_echo "$cross_compiling" >&6; } cannam@95: cannam@95: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out cannam@95: ac_clean_files=$ac_clean_files_save cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 cannam@95: $as_echo_n "checking for suffix of object files... " >&6; } cannam@95: if ${ac_cv_objext+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: rm -f conftest.o conftest.obj cannam@95: if { { ac_try="$ac_compile" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_compile") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then : cannam@95: for ac_file in conftest.o conftest.obj conftest.*; do cannam@95: test -f "$ac_file" || continue; cannam@95: case $ac_file in cannam@95: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; cannam@95: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@95: break;; cannam@95: esac cannam@95: done cannam@95: else cannam@95: $as_echo "$as_me: failed program was:" >&5 cannam@95: sed 's/^/| /' conftest.$ac_ext >&5 cannam@95: cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "cannot compute suffix of object files: cannot compile cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: fi cannam@95: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 cannam@95: $as_echo "$ac_cv_objext" >&6; } cannam@95: OBJEXT=$ac_cv_objext cannam@95: ac_objext=$OBJEXT cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 cannam@95: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } cannam@95: if ${ac_cv_cxx_compiler_gnu+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #ifndef __GNUC__ cannam@95: choke me cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@95: ac_compiler_gnu=yes cannam@95: else cannam@95: ac_compiler_gnu=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu cannam@95: cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 cannam@95: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } cannam@95: if test $ac_compiler_gnu = yes; then cannam@95: GXX=yes cannam@95: else cannam@95: GXX= cannam@95: fi cannam@95: ac_test_CXXFLAGS=${CXXFLAGS+set} cannam@95: ac_save_CXXFLAGS=$CXXFLAGS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 cannam@95: $as_echo_n "checking whether $CXX accepts -g... " >&6; } cannam@95: if ${ac_cv_prog_cxx_g+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: ac_save_cxx_werror_flag=$ac_cxx_werror_flag cannam@95: ac_cxx_werror_flag=yes cannam@95: ac_cv_prog_cxx_g=no cannam@95: CXXFLAGS="-g" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@95: ac_cv_prog_cxx_g=yes cannam@95: else cannam@95: CXXFLAGS="" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@95: cannam@95: else cannam@95: ac_cxx_werror_flag=$ac_save_cxx_werror_flag cannam@95: CXXFLAGS="-g" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_cxx_try_compile "$LINENO"; then : cannam@95: ac_cv_prog_cxx_g=yes cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: ac_cxx_werror_flag=$ac_save_cxx_werror_flag cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 cannam@95: $as_echo "$ac_cv_prog_cxx_g" >&6; } cannam@95: if test "$ac_test_CXXFLAGS" = set; then cannam@95: CXXFLAGS=$ac_save_CXXFLAGS cannam@95: elif test $ac_cv_prog_cxx_g = yes; then cannam@95: if test "$GXX" = yes; then cannam@95: CXXFLAGS="-g -O2" cannam@95: else cannam@95: CXXFLAGS="-g" cannam@95: fi cannam@95: else cannam@95: if test "$GXX" = yes; then cannam@95: CXXFLAGS="-O2" cannam@95: else cannam@95: CXXFLAGS= cannam@95: fi cannam@95: fi cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: if test -n "$ac_tool_prefix"; then cannam@95: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@95: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$CC"; then cannam@95: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: CC=$ac_cv_prog_CC cannam@95: if test -n "$CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@95: $as_echo "$CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: fi cannam@95: if test -z "$ac_cv_prog_CC"; then cannam@95: ac_ct_CC=$CC cannam@95: # Extract the first word of "gcc", so it can be a program name with args. cannam@95: set dummy gcc; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$ac_ct_CC"; then cannam@95: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_ac_ct_CC="gcc" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@95: if test -n "$ac_ct_CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@95: $as_echo "$ac_ct_CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: if test "x$ac_ct_CC" = x; then cannam@95: CC="" cannam@95: else cannam@95: case $cross_compiling:$ac_tool_warned in cannam@95: yes:) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@95: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@95: ac_tool_warned=yes ;; cannam@95: esac cannam@95: CC=$ac_ct_CC cannam@95: fi cannam@95: else cannam@95: CC="$ac_cv_prog_CC" cannam@95: fi cannam@95: cannam@95: if test -z "$CC"; then cannam@95: if test -n "$ac_tool_prefix"; then cannam@95: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@95: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$CC"; then cannam@95: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: CC=$ac_cv_prog_CC cannam@95: if test -n "$CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@95: $as_echo "$CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: fi cannam@95: fi cannam@95: if test -z "$CC"; then cannam@95: # Extract the first word of "cc", so it can be a program name with args. cannam@95: set dummy cc; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$CC"; then cannam@95: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@95: else cannam@95: ac_prog_rejected=no cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@95: ac_prog_rejected=yes cannam@95: continue cannam@95: fi cannam@95: ac_cv_prog_CC="cc" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: if test $ac_prog_rejected = yes; then cannam@95: # We found a bogon in the path, so make sure we never use it. cannam@95: set dummy $ac_cv_prog_CC cannam@95: shift cannam@95: if test $# != 0; then cannam@95: # We chose a different compiler from the bogus one. cannam@95: # However, it has the same basename, so the bogon will be chosen cannam@95: # first if we set CC to just the basename; use the full file name. cannam@95: shift cannam@95: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@95: fi cannam@95: fi cannam@95: fi cannam@95: fi cannam@95: CC=$ac_cv_prog_CC cannam@95: if test -n "$CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@95: $as_echo "$CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: fi cannam@95: if test -z "$CC"; then cannam@95: if test -n "$ac_tool_prefix"; then cannam@95: for ac_prog in cl.exe cannam@95: do cannam@95: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@95: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$CC"; then cannam@95: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: CC=$ac_cv_prog_CC cannam@95: if test -n "$CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@95: $as_echo "$CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: test -n "$CC" && break cannam@95: done cannam@95: fi cannam@95: if test -z "$CC"; then cannam@95: ac_ct_CC=$CC cannam@95: for ac_prog in cl.exe cannam@95: do cannam@95: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@95: set dummy $ac_prog; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -n "$ac_ct_CC"; then cannam@95: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@95: else cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: fi cannam@95: fi cannam@95: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@95: if test -n "$ac_ct_CC"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@95: $as_echo "$ac_ct_CC" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: test -n "$ac_ct_CC" && break cannam@95: done cannam@95: cannam@95: if test "x$ac_ct_CC" = x; then cannam@95: CC="" cannam@95: else cannam@95: case $cross_compiling:$ac_tool_warned in cannam@95: yes:) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@95: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@95: ac_tool_warned=yes ;; cannam@95: esac cannam@95: CC=$ac_ct_CC cannam@95: fi cannam@95: fi cannam@95: cannam@95: fi cannam@95: cannam@95: cannam@95: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "no acceptable C compiler found in \$PATH cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: cannam@95: # Provide some information about the compiler. cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 cannam@95: set X $ac_compile cannam@95: ac_compiler=$2 cannam@95: for ac_option in --version -v -V -qversion; do cannam@95: { { ac_try="$ac_compiler $ac_option >&5" cannam@95: case "(($ac_try" in cannam@95: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@95: *) ac_try_echo=$ac_try;; cannam@95: esac cannam@95: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@95: $as_echo "$ac_try_echo"; } >&5 cannam@95: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@95: ac_status=$? cannam@95: if test -s conftest.err; then cannam@95: sed '10a\ cannam@95: ... rest of stderr output deleted ... cannam@95: 10q' conftest.err >conftest.er1 cannam@95: cat conftest.er1 >&5 cannam@95: fi cannam@95: rm -f conftest.er1 conftest.err cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; } cannam@95: done cannam@95: cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 cannam@95: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } cannam@95: if ${ac_cv_c_compiler_gnu+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #ifndef __GNUC__ cannam@95: choke me cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_compiler_gnu=yes cannam@95: else cannam@95: ac_compiler_gnu=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@95: cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 cannam@95: $as_echo "$ac_cv_c_compiler_gnu" >&6; } cannam@95: if test $ac_compiler_gnu = yes; then cannam@95: GCC=yes cannam@95: else cannam@95: GCC= cannam@95: fi cannam@95: ac_test_CFLAGS=${CFLAGS+set} cannam@95: ac_save_CFLAGS=$CFLAGS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 cannam@95: $as_echo_n "checking whether $CC accepts -g... " >&6; } cannam@95: if ${ac_cv_prog_cc_g+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: ac_save_c_werror_flag=$ac_c_werror_flag cannam@95: ac_c_werror_flag=yes cannam@95: ac_cv_prog_cc_g=no cannam@95: CFLAGS="-g" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_prog_cc_g=yes cannam@95: else cannam@95: CFLAGS="" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: cannam@95: else cannam@95: ac_c_werror_flag=$ac_save_c_werror_flag cannam@95: CFLAGS="-g" cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_prog_cc_g=yes cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: ac_c_werror_flag=$ac_save_c_werror_flag cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 cannam@95: $as_echo "$ac_cv_prog_cc_g" >&6; } cannam@95: if test "$ac_test_CFLAGS" = set; then cannam@95: CFLAGS=$ac_save_CFLAGS cannam@95: elif test $ac_cv_prog_cc_g = yes; then cannam@95: if test "$GCC" = yes; then cannam@95: CFLAGS="-g -O2" cannam@95: else cannam@95: CFLAGS="-g" cannam@95: fi cannam@95: else cannam@95: if test "$GCC" = yes; then cannam@95: CFLAGS="-O2" cannam@95: else cannam@95: CFLAGS= cannam@95: fi cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 cannam@95: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } cannam@95: if ${ac_cv_prog_cc_c89+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: ac_cv_prog_cc_c89=no cannam@95: ac_save_CC=$CC cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: #include cannam@95: struct stat; cannam@95: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@95: struct buf { int x; }; cannam@95: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@95: static char *e (p, i) cannam@95: char **p; cannam@95: int i; cannam@95: { cannam@95: return p[i]; cannam@95: } cannam@95: static char *f (char * (*g) (char **, int), char **p, ...) cannam@95: { cannam@95: char *s; cannam@95: va_list v; cannam@95: va_start (v,p); cannam@95: s = g (p, va_arg (v,int)); cannam@95: va_end (v); cannam@95: return s; cannam@95: } cannam@95: cannam@95: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@95: function prototypes and stuff, but not '\xHH' hex character constants. cannam@95: These don't provoke an error unfortunately, instead are silently treated cannam@95: as 'x'. The following induces an error, until -std is added to get cannam@95: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@95: array size at least. It's necessary to write '\x00'==0 to get something cannam@95: that's true only with -std. */ cannam@95: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@95: cannam@95: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters cannam@95: inside strings and character constants. */ cannam@95: #define FOO(x) 'x' cannam@95: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; cannam@95: cannam@95: int test (int i, double x); cannam@95: struct s1 {int (*f) (int a);}; cannam@95: struct s2 {int (*f) (double a);}; cannam@95: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@95: int argc; cannam@95: char **argv; cannam@95: int cannam@95: main () cannam@95: { cannam@95: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ cannam@95: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@95: do cannam@95: CC="$ac_save_CC $ac_arg" cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_prog_cc_c89=$ac_arg cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext cannam@95: test "x$ac_cv_prog_cc_c89" != "xno" && break cannam@95: done cannam@95: rm -f conftest.$ac_ext cannam@95: CC=$ac_save_CC cannam@95: cannam@95: fi cannam@95: # AC_CACHE_VAL cannam@95: case "x$ac_cv_prog_cc_c89" in cannam@95: x) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@95: $as_echo "none needed" >&6; } ;; cannam@95: xno) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@95: $as_echo "unsupported" >&6; } ;; cannam@95: *) cannam@95: CC="$CC $ac_cv_prog_cc_c89" cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 cannam@95: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; cannam@95: esac cannam@95: if test "x$ac_cv_prog_cc_c89" != xno; then : cannam@95: cannam@95: fi cannam@95: cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: cannam@95: cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 cannam@95: $as_echo_n "checking how to run the C preprocessor... " >&6; } cannam@95: # On Suns, sometimes $CPP names a directory. cannam@95: if test -n "$CPP" && test -d "$CPP"; then cannam@95: CPP= cannam@95: fi cannam@95: if test -z "$CPP"; then cannam@95: if ${ac_cv_prog_CPP+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: # Double quotes because CPP needs to be expanded cannam@95: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@95: do cannam@95: ac_preproc_ok=false cannam@95: for ac_c_preproc_warn_flag in '' yes cannam@95: do cannam@95: # Use a header file that comes with gcc, so configuring glibc cannam@95: # with a fresh cross-compiler works. cannam@95: # Prefer to if __STDC__ is defined, since cannam@95: # exists even on freestanding compilers. cannam@95: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@95: # not just through cpp. "Syntax error" is here to catch this case. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #ifdef __STDC__ cannam@95: # include cannam@95: #else cannam@95: # include cannam@95: #endif cannam@95: Syntax error cannam@95: _ACEOF cannam@95: if ac_fn_c_try_cpp "$LINENO"; then : cannam@95: cannam@95: else cannam@95: # Broken: fails on valid input. cannam@95: continue cannam@95: fi cannam@95: rm -f conftest.err conftest.i conftest.$ac_ext cannam@95: cannam@95: # OK, works on sane cases. Now check whether nonexistent headers cannam@95: # can be detected and how. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: _ACEOF cannam@95: if ac_fn_c_try_cpp "$LINENO"; then : cannam@95: # Broken: success on invalid input. cannam@95: continue cannam@95: else cannam@95: # Passes both tests. cannam@95: ac_preproc_ok=: cannam@95: break cannam@95: fi cannam@95: rm -f conftest.err conftest.i conftest.$ac_ext cannam@95: cannam@95: done cannam@95: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@95: rm -f conftest.i conftest.err conftest.$ac_ext cannam@95: if $ac_preproc_ok; then : cannam@95: break cannam@95: fi cannam@95: cannam@95: done cannam@95: ac_cv_prog_CPP=$CPP cannam@95: cannam@95: fi cannam@95: CPP=$ac_cv_prog_CPP cannam@95: else cannam@95: ac_cv_prog_CPP=$CPP cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 cannam@95: $as_echo "$CPP" >&6; } cannam@95: ac_preproc_ok=false cannam@95: for ac_c_preproc_warn_flag in '' yes cannam@95: do cannam@95: # Use a header file that comes with gcc, so configuring glibc cannam@95: # with a fresh cross-compiler works. cannam@95: # Prefer to if __STDC__ is defined, since cannam@95: # exists even on freestanding compilers. cannam@95: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@95: # not just through cpp. "Syntax error" is here to catch this case. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #ifdef __STDC__ cannam@95: # include cannam@95: #else cannam@95: # include cannam@95: #endif cannam@95: Syntax error cannam@95: _ACEOF cannam@95: if ac_fn_c_try_cpp "$LINENO"; then : cannam@95: cannam@95: else cannam@95: # Broken: fails on valid input. cannam@95: continue cannam@95: fi cannam@95: rm -f conftest.err conftest.i conftest.$ac_ext cannam@95: cannam@95: # OK, works on sane cases. Now check whether nonexistent headers cannam@95: # can be detected and how. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: _ACEOF cannam@95: if ac_fn_c_try_cpp "$LINENO"; then : cannam@95: # Broken: success on invalid input. cannam@95: continue cannam@95: else cannam@95: # Passes both tests. cannam@95: ac_preproc_ok=: cannam@95: break cannam@95: fi cannam@95: rm -f conftest.err conftest.i conftest.$ac_ext cannam@95: cannam@95: done cannam@95: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@95: rm -f conftest.i conftest.err conftest.$ac_ext cannam@95: if $ac_preproc_ok; then : cannam@95: cannam@95: else cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: fi cannam@95: cannam@95: ac_ext=c cannam@95: ac_cpp='$CPP $CPPFLAGS' cannam@95: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@95: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@95: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@95: cannam@95: cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 cannam@95: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } cannam@95: if ${ac_cv_path_GREP+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if test -z "$GREP"; then cannam@95: ac_path_GREP_found=false cannam@95: # Loop through the user's path and test for each of PROGNAME-LIST cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_prog in grep ggrep; do cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" cannam@95: as_fn_executable_p "$ac_path_GREP" || continue cannam@95: # Check for GNU ac_path_GREP and select it if it is found. cannam@95: # Check for GNU $ac_path_GREP cannam@95: case `"$ac_path_GREP" --version 2>&1` in cannam@95: *GNU*) cannam@95: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; cannam@95: *) cannam@95: ac_count=0 cannam@95: $as_echo_n 0123456789 >"conftest.in" cannam@95: while : cannam@95: do cannam@95: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@95: mv "conftest.tmp" "conftest.in" cannam@95: cp "conftest.in" "conftest.nl" cannam@95: $as_echo 'GREP' >> "conftest.nl" cannam@95: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@95: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@95: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@95: if test $ac_count -gt ${ac_path_GREP_max-0}; then cannam@95: # Best one so far, save it but keep looking for a better one cannam@95: ac_cv_path_GREP="$ac_path_GREP" cannam@95: ac_path_GREP_max=$ac_count cannam@95: fi cannam@95: # 10*(2^10) chars as input seems more than enough cannam@95: test $ac_count -gt 10 && break cannam@95: done cannam@95: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@95: esac cannam@95: cannam@95: $ac_path_GREP_found && break 3 cannam@95: done cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: if test -z "$ac_cv_path_GREP"; then cannam@95: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@95: fi cannam@95: else cannam@95: ac_cv_path_GREP=$GREP cannam@95: fi cannam@95: cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 cannam@95: $as_echo "$ac_cv_path_GREP" >&6; } cannam@95: GREP="$ac_cv_path_GREP" cannam@95: cannam@95: cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 cannam@95: $as_echo_n "checking for egrep... " >&6; } cannam@95: if ${ac_cv_path_EGREP+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 cannam@95: then ac_cv_path_EGREP="$GREP -E" cannam@95: else cannam@95: if test -z "$EGREP"; then cannam@95: ac_path_EGREP_found=false cannam@95: # Loop through the user's path and test for each of PROGNAME-LIST cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_prog in egrep; do cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@95: as_fn_executable_p "$ac_path_EGREP" || continue cannam@95: # Check for GNU ac_path_EGREP and select it if it is found. cannam@95: # Check for GNU $ac_path_EGREP cannam@95: case `"$ac_path_EGREP" --version 2>&1` in cannam@95: *GNU*) cannam@95: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; cannam@95: *) cannam@95: ac_count=0 cannam@95: $as_echo_n 0123456789 >"conftest.in" cannam@95: while : cannam@95: do cannam@95: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@95: mv "conftest.tmp" "conftest.in" cannam@95: cp "conftest.in" "conftest.nl" cannam@95: $as_echo 'EGREP' >> "conftest.nl" cannam@95: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@95: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@95: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@95: if test $ac_count -gt ${ac_path_EGREP_max-0}; then cannam@95: # Best one so far, save it but keep looking for a better one cannam@95: ac_cv_path_EGREP="$ac_path_EGREP" cannam@95: ac_path_EGREP_max=$ac_count cannam@95: fi cannam@95: # 10*(2^10) chars as input seems more than enough cannam@95: test $ac_count -gt 10 && break cannam@95: done cannam@95: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@95: esac cannam@95: cannam@95: $ac_path_EGREP_found && break 3 cannam@95: done cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: if test -z "$ac_cv_path_EGREP"; then cannam@95: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@95: fi cannam@95: else cannam@95: ac_cv_path_EGREP=$EGREP cannam@95: fi cannam@95: cannam@95: fi cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 cannam@95: $as_echo "$ac_cv_path_EGREP" >&6; } cannam@95: EGREP="$ac_cv_path_EGREP" cannam@95: cannam@95: cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 cannam@95: $as_echo_n "checking for ANSI C header files... " >&6; } cannam@95: if ${ac_cv_header_stdc+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: #include cannam@95: #include cannam@95: #include cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_header_stdc=yes cannam@95: else cannam@95: ac_cv_header_stdc=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: cannam@95: if test $ac_cv_header_stdc = yes; then cannam@95: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: cannam@95: _ACEOF cannam@95: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@95: $EGREP "memchr" >/dev/null 2>&1; then : cannam@95: cannam@95: else cannam@95: ac_cv_header_stdc=no cannam@95: fi cannam@95: rm -f conftest* cannam@95: cannam@95: fi cannam@95: cannam@95: if test $ac_cv_header_stdc = yes; then cannam@95: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: cannam@95: _ACEOF cannam@95: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@95: $EGREP "free" >/dev/null 2>&1; then : cannam@95: cannam@95: else cannam@95: ac_cv_header_stdc=no cannam@95: fi cannam@95: rm -f conftest* cannam@95: cannam@95: fi cannam@95: cannam@95: if test $ac_cv_header_stdc = yes; then cannam@95: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@95: if test "$cross_compiling" = yes; then : cannam@95: : cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: #include cannam@95: #if ((' ' & 0x0FF) == 0x020) cannam@95: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@95: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@95: #else cannam@95: # define ISLOWER(c) \ cannam@95: (('a' <= (c) && (c) <= 'i') \ cannam@95: || ('j' <= (c) && (c) <= 'r') \ cannam@95: || ('s' <= (c) && (c) <= 'z')) cannam@95: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@95: #endif cannam@95: cannam@95: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@95: int cannam@95: main () cannam@95: { cannam@95: int i; cannam@95: for (i = 0; i < 256; i++) cannam@95: if (XOR (islower (i), ISLOWER (i)) cannam@95: || toupper (i) != TOUPPER (i)) cannam@95: return 2; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_run "$LINENO"; then : cannam@95: cannam@95: else cannam@95: ac_cv_header_stdc=no cannam@95: fi cannam@95: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@95: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@95: fi cannam@95: cannam@95: fi cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 cannam@95: $as_echo "$ac_cv_header_stdc" >&6; } cannam@95: if test $ac_cv_header_stdc = yes; then cannam@95: cannam@95: $as_echo "#define STDC_HEADERS 1" >>confdefs.h cannam@95: cannam@95: fi cannam@95: cannam@95: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@95: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@95: inttypes.h stdint.h unistd.h cannam@95: do : cannam@95: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@95: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default cannam@95: " cannam@95: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@95: _ACEOF cannam@95: cannam@95: fi cannam@95: cannam@95: done cannam@95: cannam@95: cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 cannam@95: $as_echo_n "checking whether byte ordering is bigendian... " >&6; } cannam@95: if ${ac_cv_c_bigendian+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: ac_cv_c_bigendian=unknown cannam@95: # See if we're dealing with a universal compiler. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #ifndef __APPLE_CC__ cannam@95: not a universal capable compiler cannam@95: #endif cannam@95: typedef int dummy; cannam@95: cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: cannam@95: # Check for potential -arch flags. It is not universal unless cannam@95: # there are at least two -arch flags with different values. cannam@95: ac_arch= cannam@95: ac_prev= cannam@95: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do cannam@95: if test -n "$ac_prev"; then cannam@95: case $ac_word in cannam@95: i?86 | x86_64 | ppc | ppc64) cannam@95: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then cannam@95: ac_arch=$ac_word cannam@95: else cannam@95: ac_cv_c_bigendian=universal cannam@95: break cannam@95: fi cannam@95: ;; cannam@95: esac cannam@95: ac_prev= cannam@95: elif test "x$ac_word" = "x-arch"; then cannam@95: ac_prev=arch cannam@95: fi cannam@95: done cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: if test $ac_cv_c_bigendian = unknown; then cannam@95: # See if sys/param.h defines the BYTE_ORDER macro. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: #include cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ cannam@95: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ cannam@95: && LITTLE_ENDIAN) cannam@95: bogus endian macros cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: # It does; now see whether it defined to BIG_ENDIAN or not. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: #include cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #if BYTE_ORDER != BIG_ENDIAN cannam@95: not big endian cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_c_bigendian=yes cannam@95: else cannam@95: ac_cv_c_bigendian=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: if test $ac_cv_c_bigendian = unknown; then cannam@95: # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) cannam@95: bogus endian macros cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: # It does; now see whether it defined to _BIG_ENDIAN or not. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: #include cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: #ifndef _BIG_ENDIAN cannam@95: not big endian cannam@95: #endif cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: ac_cv_c_bigendian=yes cannam@95: else cannam@95: ac_cv_c_bigendian=no cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: fi cannam@95: if test $ac_cv_c_bigendian = unknown; then cannam@95: # Compile a test program. cannam@95: if test "$cross_compiling" = yes; then : cannam@95: # Try to guess by grepping values from an object file. cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: short int ascii_mm[] = cannam@95: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; cannam@95: short int ascii_ii[] = cannam@95: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; cannam@95: int use_ascii (int i) { cannam@95: return ascii_mm[i] + ascii_ii[i]; cannam@95: } cannam@95: short int ebcdic_ii[] = cannam@95: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; cannam@95: short int ebcdic_mm[] = cannam@95: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; cannam@95: int use_ebcdic (int i) { cannam@95: return ebcdic_mm[i] + ebcdic_ii[i]; cannam@95: } cannam@95: extern int foo; cannam@95: cannam@95: int cannam@95: main () cannam@95: { cannam@95: return use_ascii (foo) == use_ebcdic (foo); cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_compile "$LINENO"; then : cannam@95: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then cannam@95: ac_cv_c_bigendian=yes cannam@95: fi cannam@95: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then cannam@95: if test "$ac_cv_c_bigendian" = unknown; then cannam@95: ac_cv_c_bigendian=no cannam@95: else cannam@95: # finding both strings is unlikely to happen, but who knows? cannam@95: ac_cv_c_bigendian=unknown cannam@95: fi cannam@95: fi cannam@95: fi cannam@95: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@95: else cannam@95: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@95: /* end confdefs.h. */ cannam@95: $ac_includes_default cannam@95: int cannam@95: main () cannam@95: { cannam@95: cannam@95: /* Are we little or big endian? From Harbison&Steele. */ cannam@95: union cannam@95: { cannam@95: long int l; cannam@95: char c[sizeof (long int)]; cannam@95: } u; cannam@95: u.l = 1; cannam@95: return u.c[sizeof (long int) - 1] == 1; cannam@95: cannam@95: ; cannam@95: return 0; cannam@95: } cannam@95: _ACEOF cannam@95: if ac_fn_c_try_run "$LINENO"; then : cannam@95: ac_cv_c_bigendian=no cannam@95: else cannam@95: ac_cv_c_bigendian=yes cannam@95: fi cannam@95: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@95: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@95: fi cannam@95: cannam@95: fi cannam@95: fi cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 cannam@95: $as_echo "$ac_cv_c_bigendian" >&6; } cannam@95: case $ac_cv_c_bigendian in #( cannam@95: yes) cannam@95: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h cannam@95: ;; #( cannam@95: no) cannam@95: ;; #( cannam@95: universal) cannam@95: cannam@95: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h cannam@95: cannam@95: ;; #( cannam@95: *) cannam@95: as_fn_error $? "unknown endianness cannam@95: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; cannam@95: esac cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then cannam@95: if test -n "$ac_tool_prefix"; then cannam@95: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. cannam@95: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_path_PKG_CONFIG+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: case $PKG_CONFIG in cannam@95: [\\/]* | ?:[\\/]*) cannam@95: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. cannam@95: ;; cannam@95: *) cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: ;; cannam@95: esac cannam@95: fi cannam@95: PKG_CONFIG=$ac_cv_path_PKG_CONFIG cannam@95: if test -n "$PKG_CONFIG"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 cannam@95: $as_echo "$PKG_CONFIG" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: cannam@95: fi cannam@95: if test -z "$ac_cv_path_PKG_CONFIG"; then cannam@95: ac_pt_PKG_CONFIG=$PKG_CONFIG cannam@95: # Extract the first word of "pkg-config", so it can be a program name with args. cannam@95: set dummy pkg-config; ac_word=$2 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@95: $as_echo_n "checking for $ac_word... " >&6; } cannam@95: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : cannam@95: $as_echo_n "(cached) " >&6 cannam@95: else cannam@95: case $ac_pt_PKG_CONFIG in cannam@95: [\\/]* | ?:[\\/]*) cannam@95: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. cannam@95: ;; cannam@95: *) cannam@95: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: for ac_exec_ext in '' $ac_executable_extensions; do cannam@95: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@95: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@95: break 2 cannam@95: fi cannam@95: done cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: ;; cannam@95: esac cannam@95: fi cannam@95: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG cannam@95: if test -n "$ac_pt_PKG_CONFIG"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 cannam@95: $as_echo "$ac_pt_PKG_CONFIG" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: fi cannam@95: cannam@95: if test "x$ac_pt_PKG_CONFIG" = x; then cannam@95: PKG_CONFIG="" cannam@95: else cannam@95: case $cross_compiling:$ac_tool_warned in cannam@95: yes:) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@95: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@95: ac_tool_warned=yes ;; cannam@95: esac cannam@95: PKG_CONFIG=$ac_pt_PKG_CONFIG cannam@95: fi cannam@95: else cannam@95: PKG_CONFIG="$ac_cv_path_PKG_CONFIG" cannam@95: fi cannam@95: cannam@95: fi cannam@95: if test -n "$PKG_CONFIG"; then cannam@95: _pkg_min_version=0.9.0 cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 cannam@95: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } cannam@95: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: PKG_CONFIG="" cannam@95: fi cannam@95: fi cannam@95: cannam@95: pkg_failed=no cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRC" >&5 cannam@95: $as_echo_n "checking for SRC... " >&6; } cannam@95: cannam@95: if test -n "$SRC_CFLAGS"; then cannam@95: pkg_cv_SRC_CFLAGS="$SRC_CFLAGS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_SRC_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: if test -n "$SRC_LIBS"; then cannam@95: pkg_cv_SRC_LIBS="$SRC_LIBS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_SRC_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: if test $pkg_failed = yes; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: cannam@95: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@95: _pkg_short_errors_supported=yes cannam@95: else cannam@95: _pkg_short_errors_supported=no cannam@95: fi cannam@95: if test $_pkg_short_errors_supported = yes; then cannam@95: SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1` cannam@95: else cannam@95: SRC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1` cannam@95: fi cannam@95: # Put the nasty error message in config.log where it belongs cannam@95: echo "$SRC_PKG_ERRORS" >&5 cannam@95: cannam@95: as_fn_error $? "Package requirements (samplerate) were not met: cannam@95: cannam@95: $SRC_PKG_ERRORS cannam@95: cannam@95: Consider adjusting the PKG_CONFIG_PATH environment variable if you cannam@95: installed software in a non-standard prefix. cannam@95: cannam@95: Alternatively, you may set the environment variables SRC_CFLAGS cannam@95: and SRC_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details." "$LINENO" 5 cannam@95: elif test $pkg_failed = untried; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it cannam@95: is in your PATH or set the PKG_CONFIG environment variable to the full cannam@95: path to pkg-config. cannam@95: cannam@95: Alternatively, you may set the environment variables SRC_CFLAGS cannam@95: and SRC_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details. cannam@95: cannam@95: To get pkg-config, see . cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: else cannam@95: SRC_CFLAGS=$pkg_cv_SRC_CFLAGS cannam@95: SRC_LIBS=$pkg_cv_SRC_LIBS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: pkg_failed=no cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 cannam@95: $as_echo_n "checking for SNDFILE... " >&6; } cannam@95: cannam@95: if test -n "$SNDFILE_CFLAGS"; then cannam@95: pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: if test -n "$SNDFILE_LIBS"; then cannam@95: pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: if test $pkg_failed = yes; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: cannam@95: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@95: _pkg_short_errors_supported=yes cannam@95: else cannam@95: _pkg_short_errors_supported=no cannam@95: fi cannam@95: if test $_pkg_short_errors_supported = yes; then cannam@95: SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1` cannam@95: else cannam@95: SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1` cannam@95: fi cannam@95: # Put the nasty error message in config.log where it belongs cannam@95: echo "$SNDFILE_PKG_ERRORS" >&5 cannam@95: cannam@95: as_fn_error $? "Package requirements (sndfile) were not met: cannam@95: cannam@95: $SNDFILE_PKG_ERRORS cannam@95: cannam@95: Consider adjusting the PKG_CONFIG_PATH environment variable if you cannam@95: installed software in a non-standard prefix. cannam@95: cannam@95: Alternatively, you may set the environment variables SNDFILE_CFLAGS cannam@95: and SNDFILE_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details." "$LINENO" 5 cannam@95: elif test $pkg_failed = untried; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it cannam@95: is in your PATH or set the PKG_CONFIG environment variable to the full cannam@95: path to pkg-config. cannam@95: cannam@95: Alternatively, you may set the environment variables SNDFILE_CFLAGS cannam@95: and SNDFILE_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details. cannam@95: cannam@95: To get pkg-config, see . cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: else cannam@95: SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS cannam@95: SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: pkg_failed=no cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 cannam@95: $as_echo_n "checking for FFTW... " >&6; } cannam@95: cannam@95: if test -n "$FFTW_CFLAGS"; then cannam@95: pkg_cv_FFTW_CFLAGS="$FFTW_CFLAGS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_FFTW_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: if test -n "$FFTW_LIBS"; then cannam@95: pkg_cv_FFTW_LIBS="$FFTW_LIBS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_FFTW_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: if test $pkg_failed = yes; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: cannam@95: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@95: _pkg_short_errors_supported=yes cannam@95: else cannam@95: _pkg_short_errors_supported=no cannam@95: fi cannam@95: if test $_pkg_short_errors_supported = yes; then cannam@95: FFTW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3" 2>&1` cannam@95: else cannam@95: FFTW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3" 2>&1` cannam@95: fi cannam@95: # Put the nasty error message in config.log where it belongs cannam@95: echo "$FFTW_PKG_ERRORS" >&5 cannam@95: cannam@95: as_fn_error $? "Package requirements (fftw3) were not met: cannam@95: cannam@95: $FFTW_PKG_ERRORS cannam@95: cannam@95: Consider adjusting the PKG_CONFIG_PATH environment variable if you cannam@95: installed software in a non-standard prefix. cannam@95: cannam@95: Alternatively, you may set the environment variables FFTW_CFLAGS cannam@95: and FFTW_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details." "$LINENO" 5 cannam@95: elif test $pkg_failed = untried; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it cannam@95: is in your PATH or set the PKG_CONFIG environment variable to the full cannam@95: path to pkg-config. cannam@95: cannam@95: Alternatively, you may set the environment variables FFTW_CFLAGS cannam@95: and FFTW_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details. cannam@95: cannam@95: To get pkg-config, see . cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: else cannam@95: FFTW_CFLAGS=$pkg_cv_FFTW_CFLAGS cannam@95: FFTW_LIBS=$pkg_cv_FFTW_LIBS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: for ac_header in ladspa.h cannam@95: do : cannam@95: ac_fn_c_check_header_mongrel "$LINENO" "ladspa.h" "ac_cv_header_ladspa_h" "$ac_includes_default" cannam@95: if test "x$ac_cv_header_ladspa_h" = xyes; then : cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define HAVE_LADSPA_H 1 cannam@95: _ACEOF cannam@95: cannam@95: fi cannam@95: cannam@95: done cannam@95: cannam@95: for ac_header in pthread.h cannam@95: do : cannam@95: ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" cannam@95: if test "x$ac_cv_header_pthread_h" = xyes; then : cannam@95: cat >>confdefs.h <<_ACEOF cannam@95: #define HAVE_PTHREAD_H 1 cannam@95: _ACEOF cannam@95: cannam@95: fi cannam@95: cannam@95: done cannam@95: cannam@95: cannam@95: cannam@95: pkg_failed=no cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vamp" >&5 cannam@95: $as_echo_n "checking for Vamp... " >&6; } cannam@95: cannam@95: if test -n "$Vamp_CFLAGS"; then cannam@95: pkg_cv_Vamp_CFLAGS="$Vamp_CFLAGS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vamp-sdk\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "vamp-sdk") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_Vamp_CFLAGS=`$PKG_CONFIG --cflags "vamp-sdk" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: if test -n "$Vamp_LIBS"; then cannam@95: pkg_cv_Vamp_LIBS="$Vamp_LIBS" cannam@95: elif test -n "$PKG_CONFIG"; then cannam@95: if test -n "$PKG_CONFIG" && \ cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vamp-sdk\""; } >&5 cannam@95: ($PKG_CONFIG --exists --print-errors "vamp-sdk") 2>&5 cannam@95: ac_status=$? cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@95: test $ac_status = 0; }; then cannam@95: pkg_cv_Vamp_LIBS=`$PKG_CONFIG --libs "vamp-sdk" 2>/dev/null` cannam@95: test "x$?" != "x0" && pkg_failed=yes cannam@95: else cannam@95: pkg_failed=yes cannam@95: fi cannam@95: else cannam@95: pkg_failed=untried cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: if test $pkg_failed = yes; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: cannam@95: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then cannam@95: _pkg_short_errors_supported=yes cannam@95: else cannam@95: _pkg_short_errors_supported=no cannam@95: fi cannam@95: if test $_pkg_short_errors_supported = yes; then cannam@95: Vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vamp-sdk" 2>&1` cannam@95: else cannam@95: Vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vamp-sdk" 2>&1` cannam@95: fi cannam@95: # Put the nasty error message in config.log where it belongs cannam@95: echo "$Vamp_PKG_ERRORS" >&5 cannam@95: cannam@95: as_fn_error $? "Package requirements (vamp-sdk) were not met: cannam@95: cannam@95: $Vamp_PKG_ERRORS cannam@95: cannam@95: Consider adjusting the PKG_CONFIG_PATH environment variable if you cannam@95: installed software in a non-standard prefix. cannam@95: cannam@95: Alternatively, you may set the environment variables Vamp_CFLAGS cannam@95: and Vamp_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details." "$LINENO" 5 cannam@95: elif test $pkg_failed = untried; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@95: $as_echo "no" >&6; } cannam@95: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@95: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@95: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it cannam@95: is in your PATH or set the PKG_CONFIG environment variable to the full cannam@95: path to pkg-config. cannam@95: cannam@95: Alternatively, you may set the environment variables Vamp_CFLAGS cannam@95: and Vamp_LIBS to avoid the need to call pkg-config. cannam@95: See the pkg-config man page for more details. cannam@95: cannam@95: To get pkg-config, see . cannam@95: See \`config.log' for more details" "$LINENO" 5; } cannam@95: else cannam@95: Vamp_CFLAGS=$pkg_cv_Vamp_CFLAGS cannam@95: Vamp_LIBS=$pkg_cv_Vamp_LIBS cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@95: $as_echo "yes" >&6; } cannam@95: cannam@95: fi cannam@95: cannam@95: cannam@95: cannam@95: if test "x$GCC" = "xyes"; then cannam@95: case " $CFLAGS " in cannam@95: *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; cannam@95: *) CFLAGS="$CFLAGS -fPIC -Wall" ;; cannam@95: esac cannam@95: case " $CXXFLAGS " in cannam@95: *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; cannam@95: *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;; cannam@95: esac cannam@95: fi cannam@95: cannam@95: ac_config_files="$ac_config_files Makefile" cannam@95: cannam@95: cat >confcache <<\_ACEOF cannam@95: # This file is a shell script that caches the results of configure cannam@95: # tests run on this system so they can be shared between configure cannam@95: # scripts and configure runs, see configure's option --config-cache. cannam@95: # It is not useful on other systems. If it contains results you don't cannam@95: # want to keep, you may remove or edit it. cannam@95: # cannam@95: # config.status only pays attention to the cache file if you give it cannam@95: # the --recheck option to rerun configure. cannam@95: # cannam@95: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@95: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@95: # following values. cannam@95: cannam@95: _ACEOF cannam@95: cannam@95: # The following way of writing the cache mishandles newlines in values, cannam@95: # but we know of no workaround that is simple, portable, and efficient. cannam@95: # So, we kill variables containing newlines. cannam@95: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@95: # and sets the high bit in the cache file unless we assign to the vars. cannam@95: ( cannam@95: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do cannam@95: eval ac_val=\$$ac_var cannam@95: case $ac_val in #( cannam@95: *${as_nl}*) cannam@95: case $ac_var in #( cannam@95: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@95: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@95: esac cannam@95: case $ac_var in #( cannam@95: _ | IFS | as_nl) ;; #( cannam@95: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@95: *) { eval $ac_var=; unset $ac_var;} ;; cannam@95: esac ;; cannam@95: esac cannam@95: done cannam@95: cannam@95: (set) 2>&1 | cannam@95: case $as_nl`(ac_space=' '; set) 2>&1` in #( cannam@95: *${as_nl}ac_space=\ *) cannam@95: # `set' does not quote correctly, so add quotes: double-quote cannam@95: # substitution turns \\\\ into \\, and sed turns \\ into \. cannam@95: sed -n \ cannam@95: "s/'/'\\\\''/g; cannam@95: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@95: ;; #( cannam@95: *) cannam@95: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@95: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@95: ;; cannam@95: esac | cannam@95: sort cannam@95: ) | cannam@95: sed ' cannam@95: /^ac_cv_env_/b end cannam@95: t clear cannam@95: :clear cannam@95: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@95: t end cannam@95: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@95: :end' >>confcache cannam@95: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else cannam@95: if test -w "$cache_file"; then cannam@95: if test "x$cache_file" != "x/dev/null"; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 cannam@95: $as_echo "$as_me: updating cache $cache_file" >&6;} cannam@95: if test ! -f "$cache_file" || test -h "$cache_file"; then cannam@95: cat confcache >"$cache_file" cannam@95: else cannam@95: case $cache_file in #( cannam@95: */* | ?:*) cannam@95: mv -f confcache "$cache_file"$$ && cannam@95: mv -f "$cache_file"$$ "$cache_file" ;; #( cannam@95: *) cannam@95: mv -f confcache "$cache_file" ;; cannam@95: esac cannam@95: fi cannam@95: fi cannam@95: else cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 cannam@95: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} cannam@95: fi cannam@95: fi cannam@95: rm -f confcache cannam@95: cannam@95: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@95: # Let make expand exec_prefix. cannam@95: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@95: cannam@95: # Transform confdefs.h into DEFS. cannam@95: # Protect against shell expansion while executing Makefile rules. cannam@95: # Protect against Makefile macro expansion. cannam@95: # cannam@95: # If the first sed substitution is executed (which looks for macros that cannam@95: # take arguments), then branch to the quote section. Otherwise, cannam@95: # look for a macro that doesn't take arguments. cannam@95: ac_script=' cannam@95: :mline cannam@95: /\\$/{ cannam@95: N cannam@95: s,\\\n,, cannam@95: b mline cannam@95: } cannam@95: t clear cannam@95: :clear cannam@95: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g cannam@95: t quote cannam@95: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g cannam@95: t quote cannam@95: b any cannam@95: :quote cannam@95: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g cannam@95: s/\[/\\&/g cannam@95: s/\]/\\&/g cannam@95: s/\$/$$/g cannam@95: H cannam@95: :any cannam@95: ${ cannam@95: g cannam@95: s/^\n// cannam@95: s/\n/ /g cannam@95: p cannam@95: } cannam@95: ' cannam@95: DEFS=`sed -n "$ac_script" confdefs.h` cannam@95: cannam@95: cannam@95: ac_libobjs= cannam@95: ac_ltlibobjs= cannam@95: U= cannam@95: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@95: # 1. Remove the extension, and $U if already installed. cannam@95: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' cannam@95: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` cannam@95: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR cannam@95: # will be set to the directory where LIBOBJS objects are built. cannam@95: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" cannam@95: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' cannam@95: done cannam@95: LIBOBJS=$ac_libobjs cannam@95: cannam@95: LTLIBOBJS=$ac_ltlibobjs cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: : "${CONFIG_STATUS=./config.status}" cannam@95: ac_write_fail=0 cannam@95: ac_clean_files_save=$ac_clean_files cannam@95: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 cannam@95: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@95: as_write_fail=0 cannam@95: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 cannam@95: #! $SHELL cannam@95: # Generated by $as_me. cannam@95: # Run this file to recreate the current configuration. cannam@95: # Compiler output produced by configure, useful for debugging cannam@95: # configure, is in config.log if it exists. cannam@95: cannam@95: debug=false cannam@95: ac_cs_recheck=false cannam@95: ac_cs_silent=false cannam@95: cannam@95: SHELL=\${CONFIG_SHELL-$SHELL} cannam@95: export SHELL cannam@95: _ASEOF cannam@95: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 cannam@95: ## -------------------- ## cannam@95: ## M4sh Initialization. ## cannam@95: ## -------------------- ## cannam@95: cannam@95: # Be more Bourne compatible cannam@95: DUALCASE=1; export DUALCASE # for MKS sh cannam@95: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@95: emulate sh cannam@95: NULLCMD=: cannam@95: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@95: # is contrary to our usage. Disable this feature. cannam@95: alias -g '${1+"$@"}'='"$@"' cannam@95: setopt NO_GLOB_SUBST cannam@95: else cannam@95: case `(set -o) 2>/dev/null` in #( cannam@95: *posix*) : cannam@95: set -o posix ;; #( cannam@95: *) : cannam@95: ;; cannam@95: esac cannam@95: fi cannam@95: cannam@95: cannam@95: as_nl=' cannam@95: ' cannam@95: export as_nl cannam@95: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@95: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@95: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@95: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@95: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@95: # but without wasting forks for bash or zsh. cannam@95: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@95: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@95: as_echo='print -r --' cannam@95: as_echo_n='print -rn --' cannam@95: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@95: as_echo='printf %s\n' cannam@95: as_echo_n='printf %s' cannam@95: else cannam@95: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@95: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@95: as_echo_n='/usr/ucb/echo -n' cannam@95: else cannam@95: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@95: as_echo_n_body='eval cannam@95: arg=$1; cannam@95: case $arg in #( cannam@95: *"$as_nl"*) cannam@95: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@95: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@95: esac; cannam@95: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@95: ' cannam@95: export as_echo_n_body cannam@95: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@95: fi cannam@95: export as_echo_body cannam@95: as_echo='sh -c $as_echo_body as_echo' cannam@95: fi cannam@95: cannam@95: # The user is always right. cannam@95: if test "${PATH_SEPARATOR+set}" != set; then cannam@95: PATH_SEPARATOR=: cannam@95: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@95: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@95: PATH_SEPARATOR=';' cannam@95: } cannam@95: fi cannam@95: cannam@95: cannam@95: # IFS cannam@95: # We need space, tab and new line, in precisely that order. Quoting is cannam@95: # there to prevent editors from complaining about space-tab. cannam@95: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@95: # splitting by setting IFS to empty value.) cannam@95: IFS=" "" $as_nl" cannam@95: cannam@95: # Find who we are. Look in the path if we contain no directory separator. cannam@95: as_myself= cannam@95: case $0 in #(( cannam@95: *[\\/]* ) as_myself=$0 ;; cannam@95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@95: for as_dir in $PATH cannam@95: do cannam@95: IFS=$as_save_IFS cannam@95: test -z "$as_dir" && as_dir=. cannam@95: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@95: done cannam@95: IFS=$as_save_IFS cannam@95: cannam@95: ;; cannam@95: esac cannam@95: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@95: # in which case we are not to be found in the path. cannam@95: if test "x$as_myself" = x; then cannam@95: as_myself=$0 cannam@95: fi cannam@95: if test ! -f "$as_myself"; then cannam@95: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@95: exit 1 cannam@95: fi cannam@95: cannam@95: # Unset variables that we do not need and which cause bugs (e.g. in cannam@95: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@95: # suppresses any "Segmentation fault" message there. '((' could cannam@95: # trigger a bug in pdksh 5.2.14. cannam@95: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@95: do eval test x\${$as_var+set} = xset \ cannam@95: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@95: done cannam@95: PS1='$ ' cannam@95: PS2='> ' cannam@95: PS4='+ ' cannam@95: cannam@95: # NLS nuisances. cannam@95: LC_ALL=C cannam@95: export LC_ALL cannam@95: LANGUAGE=C cannam@95: export LANGUAGE cannam@95: cannam@95: # CDPATH. cannam@95: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@95: cannam@95: cannam@95: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@95: # ---------------------------------------- cannam@95: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@95: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@95: # script with STATUS, using 1 if that was 0. cannam@95: as_fn_error () cannam@95: { cannam@95: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@95: if test "$4"; then cannam@95: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@95: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@95: fi cannam@95: $as_echo "$as_me: error: $2" >&2 cannam@95: as_fn_exit $as_status cannam@95: } # as_fn_error cannam@95: cannam@95: cannam@95: # as_fn_set_status STATUS cannam@95: # ----------------------- cannam@95: # Set $? to STATUS, without forking. cannam@95: as_fn_set_status () cannam@95: { cannam@95: return $1 cannam@95: } # as_fn_set_status cannam@95: cannam@95: # as_fn_exit STATUS cannam@95: # ----------------- cannam@95: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@95: as_fn_exit () cannam@95: { cannam@95: set +e cannam@95: as_fn_set_status $1 cannam@95: exit $1 cannam@95: } # as_fn_exit cannam@95: cannam@95: # as_fn_unset VAR cannam@95: # --------------- cannam@95: # Portably unset VAR. cannam@95: as_fn_unset () cannam@95: { cannam@95: { eval $1=; unset $1;} cannam@95: } cannam@95: as_unset=as_fn_unset cannam@95: # as_fn_append VAR VALUE cannam@95: # ---------------------- cannam@95: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@95: # advantage of any shell optimizations that allow amortized linear growth over cannam@95: # repeated appends, instead of the typical quadratic growth present in naive cannam@95: # implementations. cannam@95: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@95: eval 'as_fn_append () cannam@95: { cannam@95: eval $1+=\$2 cannam@95: }' cannam@95: else cannam@95: as_fn_append () cannam@95: { cannam@95: eval $1=\$$1\$2 cannam@95: } cannam@95: fi # as_fn_append cannam@95: cannam@95: # as_fn_arith ARG... cannam@95: # ------------------ cannam@95: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@95: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@95: # must be portable across $(()) and expr. cannam@95: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@95: eval 'as_fn_arith () cannam@95: { cannam@95: as_val=$(( $* )) cannam@95: }' cannam@95: else cannam@95: as_fn_arith () cannam@95: { cannam@95: as_val=`expr "$@" || test $? -eq 1` cannam@95: } cannam@95: fi # as_fn_arith cannam@95: cannam@95: cannam@95: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@95: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@95: as_expr=expr cannam@95: else cannam@95: as_expr=false cannam@95: fi cannam@95: cannam@95: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@95: as_basename=basename cannam@95: else cannam@95: as_basename=false cannam@95: fi cannam@95: cannam@95: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@95: as_dirname=dirname cannam@95: else cannam@95: as_dirname=false cannam@95: fi cannam@95: cannam@95: as_me=`$as_basename -- "$0" || cannam@95: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@95: X"$0" : 'X\(//\)$' \| \ cannam@95: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X/"$0" | cannam@95: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\/\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\/\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: cannam@95: # Avoid depending upon Character Ranges. cannam@95: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@95: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@95: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@95: as_cr_digits='0123456789' cannam@95: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@95: cannam@95: ECHO_C= ECHO_N= ECHO_T= cannam@95: case `echo -n x` in #((((( cannam@95: -n*) cannam@95: case `echo 'xy\c'` in cannam@95: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@95: xy) ECHO_C='\c';; cannam@95: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@95: ECHO_T=' ';; cannam@95: esac;; cannam@95: *) cannam@95: ECHO_N='-n';; cannam@95: esac cannam@95: cannam@95: rm -f conf$$ conf$$.exe conf$$.file cannam@95: if test -d conf$$.dir; then cannam@95: rm -f conf$$.dir/conf$$.file cannam@95: else cannam@95: rm -f conf$$.dir cannam@95: mkdir conf$$.dir 2>/dev/null cannam@95: fi cannam@95: if (echo >conf$$.file) 2>/dev/null; then cannam@95: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@95: as_ln_s='ln -s' cannam@95: # ... but there are two gotchas: cannam@95: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@95: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@95: # In both cases, we have to default to `cp -pR'. cannam@95: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@95: as_ln_s='cp -pR' cannam@95: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@95: as_ln_s=ln cannam@95: else cannam@95: as_ln_s='cp -pR' cannam@95: fi cannam@95: else cannam@95: as_ln_s='cp -pR' cannam@95: fi cannam@95: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@95: rmdir conf$$.dir 2>/dev/null cannam@95: cannam@95: cannam@95: # as_fn_mkdir_p cannam@95: # ------------- cannam@95: # Create "$as_dir" as a directory, including parents if necessary. cannam@95: as_fn_mkdir_p () cannam@95: { cannam@95: cannam@95: case $as_dir in #( cannam@95: -*) as_dir=./$as_dir;; cannam@95: esac cannam@95: test -d "$as_dir" || eval $as_mkdir_p || { cannam@95: as_dirs= cannam@95: while :; do cannam@95: case $as_dir in #( cannam@95: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@95: *) as_qdir=$as_dir;; cannam@95: esac cannam@95: as_dirs="'$as_qdir' $as_dirs" cannam@95: as_dir=`$as_dirname -- "$as_dir" || cannam@95: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@95: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@95: X"$as_dir" : 'X\(//\)$' \| \ cannam@95: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X"$as_dir" | cannam@95: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)[^/].*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: test -d "$as_dir" && break cannam@95: done cannam@95: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@95: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@95: cannam@95: cannam@95: } # as_fn_mkdir_p cannam@95: if mkdir -p . 2>/dev/null; then cannam@95: as_mkdir_p='mkdir -p "$as_dir"' cannam@95: else cannam@95: test -d ./-p && rmdir ./-p cannam@95: as_mkdir_p=false cannam@95: fi cannam@95: cannam@95: cannam@95: # as_fn_executable_p FILE cannam@95: # ----------------------- cannam@95: # Test if FILE is an executable regular file. cannam@95: as_fn_executable_p () cannam@95: { cannam@95: test -f "$1" && test -x "$1" cannam@95: } # as_fn_executable_p cannam@95: as_test_x='test -x' cannam@95: as_executable_p=as_fn_executable_p cannam@95: cannam@95: # Sed expression to map a string onto a valid CPP name. cannam@95: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@95: cannam@95: # Sed expression to map a string onto a valid variable name. cannam@95: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@95: cannam@95: cannam@95: exec 6>&1 cannam@95: ## ----------------------------------- ## cannam@95: ## Main body of $CONFIG_STATUS script. ## cannam@95: ## ----------------------------------- ## cannam@95: _ASEOF cannam@95: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: # Save the log message, to keep $0 and so on meaningful, and to cannam@95: # report actual input values of CONFIG_FILES etc. instead of their cannam@95: # values after options handling. cannam@95: ac_log=" cannam@95: This file was extended by RubberBand $as_me 1.7, which was cannam@95: generated by GNU Autoconf 2.69. Invocation command line was cannam@95: cannam@95: CONFIG_FILES = $CONFIG_FILES cannam@95: CONFIG_HEADERS = $CONFIG_HEADERS cannam@95: CONFIG_LINKS = $CONFIG_LINKS cannam@95: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@95: $ $0 $@ cannam@95: cannam@95: on `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@95: " cannam@95: cannam@95: _ACEOF cannam@95: cannam@95: case $ac_config_files in *" cannam@95: "*) set x $ac_config_files; shift; ac_config_files=$*;; cannam@95: esac cannam@95: cannam@95: cannam@95: cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: # Files that config.status was made for. cannam@95: config_files="$ac_config_files" cannam@95: cannam@95: _ACEOF cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: ac_cs_usage="\ cannam@95: \`$as_me' instantiates files and other configuration actions cannam@95: from templates according to the current configuration. Unless the files cannam@95: and actions are specified as TAGs, all are instantiated by default. cannam@95: cannam@95: Usage: $0 [OPTION]... [TAG]... cannam@95: cannam@95: -h, --help print this help, then exit cannam@95: -V, --version print version number and configuration settings, then exit cannam@95: --config print configuration, then exit cannam@95: -q, --quiet, --silent cannam@95: do not print progress messages cannam@95: -d, --debug don't remove temporary files cannam@95: --recheck update $as_me by reconfiguring in the same conditions cannam@95: --file=FILE[:TEMPLATE] cannam@95: instantiate the configuration file FILE cannam@95: cannam@95: Configuration files: cannam@95: $config_files cannam@95: cannam@95: Report bugs to ." cannam@95: cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" cannam@95: ac_cs_version="\\ cannam@95: RubberBand config.status 1.7 cannam@95: configured by $0, generated by GNU Autoconf 2.69, cannam@95: with options \\"\$ac_cs_config\\" cannam@95: cannam@95: Copyright (C) 2012 Free Software Foundation, Inc. cannam@95: This config.status script is free software; the Free Software Foundation cannam@95: gives unlimited permission to copy, distribute and modify it." cannam@95: cannam@95: ac_pwd='$ac_pwd' cannam@95: srcdir='$srcdir' cannam@95: test -n "\$AWK" || AWK=awk cannam@95: _ACEOF cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: # The default lists apply if the user does not specify any file. cannam@95: ac_need_defaults=: cannam@95: while test $# != 0 cannam@95: do cannam@95: case $1 in cannam@95: --*=?*) cannam@95: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@95: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` cannam@95: ac_shift=: cannam@95: ;; cannam@95: --*=) cannam@95: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@95: ac_optarg= cannam@95: ac_shift=: cannam@95: ;; cannam@95: *) cannam@95: ac_option=$1 cannam@95: ac_optarg=$2 cannam@95: ac_shift=shift cannam@95: ;; cannam@95: esac cannam@95: cannam@95: case $ac_option in cannam@95: # Handling of the options. cannam@95: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@95: ac_cs_recheck=: ;; cannam@95: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) cannam@95: $as_echo "$ac_cs_version"; exit ;; cannam@95: --config | --confi | --conf | --con | --co | --c ) cannam@95: $as_echo "$ac_cs_config"; exit ;; cannam@95: --debug | --debu | --deb | --de | --d | -d ) cannam@95: debug=: ;; cannam@95: --file | --fil | --fi | --f ) cannam@95: $ac_shift cannam@95: case $ac_optarg in cannam@95: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@95: '') as_fn_error $? "missing file argument" ;; cannam@95: esac cannam@95: as_fn_append CONFIG_FILES " '$ac_optarg'" cannam@95: ac_need_defaults=false;; cannam@95: --he | --h | --help | --hel | -h ) cannam@95: $as_echo "$ac_cs_usage"; exit ;; cannam@95: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@95: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@95: ac_cs_silent=: ;; cannam@95: cannam@95: # This is an error. cannam@95: -*) as_fn_error $? "unrecognized option: \`$1' cannam@95: Try \`$0 --help' for more information." ;; cannam@95: cannam@95: *) as_fn_append ac_config_targets " $1" cannam@95: ac_need_defaults=false ;; cannam@95: cannam@95: esac cannam@95: shift cannam@95: done cannam@95: cannam@95: ac_configure_extra_args= cannam@95: cannam@95: if $ac_cs_silent; then cannam@95: exec 6>/dev/null cannam@95: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@95: fi cannam@95: cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: if \$ac_cs_recheck; then cannam@95: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@95: shift cannam@95: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 cannam@95: CONFIG_SHELL='$SHELL' cannam@95: export CONFIG_SHELL cannam@95: exec "\$@" cannam@95: fi cannam@95: cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: exec 5>>config.log cannam@95: { cannam@95: echo cannam@95: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@95: ## Running $as_me. ## cannam@95: _ASBOX cannam@95: $as_echo "$ac_log" cannam@95: } >&5 cannam@95: cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: _ACEOF cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: cannam@95: # Handling of arguments. cannam@95: for ac_config_target in $ac_config_targets cannam@95: do cannam@95: case $ac_config_target in cannam@95: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@95: cannam@95: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; cannam@95: esac cannam@95: done cannam@95: cannam@95: cannam@95: # If the user did not use the arguments to specify the items to instantiate, cannam@95: # then the envvar interface is used. Set only those that are not. cannam@95: # We use the long form for the default assignment because of an extremely cannam@95: # bizarre bug on SunOS 4.1.3. cannam@95: if $ac_need_defaults; then cannam@95: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@95: fi cannam@95: cannam@95: # Have a temporary directory for convenience. Make it in the build tree cannam@95: # simply because there is no reason against having it here, and in addition, cannam@95: # creating and moving files from /tmp can sometimes cause problems. cannam@95: # Hook for its removal unless debugging. cannam@95: # Note that there is a small window in which the directory will not be cleaned: cannam@95: # after its creation but before its name has been assigned to `$tmp'. cannam@95: $debug || cannam@95: { cannam@95: tmp= ac_tmp= cannam@95: trap 'exit_status=$? cannam@95: : "${ac_tmp:=$tmp}" cannam@95: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status cannam@95: ' 0 cannam@95: trap 'as_fn_exit 1' 1 2 13 15 cannam@95: } cannam@95: # Create a (secure) tmp directory for tmp files. cannam@95: cannam@95: { cannam@95: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && cannam@95: test -d "$tmp" cannam@95: } || cannam@95: { cannam@95: tmp=./conf$$-$RANDOM cannam@95: (umask 077 && mkdir "$tmp") cannam@95: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 cannam@95: ac_tmp=$tmp cannam@95: cannam@95: # Set up the scripts for CONFIG_FILES section. cannam@95: # No need to generate them if there are no CONFIG_FILES. cannam@95: # This happens for instance with `./config.status config.h'. cannam@95: if test -n "$CONFIG_FILES"; then cannam@95: cannam@95: cannam@95: ac_cr=`echo X | tr X '\015'` cannam@95: # On cygwin, bash can eat \r inside `` if the user requested igncr. cannam@95: # But we know of no other shell where ac_cr would be empty at this cannam@95: # point, so we can use a bashism as a fallback. cannam@95: if test "x$ac_cr" = x; then cannam@95: eval ac_cr=\$\'\\r\' cannam@95: fi cannam@95: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` cannam@95: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then cannam@95: ac_cs_awk_cr='\\r' cannam@95: else cannam@95: ac_cs_awk_cr=$ac_cr cannam@95: fi cannam@95: cannam@95: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && cannam@95: _ACEOF cannam@95: cannam@95: cannam@95: { cannam@95: echo "cat >conf$$subs.awk <<_ACEOF" && cannam@95: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && cannam@95: echo "_ACEOF" cannam@95: } >conf$$subs.sh || cannam@95: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@95: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` cannam@95: ac_delim='%!_!# ' cannam@95: for ac_last_try in false false false false false :; do cannam@95: . ./conf$$subs.sh || cannam@95: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@95: cannam@95: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` cannam@95: if test $ac_delim_n = $ac_delim_num; then cannam@95: break cannam@95: elif $ac_last_try; then cannam@95: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@95: else cannam@95: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@95: fi cannam@95: done cannam@95: rm -f conf$$subs.sh cannam@95: cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && cannam@95: _ACEOF cannam@95: sed -n ' cannam@95: h cannam@95: s/^/S["/; s/!.*/"]=/ cannam@95: p cannam@95: g cannam@95: s/^[^!]*!// cannam@95: :repl cannam@95: t repl cannam@95: s/'"$ac_delim"'$// cannam@95: t delim cannam@95: :nl cannam@95: h cannam@95: s/\(.\{148\}\)..*/\1/ cannam@95: t more1 cannam@95: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ cannam@95: p cannam@95: n cannam@95: b repl cannam@95: :more1 cannam@95: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@95: p cannam@95: g cannam@95: s/.\{148\}// cannam@95: t nl cannam@95: :delim cannam@95: h cannam@95: s/\(.\{148\}\)..*/\1/ cannam@95: t more2 cannam@95: s/["\\]/\\&/g; s/^/"/; s/$/"/ cannam@95: p cannam@95: b cannam@95: :more2 cannam@95: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@95: p cannam@95: g cannam@95: s/.\{148\}// cannam@95: t delim cannam@95: ' >$CONFIG_STATUS || ac_write_fail=1 cannam@95: rm -f conf$$subs.awk cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: _ACAWK cannam@95: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && cannam@95: for (key in S) S_is_set[key] = 1 cannam@95: FS = "" cannam@95: cannam@95: } cannam@95: { cannam@95: line = $ 0 cannam@95: nfields = split(line, field, "@") cannam@95: substed = 0 cannam@95: len = length(field[1]) cannam@95: for (i = 2; i < nfields; i++) { cannam@95: key = field[i] cannam@95: keylen = length(key) cannam@95: if (S_is_set[key]) { cannam@95: value = S[key] cannam@95: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) cannam@95: len += length(value) + length(field[++i]) cannam@95: substed = 1 cannam@95: } else cannam@95: len += 1 + keylen cannam@95: } cannam@95: cannam@95: print line cannam@95: } cannam@95: cannam@95: _ACAWK cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then cannam@95: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" cannam@95: else cannam@95: cat cannam@95: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ cannam@95: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 cannam@95: _ACEOF cannam@95: cannam@95: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), cannam@95: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and cannam@95: # trailing colons and then remove the whole line if VPATH becomes empty cannam@95: # (actually we leave an empty line to preserve line numbers). cannam@95: if test "x$srcdir" = x.; then cannam@95: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ cannam@95: h cannam@95: s/// cannam@95: s/^/:/ cannam@95: s/[ ]*$/:/ cannam@95: s/:\$(srcdir):/:/g cannam@95: s/:\${srcdir}:/:/g cannam@95: s/:@srcdir@:/:/g cannam@95: s/^:*// cannam@95: s/:*$// cannam@95: x cannam@95: s/\(=[ ]*\).*/\1/ cannam@95: G cannam@95: s/\n// cannam@95: s/^[^=]*=[ ]*$// cannam@95: }' cannam@95: fi cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: fi # test -n "$CONFIG_FILES" cannam@95: cannam@95: cannam@95: eval set X " :F $CONFIG_FILES " cannam@95: shift cannam@95: for ac_tag cannam@95: do cannam@95: case $ac_tag in cannam@95: :[FHLC]) ac_mode=$ac_tag; continue;; cannam@95: esac cannam@95: case $ac_mode$ac_tag in cannam@95: :[FHL]*:*);; cannam@95: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; cannam@95: :[FH]-) ac_tag=-:-;; cannam@95: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; cannam@95: esac cannam@95: ac_save_IFS=$IFS cannam@95: IFS=: cannam@95: set x $ac_tag cannam@95: IFS=$ac_save_IFS cannam@95: shift cannam@95: ac_file=$1 cannam@95: shift cannam@95: cannam@95: case $ac_mode in cannam@95: :L) ac_source=$1;; cannam@95: :[FH]) cannam@95: ac_file_inputs= cannam@95: for ac_f cannam@95: do cannam@95: case $ac_f in cannam@95: -) ac_f="$ac_tmp/stdin";; cannam@95: *) # Look for the file first in the build tree, then in the source tree cannam@95: # (if the path is not absolute). The absolute path cannot be DOS-style, cannam@95: # because $ac_f cannot contain `:'. cannam@95: test -f "$ac_f" || cannam@95: case $ac_f in cannam@95: [\\/$]*) false;; cannam@95: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; cannam@95: esac || cannam@95: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; cannam@95: esac cannam@95: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac cannam@95: as_fn_append ac_file_inputs " '$ac_f'" cannam@95: done cannam@95: cannam@95: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@95: # use $as_me), people would be surprised to read: cannam@95: # /* config.h. Generated by config.status. */ cannam@95: configure_input='Generated from '` cannam@95: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' cannam@95: `' by configure.' cannam@95: if test x"$ac_file" != x-; then cannam@95: configure_input="$ac_file. $configure_input" cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 cannam@95: $as_echo "$as_me: creating $ac_file" >&6;} cannam@95: fi cannam@95: # Neutralize special characters interpreted by sed in replacement strings. cannam@95: case $configure_input in #( cannam@95: *\&* | *\|* | *\\* ) cannam@95: ac_sed_conf_input=`$as_echo "$configure_input" | cannam@95: sed 's/[\\\\&|]/\\\\&/g'`;; #( cannam@95: *) ac_sed_conf_input=$configure_input;; cannam@95: esac cannam@95: cannam@95: case $ac_tag in cannam@95: *:-:* | *:-) cat >"$ac_tmp/stdin" \ cannam@95: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; cannam@95: esac cannam@95: ;; cannam@95: esac cannam@95: cannam@95: ac_dir=`$as_dirname -- "$ac_file" || cannam@95: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@95: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@95: X"$ac_file" : 'X\(//\)$' \| \ cannam@95: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || cannam@95: $as_echo X"$ac_file" | cannam@95: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)[^/].*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\/\)$/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: /^X\(\/\).*/{ cannam@95: s//\1/ cannam@95: q cannam@95: } cannam@95: s/.*/./; q'` cannam@95: as_dir="$ac_dir"; as_fn_mkdir_p cannam@95: ac_builddir=. cannam@95: cannam@95: case "$ac_dir" in cannam@95: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@95: *) cannam@95: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@95: # A ".." for each directory in $ac_dir_suffix. cannam@95: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@95: case $ac_top_builddir_sub in cannam@95: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@95: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@95: esac ;; cannam@95: esac cannam@95: ac_abs_top_builddir=$ac_pwd cannam@95: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@95: # for backward compatibility: cannam@95: ac_top_builddir=$ac_top_build_prefix cannam@95: cannam@95: case $srcdir in cannam@95: .) # We are building in place. cannam@95: ac_srcdir=. cannam@95: ac_top_srcdir=$ac_top_builddir_sub cannam@95: ac_abs_top_srcdir=$ac_pwd ;; cannam@95: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@95: ac_srcdir=$srcdir$ac_dir_suffix; cannam@95: ac_top_srcdir=$srcdir cannam@95: ac_abs_top_srcdir=$srcdir ;; cannam@95: *) # Relative name. cannam@95: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@95: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@95: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@95: esac cannam@95: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@95: cannam@95: cannam@95: case $ac_mode in cannam@95: :F) cannam@95: # cannam@95: # CONFIG_FILE cannam@95: # cannam@95: cannam@95: _ACEOF cannam@95: cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: # If the template does not know about datarootdir, expand it. cannam@95: # FIXME: This hack should be removed a few years after 2.60. cannam@95: ac_datarootdir_hack=; ac_datarootdir_seen= cannam@95: ac_sed_dataroot=' cannam@95: /datarootdir/ { cannam@95: p cannam@95: q cannam@95: } cannam@95: /@datadir@/p cannam@95: /@docdir@/p cannam@95: /@infodir@/p cannam@95: /@localedir@/p cannam@95: /@mandir@/p' cannam@95: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in cannam@95: *datarootdir*) ac_datarootdir_seen=yes;; cannam@95: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 cannam@95: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: ac_datarootdir_hack=' cannam@95: s&@datadir@&$datadir&g cannam@95: s&@docdir@&$docdir&g cannam@95: s&@infodir@&$infodir&g cannam@95: s&@localedir@&$localedir&g cannam@95: s&@mandir@&$mandir&g cannam@95: s&\\\${datarootdir}&$datarootdir&g' ;; cannam@95: esac cannam@95: _ACEOF cannam@95: cannam@95: # Neutralize VPATH when `$srcdir' = `.'. cannam@95: # Shell code in configure.ac might set extrasub. cannam@95: # FIXME: do we really want to maintain this feature? cannam@95: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@95: ac_sed_extra="$ac_vpsub cannam@95: $extrasub cannam@95: _ACEOF cannam@95: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@95: :t cannam@95: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@95: s|@configure_input@|$ac_sed_conf_input|;t t cannam@95: s&@top_builddir@&$ac_top_builddir_sub&;t t cannam@95: s&@top_build_prefix@&$ac_top_build_prefix&;t t cannam@95: s&@srcdir@&$ac_srcdir&;t t cannam@95: s&@abs_srcdir@&$ac_abs_srcdir&;t t cannam@95: s&@top_srcdir@&$ac_top_srcdir&;t t cannam@95: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t cannam@95: s&@builddir@&$ac_builddir&;t t cannam@95: s&@abs_builddir@&$ac_abs_builddir&;t t cannam@95: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t cannam@95: $ac_datarootdir_hack cannam@95: " cannam@95: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ cannam@95: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@95: cannam@95: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && cannam@95: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && cannam@95: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ cannam@95: "$ac_tmp/out"`; test -z "$ac_out"; } && cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@95: which seems to be undefined. Please make sure it is defined" >&5 cannam@95: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@95: which seems to be undefined. Please make sure it is defined" >&2;} cannam@95: cannam@95: rm -f "$ac_tmp/stdin" cannam@95: case $ac_file in cannam@95: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; cannam@95: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; cannam@95: esac \ cannam@95: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@95: ;; cannam@95: cannam@95: cannam@95: cannam@95: esac cannam@95: cannam@95: done # for ac_tag cannam@95: cannam@95: cannam@95: as_fn_exit 0 cannam@95: _ACEOF cannam@95: ac_clean_files=$ac_clean_files_save cannam@95: cannam@95: test $ac_write_fail = 0 || cannam@95: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 cannam@95: cannam@95: cannam@95: # configure is writing to config.log, and then calls config.status. cannam@95: # config.status does its own redirection, appending to config.log. cannam@95: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@95: # by configure, so config.status won't be able to write to it; its cannam@95: # output is simply discarded. So we exec the FD to /dev/null, cannam@95: # effectively closing config.log, so it can be properly (re)opened and cannam@95: # appended to by config.status. When coming back to configure, we cannam@95: # need to make the FD available again. cannam@95: if test "$no_create" != yes; then cannam@95: ac_cs_success=: cannam@95: ac_config_status_args= cannam@95: test "$silent" = yes && cannam@95: ac_config_status_args="$ac_config_status_args --quiet" cannam@95: exec 5>/dev/null cannam@95: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@95: exec 5>>config.log cannam@95: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@95: # would make configure fail if this is the last instruction. cannam@95: $ac_cs_success || as_fn_exit 1 cannam@95: fi cannam@95: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then cannam@95: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 cannam@95: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} cannam@95: fi cannam@95: cannam@95: