Chris@350: #! /bin/sh Chris@350: # Guess values for system-dependent variables and create Makefiles. mathieu@468: # Generated by GNU Autoconf 2.61 for Sonic Visualiser 1.9-kiosk-hg. Chris@350: # Chris@350: # Report bugs to . Chris@350: # Chris@350: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, mathieu@468: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Chris@350: # This configure script is free software; the Free Software Foundation Chris@350: # gives unlimited permission to copy, distribute and modify it. mathieu@468: ## --------------------- ## mathieu@468: ## M4sh Initialization. ## mathieu@468: ## --------------------- ## Chris@350: Chris@350: # Be more Bourne compatible Chris@350: DUALCASE=1; export DUALCASE # for MKS sh mathieu@468: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@350: emulate sh Chris@350: NULLCMD=: mathieu@468: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@350: # is contrary to our usage. Disable this feature. Chris@350: alias -g '${1+"$@"}'='"$@"' Chris@350: setopt NO_GLOB_SUBST Chris@350: else mathieu@468: case `(set -o) 2>/dev/null` in mathieu@468: *posix*) set -o posix ;; mathieu@468: esac mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: # PATH needs CR mathieu@468: # Avoid depending upon Character Ranges. mathieu@468: as_cr_letters='abcdefghijklmnopqrstuvwxyz' mathieu@468: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' mathieu@468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS mathieu@468: as_cr_digits='0123456789' mathieu@468: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@350: Chris@350: # The user is always right. Chris@350: if test "${PATH_SEPARATOR+set}" != set; then mathieu@468: echo "#! /bin/sh" >conf$$.sh mathieu@468: echo "exit 0" >>conf$$.sh mathieu@468: chmod +x conf$$.sh mathieu@468: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then mathieu@468: PATH_SEPARATOR=';' mathieu@468: else mathieu@468: PATH_SEPARATOR=: mathieu@468: fi mathieu@468: rm -f conf$$.sh mathieu@468: fi mathieu@468: mathieu@468: # Support unset when possible. mathieu@468: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then mathieu@468: as_unset=unset mathieu@468: else mathieu@468: as_unset=false Chris@350: fi Chris@350: Chris@350: Chris@350: # IFS Chris@350: # We need space, tab and new line, in precisely that order. Quoting is Chris@350: # there to prevent editors from complaining about space-tab. Chris@350: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@350: # splitting by setting IFS to empty value.) mathieu@468: as_nl=' mathieu@468: ' Chris@350: IFS=" "" $as_nl" Chris@350: Chris@350: # Find who we are. Look in the path if we contain no directory separator. mathieu@468: case $0 in Chris@350: *[\\/]* ) as_myself=$0 ;; Chris@350: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: ;; Chris@350: esac Chris@350: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@350: # in which case we are not to be found in the path. Chris@350: if test "x$as_myself" = x; then Chris@350: as_myself=$0 Chris@350: fi Chris@350: if test ! -f "$as_myself"; then mathieu@468: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 mathieu@468: { (exit 1); exit 1; } mathieu@468: fi mathieu@468: mathieu@468: # Work around bugs in pre-3.0 UWIN ksh. mathieu@468: for as_var in ENV MAIL MAILPATH mathieu@468: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@350: done Chris@350: PS1='$ ' Chris@350: PS2='> ' Chris@350: PS4='+ ' Chris@350: Chris@350: # NLS nuisances. mathieu@468: for as_var in \ mathieu@468: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ mathieu@468: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ mathieu@468: LC_TELEPHONE LC_TIME Chris@350: do mathieu@468: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then mathieu@468: eval $as_var=C; export $as_var mathieu@468: else mathieu@468: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var mathieu@468: fi Chris@350: done mathieu@468: mathieu@468: # Required to use basename. Chris@350: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@350: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@350: as_expr=expr Chris@350: else Chris@350: as_expr=false Chris@350: fi Chris@350: Chris@350: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@350: as_basename=basename Chris@350: else Chris@350: as_basename=false Chris@350: fi Chris@350: mathieu@468: mathieu@468: # Name of the executable. Chris@350: as_me=`$as_basename -- "$0" || Chris@350: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@350: X"$0" : 'X\(//\)$' \| \ Chris@350: X"$0" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X/"$0" | Chris@350: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\/\(\/\/\)$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\/\(\/\).*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: s/.*/./; q'` Chris@350: mathieu@468: # CDPATH. mathieu@468: $as_unset CDPATH mathieu@468: mathieu@468: mathieu@468: if test "x$CONFIG_SHELL" = x; then mathieu@468: if (eval ":") 2>/dev/null; then mathieu@468: as_have_required=yes mathieu@468: else mathieu@468: as_have_required=no mathieu@468: fi mathieu@468: mathieu@468: if test $as_have_required = yes && (eval ": mathieu@468: (as_func_return () { mathieu@468: (exit \$1) mathieu@468: } mathieu@468: as_func_success () { mathieu@468: as_func_return 0 mathieu@468: } mathieu@468: as_func_failure () { mathieu@468: as_func_return 1 mathieu@468: } mathieu@468: as_func_ret_success () { mathieu@468: return 0 mathieu@468: } mathieu@468: as_func_ret_failure () { mathieu@468: return 1 mathieu@468: } mathieu@468: mathieu@468: exitcode=0 mathieu@468: if as_func_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo positional parameters were not saved. mathieu@468: fi mathieu@468: mathieu@468: test \$exitcode = 0) || { (exit 1); exit 1; } mathieu@468: mathieu@468: ( mathieu@468: as_lineno_1=\$LINENO mathieu@468: as_lineno_2=\$LINENO mathieu@468: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && mathieu@468: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } mathieu@468: ") 2> /dev/null; then mathieu@468: : mathieu@468: else mathieu@468: as_candidate_shells= mathieu@468: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR mathieu@468: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH mathieu@468: do mathieu@468: IFS=$as_save_IFS mathieu@468: test -z "$as_dir" && as_dir=. mathieu@468: case $as_dir in mathieu@468: /*) mathieu@468: for as_base in sh bash ksh sh5; do mathieu@468: as_candidate_shells="$as_candidate_shells $as_dir/$as_base" mathieu@468: done;; mathieu@468: esac mathieu@468: done mathieu@468: IFS=$as_save_IFS mathieu@468: mathieu@468: mathieu@468: for as_shell in $as_candidate_shells $SHELL; do mathieu@468: # Try only shells that exist, to save several forks. mathieu@468: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && mathieu@468: { ("$as_shell") 2> /dev/null <<\_ASEOF mathieu@468: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then mathieu@468: emulate sh mathieu@468: NULLCMD=: mathieu@468: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which mathieu@468: # is contrary to our usage. Disable this feature. mathieu@468: alias -g '${1+"$@"}'='"$@"' mathieu@468: setopt NO_GLOB_SUBST mathieu@468: else mathieu@468: case `(set -o) 2>/dev/null` in mathieu@468: *posix*) set -o posix ;; mathieu@468: esac mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: : mathieu@468: _ASEOF mathieu@468: }; then mathieu@468: CONFIG_SHELL=$as_shell mathieu@468: as_have_required=yes mathieu@468: if { "$as_shell" 2> /dev/null <<\_ASEOF mathieu@468: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then mathieu@468: emulate sh mathieu@468: NULLCMD=: mathieu@468: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which mathieu@468: # is contrary to our usage. Disable this feature. mathieu@468: alias -g '${1+"$@"}'='"$@"' mathieu@468: setopt NO_GLOB_SUBST mathieu@468: else mathieu@468: case `(set -o) 2>/dev/null` in mathieu@468: *posix*) set -o posix ;; mathieu@468: esac mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: : mathieu@468: (as_func_return () { mathieu@468: (exit $1) mathieu@468: } mathieu@468: as_func_success () { mathieu@468: as_func_return 0 mathieu@468: } mathieu@468: as_func_failure () { mathieu@468: as_func_return 1 mathieu@468: } mathieu@468: as_func_ret_success () { mathieu@468: return 0 mathieu@468: } mathieu@468: as_func_ret_failure () { mathieu@468: return 1 mathieu@468: } mathieu@468: mathieu@468: exitcode=0 mathieu@468: if as_func_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if ( set x; as_func_ret_success y && test x = "$1" ); then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo positional parameters were not saved. mathieu@468: fi mathieu@468: mathieu@468: test $exitcode = 0) || { (exit 1); exit 1; } mathieu@468: mathieu@468: ( mathieu@468: as_lineno_1=$LINENO mathieu@468: as_lineno_2=$LINENO mathieu@468: test "x$as_lineno_1" != "x$as_lineno_2" && mathieu@468: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } mathieu@468: mathieu@468: _ASEOF mathieu@468: }; then mathieu@468: break mathieu@468: fi mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: done mathieu@468: mathieu@468: if test "x$CONFIG_SHELL" != x; then mathieu@468: for as_var in BASH_ENV ENV mathieu@468: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var mathieu@468: done mathieu@468: export CONFIG_SHELL mathieu@468: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: if test $as_have_required = no; then mathieu@468: echo This script requires a shell more modern than all the mathieu@468: echo shells that I found on your system. Please install a mathieu@468: echo modern shell, or manually run the script under such a mathieu@468: echo shell if you do have one. mathieu@468: { (exit 1); exit 1; } mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: mathieu@468: (eval "as_func_return () { mathieu@468: (exit \$1) mathieu@468: } mathieu@468: as_func_success () { mathieu@468: as_func_return 0 mathieu@468: } mathieu@468: as_func_failure () { mathieu@468: as_func_return 1 mathieu@468: } mathieu@468: as_func_ret_success () { mathieu@468: return 0 mathieu@468: } mathieu@468: as_func_ret_failure () { mathieu@468: return 1 mathieu@468: } mathieu@468: mathieu@468: exitcode=0 mathieu@468: if as_func_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_success; then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_success failed. mathieu@468: fi mathieu@468: mathieu@468: if as_func_ret_failure; then mathieu@468: exitcode=1 mathieu@468: echo as_func_ret_failure succeeded. mathieu@468: fi mathieu@468: mathieu@468: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then mathieu@468: : mathieu@468: else mathieu@468: exitcode=1 mathieu@468: echo positional parameters were not saved. mathieu@468: fi mathieu@468: mathieu@468: test \$exitcode = 0") || { mathieu@468: echo No shell found that supports shell functions. mathieu@468: echo Please tell autoconf@gnu.org about your system, mathieu@468: echo including any error possibly output before this mathieu@468: echo message mathieu@468: } mathieu@468: mathieu@468: mathieu@468: mathieu@468: as_lineno_1=$LINENO mathieu@468: as_lineno_2=$LINENO mathieu@468: test "x$as_lineno_1" != "x$as_lineno_2" && mathieu@468: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { mathieu@468: mathieu@468: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO mathieu@468: # uniformly replaced by the line number. The first 'sed' inserts a mathieu@468: # line-number line after each line using $LINENO; the second 'sed' mathieu@468: # does the real work. The second script uses 'N' to pair each mathieu@468: # line-number line with the line containing $LINENO, and appends mathieu@468: # trailing '-' during substitution so that $LINENO is not a special mathieu@468: # case at line end. mathieu@468: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the mathieu@468: # scripts with optimization help from Paolo Bonzini. Blame Lee mathieu@468: # E. McMahon (1931-1989) for sed's syntax. :-) Chris@350: sed -n ' Chris@350: p Chris@350: /[$]LINENO/= Chris@350: ' <$as_myself | Chris@350: sed ' Chris@350: s/[$]LINENO.*/&-/ Chris@350: t lineno Chris@350: b Chris@350: :lineno Chris@350: N Chris@350: :loop Chris@350: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ Chris@350: t loop Chris@350: s/-\n.*// Chris@350: ' >$as_me.lineno && Chris@350: chmod +x "$as_me.lineno" || mathieu@468: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: Chris@350: # Don't try to exec as it changes $[0], causing all sort of problems Chris@350: # (the dirname of $[0] is not the place where we might find the Chris@350: # original and so on. Autoconf is especially sensitive to this). Chris@350: . "./$as_me.lineno" Chris@350: # Exit status is that of the last command. Chris@350: exit Chris@350: } Chris@350: mathieu@468: mathieu@468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then mathieu@468: as_dirname=dirname mathieu@468: else mathieu@468: as_dirname=false mathieu@468: fi mathieu@468: Chris@350: ECHO_C= ECHO_N= ECHO_T= mathieu@468: case `echo -n x` in Chris@350: -n*) mathieu@468: case `echo 'x\c'` in Chris@350: *c*) ECHO_T=' ';; # ECHO_T is single tab character. mathieu@468: *) ECHO_C='\c';; Chris@350: esac;; Chris@350: *) Chris@350: ECHO_N='-n';; Chris@350: esac Chris@350: mathieu@468: if expr a : '\(a\)' >/dev/null 2>&1 && mathieu@468: test "X`expr 00001 : '.*\(...\)'`" = X001; then mathieu@468: as_expr=expr mathieu@468: else mathieu@468: as_expr=false mathieu@468: fi mathieu@468: Chris@350: rm -f conf$$ conf$$.exe conf$$.file Chris@350: if test -d conf$$.dir; then Chris@350: rm -f conf$$.dir/conf$$.file Chris@350: else Chris@350: rm -f conf$$.dir mathieu@468: mkdir conf$$.dir mathieu@468: fi mathieu@468: echo >conf$$.file mathieu@468: if ln -s conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s='ln -s' mathieu@468: # ... but there are two gotchas: mathieu@468: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. mathieu@468: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. mathieu@468: # In both cases, we have to default to `cp -p'. mathieu@468: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@350: as_ln_s='cp -p' mathieu@468: elif ln conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s=ln Chris@350: else Chris@350: as_ln_s='cp -p' Chris@350: fi Chris@350: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@350: rmdir conf$$.dir 2>/dev/null Chris@350: Chris@350: if mkdir -p . 2>/dev/null; then mathieu@468: as_mkdir_p=: Chris@350: else Chris@350: test -d ./-p && rmdir ./-p Chris@350: as_mkdir_p=false Chris@350: fi Chris@350: Chris@350: if test -x / >/dev/null 2>&1; then Chris@350: as_test_x='test -x' Chris@350: else Chris@350: if ls -dL / >/dev/null 2>&1; then Chris@350: as_ls_L_option=L Chris@350: else Chris@350: as_ls_L_option= Chris@350: fi Chris@350: as_test_x=' Chris@350: eval sh -c '\'' Chris@350: if test -d "$1"; then mathieu@468: test -d "$1/."; Chris@350: else mathieu@468: case $1 in mathieu@468: -*)set "./$1";; Chris@350: esac; mathieu@468: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in Chris@350: ???[sx]*):;;*)false;;esac;fi Chris@350: '\'' sh Chris@350: ' Chris@350: fi Chris@350: as_executable_p=$as_test_x Chris@350: Chris@350: # Sed expression to map a string onto a valid CPP name. Chris@350: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" Chris@350: Chris@350: # Sed expression to map a string onto a valid variable name. Chris@350: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" Chris@350: Chris@350: mathieu@468: mathieu@468: exec 7<&0 &1 Chris@350: Chris@350: # Name of the host. mathieu@468: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, Chris@350: # so uname gets run too. Chris@350: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` Chris@350: Chris@350: # Chris@350: # Initializations. Chris@350: # Chris@350: ac_default_prefix=/usr/local Chris@350: ac_clean_files= Chris@350: ac_config_libobj_dir=. Chris@350: LIBOBJS= Chris@350: cross_compiling=no Chris@350: subdirs= Chris@350: MFLAGS= Chris@350: MAKEFLAGS= mathieu@468: SHELL=${CONFIG_SHELL-/bin/sh} Chris@350: Chris@350: # Identity of this package. Chris@351: PACKAGE_NAME='Sonic Visualiser' Chris@351: PACKAGE_TARNAME='sonic-visualiser' mathieu@468: PACKAGE_VERSION='1.9-kiosk-hg' mathieu@468: PACKAGE_STRING='Sonic Visualiser 1.9-kiosk-hg' Chris@350: PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' Chris@350: Chris@351: ac_unique_file="main/main.cpp" Chris@350: # Factoring default headers for most tests. Chris@350: ac_includes_default="\ Chris@350: #include Chris@350: #ifdef HAVE_SYS_TYPES_H Chris@350: # include Chris@350: #endif Chris@350: #ifdef HAVE_SYS_STAT_H Chris@350: # include Chris@350: #endif Chris@350: #ifdef STDC_HEADERS Chris@350: # include Chris@350: # include Chris@350: #else Chris@350: # ifdef HAVE_STDLIB_H Chris@350: # include Chris@350: # endif Chris@350: #endif Chris@350: #ifdef HAVE_STRING_H Chris@350: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H Chris@350: # include Chris@350: # endif Chris@350: # include Chris@350: #endif Chris@350: #ifdef HAVE_STRINGS_H Chris@350: # include Chris@350: #endif Chris@350: #ifdef HAVE_INTTYPES_H Chris@350: # include Chris@350: #endif Chris@350: #ifdef HAVE_STDINT_H Chris@350: # include Chris@350: #endif Chris@350: #ifdef HAVE_UNISTD_H Chris@350: # include Chris@350: #endif" Chris@350: mathieu@468: ac_subst_vars='SHELL mathieu@468: PATH_SEPARATOR mathieu@468: PACKAGE_NAME mathieu@468: PACKAGE_TARNAME mathieu@468: PACKAGE_VERSION mathieu@468: PACKAGE_STRING mathieu@468: PACKAGE_BUGREPORT mathieu@468: exec_prefix mathieu@468: prefix mathieu@468: program_transform_name mathieu@468: bindir mathieu@468: sbindir mathieu@468: libexecdir mathieu@468: datarootdir mathieu@468: datadir mathieu@468: sysconfdir mathieu@468: sharedstatedir mathieu@468: localstatedir mathieu@468: includedir mathieu@468: oldincludedir mathieu@468: docdir mathieu@468: infodir mathieu@468: htmldir mathieu@468: dvidir mathieu@468: pdfdir mathieu@468: psdir mathieu@468: libdir mathieu@468: localedir mathieu@468: mandir mathieu@468: DEFS mathieu@468: ECHO_C mathieu@468: ECHO_N mathieu@468: ECHO_T mathieu@468: LIBS mathieu@468: build_alias mathieu@468: host_alias mathieu@468: target_alias mathieu@468: CC mathieu@468: CFLAGS mathieu@468: LDFLAGS mathieu@468: CPPFLAGS mathieu@468: ac_ct_CC mathieu@468: EXEEXT mathieu@468: OBJEXT mathieu@468: CXX mathieu@468: CXXFLAGS mathieu@468: ac_ct_CXX mathieu@468: INSTALL_PROGRAM mathieu@468: INSTALL_SCRIPT mathieu@468: INSTALL_DATA mathieu@468: CXXCPP mathieu@468: GREP mathieu@468: EGREP mathieu@468: QMAKE mathieu@468: PERL mathieu@468: XARGS mathieu@468: MAKEDEPEND mathieu@468: SHA1SUM mathieu@468: CUT mathieu@468: CXXFLAGS_MINIMAL mathieu@468: HAVES mathieu@468: QMAKE_CONFIG mathieu@468: CODENAME Chris@350: LIBOBJS mathieu@468: LTLIBOBJS' Chris@350: ac_subst_files='' Chris@350: ac_precious_vars='build_alias Chris@350: host_alias Chris@350: target_alias Chris@350: CC Chris@350: CFLAGS Chris@350: LDFLAGS Chris@350: LIBS Chris@350: CPPFLAGS Chris@350: CXX Chris@350: CXXFLAGS Chris@350: CCC mathieu@480: CXXCPP' Chris@350: Chris@350: Chris@350: # Initialize some variables set by options. Chris@350: ac_init_help= Chris@350: ac_init_version=false Chris@350: # The variables have the same names as the options, with Chris@350: # dashes changed to underlines. Chris@350: cache_file=/dev/null Chris@350: exec_prefix=NONE Chris@350: no_create= Chris@350: no_recursion= Chris@350: prefix=NONE Chris@350: program_prefix=NONE Chris@350: program_suffix=NONE Chris@350: program_transform_name=s,x,x, Chris@350: silent= Chris@350: site= Chris@350: srcdir= Chris@350: verbose= Chris@350: x_includes=NONE Chris@350: x_libraries=NONE Chris@350: Chris@350: # Installation directory options. Chris@350: # These are left unexpanded so users can "make install exec_prefix=/foo" Chris@350: # and all the variables that are supposed to be based on exec_prefix Chris@350: # by default will actually change. Chris@350: # Use braces instead of parens because sh, perl, etc. also accept them. Chris@350: # (The list follows the same order as the GNU Coding Standards.) Chris@350: bindir='${exec_prefix}/bin' Chris@350: sbindir='${exec_prefix}/sbin' Chris@350: libexecdir='${exec_prefix}/libexec' Chris@350: datarootdir='${prefix}/share' Chris@350: datadir='${datarootdir}' Chris@350: sysconfdir='${prefix}/etc' Chris@350: sharedstatedir='${prefix}/com' Chris@350: localstatedir='${prefix}/var' Chris@350: includedir='${prefix}/include' Chris@350: oldincludedir='/usr/include' Chris@350: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' Chris@350: infodir='${datarootdir}/info' Chris@350: htmldir='${docdir}' Chris@350: dvidir='${docdir}' Chris@350: pdfdir='${docdir}' Chris@350: psdir='${docdir}' Chris@350: libdir='${exec_prefix}/lib' Chris@350: localedir='${datarootdir}/locale' Chris@350: mandir='${datarootdir}/man' Chris@350: Chris@350: ac_prev= Chris@350: ac_dashdash= Chris@350: for ac_option Chris@350: do Chris@350: # If the previous option needs an argument, assign it. Chris@350: if test -n "$ac_prev"; then Chris@350: eval $ac_prev=\$ac_option Chris@350: ac_prev= Chris@350: continue Chris@350: fi Chris@350: Chris@350: case $ac_option in mathieu@468: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; mathieu@468: *) ac_optarg=yes ;; Chris@350: esac Chris@350: Chris@350: # Accept the important Cygnus configure options, so we can diagnose typos. Chris@350: Chris@350: case $ac_dashdash$ac_option in Chris@350: --) Chris@350: ac_dashdash=yes ;; Chris@350: Chris@350: -bindir | --bindir | --bindi | --bind | --bin | --bi) Chris@350: ac_prev=bindir ;; Chris@350: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) Chris@350: bindir=$ac_optarg ;; Chris@350: Chris@350: -build | --build | --buil | --bui | --bu) Chris@350: ac_prev=build_alias ;; Chris@350: -build=* | --build=* | --buil=* | --bui=* | --bu=*) Chris@350: build_alias=$ac_optarg ;; Chris@350: Chris@350: -cache-file | --cache-file | --cache-fil | --cache-fi \ Chris@350: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) Chris@350: ac_prev=cache_file ;; Chris@350: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ Chris@350: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) Chris@350: cache_file=$ac_optarg ;; Chris@350: Chris@350: --config-cache | -C) Chris@350: cache_file=config.cache ;; Chris@350: Chris@350: -datadir | --datadir | --datadi | --datad) Chris@350: ac_prev=datadir ;; Chris@350: -datadir=* | --datadir=* | --datadi=* | --datad=*) Chris@350: datadir=$ac_optarg ;; Chris@350: Chris@350: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ Chris@350: | --dataroo | --dataro | --datar) Chris@350: ac_prev=datarootdir ;; Chris@350: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ Chris@350: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) Chris@350: datarootdir=$ac_optarg ;; Chris@350: Chris@350: -disable-* | --disable-*) mathieu@468: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` Chris@350: # Reject names that are not valid shell variable names. mathieu@468: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && mathieu@468: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` mathieu@468: eval enable_$ac_feature=no ;; Chris@350: Chris@350: -docdir | --docdir | --docdi | --doc | --do) Chris@350: ac_prev=docdir ;; Chris@350: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) Chris@350: docdir=$ac_optarg ;; Chris@350: Chris@350: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) Chris@350: ac_prev=dvidir ;; Chris@350: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) Chris@350: dvidir=$ac_optarg ;; Chris@350: Chris@350: -enable-* | --enable-*) mathieu@468: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` Chris@350: # Reject names that are not valid shell variable names. mathieu@468: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && mathieu@468: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` mathieu@468: eval enable_$ac_feature=\$ac_optarg ;; Chris@350: Chris@350: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ Chris@350: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ Chris@350: | --exec | --exe | --ex) Chris@350: ac_prev=exec_prefix ;; Chris@350: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ Chris@350: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ Chris@350: | --exec=* | --exe=* | --ex=*) Chris@350: exec_prefix=$ac_optarg ;; Chris@350: Chris@350: -gas | --gas | --ga | --g) Chris@350: # Obsolete; use --with-gas. Chris@350: with_gas=yes ;; Chris@350: Chris@350: -help | --help | --hel | --he | -h) Chris@350: ac_init_help=long ;; Chris@350: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) Chris@350: ac_init_help=recursive ;; Chris@350: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) Chris@350: ac_init_help=short ;; Chris@350: Chris@350: -host | --host | --hos | --ho) Chris@350: ac_prev=host_alias ;; Chris@350: -host=* | --host=* | --hos=* | --ho=*) Chris@350: host_alias=$ac_optarg ;; Chris@350: Chris@350: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) Chris@350: ac_prev=htmldir ;; Chris@350: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ Chris@350: | --ht=*) Chris@350: htmldir=$ac_optarg ;; Chris@350: Chris@350: -includedir | --includedir | --includedi | --included | --include \ Chris@350: | --includ | --inclu | --incl | --inc) Chris@350: ac_prev=includedir ;; Chris@350: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ Chris@350: | --includ=* | --inclu=* | --incl=* | --inc=*) Chris@350: includedir=$ac_optarg ;; Chris@350: Chris@350: -infodir | --infodir | --infodi | --infod | --info | --inf) Chris@350: ac_prev=infodir ;; Chris@350: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) Chris@350: infodir=$ac_optarg ;; Chris@350: Chris@350: -libdir | --libdir | --libdi | --libd) Chris@350: ac_prev=libdir ;; Chris@350: -libdir=* | --libdir=* | --libdi=* | --libd=*) Chris@350: libdir=$ac_optarg ;; Chris@350: Chris@350: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ Chris@350: | --libexe | --libex | --libe) Chris@350: ac_prev=libexecdir ;; Chris@350: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ Chris@350: | --libexe=* | --libex=* | --libe=*) Chris@350: libexecdir=$ac_optarg ;; Chris@350: Chris@350: -localedir | --localedir | --localedi | --localed | --locale) Chris@350: ac_prev=localedir ;; Chris@350: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) Chris@350: localedir=$ac_optarg ;; Chris@350: Chris@350: -localstatedir | --localstatedir | --localstatedi | --localstated \ Chris@350: | --localstate | --localstat | --localsta | --localst | --locals) Chris@350: ac_prev=localstatedir ;; Chris@350: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ Chris@350: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) Chris@350: localstatedir=$ac_optarg ;; Chris@350: Chris@350: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) Chris@350: ac_prev=mandir ;; Chris@350: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) Chris@350: mandir=$ac_optarg ;; Chris@350: Chris@350: -nfp | --nfp | --nf) Chris@350: # Obsolete; use --without-fp. Chris@350: with_fp=no ;; Chris@350: Chris@350: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ Chris@350: | --no-cr | --no-c | -n) Chris@350: no_create=yes ;; Chris@350: Chris@350: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ Chris@350: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) Chris@350: no_recursion=yes ;; Chris@350: Chris@350: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ Chris@350: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ Chris@350: | --oldin | --oldi | --old | --ol | --o) Chris@350: ac_prev=oldincludedir ;; Chris@350: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ Chris@350: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ Chris@350: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) Chris@350: oldincludedir=$ac_optarg ;; Chris@350: Chris@350: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) Chris@350: ac_prev=prefix ;; Chris@350: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) Chris@350: prefix=$ac_optarg ;; Chris@350: Chris@350: -program-prefix | --program-prefix | --program-prefi | --program-pref \ Chris@350: | --program-pre | --program-pr | --program-p) Chris@350: ac_prev=program_prefix ;; Chris@350: -program-prefix=* | --program-prefix=* | --program-prefi=* \ Chris@350: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) Chris@350: program_prefix=$ac_optarg ;; Chris@350: Chris@350: -program-suffix | --program-suffix | --program-suffi | --program-suff \ Chris@350: | --program-suf | --program-su | --program-s) Chris@350: ac_prev=program_suffix ;; Chris@350: -program-suffix=* | --program-suffix=* | --program-suffi=* \ Chris@350: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) Chris@350: program_suffix=$ac_optarg ;; Chris@350: Chris@350: -program-transform-name | --program-transform-name \ Chris@350: | --program-transform-nam | --program-transform-na \ Chris@350: | --program-transform-n | --program-transform- \ Chris@350: | --program-transform | --program-transfor \ Chris@350: | --program-transfo | --program-transf \ Chris@350: | --program-trans | --program-tran \ Chris@350: | --progr-tra | --program-tr | --program-t) Chris@350: ac_prev=program_transform_name ;; Chris@350: -program-transform-name=* | --program-transform-name=* \ Chris@350: | --program-transform-nam=* | --program-transform-na=* \ Chris@350: | --program-transform-n=* | --program-transform-=* \ Chris@350: | --program-transform=* | --program-transfor=* \ Chris@350: | --program-transfo=* | --program-transf=* \ Chris@350: | --program-trans=* | --program-tran=* \ Chris@350: | --progr-tra=* | --program-tr=* | --program-t=*) Chris@350: program_transform_name=$ac_optarg ;; Chris@350: Chris@350: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) Chris@350: ac_prev=pdfdir ;; Chris@350: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) Chris@350: pdfdir=$ac_optarg ;; Chris@350: Chris@350: -psdir | --psdir | --psdi | --psd | --ps) Chris@350: ac_prev=psdir ;; Chris@350: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) Chris@350: psdir=$ac_optarg ;; Chris@350: Chris@350: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@350: | -silent | --silent | --silen | --sile | --sil) Chris@350: silent=yes ;; Chris@350: Chris@350: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) Chris@350: ac_prev=sbindir ;; Chris@350: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ Chris@350: | --sbi=* | --sb=*) Chris@350: sbindir=$ac_optarg ;; Chris@350: Chris@350: -sharedstatedir | --sharedstatedir | --sharedstatedi \ Chris@350: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ Chris@350: | --sharedst | --shareds | --shared | --share | --shar \ Chris@350: | --sha | --sh) Chris@350: ac_prev=sharedstatedir ;; Chris@350: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ Chris@350: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ Chris@350: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ Chris@350: | --sha=* | --sh=*) Chris@350: sharedstatedir=$ac_optarg ;; Chris@350: Chris@350: -site | --site | --sit) Chris@350: ac_prev=site ;; Chris@350: -site=* | --site=* | --sit=*) Chris@350: site=$ac_optarg ;; Chris@350: Chris@350: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) Chris@350: ac_prev=srcdir ;; Chris@350: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) Chris@350: srcdir=$ac_optarg ;; Chris@350: Chris@350: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ Chris@350: | --syscon | --sysco | --sysc | --sys | --sy) Chris@350: ac_prev=sysconfdir ;; Chris@350: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ Chris@350: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) Chris@350: sysconfdir=$ac_optarg ;; Chris@350: Chris@350: -target | --target | --targe | --targ | --tar | --ta | --t) Chris@350: ac_prev=target_alias ;; Chris@350: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) Chris@350: target_alias=$ac_optarg ;; Chris@350: Chris@350: -v | -verbose | --verbose | --verbos | --verbo | --verb) Chris@350: verbose=yes ;; Chris@350: Chris@350: -version | --version | --versio | --versi | --vers | -V) Chris@350: ac_init_version=: ;; Chris@350: Chris@350: -with-* | --with-*) mathieu@468: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` Chris@350: # Reject names that are not valid shell variable names. mathieu@468: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && mathieu@468: { echo "$as_me: error: invalid package name: $ac_package" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` mathieu@468: eval with_$ac_package=\$ac_optarg ;; Chris@350: Chris@350: -without-* | --without-*) mathieu@468: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` Chris@350: # Reject names that are not valid shell variable names. mathieu@468: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && mathieu@468: { echo "$as_me: error: invalid package name: $ac_package" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` mathieu@468: eval with_$ac_package=no ;; Chris@350: Chris@350: --x) Chris@350: # Obsolete; use --with-x. Chris@350: with_x=yes ;; Chris@350: Chris@350: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ Chris@350: | --x-incl | --x-inc | --x-in | --x-i) Chris@350: ac_prev=x_includes ;; Chris@350: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ Chris@350: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) Chris@350: x_includes=$ac_optarg ;; Chris@350: Chris@350: -x-libraries | --x-libraries | --x-librarie | --x-librari \ Chris@350: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) Chris@350: ac_prev=x_libraries ;; Chris@350: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ Chris@350: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) Chris@350: x_libraries=$ac_optarg ;; Chris@350: mathieu@468: -*) { echo "$as_me: error: unrecognized option: $ac_option mathieu@468: Try \`$0 --help' for more information." >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: ;; Chris@350: Chris@350: *=*) Chris@350: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` Chris@350: # Reject names that are not valid shell variable names. mathieu@468: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && mathieu@468: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: eval $ac_envvar=\$ac_optarg Chris@350: export $ac_envvar ;; Chris@350: Chris@350: *) Chris@350: # FIXME: should be removed in autoconf 3.0. mathieu@468: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 Chris@350: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && mathieu@468: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 Chris@475: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} Chris@350: ;; Chris@350: Chris@350: esac Chris@350: done Chris@350: Chris@350: if test -n "$ac_prev"; then Chris@350: ac_option=--`echo $ac_prev | sed 's/_/-/g'` mathieu@468: { echo "$as_me: error: missing argument to $ac_option" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: mathieu@468: # Be sure to have absolute directory names. Chris@350: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ Chris@350: datadir sysconfdir sharedstatedir localstatedir includedir \ Chris@350: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ Chris@350: libdir localedir mandir Chris@350: do Chris@350: eval ac_val=\$$ac_var Chris@350: case $ac_val in Chris@350: [\\/$]* | ?:[\\/]* ) continue;; Chris@350: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; Chris@350: esac mathieu@468: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: done Chris@350: Chris@350: # There might be people who depend on the old broken behavior: `$host' Chris@350: # used to hold the argument of --host etc. Chris@350: # FIXME: To remove some day. Chris@350: build=$build_alias Chris@350: host=$host_alias Chris@350: target=$target_alias Chris@350: Chris@350: # FIXME: To remove some day. Chris@350: if test "x$host_alias" != x; then Chris@350: if test "x$build_alias" = x; then Chris@350: cross_compiling=maybe mathieu@468: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. mathieu@468: If a cross compiler is detected then cross compile mode will be used." >&2 Chris@350: elif test "x$build_alias" != "x$host_alias"; then Chris@350: cross_compiling=yes Chris@350: fi Chris@350: fi Chris@350: Chris@350: ac_tool_prefix= Chris@350: test -n "$host_alias" && ac_tool_prefix=$host_alias- Chris@350: Chris@350: test "$silent" = yes && exec 6>/dev/null Chris@350: Chris@350: Chris@350: ac_pwd=`pwd` && test -n "$ac_pwd" && Chris@350: ac_ls_di=`ls -di .` && Chris@350: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || mathieu@468: { echo "$as_me: error: Working directory cannot be determined" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || mathieu@468: { echo "$as_me: error: pwd does not report name of working directory" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: Chris@350: Chris@350: # Find the source files, if location was not specified. Chris@350: if test -z "$srcdir"; then Chris@350: ac_srcdir_defaulted=yes Chris@350: # Try the directory containing this script, then the parent directory. mathieu@468: ac_confdir=`$as_dirname -- "$0" || mathieu@468: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ mathieu@468: X"$0" : 'X\(//\)[^/]' \| \ mathieu@468: X"$0" : 'X\(//\)$' \| \ mathieu@468: X"$0" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X"$0" | Chris@350: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\/\)[^/].*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\/\)$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\).*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: s/.*/./; q'` Chris@350: srcdir=$ac_confdir Chris@350: if test ! -r "$srcdir/$ac_unique_file"; then Chris@350: srcdir=.. Chris@350: fi Chris@350: else Chris@350: ac_srcdir_defaulted=no Chris@350: fi Chris@350: if test ! -r "$srcdir/$ac_unique_file"; then Chris@350: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." mathieu@468: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" Chris@350: ac_abs_confdir=`( mathieu@468: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 mathieu@468: { (exit 1); exit 1; }; } Chris@350: pwd)` Chris@350: # When building in place, set srcdir=. Chris@350: if test "$ac_abs_confdir" = "$ac_pwd"; then Chris@350: srcdir=. Chris@350: fi Chris@350: # Remove unnecessary trailing slashes from srcdir. Chris@350: # Double slashes in file names in object file debugging info Chris@350: # mess up M-x gdb in Emacs. Chris@350: case $srcdir in Chris@350: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; Chris@350: esac Chris@350: for ac_var in $ac_precious_vars; do Chris@350: eval ac_env_${ac_var}_set=\${${ac_var}+set} Chris@350: eval ac_env_${ac_var}_value=\$${ac_var} Chris@350: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} Chris@350: eval ac_cv_env_${ac_var}_value=\$${ac_var} Chris@350: done Chris@350: Chris@350: # Chris@350: # Report the --help message. Chris@350: # Chris@350: if test "$ac_init_help" = "long"; then Chris@350: # Omit some internal or obsolete options to make the list less imposing. Chris@350: # This message is too long to be a string in the A/UX 3.1 sh. Chris@350: cat <<_ACEOF mathieu@468: \`configure' configures Sonic Visualiser 1.9-kiosk-hg to adapt to many kinds of systems. Chris@350: Chris@350: Usage: $0 [OPTION]... [VAR=VALUE]... Chris@350: Chris@350: To assign environment variables (e.g., CC, CFLAGS...), specify them as Chris@350: VAR=VALUE. See below for descriptions of some of the useful variables. Chris@350: Chris@350: Defaults for the options are specified in brackets. Chris@350: Chris@350: Configuration: Chris@350: -h, --help display this help and exit Chris@350: --help=short display options specific to this package Chris@350: --help=recursive display the short help of all the included packages Chris@350: -V, --version display version information and exit mathieu@468: -q, --quiet, --silent do not print \`checking...' messages Chris@350: --cache-file=FILE cache test results in FILE [disabled] Chris@350: -C, --config-cache alias for \`--cache-file=config.cache' Chris@350: -n, --no-create do not create output files Chris@350: --srcdir=DIR find the sources in DIR [configure dir or \`..'] Chris@350: Chris@350: Installation directories: Chris@350: --prefix=PREFIX install architecture-independent files in PREFIX mathieu@468: [$ac_default_prefix] Chris@350: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX mathieu@468: [PREFIX] Chris@350: Chris@350: By default, \`make install' will install all the files in Chris@350: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify Chris@350: an installation prefix other than \`$ac_default_prefix' using \`--prefix', Chris@350: for instance \`--prefix=\$HOME'. Chris@350: Chris@350: For better control, use the options below. Chris@350: Chris@350: Fine tuning of the installation directories: mathieu@468: --bindir=DIR user executables [EPREFIX/bin] mathieu@468: --sbindir=DIR system admin executables [EPREFIX/sbin] mathieu@468: --libexecdir=DIR program executables [EPREFIX/libexec] mathieu@468: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] mathieu@468: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] mathieu@468: --localstatedir=DIR modifiable single-machine data [PREFIX/var] mathieu@468: --libdir=DIR object code libraries [EPREFIX/lib] mathieu@468: --includedir=DIR C header files [PREFIX/include] mathieu@468: --oldincludedir=DIR C header files for non-gcc [/usr/include] mathieu@468: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] mathieu@468: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] mathieu@468: --infodir=DIR info documentation [DATAROOTDIR/info] mathieu@468: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] mathieu@468: --mandir=DIR man documentation [DATAROOTDIR/man] mathieu@468: --docdir=DIR documentation root [DATAROOTDIR/doc/sonic-visualiser] mathieu@468: --htmldir=DIR html documentation [DOCDIR] mathieu@468: --dvidir=DIR dvi documentation [DOCDIR] mathieu@468: --pdfdir=DIR pdf documentation [DOCDIR] mathieu@468: --psdir=DIR ps documentation [DOCDIR] Chris@350: _ACEOF Chris@350: Chris@350: cat <<\_ACEOF Chris@350: _ACEOF Chris@350: fi Chris@350: Chris@350: if test -n "$ac_init_help"; then Chris@350: case $ac_init_help in mathieu@468: short | recursive ) echo "Configuration of Sonic Visualiser 1.9-kiosk-hg:";; Chris@350: esac Chris@350: cat <<\_ACEOF Chris@350: Chris@350: Optional Features: Chris@350: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) Chris@350: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] Chris@350: --enable-debug enable debug support [default=no] Chris@350: Chris@350: Some influential environment variables: Chris@350: CC C compiler command Chris@350: CFLAGS C compiler flags Chris@350: LDFLAGS linker flags, e.g. -L if you have libraries in a Chris@350: nonstandard directory Chris@350: LIBS libraries to pass to the linker, e.g. -l mathieu@468: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if Chris@350: you have headers in a nonstandard directory Chris@350: CXX C++ compiler command Chris@350: CXXFLAGS C++ compiler flags Chris@350: CXXCPP C++ preprocessor Chris@350: Chris@350: Use these variables to override the choices made by `configure' or to help Chris@350: it to find libraries and programs with nonstandard names/locations. Chris@350: Chris@350: Report bugs to . Chris@350: _ACEOF Chris@350: ac_status=$? Chris@350: fi Chris@350: Chris@350: if test "$ac_init_help" = "recursive"; then Chris@350: # If there are subdirs, report their specific --help. Chris@350: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue mathieu@468: test -d "$ac_dir" || continue Chris@350: ac_builddir=. Chris@350: Chris@350: case "$ac_dir" in Chris@350: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@350: *) mathieu@468: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` Chris@350: # A ".." for each directory in $ac_dir_suffix. mathieu@468: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` Chris@350: case $ac_top_builddir_sub in Chris@350: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@350: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@350: esac ;; Chris@350: esac Chris@350: ac_abs_top_builddir=$ac_pwd Chris@350: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@350: # for backward compatibility: Chris@350: ac_top_builddir=$ac_top_build_prefix Chris@350: Chris@350: case $srcdir in Chris@350: .) # We are building in place. Chris@350: ac_srcdir=. Chris@350: ac_top_srcdir=$ac_top_builddir_sub Chris@350: ac_abs_top_srcdir=$ac_pwd ;; Chris@350: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@350: ac_srcdir=$srcdir$ac_dir_suffix; Chris@350: ac_top_srcdir=$srcdir Chris@350: ac_abs_top_srcdir=$srcdir ;; Chris@350: *) # Relative name. Chris@350: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@350: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@350: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@350: esac Chris@350: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@350: Chris@350: cd "$ac_dir" || { ac_status=$?; continue; } Chris@350: # Check for guested configure. Chris@350: if test -f "$ac_srcdir/configure.gnu"; then Chris@350: echo && Chris@350: $SHELL "$ac_srcdir/configure.gnu" --help=recursive Chris@350: elif test -f "$ac_srcdir/configure"; then Chris@350: echo && Chris@350: $SHELL "$ac_srcdir/configure" --help=recursive Chris@350: else mathieu@468: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 Chris@350: fi || ac_status=$? Chris@350: cd "$ac_pwd" || { ac_status=$?; break; } Chris@350: done Chris@350: fi Chris@350: Chris@350: test -n "$ac_init_help" && exit $ac_status Chris@350: if $ac_init_version; then Chris@350: cat <<\_ACEOF mathieu@468: Sonic Visualiser configure 1.9-kiosk-hg mathieu@468: generated by GNU Autoconf 2.61 mathieu@468: mathieu@468: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, mathieu@468: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Chris@350: This configure script is free software; the Free Software Foundation Chris@350: gives unlimited permission to copy, distribute and modify it. Chris@350: _ACEOF Chris@350: exit Chris@350: fi Chris@350: cat >config.log <<_ACEOF Chris@350: This file contains any messages produced by compilers while Chris@350: running configure, to aid debugging if configure makes a mistake. Chris@350: mathieu@468: It was created by Sonic Visualiser $as_me 1.9-kiosk-hg, which was mathieu@468: generated by GNU Autoconf 2.61. Invocation command line was Chris@350: Chris@350: $ $0 $@ Chris@350: Chris@350: _ACEOF Chris@350: exec 5>>config.log Chris@350: { Chris@350: cat <<_ASUNAME Chris@350: ## --------- ## Chris@350: ## Platform. ## Chris@350: ## --------- ## Chris@350: Chris@350: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` Chris@350: uname -m = `(uname -m) 2>/dev/null || echo unknown` Chris@350: uname -r = `(uname -r) 2>/dev/null || echo unknown` Chris@350: uname -s = `(uname -s) 2>/dev/null || echo unknown` Chris@350: uname -v = `(uname -v) 2>/dev/null || echo unknown` Chris@350: Chris@350: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` Chris@350: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` Chris@350: Chris@350: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` Chris@350: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` Chris@350: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` Chris@350: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` Chris@350: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` Chris@350: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` Chris@350: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` Chris@350: Chris@350: _ASUNAME Chris@350: Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: echo "PATH: $as_dir" mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: } >&5 Chris@350: Chris@350: cat >&5 <<_ACEOF Chris@350: Chris@350: Chris@350: ## ----------- ## Chris@350: ## Core tests. ## Chris@350: ## ----------- ## Chris@350: Chris@350: _ACEOF Chris@350: Chris@350: Chris@350: # Keep a trace of the command line. Chris@350: # Strip out --no-create and --no-recursion so they do not pile up. Chris@350: # Strip out --silent because we don't want to record it for future runs. Chris@350: # Also quote any args containing shell meta-characters. Chris@350: # Make two passes to allow for proper duplicate-argument suppression. Chris@350: ac_configure_args= Chris@350: ac_configure_args0= Chris@350: ac_configure_args1= Chris@350: ac_must_keep_next=false Chris@350: for ac_pass in 1 2 Chris@350: do Chris@350: for ac_arg Chris@350: do Chris@350: case $ac_arg in Chris@350: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; Chris@350: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@350: | -silent | --silent | --silen | --sile | --sil) Chris@350: continue ;; Chris@350: *\'*) mathieu@468: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@350: esac Chris@350: case $ac_pass in mathieu@468: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; Chris@350: 2) mathieu@468: ac_configure_args1="$ac_configure_args1 '$ac_arg'" Chris@350: if test $ac_must_keep_next = true; then Chris@350: ac_must_keep_next=false # Got value, back to normal. Chris@350: else Chris@350: case $ac_arg in Chris@350: *=* | --config-cache | -C | -disable-* | --disable-* \ Chris@350: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ Chris@350: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ Chris@350: | -with-* | --with-* | -without-* | --without-* | --x) Chris@350: case "$ac_configure_args0 " in Chris@350: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; Chris@350: esac Chris@350: ;; Chris@350: -* ) ac_must_keep_next=true ;; Chris@350: esac Chris@350: fi mathieu@468: ac_configure_args="$ac_configure_args '$ac_arg'" Chris@350: ;; Chris@350: esac Chris@350: done Chris@350: done mathieu@468: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } mathieu@468: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } Chris@350: Chris@350: # When interrupted or exit'd, cleanup temporary files, and complete Chris@350: # config.log. We remove comments because anyway the quotes in there Chris@350: # would cause problems or look ugly. Chris@350: # WARNING: Use '\'' to represent an apostrophe within the trap. Chris@350: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. Chris@350: trap 'exit_status=$? Chris@350: # Save into config.log some information that might help in debugging. Chris@350: { Chris@350: echo Chris@350: mathieu@468: cat <<\_ASBOX mathieu@468: ## ---------------- ## Chris@350: ## Cache variables. ## mathieu@468: ## ---------------- ## mathieu@468: _ASBOX Chris@350: echo Chris@350: # The following way of writing the cache mishandles newlines in values, Chris@350: ( Chris@350: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do Chris@350: eval ac_val=\$$ac_var Chris@350: case $ac_val in #( Chris@350: *${as_nl}*) Chris@350: case $ac_var in #( mathieu@468: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 mathieu@468: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; Chris@350: esac Chris@350: case $ac_var in #( Chris@350: _ | IFS | as_nl) ;; #( mathieu@468: *) $as_unset $ac_var ;; Chris@350: esac ;; Chris@350: esac Chris@350: done Chris@350: (set) 2>&1 | Chris@350: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( Chris@350: *${as_nl}ac_space=\ *) Chris@350: sed -n \ Chris@350: "s/'\''/'\''\\\\'\'''\''/g; Chris@350: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" Chris@350: ;; #( Chris@350: *) Chris@350: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@350: ;; Chris@350: esac | Chris@350: sort Chris@350: ) Chris@350: echo Chris@350: mathieu@468: cat <<\_ASBOX mathieu@468: ## ----------------- ## Chris@350: ## Output variables. ## mathieu@468: ## ----------------- ## mathieu@468: _ASBOX Chris@350: echo Chris@350: for ac_var in $ac_subst_vars Chris@350: do Chris@350: eval ac_val=\$$ac_var Chris@350: case $ac_val in mathieu@468: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@350: esac mathieu@468: echo "$ac_var='\''$ac_val'\''" Chris@350: done | sort Chris@350: echo Chris@350: Chris@350: if test -n "$ac_subst_files"; then mathieu@468: cat <<\_ASBOX mathieu@468: ## ------------------- ## Chris@350: ## File substitutions. ## mathieu@468: ## ------------------- ## mathieu@468: _ASBOX Chris@350: echo Chris@350: for ac_var in $ac_subst_files Chris@350: do Chris@350: eval ac_val=\$$ac_var Chris@350: case $ac_val in mathieu@468: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@350: esac mathieu@468: echo "$ac_var='\''$ac_val'\''" Chris@350: done | sort Chris@350: echo Chris@350: fi Chris@350: Chris@350: if test -s confdefs.h; then mathieu@468: cat <<\_ASBOX mathieu@468: ## ----------- ## Chris@350: ## confdefs.h. ## mathieu@468: ## ----------- ## mathieu@468: _ASBOX Chris@350: echo Chris@350: cat confdefs.h Chris@350: echo Chris@350: fi Chris@350: test "$ac_signal" != 0 && mathieu@468: echo "$as_me: caught signal $ac_signal" mathieu@468: echo "$as_me: exit $exit_status" Chris@350: } >&5 Chris@350: rm -f core *.core core.conftest.* && Chris@350: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && Chris@350: exit $exit_status Chris@350: ' 0 Chris@350: for ac_signal in 1 2 13 15; do mathieu@468: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal Chris@350: done Chris@350: ac_signal=0 Chris@350: Chris@350: # confdefs.h avoids OS command line length limits that DEFS can exceed. Chris@350: rm -f -r conftest* confdefs.h Chris@350: Chris@350: # Predefined preprocessor variables. Chris@350: Chris@350: cat >>confdefs.h <<_ACEOF Chris@350: #define PACKAGE_NAME "$PACKAGE_NAME" Chris@350: _ACEOF Chris@350: mathieu@468: Chris@350: cat >>confdefs.h <<_ACEOF Chris@350: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" Chris@350: _ACEOF Chris@350: mathieu@468: Chris@350: cat >>confdefs.h <<_ACEOF Chris@350: #define PACKAGE_VERSION "$PACKAGE_VERSION" Chris@350: _ACEOF Chris@350: mathieu@468: Chris@350: cat >>confdefs.h <<_ACEOF Chris@350: #define PACKAGE_STRING "$PACKAGE_STRING" Chris@350: _ACEOF Chris@350: mathieu@468: Chris@350: cat >>confdefs.h <<_ACEOF Chris@350: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" Chris@350: _ACEOF Chris@350: Chris@350: Chris@350: # Let the site file select an alternate cache file if it wants to. mathieu@468: # Prefer explicitly selected file to automatically selected ones. Chris@350: if test -n "$CONFIG_SITE"; then mathieu@468: set x "$CONFIG_SITE" Chris@350: elif test "x$prefix" != xNONE; then mathieu@468: set x "$prefix/share/config.site" "$prefix/etc/config.site" mathieu@468: else mathieu@468: set x "$ac_default_prefix/share/config.site" \ mathieu@468: "$ac_default_prefix/etc/config.site" mathieu@468: fi mathieu@468: shift mathieu@468: for ac_site_file Chris@350: do mathieu@468: if test -r "$ac_site_file"; then mathieu@468: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 mathieu@468: echo "$as_me: loading site script $ac_site_file" >&6;} Chris@350: sed 's/^/| /' "$ac_site_file" >&5 mathieu@468: . "$ac_site_file" Chris@350: fi Chris@350: done Chris@350: Chris@350: if test -r "$cache_file"; then mathieu@468: # Some versions of bash will fail to source /dev/null (special mathieu@468: # files actually), so we avoid doing that. mathieu@468: if test -f "$cache_file"; then mathieu@468: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 mathieu@468: echo "$as_me: loading cache $cache_file" >&6;} Chris@350: case $cache_file in Chris@350: [\\/]* | ?:[\\/]* ) . "$cache_file";; Chris@350: *) . "./$cache_file";; Chris@350: esac Chris@350: fi Chris@350: else mathieu@468: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 mathieu@468: echo "$as_me: creating cache $cache_file" >&6;} Chris@350: >$cache_file Chris@350: fi Chris@350: Chris@350: # Check that the precious variables saved in the cache have kept the same Chris@350: # value. Chris@350: ac_cache_corrupted=false Chris@350: for ac_var in $ac_precious_vars; do Chris@350: eval ac_old_set=\$ac_cv_env_${ac_var}_set Chris@350: eval ac_new_set=\$ac_env_${ac_var}_set Chris@350: eval ac_old_val=\$ac_cv_env_${ac_var}_value Chris@350: eval ac_new_val=\$ac_env_${ac_var}_value Chris@350: case $ac_old_set,$ac_new_set in Chris@350: set,) mathieu@468: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 mathieu@468: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} Chris@350: ac_cache_corrupted=: ;; Chris@350: ,set) mathieu@468: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 mathieu@468: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} Chris@350: ac_cache_corrupted=: ;; Chris@350: ,);; Chris@350: *) Chris@350: if test "x$ac_old_val" != "x$ac_new_val"; then mathieu@468: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 mathieu@468: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} mathieu@468: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 mathieu@468: echo "$as_me: former value: $ac_old_val" >&2;} mathieu@468: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 mathieu@468: echo "$as_me: current value: $ac_new_val" >&2;} mathieu@468: ac_cache_corrupted=: Chris@350: fi;; Chris@350: esac Chris@350: # Pass precious variables to config.status. Chris@350: if test "$ac_new_set" = set; then Chris@350: case $ac_new_val in mathieu@468: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@350: *) ac_arg=$ac_var=$ac_new_val ;; Chris@350: esac Chris@350: case " $ac_configure_args " in Chris@350: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. mathieu@468: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; Chris@350: esac Chris@350: fi Chris@350: done Chris@350: if $ac_cache_corrupted; then mathieu@468: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 mathieu@468: echo "$as_me: error: changes in the environment can compromise the build" >&2;} mathieu@468: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 mathieu@468: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: Chris@350: Chris@350: ac_ext=c Chris@350: ac_cpp='$CPP $CPPFLAGS' Chris@350: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: # Autoconf will set CXXFLAGS; we don't usually want it to, because we Chris@350: # either define our own flags (at least if GCC is in use) or else use Chris@350: # the user's preferences. We need to ensure CXXFLAGS is only set if Chris@350: # the user has expressly set it. So, save the user's (or empty) Chris@350: # setting now and restore it after Autoconf has done its bit of Chris@350: # piddling about. Chris@350: USER_CXXFLAGS="$CXXFLAGS" Chris@350: Chris@405: # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead Chris@405: if test x"$USER_CXXFLAGS" = x; then Chris@405: if test x"$CFLAGS" != x; then Chris@405: USER_CXXFLAGS="$CFLAGS" Chris@405: fi Chris@405: fi Chris@405: Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@350: Chris@350: Chris@350: ac_ext=c Chris@350: ac_cpp='$CPP $CPPFLAGS' Chris@350: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@350: if test -n "$ac_tool_prefix"; then Chris@350: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. Chris@350: set dummy ${ac_tool_prefix}gcc; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$CC"; then Chris@350: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_CC="${ac_tool_prefix}gcc" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: CC=$ac_cv_prog_CC Chris@350: if test -n "$CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $CC" >&5 mathieu@468: echo "${ECHO_T}$CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: fi Chris@350: if test -z "$ac_cv_prog_CC"; then Chris@350: ac_ct_CC=$CC Chris@350: # Extract the first word of "gcc", so it can be a program name with args. Chris@350: set dummy gcc; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$ac_ct_CC"; then Chris@350: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_ac_ct_CC="gcc" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@350: if test -n "$ac_ct_CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 mathieu@468: echo "${ECHO_T}$ac_ct_CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: if test "x$ac_ct_CC" = x; then Chris@350: CC="" Chris@350: else Chris@350: case $cross_compiling:$ac_tool_warned in Chris@350: yes:) mathieu@468: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&5 mathieu@468: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@350: ac_tool_warned=yes ;; Chris@350: esac Chris@350: CC=$ac_ct_CC Chris@350: fi Chris@350: else Chris@350: CC="$ac_cv_prog_CC" Chris@350: fi Chris@350: Chris@350: if test -z "$CC"; then Chris@350: if test -n "$ac_tool_prefix"; then Chris@350: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. Chris@350: set dummy ${ac_tool_prefix}cc; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$CC"; then Chris@350: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_CC="${ac_tool_prefix}cc" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: CC=$ac_cv_prog_CC Chris@350: if test -n "$CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $CC" >&5 mathieu@468: echo "${ECHO_T}$CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: fi Chris@350: fi Chris@350: if test -z "$CC"; then Chris@350: # Extract the first word of "cc", so it can be a program name with args. Chris@350: set dummy cc; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$CC"; then Chris@350: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@350: else Chris@350: ac_prog_rejected=no Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then Chris@350: ac_prog_rejected=yes Chris@350: continue Chris@350: fi Chris@350: ac_cv_prog_CC="cc" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: if test $ac_prog_rejected = yes; then Chris@350: # We found a bogon in the path, so make sure we never use it. Chris@350: set dummy $ac_cv_prog_CC Chris@350: shift Chris@350: if test $# != 0; then Chris@350: # We chose a different compiler from the bogus one. Chris@350: # However, it has the same basename, so the bogon will be chosen Chris@350: # first if we set CC to just the basename; use the full file name. Chris@350: shift Chris@350: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: CC=$ac_cv_prog_CC Chris@350: if test -n "$CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $CC" >&5 mathieu@468: echo "${ECHO_T}$CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: fi Chris@350: if test -z "$CC"; then Chris@350: if test -n "$ac_tool_prefix"; then Chris@350: for ac_prog in cl.exe Chris@350: do Chris@350: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@350: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$CC"; then Chris@350: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: CC=$ac_cv_prog_CC Chris@350: if test -n "$CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $CC" >&5 mathieu@468: echo "${ECHO_T}$CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: test -n "$CC" && break Chris@350: done Chris@350: fi Chris@350: if test -z "$CC"; then Chris@350: ac_ct_CC=$CC Chris@350: for ac_prog in cl.exe Chris@350: do Chris@350: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@350: set dummy $ac_prog; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$ac_ct_CC"; then Chris@350: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_ac_ct_CC="$ac_prog" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@350: if test -n "$ac_ct_CC"; then mathieu@468: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 mathieu@468: echo "${ECHO_T}$ac_ct_CC" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: test -n "$ac_ct_CC" && break Chris@350: done Chris@350: Chris@350: if test "x$ac_ct_CC" = x; then Chris@350: CC="" Chris@350: else Chris@350: case $cross_compiling:$ac_tool_warned in Chris@350: yes:) mathieu@468: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&5 mathieu@468: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@350: ac_tool_warned=yes ;; Chris@350: esac Chris@350: CC=$ac_ct_CC Chris@350: fi Chris@350: fi Chris@350: Chris@350: fi Chris@350: Chris@350: mathieu@468: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: no acceptable C compiler found in \$PATH mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: Chris@350: # Provide some information about the compiler. mathieu@468: echo "$as_me:$LINENO: checking for C compiler version" >&5 mathieu@468: ac_compiler=`set X $ac_compile; echo $2` mathieu@468: { (ac_try="$ac_compiler --version >&5" Chris@350: case "(($ac_try" in Chris@350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@350: *) ac_try_echo=$ac_try;; Chris@350: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler --version >&5") 2>&5 Chris@350: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: { (ac_try="$ac_compiler -v >&5" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler -v >&5") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: { (ac_try="$ac_compiler -V >&5" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler -V >&5") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF Chris@350: ac_clean_files_save=$ac_clean_files mathieu@468: ac_clean_files="$ac_clean_files a.out a.exe b.out" Chris@350: # Try to create an executable without -o first, disregard a.out. Chris@350: # It will help us diagnose broken compilers, and finding out an intuition Chris@350: # of exeext. mathieu@468: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 mathieu@468: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } mathieu@468: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` mathieu@468: # mathieu@468: # List of possible output files, starting from the most likely. mathieu@468: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) mathieu@468: # only as a last resort. b.out is created by i960 compilers. mathieu@468: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' mathieu@468: # mathieu@468: # The IRIX 6 linker writes into existing files which may not be mathieu@468: # executable, retaining their permissions. Remove them first so a mathieu@468: # subsequent execution test works. Chris@350: ac_rmfiles= Chris@350: for ac_file in $ac_files Chris@350: do Chris@350: case $ac_file in mathieu@468: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; Chris@350: * ) ac_rmfiles="$ac_rmfiles $ac_file";; Chris@350: esac Chris@350: done Chris@350: rm -f $ac_rmfiles Chris@350: mathieu@468: if { (ac_try="$ac_link_default" Chris@350: case "(($ac_try" in Chris@350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@350: *) ac_try_echo=$ac_try;; Chris@350: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@350: (eval "$ac_link_default") 2>&5 Chris@350: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); }; then Chris@350: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. Chris@350: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' Chris@350: # in a Makefile. We should not override ac_cv_exeext if it was cached, Chris@350: # so that the user can short-circuit this test for compilers unknown to Chris@350: # Autoconf. Chris@350: for ac_file in $ac_files '' Chris@350: do Chris@350: test -f "$ac_file" || continue Chris@350: case $ac_file in mathieu@468: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) Chris@350: ;; Chris@350: [ab].out ) Chris@350: # We found the default executable, but exeext='' is most Chris@350: # certainly right. Chris@350: break;; Chris@350: *.* ) mathieu@468: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; Chris@350: then :; else Chris@350: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@350: fi Chris@350: # We set ac_cv_exeext here because the later test for it is not Chris@350: # safe: cross compilers may not add the suffix if given an `-o' Chris@350: # argument, so we may need to know it at that point already. Chris@350: # Even if this section looks crufty: it has the advantage of Chris@350: # actually working. Chris@350: break;; Chris@350: * ) Chris@350: break;; Chris@350: esac Chris@350: done Chris@350: test "$ac_cv_exeext" = no && ac_cv_exeext= Chris@350: Chris@350: else Chris@350: ac_file='' Chris@350: fi mathieu@468: mathieu@468: { echo "$as_me:$LINENO: result: $ac_file" >&5 mathieu@468: echo "${ECHO_T}$ac_file" >&6; } mathieu@468: if test -z "$ac_file"; then mathieu@468: echo "$as_me: failed program was:" >&5 Chris@350: sed 's/^/| /' conftest.$ac_ext >&5 Chris@350: mathieu@468: { { echo "$as_me:$LINENO: error: C compiler cannot create executables mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: C compiler cannot create executables mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 77); exit 77; }; } mathieu@468: fi mathieu@468: Chris@350: ac_exeext=$ac_cv_exeext Chris@350: mathieu@468: # Check that the compiler produces executables we can run. If not, either mathieu@468: # the compiler is broken, or we cross compile. mathieu@468: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 mathieu@468: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } mathieu@468: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 mathieu@468: # If not cross compiling, check that we can run a simple program. mathieu@468: if test "$cross_compiling" != yes; then mathieu@468: if { ac_try='./$ac_file' mathieu@468: { (case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_try") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); }; }; then mathieu@468: cross_compiling=no mathieu@468: else mathieu@468: if test "$cross_compiling" = maybe; then mathieu@468: cross_compiling=yes mathieu@468: else mathieu@468: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. mathieu@468: If you meant to cross compile, use \`--host'. mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: cannot run C compiled programs. mathieu@468: If you meant to cross compile, use \`--host'. mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: fi mathieu@468: fi mathieu@468: { echo "$as_me:$LINENO: result: yes" >&5 mathieu@468: echo "${ECHO_T}yes" >&6; } mathieu@468: mathieu@468: rm -f a.out a.exe conftest$ac_cv_exeext b.out Chris@350: ac_clean_files=$ac_clean_files_save mathieu@468: # Check that the compiler produces executables we can run. If not, either mathieu@468: # the compiler is broken, or we cross compile. mathieu@468: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 mathieu@468: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } mathieu@468: { echo "$as_me:$LINENO: result: $cross_compiling" >&5 mathieu@468: echo "${ECHO_T}$cross_compiling" >&6; } mathieu@468: mathieu@468: { echo "$as_me:$LINENO: checking for suffix of executables" >&5 mathieu@468: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } mathieu@468: if { (ac_try="$ac_link" Chris@350: case "(($ac_try" in Chris@350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@350: *) ac_try_echo=$ac_try;; Chris@350: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@350: (eval "$ac_link") 2>&5 Chris@350: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); }; then Chris@350: # If both `conftest.exe' and `conftest' are `present' (well, observable) Chris@350: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will Chris@350: # work properly (i.e., refer to `conftest.exe'), while it won't with Chris@350: # `rm'. Chris@350: for ac_file in conftest.exe conftest conftest.*; do Chris@350: test -f "$ac_file" || continue Chris@350: case $ac_file in mathieu@468: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; Chris@350: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@350: break;; Chris@350: * ) break;; Chris@350: esac Chris@350: done Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest$ac_cv_exeext mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_exeext" >&6; } Chris@350: Chris@350: rm -f conftest.$ac_ext Chris@350: EXEEXT=$ac_cv_exeext Chris@350: ac_exeext=$EXEEXT mathieu@468: { echo "$as_me:$LINENO: checking for suffix of object files" >&5 mathieu@468: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_objext+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ mathieu@468: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF Chris@457: rm -f conftest.o conftest.obj mathieu@468: if { (ac_try="$ac_compile" Chris@350: case "(($ac_try" in Chris@350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@350: *) ac_try_echo=$ac_try;; Chris@350: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 Chris@350: (eval "$ac_compile") 2>&5 Chris@350: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); }; then Chris@350: for ac_file in conftest.o conftest.obj conftest.*; do Chris@350: test -f "$ac_file" || continue; Chris@350: case $ac_file in mathieu@468: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; Chris@350: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` Chris@350: break;; Chris@350: esac Chris@350: done Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 Chris@350: sed 's/^/| /' conftest.$ac_ext >&5 Chris@350: mathieu@468: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: cannot compute suffix of object files: cannot compile mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: Chris@350: rm -f conftest.$ac_cv_objext conftest.$ac_ext Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_objext" >&6; } Chris@350: OBJEXT=$ac_cv_objext Chris@350: ac_objext=$OBJEXT mathieu@468: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 mathieu@468: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_c_compiler_gnu+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: #ifndef __GNUC__ Chris@350: choke me Chris@350: #endif Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_c_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_compiler_gnu=yes Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_compiler_gnu=no mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: ac_cv_c_compiler_gnu=$ac_compiler_gnu Chris@350: Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } mathieu@468: GCC=`test $ac_compiler_gnu = yes && echo yes` Chris@350: ac_test_CFLAGS=${CFLAGS+set} Chris@350: ac_save_CFLAGS=$CFLAGS mathieu@468: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 mathieu@468: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_cc_g+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_save_c_werror_flag=$ac_c_werror_flag Chris@350: ac_c_werror_flag=yes Chris@350: ac_cv_prog_cc_g=no Chris@350: CFLAGS="-g" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_c_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_prog_cc_g=yes Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: CFLAGS="" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_c_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: : mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_c_werror_flag=$ac_save_c_werror_flag Chris@350: CFLAGS="-g" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_c_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_prog_cc_g=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: ac_c_werror_flag=$ac_save_c_werror_flag Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } Chris@350: if test "$ac_test_CFLAGS" = set; then Chris@350: CFLAGS=$ac_save_CFLAGS Chris@350: elif test $ac_cv_prog_cc_g = yes; then Chris@350: if test "$GCC" = yes; then Chris@350: CFLAGS="-g -O2" Chris@350: else Chris@350: CFLAGS="-g" Chris@350: fi Chris@350: else Chris@350: if test "$GCC" = yes; then Chris@350: CFLAGS="-O2" Chris@350: else Chris@350: CFLAGS= Chris@350: fi Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 mathieu@468: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_cc_c89+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_cv_prog_cc_c89=no Chris@350: ac_save_CC=$CC mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: #include Chris@350: #include Chris@350: #include Chris@350: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ Chris@350: struct buf { int x; }; Chris@350: FILE * (*rcsopen) (struct buf *, struct stat *, int); Chris@350: static char *e (p, i) Chris@350: char **p; Chris@350: int i; Chris@350: { Chris@350: return p[i]; Chris@350: } Chris@350: static char *f (char * (*g) (char **, int), char **p, ...) Chris@350: { Chris@350: char *s; Chris@350: va_list v; Chris@350: va_start (v,p); Chris@350: s = g (p, va_arg (v,int)); Chris@350: va_end (v); Chris@350: return s; Chris@350: } Chris@350: Chris@350: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has Chris@350: function prototypes and stuff, but not '\xHH' hex character constants. Chris@350: These don't provoke an error unfortunately, instead are silently treated Chris@350: as 'x'. The following induces an error, until -std is added to get Chris@350: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an Chris@350: array size at least. It's necessary to write '\x00'==0 to get something Chris@350: that's true only with -std. */ Chris@350: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; Chris@350: Chris@350: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters Chris@350: inside strings and character constants. */ Chris@350: #define FOO(x) 'x' Chris@350: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; Chris@350: Chris@350: int test (int i, double x); Chris@350: struct s1 {int (*f) (int a);}; Chris@350: struct s2 {int (*f) (double a);}; Chris@350: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); Chris@350: int argc; Chris@350: char **argv; Chris@350: int Chris@350: main () Chris@350: { Chris@350: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF Chris@350: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ Chris@350: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" Chris@350: do Chris@350: CC="$ac_save_CC $ac_arg" mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_c_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_prog_cc_c89=$ac_arg mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext Chris@350: test "x$ac_cv_prog_cc_c89" != "xno" && break Chris@350: done Chris@350: rm -f conftest.$ac_ext Chris@350: CC=$ac_save_CC Chris@350: Chris@350: fi Chris@350: # AC_CACHE_VAL Chris@350: case "x$ac_cv_prog_cc_c89" in Chris@350: x) mathieu@468: { echo "$as_me:$LINENO: result: none needed" >&5 mathieu@468: echo "${ECHO_T}none needed" >&6; } ;; Chris@350: xno) mathieu@468: { echo "$as_me:$LINENO: result: unsupported" >&5 mathieu@468: echo "${ECHO_T}unsupported" >&6; } ;; Chris@350: *) Chris@350: CC="$CC $ac_cv_prog_cc_c89" mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; mathieu@468: esac mathieu@468: Chris@350: Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@350: Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@350: if test -z "$CXX"; then Chris@350: if test -n "$CCC"; then Chris@350: CXX=$CCC Chris@350: else Chris@350: if test -n "$ac_tool_prefix"; then Chris@350: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC Chris@350: do Chris@350: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@350: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_CXX+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$CXX"; then Chris@350: ac_cv_prog_CXX="$CXX" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: CXX=$ac_cv_prog_CXX Chris@350: if test -n "$CXX"; then mathieu@468: { echo "$as_me:$LINENO: result: $CXX" >&5 mathieu@468: echo "${ECHO_T}$CXX" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: test -n "$CXX" && break Chris@350: done Chris@350: fi Chris@350: if test -z "$CXX"; then Chris@350: ac_ct_CXX=$CXX Chris@350: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC Chris@350: do Chris@350: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@350: set dummy $ac_prog; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$ac_ct_CXX"; then Chris@350: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_ac_ct_CXX="$ac_prog" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX Chris@350: if test -n "$ac_ct_CXX"; then mathieu@468: { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 mathieu@468: echo "${ECHO_T}$ac_ct_CXX" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@350: test -n "$ac_ct_CXX" && break Chris@350: done Chris@350: Chris@350: if test "x$ac_ct_CXX" = x; then Chris@350: CXX="g++" Chris@350: else Chris@350: case $cross_compiling:$ac_tool_warned in Chris@350: yes:) mathieu@468: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&5 mathieu@468: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools mathieu@468: whose name does not start with the host triplet. If you think this mathieu@468: configuration is useful to you, please write to autoconf@gnu.org." >&2;} Chris@350: ac_tool_warned=yes ;; Chris@350: esac Chris@350: CXX=$ac_ct_CXX Chris@350: fi Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: # Provide some information about the compiler. mathieu@468: echo "$as_me:$LINENO: checking for C++ compiler version" >&5 mathieu@468: ac_compiler=`set X $ac_compile; echo $2` mathieu@468: { (ac_try="$ac_compiler --version >&5" Chris@350: case "(($ac_try" in Chris@350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@350: *) ac_try_echo=$ac_try;; Chris@350: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler --version >&5") 2>&5 Chris@350: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: { (ac_try="$ac_compiler -v >&5" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler -v >&5") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: { (ac_try="$ac_compiler -V >&5" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compiler -V >&5") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } mathieu@468: mathieu@468: { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 mathieu@468: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: #ifndef __GNUC__ Chris@350: choke me Chris@350: #endif Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_compiler_gnu=yes Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_compiler_gnu=no mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu Chris@350: Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } mathieu@468: GXX=`test $ac_compiler_gnu = yes && echo yes` Chris@350: ac_test_CXXFLAGS=${CXXFLAGS+set} Chris@350: ac_save_CXXFLAGS=$CXXFLAGS mathieu@468: { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 mathieu@468: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_cxx_g+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_save_cxx_werror_flag=$ac_cxx_werror_flag Chris@350: ac_cxx_werror_flag=yes Chris@350: ac_cv_prog_cxx_g=no Chris@350: CXXFLAGS="-g" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_prog_cxx_g=yes Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: CXXFLAGS="" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: : mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_cxx_werror_flag=$ac_save_cxx_werror_flag Chris@350: CXXFLAGS="-g" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_prog_cxx_g=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: ac_cxx_werror_flag=$ac_save_cxx_werror_flag Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } Chris@350: if test "$ac_test_CXXFLAGS" = set; then Chris@350: CXXFLAGS=$ac_save_CXXFLAGS Chris@350: elif test $ac_cv_prog_cxx_g = yes; then Chris@350: if test "$GXX" = yes; then Chris@350: CXXFLAGS="-g -O2" Chris@350: else Chris@350: CXXFLAGS="-g" Chris@350: fi Chris@350: else Chris@350: if test "$GXX" = yes; then Chris@350: CXXFLAGS="-O2" Chris@350: else Chris@350: CXXFLAGS= Chris@350: fi Chris@350: fi Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@350: Chris@350: ac_aux_dir= Chris@350: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do Chris@405: if test -f "$ac_dir/install-sh"; then Chris@405: ac_aux_dir=$ac_dir Chris@405: ac_install_sh="$ac_aux_dir/install-sh -c" Chris@405: break Chris@405: elif test -f "$ac_dir/install.sh"; then Chris@405: ac_aux_dir=$ac_dir Chris@405: ac_install_sh="$ac_aux_dir/install.sh -c" Chris@405: break Chris@405: elif test -f "$ac_dir/shtool"; then Chris@405: ac_aux_dir=$ac_dir Chris@405: ac_install_sh="$ac_aux_dir/shtool install -c" Chris@405: break Chris@405: fi Chris@350: done Chris@350: if test -z "$ac_aux_dir"; then mathieu@468: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 mathieu@468: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: # These three variables are undocumented and unsupported, Chris@350: # and are intended to be withdrawn in a future Autoconf release. Chris@350: # They can cause serious problems if a builder's source tree is in a directory Chris@350: # whose full name contains unusual characters. Chris@350: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. Chris@350: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. Chris@350: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. Chris@350: Chris@350: Chris@350: # Find a good install program. We prefer a C program (faster), Chris@350: # so one script is as good as another. But avoid the broken or Chris@350: # incompatible versions: Chris@350: # SysV /etc/install, /usr/sbin/install Chris@350: # SunOS /usr/etc/install Chris@350: # IRIX /sbin/install Chris@350: # AIX /bin/install Chris@350: # AmigaOS /C/install, which installs bootblocks on floppy discs Chris@350: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag Chris@350: # AFS /usr/afsws/bin/install, which mishandles nonexistent args Chris@350: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" Chris@350: # OS/2's system install, which has a completely different semantic Chris@350: # ./install, which can be erroneously created by make from ./install.sh. mathieu@468: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 mathieu@468: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } Chris@350: if test -z "$INSTALL"; then mathieu@468: if test "${ac_cv_path_install+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: # Account for people who put trailing slashes in PATH elements. mathieu@468: case $as_dir/ in mathieu@468: ./ | .// | /cC/* | \ Chris@350: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ mathieu@468: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ Chris@350: /usr/ucb/* ) ;; Chris@350: *) Chris@350: # OSF1 and SCO ODT 3.0 have their own names for install. Chris@350: # Don't use installbsd from OSF since it installs stuff as root Chris@350: # by default. Chris@350: for ac_prog in ginstall scoinst install; do Chris@350: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then Chris@350: if test $ac_prog = install && Chris@350: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@350: # AIX install. It has an incompatible calling convention. Chris@350: : Chris@350: elif test $ac_prog = install && Chris@350: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@350: # program-specific install script used by HP pwplus--don't use. Chris@350: : Chris@350: else mathieu@468: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" mathieu@468: break 3 Chris@350: fi Chris@350: fi Chris@350: done Chris@350: done Chris@350: ;; Chris@350: esac mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: Chris@350: fi Chris@350: if test "${ac_cv_path_install+set}" = set; then Chris@350: INSTALL=$ac_cv_path_install Chris@350: else Chris@350: # As a last resort, use the slow shell script. Don't cache a Chris@350: # value for INSTALL within a source directory, because that will Chris@350: # break other packages using the cache if that directory is Chris@350: # removed, or if the value is a relative name. Chris@350: INSTALL=$ac_install_sh Chris@350: fi Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $INSTALL" >&5 mathieu@468: echo "${ECHO_T}$INSTALL" >&6; } Chris@350: Chris@350: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. Chris@350: # It thinks the first close brace ends the variable substitution. Chris@350: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' Chris@350: Chris@350: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' Chris@350: Chris@350: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' Chris@350: mathieu@468: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 mathieu@468: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } Chris@350: if test -z "$MKDIR_P"; then mathieu@468: if test "${ac_cv_path_mkdir+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_prog in mkdir gmkdir; do Chris@350: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue Chris@350: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( Chris@350: 'mkdir (GNU coreutils) '* | \ Chris@350: 'mkdir (coreutils) '* | \ Chris@350: 'mkdir (fileutils) '4.1*) Chris@350: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext Chris@350: break 3;; Chris@350: esac Chris@350: done Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: Chris@350: if test "${ac_cv_path_mkdir+set}" = set; then Chris@350: MKDIR_P="$ac_cv_path_mkdir -p" Chris@350: else Chris@350: # As a last resort, use the slow shell script. Don't cache a Chris@350: # value for MKDIR_P within a source directory, because that will Chris@350: # break other packages using the cache if that directory is Chris@350: # removed, or if the value is a relative name. mathieu@468: test -d ./--version && rmdir ./--version Chris@350: MKDIR_P="$ac_install_sh -d" Chris@350: fi Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 mathieu@468: echo "${ECHO_T}$MKDIR_P" >&6; } Chris@350: Chris@350: Chris@350: Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu mathieu@468: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 mathieu@468: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } Chris@350: if test -z "$CXXCPP"; then mathieu@468: if test "${ac_cv_prog_CXXCPP+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: # Double quotes because CXXCPP needs to be expanded Chris@350: for CXXCPP in "$CXX -E" "/lib/cpp" Chris@350: do Chris@350: ac_preproc_ok=false Chris@350: for ac_cxx_preproc_warn_flag in '' yes Chris@350: do Chris@350: # Use a header file that comes with gcc, so configuring glibc Chris@350: # with a fresh cross-compiler works. Chris@350: # Prefer to if __STDC__ is defined, since Chris@350: # exists even on freestanding compilers. Chris@350: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@350: # not just through cpp. "Syntax error" is here to catch this case. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #ifdef __STDC__ Chris@350: # include Chris@350: #else Chris@350: # include Chris@350: #endif Chris@350: Syntax error Chris@350: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: : mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: Chris@350: # Broken: fails on valid input. Chris@350: continue Chris@350: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext Chris@350: Chris@350: # OK, works on sane cases. Now check whether nonexistent headers Chris@350: # can be detected and how. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then Chris@350: # Broken: success on invalid input. Chris@350: continue Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: Chris@350: # Passes both tests. Chris@350: ac_preproc_ok=: Chris@350: break Chris@350: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext Chris@350: Chris@350: done Chris@350: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: if $ac_preproc_ok; then Chris@350: break Chris@350: fi Chris@350: Chris@350: done Chris@350: ac_cv_prog_CXXCPP=$CXXCPP Chris@350: Chris@350: fi Chris@350: CXXCPP=$ac_cv_prog_CXXCPP Chris@350: else Chris@350: ac_cv_prog_CXXCPP=$CXXCPP Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $CXXCPP" >&5 mathieu@468: echo "${ECHO_T}$CXXCPP" >&6; } Chris@350: ac_preproc_ok=false Chris@350: for ac_cxx_preproc_warn_flag in '' yes Chris@350: do Chris@350: # Use a header file that comes with gcc, so configuring glibc Chris@350: # with a fresh cross-compiler works. Chris@350: # Prefer to if __STDC__ is defined, since Chris@350: # exists even on freestanding compilers. Chris@350: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@350: # not just through cpp. "Syntax error" is here to catch this case. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #ifdef __STDC__ Chris@350: # include Chris@350: #else Chris@350: # include Chris@350: #endif Chris@350: Syntax error Chris@350: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: : mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: Chris@350: # Broken: fails on valid input. Chris@350: continue Chris@350: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext Chris@350: Chris@350: # OK, works on sane cases. Now check whether nonexistent headers Chris@350: # can be detected and how. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then Chris@350: # Broken: success on invalid input. Chris@350: continue Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: Chris@350: # Passes both tests. Chris@350: ac_preproc_ok=: Chris@350: break Chris@350: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext Chris@350: Chris@350: done Chris@350: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: if $ac_preproc_ok; then mathieu@468: : mathieu@468: else mathieu@468: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check mathieu@468: See \`config.log' for more details." >&5 mathieu@468: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check mathieu@468: See \`config.log' for more details." >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: ac_ext=cpp Chris@350: ac_cpp='$CXXCPP $CPPFLAGS' Chris@350: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@350: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@350: Chris@350: mathieu@468: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 mathieu@468: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_path_GREP+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: # Extract the first word of "grep ggrep" to use in msg output mathieu@468: if test -z "$GREP"; then mathieu@468: set dummy grep ggrep; ac_prog_name=$2 mathieu@468: if test "${ac_cv_path_GREP+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else Chris@350: ac_path_GREP_found=false mathieu@468: # Loop through the user's path and test for each of PROGNAME-LIST mathieu@468: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_prog in grep ggrep; do mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do mathieu@468: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" mathieu@468: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue mathieu@468: # Check for GNU ac_path_GREP and select it if it is found. Chris@350: # Check for GNU $ac_path_GREP Chris@350: case `"$ac_path_GREP" --version 2>&1` in Chris@350: *GNU*) Chris@350: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; Chris@350: *) Chris@350: ac_count=0 mathieu@468: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@350: while : Chris@350: do Chris@350: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@350: mv "conftest.tmp" "conftest.in" Chris@350: cp "conftest.in" "conftest.nl" mathieu@468: echo 'GREP' >> "conftest.nl" Chris@350: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@350: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break mathieu@468: ac_count=`expr $ac_count + 1` Chris@350: if test $ac_count -gt ${ac_path_GREP_max-0}; then Chris@350: # Best one so far, save it but keep looking for a better one Chris@350: ac_cv_path_GREP="$ac_path_GREP" Chris@350: ac_path_GREP_max=$ac_count Chris@350: fi Chris@350: # 10*(2^10) chars as input seems more than enough Chris@350: test $ac_count -gt 10 && break Chris@350: done Chris@350: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@350: esac Chris@350: mathieu@468: mathieu@468: $ac_path_GREP_found && break 3 Chris@350: done mathieu@468: done mathieu@468: mathieu@468: done Chris@350: IFS=$as_save_IFS mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: GREP="$ac_cv_path_GREP" mathieu@468: if test -z "$GREP"; then mathieu@468: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 mathieu@468: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: Chris@350: else Chris@350: ac_cv_path_GREP=$GREP Chris@350: fi Chris@350: mathieu@468: mathieu@468: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_path_GREP" >&6; } Chris@350: GREP="$ac_cv_path_GREP" Chris@350: Chris@350: mathieu@468: { echo "$as_me:$LINENO: checking for egrep" >&5 mathieu@468: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_path_EGREP+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 Chris@350: then ac_cv_path_EGREP="$GREP -E" Chris@350: else mathieu@468: # Extract the first word of "egrep" to use in msg output mathieu@468: if test -z "$EGREP"; then mathieu@468: set dummy egrep; ac_prog_name=$2 mathieu@468: if test "${ac_cv_path_EGREP+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else Chris@350: ac_path_EGREP_found=false mathieu@468: # Loop through the user's path and test for each of PROGNAME-LIST mathieu@468: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_prog in egrep; do mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do mathieu@468: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" mathieu@468: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue mathieu@468: # Check for GNU ac_path_EGREP and select it if it is found. Chris@350: # Check for GNU $ac_path_EGREP Chris@350: case `"$ac_path_EGREP" --version 2>&1` in Chris@350: *GNU*) Chris@350: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; Chris@350: *) Chris@350: ac_count=0 mathieu@468: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" Chris@350: while : Chris@350: do Chris@350: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@350: mv "conftest.tmp" "conftest.in" Chris@350: cp "conftest.in" "conftest.nl" mathieu@468: echo 'EGREP' >> "conftest.nl" Chris@350: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@350: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break mathieu@468: ac_count=`expr $ac_count + 1` Chris@350: if test $ac_count -gt ${ac_path_EGREP_max-0}; then Chris@350: # Best one so far, save it but keep looking for a better one Chris@350: ac_cv_path_EGREP="$ac_path_EGREP" Chris@350: ac_path_EGREP_max=$ac_count Chris@350: fi Chris@350: # 10*(2^10) chars as input seems more than enough Chris@350: test $ac_count -gt 10 && break Chris@350: done Chris@350: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@350: esac Chris@350: mathieu@468: mathieu@468: $ac_path_EGREP_found && break 3 Chris@350: done mathieu@468: done mathieu@468: mathieu@468: done Chris@350: IFS=$as_save_IFS mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: EGREP="$ac_cv_path_EGREP" mathieu@468: if test -z "$EGREP"; then mathieu@468: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 mathieu@468: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: Chris@350: else Chris@350: ac_cv_path_EGREP=$EGREP Chris@350: fi Chris@350: mathieu@468: Chris@350: fi Chris@350: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } Chris@350: EGREP="$ac_cv_path_EGREP" Chris@350: Chris@350: mathieu@468: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 mathieu@468: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_header_stdc+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: #include Chris@350: #include Chris@350: #include Chris@350: Chris@350: int Chris@350: main () Chris@350: { Chris@350: Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then Chris@350: ac_cv_header_stdc=yes Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_cv_header_stdc=no mathieu@468: fi mathieu@468: Chris@350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@350: Chris@350: if test $ac_cv_header_stdc = yes; then Chris@350: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: Chris@350: _ACEOF Chris@350: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | mathieu@468: $EGREP "memchr" >/dev/null 2>&1; then mathieu@468: : Chris@350: else Chris@350: ac_cv_header_stdc=no Chris@350: fi Chris@350: rm -f conftest* Chris@350: Chris@350: fi Chris@350: Chris@350: if test $ac_cv_header_stdc = yes; then Chris@350: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: Chris@350: _ACEOF Chris@350: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | mathieu@468: $EGREP "free" >/dev/null 2>&1; then mathieu@468: : Chris@350: else Chris@350: ac_cv_header_stdc=no Chris@350: fi Chris@350: rm -f conftest* Chris@350: Chris@350: fi Chris@350: Chris@350: if test $ac_cv_header_stdc = yes; then Chris@350: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. mathieu@468: if test "$cross_compiling" = yes; then Chris@350: : Chris@350: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: #include Chris@350: #include Chris@350: #if ((' ' & 0x0FF) == 0x020) Chris@350: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') Chris@350: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) Chris@350: #else Chris@350: # define ISLOWER(c) \ Chris@350: (('a' <= (c) && (c) <= 'i') \ Chris@350: || ('j' <= (c) && (c) <= 'r') \ Chris@350: || ('s' <= (c) && (c) <= 'z')) Chris@350: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) Chris@350: #endif Chris@350: Chris@350: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) Chris@350: int Chris@350: main () Chris@350: { Chris@350: int i; Chris@350: for (i = 0; i < 256; i++) Chris@350: if (XOR (islower (i), ISLOWER (i)) Chris@350: || toupper (i) != TOUPPER (i)) Chris@350: return 2; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' mathieu@468: { (case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_try") 2>&5 mathieu@468: ac_status=$? mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); }; }; then mathieu@468: : mathieu@468: else mathieu@468: echo "$as_me: program exited with status $ac_status" >&5 mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ( exit $ac_status ) mathieu@468: ac_cv_header_stdc=no mathieu@468: fi mathieu@468: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: fi mathieu@468: fi mathieu@468: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 mathieu@468: echo "${ECHO_T}$ac_cv_header_stdc" >&6; } Chris@350: if test $ac_cv_header_stdc = yes; then Chris@350: mathieu@468: cat >>confdefs.h <<\_ACEOF mathieu@468: #define STDC_HEADERS 1 mathieu@468: _ACEOF Chris@350: Chris@350: fi Chris@350: Chris@350: Chris@350: # These are the flags Autoconf guesses for us; we use them later if Chris@350: # the user has set none and we are not using GCC (so lack our own Chris@350: # preferred flags) Chris@350: AUTOCONF_CXXFLAGS="$CXXFLAGS" Chris@350: mathieu@480: PKG_PROG_PKG_CONFIG Chris@354: Chris@354: Chris@354: Chris@354: Chris@354: if test x$QMAKE = x ; then Chris@354: # Extract the first word of "qmake-qt4", so it can be a program name with args. Chris@350: set dummy qmake-qt4; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_QMAKE+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$QMAKE"; then Chris@350: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $QTDIR/bin/ Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: QMAKE=$ac_cv_prog_QMAKE Chris@350: if test -n "$QMAKE"; then mathieu@468: { echo "$as_me:$LINENO: result: $QMAKE" >&5 mathieu@468: echo "${ECHO_T}$QMAKE" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@354: fi Chris@350: if test x$QMAKE = x ; then Chris@354: # Extract the first word of "qmake", so it can be a program name with args. Chris@350: set dummy qmake; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_QMAKE+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$QMAKE"; then Chris@350: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $QTDIR/bin/ Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_QMAKE="$QTDIR/bin/qmake" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: QMAKE=$ac_cv_prog_QMAKE Chris@350: if test -n "$QMAKE"; then mathieu@468: { echo "$as_me:$LINENO: result: $QMAKE" >&5 mathieu@468: echo "${ECHO_T}$QMAKE" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@354: fi Chris@354: if test x$QMAKE = x ; then Chris@354: # Extract the first word of "qmake.exe", so it can be a program name with args. Chris@350: set dummy qmake.exe; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_QMAKE+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: if test -n "$QMAKE"; then Chris@350: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@350: else Chris@350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $QTDIR/bin/ Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@350: ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@350: break 2 Chris@350: fi Chris@350: done mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: fi Chris@350: fi Chris@350: QMAKE=$ac_cv_prog_QMAKE Chris@350: if test -n "$QMAKE"; then mathieu@468: { echo "$as_me:$LINENO: result: $QMAKE" >&5 mathieu@468: echo "${ECHO_T}$QMAKE" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@350: fi Chris@350: Chris@350: Chris@354: fi Chris@354: if test x$QMAKE = x ; then Chris@354: # Extract the first word of "qmake-qt4", so it can be a program name with args. Chris@354: set dummy qmake-qt4; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_QMAKE+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@354: else Chris@354: if test -n "$QMAKE"; then Chris@354: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@354: else Chris@354: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@354: for as_dir in $PATH Chris@354: do Chris@354: IFS=$as_save_IFS Chris@354: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@354: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@354: ac_cv_prog_QMAKE="qmake-qt4" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@354: break 2 Chris@354: fi Chris@354: done mathieu@468: done Chris@354: IFS=$as_save_IFS Chris@354: Chris@354: fi Chris@354: fi Chris@354: QMAKE=$ac_cv_prog_QMAKE Chris@354: if test -n "$QMAKE"; then mathieu@468: { echo "$as_me:$LINENO: result: $QMAKE" >&5 mathieu@468: echo "${ECHO_T}$QMAKE" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@354: fi Chris@354: Chris@354: Chris@354: fi Chris@354: if test x$QMAKE = x ; then Chris@354: # Extract the first word of "qmake", so it can be a program name with args. Chris@354: set dummy qmake; ac_word=$2 mathieu@468: { echo "$as_me:$LINENO: checking for $ac_word" >&5 mathieu@468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } mathieu@468: if test "${ac_cv_prog_QMAKE+set}" = set; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@354: else Chris@354: if test -n "$QMAKE"; then Chris@354: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@354: else Chris@354: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@354: for as_dir in $PATH Chris@354: do Chris@354: IFS=$as_save_IFS Chris@354: test -z "$as_dir" && as_dir=. mathieu@468: for ac_exec_ext in '' $ac_executable_extensions; do Chris@354: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@354: ac_cv_prog_QMAKE="qmake" mathieu@468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@354: break 2 Chris@354: fi Chris@354: done mathieu@468: done Chris@354: IFS=$as_save_IFS Chris@354: Chris@354: fi Chris@354: fi Chris@354: QMAKE=$ac_cv_prog_QMAKE Chris@354: if test -n "$QMAKE"; then mathieu@468: { echo "$as_me:$LINENO: result: $QMAKE" >&5 mathieu@468: echo "${ECHO_T}$QMAKE" >&6; } mathieu@468: else mathieu@468: { echo "$as_me:$LINENO: result: no" >&5 mathieu@468: echo "${ECHO_T}no" >&6; } Chris@354: fi Chris@354: Chris@354: Chris@354: fi Chris@354: if test x$QMAKE = x ; then mathieu@468: { { echo "$as_me:$LINENO: error: Chris@350: Failed to find the required qmake-qt4 or qmake program. Please Chris@354: ensure you have the necessary Qt4 development files installed, and Chris@354: if necessary set QTDIR to the location of your Qt4 installation. mathieu@468: " >&5 mathieu@468: echo "$as_me: error: mathieu@468: Failed to find the required qmake-qt4 or qmake program. Please mathieu@468: ensure you have the necessary Qt4 development files installed, and mathieu@468: if necessary set QTDIR to the location of your Qt4 installation. mathieu@468: " >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: # Suitable versions of qmake should print out something like: Chris@350: # Chris@350: # QMake version 2.01a Chris@350: # Using Qt version 4.6.3 in /usr/lib Chris@350: # Chris@350: # This may be translated, so we check only for the numbers (2.x and 4.x Chris@350: # in that order). Chris@350: # Chris@350: QMAKE_VERSION_OUTPUT=`$QMAKE -v` Chris@350: case "$QMAKE_VERSION_OUTPUT" in Chris@350: *2.*4.*) ;; mathieu@468: *) { echo "$as_me:$LINENO: WARNING: Chris@350: *** The version of qmake found in \"$QMAKE\" looks like it might be Chris@350: from the wrong version of Qt (Qt4 is required). Please check Chris@350: that this is the correct version of qmake for Qt4 builds. Chris@350: " >&5 mathieu@468: echo "$as_me: WARNING: Chris@350: *** The version of qmake found in \"$QMAKE\" looks like it might be Chris@350: from the wrong version of Qt (Qt4 is required). Please check Chris@350: that this is the correct version of qmake for Qt4 builds. Chris@350: " >&2;} Chris@350: esac Chris@350: Chris@359: case "`uname`" in Chris@360: *Darwin*) QMAKE="$QMAKE -spec macx-g++";; Chris@359: esac Chris@359: Chris@350: Chris@350: Chris@350: SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" Chris@350: SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING" Chris@350: SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE" Chris@350: Chris@350: # Now we have: USER_CXXFLAGS contains any flags the user set Chris@350: # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought Chris@350: # we should use. If we have GCC, we override the latter but then Chris@350: # allow ourselves to be overridden (later) by the former Chris@350: Chris@350: CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" Chris@350: CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" Chris@350: CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" Chris@350: Chris@350: if test "x$GCC" = "xyes"; then Chris@350: CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" Chris@350: CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" Chris@350: CXXFLAGS_MINIMAL="-g0 -O0" Chris@350: fi Chris@350: Chris@350: CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" Chris@350: SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" Chris@350: Chris@361: QMAKE_CONFIG="release" Chris@361: Chris@350: # Check whether --enable-debug was given. mathieu@468: if test "${enable_debug+set}" = set; then mathieu@468: enableval=$enable_debug; { echo "$as_me:$LINENO: enabling debug build" >&5 mathieu@468: echo "$as_me: enabling debug build" >&6;} Chris@361: QMAKE_CONFIG="debug" Chris@350: CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" Chris@350: SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" Chris@350: fi Chris@350: Chris@350: Chris@350: if test x"$USER_CXXFLAGS" != x; then mathieu@468: { echo "$as_me:$LINENO: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 mathieu@468: echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} mathieu@468: { echo "$as_me:$LINENO: Overriding default compiler flags with the above user setting." >&5 mathieu@468: echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} Chris@350: CXXFLAGS_BUILD="$USER_CXXFLAGS" Chris@350: CXXFLAGS_MINIMAL="$USER_CXXFLAGS" Chris@350: fi Chris@350: Chris@350: CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" Chris@350: Chris@350: # On IRIX 5.3, sys/types and inttypes.h are conflicting. mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: Chris@350: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ Chris@350: inttypes.h stdint.h unistd.h mathieu@468: do mathieu@468: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $ac_header" >&5 mathieu@468: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: mathieu@468: #include <$ac_header> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: eval "$as_ac_Header=yes" mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Header=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: cat >>confdefs.h <<_ACEOF mathieu@468: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 Chris@350: _ACEOF Chris@350: Chris@350: fi Chris@350: Chris@350: done Chris@350: Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=bz2 Chris@350: SV_MODULE_VERSION_TEST="" Chris@350: SV_MODULE_HEADER=bzlib.h Chris@350: SV_MODULE_LIB=bz2 Chris@350: SV_MODULE_FUNC=BZ2_bzReadOpen Chris@350: SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$bz2_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $bz2_CFLAGS" Chris@405: LIBS="$LIBS $bz2_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(bz2,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=fftw3 Chris@350: SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0" Chris@350: SV_MODULE_HEADER=fftw3.h Chris@350: SV_MODULE_LIB=fftw3 Chris@350: SV_MODULE_FUNC=fftw_execute Chris@350: SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$fftw3_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS" Chris@405: LIBS="$LIBS $fftw3_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(fftw3,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=fftw3f Chris@350: SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0" Chris@350: SV_MODULE_HEADER=fftw3.h Chris@350: SV_MODULE_LIB=fftw3f Chris@350: SV_MODULE_FUNC=fftwf_execute Chris@350: SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$fftw3f_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS" Chris@405: LIBS="$LIBS $fftw3f_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(fftw3f,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=sndfile Chris@350: SV_MODULE_VERSION_TEST="sndfile >= 1.0.16" Chris@350: SV_MODULE_HEADER=sndfile.h Chris@350: SV_MODULE_LIB=sndfile Chris@350: SV_MODULE_FUNC=sf_open Chris@350: SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$sndfile_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS" Chris@405: LIBS="$LIBS $sndfile_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(sndfile,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=samplerate Chris@350: SV_MODULE_VERSION_TEST="samplerate >= 0.1.2" Chris@350: SV_MODULE_HEADER=samplerate.h Chris@350: SV_MODULE_LIB=samplerate Chris@350: SV_MODULE_FUNC=src_new Chris@350: SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$samplerate_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS" Chris@405: LIBS="$LIBS $samplerate_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(samplerate,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=vamp Chris@350: SV_MODULE_VERSION_TEST="vamp >= 2.1" Chris@350: SV_MODULE_HEADER=vamp/vamp.h Chris@350: SV_MODULE_LIB= Chris@350: SV_MODULE_FUNC= Chris@350: SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$vamp_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $vamp_CFLAGS" Chris@405: LIBS="$LIBS $vamp_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(vamp,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=vamphostsdk Chris@350: SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.0" Chris@350: SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h Chris@350: SV_MODULE_LIB= Chris@350: SV_MODULE_FUNC= Chris@350: SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$vamphostsdk_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS" Chris@405: LIBS="$LIBS $vamphostsdk_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(vamphostsdk,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: SV_MODULE_MODULE=rubberband Chris@350: SV_MODULE_VERSION_TEST="rubberband" Chris@350: SV_MODULE_HEADER=rubberband/RubberBandStretcher.h Chris@350: SV_MODULE_LIB=rubberband Chris@350: SV_MODULE_FUNC=rubberband_new Chris@350: SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@405: if test -n "$rubberband_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@405: CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS" Chris@405: LIBS="$LIBS $rubberband_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(rubberband,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=raptor Chris@457: SV_MODULE_VERSION_TEST="raptor >= 1.4.20" Chris@457: SV_MODULE_HEADER=raptor.h Chris@457: SV_MODULE_LIB=raptor Chris@457: SV_MODULE_FUNC=raptor_start_parse Chris@457: SV_MODULE_HAVE=HAVE_$(echo raptor | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$raptor_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $raptor_CFLAGS" Chris@457: LIBS="$LIBS $raptor_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(raptor,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $raptor_CFLAGS";LIBS="$LIBS $raptor_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=rasqal Chris@457: SV_MODULE_VERSION_TEST="rasqal >= 0.9.19" Chris@457: SV_MODULE_HEADER=rasqal/rasqal.h Chris@457: SV_MODULE_LIB=rasqal Chris@457: SV_MODULE_FUNC=rasqal_new_world Chris@457: SV_MODULE_HAVE=HAVE_$(echo rasqal | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$rasqal_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS" Chris@457: LIBS="$LIBS $rasqal_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(rasqal,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS";LIBS="$LIBS $rasqal_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=redland Chris@457: SV_MODULE_VERSION_TEST="redland >= 1.0.10" Chris@457: SV_MODULE_HEADER=librdf.h Chris@457: SV_MODULE_LIB=rdf Chris@457: SV_MODULE_FUNC=librdf_new_world Chris@457: SV_MODULE_HAVE=HAVE_$(echo redland | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$redland_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $redland_CFLAGS" Chris@457: LIBS="$LIBS $redland_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(redland,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $redland_CFLAGS";LIBS="$LIBS $redland_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@457: HAVES="$HAVES $SV_MODULE_HAVE" Chris@457: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@457: fi Chris@457: Chris@457: Chris@457: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { { echo "$as_me:$LINENO: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: error: Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" >&2;} mathieu@468: { (exit 1); exit 1; }; } Chris@457: fi Chris@457: Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: Chris@457: SV_MODULE_MODULE=liblo Chris@457: SV_MODULE_VERSION_TEST="" Chris@457: SV_MODULE_HEADER=lo/lo.h Chris@457: SV_MODULE_LIB=lo Chris@457: SV_MODULE_FUNC=lo_address_new Chris@457: SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$liblo_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $liblo_CFLAGS" Chris@457: LIBS="$LIBS $liblo_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(liblo,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=portaudio_2_0 Chris@457: SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19" Chris@457: SV_MODULE_HEADER=portaudio.h Chris@457: SV_MODULE_LIB=portaudio Chris@457: SV_MODULE_FUNC=Pa_IsFormatSupported Chris@457: SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z') Chris@358: SV_MODULE_FAILED=1 Chris@457: if test -n "$portaudio_2_0_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS" Chris@457: LIBS="$LIBS $portaudio_2_0_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@358: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@358: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@358: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(portaudio_2_0,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@358: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@358: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@358: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@358: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@358: fi Chris@358: Chris@358: Chris@358: if test -z "$SV_MODULE_FAILED"; then Chris@358: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@358: else Chris@358: ac_check_lib_save_LIBS=$LIBS Chris@358: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@358: /* end confdefs.h. */ Chris@358: Chris@358: /* Override any GCC internal prototype to avoid an error. Chris@358: Use char because int might match the return type of a GCC Chris@358: builtin and then its argument prototype would still apply. */ Chris@358: #ifdef __cplusplus Chris@358: extern "C" Chris@358: #endif Chris@358: char $SV_MODULE_FUNC (); Chris@358: int Chris@358: main () Chris@358: { Chris@358: return $SV_MODULE_FUNC (); Chris@358: ; Chris@358: return 0; Chris@358: } Chris@358: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@358: eval "$as_ac_Lib=yes" Chris@358: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@358: LIBS=$ac_check_lib_save_LIBS Chris@358: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@358: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@358: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@358: fi Chris@358: Chris@358: fi Chris@358: fi Chris@358: fi Chris@358: Chris@358: Chris@457: SV_MODULE_MODULE=JACK Chris@457: SV_MODULE_VERSION_TEST="jack >= 0.100" Chris@457: SV_MODULE_HEADER=jack/jack.h Chris@457: SV_MODULE_LIB=jack Chris@457: SV_MODULE_FUNC=jack_client_open Chris@457: SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$JACK_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $JACK_CFLAGS" Chris@457: LIBS="$LIBS $JACK_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(JACK,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=libpulse Chris@457: SV_MODULE_VERSION_TEST="libpulse >= 0.9" Chris@457: SV_MODULE_HEADER=pulse/pulseaudio.h Chris@457: SV_MODULE_LIB=pulse Chris@457: SV_MODULE_FUNC=pa_stream_new Chris@457: SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$libpulse_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS" Chris@457: LIBS="$LIBS $libpulse_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(libpulse,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=lrdf Chris@457: SV_MODULE_VERSION_TEST="lrdf >= 0.2" Chris@457: SV_MODULE_HEADER=lrdf.h Chris@457: SV_MODULE_LIB=lrdf Chris@457: SV_MODULE_FUNC=lrdf_init Chris@457: SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$lrdf_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS" Chris@457: LIBS="$LIBS $lrdf_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(lrdf,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=oggz Chris@457: SV_MODULE_VERSION_TEST="oggz >= 1.0.0" Chris@457: SV_MODULE_HEADER=oggz/oggz.h Chris@457: SV_MODULE_LIB=oggz Chris@457: SV_MODULE_FUNC=oggz_run Chris@457: SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$oggz_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $oggz_CFLAGS" Chris@457: LIBS="$LIBS $oggz_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(oggz,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=fishsound Chris@457: SV_MODULE_VERSION_TEST="fishsound >= 1.0.0" Chris@457: SV_MODULE_HEADER=fishsound/fishsound.h Chris@457: SV_MODULE_LIB=fishsound Chris@457: SV_MODULE_FUNC=fish_sound_new Chris@457: SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$fishsound_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS" Chris@457: LIBS="$LIBS $fishsound_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(fishsound,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@457: SV_MODULE_MODULE=mad Chris@457: SV_MODULE_VERSION_TEST="mad >= 0.15.0" Chris@457: SV_MODULE_HEADER=mad.h Chris@457: SV_MODULE_LIB=mad Chris@457: SV_MODULE_FUNC=mad_decoder_init Chris@457: SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z') Chris@350: SV_MODULE_FAILED=1 Chris@457: if test -n "$mad_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $mad_CFLAGS" Chris@457: LIBS="$LIBS $mad_LIBS" Chris@405: SV_MODULE_FAILED="" Chris@405: fi Chris@350: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@350: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@350: fi Chris@405: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(mad,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 Chris@350: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@350: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: Chris@350: if test -z "$SV_MODULE_FAILED"; then Chris@350: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@350: else Chris@350: ac_check_lib_save_LIBS=$LIBS Chris@350: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@350: /* end confdefs.h. */ Chris@350: Chris@350: /* Override any GCC internal prototype to avoid an error. Chris@350: Use char because int might match the return type of a GCC Chris@350: builtin and then its argument prototype would still apply. */ Chris@350: #ifdef __cplusplus Chris@350: extern "C" Chris@350: #endif Chris@350: char $SV_MODULE_FUNC (); Chris@350: int Chris@350: main () Chris@350: { Chris@350: return $SV_MODULE_FUNC (); Chris@350: ; Chris@350: return 0; Chris@350: } Chris@350: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@350: eval "$as_ac_Lib=yes" Chris@350: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@350: LIBS=$ac_check_lib_save_LIBS Chris@350: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@350: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@350: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@457: fi Chris@457: Chris@457: fi Chris@457: fi Chris@457: fi Chris@457: Chris@457: Chris@457: SV_MODULE_MODULE=id3tag Chris@457: SV_MODULE_VERSION_TEST="id3tag >= 0.15.0" Chris@457: SV_MODULE_HEADER=id3tag.h Chris@457: SV_MODULE_LIB=id3tag Chris@457: SV_MODULE_FUNC=id3_tag_new Chris@457: SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z') Chris@457: SV_MODULE_FAILED=1 Chris@457: if test -n "$id3tag_LIBS" ; then mathieu@468: { echo "$as_me:$LINENO: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@457: CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS" Chris@457: LIBS="$LIBS $id3tag_LIBS" Chris@457: SV_MODULE_FAILED="" Chris@457: fi Chris@457: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@457: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then mathieu@480: PKG_CHECK_MODULES(id3tag,$SV_MODULE_VERSION_TEST,HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED="",AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])) Chris@457: fi Chris@457: if test -n "$SV_MODULE_FAILED"; then mathieu@468: as_ac_Header=`echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: else mathieu@468: # Is the header compilable? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER usability" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER usability... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: $ac_includes_default mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: rm -f conftest.$ac_objext mathieu@468: if { (ac_try="$ac_compile" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_compile") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest.$ac_objext; then mathieu@468: ac_header_compiler=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_compiler=no mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 mathieu@468: echo "${ECHO_T}$ac_header_compiler" >&6; } mathieu@468: mathieu@468: # Is the header present? mathieu@468: { echo "$as_me:$LINENO: checking $SV_MODULE_HEADER presence" >&5 mathieu@468: echo $ECHO_N "checking $SV_MODULE_HEADER presence... $ECHO_C" >&6; } mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF mathieu@468: /* end confdefs.h. */ mathieu@468: #include <$SV_MODULE_HEADER> mathieu@468: _ACEOF mathieu@468: if { (ac_try="$ac_cpp conftest.$ac_ext" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } >/dev/null && { mathieu@468: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: }; then mathieu@468: ac_header_preproc=yes mathieu@468: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: ac_header_preproc=no mathieu@468: fi mathieu@468: mathieu@468: rm -f conftest.err conftest.$ac_ext mathieu@468: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 mathieu@468: echo "${ECHO_T}$ac_header_preproc" >&6; } mathieu@468: mathieu@468: # So? What about this header? mathieu@468: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in mathieu@468: yes:no: ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: accepted by the compiler, rejected by the preprocessor!" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the compiler's result" >&2;} mathieu@468: ac_header_preproc=yes mathieu@468: ;; mathieu@468: no:yes:* ) mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: present but cannot be compiled" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: check for missing prerequisite headers?" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: see the Autoconf documentation" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: section \"Present But Cannot Be Compiled\"" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: proceeding with the preprocessor's result" >&2;} mathieu@468: { echo "$as_me:$LINENO: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&5 mathieu@468: echo "$as_me: WARNING: $SV_MODULE_HEADER: in the future, the compiler will take precedence" >&2;} mathieu@468: ( cat <<\_ASBOX mathieu@468: ## ------------------------------------------- ## mathieu@468: ## Report this to cannam@all-day-breakfast.com ## mathieu@468: ## ------------------------------------------- ## mathieu@468: _ASBOX mathieu@468: ) | sed "s/^/$as_me: WARNING: /" >&2 mathieu@468: ;; mathieu@468: esac mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_HEADER" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_HEADER... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 mathieu@468: else mathieu@468: eval "$as_ac_Header=\$ac_header_preproc" mathieu@468: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Header'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: mathieu@468: fi mathieu@468: if test `eval echo '${'$as_ac_Header'}'` = yes; then Chris@457: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@457: else mathieu@468: { echo "$as_me:$LINENO: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@457: fi Chris@457: Chris@457: Chris@457: if test -z "$SV_MODULE_FAILED"; then Chris@457: if test -n "$SV_MODULE_LIB"; then mathieu@468: as_ac_Lib=`echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` mathieu@468: { echo "$as_me:$LINENO: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 mathieu@468: echo $ECHO_N "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... $ECHO_C" >&6; } mathieu@468: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then mathieu@468: echo $ECHO_N "(cached) $ECHO_C" >&6 Chris@457: else Chris@457: ac_check_lib_save_LIBS=$LIBS Chris@457: LIBS="-l$SV_MODULE_LIB $LIBS" mathieu@468: cat >conftest.$ac_ext <<_ACEOF mathieu@468: /* confdefs.h. */ mathieu@468: _ACEOF mathieu@468: cat confdefs.h >>conftest.$ac_ext mathieu@468: cat >>conftest.$ac_ext <<_ACEOF Chris@457: /* end confdefs.h. */ Chris@457: Chris@457: /* Override any GCC internal prototype to avoid an error. Chris@457: Use char because int might match the return type of a GCC Chris@457: builtin and then its argument prototype would still apply. */ Chris@457: #ifdef __cplusplus Chris@457: extern "C" Chris@457: #endif Chris@457: char $SV_MODULE_FUNC (); Chris@457: int Chris@457: main () Chris@457: { Chris@457: return $SV_MODULE_FUNC (); Chris@457: ; Chris@457: return 0; Chris@457: } Chris@457: _ACEOF mathieu@468: rm -f conftest.$ac_objext conftest$ac_exeext mathieu@468: if { (ac_try="$ac_link" mathieu@468: case "(($ac_try" in mathieu@468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; mathieu@468: *) ac_try_echo=$ac_try;; mathieu@468: esac mathieu@468: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 mathieu@468: (eval "$ac_link") 2>conftest.er1 mathieu@468: ac_status=$? mathieu@468: grep -v '^ *+' conftest.er1 >conftest.err mathieu@468: rm -f conftest.er1 mathieu@468: cat conftest.err >&5 mathieu@468: echo "$as_me:$LINENO: \$? = $ac_status" >&5 mathieu@468: (exit $ac_status); } && { mathieu@468: test -z "$ac_cxx_werror_flag" || mathieu@468: test ! -s conftest.err mathieu@468: } && test -s conftest$ac_exeext && mathieu@468: $as_test_x conftest$ac_exeext; then Chris@457: eval "$as_ac_Lib=yes" Chris@457: else mathieu@468: echo "$as_me: failed program was:" >&5 mathieu@468: sed 's/^/| /' conftest.$ac_ext >&5 mathieu@468: mathieu@468: eval "$as_ac_Lib=no" mathieu@468: fi mathieu@468: mathieu@468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ mathieu@468: conftest$ac_exeext conftest.$ac_ext Chris@457: LIBS=$ac_check_lib_save_LIBS Chris@457: fi mathieu@468: ac_res=`eval echo '${'$as_ac_Lib'}'` mathieu@468: { echo "$as_me:$LINENO: result: $ac_res" >&5 mathieu@468: echo "${ECHO_T}$ac_res" >&6; } mathieu@468: if test `eval echo '${'$as_ac_Lib'}'` = yes; then Chris@457: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@457: else mathieu@468: { echo "$as_me:$LINENO: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 mathieu@468: echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@350: fi Chris@350: Chris@350: fi Chris@350: fi Chris@350: fi Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@350: Chris@361: Chris@361: Chris@350: ac_config_files="$ac_config_files config.pri" Chris@350: Chris@350: cat >confcache <<\_ACEOF Chris@350: # This file is a shell script that caches the results of configure Chris@350: # tests run on this system so they can be shared between configure Chris@350: # scripts and configure runs, see configure's option --config-cache. Chris@350: # It is not useful on other systems. If it contains results you don't Chris@350: # want to keep, you may remove or edit it. Chris@350: # Chris@350: # config.status only pays attention to the cache file if you give it Chris@350: # the --recheck option to rerun configure. Chris@350: # Chris@350: # `ac_cv_env_foo' variables (set or unset) will be overridden when Chris@350: # loading this file, other *unset* `ac_cv_foo' will be assigned the Chris@350: # following values. Chris@350: Chris@350: _ACEOF Chris@350: Chris@350: # The following way of writing the cache mishandles newlines in values, Chris@350: # but we know of no workaround that is simple, portable, and efficient. Chris@350: # So, we kill variables containing newlines. Chris@350: # Ultrix sh set writes to stderr and can't be redirected directly, Chris@350: # and sets the high bit in the cache file unless we assign to the vars. Chris@350: ( Chris@350: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do Chris@350: eval ac_val=\$$ac_var Chris@350: case $ac_val in #( Chris@350: *${as_nl}*) Chris@350: case $ac_var in #( mathieu@468: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 mathieu@468: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; Chris@350: esac Chris@350: case $ac_var in #( Chris@350: _ | IFS | as_nl) ;; #( mathieu@468: *) $as_unset $ac_var ;; Chris@350: esac ;; Chris@350: esac Chris@350: done Chris@350: Chris@350: (set) 2>&1 | Chris@350: case $as_nl`(ac_space=' '; set) 2>&1` in #( Chris@350: *${as_nl}ac_space=\ *) mathieu@468: # `set' does not quote correctly, so add quotes (double-quote mathieu@468: # substitution turns \\\\ into \\, and sed turns \\ into \). Chris@350: sed -n \ Chris@350: "s/'/'\\\\''/g; Chris@350: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" Chris@350: ;; #( Chris@350: *) Chris@350: # `set' quotes correctly as required by POSIX, so do not add quotes. Chris@350: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@350: ;; Chris@350: esac | Chris@350: sort Chris@350: ) | Chris@350: sed ' Chris@350: /^ac_cv_env_/b end Chris@350: t clear Chris@350: :clear Chris@350: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ Chris@350: t end Chris@350: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ Chris@350: :end' >>confcache Chris@350: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else Chris@350: if test -w "$cache_file"; then Chris@475: test "x$cache_file" != "x/dev/null" && mathieu@468: { echo "$as_me:$LINENO: updating cache $cache_file" >&5 mathieu@468: echo "$as_me: updating cache $cache_file" >&6;} Chris@475: cat confcache >$cache_file Chris@350: else mathieu@468: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 mathieu@468: echo "$as_me: not updating unwritable cache $cache_file" >&6;} Chris@350: fi Chris@350: fi Chris@350: rm -f confcache Chris@350: Chris@350: test "x$prefix" = xNONE && prefix=$ac_default_prefix Chris@350: # Let make expand exec_prefix. Chris@350: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' Chris@350: Chris@350: # Transform confdefs.h into DEFS. Chris@350: # Protect against shell expansion while executing Makefile rules. Chris@350: # Protect against Makefile macro expansion. Chris@350: # Chris@350: # If the first sed substitution is executed (which looks for macros that Chris@350: # take arguments), then branch to the quote section. Otherwise, Chris@350: # look for a macro that doesn't take arguments. Chris@350: ac_script=' Chris@350: t clear Chris@350: :clear Chris@350: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g Chris@350: t quote Chris@350: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g Chris@350: t quote Chris@350: b any Chris@350: :quote Chris@350: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g Chris@350: s/\[/\\&/g Chris@350: s/\]/\\&/g Chris@350: s/\$/$$/g Chris@350: H Chris@350: :any Chris@350: ${ Chris@350: g Chris@350: s/^\n// Chris@350: s/\n/ /g Chris@350: p Chris@350: } Chris@350: ' Chris@350: DEFS=`sed -n "$ac_script" confdefs.h` Chris@350: Chris@350: Chris@350: ac_libobjs= Chris@350: ac_ltlibobjs= Chris@350: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue Chris@350: # 1. Remove the extension, and $U if already installed. Chris@350: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' mathieu@468: ac_i=`echo "$ac_i" | sed "$ac_script"` Chris@350: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR Chris@350: # will be set to the directory where LIBOBJS objects are built. mathieu@468: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" mathieu@468: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' Chris@350: done Chris@350: LIBOBJS=$ac_libobjs Chris@350: Chris@350: LTLIBOBJS=$ac_ltlibobjs Chris@350: Chris@350: Chris@350: Chris@475: : ${CONFIG_STATUS=./config.status} Chris@350: ac_clean_files_save=$ac_clean_files Chris@350: ac_clean_files="$ac_clean_files $CONFIG_STATUS" mathieu@468: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 mathieu@468: echo "$as_me: creating $CONFIG_STATUS" >&6;} mathieu@468: cat >$CONFIG_STATUS <<_ACEOF Chris@350: #! $SHELL Chris@350: # Generated by $as_me. Chris@350: # Run this file to recreate the current configuration. Chris@350: # Compiler output produced by configure, useful for debugging Chris@350: # configure, is in config.log if it exists. Chris@350: Chris@350: debug=false Chris@350: ac_cs_recheck=false Chris@350: ac_cs_silent=false Chris@350: SHELL=\${CONFIG_SHELL-$SHELL} mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: ## --------------------- ## mathieu@468: ## M4sh Initialization. ## mathieu@468: ## --------------------- ## Chris@350: Chris@350: # Be more Bourne compatible Chris@350: DUALCASE=1; export DUALCASE # for MKS sh mathieu@468: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@350: emulate sh Chris@350: NULLCMD=: mathieu@468: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@350: # is contrary to our usage. Disable this feature. Chris@350: alias -g '${1+"$@"}'='"$@"' Chris@350: setopt NO_GLOB_SUBST Chris@350: else mathieu@468: case `(set -o) 2>/dev/null` in mathieu@468: *posix*) set -o posix ;; mathieu@468: esac mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: # PATH needs CR mathieu@468: # Avoid depending upon Character Ranges. mathieu@468: as_cr_letters='abcdefghijklmnopqrstuvwxyz' mathieu@468: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' mathieu@468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS mathieu@468: as_cr_digits='0123456789' mathieu@468: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@350: Chris@350: # The user is always right. Chris@350: if test "${PATH_SEPARATOR+set}" != set; then mathieu@468: echo "#! /bin/sh" >conf$$.sh mathieu@468: echo "exit 0" >>conf$$.sh mathieu@468: chmod +x conf$$.sh mathieu@468: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then mathieu@468: PATH_SEPARATOR=';' mathieu@468: else mathieu@468: PATH_SEPARATOR=: mathieu@468: fi mathieu@468: rm -f conf$$.sh mathieu@468: fi mathieu@468: mathieu@468: # Support unset when possible. mathieu@468: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then mathieu@468: as_unset=unset mathieu@468: else mathieu@468: as_unset=false Chris@350: fi Chris@350: Chris@350: Chris@350: # IFS Chris@350: # We need space, tab and new line, in precisely that order. Quoting is Chris@350: # there to prevent editors from complaining about space-tab. Chris@350: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@350: # splitting by setting IFS to empty value.) mathieu@468: as_nl=' mathieu@468: ' Chris@350: IFS=" "" $as_nl" Chris@350: Chris@350: # Find who we are. Look in the path if we contain no directory separator. mathieu@468: case $0 in Chris@350: *[\\/]* ) as_myself=$0 ;; Chris@350: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@350: for as_dir in $PATH Chris@350: do Chris@350: IFS=$as_save_IFS Chris@350: test -z "$as_dir" && as_dir=. mathieu@468: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break mathieu@468: done Chris@350: IFS=$as_save_IFS Chris@350: Chris@350: ;; Chris@350: esac Chris@350: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@350: # in which case we are not to be found in the path. Chris@350: if test "x$as_myself" = x; then Chris@350: as_myself=$0 Chris@350: fi Chris@350: if test ! -f "$as_myself"; then mathieu@468: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 mathieu@468: { (exit 1); exit 1; } mathieu@468: fi mathieu@468: mathieu@468: # Work around bugs in pre-3.0 UWIN ksh. mathieu@468: for as_var in ENV MAIL MAILPATH mathieu@468: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@350: done Chris@350: PS1='$ ' Chris@350: PS2='> ' Chris@350: PS4='+ ' Chris@350: Chris@350: # NLS nuisances. mathieu@468: for as_var in \ mathieu@468: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ mathieu@468: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ mathieu@468: LC_TELEPHONE LC_TIME mathieu@468: do mathieu@468: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then mathieu@468: eval $as_var=C; export $as_var mathieu@468: else mathieu@468: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@350: fi mathieu@468: done mathieu@468: mathieu@468: # Required to use basename. Chris@350: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@350: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@350: as_expr=expr Chris@350: else Chris@350: as_expr=false Chris@350: fi Chris@350: Chris@350: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@350: as_basename=basename Chris@350: else Chris@350: as_basename=false Chris@350: fi Chris@350: mathieu@468: mathieu@468: # Name of the executable. Chris@350: as_me=`$as_basename -- "$0" || Chris@350: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@350: X"$0" : 'X\(//\)$' \| \ Chris@350: X"$0" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X/"$0" | Chris@350: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\/\(\/\/\)$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\/\(\/\).*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: s/.*/./; q'` Chris@350: mathieu@468: # CDPATH. mathieu@468: $as_unset CDPATH mathieu@468: mathieu@468: mathieu@468: mathieu@468: as_lineno_1=$LINENO mathieu@468: as_lineno_2=$LINENO mathieu@468: test "x$as_lineno_1" != "x$as_lineno_2" && mathieu@468: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { mathieu@468: mathieu@468: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO mathieu@468: # uniformly replaced by the line number. The first 'sed' inserts a mathieu@468: # line-number line after each line using $LINENO; the second 'sed' mathieu@468: # does the real work. The second script uses 'N' to pair each mathieu@468: # line-number line with the line containing $LINENO, and appends mathieu@468: # trailing '-' during substitution so that $LINENO is not a special mathieu@468: # case at line end. mathieu@468: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the mathieu@468: # scripts with optimization help from Paolo Bonzini. Blame Lee mathieu@468: # E. McMahon (1931-1989) for sed's syntax. :-) mathieu@468: sed -n ' mathieu@468: p mathieu@468: /[$]LINENO/= mathieu@468: ' <$as_myself | mathieu@468: sed ' mathieu@468: s/[$]LINENO.*/&-/ mathieu@468: t lineno mathieu@468: b mathieu@468: :lineno mathieu@468: N mathieu@468: :loop mathieu@468: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ mathieu@468: t loop mathieu@468: s/-\n.*// mathieu@468: ' >$as_me.lineno && mathieu@468: chmod +x "$as_me.lineno" || mathieu@468: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: mathieu@468: # Don't try to exec as it changes $[0], causing all sort of problems mathieu@468: # (the dirname of $[0] is not the place where we might find the mathieu@468: # original and so on. Autoconf is especially sensitive to this). mathieu@468: . "./$as_me.lineno" mathieu@468: # Exit status is that of the last command. mathieu@468: exit mathieu@468: } mathieu@468: mathieu@468: mathieu@468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then mathieu@468: as_dirname=dirname mathieu@468: else mathieu@468: as_dirname=false mathieu@468: fi Chris@350: Chris@350: ECHO_C= ECHO_N= ECHO_T= mathieu@468: case `echo -n x` in Chris@350: -n*) mathieu@468: case `echo 'x\c'` in Chris@350: *c*) ECHO_T=' ';; # ECHO_T is single tab character. mathieu@468: *) ECHO_C='\c';; Chris@350: esac;; Chris@350: *) Chris@350: ECHO_N='-n';; Chris@350: esac Chris@350: mathieu@468: if expr a : '\(a\)' >/dev/null 2>&1 && mathieu@468: test "X`expr 00001 : '.*\(...\)'`" = X001; then mathieu@468: as_expr=expr mathieu@468: else mathieu@468: as_expr=false mathieu@468: fi mathieu@468: Chris@350: rm -f conf$$ conf$$.exe conf$$.file Chris@350: if test -d conf$$.dir; then Chris@350: rm -f conf$$.dir/conf$$.file Chris@350: else Chris@350: rm -f conf$$.dir mathieu@468: mkdir conf$$.dir mathieu@468: fi mathieu@468: echo >conf$$.file mathieu@468: if ln -s conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s='ln -s' mathieu@468: # ... but there are two gotchas: mathieu@468: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. mathieu@468: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. mathieu@468: # In both cases, we have to default to `cp -p'. mathieu@468: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@350: as_ln_s='cp -p' mathieu@468: elif ln conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s=ln Chris@350: else Chris@350: as_ln_s='cp -p' Chris@350: fi Chris@350: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@350: rmdir conf$$.dir 2>/dev/null Chris@350: mathieu@468: if mkdir -p . 2>/dev/null; then mathieu@468: as_mkdir_p=: mathieu@468: else mathieu@468: test -d ./-p && rmdir ./-p mathieu@468: as_mkdir_p=false mathieu@468: fi mathieu@468: mathieu@468: if test -x / >/dev/null 2>&1; then mathieu@468: as_test_x='test -x' mathieu@468: else mathieu@468: if ls -dL / >/dev/null 2>&1; then mathieu@468: as_ls_L_option=L mathieu@468: else mathieu@468: as_ls_L_option= mathieu@468: fi mathieu@468: as_test_x=' mathieu@468: eval sh -c '\'' mathieu@468: if test -d "$1"; then mathieu@468: test -d "$1/."; mathieu@468: else mathieu@468: case $1 in mathieu@468: -*)set "./$1";; mathieu@468: esac; mathieu@468: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in mathieu@468: ???[sx]*):;;*)false;;esac;fi mathieu@468: '\'' sh mathieu@468: ' mathieu@468: fi mathieu@468: as_executable_p=$as_test_x mathieu@468: mathieu@468: # Sed expression to map a string onto a valid CPP name. mathieu@468: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" mathieu@468: mathieu@468: # Sed expression to map a string onto a valid variable name. mathieu@468: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" mathieu@468: mathieu@468: mathieu@468: exec 6>&1 mathieu@468: mathieu@468: # Save the log message, to keep $[0] and so on meaningful, and to mathieu@468: # report actual input values of CONFIG_FILES etc. instead of their mathieu@468: # values after options handling. mathieu@468: ac_log=" mathieu@468: This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was mathieu@468: generated by GNU Autoconf 2.61. Invocation command line was mathieu@468: mathieu@468: CONFIG_FILES = $CONFIG_FILES mathieu@468: CONFIG_HEADERS = $CONFIG_HEADERS mathieu@468: CONFIG_LINKS = $CONFIG_LINKS mathieu@468: CONFIG_COMMANDS = $CONFIG_COMMANDS mathieu@468: $ $0 $@ mathieu@468: mathieu@468: on `(hostname || uname -n) 2>/dev/null | sed 1q` mathieu@468: " mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: # Files that config.status was made for. mathieu@468: config_files="$ac_config_files" mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: ac_cs_usage="\ mathieu@468: \`$as_me' instantiates files from templates according to the mathieu@468: current configuration. mathieu@468: mathieu@468: Usage: $0 [OPTIONS] [FILE]... mathieu@468: mathieu@468: -h, --help print this help, then exit mathieu@468: -V, --version print version number and configuration settings, then exit mathieu@468: -q, --quiet do not print progress messages mathieu@468: -d, --debug don't remove temporary files mathieu@468: --recheck update $as_me by reconfiguring in the same conditions mathieu@468: --file=FILE[:TEMPLATE] mathieu@468: instantiate the configuration file FILE mathieu@468: mathieu@468: Configuration files: mathieu@468: $config_files mathieu@468: mathieu@468: Report bugs to ." mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: ac_cs_version="\\ mathieu@468: Sonic Visualiser config.status 1.9-kiosk-hg mathieu@468: configured by $0, generated by GNU Autoconf 2.61, mathieu@468: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" mathieu@468: mathieu@468: Copyright (C) 2006 Free Software Foundation, Inc. mathieu@468: This config.status script is free software; the Free Software Foundation mathieu@468: gives unlimited permission to copy, distribute and modify it." mathieu@468: mathieu@468: ac_pwd='$ac_pwd' mathieu@468: srcdir='$srcdir' mathieu@468: INSTALL='$INSTALL' mathieu@468: MKDIR_P='$MKDIR_P' mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: # If no file are specified by the user, then we need to provide default mathieu@468: # value. By we need to know if files were specified by the user. mathieu@468: ac_need_defaults=: mathieu@468: while test $# != 0 mathieu@468: do mathieu@468: case $1 in mathieu@468: --*=*) mathieu@468: ac_option=`expr "X$1" : 'X\([^=]*\)='` mathieu@468: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` mathieu@468: ac_shift=: mathieu@468: ;; mathieu@468: *) mathieu@468: ac_option=$1 mathieu@468: ac_optarg=$2 mathieu@468: ac_shift=shift mathieu@468: ;; mathieu@468: esac mathieu@468: mathieu@468: case $ac_option in mathieu@468: # Handling of the options. mathieu@468: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) mathieu@468: ac_cs_recheck=: ;; mathieu@468: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) mathieu@468: echo "$ac_cs_version"; exit ;; mathieu@468: --debug | --debu | --deb | --de | --d | -d ) mathieu@468: debug=: ;; mathieu@468: --file | --fil | --fi | --f ) mathieu@468: $ac_shift mathieu@468: CONFIG_FILES="$CONFIG_FILES $ac_optarg" mathieu@468: ac_need_defaults=false;; mathieu@468: --he | --h | --help | --hel | -h ) mathieu@468: echo "$ac_cs_usage"; exit ;; mathieu@468: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ mathieu@468: | -silent | --silent | --silen | --sile | --sil | --si | --s) mathieu@468: ac_cs_silent=: ;; mathieu@468: mathieu@468: # This is an error. mathieu@468: -*) { echo "$as_me: error: unrecognized option: $1 mathieu@468: Try \`$0 --help' for more information." >&2 mathieu@468: { (exit 1); exit 1; }; } ;; mathieu@468: mathieu@468: *) ac_config_targets="$ac_config_targets $1" mathieu@468: ac_need_defaults=false ;; mathieu@468: mathieu@468: esac mathieu@468: shift mathieu@468: done mathieu@468: mathieu@468: ac_configure_extra_args= mathieu@468: mathieu@468: if $ac_cs_silent; then mathieu@468: exec 6>/dev/null mathieu@468: ac_configure_extra_args="$ac_configure_extra_args --silent" mathieu@468: fi mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: if \$ac_cs_recheck; then mathieu@468: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 mathieu@468: CONFIG_SHELL=$SHELL mathieu@468: export CONFIG_SHELL mathieu@468: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion mathieu@468: fi mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: exec 5>>config.log Chris@350: { mathieu@468: echo mathieu@468: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX mathieu@468: ## Running $as_me. ## mathieu@468: _ASBOX mathieu@468: echo "$ac_log" mathieu@468: } >&5 mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: mathieu@468: # Handling of arguments. mathieu@468: for ac_config_target in $ac_config_targets mathieu@468: do mathieu@468: case $ac_config_target in mathieu@468: "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;; mathieu@468: mathieu@468: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 mathieu@468: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: esac mathieu@468: done mathieu@468: mathieu@468: mathieu@468: # If the user did not use the arguments to specify the items to instantiate, mathieu@468: # then the envvar interface is used. Set only those that are not. mathieu@468: # We use the long form for the default assignment because of an extremely mathieu@468: # bizarre bug on SunOS 4.1.3. mathieu@468: if $ac_need_defaults; then mathieu@468: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files mathieu@468: fi mathieu@468: mathieu@468: # Have a temporary directory for convenience. Make it in the build tree mathieu@468: # simply because there is no reason against having it here, and in addition, mathieu@468: # creating and moving files from /tmp can sometimes cause problems. mathieu@468: # Hook for its removal unless debugging. mathieu@468: # Note that there is a small window in which the directory will not be cleaned: mathieu@468: # after its creation but before its name has been assigned to `$tmp'. mathieu@468: $debug || mathieu@468: { mathieu@468: tmp= mathieu@468: trap 'exit_status=$? mathieu@468: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status mathieu@468: ' 0 mathieu@468: trap '{ (exit 1); exit 1; }' 1 2 13 15 mathieu@468: } mathieu@468: # Create a (secure) tmp directory for tmp files. mathieu@468: mathieu@468: { mathieu@468: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && mathieu@468: test -n "$tmp" && test -d "$tmp" mathieu@468: } || mathieu@468: { mathieu@468: tmp=./conf$$-$RANDOM mathieu@468: (umask 077 && mkdir "$tmp") mathieu@468: } || mathieu@468: { mathieu@468: echo "$me: cannot create a temporary directory in ." >&2 mathieu@468: { (exit 1); exit 1; } mathieu@468: } mathieu@468: mathieu@468: # mathieu@468: # Set up the sed scripts for CONFIG_FILES section. mathieu@468: # mathieu@468: mathieu@468: # No need to generate the scripts if there are no CONFIG_FILES. mathieu@468: # This happens for instance when ./config.status config.h mathieu@468: if test -n "$CONFIG_FILES"; then mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: mathieu@468: mathieu@468: ac_delim='%!_!# ' mathieu@468: for ac_last_try in false false false false false :; do mathieu@468: cat >conf$$subs.sed <<_ACEOF mathieu@468: SHELL!$SHELL$ac_delim mathieu@468: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim mathieu@468: PACKAGE_NAME!$PACKAGE_NAME$ac_delim mathieu@468: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim mathieu@468: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim mathieu@468: PACKAGE_STRING!$PACKAGE_STRING$ac_delim mathieu@468: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim mathieu@468: exec_prefix!$exec_prefix$ac_delim mathieu@468: prefix!$prefix$ac_delim mathieu@468: program_transform_name!$program_transform_name$ac_delim mathieu@468: bindir!$bindir$ac_delim mathieu@468: sbindir!$sbindir$ac_delim mathieu@468: libexecdir!$libexecdir$ac_delim mathieu@468: datarootdir!$datarootdir$ac_delim mathieu@468: datadir!$datadir$ac_delim mathieu@468: sysconfdir!$sysconfdir$ac_delim mathieu@468: sharedstatedir!$sharedstatedir$ac_delim mathieu@468: localstatedir!$localstatedir$ac_delim mathieu@468: includedir!$includedir$ac_delim mathieu@468: oldincludedir!$oldincludedir$ac_delim mathieu@468: docdir!$docdir$ac_delim mathieu@468: infodir!$infodir$ac_delim mathieu@468: htmldir!$htmldir$ac_delim mathieu@468: dvidir!$dvidir$ac_delim mathieu@468: pdfdir!$pdfdir$ac_delim mathieu@468: psdir!$psdir$ac_delim mathieu@468: libdir!$libdir$ac_delim mathieu@468: localedir!$localedir$ac_delim mathieu@468: mandir!$mandir$ac_delim mathieu@468: DEFS!$DEFS$ac_delim mathieu@468: ECHO_C!$ECHO_C$ac_delim mathieu@468: ECHO_N!$ECHO_N$ac_delim mathieu@468: ECHO_T!$ECHO_T$ac_delim mathieu@468: LIBS!$LIBS$ac_delim mathieu@468: build_alias!$build_alias$ac_delim mathieu@468: host_alias!$host_alias$ac_delim mathieu@468: target_alias!$target_alias$ac_delim mathieu@468: CC!$CC$ac_delim mathieu@468: CFLAGS!$CFLAGS$ac_delim mathieu@468: LDFLAGS!$LDFLAGS$ac_delim mathieu@468: CPPFLAGS!$CPPFLAGS$ac_delim mathieu@468: ac_ct_CC!$ac_ct_CC$ac_delim mathieu@468: EXEEXT!$EXEEXT$ac_delim mathieu@468: OBJEXT!$OBJEXT$ac_delim mathieu@468: CXX!$CXX$ac_delim mathieu@468: CXXFLAGS!$CXXFLAGS$ac_delim mathieu@468: ac_ct_CXX!$ac_ct_CXX$ac_delim mathieu@468: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim mathieu@468: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim mathieu@468: INSTALL_DATA!$INSTALL_DATA$ac_delim mathieu@468: CXXCPP!$CXXCPP$ac_delim mathieu@468: GREP!$GREP$ac_delim mathieu@468: EGREP!$EGREP$ac_delim mathieu@468: QMAKE!$QMAKE$ac_delim mathieu@468: PERL!$PERL$ac_delim mathieu@468: XARGS!$XARGS$ac_delim mathieu@468: MAKEDEPEND!$MAKEDEPEND$ac_delim mathieu@468: SHA1SUM!$SHA1SUM$ac_delim mathieu@468: CUT!$CUT$ac_delim mathieu@468: CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim mathieu@468: HAVES!$HAVES$ac_delim mathieu@468: QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim mathieu@468: CODENAME!$CODENAME$ac_delim mathieu@468: LIBOBJS!$LIBOBJS$ac_delim mathieu@468: LTLIBOBJS!$LTLIBOBJS$ac_delim mathieu@468: _ACEOF mathieu@468: mathieu@480: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then mathieu@468: break mathieu@468: elif $ac_last_try; then mathieu@468: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 mathieu@468: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: else mathieu@468: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " mathieu@468: fi mathieu@468: done mathieu@468: mathieu@468: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` mathieu@468: if test -n "$ac_eof"; then mathieu@468: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` mathieu@468: ac_eof=`expr $ac_eof + 1` mathieu@468: fi mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@480: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof mathieu@468: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end mathieu@468: _ACEOF mathieu@468: sed ' mathieu@468: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g mathieu@468: s/^/s,@/; s/!/@,|#_!!_#|/ mathieu@468: :n mathieu@468: t n mathieu@468: s/'"$ac_delim"'$/,g/; t mathieu@468: s/$/\\/; p mathieu@468: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n mathieu@468: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF mathieu@468: :end mathieu@468: s/|#_!!_#|//g mathieu@468: CEOF$ac_eof mathieu@468: _ACEOF mathieu@468: mathieu@468: mathieu@468: # VPATH may cause trouble with some makes, so we remove $(srcdir), mathieu@468: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and mathieu@468: # trailing colons and then remove the whole line if VPATH becomes empty mathieu@468: # (actually we leave an empty line to preserve line numbers). mathieu@468: if test "x$srcdir" = x.; then mathieu@468: ac_vpsub='/^[ ]*VPATH[ ]*=/{ mathieu@468: s/:*\$(srcdir):*/:/ mathieu@468: s/:*\${srcdir}:*/:/ mathieu@468: s/:*@srcdir@:*/:/ mathieu@468: s/^\([^=]*=[ ]*\):*/\1/ mathieu@468: s/:*$// mathieu@468: s/^[^=]*=[ ]*$// mathieu@468: }' mathieu@468: fi mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: fi # test -n "$CONFIG_FILES" mathieu@468: mathieu@468: mathieu@468: for ac_tag in :F $CONFIG_FILES mathieu@468: do mathieu@468: case $ac_tag in mathieu@468: :[FHLC]) ac_mode=$ac_tag; continue;; mathieu@468: esac mathieu@468: case $ac_mode$ac_tag in mathieu@468: :[FHL]*:*);; mathieu@468: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 mathieu@468: echo "$as_me: error: Invalid tag $ac_tag." >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: :[FH]-) ac_tag=-:-;; mathieu@468: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; mathieu@468: esac mathieu@468: ac_save_IFS=$IFS mathieu@468: IFS=: mathieu@468: set x $ac_tag mathieu@468: IFS=$ac_save_IFS mathieu@468: shift mathieu@468: ac_file=$1 mathieu@468: shift mathieu@468: mathieu@468: case $ac_mode in mathieu@468: :L) ac_source=$1;; mathieu@468: :[FH]) mathieu@468: ac_file_inputs= mathieu@468: for ac_f mathieu@468: do mathieu@468: case $ac_f in mathieu@468: -) ac_f="$tmp/stdin";; mathieu@468: *) # Look for the file first in the build tree, then in the source tree mathieu@468: # (if the path is not absolute). The absolute path cannot be DOS-style, mathieu@468: # because $ac_f cannot contain `:'. mathieu@468: test -f "$ac_f" || mathieu@468: case $ac_f in mathieu@468: [\\/$]*) false;; mathieu@468: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; mathieu@468: esac || mathieu@468: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 mathieu@468: echo "$as_me: error: cannot find input file: $ac_f" >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: esac mathieu@468: ac_file_inputs="$ac_file_inputs $ac_f" mathieu@468: done mathieu@468: mathieu@468: # Let's still pretend it is `configure' which instantiates (i.e., don't mathieu@468: # use $as_me), people would be surprised to read: mathieu@468: # /* config.h. Generated by config.status. */ mathieu@468: configure_input="Generated from "`IFS=: mathieu@468: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." mathieu@468: if test x"$ac_file" != x-; then mathieu@468: configure_input="$ac_file. $configure_input" mathieu@468: { echo "$as_me:$LINENO: creating $ac_file" >&5 mathieu@468: echo "$as_me: creating $ac_file" >&6;} mathieu@468: fi mathieu@468: mathieu@468: case $ac_tag in mathieu@468: *:-:* | *:-) cat >"$tmp/stdin";; mathieu@468: esac mathieu@468: ;; mathieu@468: esac mathieu@468: mathieu@468: ac_dir=`$as_dirname -- "$ac_file" || mathieu@468: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ mathieu@468: X"$ac_file" : 'X\(//\)[^/]' \| \ mathieu@468: X"$ac_file" : 'X\(//\)$' \| \ mathieu@468: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X"$ac_file" | mathieu@468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\/\)[^/].*/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\/\)$/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\).*/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: s/.*/./; q'` mathieu@468: { as_dir="$ac_dir" Chris@350: case $as_dir in #( Chris@350: -*) as_dir=./$as_dir;; Chris@350: esac mathieu@468: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { Chris@350: as_dirs= Chris@350: while :; do Chris@350: case $as_dir in #( mathieu@468: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( Chris@350: *) as_qdir=$as_dir;; Chris@350: esac Chris@350: as_dirs="'$as_qdir' $as_dirs" Chris@350: as_dir=`$as_dirname -- "$as_dir" || Chris@350: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@350: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@350: X"$as_dir" : 'X\(//\)$' \| \ Chris@350: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X"$as_dir" | Chris@350: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\/\)[^/].*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\/\)$/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: /^X\(\/\).*/{ Chris@350: s//\1/ Chris@350: q Chris@350: } Chris@350: s/.*/./; q'` Chris@350: test -d "$as_dir" && break Chris@350: done Chris@350: test -z "$as_dirs" || eval "mkdir $as_dirs" mathieu@468: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 mathieu@468: echo "$as_me: error: cannot create directory $as_dir" >&2;} mathieu@468: { (exit 1); exit 1; }; }; } Chris@350: ac_builddir=. Chris@350: Chris@350: case "$ac_dir" in Chris@350: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@350: *) mathieu@468: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` Chris@350: # A ".." for each directory in $ac_dir_suffix. mathieu@468: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` Chris@350: case $ac_top_builddir_sub in Chris@350: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@350: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@350: esac ;; Chris@350: esac Chris@350: ac_abs_top_builddir=$ac_pwd Chris@350: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@350: # for backward compatibility: Chris@350: ac_top_builddir=$ac_top_build_prefix Chris@350: Chris@350: case $srcdir in Chris@350: .) # We are building in place. Chris@350: ac_srcdir=. Chris@350: ac_top_srcdir=$ac_top_builddir_sub Chris@350: ac_abs_top_srcdir=$ac_pwd ;; Chris@350: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@350: ac_srcdir=$srcdir$ac_dir_suffix; Chris@350: ac_top_srcdir=$srcdir Chris@350: ac_abs_top_srcdir=$srcdir ;; Chris@350: *) # Relative name. Chris@350: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@350: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@350: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@350: esac Chris@350: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@350: Chris@350: Chris@350: case $ac_mode in Chris@350: :F) Chris@350: # Chris@350: # CONFIG_FILE Chris@350: # Chris@350: Chris@350: case $INSTALL in Chris@350: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; Chris@350: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; Chris@350: esac Chris@350: ac_MKDIR_P=$MKDIR_P Chris@350: case $MKDIR_P in Chris@350: [\\/$]* | ?:[\\/]* ) ;; Chris@350: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; Chris@350: esac Chris@350: _ACEOF Chris@350: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF Chris@350: # If the template does not know about datarootdir, expand it. Chris@350: # FIXME: This hack should be removed a few years after 2.60. Chris@350: ac_datarootdir_hack=; ac_datarootdir_seen= mathieu@468: mathieu@468: case `sed -n '/datarootdir/ { Chris@350: p Chris@350: q Chris@350: } Chris@350: /@datadir@/p Chris@350: /@docdir@/p Chris@350: /@infodir@/p Chris@350: /@localedir@/p mathieu@468: /@mandir@/p mathieu@468: ' $ac_file_inputs` in Chris@350: *datarootdir*) ac_datarootdir_seen=yes;; Chris@350: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) mathieu@468: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 mathieu@468: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF Chris@350: ac_datarootdir_hack=' Chris@350: s&@datadir@&$datadir&g Chris@350: s&@docdir@&$docdir&g Chris@350: s&@infodir@&$infodir&g Chris@350: s&@localedir@&$localedir&g Chris@350: s&@mandir@&$mandir&g mathieu@468: s&\\\${datarootdir}&$datarootdir&g' ;; Chris@350: esac Chris@350: _ACEOF Chris@350: Chris@350: # Neutralize VPATH when `$srcdir' = `.'. Chris@350: # Shell code in configure.ac might set extrasub. Chris@350: # FIXME: do we really want to maintain this feature? mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: sed "$ac_vpsub Chris@350: $extrasub Chris@350: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF Chris@350: :t Chris@350: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b mathieu@468: s&@configure_input@&$configure_input&;t t Chris@350: s&@top_builddir@&$ac_top_builddir_sub&;t t Chris@350: s&@srcdir@&$ac_srcdir&;t t Chris@350: s&@abs_srcdir@&$ac_abs_srcdir&;t t Chris@350: s&@top_srcdir@&$ac_top_srcdir&;t t Chris@350: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t Chris@350: s&@builddir@&$ac_builddir&;t t Chris@350: s&@abs_builddir@&$ac_abs_builddir&;t t Chris@350: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t Chris@350: s&@INSTALL@&$ac_INSTALL&;t t Chris@350: s&@MKDIR_P@&$ac_MKDIR_P&;t t Chris@350: $ac_datarootdir_hack mathieu@480: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out Chris@350: Chris@350: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && Chris@475: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && Chris@475: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && mathieu@468: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' mathieu@468: which seems to be undefined. Please make sure it is defined." >&5 mathieu@468: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' mathieu@468: which seems to be undefined. Please make sure it is defined." >&2;} Chris@350: Chris@475: rm -f "$tmp/stdin" Chris@350: case $ac_file in mathieu@468: -) cat "$tmp/out"; rm -f "$tmp/out";; mathieu@468: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; mathieu@468: esac Chris@350: ;; Chris@350: Chris@350: Chris@350: Chris@350: esac Chris@350: Chris@350: done # for ac_tag Chris@350: Chris@350: mathieu@468: { (exit 0); exit 0; } mathieu@468: _ACEOF mathieu@468: chmod +x $CONFIG_STATUS Chris@350: ac_clean_files=$ac_clean_files_save Chris@350: Chris@350: Chris@350: # configure is writing to config.log, and then calls config.status. Chris@350: # config.status does its own redirection, appending to config.log. Chris@350: # Unfortunately, on DOS this fails, as config.log is still kept open Chris@350: # by configure, so config.status won't be able to write to it; its Chris@350: # output is simply discarded. So we exec the FD to /dev/null, Chris@350: # effectively closing config.log, so it can be properly (re)opened and Chris@350: # appended to by config.status. When coming back to configure, we Chris@350: # need to make the FD available again. Chris@350: if test "$no_create" != yes; then Chris@350: ac_cs_success=: Chris@350: ac_config_status_args= Chris@350: test "$silent" = yes && Chris@350: ac_config_status_args="$ac_config_status_args --quiet" Chris@350: exec 5>/dev/null Chris@350: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false Chris@350: exec 5>>config.log Chris@350: # Use ||, not &&, to avoid exiting from the if with $? = 1, which Chris@350: # would make configure fail if this is the last instruction. mathieu@468: $ac_cs_success || { (exit 1); exit 1; } Chris@350: fi Chris@350: Chris@351: ac_config_files="$ac_config_files version.h" Chris@351: Chris@351: cat >confcache <<\_ACEOF Chris@351: # This file is a shell script that caches the results of configure Chris@351: # tests run on this system so they can be shared between configure Chris@351: # scripts and configure runs, see configure's option --config-cache. Chris@351: # It is not useful on other systems. If it contains results you don't Chris@351: # want to keep, you may remove or edit it. Chris@351: # Chris@351: # config.status only pays attention to the cache file if you give it Chris@351: # the --recheck option to rerun configure. Chris@351: # Chris@351: # `ac_cv_env_foo' variables (set or unset) will be overridden when Chris@351: # loading this file, other *unset* `ac_cv_foo' will be assigned the Chris@351: # following values. Chris@351: Chris@351: _ACEOF Chris@351: Chris@351: # The following way of writing the cache mishandles newlines in values, Chris@351: # but we know of no workaround that is simple, portable, and efficient. Chris@351: # So, we kill variables containing newlines. Chris@351: # Ultrix sh set writes to stderr and can't be redirected directly, Chris@351: # and sets the high bit in the cache file unless we assign to the vars. Chris@351: ( Chris@351: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do Chris@351: eval ac_val=\$$ac_var Chris@351: case $ac_val in #( Chris@351: *${as_nl}*) Chris@351: case $ac_var in #( mathieu@468: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 mathieu@468: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; Chris@351: esac Chris@351: case $ac_var in #( Chris@351: _ | IFS | as_nl) ;; #( mathieu@468: *) $as_unset $ac_var ;; Chris@351: esac ;; Chris@351: esac Chris@351: done Chris@351: Chris@351: (set) 2>&1 | Chris@351: case $as_nl`(ac_space=' '; set) 2>&1` in #( Chris@351: *${as_nl}ac_space=\ *) mathieu@468: # `set' does not quote correctly, so add quotes (double-quote mathieu@468: # substitution turns \\\\ into \\, and sed turns \\ into \). Chris@351: sed -n \ Chris@351: "s/'/'\\\\''/g; Chris@351: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" Chris@351: ;; #( Chris@351: *) Chris@351: # `set' quotes correctly as required by POSIX, so do not add quotes. Chris@351: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@351: ;; Chris@351: esac | Chris@351: sort Chris@351: ) | Chris@351: sed ' Chris@351: /^ac_cv_env_/b end Chris@351: t clear Chris@351: :clear Chris@351: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ Chris@351: t end Chris@351: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ Chris@351: :end' >>confcache Chris@351: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else Chris@351: if test -w "$cache_file"; then Chris@475: test "x$cache_file" != "x/dev/null" && mathieu@468: { echo "$as_me:$LINENO: updating cache $cache_file" >&5 mathieu@468: echo "$as_me: updating cache $cache_file" >&6;} Chris@475: cat confcache >$cache_file Chris@351: else mathieu@468: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 mathieu@468: echo "$as_me: not updating unwritable cache $cache_file" >&6;} Chris@351: fi Chris@351: fi Chris@351: rm -f confcache Chris@351: Chris@351: test "x$prefix" = xNONE && prefix=$ac_default_prefix Chris@351: # Let make expand exec_prefix. Chris@351: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' Chris@351: Chris@351: # Transform confdefs.h into DEFS. Chris@351: # Protect against shell expansion while executing Makefile rules. Chris@351: # Protect against Makefile macro expansion. Chris@351: # Chris@351: # If the first sed substitution is executed (which looks for macros that Chris@351: # take arguments), then branch to the quote section. Otherwise, Chris@351: # look for a macro that doesn't take arguments. Chris@351: ac_script=' Chris@351: t clear Chris@351: :clear Chris@351: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g Chris@351: t quote Chris@351: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g Chris@351: t quote Chris@351: b any Chris@351: :quote Chris@351: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g Chris@351: s/\[/\\&/g Chris@351: s/\]/\\&/g Chris@351: s/\$/$$/g Chris@351: H Chris@351: :any Chris@351: ${ Chris@351: g Chris@351: s/^\n// Chris@351: s/\n/ /g Chris@351: p Chris@351: } Chris@351: ' Chris@351: DEFS=`sed -n "$ac_script" confdefs.h` Chris@351: Chris@351: Chris@351: ac_libobjs= Chris@351: ac_ltlibobjs= Chris@351: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue Chris@351: # 1. Remove the extension, and $U if already installed. Chris@351: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' mathieu@468: ac_i=`echo "$ac_i" | sed "$ac_script"` Chris@351: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR Chris@351: # will be set to the directory where LIBOBJS objects are built. mathieu@468: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" mathieu@468: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' Chris@351: done Chris@351: LIBOBJS=$ac_libobjs Chris@351: Chris@351: LTLIBOBJS=$ac_ltlibobjs Chris@351: Chris@351: Chris@351: Chris@475: : ${CONFIG_STATUS=./config.status} Chris@351: ac_clean_files_save=$ac_clean_files Chris@351: ac_clean_files="$ac_clean_files $CONFIG_STATUS" mathieu@468: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 mathieu@468: echo "$as_me: creating $CONFIG_STATUS" >&6;} mathieu@468: cat >$CONFIG_STATUS <<_ACEOF Chris@351: #! $SHELL Chris@351: # Generated by $as_me. Chris@351: # Run this file to recreate the current configuration. Chris@351: # Compiler output produced by configure, useful for debugging Chris@351: # configure, is in config.log if it exists. Chris@351: Chris@351: debug=false Chris@351: ac_cs_recheck=false Chris@351: ac_cs_silent=false Chris@351: SHELL=\${CONFIG_SHELL-$SHELL} mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: ## --------------------- ## mathieu@468: ## M4sh Initialization. ## mathieu@468: ## --------------------- ## Chris@351: Chris@351: # Be more Bourne compatible Chris@351: DUALCASE=1; export DUALCASE # for MKS sh mathieu@468: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then Chris@351: emulate sh Chris@351: NULLCMD=: mathieu@468: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which Chris@351: # is contrary to our usage. Disable this feature. Chris@351: alias -g '${1+"$@"}'='"$@"' Chris@351: setopt NO_GLOB_SUBST Chris@351: else mathieu@468: case `(set -o) 2>/dev/null` in mathieu@468: *posix*) set -o posix ;; mathieu@468: esac mathieu@468: mathieu@468: fi mathieu@468: mathieu@468: mathieu@468: mathieu@468: mathieu@468: # PATH needs CR mathieu@468: # Avoid depending upon Character Ranges. mathieu@468: as_cr_letters='abcdefghijklmnopqrstuvwxyz' mathieu@468: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' mathieu@468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS mathieu@468: as_cr_digits='0123456789' mathieu@468: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@351: Chris@351: # The user is always right. Chris@351: if test "${PATH_SEPARATOR+set}" != set; then mathieu@468: echo "#! /bin/sh" >conf$$.sh mathieu@468: echo "exit 0" >>conf$$.sh mathieu@468: chmod +x conf$$.sh mathieu@468: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then mathieu@468: PATH_SEPARATOR=';' mathieu@468: else mathieu@468: PATH_SEPARATOR=: mathieu@468: fi mathieu@468: rm -f conf$$.sh mathieu@468: fi mathieu@468: mathieu@468: # Support unset when possible. mathieu@468: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then mathieu@468: as_unset=unset mathieu@468: else mathieu@468: as_unset=false Chris@351: fi Chris@351: Chris@351: Chris@351: # IFS Chris@351: # We need space, tab and new line, in precisely that order. Quoting is Chris@351: # there to prevent editors from complaining about space-tab. Chris@351: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@351: # splitting by setting IFS to empty value.) mathieu@468: as_nl=' mathieu@468: ' Chris@351: IFS=" "" $as_nl" Chris@351: Chris@351: # Find who we are. Look in the path if we contain no directory separator. mathieu@468: case $0 in Chris@351: *[\\/]* ) as_myself=$0 ;; Chris@351: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@351: for as_dir in $PATH Chris@351: do Chris@351: IFS=$as_save_IFS Chris@351: test -z "$as_dir" && as_dir=. mathieu@468: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break mathieu@468: done Chris@351: IFS=$as_save_IFS Chris@351: Chris@351: ;; Chris@351: esac Chris@351: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@351: # in which case we are not to be found in the path. Chris@351: if test "x$as_myself" = x; then Chris@351: as_myself=$0 Chris@351: fi Chris@351: if test ! -f "$as_myself"; then mathieu@468: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 mathieu@468: { (exit 1); exit 1; } mathieu@468: fi mathieu@468: mathieu@468: # Work around bugs in pre-3.0 UWIN ksh. mathieu@468: for as_var in ENV MAIL MAILPATH mathieu@468: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@351: done Chris@351: PS1='$ ' Chris@351: PS2='> ' Chris@351: PS4='+ ' Chris@351: Chris@351: # NLS nuisances. mathieu@468: for as_var in \ mathieu@468: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ mathieu@468: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ mathieu@468: LC_TELEPHONE LC_TIME mathieu@468: do mathieu@468: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then mathieu@468: eval $as_var=C; export $as_var mathieu@468: else mathieu@468: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var Chris@351: fi mathieu@468: done mathieu@468: mathieu@468: # Required to use basename. Chris@351: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@351: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@351: as_expr=expr Chris@351: else Chris@351: as_expr=false Chris@351: fi Chris@351: Chris@351: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@351: as_basename=basename Chris@351: else Chris@351: as_basename=false Chris@351: fi Chris@351: mathieu@468: mathieu@468: # Name of the executable. Chris@351: as_me=`$as_basename -- "$0" || Chris@351: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@351: X"$0" : 'X\(//\)$' \| \ Chris@351: X"$0" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X/"$0" | Chris@351: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: /^X\/\(\/\/\)$/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: /^X\/\(\/\).*/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: s/.*/./; q'` Chris@351: mathieu@468: # CDPATH. mathieu@468: $as_unset CDPATH mathieu@468: mathieu@468: mathieu@468: mathieu@468: as_lineno_1=$LINENO mathieu@468: as_lineno_2=$LINENO mathieu@468: test "x$as_lineno_1" != "x$as_lineno_2" && mathieu@468: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { mathieu@468: mathieu@468: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO mathieu@468: # uniformly replaced by the line number. The first 'sed' inserts a mathieu@468: # line-number line after each line using $LINENO; the second 'sed' mathieu@468: # does the real work. The second script uses 'N' to pair each mathieu@468: # line-number line with the line containing $LINENO, and appends mathieu@468: # trailing '-' during substitution so that $LINENO is not a special mathieu@468: # case at line end. mathieu@468: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the mathieu@468: # scripts with optimization help from Paolo Bonzini. Blame Lee mathieu@468: # E. McMahon (1931-1989) for sed's syntax. :-) mathieu@468: sed -n ' mathieu@468: p mathieu@468: /[$]LINENO/= mathieu@468: ' <$as_myself | mathieu@468: sed ' mathieu@468: s/[$]LINENO.*/&-/ mathieu@468: t lineno mathieu@468: b mathieu@468: :lineno mathieu@468: N mathieu@468: :loop mathieu@468: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ mathieu@468: t loop mathieu@468: s/-\n.*// mathieu@468: ' >$as_me.lineno && mathieu@468: chmod +x "$as_me.lineno" || mathieu@468: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 mathieu@468: { (exit 1); exit 1; }; } mathieu@468: mathieu@468: # Don't try to exec as it changes $[0], causing all sort of problems mathieu@468: # (the dirname of $[0] is not the place where we might find the mathieu@468: # original and so on. Autoconf is especially sensitive to this). mathieu@468: . "./$as_me.lineno" mathieu@468: # Exit status is that of the last command. mathieu@468: exit mathieu@468: } mathieu@468: mathieu@468: mathieu@468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then mathieu@468: as_dirname=dirname mathieu@468: else mathieu@468: as_dirname=false mathieu@468: fi Chris@351: Chris@351: ECHO_C= ECHO_N= ECHO_T= mathieu@468: case `echo -n x` in Chris@351: -n*) mathieu@468: case `echo 'x\c'` in Chris@351: *c*) ECHO_T=' ';; # ECHO_T is single tab character. mathieu@468: *) ECHO_C='\c';; Chris@351: esac;; Chris@351: *) Chris@351: ECHO_N='-n';; Chris@351: esac Chris@351: mathieu@468: if expr a : '\(a\)' >/dev/null 2>&1 && mathieu@468: test "X`expr 00001 : '.*\(...\)'`" = X001; then mathieu@468: as_expr=expr mathieu@468: else mathieu@468: as_expr=false mathieu@468: fi mathieu@468: Chris@351: rm -f conf$$ conf$$.exe conf$$.file Chris@351: if test -d conf$$.dir; then Chris@351: rm -f conf$$.dir/conf$$.file Chris@351: else Chris@351: rm -f conf$$.dir mathieu@468: mkdir conf$$.dir mathieu@468: fi mathieu@468: echo >conf$$.file mathieu@468: if ln -s conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s='ln -s' mathieu@468: # ... but there are two gotchas: mathieu@468: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. mathieu@468: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. mathieu@468: # In both cases, we have to default to `cp -p'. mathieu@468: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@351: as_ln_s='cp -p' mathieu@468: elif ln conf$$.file conf$$ 2>/dev/null; then mathieu@468: as_ln_s=ln Chris@351: else Chris@351: as_ln_s='cp -p' Chris@351: fi Chris@351: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@351: rmdir conf$$.dir 2>/dev/null Chris@351: mathieu@468: if mkdir -p . 2>/dev/null; then mathieu@468: as_mkdir_p=: mathieu@468: else mathieu@468: test -d ./-p && rmdir ./-p mathieu@468: as_mkdir_p=false mathieu@468: fi mathieu@468: mathieu@468: if test -x / >/dev/null 2>&1; then mathieu@468: as_test_x='test -x' mathieu@468: else mathieu@468: if ls -dL / >/dev/null 2>&1; then mathieu@468: as_ls_L_option=L mathieu@468: else mathieu@468: as_ls_L_option= mathieu@468: fi mathieu@468: as_test_x=' mathieu@468: eval sh -c '\'' mathieu@468: if test -d "$1"; then mathieu@468: test -d "$1/."; mathieu@468: else mathieu@468: case $1 in mathieu@468: -*)set "./$1";; mathieu@468: esac; mathieu@468: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in mathieu@468: ???[sx]*):;;*)false;;esac;fi mathieu@468: '\'' sh mathieu@468: ' mathieu@468: fi mathieu@468: as_executable_p=$as_test_x mathieu@468: mathieu@468: # Sed expression to map a string onto a valid CPP name. mathieu@468: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" mathieu@468: mathieu@468: # Sed expression to map a string onto a valid variable name. mathieu@468: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" mathieu@468: mathieu@468: mathieu@468: exec 6>&1 mathieu@468: mathieu@468: # Save the log message, to keep $[0] and so on meaningful, and to mathieu@468: # report actual input values of CONFIG_FILES etc. instead of their mathieu@468: # values after options handling. mathieu@468: ac_log=" mathieu@468: This file was extended by Sonic Visualiser $as_me 1.9-kiosk-hg, which was mathieu@468: generated by GNU Autoconf 2.61. Invocation command line was mathieu@468: mathieu@468: CONFIG_FILES = $CONFIG_FILES mathieu@468: CONFIG_HEADERS = $CONFIG_HEADERS mathieu@468: CONFIG_LINKS = $CONFIG_LINKS mathieu@468: CONFIG_COMMANDS = $CONFIG_COMMANDS mathieu@468: $ $0 $@ mathieu@468: mathieu@468: on `(hostname || uname -n) 2>/dev/null | sed 1q` mathieu@468: " mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: # Files that config.status was made for. mathieu@468: config_files="$ac_config_files" mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: ac_cs_usage="\ mathieu@468: \`$as_me' instantiates files from templates according to the mathieu@468: current configuration. mathieu@468: mathieu@468: Usage: $0 [OPTIONS] [FILE]... mathieu@468: mathieu@468: -h, --help print this help, then exit mathieu@468: -V, --version print version number and configuration settings, then exit mathieu@468: -q, --quiet do not print progress messages mathieu@468: -d, --debug don't remove temporary files mathieu@468: --recheck update $as_me by reconfiguring in the same conditions mathieu@468: --file=FILE[:TEMPLATE] mathieu@468: instantiate the configuration file FILE mathieu@468: mathieu@468: Configuration files: mathieu@468: $config_files mathieu@468: mathieu@468: Report bugs to ." mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: ac_cs_version="\\ mathieu@468: Sonic Visualiser config.status 1.9-kiosk-hg mathieu@468: configured by $0, generated by GNU Autoconf 2.61, mathieu@468: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" mathieu@468: mathieu@468: Copyright (C) 2006 Free Software Foundation, Inc. mathieu@468: This config.status script is free software; the Free Software Foundation mathieu@468: gives unlimited permission to copy, distribute and modify it." mathieu@468: mathieu@468: ac_pwd='$ac_pwd' mathieu@468: srcdir='$srcdir' mathieu@468: INSTALL='$INSTALL' mathieu@468: MKDIR_P='$MKDIR_P' mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: # If no file are specified by the user, then we need to provide default mathieu@468: # value. By we need to know if files were specified by the user. mathieu@468: ac_need_defaults=: mathieu@468: while test $# != 0 mathieu@468: do mathieu@468: case $1 in mathieu@468: --*=*) mathieu@468: ac_option=`expr "X$1" : 'X\([^=]*\)='` mathieu@468: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` mathieu@468: ac_shift=: mathieu@468: ;; mathieu@468: *) mathieu@468: ac_option=$1 mathieu@468: ac_optarg=$2 mathieu@468: ac_shift=shift mathieu@468: ;; mathieu@468: esac mathieu@468: mathieu@468: case $ac_option in mathieu@468: # Handling of the options. mathieu@468: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) mathieu@468: ac_cs_recheck=: ;; mathieu@468: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) mathieu@468: echo "$ac_cs_version"; exit ;; mathieu@468: --debug | --debu | --deb | --de | --d | -d ) mathieu@468: debug=: ;; mathieu@468: --file | --fil | --fi | --f ) mathieu@468: $ac_shift mathieu@468: CONFIG_FILES="$CONFIG_FILES $ac_optarg" mathieu@468: ac_need_defaults=false;; mathieu@468: --he | --h | --help | --hel | -h ) mathieu@468: echo "$ac_cs_usage"; exit ;; mathieu@468: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ mathieu@468: | -silent | --silent | --silen | --sile | --sil | --si | --s) mathieu@468: ac_cs_silent=: ;; mathieu@468: mathieu@468: # This is an error. mathieu@468: -*) { echo "$as_me: error: unrecognized option: $1 mathieu@468: Try \`$0 --help' for more information." >&2 mathieu@468: { (exit 1); exit 1; }; } ;; mathieu@468: mathieu@468: *) ac_config_targets="$ac_config_targets $1" mathieu@468: ac_need_defaults=false ;; mathieu@468: mathieu@468: esac mathieu@468: shift mathieu@468: done mathieu@468: mathieu@468: ac_configure_extra_args= mathieu@468: mathieu@468: if $ac_cs_silent; then mathieu@468: exec 6>/dev/null mathieu@468: ac_configure_extra_args="$ac_configure_extra_args --silent" mathieu@468: fi mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: if \$ac_cs_recheck; then mathieu@468: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 mathieu@468: CONFIG_SHELL=$SHELL mathieu@468: export CONFIG_SHELL mathieu@468: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion mathieu@468: fi mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: exec 5>>config.log Chris@351: { mathieu@468: echo mathieu@468: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX mathieu@468: ## Running $as_me. ## mathieu@468: _ASBOX mathieu@468: echo "$ac_log" mathieu@468: } >&5 mathieu@468: mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: _ACEOF mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: mathieu@468: # Handling of arguments. mathieu@468: for ac_config_target in $ac_config_targets mathieu@468: do mathieu@468: case $ac_config_target in mathieu@468: "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;; mathieu@468: "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;; mathieu@468: mathieu@468: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 mathieu@468: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: esac mathieu@468: done mathieu@468: mathieu@468: mathieu@468: # If the user did not use the arguments to specify the items to instantiate, mathieu@468: # then the envvar interface is used. Set only those that are not. mathieu@468: # We use the long form for the default assignment because of an extremely mathieu@468: # bizarre bug on SunOS 4.1.3. mathieu@468: if $ac_need_defaults; then mathieu@468: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files mathieu@468: fi mathieu@468: mathieu@468: # Have a temporary directory for convenience. Make it in the build tree mathieu@468: # simply because there is no reason against having it here, and in addition, mathieu@468: # creating and moving files from /tmp can sometimes cause problems. mathieu@468: # Hook for its removal unless debugging. mathieu@468: # Note that there is a small window in which the directory will not be cleaned: mathieu@468: # after its creation but before its name has been assigned to `$tmp'. mathieu@468: $debug || mathieu@468: { mathieu@468: tmp= mathieu@468: trap 'exit_status=$? mathieu@468: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status mathieu@468: ' 0 mathieu@468: trap '{ (exit 1); exit 1; }' 1 2 13 15 mathieu@468: } mathieu@468: # Create a (secure) tmp directory for tmp files. mathieu@468: mathieu@468: { mathieu@468: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && mathieu@468: test -n "$tmp" && test -d "$tmp" mathieu@468: } || mathieu@468: { mathieu@468: tmp=./conf$$-$RANDOM mathieu@468: (umask 077 && mkdir "$tmp") mathieu@468: } || mathieu@468: { mathieu@468: echo "$me: cannot create a temporary directory in ." >&2 mathieu@468: { (exit 1); exit 1; } mathieu@468: } mathieu@468: mathieu@468: # mathieu@468: # Set up the sed scripts for CONFIG_FILES section. mathieu@468: # mathieu@468: mathieu@468: # No need to generate the scripts if there are no CONFIG_FILES. mathieu@468: # This happens for instance when ./config.status config.h mathieu@468: if test -n "$CONFIG_FILES"; then mathieu@468: mathieu@468: _ACEOF mathieu@468: mathieu@468: mathieu@468: mathieu@468: ac_delim='%!_!# ' mathieu@468: for ac_last_try in false false false false false :; do mathieu@468: cat >conf$$subs.sed <<_ACEOF mathieu@468: SHELL!$SHELL$ac_delim mathieu@468: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim mathieu@468: PACKAGE_NAME!$PACKAGE_NAME$ac_delim mathieu@468: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim mathieu@468: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim mathieu@468: PACKAGE_STRING!$PACKAGE_STRING$ac_delim mathieu@468: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim mathieu@468: exec_prefix!$exec_prefix$ac_delim mathieu@468: prefix!$prefix$ac_delim mathieu@468: program_transform_name!$program_transform_name$ac_delim mathieu@468: bindir!$bindir$ac_delim mathieu@468: sbindir!$sbindir$ac_delim mathieu@468: libexecdir!$libexecdir$ac_delim mathieu@468: datarootdir!$datarootdir$ac_delim mathieu@468: datadir!$datadir$ac_delim mathieu@468: sysconfdir!$sysconfdir$ac_delim mathieu@468: sharedstatedir!$sharedstatedir$ac_delim mathieu@468: localstatedir!$localstatedir$ac_delim mathieu@468: includedir!$includedir$ac_delim mathieu@468: oldincludedir!$oldincludedir$ac_delim mathieu@468: docdir!$docdir$ac_delim mathieu@468: infodir!$infodir$ac_delim mathieu@468: htmldir!$htmldir$ac_delim mathieu@468: dvidir!$dvidir$ac_delim mathieu@468: pdfdir!$pdfdir$ac_delim mathieu@468: psdir!$psdir$ac_delim mathieu@468: libdir!$libdir$ac_delim mathieu@468: localedir!$localedir$ac_delim mathieu@468: mandir!$mandir$ac_delim mathieu@468: DEFS!$DEFS$ac_delim mathieu@468: ECHO_C!$ECHO_C$ac_delim mathieu@468: ECHO_N!$ECHO_N$ac_delim mathieu@468: ECHO_T!$ECHO_T$ac_delim mathieu@468: LIBS!$LIBS$ac_delim mathieu@468: build_alias!$build_alias$ac_delim mathieu@468: host_alias!$host_alias$ac_delim mathieu@468: target_alias!$target_alias$ac_delim mathieu@468: CC!$CC$ac_delim mathieu@468: CFLAGS!$CFLAGS$ac_delim mathieu@468: LDFLAGS!$LDFLAGS$ac_delim mathieu@468: CPPFLAGS!$CPPFLAGS$ac_delim mathieu@468: ac_ct_CC!$ac_ct_CC$ac_delim mathieu@468: EXEEXT!$EXEEXT$ac_delim mathieu@468: OBJEXT!$OBJEXT$ac_delim mathieu@468: CXX!$CXX$ac_delim mathieu@468: CXXFLAGS!$CXXFLAGS$ac_delim mathieu@468: ac_ct_CXX!$ac_ct_CXX$ac_delim mathieu@468: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim mathieu@468: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim mathieu@468: INSTALL_DATA!$INSTALL_DATA$ac_delim mathieu@468: CXXCPP!$CXXCPP$ac_delim mathieu@468: GREP!$GREP$ac_delim mathieu@468: EGREP!$EGREP$ac_delim mathieu@468: QMAKE!$QMAKE$ac_delim mathieu@468: PERL!$PERL$ac_delim mathieu@468: XARGS!$XARGS$ac_delim mathieu@468: MAKEDEPEND!$MAKEDEPEND$ac_delim mathieu@468: SHA1SUM!$SHA1SUM$ac_delim mathieu@468: CUT!$CUT$ac_delim mathieu@468: CXXFLAGS_MINIMAL!$CXXFLAGS_MINIMAL$ac_delim mathieu@468: HAVES!$HAVES$ac_delim mathieu@468: QMAKE_CONFIG!$QMAKE_CONFIG$ac_delim mathieu@468: CODENAME!$CODENAME$ac_delim mathieu@468: LIBOBJS!$LIBOBJS$ac_delim mathieu@468: LTLIBOBJS!$LTLIBOBJS$ac_delim mathieu@468: _ACEOF mathieu@468: mathieu@480: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then mathieu@468: break mathieu@468: elif $ac_last_try; then mathieu@468: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 mathieu@468: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: else mathieu@468: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " mathieu@468: fi mathieu@468: done mathieu@468: mathieu@468: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` mathieu@468: if test -n "$ac_eof"; then mathieu@468: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` mathieu@468: ac_eof=`expr $ac_eof + 1` mathieu@468: fi mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@480: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof mathieu@468: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end mathieu@468: _ACEOF mathieu@468: sed ' mathieu@468: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g mathieu@468: s/^/s,@/; s/!/@,|#_!!_#|/ mathieu@468: :n mathieu@468: t n mathieu@468: s/'"$ac_delim"'$/,g/; t mathieu@468: s/$/\\/; p mathieu@468: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n mathieu@468: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF mathieu@468: :end mathieu@468: s/|#_!!_#|//g mathieu@468: CEOF$ac_eof mathieu@468: _ACEOF mathieu@468: mathieu@468: mathieu@468: # VPATH may cause trouble with some makes, so we remove $(srcdir), mathieu@468: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and mathieu@468: # trailing colons and then remove the whole line if VPATH becomes empty mathieu@468: # (actually we leave an empty line to preserve line numbers). mathieu@468: if test "x$srcdir" = x.; then mathieu@468: ac_vpsub='/^[ ]*VPATH[ ]*=/{ mathieu@468: s/:*\$(srcdir):*/:/ mathieu@468: s/:*\${srcdir}:*/:/ mathieu@468: s/:*@srcdir@:*/:/ mathieu@468: s/^\([^=]*=[ ]*\):*/\1/ mathieu@468: s/:*$// mathieu@468: s/^[^=]*=[ ]*$// mathieu@468: }' mathieu@468: fi mathieu@468: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF mathieu@468: fi # test -n "$CONFIG_FILES" mathieu@468: mathieu@468: mathieu@468: for ac_tag in :F $CONFIG_FILES mathieu@468: do mathieu@468: case $ac_tag in mathieu@468: :[FHLC]) ac_mode=$ac_tag; continue;; mathieu@468: esac mathieu@468: case $ac_mode$ac_tag in mathieu@468: :[FHL]*:*);; mathieu@468: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 mathieu@468: echo "$as_me: error: Invalid tag $ac_tag." >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: :[FH]-) ac_tag=-:-;; mathieu@468: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; mathieu@468: esac mathieu@468: ac_save_IFS=$IFS mathieu@468: IFS=: mathieu@468: set x $ac_tag mathieu@468: IFS=$ac_save_IFS mathieu@468: shift mathieu@468: ac_file=$1 mathieu@468: shift mathieu@468: mathieu@468: case $ac_mode in mathieu@468: :L) ac_source=$1;; mathieu@468: :[FH]) mathieu@468: ac_file_inputs= mathieu@468: for ac_f mathieu@468: do mathieu@468: case $ac_f in mathieu@468: -) ac_f="$tmp/stdin";; mathieu@468: *) # Look for the file first in the build tree, then in the source tree mathieu@468: # (if the path is not absolute). The absolute path cannot be DOS-style, mathieu@468: # because $ac_f cannot contain `:'. mathieu@468: test -f "$ac_f" || mathieu@468: case $ac_f in mathieu@468: [\\/$]*) false;; mathieu@468: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; mathieu@468: esac || mathieu@468: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 mathieu@468: echo "$as_me: error: cannot find input file: $ac_f" >&2;} mathieu@468: { (exit 1); exit 1; }; };; mathieu@468: esac mathieu@468: ac_file_inputs="$ac_file_inputs $ac_f" mathieu@468: done mathieu@468: mathieu@468: # Let's still pretend it is `configure' which instantiates (i.e., don't mathieu@468: # use $as_me), people would be surprised to read: mathieu@468: # /* config.h. Generated by config.status. */ mathieu@468: configure_input="Generated from "`IFS=: mathieu@468: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." mathieu@468: if test x"$ac_file" != x-; then mathieu@468: configure_input="$ac_file. $configure_input" mathieu@468: { echo "$as_me:$LINENO: creating $ac_file" >&5 mathieu@468: echo "$as_me: creating $ac_file" >&6;} mathieu@468: fi mathieu@468: mathieu@468: case $ac_tag in mathieu@468: *:-:* | *:-) cat >"$tmp/stdin";; mathieu@468: esac mathieu@468: ;; mathieu@468: esac mathieu@468: mathieu@468: ac_dir=`$as_dirname -- "$ac_file" || mathieu@468: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ mathieu@468: X"$ac_file" : 'X\(//\)[^/]' \| \ mathieu@468: X"$ac_file" : 'X\(//\)$' \| \ mathieu@468: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X"$ac_file" | mathieu@468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\/\)[^/].*/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\/\)$/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: /^X\(\/\).*/{ mathieu@468: s//\1/ mathieu@468: q mathieu@468: } mathieu@468: s/.*/./; q'` mathieu@468: { as_dir="$ac_dir" Chris@351: case $as_dir in #( Chris@351: -*) as_dir=./$as_dir;; Chris@351: esac mathieu@468: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { Chris@351: as_dirs= Chris@351: while :; do Chris@351: case $as_dir in #( mathieu@468: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( Chris@351: *) as_qdir=$as_dir;; Chris@351: esac Chris@351: as_dirs="'$as_qdir' $as_dirs" Chris@351: as_dir=`$as_dirname -- "$as_dir" || Chris@351: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@351: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@351: X"$as_dir" : 'X\(//\)$' \| \ Chris@351: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || mathieu@468: echo X"$as_dir" | Chris@351: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: /^X\(\/\/\)[^/].*/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: /^X\(\/\/\)$/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: /^X\(\/\).*/{ Chris@351: s//\1/ Chris@351: q Chris@351: } Chris@351: s/.*/./; q'` Chris@351: test -d "$as_dir" && break Chris@351: done Chris@351: test -z "$as_dirs" || eval "mkdir $as_dirs" mathieu@468: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 mathieu@468: echo "$as_me: error: cannot create directory $as_dir" >&2;} mathieu@468: { (exit 1); exit 1; }; }; } Chris@351: ac_builddir=. Chris@351: Chris@351: case "$ac_dir" in Chris@351: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@351: *) mathieu@468: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` Chris@351: # A ".." for each directory in $ac_dir_suffix. mathieu@468: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` Chris@351: case $ac_top_builddir_sub in Chris@351: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@351: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@351: esac ;; Chris@351: esac Chris@351: ac_abs_top_builddir=$ac_pwd Chris@351: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@351: # for backward compatibility: Chris@351: ac_top_builddir=$ac_top_build_prefix Chris@351: Chris@351: case $srcdir in Chris@351: .) # We are building in place. Chris@351: ac_srcdir=. Chris@351: ac_top_srcdir=$ac_top_builddir_sub Chris@351: ac_abs_top_srcdir=$ac_pwd ;; Chris@351: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@351: ac_srcdir=$srcdir$ac_dir_suffix; Chris@351: ac_top_srcdir=$srcdir Chris@351: ac_abs_top_srcdir=$srcdir ;; Chris@351: *) # Relative name. Chris@351: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@351: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@351: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@351: esac Chris@351: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@351: Chris@351: Chris@351: case $ac_mode in Chris@351: :F) Chris@351: # Chris@351: # CONFIG_FILE Chris@351: # Chris@351: Chris@351: case $INSTALL in Chris@351: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; Chris@351: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; Chris@351: esac Chris@351: ac_MKDIR_P=$MKDIR_P Chris@351: case $MKDIR_P in Chris@351: [\\/$]* | ?:[\\/]* ) ;; Chris@351: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; Chris@351: esac Chris@351: _ACEOF Chris@351: mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF Chris@351: # If the template does not know about datarootdir, expand it. Chris@351: # FIXME: This hack should be removed a few years after 2.60. Chris@351: ac_datarootdir_hack=; ac_datarootdir_seen= mathieu@468: mathieu@468: case `sed -n '/datarootdir/ { Chris@351: p Chris@351: q Chris@351: } Chris@351: /@datadir@/p Chris@351: /@docdir@/p Chris@351: /@infodir@/p Chris@351: /@localedir@/p mathieu@468: /@mandir@/p mathieu@468: ' $ac_file_inputs` in Chris@351: *datarootdir*) ac_datarootdir_seen=yes;; Chris@351: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) mathieu@468: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 mathieu@468: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} mathieu@468: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF Chris@351: ac_datarootdir_hack=' Chris@351: s&@datadir@&$datadir&g Chris@351: s&@docdir@&$docdir&g Chris@351: s&@infodir@&$infodir&g Chris@351: s&@localedir@&$localedir&g Chris@351: s&@mandir@&$mandir&g mathieu@468: s&\\\${datarootdir}&$datarootdir&g' ;; Chris@351: esac Chris@351: _ACEOF Chris@351: Chris@351: # Neutralize VPATH when `$srcdir' = `.'. Chris@351: # Shell code in configure.ac might set extrasub. Chris@351: # FIXME: do we really want to maintain this feature? mathieu@468: cat >>$CONFIG_STATUS <<_ACEOF mathieu@468: sed "$ac_vpsub Chris@351: $extrasub Chris@351: _ACEOF mathieu@468: cat >>$CONFIG_STATUS <<\_ACEOF Chris@351: :t Chris@351: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b mathieu@468: s&@configure_input@&$configure_input&;t t Chris@351: s&@top_builddir@&$ac_top_builddir_sub&;t t Chris@351: s&@srcdir@&$ac_srcdir&;t t Chris@351: s&@abs_srcdir@&$ac_abs_srcdir&;t t Chris@351: s&@top_srcdir@&$ac_top_srcdir&;t t Chris@351: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t Chris@351: s&@builddir@&$ac_builddir&;t t Chris@351: s&@abs_builddir@&$ac_abs_builddir&;t t Chris@351: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t Chris@351: s&@INSTALL@&$ac_INSTALL&;t t Chris@351: s&@MKDIR_P@&$ac_MKDIR_P&;t t Chris@351: $ac_datarootdir_hack mathieu@480: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out Chris@351: Chris@351: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && Chris@475: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && Chris@475: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && mathieu@468: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' mathieu@468: which seems to be undefined. Please make sure it is defined." >&5 mathieu@468: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' mathieu@468: which seems to be undefined. Please make sure it is defined." >&2;} Chris@351: Chris@475: rm -f "$tmp/stdin" Chris@351: case $ac_file in mathieu@468: -) cat "$tmp/out"; rm -f "$tmp/out";; mathieu@468: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; mathieu@468: esac Chris@351: ;; Chris@351: Chris@351: Chris@351: Chris@351: esac Chris@351: Chris@351: done # for ac_tag Chris@351: Chris@351: mathieu@468: { (exit 0); exit 0; } mathieu@468: _ACEOF mathieu@468: chmod +x $CONFIG_STATUS Chris@351: ac_clean_files=$ac_clean_files_save Chris@351: Chris@351: Chris@351: # configure is writing to config.log, and then calls config.status. Chris@351: # config.status does its own redirection, appending to config.log. Chris@351: # Unfortunately, on DOS this fails, as config.log is still kept open Chris@351: # by configure, so config.status won't be able to write to it; its Chris@351: # output is simply discarded. So we exec the FD to /dev/null, Chris@351: # effectively closing config.log, so it can be properly (re)opened and Chris@351: # appended to by config.status. When coming back to configure, we Chris@351: # need to make the FD available again. Chris@351: if test "$no_create" != yes; then Chris@351: ac_cs_success=: Chris@351: ac_config_status_args= Chris@351: test "$silent" = yes && Chris@351: ac_config_status_args="$ac_config_status_args --quiet" Chris@351: exec 5>/dev/null Chris@351: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false Chris@351: exec 5>>config.log Chris@351: # Use ||, not &&, to avoid exiting from the if with $? = 1, which Chris@351: # would make configure fail if this is the last instruction. mathieu@468: $ac_cs_success || { (exit 1); exit 1; } Chris@351: fi Chris@351: Chris@350: Chris@350: if ! $QMAKE -r; then mathieu@468: { { echo "$as_me:$LINENO: error: qmake failed: Command was \"$QMAKE -r\"" >&5 mathieu@468: echo "$as_me: error: qmake failed: Command was \"$QMAKE -r\"" >&2;} mathieu@468: { (exit 1); exit 1; }; } mathieu@468: fi mathieu@468: mathieu@468: { echo "$as_me:$LINENO: Chris@350: Chris@350: Configuration complete. Chris@350: Please check the above messages for any warnings that you Chris@350: might care about, and then run \"make\". Chris@350: Chris@350: The file config.pri contains the configuration settings for Chris@350: qmake. If you want to adjust these by hand, edit config.pri Chris@350: and run \"qmake -r\" again to regenerate the Makefile. Chris@350: " >&5 mathieu@468: echo "$as_me: Chris@350: Chris@350: Configuration complete. Chris@350: Please check the above messages for any warnings that you Chris@350: might care about, and then run \"make\". Chris@350: Chris@350: The file config.pri contains the configuration settings for Chris@350: qmake. If you want to adjust these by hand, edit config.pri Chris@350: and run \"qmake -r\" again to regenerate the Makefile. Chris@350: " >&6;}