msousa@353: #! /bin/sh msousa@353: # Guess values for system-dependent variables and create Makefiles. laurent@375: # Generated by GNU Autoconf 2.68 for matiec 0.1. msousa@353: # msousa@363: # Report bugs to . msousa@353: # msousa@353: # msousa@353: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, laurent@375: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software laurent@375: # Foundation, Inc. msousa@353: # msousa@353: # msousa@353: # This configure script is free software; the Free Software Foundation msousa@353: # gives unlimited permission to copy, distribute and modify it. msousa@353: ## -------------------- ## msousa@353: ## M4sh Initialization. ## msousa@353: ## -------------------- ## msousa@353: msousa@353: # Be more Bourne compatible msousa@353: DUALCASE=1; export DUALCASE # for MKS sh msousa@353: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : msousa@353: emulate sh msousa@353: NULLCMD=: msousa@353: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which msousa@353: # is contrary to our usage. Disable this feature. msousa@353: alias -g '${1+"$@"}'='"$@"' msousa@353: setopt NO_GLOB_SUBST msousa@353: else msousa@353: case `(set -o) 2>/dev/null` in #( msousa@353: *posix*) : msousa@353: set -o posix ;; #( msousa@353: *) : msousa@353: ;; msousa@353: esac msousa@353: fi msousa@353: msousa@353: msousa@353: as_nl=' msousa@353: ' msousa@353: export as_nl msousa@353: # Printing a long string crashes Solaris 7 /usr/bin/printf. msousa@353: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' msousa@353: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo msousa@353: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo msousa@353: # Prefer a ksh shell builtin over an external printf program on Solaris, msousa@353: # but without wasting forks for bash or zsh. msousa@353: if test -z "$BASH_VERSION$ZSH_VERSION" \ msousa@353: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then msousa@353: as_echo='print -r --' msousa@353: as_echo_n='print -rn --' msousa@353: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then msousa@353: as_echo='printf %s\n' msousa@353: as_echo_n='printf %s' msousa@353: else msousa@353: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then msousa@353: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' msousa@353: as_echo_n='/usr/ucb/echo -n' msousa@353: else msousa@353: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' msousa@353: as_echo_n_body='eval msousa@353: arg=$1; msousa@353: case $arg in #( msousa@353: *"$as_nl"*) msousa@353: expr "X$arg" : "X\\(.*\\)$as_nl"; msousa@353: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; msousa@353: esac; msousa@353: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" msousa@353: ' msousa@353: export as_echo_n_body msousa@353: as_echo_n='sh -c $as_echo_n_body as_echo' msousa@353: fi msousa@353: export as_echo_body msousa@353: as_echo='sh -c $as_echo_body as_echo' msousa@353: fi msousa@353: msousa@353: # The user is always right. msousa@353: if test "${PATH_SEPARATOR+set}" != set; then msousa@353: PATH_SEPARATOR=: msousa@353: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { msousa@353: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || msousa@353: PATH_SEPARATOR=';' msousa@353: } msousa@353: fi msousa@353: msousa@353: msousa@353: # IFS msousa@353: # We need space, tab and new line, in precisely that order. Quoting is msousa@353: # there to prevent editors from complaining about space-tab. msousa@353: # (If _AS_PATH_WALK were called with IFS unset, it would disable word msousa@353: # splitting by setting IFS to empty value.) msousa@353: IFS=" "" $as_nl" msousa@353: msousa@353: # Find who we are. Look in the path if we contain no directory separator. laurent@375: as_myself= msousa@353: case $0 in #(( msousa@353: *[\\/]* ) as_myself=$0 ;; msousa@353: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: ;; msousa@353: esac msousa@353: # We did not find ourselves, most probably we were run as `sh COMMAND' msousa@353: # in which case we are not to be found in the path. msousa@353: if test "x$as_myself" = x; then msousa@353: as_myself=$0 msousa@353: fi msousa@353: if test ! -f "$as_myself"; then msousa@353: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 msousa@353: exit 1 msousa@353: fi msousa@353: msousa@353: # Unset variables that we do not need and which cause bugs (e.g. in msousa@353: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" msousa@353: # suppresses any "Segmentation fault" message there. '((' could msousa@353: # trigger a bug in pdksh 5.2.14. msousa@353: for as_var in BASH_ENV ENV MAIL MAILPATH msousa@353: do eval test x\${$as_var+set} = xset \ msousa@353: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : msousa@353: done msousa@353: PS1='$ ' msousa@353: PS2='> ' msousa@353: PS4='+ ' msousa@353: msousa@353: # NLS nuisances. msousa@353: LC_ALL=C msousa@353: export LC_ALL msousa@353: LANGUAGE=C msousa@353: export LANGUAGE msousa@353: msousa@353: # CDPATH. msousa@353: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH msousa@353: msousa@353: if test "x$CONFIG_SHELL" = x; then msousa@353: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : msousa@353: emulate sh msousa@353: NULLCMD=: msousa@353: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which msousa@353: # is contrary to our usage. Disable this feature. msousa@353: alias -g '\${1+\"\$@\"}'='\"\$@\"' msousa@353: setopt NO_GLOB_SUBST msousa@353: else msousa@353: case \`(set -o) 2>/dev/null\` in #( msousa@353: *posix*) : msousa@353: set -o posix ;; #( msousa@353: *) : msousa@353: ;; msousa@353: esac msousa@353: fi msousa@353: " msousa@353: as_required="as_fn_return () { (exit \$1); } msousa@353: as_fn_success () { as_fn_return 0; } msousa@353: as_fn_failure () { as_fn_return 1; } msousa@353: as_fn_ret_success () { return 0; } msousa@353: as_fn_ret_failure () { return 1; } msousa@353: msousa@353: exitcode=0 msousa@353: as_fn_success || { exitcode=1; echo as_fn_success failed.; } msousa@353: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } msousa@353: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } msousa@353: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } msousa@353: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : msousa@353: msousa@353: else msousa@353: exitcode=1; echo positional parameters were not saved. msousa@353: fi msousa@353: test x\$exitcode = x0 || exit 1" msousa@353: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO msousa@353: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO msousa@353: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && msousa@353: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 msousa@353: test \$(( 1 + 1 )) = 2 || exit 1" msousa@353: if (eval "$as_required") 2>/dev/null; then : msousa@353: as_have_required=yes msousa@353: else msousa@353: as_have_required=no msousa@353: fi msousa@353: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : msousa@353: msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: as_found=false msousa@353: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: as_found=: msousa@353: case $as_dir in #( msousa@353: /*) msousa@353: for as_base in sh bash ksh sh5; do msousa@353: # Try only shells that exist, to save several forks. msousa@353: as_shell=$as_dir/$as_base msousa@353: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && msousa@353: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : msousa@353: CONFIG_SHELL=$as_shell as_have_required=yes msousa@353: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : msousa@353: break 2 msousa@353: fi msousa@353: fi msousa@353: done;; msousa@353: esac msousa@353: as_found=false msousa@353: done msousa@353: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && msousa@353: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : msousa@353: CONFIG_SHELL=$SHELL as_have_required=yes msousa@353: fi; } msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: msousa@353: if test "x$CONFIG_SHELL" != x; then : msousa@353: # We cannot yet assume a decent shell, so we have to provide a msousa@353: # neutralization value for shells without unset; and this also msousa@353: # works around shells that cannot unset nonexistent variables. laurent@375: # Preserve -v and -x to the replacement shell. msousa@353: BASH_ENV=/dev/null msousa@353: ENV=/dev/null msousa@353: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV msousa@353: export CONFIG_SHELL laurent@375: case $- in # (((( laurent@375: *v*x* | *x*v* ) as_opts=-vx ;; laurent@375: *v* ) as_opts=-v ;; laurent@375: *x* ) as_opts=-x ;; laurent@375: * ) as_opts= ;; laurent@375: esac laurent@375: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} msousa@353: fi msousa@353: msousa@353: if test x$as_have_required = xno; then : msousa@353: $as_echo "$0: This script requires a shell more modern than all" msousa@353: $as_echo "$0: the shells that I found on your system." msousa@353: if test x${ZSH_VERSION+set} = xset ; then msousa@353: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" msousa@353: $as_echo "$0: be upgraded to zsh 4.3.4 or later." msousa@353: else msousa@363: $as_echo "$0: Please tell bug-autoconf@gnu.org and msousa@fe.up.pt, msousa@363: $0: beremiz-devel@lists.sourceforge.net about your system, msousa@353: $0: including any error possibly output before this msousa@353: $0: message. Then install a modern shell, or manually run msousa@353: $0: the script under such a shell if you do have one." msousa@353: fi msousa@353: exit 1 msousa@353: fi msousa@353: fi msousa@353: fi msousa@353: SHELL=${CONFIG_SHELL-/bin/sh} msousa@353: export SHELL msousa@353: # Unset more variables known to interfere with behavior of common tools. msousa@353: CLICOLOR_FORCE= GREP_OPTIONS= msousa@353: unset CLICOLOR_FORCE GREP_OPTIONS msousa@353: msousa@353: ## --------------------- ## msousa@353: ## M4sh Shell Functions. ## msousa@353: ## --------------------- ## msousa@353: # as_fn_unset VAR msousa@353: # --------------- msousa@353: # Portably unset VAR. msousa@353: as_fn_unset () msousa@353: { msousa@353: { eval $1=; unset $1;} msousa@353: } msousa@353: as_unset=as_fn_unset msousa@353: msousa@353: # as_fn_set_status STATUS msousa@353: # ----------------------- msousa@353: # Set $? to STATUS, without forking. msousa@353: as_fn_set_status () msousa@353: { msousa@353: return $1 msousa@353: } # as_fn_set_status msousa@353: msousa@353: # as_fn_exit STATUS msousa@353: # ----------------- msousa@353: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. msousa@353: as_fn_exit () msousa@353: { msousa@353: set +e msousa@353: as_fn_set_status $1 msousa@353: exit $1 msousa@353: } # as_fn_exit msousa@353: msousa@353: # as_fn_mkdir_p msousa@353: # ------------- msousa@353: # Create "$as_dir" as a directory, including parents if necessary. msousa@353: as_fn_mkdir_p () msousa@353: { msousa@353: msousa@353: case $as_dir in #( msousa@353: -*) as_dir=./$as_dir;; msousa@353: esac msousa@353: test -d "$as_dir" || eval $as_mkdir_p || { msousa@353: as_dirs= msousa@353: while :; do msousa@353: case $as_dir in #( msousa@353: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( msousa@353: *) as_qdir=$as_dir;; msousa@353: esac msousa@353: as_dirs="'$as_qdir' $as_dirs" msousa@353: as_dir=`$as_dirname -- "$as_dir" || msousa@353: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$as_dir" : 'X\(//\)[^/]' \| \ msousa@353: X"$as_dir" : 'X\(//\)$' \| \ msousa@353: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$as_dir" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: test -d "$as_dir" && break msousa@353: done msousa@353: test -z "$as_dirs" || eval "mkdir $as_dirs" laurent@375: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" msousa@353: msousa@353: msousa@353: } # as_fn_mkdir_p msousa@353: # as_fn_append VAR VALUE msousa@353: # ---------------------- msousa@353: # Append the text in VALUE to the end of the definition contained in VAR. Take msousa@353: # advantage of any shell optimizations that allow amortized linear growth over msousa@353: # repeated appends, instead of the typical quadratic growth present in naive msousa@353: # implementations. msousa@353: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : msousa@353: eval 'as_fn_append () msousa@353: { msousa@353: eval $1+=\$2 msousa@353: }' msousa@353: else msousa@353: as_fn_append () msousa@353: { msousa@353: eval $1=\$$1\$2 msousa@353: } msousa@353: fi # as_fn_append msousa@353: msousa@353: # as_fn_arith ARG... msousa@353: # ------------------ msousa@353: # Perform arithmetic evaluation on the ARGs, and store the result in the msousa@353: # global $as_val. Take advantage of shells that can avoid forks. The arguments msousa@353: # must be portable across $(()) and expr. msousa@353: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : msousa@353: eval 'as_fn_arith () msousa@353: { msousa@353: as_val=$(( $* )) msousa@353: }' msousa@353: else msousa@353: as_fn_arith () msousa@353: { msousa@353: as_val=`expr "$@" || test $? -eq 1` msousa@353: } msousa@353: fi # as_fn_arith msousa@353: msousa@353: laurent@375: # as_fn_error STATUS ERROR [LINENO LOG_FD] laurent@375: # ---------------------------------------- msousa@353: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are msousa@353: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the laurent@375: # script with STATUS, using 1 if that was 0. msousa@353: as_fn_error () msousa@353: { laurent@375: as_status=$1; test $as_status -eq 0 && as_status=1 laurent@375: if test "$4"; then laurent@375: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack laurent@375: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 msousa@353: fi laurent@375: $as_echo "$as_me: error: $2" >&2 msousa@353: as_fn_exit $as_status msousa@353: } # as_fn_error msousa@353: msousa@353: if expr a : '\(a\)' >/dev/null 2>&1 && msousa@353: test "X`expr 00001 : '.*\(...\)'`" = X001; then msousa@353: as_expr=expr msousa@353: else msousa@353: as_expr=false msousa@353: fi msousa@353: msousa@353: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then msousa@353: as_basename=basename msousa@353: else msousa@353: as_basename=false msousa@353: fi msousa@353: msousa@353: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then msousa@353: as_dirname=dirname msousa@353: else msousa@353: as_dirname=false msousa@353: fi msousa@353: msousa@353: as_me=`$as_basename -- "$0" || msousa@353: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ msousa@353: X"$0" : 'X\(//\)$' \| \ msousa@353: X"$0" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X/"$0" | msousa@353: sed '/^.*\/\([^/][^/]*\)\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\/\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\/\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: msousa@353: # Avoid depending upon Character Ranges. msousa@353: as_cr_letters='abcdefghijklmnopqrstuvwxyz' msousa@353: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' msousa@353: as_cr_Letters=$as_cr_letters$as_cr_LETTERS msousa@353: as_cr_digits='0123456789' msousa@353: as_cr_alnum=$as_cr_Letters$as_cr_digits msousa@353: msousa@353: msousa@353: as_lineno_1=$LINENO as_lineno_1a=$LINENO msousa@353: as_lineno_2=$LINENO as_lineno_2a=$LINENO msousa@353: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && msousa@353: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { msousa@353: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) msousa@353: sed -n ' msousa@353: p msousa@353: /[$]LINENO/= msousa@353: ' <$as_myself | msousa@353: sed ' msousa@353: s/[$]LINENO.*/&-/ msousa@353: t lineno msousa@353: b msousa@353: :lineno msousa@353: N msousa@353: :loop msousa@353: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ msousa@353: t loop msousa@353: s/-\n.*// msousa@353: ' >$as_me.lineno && msousa@353: chmod +x "$as_me.lineno" || msousa@353: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } msousa@353: msousa@353: # Don't try to exec as it changes $[0], causing all sort of problems msousa@353: # (the dirname of $[0] is not the place where we might find the msousa@353: # original and so on. Autoconf is especially sensitive to this). msousa@353: . "./$as_me.lineno" msousa@353: # Exit status is that of the last command. msousa@353: exit msousa@353: } msousa@353: msousa@353: ECHO_C= ECHO_N= ECHO_T= msousa@353: case `echo -n x` in #((((( msousa@353: -n*) msousa@353: case `echo 'xy\c'` in msousa@353: *c*) ECHO_T=' ';; # ECHO_T is single tab character. msousa@353: xy) ECHO_C='\c';; msousa@353: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null msousa@353: ECHO_T=' ';; msousa@353: esac;; msousa@353: *) msousa@353: ECHO_N='-n';; msousa@353: esac msousa@353: msousa@353: rm -f conf$$ conf$$.exe conf$$.file msousa@353: if test -d conf$$.dir; then msousa@353: rm -f conf$$.dir/conf$$.file msousa@353: else msousa@353: rm -f conf$$.dir msousa@353: mkdir conf$$.dir 2>/dev/null msousa@353: fi msousa@353: if (echo >conf$$.file) 2>/dev/null; then msousa@353: if ln -s conf$$.file conf$$ 2>/dev/null; then msousa@353: as_ln_s='ln -s' msousa@353: # ... but there are two gotchas: msousa@353: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. msousa@353: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. msousa@353: # In both cases, we have to default to `cp -p'. msousa@353: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || msousa@353: as_ln_s='cp -p' msousa@353: elif ln conf$$.file conf$$ 2>/dev/null; then msousa@353: as_ln_s=ln msousa@353: else msousa@353: as_ln_s='cp -p' msousa@353: fi msousa@353: else msousa@353: as_ln_s='cp -p' msousa@353: fi msousa@353: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file msousa@353: rmdir conf$$.dir 2>/dev/null msousa@353: msousa@353: if mkdir -p . 2>/dev/null; then msousa@353: as_mkdir_p='mkdir -p "$as_dir"' msousa@353: else msousa@353: test -d ./-p && rmdir ./-p msousa@353: as_mkdir_p=false msousa@353: fi msousa@353: msousa@353: if test -x / >/dev/null 2>&1; then msousa@353: as_test_x='test -x' msousa@353: else msousa@353: if ls -dL / >/dev/null 2>&1; then msousa@353: as_ls_L_option=L msousa@353: else msousa@353: as_ls_L_option= msousa@353: fi msousa@353: as_test_x=' msousa@353: eval sh -c '\'' msousa@353: if test -d "$1"; then msousa@353: test -d "$1/."; msousa@353: else msousa@353: case $1 in #( msousa@353: -*)set "./$1";; msousa@353: esac; msousa@353: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( msousa@353: ???[sx]*):;;*)false;;esac;fi msousa@353: '\'' sh msousa@353: ' msousa@353: fi msousa@353: as_executable_p=$as_test_x msousa@353: msousa@353: # Sed expression to map a string onto a valid CPP name. msousa@353: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" msousa@353: msousa@353: # Sed expression to map a string onto a valid variable name. msousa@353: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" msousa@353: msousa@353: msousa@353: test -n "$DJDIR" || exec 7<&0 &1 msousa@353: msousa@353: # Name of the host. laurent@375: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, msousa@353: # so uname gets run too. msousa@353: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` msousa@353: msousa@353: # msousa@353: # Initializations. msousa@353: # msousa@353: ac_default_prefix=/usr/local msousa@353: ac_clean_files= msousa@353: ac_config_libobj_dir=. msousa@353: LIBOBJS= msousa@353: cross_compiling=no msousa@353: subdirs= msousa@353: MFLAGS= msousa@353: MAKEFLAGS= msousa@353: msousa@353: # Identity of this package. msousa@353: PACKAGE_NAME='matiec' msousa@353: PACKAGE_TARNAME='matiec' msousa@353: PACKAGE_VERSION='0.1' msousa@353: PACKAGE_STRING='matiec 0.1' msousa@363: PACKAGE_BUGREPORT='msousa@fe.up.pt, beremiz-devel@lists.sourceforge.net' msousa@353: PACKAGE_URL='' msousa@353: msousa@353: # Factoring default headers for most tests. msousa@353: ac_includes_default="\ msousa@353: #include msousa@353: #ifdef HAVE_SYS_TYPES_H msousa@353: # include msousa@353: #endif msousa@353: #ifdef HAVE_SYS_STAT_H msousa@353: # include msousa@353: #endif msousa@353: #ifdef STDC_HEADERS msousa@353: # include msousa@353: # include msousa@353: #else msousa@353: # ifdef HAVE_STDLIB_H msousa@353: # include msousa@353: # endif msousa@353: #endif msousa@353: #ifdef HAVE_STRING_H msousa@353: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H msousa@353: # include msousa@353: # endif msousa@353: # include msousa@353: #endif msousa@353: #ifdef HAVE_STRINGS_H msousa@353: # include msousa@353: #endif msousa@353: #ifdef HAVE_INTTYPES_H msousa@353: # include msousa@353: #endif msousa@353: #ifdef HAVE_STDINT_H msousa@353: # include msousa@353: #endif msousa@353: #ifdef HAVE_UNISTD_H msousa@353: # include msousa@353: #endif" msousa@353: msousa@353: ac_header_list= msousa@353: ac_func_list= msousa@353: ac_subst_vars='am__EXEEXT_FALSE msousa@353: am__EXEEXT_TRUE msousa@353: LTLIBOBJS msousa@353: LIBOBJS msousa@353: EGREP msousa@353: GREP msousa@353: CPP msousa@353: RANLIB msousa@353: LN_S msousa@353: am__fastdepCXX_FALSE msousa@353: am__fastdepCXX_TRUE msousa@353: CXXDEPMODE msousa@353: ac_ct_CXX msousa@353: CXXFLAGS msousa@353: CXX msousa@353: LEXLIB msousa@353: am__fastdepCC_FALSE msousa@353: am__fastdepCC_TRUE msousa@353: CCDEPMODE msousa@353: AMDEPBACKSLASH msousa@353: AMDEP_FALSE msousa@353: AMDEP_TRUE msousa@353: am__quote msousa@353: am__include msousa@353: DEPDIR msousa@353: OBJEXT msousa@353: EXEEXT msousa@353: ac_ct_CC msousa@353: CPPFLAGS msousa@353: LDFLAGS msousa@353: CFLAGS msousa@353: CC msousa@353: LEX_OUTPUT_ROOT msousa@353: LEX msousa@353: YFLAGS msousa@353: YACC msousa@353: am__untar msousa@353: am__tar msousa@353: AMTAR msousa@353: am__leading_dot msousa@353: SET_MAKE msousa@353: AWK msousa@353: mkdir_p msousa@353: MKDIR_P msousa@353: INSTALL_STRIP_PROGRAM msousa@353: STRIP msousa@353: install_sh msousa@353: MAKEINFO msousa@353: AUTOHEADER msousa@353: AUTOMAKE msousa@353: AUTOCONF msousa@353: ACLOCAL msousa@353: VERSION msousa@353: PACKAGE msousa@353: CYGPATH_W msousa@353: am__isrc msousa@353: INSTALL_DATA msousa@353: INSTALL_SCRIPT msousa@353: INSTALL_PROGRAM msousa@353: target_alias msousa@353: host_alias msousa@353: build_alias msousa@353: LIBS msousa@353: ECHO_T msousa@353: ECHO_N msousa@353: ECHO_C msousa@353: DEFS msousa@353: mandir msousa@353: localedir msousa@353: libdir msousa@353: psdir msousa@353: pdfdir msousa@353: dvidir msousa@353: htmldir msousa@353: infodir msousa@353: docdir msousa@353: oldincludedir msousa@353: includedir msousa@353: localstatedir msousa@353: sharedstatedir msousa@353: sysconfdir msousa@353: datadir msousa@353: datarootdir msousa@353: libexecdir msousa@353: sbindir msousa@353: bindir msousa@353: program_transform_name msousa@353: prefix msousa@353: exec_prefix msousa@353: PACKAGE_URL msousa@353: PACKAGE_BUGREPORT msousa@353: PACKAGE_STRING msousa@353: PACKAGE_VERSION msousa@353: PACKAGE_TARNAME msousa@353: PACKAGE_NAME msousa@353: PATH_SEPARATOR msousa@353: SHELL' msousa@353: ac_subst_files='' msousa@353: ac_user_opts=' msousa@353: enable_option_checking msousa@353: enable_dependency_tracking msousa@353: ' msousa@353: ac_precious_vars='build_alias msousa@353: host_alias msousa@353: target_alias msousa@353: YACC msousa@353: YFLAGS msousa@353: CC msousa@353: CFLAGS msousa@353: LDFLAGS msousa@353: LIBS msousa@353: CPPFLAGS msousa@353: CXX msousa@353: CXXFLAGS msousa@353: CCC msousa@353: CPP' msousa@353: msousa@353: msousa@353: # Initialize some variables set by options. msousa@353: ac_init_help= msousa@353: ac_init_version=false msousa@353: ac_unrecognized_opts= msousa@353: ac_unrecognized_sep= msousa@353: # The variables have the same names as the options, with msousa@353: # dashes changed to underlines. msousa@353: cache_file=/dev/null msousa@353: exec_prefix=NONE msousa@353: no_create= msousa@353: no_recursion= msousa@353: prefix=NONE msousa@353: program_prefix=NONE msousa@353: program_suffix=NONE msousa@353: program_transform_name=s,x,x, msousa@353: silent= msousa@353: site= msousa@353: srcdir= msousa@353: verbose= msousa@353: x_includes=NONE msousa@353: x_libraries=NONE msousa@353: msousa@353: # Installation directory options. msousa@353: # These are left unexpanded so users can "make install exec_prefix=/foo" msousa@353: # and all the variables that are supposed to be based on exec_prefix msousa@353: # by default will actually change. msousa@353: # Use braces instead of parens because sh, perl, etc. also accept them. msousa@353: # (The list follows the same order as the GNU Coding Standards.) msousa@353: bindir='${exec_prefix}/bin' msousa@353: sbindir='${exec_prefix}/sbin' msousa@353: libexecdir='${exec_prefix}/libexec' msousa@353: datarootdir='${prefix}/share' msousa@353: datadir='${datarootdir}' msousa@353: sysconfdir='${prefix}/etc' msousa@353: sharedstatedir='${prefix}/com' msousa@353: localstatedir='${prefix}/var' msousa@353: includedir='${prefix}/include' msousa@353: oldincludedir='/usr/include' msousa@353: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' msousa@353: infodir='${datarootdir}/info' msousa@353: htmldir='${docdir}' msousa@353: dvidir='${docdir}' msousa@353: pdfdir='${docdir}' msousa@353: psdir='${docdir}' msousa@353: libdir='${exec_prefix}/lib' msousa@353: localedir='${datarootdir}/locale' msousa@353: mandir='${datarootdir}/man' msousa@353: msousa@353: ac_prev= msousa@353: ac_dashdash= msousa@353: for ac_option msousa@353: do msousa@353: # If the previous option needs an argument, assign it. msousa@353: if test -n "$ac_prev"; then msousa@353: eval $ac_prev=\$ac_option msousa@353: ac_prev= msousa@353: continue msousa@353: fi msousa@353: msousa@353: case $ac_option in laurent@375: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; laurent@375: *=) ac_optarg= ;; laurent@375: *) ac_optarg=yes ;; msousa@353: esac msousa@353: msousa@353: # Accept the important Cygnus configure options, so we can diagnose typos. msousa@353: msousa@353: case $ac_dashdash$ac_option in msousa@353: --) msousa@353: ac_dashdash=yes ;; msousa@353: msousa@353: -bindir | --bindir | --bindi | --bind | --bin | --bi) msousa@353: ac_prev=bindir ;; msousa@353: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) msousa@353: bindir=$ac_optarg ;; msousa@353: msousa@353: -build | --build | --buil | --bui | --bu) msousa@353: ac_prev=build_alias ;; msousa@353: -build=* | --build=* | --buil=* | --bui=* | --bu=*) msousa@353: build_alias=$ac_optarg ;; msousa@353: msousa@353: -cache-file | --cache-file | --cache-fil | --cache-fi \ msousa@353: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) msousa@353: ac_prev=cache_file ;; msousa@353: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ msousa@353: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) msousa@353: cache_file=$ac_optarg ;; msousa@353: msousa@353: --config-cache | -C) msousa@353: cache_file=config.cache ;; msousa@353: msousa@353: -datadir | --datadir | --datadi | --datad) msousa@353: ac_prev=datadir ;; msousa@353: -datadir=* | --datadir=* | --datadi=* | --datad=*) msousa@353: datadir=$ac_optarg ;; msousa@353: msousa@353: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ msousa@353: | --dataroo | --dataro | --datar) msousa@353: ac_prev=datarootdir ;; msousa@353: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ msousa@353: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) msousa@353: datarootdir=$ac_optarg ;; msousa@353: msousa@353: -disable-* | --disable-*) msousa@353: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` msousa@353: # Reject names that are not valid shell variable names. msousa@353: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && laurent@375: as_fn_error $? "invalid feature name: $ac_useropt" msousa@353: ac_useropt_orig=$ac_useropt msousa@353: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` msousa@353: case $ac_user_opts in msousa@353: *" msousa@353: "enable_$ac_useropt" msousa@353: "*) ;; msousa@353: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" msousa@353: ac_unrecognized_sep=', ';; msousa@353: esac msousa@353: eval enable_$ac_useropt=no ;; msousa@353: msousa@353: -docdir | --docdir | --docdi | --doc | --do) msousa@353: ac_prev=docdir ;; msousa@353: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) msousa@353: docdir=$ac_optarg ;; msousa@353: msousa@353: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) msousa@353: ac_prev=dvidir ;; msousa@353: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) msousa@353: dvidir=$ac_optarg ;; msousa@353: msousa@353: -enable-* | --enable-*) msousa@353: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` msousa@353: # Reject names that are not valid shell variable names. msousa@353: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && laurent@375: as_fn_error $? "invalid feature name: $ac_useropt" msousa@353: ac_useropt_orig=$ac_useropt msousa@353: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` msousa@353: case $ac_user_opts in msousa@353: *" msousa@353: "enable_$ac_useropt" msousa@353: "*) ;; msousa@353: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" msousa@353: ac_unrecognized_sep=', ';; msousa@353: esac msousa@353: eval enable_$ac_useropt=\$ac_optarg ;; msousa@353: msousa@353: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ msousa@353: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ msousa@353: | --exec | --exe | --ex) msousa@353: ac_prev=exec_prefix ;; msousa@353: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ msousa@353: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ msousa@353: | --exec=* | --exe=* | --ex=*) msousa@353: exec_prefix=$ac_optarg ;; msousa@353: msousa@353: -gas | --gas | --ga | --g) msousa@353: # Obsolete; use --with-gas. msousa@353: with_gas=yes ;; msousa@353: msousa@353: -help | --help | --hel | --he | -h) msousa@353: ac_init_help=long ;; msousa@353: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) msousa@353: ac_init_help=recursive ;; msousa@353: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) msousa@353: ac_init_help=short ;; msousa@353: msousa@353: -host | --host | --hos | --ho) msousa@353: ac_prev=host_alias ;; msousa@353: -host=* | --host=* | --hos=* | --ho=*) msousa@353: host_alias=$ac_optarg ;; msousa@353: msousa@353: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) msousa@353: ac_prev=htmldir ;; msousa@353: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ msousa@353: | --ht=*) msousa@353: htmldir=$ac_optarg ;; msousa@353: msousa@353: -includedir | --includedir | --includedi | --included | --include \ msousa@353: | --includ | --inclu | --incl | --inc) msousa@353: ac_prev=includedir ;; msousa@353: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ msousa@353: | --includ=* | --inclu=* | --incl=* | --inc=*) msousa@353: includedir=$ac_optarg ;; msousa@353: msousa@353: -infodir | --infodir | --infodi | --infod | --info | --inf) msousa@353: ac_prev=infodir ;; msousa@353: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) msousa@353: infodir=$ac_optarg ;; msousa@353: msousa@353: -libdir | --libdir | --libdi | --libd) msousa@353: ac_prev=libdir ;; msousa@353: -libdir=* | --libdir=* | --libdi=* | --libd=*) msousa@353: libdir=$ac_optarg ;; msousa@353: msousa@353: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ msousa@353: | --libexe | --libex | --libe) msousa@353: ac_prev=libexecdir ;; msousa@353: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ msousa@353: | --libexe=* | --libex=* | --libe=*) msousa@353: libexecdir=$ac_optarg ;; msousa@353: msousa@353: -localedir | --localedir | --localedi | --localed | --locale) msousa@353: ac_prev=localedir ;; msousa@353: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) msousa@353: localedir=$ac_optarg ;; msousa@353: msousa@353: -localstatedir | --localstatedir | --localstatedi | --localstated \ msousa@353: | --localstate | --localstat | --localsta | --localst | --locals) msousa@353: ac_prev=localstatedir ;; msousa@353: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ msousa@353: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) msousa@353: localstatedir=$ac_optarg ;; msousa@353: msousa@353: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) msousa@353: ac_prev=mandir ;; msousa@353: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) msousa@353: mandir=$ac_optarg ;; msousa@353: msousa@353: -nfp | --nfp | --nf) msousa@353: # Obsolete; use --without-fp. msousa@353: with_fp=no ;; msousa@353: msousa@353: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ msousa@353: | --no-cr | --no-c | -n) msousa@353: no_create=yes ;; msousa@353: msousa@353: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ msousa@353: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) msousa@353: no_recursion=yes ;; msousa@353: msousa@353: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ msousa@353: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ msousa@353: | --oldin | --oldi | --old | --ol | --o) msousa@353: ac_prev=oldincludedir ;; msousa@353: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ msousa@353: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ msousa@353: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) msousa@353: oldincludedir=$ac_optarg ;; msousa@353: msousa@353: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) msousa@353: ac_prev=prefix ;; msousa@353: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) msousa@353: prefix=$ac_optarg ;; msousa@353: msousa@353: -program-prefix | --program-prefix | --program-prefi | --program-pref \ msousa@353: | --program-pre | --program-pr | --program-p) msousa@353: ac_prev=program_prefix ;; msousa@353: -program-prefix=* | --program-prefix=* | --program-prefi=* \ msousa@353: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) msousa@353: program_prefix=$ac_optarg ;; msousa@353: msousa@353: -program-suffix | --program-suffix | --program-suffi | --program-suff \ msousa@353: | --program-suf | --program-su | --program-s) msousa@353: ac_prev=program_suffix ;; msousa@353: -program-suffix=* | --program-suffix=* | --program-suffi=* \ msousa@353: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) msousa@353: program_suffix=$ac_optarg ;; msousa@353: msousa@353: -program-transform-name | --program-transform-name \ msousa@353: | --program-transform-nam | --program-transform-na \ msousa@353: | --program-transform-n | --program-transform- \ msousa@353: | --program-transform | --program-transfor \ msousa@353: | --program-transfo | --program-transf \ msousa@353: | --program-trans | --program-tran \ msousa@353: | --progr-tra | --program-tr | --program-t) msousa@353: ac_prev=program_transform_name ;; msousa@353: -program-transform-name=* | --program-transform-name=* \ msousa@353: | --program-transform-nam=* | --program-transform-na=* \ msousa@353: | --program-transform-n=* | --program-transform-=* \ msousa@353: | --program-transform=* | --program-transfor=* \ msousa@353: | --program-transfo=* | --program-transf=* \ msousa@353: | --program-trans=* | --program-tran=* \ msousa@353: | --progr-tra=* | --program-tr=* | --program-t=*) msousa@353: program_transform_name=$ac_optarg ;; msousa@353: msousa@353: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) msousa@353: ac_prev=pdfdir ;; msousa@353: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) msousa@353: pdfdir=$ac_optarg ;; msousa@353: msousa@353: -psdir | --psdir | --psdi | --psd | --ps) msousa@353: ac_prev=psdir ;; msousa@353: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) msousa@353: psdir=$ac_optarg ;; msousa@353: msousa@353: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ msousa@353: | -silent | --silent | --silen | --sile | --sil) msousa@353: silent=yes ;; msousa@353: msousa@353: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) msousa@353: ac_prev=sbindir ;; msousa@353: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ msousa@353: | --sbi=* | --sb=*) msousa@353: sbindir=$ac_optarg ;; msousa@353: msousa@353: -sharedstatedir | --sharedstatedir | --sharedstatedi \ msousa@353: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ msousa@353: | --sharedst | --shareds | --shared | --share | --shar \ msousa@353: | --sha | --sh) msousa@353: ac_prev=sharedstatedir ;; msousa@353: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ msousa@353: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ msousa@353: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ msousa@353: | --sha=* | --sh=*) msousa@353: sharedstatedir=$ac_optarg ;; msousa@353: msousa@353: -site | --site | --sit) msousa@353: ac_prev=site ;; msousa@353: -site=* | --site=* | --sit=*) msousa@353: site=$ac_optarg ;; msousa@353: msousa@353: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) msousa@353: ac_prev=srcdir ;; msousa@353: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) msousa@353: srcdir=$ac_optarg ;; msousa@353: msousa@353: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ msousa@353: | --syscon | --sysco | --sysc | --sys | --sy) msousa@353: ac_prev=sysconfdir ;; msousa@353: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ msousa@353: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) msousa@353: sysconfdir=$ac_optarg ;; msousa@353: msousa@353: -target | --target | --targe | --targ | --tar | --ta | --t) msousa@353: ac_prev=target_alias ;; msousa@353: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) msousa@353: target_alias=$ac_optarg ;; msousa@353: msousa@353: -v | -verbose | --verbose | --verbos | --verbo | --verb) msousa@353: verbose=yes ;; msousa@353: msousa@353: -version | --version | --versio | --versi | --vers | -V) msousa@353: ac_init_version=: ;; msousa@353: msousa@353: -with-* | --with-*) msousa@353: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` msousa@353: # Reject names that are not valid shell variable names. msousa@353: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && laurent@375: as_fn_error $? "invalid package name: $ac_useropt" msousa@353: ac_useropt_orig=$ac_useropt msousa@353: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` msousa@353: case $ac_user_opts in msousa@353: *" msousa@353: "with_$ac_useropt" msousa@353: "*) ;; msousa@353: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" msousa@353: ac_unrecognized_sep=', ';; msousa@353: esac msousa@353: eval with_$ac_useropt=\$ac_optarg ;; msousa@353: msousa@353: -without-* | --without-*) msousa@353: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` msousa@353: # Reject names that are not valid shell variable names. msousa@353: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && laurent@375: as_fn_error $? "invalid package name: $ac_useropt" msousa@353: ac_useropt_orig=$ac_useropt msousa@353: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` msousa@353: case $ac_user_opts in msousa@353: *" msousa@353: "with_$ac_useropt" msousa@353: "*) ;; msousa@353: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" msousa@353: ac_unrecognized_sep=', ';; msousa@353: esac msousa@353: eval with_$ac_useropt=no ;; msousa@353: msousa@353: --x) msousa@353: # Obsolete; use --with-x. msousa@353: with_x=yes ;; msousa@353: msousa@353: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ msousa@353: | --x-incl | --x-inc | --x-in | --x-i) msousa@353: ac_prev=x_includes ;; msousa@353: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ msousa@353: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) msousa@353: x_includes=$ac_optarg ;; msousa@353: msousa@353: -x-libraries | --x-libraries | --x-librarie | --x-librari \ msousa@353: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) msousa@353: ac_prev=x_libraries ;; msousa@353: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ msousa@353: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) msousa@353: x_libraries=$ac_optarg ;; msousa@353: laurent@375: -*) as_fn_error $? "unrecognized option: \`$ac_option' laurent@375: Try \`$0 --help' for more information" msousa@353: ;; msousa@353: msousa@353: *=*) msousa@353: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` msousa@353: # Reject names that are not valid shell variable names. msousa@353: case $ac_envvar in #( msousa@353: '' | [0-9]* | *[!_$as_cr_alnum]* ) laurent@375: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; msousa@353: esac msousa@353: eval $ac_envvar=\$ac_optarg msousa@353: export $ac_envvar ;; msousa@353: msousa@353: *) msousa@353: # FIXME: should be removed in autoconf 3.0. msousa@353: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 msousa@353: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && msousa@353: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 laurent@375: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" msousa@353: ;; msousa@353: msousa@353: esac msousa@353: done msousa@353: msousa@353: if test -n "$ac_prev"; then msousa@353: ac_option=--`echo $ac_prev | sed 's/_/-/g'` laurent@375: as_fn_error $? "missing argument to $ac_option" msousa@353: fi msousa@353: msousa@353: if test -n "$ac_unrecognized_opts"; then msousa@353: case $enable_option_checking in msousa@353: no) ;; laurent@375: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; msousa@353: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; msousa@353: esac msousa@353: fi msousa@353: msousa@353: # Check all directory arguments for consistency. msousa@353: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ msousa@353: datadir sysconfdir sharedstatedir localstatedir includedir \ msousa@353: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ msousa@353: libdir localedir mandir msousa@353: do msousa@353: eval ac_val=\$$ac_var msousa@353: # Remove trailing slashes. msousa@353: case $ac_val in msousa@353: */ ) msousa@353: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` msousa@353: eval $ac_var=\$ac_val;; msousa@353: esac msousa@353: # Be sure to have absolute directory names. msousa@353: case $ac_val in msousa@353: [\\/$]* | ?:[\\/]* ) continue;; msousa@353: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; msousa@353: esac laurent@375: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" msousa@353: done msousa@353: msousa@353: # There might be people who depend on the old broken behavior: `$host' msousa@353: # used to hold the argument of --host etc. msousa@353: # FIXME: To remove some day. msousa@353: build=$build_alias msousa@353: host=$host_alias msousa@353: target=$target_alias msousa@353: msousa@353: # FIXME: To remove some day. msousa@353: if test "x$host_alias" != x; then msousa@353: if test "x$build_alias" = x; then msousa@353: cross_compiling=maybe laurent@375: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. laurent@375: If a cross compiler is detected then cross compile mode will be used" >&2 msousa@353: elif test "x$build_alias" != "x$host_alias"; then msousa@353: cross_compiling=yes msousa@353: fi msousa@353: fi msousa@353: msousa@353: ac_tool_prefix= msousa@353: test -n "$host_alias" && ac_tool_prefix=$host_alias- msousa@353: msousa@353: test "$silent" = yes && exec 6>/dev/null msousa@353: msousa@353: msousa@353: ac_pwd=`pwd` && test -n "$ac_pwd" && msousa@353: ac_ls_di=`ls -di .` && msousa@353: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || laurent@375: as_fn_error $? "working directory cannot be determined" msousa@353: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || laurent@375: as_fn_error $? "pwd does not report name of working directory" msousa@353: msousa@353: msousa@353: # Find the source files, if location was not specified. msousa@353: if test -z "$srcdir"; then msousa@353: ac_srcdir_defaulted=yes msousa@353: # Try the directory containing this script, then the parent directory. msousa@353: ac_confdir=`$as_dirname -- "$as_myself" || msousa@353: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$as_myself" : 'X\(//\)[^/]' \| \ msousa@353: X"$as_myself" : 'X\(//\)$' \| \ msousa@353: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$as_myself" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: srcdir=$ac_confdir msousa@353: if test ! -r "$srcdir/$ac_unique_file"; then msousa@353: srcdir=.. msousa@353: fi msousa@353: else msousa@353: ac_srcdir_defaulted=no msousa@353: fi msousa@353: if test ! -r "$srcdir/$ac_unique_file"; then msousa@353: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." laurent@375: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" msousa@353: fi msousa@353: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" msousa@353: ac_abs_confdir=`( laurent@375: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" msousa@353: pwd)` msousa@353: # When building in place, set srcdir=. msousa@353: if test "$ac_abs_confdir" = "$ac_pwd"; then msousa@353: srcdir=. msousa@353: fi msousa@353: # Remove unnecessary trailing slashes from srcdir. msousa@353: # Double slashes in file names in object file debugging info msousa@353: # mess up M-x gdb in Emacs. msousa@353: case $srcdir in msousa@353: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; msousa@353: esac msousa@353: for ac_var in $ac_precious_vars; do msousa@353: eval ac_env_${ac_var}_set=\${${ac_var}+set} msousa@353: eval ac_env_${ac_var}_value=\$${ac_var} msousa@353: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} msousa@353: eval ac_cv_env_${ac_var}_value=\$${ac_var} msousa@353: done msousa@353: msousa@353: # msousa@353: # Report the --help message. msousa@353: # msousa@353: if test "$ac_init_help" = "long"; then msousa@353: # Omit some internal or obsolete options to make the list less imposing. msousa@353: # This message is too long to be a string in the A/UX 3.1 sh. msousa@353: cat <<_ACEOF msousa@353: \`configure' configures matiec 0.1 to adapt to many kinds of systems. msousa@353: msousa@353: Usage: $0 [OPTION]... [VAR=VALUE]... msousa@353: msousa@353: To assign environment variables (e.g., CC, CFLAGS...), specify them as msousa@353: VAR=VALUE. See below for descriptions of some of the useful variables. msousa@353: msousa@353: Defaults for the options are specified in brackets. msousa@353: msousa@353: Configuration: msousa@353: -h, --help display this help and exit msousa@353: --help=short display options specific to this package msousa@353: --help=recursive display the short help of all the included packages msousa@353: -V, --version display version information and exit laurent@375: -q, --quiet, --silent do not print \`checking ...' messages msousa@353: --cache-file=FILE cache test results in FILE [disabled] msousa@353: -C, --config-cache alias for \`--cache-file=config.cache' msousa@353: -n, --no-create do not create output files msousa@353: --srcdir=DIR find the sources in DIR [configure dir or \`..'] msousa@353: msousa@353: Installation directories: msousa@353: --prefix=PREFIX install architecture-independent files in PREFIX msousa@353: [$ac_default_prefix] msousa@353: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX msousa@353: [PREFIX] msousa@353: msousa@353: By default, \`make install' will install all the files in msousa@353: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify msousa@353: an installation prefix other than \`$ac_default_prefix' using \`--prefix', msousa@353: for instance \`--prefix=\$HOME'. msousa@353: msousa@353: For better control, use the options below. msousa@353: msousa@353: Fine tuning of the installation directories: msousa@353: --bindir=DIR user executables [EPREFIX/bin] msousa@353: --sbindir=DIR system admin executables [EPREFIX/sbin] msousa@353: --libexecdir=DIR program executables [EPREFIX/libexec] msousa@353: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] msousa@353: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] msousa@353: --localstatedir=DIR modifiable single-machine data [PREFIX/var] msousa@353: --libdir=DIR object code libraries [EPREFIX/lib] msousa@353: --includedir=DIR C header files [PREFIX/include] msousa@353: --oldincludedir=DIR C header files for non-gcc [/usr/include] msousa@353: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] msousa@353: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] msousa@353: --infodir=DIR info documentation [DATAROOTDIR/info] msousa@353: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] msousa@353: --mandir=DIR man documentation [DATAROOTDIR/man] msousa@353: --docdir=DIR documentation root [DATAROOTDIR/doc/matiec] msousa@353: --htmldir=DIR html documentation [DOCDIR] msousa@353: --dvidir=DIR dvi documentation [DOCDIR] msousa@353: --pdfdir=DIR pdf documentation [DOCDIR] msousa@353: --psdir=DIR ps documentation [DOCDIR] msousa@353: _ACEOF msousa@353: msousa@353: cat <<\_ACEOF msousa@353: msousa@353: Program names: msousa@353: --program-prefix=PREFIX prepend PREFIX to installed program names msousa@353: --program-suffix=SUFFIX append SUFFIX to installed program names msousa@353: --program-transform-name=PROGRAM run sed PROGRAM on installed program names msousa@353: _ACEOF msousa@353: fi msousa@353: msousa@353: if test -n "$ac_init_help"; then msousa@353: case $ac_init_help in msousa@353: short | recursive ) echo "Configuration of matiec 0.1:";; msousa@353: esac msousa@353: cat <<\_ACEOF msousa@353: msousa@353: Optional Features: msousa@353: --disable-option-checking ignore unrecognized --enable/--with options msousa@353: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) msousa@353: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] msousa@353: --disable-dependency-tracking speeds up one-time build msousa@353: --enable-dependency-tracking do not reject slow dependency extractors msousa@353: msousa@353: Some influential environment variables: laurent@375: YACC The `Yet Another Compiler Compiler' implementation to use. laurent@375: Defaults to the first program found out of: `bison -y', `byacc', laurent@375: `yacc'. msousa@353: YFLAGS The list of arguments that will be passed by default to $YACC. msousa@353: This script will default YFLAGS to the empty string to avoid a msousa@353: default value of `-d' given by some make applications. msousa@353: CC C compiler command msousa@353: CFLAGS C compiler flags msousa@353: LDFLAGS linker flags, e.g. -L if you have libraries in a msousa@353: nonstandard directory msousa@353: LIBS libraries to pass to the linker, e.g. -l msousa@353: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if msousa@353: you have headers in a nonstandard directory msousa@353: CXX C++ compiler command msousa@353: CXXFLAGS C++ compiler flags msousa@353: CPP C preprocessor msousa@353: msousa@353: Use these variables to override the choices made by `configure' or to help msousa@353: it to find libraries and programs with nonstandard names/locations. msousa@353: msousa@363: Report bugs to . msousa@353: _ACEOF msousa@353: ac_status=$? msousa@353: fi msousa@353: msousa@353: if test "$ac_init_help" = "recursive"; then msousa@353: # If there are subdirs, report their specific --help. msousa@353: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue msousa@353: test -d "$ac_dir" || msousa@353: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || msousa@353: continue msousa@353: ac_builddir=. msousa@353: msousa@353: case "$ac_dir" in msousa@353: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; msousa@353: *) msousa@353: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` msousa@353: # A ".." for each directory in $ac_dir_suffix. msousa@353: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` msousa@353: case $ac_top_builddir_sub in msousa@353: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; msousa@353: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; msousa@353: esac ;; msousa@353: esac msousa@353: ac_abs_top_builddir=$ac_pwd msousa@353: ac_abs_builddir=$ac_pwd$ac_dir_suffix msousa@353: # for backward compatibility: msousa@353: ac_top_builddir=$ac_top_build_prefix msousa@353: msousa@353: case $srcdir in msousa@353: .) # We are building in place. msousa@353: ac_srcdir=. msousa@353: ac_top_srcdir=$ac_top_builddir_sub msousa@353: ac_abs_top_srcdir=$ac_pwd ;; msousa@353: [\\/]* | ?:[\\/]* ) # Absolute name. msousa@353: ac_srcdir=$srcdir$ac_dir_suffix; msousa@353: ac_top_srcdir=$srcdir msousa@353: ac_abs_top_srcdir=$srcdir ;; msousa@353: *) # Relative name. msousa@353: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix msousa@353: ac_top_srcdir=$ac_top_build_prefix$srcdir msousa@353: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; msousa@353: esac msousa@353: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix msousa@353: msousa@353: cd "$ac_dir" || { ac_status=$?; continue; } msousa@353: # Check for guested configure. msousa@353: if test -f "$ac_srcdir/configure.gnu"; then msousa@353: echo && msousa@353: $SHELL "$ac_srcdir/configure.gnu" --help=recursive msousa@353: elif test -f "$ac_srcdir/configure"; then msousa@353: echo && msousa@353: $SHELL "$ac_srcdir/configure" --help=recursive msousa@353: else msousa@353: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 msousa@353: fi || ac_status=$? msousa@353: cd "$ac_pwd" || { ac_status=$?; break; } msousa@353: done msousa@353: fi msousa@353: msousa@353: test -n "$ac_init_help" && exit $ac_status msousa@353: if $ac_init_version; then msousa@353: cat <<\_ACEOF msousa@353: matiec configure 0.1 laurent@375: generated by GNU Autoconf 2.68 laurent@375: laurent@375: Copyright (C) 2010 Free Software Foundation, Inc. msousa@353: This configure script is free software; the Free Software Foundation msousa@353: gives unlimited permission to copy, distribute and modify it. msousa@353: _ACEOF msousa@353: exit msousa@353: fi msousa@353: msousa@353: ## ------------------------ ## msousa@353: ## Autoconf initialization. ## msousa@353: ## ------------------------ ## msousa@353: msousa@353: # ac_fn_c_try_compile LINENO msousa@353: # -------------------------- msousa@353: # Try to compile conftest.$ac_ext, and return whether this succeeded. msousa@353: ac_fn_c_try_compile () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: rm -f conftest.$ac_objext msousa@353: if { { ac_try="$ac_compile" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_compile") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: grep -v '^ *+' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: mv -f conftest.er1 conftest.err msousa@353: fi msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } && { msousa@353: test -z "$ac_c_werror_flag" || msousa@353: test ! -s conftest.err msousa@353: } && test -s conftest.$ac_objext; then : msousa@353: ac_retval=0 msousa@353: else msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: ac_retval=1 msousa@353: fi laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: as_fn_set_status $ac_retval msousa@353: msousa@353: } # ac_fn_c_try_compile msousa@353: msousa@353: # ac_fn_c_try_link LINENO msousa@353: # ----------------------- msousa@353: # Try to link conftest.$ac_ext, and return whether this succeeded. msousa@353: ac_fn_c_try_link () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: rm -f conftest.$ac_objext conftest$ac_exeext msousa@353: if { { ac_try="$ac_link" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_link") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: grep -v '^ *+' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: mv -f conftest.er1 conftest.err msousa@353: fi msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } && { msousa@353: test -z "$ac_c_werror_flag" || msousa@353: test ! -s conftest.err msousa@353: } && test -s conftest$ac_exeext && { msousa@353: test "$cross_compiling" = yes || msousa@353: $as_test_x conftest$ac_exeext msousa@353: }; then : msousa@353: ac_retval=0 msousa@353: else msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: ac_retval=1 msousa@353: fi msousa@353: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information msousa@353: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would msousa@353: # interfere with the next link command; also delete a directory that is msousa@353: # left behind by Apple's compiler. We do this before executing the actions. msousa@353: rm -rf conftest.dSYM conftest_ipa8_conftest.oo laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: as_fn_set_status $ac_retval msousa@353: msousa@353: } # ac_fn_c_try_link msousa@353: msousa@353: # ac_fn_cxx_try_compile LINENO msousa@353: # ---------------------------- msousa@353: # Try to compile conftest.$ac_ext, and return whether this succeeded. msousa@353: ac_fn_cxx_try_compile () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: rm -f conftest.$ac_objext msousa@353: if { { ac_try="$ac_compile" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_compile") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: grep -v '^ *+' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: mv -f conftest.er1 conftest.err msousa@353: fi msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } && { msousa@353: test -z "$ac_cxx_werror_flag" || msousa@353: test ! -s conftest.err msousa@353: } && test -s conftest.$ac_objext; then : msousa@353: ac_retval=0 msousa@353: else msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: ac_retval=1 msousa@353: fi laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: as_fn_set_status $ac_retval msousa@353: msousa@353: } # ac_fn_cxx_try_compile msousa@353: msousa@353: # ac_fn_c_try_cpp LINENO msousa@353: # ---------------------- msousa@353: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. msousa@353: ac_fn_c_try_cpp () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: if { { ac_try="$ac_cpp conftest.$ac_ext" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: grep -v '^ *+' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: mv -f conftest.er1 conftest.err msousa@353: fi msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 laurent@375: test $ac_status = 0; } > conftest.i && { msousa@353: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || msousa@353: test ! -s conftest.err msousa@353: }; then : msousa@353: ac_retval=0 msousa@353: else msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: ac_retval=1 msousa@353: fi laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: as_fn_set_status $ac_retval msousa@353: msousa@353: } # ac_fn_c_try_cpp msousa@353: msousa@353: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES msousa@353: # ------------------------------------------------------- msousa@353: # Tests whether HEADER exists, giving a warning if it cannot be compiled using msousa@353: # the include files in INCLUDES and setting the cache variable VAR msousa@353: # accordingly. msousa@353: ac_fn_c_check_header_mongrel () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack laurent@375: if eval \${$3+:} false; then : msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 msousa@353: $as_echo_n "checking for $2... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } msousa@353: else msousa@353: # Is the header compilable? msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 msousa@353: $as_echo_n "checking $2 usability... " >&6; } msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $4 msousa@353: #include <$2> msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_header_compiler=yes msousa@353: else msousa@353: ac_header_compiler=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 msousa@353: $as_echo "$ac_header_compiler" >&6; } msousa@353: msousa@353: # Is the header present? msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 msousa@353: $as_echo_n "checking $2 presence... " >&6; } msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include <$2> msousa@353: _ACEOF msousa@353: if ac_fn_c_try_cpp "$LINENO"; then : msousa@353: ac_header_preproc=yes msousa@353: else msousa@353: ac_header_preproc=no msousa@353: fi laurent@375: rm -f conftest.err conftest.i conftest.$ac_ext msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 msousa@353: $as_echo "$ac_header_preproc" >&6; } msousa@353: msousa@353: # So? What about this header? msousa@353: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( msousa@353: yes:no: ) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} msousa@353: ;; msousa@353: no:yes:* ) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 msousa@353: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} laurent@375: ( $as_echo "## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ## msousa@363: ## Report this to msousa@fe.up.pt ## laurent@375: ## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ##" msousa@353: ) | sed "s/^/$as_me: WARNING: /" >&2 msousa@353: ;; msousa@353: esac msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 msousa@353: $as_echo_n "checking for $2... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: eval "$3=\$ac_header_compiler" msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } msousa@353: fi laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_check_header_mongrel msousa@353: msousa@353: # ac_fn_c_try_run LINENO msousa@353: # ---------------------- msousa@353: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes msousa@353: # that executables *can* be run. msousa@353: ac_fn_c_try_run () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: if { { ac_try="$ac_link" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_link") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' msousa@353: { { case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_try") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; }; }; then : msousa@353: ac_retval=0 msousa@353: else msousa@353: $as_echo "$as_me: program exited with status $ac_status" >&5 msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: ac_retval=$ac_status msousa@353: fi msousa@353: rm -rf conftest.dSYM conftest_ipa8_conftest.oo laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: as_fn_set_status $ac_retval msousa@353: msousa@353: } # ac_fn_c_try_run msousa@353: msousa@353: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES msousa@353: # ------------------------------------------------------- msousa@353: # Tests whether HEADER exists and can be compiled using the include files in msousa@353: # INCLUDES, setting the cache variable VAR accordingly. msousa@353: ac_fn_c_check_header_compile () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 msousa@353: $as_echo_n "checking for $2... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $4 msousa@353: #include <$2> msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: eval "$3=yes" msousa@353: else msousa@353: eval "$3=no" msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_check_header_compile msousa@353: msousa@353: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES msousa@353: # ------------------------------------------- msousa@353: # Tests whether TYPE exists after having included INCLUDES, setting cache msousa@353: # variable VAR accordingly. msousa@353: ac_fn_c_check_type () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 msousa@353: $as_echo_n "checking for $2... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: eval "$3=no" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $4 msousa@353: int msousa@353: main () msousa@353: { msousa@353: if (sizeof ($2)) msousa@353: return 0; msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $4 msousa@353: int msousa@353: main () msousa@353: { msousa@353: if (sizeof (($2))) msousa@353: return 0; msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: msousa@353: else msousa@353: eval "$3=yes" msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_check_type msousa@353: msousa@353: # ac_fn_c_find_intX_t LINENO BITS VAR msousa@353: # ----------------------------------- msousa@353: # Finds a signed integer type with width BITS, setting cache variable VAR msousa@353: # accordingly. msousa@353: ac_fn_c_find_intX_t () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 msousa@353: $as_echo_n "checking for int$2_t... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: eval "$3=no" msousa@353: # Order is important - never check a type that is potentially smaller msousa@353: # than half of the expected target width. msousa@353: for ac_type in int$2_t 'int' 'long int' \ msousa@353: 'long long int' 'short int' 'signed char'; do msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $ac_includes_default laurent@375: enum { N = $2 / 2 - 1 }; msousa@353: int msousa@353: main () msousa@353: { laurent@375: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; msousa@353: test_array [0] = 0 msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $ac_includes_default laurent@375: enum { N = $2 / 2 - 1 }; msousa@353: int msousa@353: main () msousa@353: { laurent@375: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) msousa@353: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; msousa@353: test_array [0] = 0 msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: msousa@353: else msousa@353: case $ac_type in #( msousa@353: int$2_t) : msousa@353: eval "$3=yes" ;; #( msousa@353: *) : msousa@353: eval "$3=\$ac_type" ;; msousa@353: esac msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext laurent@375: if eval test \"x\$"$3"\" = x"no"; then : msousa@353: msousa@353: else msousa@353: break msousa@353: fi msousa@353: done msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_find_intX_t msousa@353: msousa@353: # ac_fn_c_find_uintX_t LINENO BITS VAR msousa@353: # ------------------------------------ msousa@353: # Finds an unsigned integer type with width BITS, setting cache variable VAR msousa@353: # accordingly. msousa@353: ac_fn_c_find_uintX_t () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 msousa@353: $as_echo_n "checking for uint$2_t... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: eval "$3=no" msousa@353: # Order is important - never check a type that is potentially smaller msousa@353: # than half of the expected target width. msousa@353: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ msousa@353: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: $ac_includes_default msousa@353: int msousa@353: main () msousa@353: { msousa@353: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; msousa@353: test_array [0] = 0 msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: case $ac_type in #( msousa@353: uint$2_t) : msousa@353: eval "$3=yes" ;; #( msousa@353: *) : msousa@353: eval "$3=\$ac_type" ;; msousa@353: esac msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext laurent@375: if eval test \"x\$"$3"\" = x"no"; then : msousa@353: msousa@353: else msousa@353: break msousa@353: fi msousa@353: done msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_find_uintX_t msousa@353: msousa@353: # ac_fn_c_check_func LINENO FUNC VAR msousa@353: # ---------------------------------- msousa@353: # Tests whether FUNC exists, setting the cache variable VAR accordingly msousa@353: ac_fn_c_check_func () msousa@353: { msousa@353: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 msousa@353: $as_echo_n "checking for $2... " >&6; } laurent@375: if eval \${$3+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: /* Define $2 to an innocuous variant, in case declares $2. msousa@353: For example, HP-UX 11i declares gettimeofday. */ msousa@353: #define $2 innocuous_$2 msousa@353: msousa@353: /* System header to define __stub macros and hopefully few prototypes, msousa@353: which can conflict with char $2 (); below. msousa@353: Prefer to if __STDC__ is defined, since msousa@353: exists even on freestanding compilers. */ msousa@353: msousa@353: #ifdef __STDC__ msousa@353: # include msousa@353: #else msousa@353: # include msousa@353: #endif msousa@353: msousa@353: #undef $2 msousa@353: msousa@353: /* Override any GCC internal prototype to avoid an error. msousa@353: Use char because int might match the return type of a GCC msousa@353: builtin and then its argument prototype would still apply. */ msousa@353: #ifdef __cplusplus msousa@353: extern "C" msousa@353: #endif msousa@353: char $2 (); msousa@353: /* The GNU C library defines this for functions which it implements msousa@353: to always fail with ENOSYS. Some functions are actually named msousa@353: something starting with __ and the normal name is an alias. */ msousa@353: #if defined __stub_$2 || defined __stub___$2 msousa@353: choke me msousa@353: #endif msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: return $2 (); msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_link "$LINENO"; then : msousa@353: eval "$3=yes" msousa@353: else msousa@353: eval "$3=no" msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext \ msousa@353: conftest$ac_exeext conftest.$ac_ext msousa@353: fi msousa@353: eval ac_res=\$$3 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 msousa@353: $as_echo "$ac_res" >&6; } laurent@375: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno msousa@353: msousa@353: } # ac_fn_c_check_func msousa@353: cat >config.log <<_ACEOF msousa@353: This file contains any messages produced by compilers while msousa@353: running configure, to aid debugging if configure makes a mistake. msousa@353: msousa@353: It was created by matiec $as_me 0.1, which was laurent@375: generated by GNU Autoconf 2.68. Invocation command line was msousa@353: msousa@353: $ $0 $@ msousa@353: msousa@353: _ACEOF msousa@353: exec 5>>config.log msousa@353: { msousa@353: cat <<_ASUNAME msousa@353: ## --------- ## msousa@353: ## Platform. ## msousa@353: ## --------- ## msousa@353: msousa@353: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` msousa@353: uname -m = `(uname -m) 2>/dev/null || echo unknown` msousa@353: uname -r = `(uname -r) 2>/dev/null || echo unknown` msousa@353: uname -s = `(uname -s) 2>/dev/null || echo unknown` msousa@353: uname -v = `(uname -v) 2>/dev/null || echo unknown` msousa@353: msousa@353: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` msousa@353: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` msousa@353: msousa@353: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` msousa@353: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` msousa@353: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` msousa@353: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` msousa@353: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` msousa@353: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` msousa@353: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` msousa@353: msousa@353: _ASUNAME msousa@353: msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: $as_echo "PATH: $as_dir" msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: } >&5 msousa@353: msousa@353: cat >&5 <<_ACEOF msousa@353: msousa@353: msousa@353: ## ----------- ## msousa@353: ## Core tests. ## msousa@353: ## ----------- ## msousa@353: msousa@353: _ACEOF msousa@353: msousa@353: msousa@353: # Keep a trace of the command line. msousa@353: # Strip out --no-create and --no-recursion so they do not pile up. msousa@353: # Strip out --silent because we don't want to record it for future runs. msousa@353: # Also quote any args containing shell meta-characters. msousa@353: # Make two passes to allow for proper duplicate-argument suppression. msousa@353: ac_configure_args= msousa@353: ac_configure_args0= msousa@353: ac_configure_args1= msousa@353: ac_must_keep_next=false msousa@353: for ac_pass in 1 2 msousa@353: do msousa@353: for ac_arg msousa@353: do msousa@353: case $ac_arg in msousa@353: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; msousa@353: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ msousa@353: | -silent | --silent | --silen | --sile | --sil) msousa@353: continue ;; msousa@353: *\'*) msousa@353: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; msousa@353: esac msousa@353: case $ac_pass in msousa@353: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; msousa@353: 2) msousa@353: as_fn_append ac_configure_args1 " '$ac_arg'" msousa@353: if test $ac_must_keep_next = true; then msousa@353: ac_must_keep_next=false # Got value, back to normal. msousa@353: else msousa@353: case $ac_arg in msousa@353: *=* | --config-cache | -C | -disable-* | --disable-* \ msousa@353: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ msousa@353: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ msousa@353: | -with-* | --with-* | -without-* | --without-* | --x) msousa@353: case "$ac_configure_args0 " in msousa@353: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; msousa@353: esac msousa@353: ;; msousa@353: -* ) ac_must_keep_next=true ;; msousa@353: esac msousa@353: fi msousa@353: as_fn_append ac_configure_args " '$ac_arg'" msousa@353: ;; msousa@353: esac msousa@353: done msousa@353: done msousa@353: { ac_configure_args0=; unset ac_configure_args0;} msousa@353: { ac_configure_args1=; unset ac_configure_args1;} msousa@353: msousa@353: # When interrupted or exit'd, cleanup temporary files, and complete msousa@353: # config.log. We remove comments because anyway the quotes in there msousa@353: # would cause problems or look ugly. msousa@353: # WARNING: Use '\'' to represent an apostrophe within the trap. msousa@353: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. msousa@353: trap 'exit_status=$? msousa@353: # Save into config.log some information that might help in debugging. msousa@353: { msousa@353: echo msousa@353: laurent@375: $as_echo "## ---------------- ## msousa@353: ## Cache variables. ## laurent@375: ## ---------------- ##" msousa@353: echo msousa@353: # The following way of writing the cache mishandles newlines in values, msousa@353: ( msousa@353: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do msousa@353: eval ac_val=\$$ac_var msousa@353: case $ac_val in #( msousa@353: *${as_nl}*) msousa@353: case $ac_var in #( msousa@353: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 msousa@353: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; msousa@353: esac msousa@353: case $ac_var in #( msousa@353: _ | IFS | as_nl) ;; #( msousa@353: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( msousa@353: *) { eval $ac_var=; unset $ac_var;} ;; msousa@353: esac ;; msousa@353: esac msousa@353: done msousa@353: (set) 2>&1 | msousa@353: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( msousa@353: *${as_nl}ac_space=\ *) msousa@353: sed -n \ msousa@353: "s/'\''/'\''\\\\'\'''\''/g; msousa@353: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" msousa@353: ;; #( msousa@353: *) msousa@353: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" msousa@353: ;; msousa@353: esac | msousa@353: sort msousa@353: ) msousa@353: echo msousa@353: laurent@375: $as_echo "## ----------------- ## msousa@353: ## Output variables. ## laurent@375: ## ----------------- ##" msousa@353: echo msousa@353: for ac_var in $ac_subst_vars msousa@353: do msousa@353: eval ac_val=\$$ac_var msousa@353: case $ac_val in msousa@353: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; msousa@353: esac msousa@353: $as_echo "$ac_var='\''$ac_val'\''" msousa@353: done | sort msousa@353: echo msousa@353: msousa@353: if test -n "$ac_subst_files"; then laurent@375: $as_echo "## ------------------- ## msousa@353: ## File substitutions. ## laurent@375: ## ------------------- ##" msousa@353: echo msousa@353: for ac_var in $ac_subst_files msousa@353: do msousa@353: eval ac_val=\$$ac_var msousa@353: case $ac_val in msousa@353: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; msousa@353: esac msousa@353: $as_echo "$ac_var='\''$ac_val'\''" msousa@353: done | sort msousa@353: echo msousa@353: fi msousa@353: msousa@353: if test -s confdefs.h; then laurent@375: $as_echo "## ----------- ## msousa@353: ## confdefs.h. ## laurent@375: ## ----------- ##" msousa@353: echo msousa@353: cat confdefs.h msousa@353: echo msousa@353: fi msousa@353: test "$ac_signal" != 0 && msousa@353: $as_echo "$as_me: caught signal $ac_signal" msousa@353: $as_echo "$as_me: exit $exit_status" msousa@353: } >&5 msousa@353: rm -f core *.core core.conftest.* && msousa@353: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && msousa@353: exit $exit_status msousa@353: ' 0 msousa@353: for ac_signal in 1 2 13 15; do msousa@353: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal msousa@353: done msousa@353: ac_signal=0 msousa@353: msousa@353: # confdefs.h avoids OS command line length limits that DEFS can exceed. msousa@353: rm -f -r conftest* confdefs.h msousa@353: msousa@353: $as_echo "/* confdefs.h */" > confdefs.h msousa@353: msousa@353: # Predefined preprocessor variables. msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_NAME "$PACKAGE_NAME" msousa@353: _ACEOF msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" msousa@353: _ACEOF msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_VERSION "$PACKAGE_VERSION" msousa@353: _ACEOF msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_STRING "$PACKAGE_STRING" msousa@353: _ACEOF msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" msousa@353: _ACEOF msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE_URL "$PACKAGE_URL" msousa@353: _ACEOF msousa@353: msousa@353: msousa@353: # Let the site file select an alternate cache file if it wants to. msousa@353: # Prefer an explicitly selected file to automatically selected ones. msousa@353: ac_site_file1=NONE msousa@353: ac_site_file2=NONE msousa@353: if test -n "$CONFIG_SITE"; then laurent@375: # We do not want a PATH search for config.site. laurent@375: case $CONFIG_SITE in #(( laurent@375: -*) ac_site_file1=./$CONFIG_SITE;; laurent@375: */*) ac_site_file1=$CONFIG_SITE;; laurent@375: *) ac_site_file1=./$CONFIG_SITE;; laurent@375: esac msousa@353: elif test "x$prefix" != xNONE; then msousa@353: ac_site_file1=$prefix/share/config.site msousa@353: ac_site_file2=$prefix/etc/config.site msousa@353: else msousa@353: ac_site_file1=$ac_default_prefix/share/config.site msousa@353: ac_site_file2=$ac_default_prefix/etc/config.site msousa@353: fi msousa@353: for ac_site_file in "$ac_site_file1" "$ac_site_file2" msousa@353: do msousa@353: test "x$ac_site_file" = xNONE && continue msousa@353: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 msousa@353: $as_echo "$as_me: loading site script $ac_site_file" >&6;} msousa@353: sed 's/^/| /' "$ac_site_file" >&5 laurent@375: . "$ac_site_file" \ laurent@375: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 laurent@375: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "failed to load site script $ac_site_file laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: fi msousa@353: done msousa@353: msousa@353: if test -r "$cache_file"; then msousa@353: # Some versions of bash will fail to source /dev/null (special files msousa@353: # actually), so we avoid doing that. DJGPP emulates it as a regular file. msousa@353: if test /dev/null != "$cache_file" && test -f "$cache_file"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 msousa@353: $as_echo "$as_me: loading cache $cache_file" >&6;} msousa@353: case $cache_file in msousa@353: [\\/]* | ?:[\\/]* ) . "$cache_file";; msousa@353: *) . "./$cache_file";; msousa@353: esac msousa@353: fi msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 msousa@353: $as_echo "$as_me: creating cache $cache_file" >&6;} msousa@353: >$cache_file msousa@353: fi msousa@353: msousa@353: as_fn_append ac_header_list " sys/time.h" msousa@353: as_fn_append ac_header_list " unistd.h" msousa@353: as_fn_append ac_func_list " alarm" msousa@353: # Check that the precious variables saved in the cache have kept the same msousa@353: # value. msousa@353: ac_cache_corrupted=false msousa@353: for ac_var in $ac_precious_vars; do msousa@353: eval ac_old_set=\$ac_cv_env_${ac_var}_set msousa@353: eval ac_new_set=\$ac_env_${ac_var}_set msousa@353: eval ac_old_val=\$ac_cv_env_${ac_var}_value msousa@353: eval ac_new_val=\$ac_env_${ac_var}_value msousa@353: case $ac_old_set,$ac_new_set in msousa@353: set,) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 msousa@353: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} msousa@353: ac_cache_corrupted=: ;; msousa@353: ,set) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 msousa@353: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} msousa@353: ac_cache_corrupted=: ;; msousa@353: ,);; msousa@353: *) msousa@353: if test "x$ac_old_val" != "x$ac_new_val"; then msousa@353: # differences in whitespace do not lead to failure. msousa@353: ac_old_val_w=`echo x $ac_old_val` msousa@353: ac_new_val_w=`echo x $ac_new_val` msousa@353: if test "$ac_old_val_w" != "$ac_new_val_w"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 msousa@353: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} msousa@353: ac_cache_corrupted=: msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 msousa@353: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} msousa@353: eval $ac_var=\$ac_old_val msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 msousa@353: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 msousa@353: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} msousa@353: fi;; msousa@353: esac msousa@353: # Pass precious variables to config.status. msousa@353: if test "$ac_new_set" = set; then msousa@353: case $ac_new_val in msousa@353: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; msousa@353: *) ac_arg=$ac_var=$ac_new_val ;; msousa@353: esac msousa@353: case " $ac_configure_args " in msousa@353: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. msousa@353: *) as_fn_append ac_configure_args " '$ac_arg'" ;; msousa@353: esac msousa@353: fi msousa@353: done msousa@353: if $ac_cache_corrupted; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 msousa@353: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} laurent@375: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 msousa@353: fi msousa@353: ## -------------------- ## msousa@353: ## Main body of script. ## msousa@353: ## -------------------- ## msousa@353: msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: msousa@353: msousa@353: ac_config_headers="$ac_config_headers config/config.h" msousa@353: msousa@353: ac_aux_dir= msousa@353: for ac_dir in config "$srcdir"/config; do laurent@375: if test -f "$ac_dir/install-sh"; then laurent@375: ac_aux_dir=$ac_dir laurent@375: ac_install_sh="$ac_aux_dir/install-sh -c" laurent@375: break laurent@375: elif test -f "$ac_dir/install.sh"; then laurent@375: ac_aux_dir=$ac_dir laurent@375: ac_install_sh="$ac_aux_dir/install.sh -c" laurent@375: break laurent@375: elif test -f "$ac_dir/shtool"; then laurent@375: ac_aux_dir=$ac_dir laurent@375: ac_install_sh="$ac_aux_dir/shtool install -c" laurent@375: break laurent@375: fi msousa@353: done msousa@353: if test -z "$ac_aux_dir"; then laurent@375: as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 msousa@353: fi msousa@353: msousa@353: # These three variables are undocumented and unsupported, msousa@353: # and are intended to be withdrawn in a future Autoconf release. msousa@353: # They can cause serious problems if a builder's source tree is in a directory msousa@353: # whose full name contains unusual characters. msousa@353: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. msousa@353: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. msousa@353: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. msousa@353: msousa@353: msousa@353: msousa@353: am__api_version='1.11' msousa@353: msousa@353: # Find a good install program. We prefer a C program (faster), msousa@353: # so one script is as good as another. But avoid the broken or msousa@353: # incompatible versions: msousa@353: # SysV /etc/install, /usr/sbin/install msousa@353: # SunOS /usr/etc/install msousa@353: # IRIX /sbin/install msousa@353: # AIX /bin/install msousa@353: # AmigaOS /C/install, which installs bootblocks on floppy discs msousa@353: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag msousa@353: # AFS /usr/afsws/bin/install, which mishandles nonexistent args msousa@353: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" msousa@353: # OS/2's system install, which has a completely different semantic msousa@353: # ./install, which can be erroneously created by make from ./install.sh. msousa@353: # Reject install programs that cannot install multiple files. msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 msousa@353: $as_echo_n "checking for a BSD-compatible install... " >&6; } msousa@353: if test -z "$INSTALL"; then laurent@375: if ${ac_cv_path_install+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: # Account for people who put trailing slashes in PATH elements. msousa@353: case $as_dir/ in #(( msousa@353: ./ | .// | /[cC]/* | \ msousa@353: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ msousa@353: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ msousa@353: /usr/ucb/* ) ;; msousa@353: *) msousa@353: # OSF1 and SCO ODT 3.0 have their own names for install. msousa@353: # Don't use installbsd from OSF since it installs stuff as root msousa@353: # by default. msousa@353: for ac_prog in ginstall scoinst install; do msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then msousa@353: if test $ac_prog = install && msousa@353: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then msousa@353: # AIX install. It has an incompatible calling convention. msousa@353: : msousa@353: elif test $ac_prog = install && msousa@353: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then msousa@353: # program-specific install script used by HP pwplus--don't use. msousa@353: : msousa@353: else msousa@353: rm -rf conftest.one conftest.two conftest.dir msousa@353: echo one > conftest.one msousa@353: echo two > conftest.two msousa@353: mkdir conftest.dir msousa@353: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && msousa@353: test -s conftest.one && test -s conftest.two && msousa@353: test -s conftest.dir/conftest.one && msousa@353: test -s conftest.dir/conftest.two msousa@353: then msousa@353: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" msousa@353: break 3 msousa@353: fi msousa@353: fi msousa@353: fi msousa@353: done msousa@353: done msousa@353: ;; msousa@353: esac msousa@353: msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: rm -rf conftest.one conftest.two conftest.dir msousa@353: msousa@353: fi msousa@353: if test "${ac_cv_path_install+set}" = set; then msousa@353: INSTALL=$ac_cv_path_install msousa@353: else msousa@353: # As a last resort, use the slow shell script. Don't cache a msousa@353: # value for INSTALL within a source directory, because that will msousa@353: # break other packages using the cache if that directory is msousa@353: # removed, or if the value is a relative name. msousa@353: INSTALL=$ac_install_sh msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 msousa@353: $as_echo "$INSTALL" >&6; } msousa@353: msousa@353: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. msousa@353: # It thinks the first close brace ends the variable substitution. msousa@353: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' msousa@353: msousa@353: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' msousa@353: msousa@353: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 msousa@353: $as_echo_n "checking whether build environment is sane... " >&6; } msousa@353: # Just in case msousa@353: sleep 1 msousa@353: echo timestamp > conftest.file msousa@353: # Reject unsafe characters in $srcdir or the absolute working directory msousa@353: # name. Accept space and tab only in the latter. msousa@353: am_lf=' msousa@353: ' msousa@353: case `pwd` in msousa@353: *[\\\"\#\$\&\'\`$am_lf]*) laurent@375: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; msousa@353: esac msousa@353: case $srcdir in msousa@353: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) laurent@375: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; msousa@353: esac msousa@353: msousa@353: # Do `set' in a subshell so we don't clobber the current shell's msousa@353: # arguments. Must try -L first in case configure is actually a msousa@353: # symlink; some systems play weird games with the mod time of symlinks msousa@353: # (eg FreeBSD returns the mod time of the symlink's containing msousa@353: # directory). msousa@353: if ( msousa@353: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` msousa@353: if test "$*" = "X"; then msousa@353: # -L didn't work. msousa@353: set X `ls -t "$srcdir/configure" conftest.file` msousa@353: fi msousa@353: rm -f conftest.file msousa@353: if test "$*" != "X $srcdir/configure conftest.file" \ msousa@353: && test "$*" != "X conftest.file $srcdir/configure"; then msousa@353: msousa@353: # If neither matched, then we have a broken ls. This can happen msousa@353: # if, for instance, CONFIG_SHELL is bash and it inherits a msousa@353: # broken ls alias from the environment. This has actually msousa@353: # happened. Such a system could not be considered "sane". laurent@375: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken msousa@353: alias in your environment" "$LINENO" 5 msousa@353: fi msousa@353: msousa@353: test "$2" = conftest.file msousa@353: ) msousa@353: then msousa@353: # Ok. msousa@353: : msousa@353: else laurent@375: as_fn_error $? "newly created file is older than distributed files! msousa@353: Check your system clock" "$LINENO" 5 msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 msousa@353: $as_echo "yes" >&6; } msousa@353: test "$program_prefix" != NONE && msousa@353: program_transform_name="s&^&$program_prefix&;$program_transform_name" msousa@353: # Use a double $ so make ignores it. msousa@353: test "$program_suffix" != NONE && msousa@353: program_transform_name="s&\$&$program_suffix&;$program_transform_name" msousa@353: # Double any \ or $. msousa@353: # By default was `s,x,x', remove it if useless. msousa@353: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' msousa@353: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` msousa@353: msousa@353: # expand $ac_aux_dir to an absolute path msousa@353: am_aux_dir=`cd $ac_aux_dir && pwd` msousa@353: msousa@353: if test x"${MISSING+set}" != xset; then msousa@353: case $am_aux_dir in msousa@353: *\ * | *\ *) msousa@353: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; msousa@353: *) msousa@353: MISSING="\${SHELL} $am_aux_dir/missing" ;; msousa@353: esac msousa@353: fi msousa@353: # Use eval to expand $SHELL msousa@353: if eval "$MISSING --run true"; then msousa@353: am_missing_run="$MISSING --run " msousa@353: else msousa@353: am_missing_run= msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 msousa@353: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} msousa@353: fi msousa@353: msousa@353: if test x"${install_sh}" != xset; then msousa@353: case $am_aux_dir in msousa@353: *\ * | *\ *) msousa@353: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; msousa@353: *) msousa@353: install_sh="\${SHELL} $am_aux_dir/install-sh" msousa@353: esac msousa@353: fi msousa@353: msousa@353: # Installed binaries are usually stripped using `strip' when the user msousa@353: # run `make install-strip'. However `strip' might not be the right msousa@353: # tool to use in cross-compilation environments, therefore Automake msousa@353: # will honor the `STRIP' environment variable to overrule this program. msousa@353: if test "$cross_compiling" != no; then msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. msousa@353: set dummy ${ac_tool_prefix}strip; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_STRIP+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$STRIP"; then msousa@353: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_STRIP="${ac_tool_prefix}strip" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: STRIP=$ac_cv_prog_STRIP msousa@353: if test -n "$STRIP"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 msousa@353: $as_echo "$STRIP" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: fi msousa@353: if test -z "$ac_cv_prog_STRIP"; then msousa@353: ac_ct_STRIP=$STRIP msousa@353: # Extract the first word of "strip", so it can be a program name with args. msousa@353: set dummy strip; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$ac_ct_STRIP"; then msousa@353: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_ac_ct_STRIP="strip" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP msousa@353: if test -n "$ac_ct_STRIP"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 msousa@353: $as_echo "$ac_ct_STRIP" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: if test "x$ac_ct_STRIP" = x; then msousa@353: STRIP=":" msousa@353: else msousa@353: case $cross_compiling:$ac_tool_warned in msousa@353: yes:) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 msousa@353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} msousa@353: ac_tool_warned=yes ;; msousa@353: esac msousa@353: STRIP=$ac_ct_STRIP msousa@353: fi msousa@353: else msousa@353: STRIP="$ac_cv_prog_STRIP" msousa@353: fi msousa@353: msousa@353: fi msousa@353: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 msousa@353: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } msousa@353: if test -z "$MKDIR_P"; then laurent@375: if ${ac_cv_path_mkdir+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_prog in mkdir gmkdir; do msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue msousa@353: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( msousa@353: 'mkdir (GNU coreutils) '* | \ msousa@353: 'mkdir (coreutils) '* | \ msousa@353: 'mkdir (fileutils) '4.1*) msousa@353: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext msousa@353: break 3;; msousa@353: esac msousa@353: done msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: msousa@353: test -d ./--version && rmdir ./--version msousa@353: if test "${ac_cv_path_mkdir+set}" = set; then msousa@353: MKDIR_P="$ac_cv_path_mkdir -p" msousa@353: else msousa@353: # As a last resort, use the slow shell script. Don't cache a msousa@353: # value for MKDIR_P within a source directory, because that will msousa@353: # break other packages using the cache if that directory is msousa@353: # removed, or if the value is a relative name. msousa@353: MKDIR_P="$ac_install_sh -d" msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 msousa@353: $as_echo "$MKDIR_P" >&6; } msousa@353: msousa@353: mkdir_p="$MKDIR_P" msousa@353: case $mkdir_p in msousa@353: [\\/$]* | ?:[\\/]*) ;; msousa@353: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; msousa@353: esac msousa@353: msousa@353: for ac_prog in gawk mawk nawk awk msousa@353: do msousa@353: # Extract the first word of "$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_AWK+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$AWK"; then msousa@353: ac_cv_prog_AWK="$AWK" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_AWK="$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: AWK=$ac_cv_prog_AWK msousa@353: if test -n "$AWK"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 msousa@353: $as_echo "$AWK" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$AWK" && break msousa@353: done msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 msousa@353: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } msousa@353: set x ${MAKE-make} msousa@353: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` laurent@375: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat >conftest.make <<\_ACEOF msousa@353: SHELL = /bin/sh msousa@353: all: msousa@353: @echo '@@@%%%=$(MAKE)=@@@%%%' msousa@353: _ACEOF laurent@375: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. msousa@353: case `${MAKE-make} -f conftest.make 2>/dev/null` in msousa@353: *@@@%%%=?*=@@@%%%*) msousa@353: eval ac_cv_prog_make_${ac_make}_set=yes;; msousa@353: *) msousa@353: eval ac_cv_prog_make_${ac_make}_set=no;; msousa@353: esac msousa@353: rm -f conftest.make msousa@353: fi msousa@353: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 msousa@353: $as_echo "yes" >&6; } msousa@353: SET_MAKE= msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: SET_MAKE="MAKE=${MAKE-make}" msousa@353: fi msousa@353: msousa@353: rm -rf .tst 2>/dev/null msousa@353: mkdir .tst 2>/dev/null msousa@353: if test -d .tst; then msousa@353: am__leading_dot=. msousa@353: else msousa@353: am__leading_dot=_ msousa@353: fi msousa@353: rmdir .tst 2>/dev/null msousa@353: msousa@353: if test "`cd $srcdir && pwd`" != "`pwd`"; then msousa@353: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output msousa@353: # is not polluted with repeated "-I." msousa@353: am__isrc=' -I$(srcdir)' msousa@353: # test to see if srcdir already configured msousa@353: if test -f $srcdir/config.status; then laurent@375: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 msousa@353: fi msousa@353: fi msousa@353: msousa@353: # test whether we have cygpath msousa@353: if test -z "$CYGPATH_W"; then msousa@353: if (cygpath --version) >/dev/null 2>/dev/null; then msousa@353: CYGPATH_W='cygpath -w' msousa@353: else msousa@353: CYGPATH_W=echo msousa@353: fi msousa@353: fi msousa@353: msousa@353: msousa@353: # Define the identity of the package. msousa@353: PACKAGE='matiec' msousa@353: VERSION='0.1' msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define PACKAGE "$PACKAGE" msousa@353: _ACEOF msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define VERSION "$VERSION" msousa@353: _ACEOF msousa@353: msousa@353: # Some tools Automake needs. msousa@353: msousa@353: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} msousa@353: msousa@353: msousa@353: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} msousa@353: msousa@353: msousa@353: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} msousa@353: msousa@353: msousa@353: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} msousa@353: msousa@353: msousa@353: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} msousa@353: msousa@353: # We need awk for the "check" target. The system "awk" is bad on msousa@353: # some platforms. msousa@353: # Always define AMTAR for backward compatibility. msousa@353: msousa@353: AMTAR=${AMTAR-"${am_missing_run}tar"} msousa@353: msousa@353: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: # Before checking for CXX and CC, set CFLAGS and CXXFLAGS because they msousa@353: # are otherwise initialized to contain -g -O2 msousa@353: if test "x$CFLAGS" = "x"; then msousa@353: CFLAGS= msousa@353: fi msousa@353: if test "x$CXXFLAGS" = "x"; then msousa@353: CXXFLAGS= msousa@353: fi msousa@353: msousa@353: # Checks for programs. msousa@353: for ac_prog in 'bison -y' byacc msousa@353: do msousa@353: # Extract the first word of "$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_YACC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$YACC"; then msousa@353: ac_cv_prog_YACC="$YACC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_YACC="$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: YACC=$ac_cv_prog_YACC msousa@353: if test -n "$YACC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 msousa@353: $as_echo "$YACC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$YACC" && break msousa@353: done msousa@353: test -n "$YACC" || YACC="yacc" msousa@353: msousa@353: DEPDIR="${am__leading_dot}deps" msousa@353: msousa@353: ac_config_commands="$ac_config_commands depfiles" msousa@353: msousa@353: msousa@353: am_make=${MAKE-make} msousa@353: cat > confinc << 'END' msousa@353: am__doit: msousa@353: @echo this is the am__doit target msousa@353: .PHONY: am__doit msousa@353: END msousa@353: # If we don't find an include directive, just comment out the code. msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 msousa@353: $as_echo_n "checking for style of include used by $am_make... " >&6; } msousa@353: am__include="#" msousa@353: am__quote= msousa@353: _am_result=none msousa@353: # First try GNU make style include. msousa@353: echo "include confinc" > confmf msousa@353: # Ignore all kinds of additional output from `make'. msousa@353: case `$am_make -s -f confmf 2> /dev/null` in #( msousa@353: *the\ am__doit\ target*) msousa@353: am__include=include msousa@353: am__quote= msousa@353: _am_result=GNU msousa@353: ;; msousa@353: esac msousa@353: # Now try BSD make style include. msousa@353: if test "$am__include" = "#"; then msousa@353: echo '.include "confinc"' > confmf msousa@353: case `$am_make -s -f confmf 2> /dev/null` in #( msousa@353: *the\ am__doit\ target*) msousa@353: am__include=.include msousa@353: am__quote="\"" msousa@353: _am_result=BSD msousa@353: ;; msousa@353: esac msousa@353: fi msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 msousa@353: $as_echo "$_am_result" >&6; } msousa@353: rm -f confinc confmf msousa@353: msousa@353: # Check whether --enable-dependency-tracking was given. msousa@353: if test "${enable_dependency_tracking+set}" = set; then : msousa@353: enableval=$enable_dependency_tracking; msousa@353: fi msousa@353: msousa@353: if test "x$enable_dependency_tracking" != xno; then msousa@353: am_depcomp="$ac_aux_dir/depcomp" msousa@353: AMDEPBACKSLASH='\' msousa@353: fi msousa@353: if test "x$enable_dependency_tracking" != xno; then msousa@353: AMDEP_TRUE= msousa@353: AMDEP_FALSE='#' msousa@353: else msousa@353: AMDEP_TRUE='#' msousa@353: AMDEP_FALSE= msousa@353: fi msousa@353: msousa@353: msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. msousa@353: set dummy ${ac_tool_prefix}gcc; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$CC"; then msousa@353: ac_cv_prog_CC="$CC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_CC="${ac_tool_prefix}gcc" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: CC=$ac_cv_prog_CC msousa@353: if test -n "$CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 msousa@353: $as_echo "$CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: fi msousa@353: if test -z "$ac_cv_prog_CC"; then msousa@353: ac_ct_CC=$CC msousa@353: # Extract the first word of "gcc", so it can be a program name with args. msousa@353: set dummy gcc; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_ac_ct_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$ac_ct_CC"; then msousa@353: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_ac_ct_CC="gcc" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: ac_ct_CC=$ac_cv_prog_ac_ct_CC msousa@353: if test -n "$ac_ct_CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 msousa@353: $as_echo "$ac_ct_CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: if test "x$ac_ct_CC" = x; then msousa@353: CC="" msousa@353: else msousa@353: case $cross_compiling:$ac_tool_warned in msousa@353: yes:) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 msousa@353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} msousa@353: ac_tool_warned=yes ;; msousa@353: esac msousa@353: CC=$ac_ct_CC msousa@353: fi msousa@353: else msousa@353: CC="$ac_cv_prog_CC" msousa@353: fi msousa@353: msousa@353: if test -z "$CC"; then msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. msousa@353: set dummy ${ac_tool_prefix}cc; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$CC"; then msousa@353: ac_cv_prog_CC="$CC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_CC="${ac_tool_prefix}cc" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: CC=$ac_cv_prog_CC msousa@353: if test -n "$CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 msousa@353: $as_echo "$CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: fi msousa@353: fi msousa@353: if test -z "$CC"; then msousa@353: # Extract the first word of "cc", so it can be a program name with args. msousa@353: set dummy cc; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$CC"; then msousa@353: ac_cv_prog_CC="$CC" # Let the user override the test. msousa@353: else msousa@353: ac_prog_rejected=no msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then msousa@353: ac_prog_rejected=yes msousa@353: continue msousa@353: fi msousa@353: ac_cv_prog_CC="cc" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: if test $ac_prog_rejected = yes; then msousa@353: # We found a bogon in the path, so make sure we never use it. msousa@353: set dummy $ac_cv_prog_CC msousa@353: shift msousa@353: if test $# != 0; then msousa@353: # We chose a different compiler from the bogus one. msousa@353: # However, it has the same basename, so the bogon will be chosen msousa@353: # first if we set CC to just the basename; use the full file name. msousa@353: shift msousa@353: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" msousa@353: fi msousa@353: fi msousa@353: fi msousa@353: fi msousa@353: CC=$ac_cv_prog_CC msousa@353: if test -n "$CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 msousa@353: $as_echo "$CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: fi msousa@353: if test -z "$CC"; then msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: for ac_prog in cl.exe msousa@353: do msousa@353: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$CC"; then msousa@353: ac_cv_prog_CC="$CC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: CC=$ac_cv_prog_CC msousa@353: if test -n "$CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 msousa@353: $as_echo "$CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$CC" && break msousa@353: done msousa@353: fi msousa@353: if test -z "$CC"; then msousa@353: ac_ct_CC=$CC msousa@353: for ac_prog in cl.exe msousa@353: do msousa@353: # Extract the first word of "$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_ac_ct_CC+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$ac_ct_CC"; then msousa@353: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_ac_ct_CC="$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: ac_ct_CC=$ac_cv_prog_ac_ct_CC msousa@353: if test -n "$ac_ct_CC"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 msousa@353: $as_echo "$ac_ct_CC" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$ac_ct_CC" && break msousa@353: done msousa@353: msousa@353: if test "x$ac_ct_CC" = x; then msousa@353: CC="" msousa@353: else msousa@353: case $cross_compiling:$ac_tool_warned in msousa@353: yes:) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 msousa@353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} msousa@353: ac_tool_warned=yes ;; msousa@353: esac msousa@353: CC=$ac_ct_CC msousa@353: fi msousa@353: fi msousa@353: msousa@353: fi msousa@353: msousa@353: msousa@353: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "no acceptable C compiler found in \$PATH laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: msousa@353: # Provide some information about the compiler. msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 msousa@353: set X $ac_compile msousa@353: ac_compiler=$2 msousa@353: for ac_option in --version -v -V -qversion; do msousa@353: { { ac_try="$ac_compiler $ac_option >&5" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_compiler $ac_option >&5") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: sed '10a\ msousa@353: ... rest of stderr output deleted ... msousa@353: 10q' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: fi msousa@353: rm -f conftest.er1 conftest.err msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } msousa@353: done msousa@353: msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: ac_clean_files_save=$ac_clean_files msousa@353: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" msousa@353: # Try to create an executable without -o first, disregard a.out. msousa@353: # It will help us diagnose broken compilers, and finding out an intuition msousa@353: # of exeext. msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 msousa@353: $as_echo_n "checking whether the C compiler works... " >&6; } msousa@353: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` msousa@353: msousa@353: # The possible output files: msousa@353: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" msousa@353: msousa@353: ac_rmfiles= msousa@353: for ac_file in $ac_files msousa@353: do msousa@353: case $ac_file in msousa@353: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; msousa@353: * ) ac_rmfiles="$ac_rmfiles $ac_file";; msousa@353: esac msousa@353: done msousa@353: rm -f $ac_rmfiles msousa@353: msousa@353: if { { ac_try="$ac_link_default" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_link_default") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; }; then : msousa@353: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. msousa@353: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' msousa@353: # in a Makefile. We should not override ac_cv_exeext if it was cached, msousa@353: # so that the user can short-circuit this test for compilers unknown to msousa@353: # Autoconf. msousa@353: for ac_file in $ac_files '' msousa@353: do msousa@353: test -f "$ac_file" || continue msousa@353: case $ac_file in msousa@353: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) msousa@353: ;; msousa@353: [ab].out ) msousa@353: # We found the default executable, but exeext='' is most msousa@353: # certainly right. msousa@353: break;; msousa@353: *.* ) msousa@353: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; msousa@353: then :; else msousa@353: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` msousa@353: fi msousa@353: # We set ac_cv_exeext here because the later test for it is not msousa@353: # safe: cross compilers may not add the suffix if given an `-o' msousa@353: # argument, so we may need to know it at that point already. msousa@353: # Even if this section looks crufty: it has the advantage of msousa@353: # actually working. msousa@353: break;; msousa@353: * ) msousa@353: break;; msousa@353: esac msousa@353: done msousa@353: test "$ac_cv_exeext" = no && ac_cv_exeext= msousa@353: msousa@353: else msousa@353: ac_file='' msousa@353: fi msousa@353: if test -z "$ac_file"; then : msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error 77 "C compiler cannot create executables laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 msousa@353: $as_echo "yes" >&6; } msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 msousa@353: $as_echo_n "checking for C compiler default output file name... " >&6; } msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 msousa@353: $as_echo "$ac_file" >&6; } msousa@353: ac_exeext=$ac_cv_exeext msousa@353: msousa@353: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out msousa@353: ac_clean_files=$ac_clean_files_save msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 msousa@353: $as_echo_n "checking for suffix of executables... " >&6; } msousa@353: if { { ac_try="$ac_link" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_link") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; }; then : msousa@353: # If both `conftest.exe' and `conftest' are `present' (well, observable) msousa@353: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will msousa@353: # work properly (i.e., refer to `conftest.exe'), while it won't with msousa@353: # `rm'. msousa@353: for ac_file in conftest.exe conftest conftest.*; do msousa@353: test -f "$ac_file" || continue msousa@353: case $ac_file in msousa@353: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; msousa@353: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` msousa@353: break;; msousa@353: * ) break;; msousa@353: esac msousa@353: done msousa@353: else msousa@353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "cannot compute suffix of executables: cannot compile and link laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: fi msousa@353: rm -f conftest conftest$ac_cv_exeext msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 msousa@353: $as_echo "$ac_cv_exeext" >&6; } msousa@353: msousa@353: rm -f conftest.$ac_ext msousa@353: EXEEXT=$ac_cv_exeext msousa@353: ac_exeext=$EXEEXT msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: int msousa@353: main () msousa@353: { msousa@353: FILE *f = fopen ("conftest.out", "w"); msousa@353: return ferror (f) || fclose (f) != 0; msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: ac_clean_files="$ac_clean_files conftest.out" msousa@353: # Check that the compiler produces executables we can run. If not, either msousa@353: # the compiler is broken, or we cross compile. msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 msousa@353: $as_echo_n "checking whether we are cross compiling... " >&6; } msousa@353: if test "$cross_compiling" != yes; then msousa@353: { { ac_try="$ac_link" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_link") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } msousa@353: if { ac_try='./conftest$ac_cv_exeext' msousa@353: { { case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_try") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; }; }; then msousa@353: cross_compiling=no msousa@353: else msousa@353: if test "$cross_compiling" = maybe; then msousa@353: cross_compiling=yes msousa@353: else msousa@353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "cannot run C compiled programs. msousa@353: If you meant to cross compile, use \`--host'. laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: fi msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 msousa@353: $as_echo "$cross_compiling" >&6; } msousa@353: msousa@353: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out msousa@353: ac_clean_files=$ac_clean_files_save msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 msousa@353: $as_echo_n "checking for suffix of object files... " >&6; } laurent@375: if ${ac_cv_objext+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: rm -f conftest.o conftest.obj msousa@353: if { { ac_try="$ac_compile" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_compile") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; }; then : msousa@353: for ac_file in conftest.o conftest.obj conftest.*; do msousa@353: test -f "$ac_file" || continue; msousa@353: case $ac_file in msousa@353: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; msousa@353: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` msousa@353: break;; msousa@353: esac msousa@353: done msousa@353: else msousa@353: $as_echo "$as_me: failed program was:" >&5 msousa@353: sed 's/^/| /' conftest.$ac_ext >&5 msousa@353: msousa@353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "cannot compute suffix of object files: cannot compile laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: fi msousa@353: rm -f conftest.$ac_cv_objext conftest.$ac_ext msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 msousa@353: $as_echo "$ac_cv_objext" >&6; } msousa@353: OBJEXT=$ac_cv_objext msousa@353: ac_objext=$OBJEXT msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 msousa@353: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } laurent@375: if ${ac_cv_c_compiler_gnu+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: #ifndef __GNUC__ msousa@353: choke me msousa@353: #endif msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_compiler_gnu=yes msousa@353: else msousa@353: ac_compiler_gnu=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: ac_cv_c_compiler_gnu=$ac_compiler_gnu msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 msousa@353: $as_echo "$ac_cv_c_compiler_gnu" >&6; } msousa@353: if test $ac_compiler_gnu = yes; then msousa@353: GCC=yes msousa@353: else msousa@353: GCC= msousa@353: fi msousa@353: ac_test_CFLAGS=${CFLAGS+set} msousa@353: ac_save_CFLAGS=$CFLAGS msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 msousa@353: $as_echo_n "checking whether $CC accepts -g... " >&6; } laurent@375: if ${ac_cv_prog_cc_g+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: ac_save_c_werror_flag=$ac_c_werror_flag msousa@353: ac_c_werror_flag=yes msousa@353: ac_cv_prog_cc_g=no msousa@353: CFLAGS="-g" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_prog_cc_g=yes msousa@353: else msousa@353: CFLAGS="" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: msousa@353: else msousa@353: ac_c_werror_flag=$ac_save_c_werror_flag msousa@353: CFLAGS="-g" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_prog_cc_g=yes msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: ac_c_werror_flag=$ac_save_c_werror_flag msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 msousa@353: $as_echo "$ac_cv_prog_cc_g" >&6; } msousa@353: if test "$ac_test_CFLAGS" = set; then msousa@353: CFLAGS=$ac_save_CFLAGS msousa@353: elif test $ac_cv_prog_cc_g = yes; then msousa@353: if test "$GCC" = yes; then msousa@353: CFLAGS="-g -O2" msousa@353: else msousa@353: CFLAGS="-g" msousa@353: fi msousa@353: else msousa@353: if test "$GCC" = yes; then msousa@353: CFLAGS="-O2" msousa@353: else msousa@353: CFLAGS= msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 msousa@353: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } laurent@375: if ${ac_cv_prog_cc_c89+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: ac_cv_prog_cc_c89=no msousa@353: ac_save_CC=$CC msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: #include msousa@353: #include msousa@353: #include msousa@353: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ msousa@353: struct buf { int x; }; msousa@353: FILE * (*rcsopen) (struct buf *, struct stat *, int); msousa@353: static char *e (p, i) msousa@353: char **p; msousa@353: int i; msousa@353: { msousa@353: return p[i]; msousa@353: } msousa@353: static char *f (char * (*g) (char **, int), char **p, ...) msousa@353: { msousa@353: char *s; msousa@353: va_list v; msousa@353: va_start (v,p); msousa@353: s = g (p, va_arg (v,int)); msousa@353: va_end (v); msousa@353: return s; msousa@353: } msousa@353: msousa@353: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has msousa@353: function prototypes and stuff, but not '\xHH' hex character constants. msousa@353: These don't provoke an error unfortunately, instead are silently treated msousa@353: as 'x'. The following induces an error, until -std is added to get msousa@353: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an msousa@353: array size at least. It's necessary to write '\x00'==0 to get something msousa@353: that's true only with -std. */ msousa@353: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; msousa@353: msousa@353: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters msousa@353: inside strings and character constants. */ msousa@353: #define FOO(x) 'x' msousa@353: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; msousa@353: msousa@353: int test (int i, double x); msousa@353: struct s1 {int (*f) (int a);}; msousa@353: struct s2 {int (*f) (double a);}; msousa@353: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); msousa@353: int argc; msousa@353: char **argv; msousa@353: int msousa@353: main () msousa@353: { msousa@353: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ msousa@353: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" msousa@353: do msousa@353: CC="$ac_save_CC $ac_arg" msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_prog_cc_c89=$ac_arg msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext msousa@353: test "x$ac_cv_prog_cc_c89" != "xno" && break msousa@353: done msousa@353: rm -f conftest.$ac_ext msousa@353: CC=$ac_save_CC msousa@353: msousa@353: fi msousa@353: # AC_CACHE_VAL msousa@353: case "x$ac_cv_prog_cc_c89" in msousa@353: x) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 msousa@353: $as_echo "none needed" >&6; } ;; msousa@353: xno) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 msousa@353: $as_echo "unsupported" >&6; } ;; msousa@353: *) msousa@353: CC="$CC $ac_cv_prog_cc_c89" msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 msousa@353: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; msousa@353: esac msousa@353: if test "x$ac_cv_prog_cc_c89" != xno; then : msousa@353: msousa@353: fi msousa@353: msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: msousa@353: depcc="$CC" am_compiler_list= msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 msousa@353: $as_echo_n "checking dependency style of $depcc... " >&6; } laurent@375: if ${am_cv_CC_dependencies_compiler_type+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then msousa@353: # We make a subdir and do the tests there. Otherwise we can end up msousa@353: # making bogus files that we don't know about and never remove. For msousa@353: # instance it was reported that on HP-UX the gcc test will end up msousa@353: # making a dummy file named `D' -- because `-MD' means `put the output msousa@353: # in D'. msousa@353: mkdir conftest.dir msousa@353: # Copy depcomp to subdir because otherwise we won't find it if we're msousa@353: # using a relative directory. msousa@353: cp "$am_depcomp" conftest.dir msousa@353: cd conftest.dir msousa@353: # We will build objects and dependencies in a subdirectory because msousa@353: # it helps to detect inapplicable dependency modes. For instance msousa@353: # both Tru64's cc and ICC support -MD to output dependencies as a msousa@353: # side effect of compilation, but ICC will put the dependencies in msousa@353: # the current directory while Tru64 will put them in the object msousa@353: # directory. msousa@353: mkdir sub msousa@353: msousa@353: am_cv_CC_dependencies_compiler_type=none msousa@353: if test "$am_compiler_list" = ""; then msousa@353: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` msousa@353: fi msousa@353: am__universal=false msousa@353: case " $depcc " in #( msousa@353: *\ -arch\ *\ -arch\ *) am__universal=true ;; msousa@353: esac msousa@353: msousa@353: for depmode in $am_compiler_list; do msousa@353: # Setup a source with many dependencies, because some compilers msousa@353: # like to wrap large dependency lists on column 80 (with \), and msousa@353: # we should not choose a depcomp mode which is confused by this. msousa@353: # msousa@353: # We need to recreate these files for each test, as the compiler may msousa@353: # overwrite some of them when testing with obscure command lines. msousa@353: # This happens at least with the AIX C compiler. msousa@353: : > sub/conftest.c msousa@353: for i in 1 2 3 4 5 6; do msousa@353: echo '#include "conftst'$i'.h"' >> sub/conftest.c msousa@353: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with msousa@353: # Solaris 8's {/usr,}/bin/sh. msousa@353: touch sub/conftst$i.h msousa@353: done msousa@353: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf msousa@353: msousa@353: # We check with `-c' and `-o' for the sake of the "dashmstdout" msousa@353: # mode. It turns out that the SunPro C++ compiler does not properly msousa@353: # handle `-M -o', and we need to detect this. Also, some Intel msousa@353: # versions had trouble with output in subdirs msousa@353: am__obj=sub/conftest.${OBJEXT-o} msousa@353: am__minus_obj="-o $am__obj" msousa@353: case $depmode in msousa@353: gcc) msousa@353: # This depmode causes a compiler race in universal mode. msousa@353: test "$am__universal" = false || continue msousa@353: ;; msousa@353: nosideeffect) msousa@353: # after this tag, mechanisms are not by side-effect, so they'll msousa@353: # only be used when explicitly requested msousa@353: if test "x$enable_dependency_tracking" = xyes; then msousa@353: continue msousa@353: else msousa@353: break msousa@353: fi msousa@353: ;; msousa@353: msvisualcpp | msvcmsys) msousa@353: # This compiler won't grok `-c -o', but also, the minuso test has msousa@353: # not run yet. These depmodes are late enough in the game, and msousa@353: # so weak that their functioning should not be impacted. msousa@353: am__obj=conftest.${OBJEXT-o} msousa@353: am__minus_obj= msousa@353: ;; msousa@353: none) break ;; msousa@353: esac msousa@353: if depmode=$depmode \ msousa@353: source=sub/conftest.c object=$am__obj \ msousa@353: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ msousa@353: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ msousa@353: >/dev/null 2>conftest.err && msousa@353: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && msousa@353: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && msousa@353: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && msousa@353: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then msousa@353: # icc doesn't choke on unknown options, it will just issue warnings msousa@353: # or remarks (even with -Werror). So we grep stderr for any message msousa@353: # that says an option was ignored or not supported. msousa@353: # When given -MP, icc 7.0 and 7.1 complain thusly: msousa@353: # icc: Command line warning: ignoring option '-M'; no argument required msousa@353: # The diagnosis changed in icc 8.0: msousa@353: # icc: Command line remark: option '-MP' not supported msousa@353: if (grep 'ignoring option' conftest.err || msousa@353: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else msousa@353: am_cv_CC_dependencies_compiler_type=$depmode msousa@353: break msousa@353: fi msousa@353: fi msousa@353: done msousa@353: msousa@353: cd .. msousa@353: rm -rf conftest.dir msousa@353: else msousa@353: am_cv_CC_dependencies_compiler_type=none msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 msousa@353: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } msousa@353: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type msousa@353: msousa@353: if msousa@353: test "x$enable_dependency_tracking" != xno \ msousa@353: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then msousa@353: am__fastdepCC_TRUE= msousa@353: am__fastdepCC_FALSE='#' msousa@353: else msousa@353: am__fastdepCC_TRUE='#' msousa@353: am__fastdepCC_FALSE= msousa@353: fi msousa@353: msousa@353: msousa@353: msousa@353: for ac_prog in flex lex msousa@353: do msousa@353: # Extract the first word of "$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_LEX+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$LEX"; then msousa@353: ac_cv_prog_LEX="$LEX" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_LEX="$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: LEX=$ac_cv_prog_LEX msousa@353: if test -n "$LEX"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 msousa@353: $as_echo "$LEX" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$LEX" && break msousa@353: done msousa@353: test -n "$LEX" || LEX=":" msousa@353: msousa@353: if test "x$LEX" != "x:"; then msousa@353: cat >conftest.l <<_ACEOF msousa@353: %% msousa@353: a { ECHO; } msousa@353: b { REJECT; } msousa@353: c { yymore (); } msousa@353: d { yyless (1); } msousa@353: e { yyless (input () != 0); } msousa@353: f { unput (yytext[0]); } msousa@353: . { BEGIN INITIAL; } msousa@353: %% msousa@353: #ifdef YYTEXT_POINTER msousa@353: extern char *yytext; msousa@353: #endif msousa@353: int msousa@353: main (void) msousa@353: { msousa@353: return ! yylex () + ! yywrap (); msousa@353: } msousa@353: _ACEOF msousa@353: { { ac_try="$LEX conftest.l" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$LEX conftest.l") 2>&5 msousa@353: ac_status=$? msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 msousa@353: $as_echo_n "checking lex output file root... " >&6; } laurent@375: if ${ac_cv_prog_lex_root+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: msousa@353: if test -f lex.yy.c; then msousa@353: ac_cv_prog_lex_root=lex.yy msousa@353: elif test -f lexyy.c; then msousa@353: ac_cv_prog_lex_root=lexyy msousa@353: else laurent@375: as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 msousa@353: $as_echo "$ac_cv_prog_lex_root" >&6; } msousa@353: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root msousa@353: msousa@353: if test -z "${LEXLIB+set}"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 msousa@353: $as_echo_n "checking lex library... " >&6; } laurent@375: if ${ac_cv_lib_lex+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: msousa@353: ac_save_LIBS=$LIBS msousa@353: ac_cv_lib_lex='none needed' msousa@353: for ac_lib in '' -lfl -ll; do msousa@353: LIBS="$ac_lib $ac_save_LIBS" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: `cat $LEX_OUTPUT_ROOT.c` msousa@353: _ACEOF msousa@353: if ac_fn_c_try_link "$LINENO"; then : msousa@353: ac_cv_lib_lex=$ac_lib msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext \ msousa@353: conftest$ac_exeext conftest.$ac_ext msousa@353: test "$ac_cv_lib_lex" != 'none needed' && break msousa@353: done msousa@353: LIBS=$ac_save_LIBS msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 msousa@353: $as_echo "$ac_cv_lib_lex" >&6; } msousa@353: test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex msousa@353: fi msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 msousa@353: $as_echo_n "checking whether yytext is a pointer... " >&6; } laurent@375: if ${ac_cv_prog_lex_yytext_pointer+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: # POSIX says lex can declare yytext either as a pointer or an array; the msousa@353: # default is implementation-dependent. Figure out which it is, since msousa@353: # not all implementations provide the %pointer and %array declarations. msousa@353: ac_cv_prog_lex_yytext_pointer=no msousa@353: ac_save_LIBS=$LIBS msousa@353: LIBS="$LEXLIB $ac_save_LIBS" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ laurent@375: laurent@375: #define YYTEXT_POINTER 1 msousa@353: `cat $LEX_OUTPUT_ROOT.c` msousa@353: _ACEOF msousa@353: if ac_fn_c_try_link "$LINENO"; then : msousa@353: ac_cv_prog_lex_yytext_pointer=yes msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext \ msousa@353: conftest$ac_exeext conftest.$ac_ext msousa@353: LIBS=$ac_save_LIBS msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 msousa@353: $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } msousa@353: if test $ac_cv_prog_lex_yytext_pointer = yes; then msousa@353: msousa@353: $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h msousa@353: msousa@353: fi msousa@353: rm -f conftest.l $LEX_OUTPUT_ROOT.c msousa@353: msousa@353: fi msousa@353: ac_ext=cpp msousa@353: ac_cpp='$CXXCPP $CPPFLAGS' msousa@353: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu msousa@353: if test -z "$CXX"; then msousa@353: if test -n "$CCC"; then msousa@353: CXX=$CCC msousa@353: else msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC msousa@353: do msousa@353: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_CXX+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$CXX"; then msousa@353: ac_cv_prog_CXX="$CXX" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: CXX=$ac_cv_prog_CXX msousa@353: if test -n "$CXX"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 msousa@353: $as_echo "$CXX" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$CXX" && break msousa@353: done msousa@353: fi msousa@353: if test -z "$CXX"; then msousa@353: ac_ct_CXX=$CXX msousa@353: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC msousa@353: do msousa@353: # Extract the first word of "$ac_prog", so it can be a program name with args. msousa@353: set dummy $ac_prog; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_ac_ct_CXX+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$ac_ct_CXX"; then msousa@353: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_ac_ct_CXX="$ac_prog" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX msousa@353: if test -n "$ac_ct_CXX"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 msousa@353: $as_echo "$ac_ct_CXX" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: test -n "$ac_ct_CXX" && break msousa@353: done msousa@353: msousa@353: if test "x$ac_ct_CXX" = x; then msousa@353: CXX="g++" msousa@353: else msousa@353: case $cross_compiling:$ac_tool_warned in msousa@353: yes:) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 msousa@353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} msousa@353: ac_tool_warned=yes ;; msousa@353: esac msousa@353: CXX=$ac_ct_CXX msousa@353: fi msousa@353: fi msousa@353: msousa@353: fi msousa@353: fi msousa@353: # Provide some information about the compiler. msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 msousa@353: set X $ac_compile msousa@353: ac_compiler=$2 msousa@353: for ac_option in --version -v -V -qversion; do msousa@353: { { ac_try="$ac_compiler $ac_option >&5" msousa@353: case "(($ac_try" in msousa@353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; msousa@353: *) ac_try_echo=$ac_try;; msousa@353: esac msousa@353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" msousa@353: $as_echo "$ac_try_echo"; } >&5 msousa@353: (eval "$ac_compiler $ac_option >&5") 2>conftest.err msousa@353: ac_status=$? msousa@353: if test -s conftest.err; then msousa@353: sed '10a\ msousa@353: ... rest of stderr output deleted ... msousa@353: 10q' conftest.err >conftest.er1 msousa@353: cat conftest.er1 >&5 msousa@353: fi msousa@353: rm -f conftest.er1 conftest.err msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 msousa@353: test $ac_status = 0; } msousa@353: done msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 msousa@353: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } laurent@375: if ${ac_cv_cxx_compiler_gnu+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: #ifndef __GNUC__ msousa@353: choke me msousa@353: #endif msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_cxx_try_compile "$LINENO"; then : msousa@353: ac_compiler_gnu=yes msousa@353: else msousa@353: ac_compiler_gnu=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 msousa@353: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } msousa@353: if test $ac_compiler_gnu = yes; then msousa@353: GXX=yes msousa@353: else msousa@353: GXX= msousa@353: fi msousa@353: ac_test_CXXFLAGS=${CXXFLAGS+set} msousa@353: ac_save_CXXFLAGS=$CXXFLAGS msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 msousa@353: $as_echo_n "checking whether $CXX accepts -g... " >&6; } laurent@375: if ${ac_cv_prog_cxx_g+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: ac_save_cxx_werror_flag=$ac_cxx_werror_flag msousa@353: ac_cxx_werror_flag=yes msousa@353: ac_cv_prog_cxx_g=no msousa@353: CXXFLAGS="-g" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_cxx_try_compile "$LINENO"; then : msousa@353: ac_cv_prog_cxx_g=yes msousa@353: else msousa@353: CXXFLAGS="" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_cxx_try_compile "$LINENO"; then : msousa@353: msousa@353: else msousa@353: ac_cxx_werror_flag=$ac_save_cxx_werror_flag msousa@353: CXXFLAGS="-g" msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_cxx_try_compile "$LINENO"; then : msousa@353: ac_cv_prog_cxx_g=yes msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: ac_cxx_werror_flag=$ac_save_cxx_werror_flag msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 msousa@353: $as_echo "$ac_cv_prog_cxx_g" >&6; } msousa@353: if test "$ac_test_CXXFLAGS" = set; then msousa@353: CXXFLAGS=$ac_save_CXXFLAGS msousa@353: elif test $ac_cv_prog_cxx_g = yes; then msousa@353: if test "$GXX" = yes; then msousa@353: CXXFLAGS="-g -O2" msousa@353: else msousa@353: CXXFLAGS="-g" msousa@353: fi msousa@353: else msousa@353: if test "$GXX" = yes; then msousa@353: CXXFLAGS="-O2" msousa@353: else msousa@353: CXXFLAGS= msousa@353: fi msousa@353: fi msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: msousa@353: depcc="$CXX" am_compiler_list= msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 msousa@353: $as_echo_n "checking dependency style of $depcc... " >&6; } laurent@375: if ${am_cv_CXX_dependencies_compiler_type+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then msousa@353: # We make a subdir and do the tests there. Otherwise we can end up msousa@353: # making bogus files that we don't know about and never remove. For msousa@353: # instance it was reported that on HP-UX the gcc test will end up msousa@353: # making a dummy file named `D' -- because `-MD' means `put the output msousa@353: # in D'. msousa@353: mkdir conftest.dir msousa@353: # Copy depcomp to subdir because otherwise we won't find it if we're msousa@353: # using a relative directory. msousa@353: cp "$am_depcomp" conftest.dir msousa@353: cd conftest.dir msousa@353: # We will build objects and dependencies in a subdirectory because msousa@353: # it helps to detect inapplicable dependency modes. For instance msousa@353: # both Tru64's cc and ICC support -MD to output dependencies as a msousa@353: # side effect of compilation, but ICC will put the dependencies in msousa@353: # the current directory while Tru64 will put them in the object msousa@353: # directory. msousa@353: mkdir sub msousa@353: msousa@353: am_cv_CXX_dependencies_compiler_type=none msousa@353: if test "$am_compiler_list" = ""; then msousa@353: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` msousa@353: fi msousa@353: am__universal=false msousa@353: case " $depcc " in #( msousa@353: *\ -arch\ *\ -arch\ *) am__universal=true ;; msousa@353: esac msousa@353: msousa@353: for depmode in $am_compiler_list; do msousa@353: # Setup a source with many dependencies, because some compilers msousa@353: # like to wrap large dependency lists on column 80 (with \), and msousa@353: # we should not choose a depcomp mode which is confused by this. msousa@353: # msousa@353: # We need to recreate these files for each test, as the compiler may msousa@353: # overwrite some of them when testing with obscure command lines. msousa@353: # This happens at least with the AIX C compiler. msousa@353: : > sub/conftest.c msousa@353: for i in 1 2 3 4 5 6; do msousa@353: echo '#include "conftst'$i'.h"' >> sub/conftest.c msousa@353: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with msousa@353: # Solaris 8's {/usr,}/bin/sh. msousa@353: touch sub/conftst$i.h msousa@353: done msousa@353: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf msousa@353: msousa@353: # We check with `-c' and `-o' for the sake of the "dashmstdout" msousa@353: # mode. It turns out that the SunPro C++ compiler does not properly msousa@353: # handle `-M -o', and we need to detect this. Also, some Intel msousa@353: # versions had trouble with output in subdirs msousa@353: am__obj=sub/conftest.${OBJEXT-o} msousa@353: am__minus_obj="-o $am__obj" msousa@353: case $depmode in msousa@353: gcc) msousa@353: # This depmode causes a compiler race in universal mode. msousa@353: test "$am__universal" = false || continue msousa@353: ;; msousa@353: nosideeffect) msousa@353: # after this tag, mechanisms are not by side-effect, so they'll msousa@353: # only be used when explicitly requested msousa@353: if test "x$enable_dependency_tracking" = xyes; then msousa@353: continue msousa@353: else msousa@353: break msousa@353: fi msousa@353: ;; msousa@353: msvisualcpp | msvcmsys) msousa@353: # This compiler won't grok `-c -o', but also, the minuso test has msousa@353: # not run yet. These depmodes are late enough in the game, and msousa@353: # so weak that their functioning should not be impacted. msousa@353: am__obj=conftest.${OBJEXT-o} msousa@353: am__minus_obj= msousa@353: ;; msousa@353: none) break ;; msousa@353: esac msousa@353: if depmode=$depmode \ msousa@353: source=sub/conftest.c object=$am__obj \ msousa@353: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ msousa@353: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ msousa@353: >/dev/null 2>conftest.err && msousa@353: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && msousa@353: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && msousa@353: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && msousa@353: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then msousa@353: # icc doesn't choke on unknown options, it will just issue warnings msousa@353: # or remarks (even with -Werror). So we grep stderr for any message msousa@353: # that says an option was ignored or not supported. msousa@353: # When given -MP, icc 7.0 and 7.1 complain thusly: msousa@353: # icc: Command line warning: ignoring option '-M'; no argument required msousa@353: # The diagnosis changed in icc 8.0: msousa@353: # icc: Command line remark: option '-MP' not supported msousa@353: if (grep 'ignoring option' conftest.err || msousa@353: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else msousa@353: am_cv_CXX_dependencies_compiler_type=$depmode msousa@353: break msousa@353: fi msousa@353: fi msousa@353: done msousa@353: msousa@353: cd .. msousa@353: rm -rf conftest.dir msousa@353: else msousa@353: am_cv_CXX_dependencies_compiler_type=none msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 msousa@353: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } msousa@353: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type msousa@353: msousa@353: if msousa@353: test "x$enable_dependency_tracking" != xno \ msousa@353: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then msousa@353: am__fastdepCXX_TRUE= msousa@353: am__fastdepCXX_FALSE='#' msousa@353: else msousa@353: am__fastdepCXX_TRUE='#' msousa@353: am__fastdepCXX_FALSE= msousa@353: fi msousa@353: msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 msousa@353: $as_echo_n "checking whether ln -s works... " >&6; } msousa@353: LN_S=$as_ln_s msousa@353: if test "$LN_S" = "ln -s"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 msousa@353: $as_echo "yes" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 msousa@353: $as_echo "no, using $LN_S" >&6; } msousa@353: fi msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 msousa@353: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } msousa@353: set x ${MAKE-make} msousa@353: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` laurent@375: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat >conftest.make <<\_ACEOF msousa@353: SHELL = /bin/sh msousa@353: all: msousa@353: @echo '@@@%%%=$(MAKE)=@@@%%%' msousa@353: _ACEOF laurent@375: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. msousa@353: case `${MAKE-make} -f conftest.make 2>/dev/null` in msousa@353: *@@@%%%=?*=@@@%%%*) msousa@353: eval ac_cv_prog_make_${ac_make}_set=yes;; msousa@353: *) msousa@353: eval ac_cv_prog_make_${ac_make}_set=no;; msousa@353: esac msousa@353: rm -f conftest.make msousa@353: fi msousa@353: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 msousa@353: $as_echo "yes" >&6; } msousa@353: SET_MAKE= msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: SET_MAKE="MAKE=${MAKE-make}" msousa@353: fi msousa@353: msousa@353: if test -n "$ac_tool_prefix"; then msousa@353: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. msousa@353: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_RANLIB+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$RANLIB"; then msousa@353: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: RANLIB=$ac_cv_prog_RANLIB msousa@353: if test -n "$RANLIB"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 msousa@353: $as_echo "$RANLIB" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: msousa@353: fi msousa@353: if test -z "$ac_cv_prog_RANLIB"; then msousa@353: ac_ct_RANLIB=$RANLIB msousa@353: # Extract the first word of "ranlib", so it can be a program name with args. msousa@353: set dummy ranlib; ac_word=$2 msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 msousa@353: $as_echo_n "checking for $ac_word... " >&6; } laurent@375: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -n "$ac_ct_RANLIB"; then msousa@353: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. msousa@353: else msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then msousa@353: ac_cv_prog_ac_ct_RANLIB="ranlib" msousa@353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 msousa@353: break 2 msousa@353: fi msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: fi msousa@353: fi msousa@353: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB msousa@353: if test -n "$ac_ct_RANLIB"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 msousa@353: $as_echo "$ac_ct_RANLIB" >&6; } msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 msousa@353: $as_echo "no" >&6; } msousa@353: fi msousa@353: msousa@353: if test "x$ac_ct_RANLIB" = x; then msousa@353: RANLIB=":" msousa@353: else msousa@353: case $cross_compiling:$ac_tool_warned in msousa@353: yes:) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 msousa@353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} msousa@353: ac_tool_warned=yes ;; msousa@353: esac msousa@353: RANLIB=$ac_ct_RANLIB msousa@353: fi msousa@353: else msousa@353: RANLIB="$ac_cv_prog_RANLIB" msousa@353: fi msousa@353: msousa@353: msousa@353: # Checks for header files. msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 msousa@353: $as_echo_n "checking how to run the C preprocessor... " >&6; } msousa@353: # On Suns, sometimes $CPP names a directory. msousa@353: if test -n "$CPP" && test -d "$CPP"; then msousa@353: CPP= msousa@353: fi msousa@353: if test -z "$CPP"; then laurent@375: if ${ac_cv_prog_CPP+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: # Double quotes because CPP needs to be expanded msousa@353: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" msousa@353: do msousa@353: ac_preproc_ok=false msousa@353: for ac_c_preproc_warn_flag in '' yes msousa@353: do msousa@353: # Use a header file that comes with gcc, so configuring glibc msousa@353: # with a fresh cross-compiler works. msousa@353: # Prefer to if __STDC__ is defined, since msousa@353: # exists even on freestanding compilers. msousa@353: # On the NeXT, cc -E runs the code through the compiler's parser, msousa@353: # not just through cpp. "Syntax error" is here to catch this case. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #ifdef __STDC__ msousa@353: # include msousa@353: #else msousa@353: # include msousa@353: #endif msousa@353: Syntax error msousa@353: _ACEOF msousa@353: if ac_fn_c_try_cpp "$LINENO"; then : msousa@353: msousa@353: else msousa@353: # Broken: fails on valid input. msousa@353: continue msousa@353: fi laurent@375: rm -f conftest.err conftest.i conftest.$ac_ext msousa@353: msousa@353: # OK, works on sane cases. Now check whether nonexistent headers msousa@353: # can be detected and how. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: _ACEOF msousa@353: if ac_fn_c_try_cpp "$LINENO"; then : msousa@353: # Broken: success on invalid input. msousa@353: continue msousa@353: else msousa@353: # Passes both tests. msousa@353: ac_preproc_ok=: msousa@353: break msousa@353: fi laurent@375: rm -f conftest.err conftest.i conftest.$ac_ext msousa@353: msousa@353: done msousa@353: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. laurent@375: rm -f conftest.i conftest.err conftest.$ac_ext msousa@353: if $ac_preproc_ok; then : msousa@353: break msousa@353: fi msousa@353: msousa@353: done msousa@353: ac_cv_prog_CPP=$CPP msousa@353: msousa@353: fi msousa@353: CPP=$ac_cv_prog_CPP msousa@353: else msousa@353: ac_cv_prog_CPP=$CPP msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 msousa@353: $as_echo "$CPP" >&6; } msousa@353: ac_preproc_ok=false msousa@353: for ac_c_preproc_warn_flag in '' yes msousa@353: do msousa@353: # Use a header file that comes with gcc, so configuring glibc msousa@353: # with a fresh cross-compiler works. msousa@353: # Prefer to if __STDC__ is defined, since msousa@353: # exists even on freestanding compilers. msousa@353: # On the NeXT, cc -E runs the code through the compiler's parser, msousa@353: # not just through cpp. "Syntax error" is here to catch this case. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #ifdef __STDC__ msousa@353: # include msousa@353: #else msousa@353: # include msousa@353: #endif msousa@353: Syntax error msousa@353: _ACEOF msousa@353: if ac_fn_c_try_cpp "$LINENO"; then : msousa@353: msousa@353: else msousa@353: # Broken: fails on valid input. msousa@353: continue msousa@353: fi laurent@375: rm -f conftest.err conftest.i conftest.$ac_ext msousa@353: msousa@353: # OK, works on sane cases. Now check whether nonexistent headers msousa@353: # can be detected and how. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: _ACEOF msousa@353: if ac_fn_c_try_cpp "$LINENO"; then : msousa@353: # Broken: success on invalid input. msousa@353: continue msousa@353: else msousa@353: # Passes both tests. msousa@353: ac_preproc_ok=: msousa@353: break msousa@353: fi laurent@375: rm -f conftest.err conftest.i conftest.$ac_ext msousa@353: msousa@353: done msousa@353: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. laurent@375: rm -f conftest.i conftest.err conftest.$ac_ext msousa@353: if $ac_preproc_ok; then : msousa@353: msousa@353: else msousa@353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 msousa@353: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} laurent@375: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check laurent@375: See \`config.log' for more details" "$LINENO" 5; } msousa@353: fi msousa@353: msousa@353: ac_ext=c msousa@353: ac_cpp='$CPP $CPPFLAGS' msousa@353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' msousa@353: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' msousa@353: ac_compiler_gnu=$ac_cv_c_compiler_gnu msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 msousa@353: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } laurent@375: if ${ac_cv_path_GREP+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test -z "$GREP"; then msousa@353: ac_path_GREP_found=false msousa@353: # Loop through the user's path and test for each of PROGNAME-LIST msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_prog in grep ggrep; do msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" msousa@353: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue msousa@353: # Check for GNU ac_path_GREP and select it if it is found. msousa@353: # Check for GNU $ac_path_GREP msousa@353: case `"$ac_path_GREP" --version 2>&1` in msousa@353: *GNU*) msousa@353: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; msousa@353: *) msousa@353: ac_count=0 msousa@353: $as_echo_n 0123456789 >"conftest.in" msousa@353: while : msousa@353: do msousa@353: cat "conftest.in" "conftest.in" >"conftest.tmp" msousa@353: mv "conftest.tmp" "conftest.in" msousa@353: cp "conftest.in" "conftest.nl" msousa@353: $as_echo 'GREP' >> "conftest.nl" msousa@353: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break msousa@353: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break msousa@353: as_fn_arith $ac_count + 1 && ac_count=$as_val msousa@353: if test $ac_count -gt ${ac_path_GREP_max-0}; then msousa@353: # Best one so far, save it but keep looking for a better one msousa@353: ac_cv_path_GREP="$ac_path_GREP" msousa@353: ac_path_GREP_max=$ac_count msousa@353: fi msousa@353: # 10*(2^10) chars as input seems more than enough msousa@353: test $ac_count -gt 10 && break msousa@353: done msousa@353: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; msousa@353: esac msousa@353: msousa@353: $ac_path_GREP_found && break 3 msousa@353: done msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: if test -z "$ac_cv_path_GREP"; then laurent@375: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 msousa@353: fi msousa@353: else msousa@353: ac_cv_path_GREP=$GREP msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 msousa@353: $as_echo "$ac_cv_path_GREP" >&6; } msousa@353: GREP="$ac_cv_path_GREP" msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 msousa@353: $as_echo_n "checking for egrep... " >&6; } laurent@375: if ${ac_cv_path_EGREP+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 msousa@353: then ac_cv_path_EGREP="$GREP -E" msousa@353: else msousa@353: if test -z "$EGREP"; then msousa@353: ac_path_EGREP_found=false msousa@353: # Loop through the user's path and test for each of PROGNAME-LIST msousa@353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: for ac_prog in egrep; do msousa@353: for ac_exec_ext in '' $ac_executable_extensions; do msousa@353: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" msousa@353: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue msousa@353: # Check for GNU ac_path_EGREP and select it if it is found. msousa@353: # Check for GNU $ac_path_EGREP msousa@353: case `"$ac_path_EGREP" --version 2>&1` in msousa@353: *GNU*) msousa@353: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; msousa@353: *) msousa@353: ac_count=0 msousa@353: $as_echo_n 0123456789 >"conftest.in" msousa@353: while : msousa@353: do msousa@353: cat "conftest.in" "conftest.in" >"conftest.tmp" msousa@353: mv "conftest.tmp" "conftest.in" msousa@353: cp "conftest.in" "conftest.nl" msousa@353: $as_echo 'EGREP' >> "conftest.nl" msousa@353: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break msousa@353: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break msousa@353: as_fn_arith $ac_count + 1 && ac_count=$as_val msousa@353: if test $ac_count -gt ${ac_path_EGREP_max-0}; then msousa@353: # Best one so far, save it but keep looking for a better one msousa@353: ac_cv_path_EGREP="$ac_path_EGREP" msousa@353: ac_path_EGREP_max=$ac_count msousa@353: fi msousa@353: # 10*(2^10) chars as input seems more than enough msousa@353: test $ac_count -gt 10 && break msousa@353: done msousa@353: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; msousa@353: esac msousa@353: msousa@353: $ac_path_EGREP_found && break 3 msousa@353: done msousa@353: done msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: if test -z "$ac_cv_path_EGREP"; then laurent@375: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 msousa@353: fi msousa@353: else msousa@353: ac_cv_path_EGREP=$EGREP msousa@353: fi msousa@353: msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 msousa@353: $as_echo "$ac_cv_path_EGREP" >&6; } msousa@353: EGREP="$ac_cv_path_EGREP" msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 msousa@353: $as_echo_n "checking for ANSI C header files... " >&6; } laurent@375: if ${ac_cv_header_stdc+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: #include msousa@353: #include msousa@353: #include msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_header_stdc=yes msousa@353: else msousa@353: ac_cv_header_stdc=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: msousa@353: if test $ac_cv_header_stdc = yes; then msousa@353: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: msousa@353: _ACEOF msousa@353: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | msousa@353: $EGREP "memchr" >/dev/null 2>&1; then : msousa@353: msousa@353: else msousa@353: ac_cv_header_stdc=no msousa@353: fi msousa@353: rm -f conftest* msousa@353: msousa@353: fi msousa@353: msousa@353: if test $ac_cv_header_stdc = yes; then msousa@353: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: msousa@353: _ACEOF msousa@353: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | msousa@353: $EGREP "free" >/dev/null 2>&1; then : msousa@353: msousa@353: else msousa@353: ac_cv_header_stdc=no msousa@353: fi msousa@353: rm -f conftest* msousa@353: msousa@353: fi msousa@353: msousa@353: if test $ac_cv_header_stdc = yes; then msousa@353: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. msousa@353: if test "$cross_compiling" = yes; then : msousa@353: : msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: #include msousa@353: #if ((' ' & 0x0FF) == 0x020) msousa@353: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') msousa@353: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) msousa@353: #else msousa@353: # define ISLOWER(c) \ msousa@353: (('a' <= (c) && (c) <= 'i') \ msousa@353: || ('j' <= (c) && (c) <= 'r') \ msousa@353: || ('s' <= (c) && (c) <= 'z')) msousa@353: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) msousa@353: #endif msousa@353: msousa@353: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) msousa@353: int msousa@353: main () msousa@353: { msousa@353: int i; msousa@353: for (i = 0; i < 256; i++) msousa@353: if (XOR (islower (i), ISLOWER (i)) msousa@353: || toupper (i) != TOUPPER (i)) msousa@353: return 2; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_run "$LINENO"; then : msousa@353: msousa@353: else msousa@353: ac_cv_header_stdc=no msousa@353: fi msousa@353: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ msousa@353: conftest.$ac_objext conftest.beam conftest.$ac_ext msousa@353: fi msousa@353: msousa@353: fi msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 msousa@353: $as_echo "$ac_cv_header_stdc" >&6; } msousa@353: if test $ac_cv_header_stdc = yes; then msousa@353: msousa@353: $as_echo "#define STDC_HEADERS 1" >>confdefs.h msousa@353: msousa@353: fi msousa@353: msousa@353: # On IRIX 5.3, sys/types and inttypes.h are conflicting. msousa@353: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ msousa@353: inttypes.h stdint.h unistd.h msousa@353: do : msousa@353: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` msousa@353: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default msousa@353: " laurent@375: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: msousa@353: done msousa@353: msousa@353: msousa@353: for ac_header in float.h limits.h stdint.h stdlib.h string.h strings.h sys/timeb.h unistd.h msousa@353: do : msousa@353: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` msousa@353: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" laurent@375: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: msousa@353: done msousa@353: msousa@353: msousa@353: # Checks for typedefs, structures, and compiler characteristics. msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 msousa@353: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } laurent@375: if ${ac_cv_header_stdbool_h+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: msousa@353: #include msousa@353: #ifndef bool msousa@353: "error: bool is not defined" msousa@353: #endif msousa@353: #ifndef false msousa@353: "error: false is not defined" msousa@353: #endif msousa@353: #if false msousa@353: "error: false is not 0" msousa@353: #endif msousa@353: #ifndef true msousa@353: "error: true is not defined" msousa@353: #endif msousa@353: #if true != 1 msousa@353: "error: true is not 1" msousa@353: #endif msousa@353: #ifndef __bool_true_false_are_defined msousa@353: "error: __bool_true_false_are_defined is not defined" msousa@353: #endif msousa@353: msousa@353: struct s { _Bool s: 1; _Bool t; } s; msousa@353: msousa@353: char a[true == 1 ? 1 : -1]; msousa@353: char b[false == 0 ? 1 : -1]; msousa@353: char c[__bool_true_false_are_defined == 1 ? 1 : -1]; msousa@353: char d[(bool) 0.5 == true ? 1 : -1]; laurent@375: /* See body of main program for 'e'. */ msousa@353: char f[(_Bool) 0.0 == false ? 1 : -1]; msousa@353: char g[true]; msousa@353: char h[sizeof (_Bool)]; msousa@353: char i[sizeof s.t]; msousa@353: enum { j = false, k = true, l = false * true, m = true * 256 }; msousa@353: /* The following fails for msousa@353: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ msousa@353: _Bool n[m]; msousa@353: char o[sizeof n == m * sizeof n[0] ? 1 : -1]; msousa@353: char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; msousa@353: /* Catch a bug in an HP-UX C compiler. See msousa@353: http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html msousa@353: http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html msousa@353: */ msousa@353: _Bool q = true; msousa@353: _Bool *pq = &q; msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: laurent@375: bool e = &s; msousa@353: *pq |= q; msousa@353: *pq |= ! q; msousa@353: /* Refer to every declared value, to avoid compiler optimizations. */ msousa@353: return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l msousa@353: + !m + !n + !o + !p + !q + !pq); msousa@353: msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_header_stdbool_h=yes msousa@353: else msousa@353: ac_cv_header_stdbool_h=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 msousa@353: $as_echo "$ac_cv_header_stdbool_h" >&6; } msousa@353: ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" laurent@375: if test "x$ac_cv_type__Bool" = xyes; then : msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define HAVE__BOOL 1 msousa@353: _ACEOF msousa@353: msousa@353: msousa@353: fi msousa@353: msousa@353: if test $ac_cv_header_stdbool_h = yes; then msousa@353: msousa@353: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h msousa@353: msousa@353: fi msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 msousa@353: $as_echo_n "checking for inline... " >&6; } laurent@375: if ${ac_cv_c_inline+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: ac_cv_c_inline=no msousa@353: for ac_kw in inline __inline__ __inline; do msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #ifndef __cplusplus msousa@353: typedef int foo_t; msousa@353: static $ac_kw foo_t static_foo () {return 0; } msousa@353: $ac_kw foo_t foo () {return 0; } msousa@353: #endif msousa@353: msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_c_inline=$ac_kw msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: test "$ac_cv_c_inline" != no && break msousa@353: done msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 msousa@353: $as_echo "$ac_cv_c_inline" >&6; } msousa@353: msousa@353: case $ac_cv_c_inline in msousa@353: inline | yes) ;; msousa@353: *) msousa@353: case $ac_cv_c_inline in msousa@353: no) ac_val=;; msousa@353: *) ac_val=$ac_cv_c_inline;; msousa@353: esac msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #ifndef __cplusplus msousa@353: #define inline $ac_val msousa@353: #endif msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" msousa@353: case $ac_cv_c_int16_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define int16_t $ac_cv_c_int16_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" msousa@353: case $ac_cv_c_int32_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define int32_t $ac_cv_c_int32_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" msousa@353: case $ac_cv_c_int64_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define int64_t $ac_cv_c_int64_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" msousa@353: case $ac_cv_c_int8_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define int8_t $ac_cv_c_int8_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" msousa@353: case $ac_cv_c_uint16_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define uint16_t $ac_cv_c_uint16_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" msousa@353: case $ac_cv_c_uint32_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: $as_echo "#define _UINT32_T 1" >>confdefs.h msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define uint32_t $ac_cv_c_uint32_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" msousa@353: case $ac_cv_c_uint64_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: $as_echo "#define _UINT64_T 1" >>confdefs.h msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define uint64_t $ac_cv_c_uint64_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" msousa@353: case $ac_cv_c_uint8_t in #( msousa@353: no|yes) ;; #( msousa@353: *) msousa@353: msousa@353: $as_echo "#define _UINT8_T 1" >>confdefs.h msousa@353: msousa@353: msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define uint8_t $ac_cv_c_uint8_t msousa@353: _ACEOF msousa@353: ;; msousa@353: esac msousa@353: msousa@353: msousa@353: # Checks for library functions. msousa@353: for ac_header in stdlib.h msousa@353: do : msousa@353: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" laurent@375: if test "x$ac_cv_header_stdlib_h" = xyes; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define HAVE_STDLIB_H 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: msousa@353: done msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 msousa@353: $as_echo_n "checking for GNU libc compatible malloc... " >&6; } laurent@375: if ${ac_cv_func_malloc_0_nonnull+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test "$cross_compiling" = yes; then : msousa@353: ac_cv_func_malloc_0_nonnull=no msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #if defined STDC_HEADERS || defined HAVE_STDLIB_H msousa@353: # include msousa@353: #else msousa@353: char *malloc (); msousa@353: #endif msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: return ! malloc (0); msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_run "$LINENO"; then : msousa@353: ac_cv_func_malloc_0_nonnull=yes msousa@353: else msousa@353: ac_cv_func_malloc_0_nonnull=no msousa@353: fi msousa@353: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ msousa@353: conftest.$ac_objext conftest.beam conftest.$ac_ext msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 msousa@353: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } msousa@353: if test $ac_cv_func_malloc_0_nonnull = yes; then : msousa@353: msousa@353: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h msousa@353: msousa@353: else msousa@353: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h msousa@353: msousa@353: case " $LIBOBJS " in msousa@353: *" malloc.$ac_objext "* ) ;; msousa@353: *) LIBOBJS="$LIBOBJS malloc.$ac_objext" msousa@353: ;; msousa@353: esac msousa@353: msousa@353: msousa@353: $as_echo "#define malloc rpl_malloc" >>confdefs.h msousa@353: msousa@353: fi msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 msousa@353: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } laurent@375: if ${ac_cv_header_time+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #include msousa@353: #include msousa@353: #include msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: if ((struct tm *) 0) msousa@353: return 0; msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_compile "$LINENO"; then : msousa@353: ac_cv_header_time=yes msousa@353: else msousa@353: ac_cv_header_time=no msousa@353: fi msousa@353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 msousa@353: $as_echo "$ac_cv_header_time" >&6; } msousa@353: if test $ac_cv_header_time = yes; then msousa@353: msousa@353: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h msousa@353: msousa@353: fi msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: for ac_header in $ac_header_list msousa@353: do : msousa@353: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` msousa@353: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default msousa@353: " laurent@375: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: msousa@353: done msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: for ac_func in $ac_func_list msousa@353: do : msousa@353: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` msousa@353: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" laurent@375: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: done msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 msousa@353: $as_echo_n "checking for working mktime... " >&6; } laurent@375: if ${ac_cv_func_working_mktime+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test "$cross_compiling" = yes; then : msousa@353: ac_cv_func_working_mktime=no msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: /* Test program from Paul Eggert and Tony Leneis. */ msousa@353: #ifdef TIME_WITH_SYS_TIME msousa@353: # include msousa@353: # include msousa@353: #else msousa@353: # ifdef HAVE_SYS_TIME_H msousa@353: # include msousa@353: # else msousa@353: # include msousa@353: # endif msousa@353: #endif msousa@353: msousa@353: #include msousa@353: #include msousa@353: msousa@353: #ifdef HAVE_UNISTD_H msousa@353: # include msousa@353: #endif msousa@353: msousa@353: #ifndef HAVE_ALARM msousa@353: # define alarm(X) /* empty */ msousa@353: #endif msousa@353: msousa@353: /* Work around redefinition to rpl_putenv by other config tests. */ msousa@353: #undef putenv msousa@353: msousa@353: static time_t time_t_max; msousa@353: static time_t time_t_min; msousa@353: msousa@353: /* Values we'll use to set the TZ environment variable. */ laurent@375: static const char *tz_strings[] = { laurent@375: (const char *) 0, "TZ=GMT0", "TZ=JST-9", msousa@353: "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" msousa@353: }; msousa@353: #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) msousa@353: msousa@353: /* Return 0 if mktime fails to convert a date in the spring-forward gap. msousa@353: Based on a problem report from Andreas Jaeger. */ msousa@353: static int msousa@353: spring_forward_gap () msousa@353: { msousa@353: /* glibc (up to about 1998-10-07) failed this test. */ msousa@353: struct tm tm; msousa@353: msousa@353: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" msousa@353: instead of "TZ=America/Vancouver" in order to detect the bug even msousa@353: on systems that don't support the Olson extension, or don't have the msousa@353: full zoneinfo tables installed. */ laurent@375: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); msousa@353: msousa@353: tm.tm_year = 98; msousa@353: tm.tm_mon = 3; msousa@353: tm.tm_mday = 5; msousa@353: tm.tm_hour = 2; msousa@353: tm.tm_min = 0; msousa@353: tm.tm_sec = 0; msousa@353: tm.tm_isdst = -1; msousa@353: return mktime (&tm) != (time_t) -1; msousa@353: } msousa@353: msousa@353: static int laurent@375: mktime_test1 (time_t now) msousa@353: { msousa@353: struct tm *lt; msousa@353: return ! (lt = localtime (&now)) || mktime (lt) == now; msousa@353: } msousa@353: msousa@353: static int laurent@375: mktime_test (time_t now) msousa@353: { msousa@353: return (mktime_test1 (now) msousa@353: && mktime_test1 ((time_t) (time_t_max - now)) msousa@353: && mktime_test1 ((time_t) (time_t_min + now))); msousa@353: } msousa@353: msousa@353: static int msousa@353: irix_6_4_bug () msousa@353: { msousa@353: /* Based on code from Ariel Faigon. */ msousa@353: struct tm tm; msousa@353: tm.tm_year = 96; msousa@353: tm.tm_mon = 3; msousa@353: tm.tm_mday = 0; msousa@353: tm.tm_hour = 0; msousa@353: tm.tm_min = 0; msousa@353: tm.tm_sec = 0; msousa@353: tm.tm_isdst = -1; msousa@353: mktime (&tm); msousa@353: return tm.tm_mon == 2 && tm.tm_mday == 31; msousa@353: } msousa@353: msousa@353: static int laurent@375: bigtime_test (int j) msousa@353: { msousa@353: struct tm tm; msousa@353: time_t now; msousa@353: tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; msousa@353: now = mktime (&tm); msousa@353: if (now != (time_t) -1) msousa@353: { msousa@353: struct tm *lt = localtime (&now); msousa@353: if (! (lt msousa@353: && lt->tm_year == tm.tm_year msousa@353: && lt->tm_mon == tm.tm_mon msousa@353: && lt->tm_mday == tm.tm_mday msousa@353: && lt->tm_hour == tm.tm_hour msousa@353: && lt->tm_min == tm.tm_min msousa@353: && lt->tm_sec == tm.tm_sec msousa@353: && lt->tm_yday == tm.tm_yday msousa@353: && lt->tm_wday == tm.tm_wday msousa@353: && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) msousa@353: == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) msousa@353: return 0; msousa@353: } msousa@353: return 1; msousa@353: } msousa@353: msousa@353: static int msousa@353: year_2050_test () msousa@353: { msousa@353: /* The correct answer for 2050-02-01 00:00:00 in Pacific time, msousa@353: ignoring leap seconds. */ msousa@353: unsigned long int answer = 2527315200UL; msousa@353: msousa@353: struct tm tm; msousa@353: time_t t; msousa@353: tm.tm_year = 2050 - 1900; msousa@353: tm.tm_mon = 2 - 1; msousa@353: tm.tm_mday = 1; msousa@353: tm.tm_hour = tm.tm_min = tm.tm_sec = 0; msousa@353: tm.tm_isdst = -1; msousa@353: msousa@353: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" msousa@353: instead of "TZ=America/Vancouver" in order to detect the bug even msousa@353: on systems that don't support the Olson extension, or don't have the msousa@353: full zoneinfo tables installed. */ laurent@375: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); msousa@353: msousa@353: t = mktime (&tm); msousa@353: msousa@353: /* Check that the result is either a failure, or close enough msousa@353: to the correct answer that we can assume the discrepancy is msousa@353: due to leap seconds. */ msousa@353: return (t == (time_t) -1 msousa@353: || (0 < t && answer - 120 <= t && t <= answer + 120)); msousa@353: } msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: time_t t, delta; msousa@353: int i, j; msousa@353: msousa@353: /* This test makes some buggy mktime implementations loop. msousa@353: Give up after 60 seconds; a mktime slower than that msousa@353: isn't worth using anyway. */ msousa@353: alarm (60); msousa@353: msousa@353: for (;;) msousa@353: { msousa@353: t = (time_t_max << 1) + 1; msousa@353: if (t <= time_t_max) msousa@353: break; msousa@353: time_t_max = t; msousa@353: } msousa@353: time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; msousa@353: msousa@353: delta = time_t_max / 997; /* a suitable prime number */ msousa@353: for (i = 0; i < N_STRINGS; i++) msousa@353: { msousa@353: if (tz_strings[i]) laurent@375: putenv ((char*) tz_strings[i]); msousa@353: msousa@353: for (t = 0; t <= time_t_max - delta; t += delta) msousa@353: if (! mktime_test (t)) msousa@353: return 1; msousa@353: if (! (mktime_test ((time_t) 1) msousa@353: && mktime_test ((time_t) (60 * 60)) msousa@353: && mktime_test ((time_t) (60 * 60 * 24)))) msousa@353: return 1; msousa@353: msousa@353: for (j = 1; ; j <<= 1) msousa@353: if (! bigtime_test (j)) msousa@353: return 1; msousa@353: else if (INT_MAX / 2 < j) msousa@353: break; msousa@353: if (! bigtime_test (INT_MAX)) msousa@353: return 1; msousa@353: } msousa@353: return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_run "$LINENO"; then : msousa@353: ac_cv_func_working_mktime=yes msousa@353: else msousa@353: ac_cv_func_working_mktime=no msousa@353: fi msousa@353: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ msousa@353: conftest.$ac_objext conftest.beam conftest.$ac_ext msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 msousa@353: $as_echo "$ac_cv_func_working_mktime" >&6; } msousa@353: if test $ac_cv_func_working_mktime = no; then msousa@353: case " $LIBOBJS " in msousa@353: *" mktime.$ac_objext "* ) ;; msousa@353: *) LIBOBJS="$LIBOBJS mktime.$ac_objext" msousa@353: ;; msousa@353: esac msousa@353: msousa@353: fi msousa@353: msousa@353: for ac_header in stdlib.h msousa@353: do : msousa@353: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" laurent@375: if test "x$ac_cv_header_stdlib_h" = xyes; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define HAVE_STDLIB_H 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: msousa@353: done msousa@353: msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 msousa@353: $as_echo_n "checking for GNU libc compatible realloc... " >&6; } laurent@375: if ${ac_cv_func_realloc_0_nonnull+:} false; then : msousa@353: $as_echo_n "(cached) " >&6 msousa@353: else msousa@353: if test "$cross_compiling" = yes; then : msousa@353: ac_cv_func_realloc_0_nonnull=no msousa@353: else msousa@353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext msousa@353: /* end confdefs.h. */ msousa@353: #if defined STDC_HEADERS || defined HAVE_STDLIB_H msousa@353: # include msousa@353: #else msousa@353: char *realloc (); msousa@353: #endif msousa@353: msousa@353: int msousa@353: main () msousa@353: { msousa@353: return ! realloc (0, 0); msousa@353: ; msousa@353: return 0; msousa@353: } msousa@353: _ACEOF msousa@353: if ac_fn_c_try_run "$LINENO"; then : msousa@353: ac_cv_func_realloc_0_nonnull=yes msousa@353: else msousa@353: ac_cv_func_realloc_0_nonnull=no msousa@353: fi msousa@353: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ msousa@353: conftest.$ac_objext conftest.beam conftest.$ac_ext msousa@353: fi msousa@353: msousa@353: fi msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 msousa@353: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } msousa@353: if test $ac_cv_func_realloc_0_nonnull = yes; then : msousa@353: msousa@353: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h msousa@353: msousa@353: else msousa@353: $as_echo "#define HAVE_REALLOC 0" >>confdefs.h msousa@353: msousa@353: case " $LIBOBJS " in msousa@353: *" realloc.$ac_objext "* ) ;; msousa@353: *) LIBOBJS="$LIBOBJS realloc.$ac_objext" msousa@353: ;; msousa@353: esac msousa@353: msousa@353: msousa@353: $as_echo "#define realloc rpl_realloc" >>confdefs.h msousa@353: msousa@353: fi msousa@353: msousa@353: msousa@353: for ac_func in clock_gettime memset pow strcasecmp strdup strtoul strtoull msousa@353: do : msousa@353: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` msousa@353: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" laurent@375: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : msousa@353: cat >>confdefs.h <<_ACEOF msousa@353: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 msousa@353: _ACEOF msousa@353: msousa@353: fi msousa@353: done msousa@353: msousa@353: msousa@353: msousa@353: Matteo@369: ac_config_files="$ac_config_files Makefile absyntax/Makefile absyntax_utils/Makefile stage1_2/Makefile stage3/Makefile stage4/Makefile stage4/generate_c/Makefile stage4/generate_iec/Makefile" msousa@353: msousa@353: cat >confcache <<\_ACEOF msousa@353: # This file is a shell script that caches the results of configure msousa@353: # tests run on this system so they can be shared between configure msousa@353: # scripts and configure runs, see configure's option --config-cache. msousa@353: # It is not useful on other systems. If it contains results you don't msousa@353: # want to keep, you may remove or edit it. msousa@353: # msousa@353: # config.status only pays attention to the cache file if you give it msousa@353: # the --recheck option to rerun configure. msousa@353: # msousa@353: # `ac_cv_env_foo' variables (set or unset) will be overridden when msousa@353: # loading this file, other *unset* `ac_cv_foo' will be assigned the msousa@353: # following values. msousa@353: msousa@353: _ACEOF msousa@353: msousa@353: # The following way of writing the cache mishandles newlines in values, msousa@353: # but we know of no workaround that is simple, portable, and efficient. msousa@353: # So, we kill variables containing newlines. msousa@353: # Ultrix sh set writes to stderr and can't be redirected directly, msousa@353: # and sets the high bit in the cache file unless we assign to the vars. msousa@353: ( msousa@353: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do msousa@353: eval ac_val=\$$ac_var msousa@353: case $ac_val in #( msousa@353: *${as_nl}*) msousa@353: case $ac_var in #( msousa@353: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 msousa@353: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; msousa@353: esac msousa@353: case $ac_var in #( msousa@353: _ | IFS | as_nl) ;; #( msousa@353: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( msousa@353: *) { eval $ac_var=; unset $ac_var;} ;; msousa@353: esac ;; msousa@353: esac msousa@353: done msousa@353: msousa@353: (set) 2>&1 | msousa@353: case $as_nl`(ac_space=' '; set) 2>&1` in #( msousa@353: *${as_nl}ac_space=\ *) msousa@353: # `set' does not quote correctly, so add quotes: double-quote msousa@353: # substitution turns \\\\ into \\, and sed turns \\ into \. msousa@353: sed -n \ msousa@353: "s/'/'\\\\''/g; msousa@353: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" msousa@353: ;; #( msousa@353: *) msousa@353: # `set' quotes correctly as required by POSIX, so do not add quotes. msousa@353: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" msousa@353: ;; msousa@353: esac | msousa@353: sort msousa@353: ) | msousa@353: sed ' msousa@353: /^ac_cv_env_/b end msousa@353: t clear msousa@353: :clear msousa@353: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ msousa@353: t end msousa@353: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ msousa@353: :end' >>confcache msousa@353: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else msousa@353: if test -w "$cache_file"; then laurent@375: if test "x$cache_file" != "x/dev/null"; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 msousa@353: $as_echo "$as_me: updating cache $cache_file" >&6;} laurent@375: if test ! -f "$cache_file" || test -h "$cache_file"; then laurent@375: cat confcache >"$cache_file" laurent@375: else laurent@375: case $cache_file in #( laurent@375: */* | ?:*) laurent@375: mv -f confcache "$cache_file"$$ && laurent@375: mv -f "$cache_file"$$ "$cache_file" ;; #( laurent@375: *) laurent@375: mv -f confcache "$cache_file" ;; laurent@375: esac laurent@375: fi laurent@375: fi msousa@353: else msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 msousa@353: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} msousa@353: fi msousa@353: fi msousa@353: rm -f confcache msousa@353: msousa@353: test "x$prefix" = xNONE && prefix=$ac_default_prefix msousa@353: # Let make expand exec_prefix. msousa@353: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' msousa@353: msousa@353: DEFS=-DHAVE_CONFIG_H msousa@353: msousa@353: ac_libobjs= msousa@353: ac_ltlibobjs= laurent@375: U= msousa@353: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue msousa@353: # 1. Remove the extension, and $U if already installed. msousa@353: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' msousa@353: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` msousa@353: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR msousa@353: # will be set to the directory where LIBOBJS objects are built. msousa@353: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" msousa@353: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' msousa@353: done msousa@353: LIBOBJS=$ac_libobjs msousa@353: msousa@353: LTLIBOBJS=$ac_ltlibobjs msousa@353: msousa@353: msousa@353: if test -n "$EXEEXT"; then msousa@353: am__EXEEXT_TRUE= msousa@353: am__EXEEXT_FALSE='#' msousa@353: else msousa@353: am__EXEEXT_TRUE='#' msousa@353: am__EXEEXT_FALSE= msousa@353: fi msousa@353: msousa@353: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then laurent@375: as_fn_error $? "conditional \"AMDEP\" was never defined. msousa@353: Usually this means the macro was only invoked conditionally." "$LINENO" 5 msousa@353: fi msousa@353: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then laurent@375: as_fn_error $? "conditional \"am__fastdepCC\" was never defined. msousa@353: Usually this means the macro was only invoked conditionally." "$LINENO" 5 msousa@353: fi msousa@353: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then laurent@375: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. msousa@353: Usually this means the macro was only invoked conditionally." "$LINENO" 5 msousa@353: fi msousa@353: laurent@375: : "${CONFIG_STATUS=./config.status}" msousa@353: ac_write_fail=0 msousa@353: ac_clean_files_save=$ac_clean_files msousa@353: ac_clean_files="$ac_clean_files $CONFIG_STATUS" msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 msousa@353: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} msousa@353: as_write_fail=0 msousa@353: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 msousa@353: #! $SHELL msousa@353: # Generated by $as_me. msousa@353: # Run this file to recreate the current configuration. msousa@353: # Compiler output produced by configure, useful for debugging msousa@353: # configure, is in config.log if it exists. msousa@353: msousa@353: debug=false msousa@353: ac_cs_recheck=false msousa@353: ac_cs_silent=false msousa@353: msousa@353: SHELL=\${CONFIG_SHELL-$SHELL} msousa@353: export SHELL msousa@353: _ASEOF msousa@353: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 msousa@353: ## -------------------- ## msousa@353: ## M4sh Initialization. ## msousa@353: ## -------------------- ## msousa@353: msousa@353: # Be more Bourne compatible msousa@353: DUALCASE=1; export DUALCASE # for MKS sh msousa@353: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : msousa@353: emulate sh msousa@353: NULLCMD=: msousa@353: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which msousa@353: # is contrary to our usage. Disable this feature. msousa@353: alias -g '${1+"$@"}'='"$@"' msousa@353: setopt NO_GLOB_SUBST msousa@353: else msousa@353: case `(set -o) 2>/dev/null` in #( msousa@353: *posix*) : msousa@353: set -o posix ;; #( msousa@353: *) : msousa@353: ;; msousa@353: esac msousa@353: fi msousa@353: msousa@353: msousa@353: as_nl=' msousa@353: ' msousa@353: export as_nl msousa@353: # Printing a long string crashes Solaris 7 /usr/bin/printf. msousa@353: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' msousa@353: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo msousa@353: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo msousa@353: # Prefer a ksh shell builtin over an external printf program on Solaris, msousa@353: # but without wasting forks for bash or zsh. msousa@353: if test -z "$BASH_VERSION$ZSH_VERSION" \ msousa@353: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then msousa@353: as_echo='print -r --' msousa@353: as_echo_n='print -rn --' msousa@353: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then msousa@353: as_echo='printf %s\n' msousa@353: as_echo_n='printf %s' msousa@353: else msousa@353: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then msousa@353: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' msousa@353: as_echo_n='/usr/ucb/echo -n' msousa@353: else msousa@353: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' msousa@353: as_echo_n_body='eval msousa@353: arg=$1; msousa@353: case $arg in #( msousa@353: *"$as_nl"*) msousa@353: expr "X$arg" : "X\\(.*\\)$as_nl"; msousa@353: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; msousa@353: esac; msousa@353: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" msousa@353: ' msousa@353: export as_echo_n_body msousa@353: as_echo_n='sh -c $as_echo_n_body as_echo' msousa@353: fi msousa@353: export as_echo_body msousa@353: as_echo='sh -c $as_echo_body as_echo' msousa@353: fi msousa@353: msousa@353: # The user is always right. msousa@353: if test "${PATH_SEPARATOR+set}" != set; then msousa@353: PATH_SEPARATOR=: msousa@353: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { msousa@353: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || msousa@353: PATH_SEPARATOR=';' msousa@353: } msousa@353: fi msousa@353: msousa@353: msousa@353: # IFS msousa@353: # We need space, tab and new line, in precisely that order. Quoting is msousa@353: # there to prevent editors from complaining about space-tab. msousa@353: # (If _AS_PATH_WALK were called with IFS unset, it would disable word msousa@353: # splitting by setting IFS to empty value.) msousa@353: IFS=" "" $as_nl" msousa@353: msousa@353: # Find who we are. Look in the path if we contain no directory separator. laurent@375: as_myself= msousa@353: case $0 in #(( msousa@353: *[\\/]* ) as_myself=$0 ;; msousa@353: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR msousa@353: for as_dir in $PATH msousa@353: do msousa@353: IFS=$as_save_IFS msousa@353: test -z "$as_dir" && as_dir=. msousa@353: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break msousa@353: done msousa@353: IFS=$as_save_IFS msousa@353: msousa@353: ;; msousa@353: esac msousa@353: # We did not find ourselves, most probably we were run as `sh COMMAND' msousa@353: # in which case we are not to be found in the path. msousa@353: if test "x$as_myself" = x; then msousa@353: as_myself=$0 msousa@353: fi msousa@353: if test ! -f "$as_myself"; then msousa@353: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 msousa@353: exit 1 msousa@353: fi msousa@353: msousa@353: # Unset variables that we do not need and which cause bugs (e.g. in msousa@353: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" msousa@353: # suppresses any "Segmentation fault" message there. '((' could msousa@353: # trigger a bug in pdksh 5.2.14. msousa@353: for as_var in BASH_ENV ENV MAIL MAILPATH msousa@353: do eval test x\${$as_var+set} = xset \ msousa@353: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : msousa@353: done msousa@353: PS1='$ ' msousa@353: PS2='> ' msousa@353: PS4='+ ' msousa@353: msousa@353: # NLS nuisances. msousa@353: LC_ALL=C msousa@353: export LC_ALL msousa@353: LANGUAGE=C msousa@353: export LANGUAGE msousa@353: msousa@353: # CDPATH. msousa@353: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH msousa@353: msousa@353: laurent@375: # as_fn_error STATUS ERROR [LINENO LOG_FD] laurent@375: # ---------------------------------------- msousa@353: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are msousa@353: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the laurent@375: # script with STATUS, using 1 if that was 0. msousa@353: as_fn_error () msousa@353: { laurent@375: as_status=$1; test $as_status -eq 0 && as_status=1 laurent@375: if test "$4"; then laurent@375: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack laurent@375: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 msousa@353: fi laurent@375: $as_echo "$as_me: error: $2" >&2 msousa@353: as_fn_exit $as_status msousa@353: } # as_fn_error msousa@353: msousa@353: msousa@353: # as_fn_set_status STATUS msousa@353: # ----------------------- msousa@353: # Set $? to STATUS, without forking. msousa@353: as_fn_set_status () msousa@353: { msousa@353: return $1 msousa@353: } # as_fn_set_status msousa@353: msousa@353: # as_fn_exit STATUS msousa@353: # ----------------- msousa@353: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. msousa@353: as_fn_exit () msousa@353: { msousa@353: set +e msousa@353: as_fn_set_status $1 msousa@353: exit $1 msousa@353: } # as_fn_exit msousa@353: msousa@353: # as_fn_unset VAR msousa@353: # --------------- msousa@353: # Portably unset VAR. msousa@353: as_fn_unset () msousa@353: { msousa@353: { eval $1=; unset $1;} msousa@353: } msousa@353: as_unset=as_fn_unset msousa@353: # as_fn_append VAR VALUE msousa@353: # ---------------------- msousa@353: # Append the text in VALUE to the end of the definition contained in VAR. Take msousa@353: # advantage of any shell optimizations that allow amortized linear growth over msousa@353: # repeated appends, instead of the typical quadratic growth present in naive msousa@353: # implementations. msousa@353: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : msousa@353: eval 'as_fn_append () msousa@353: { msousa@353: eval $1+=\$2 msousa@353: }' msousa@353: else msousa@353: as_fn_append () msousa@353: { msousa@353: eval $1=\$$1\$2 msousa@353: } msousa@353: fi # as_fn_append msousa@353: msousa@353: # as_fn_arith ARG... msousa@353: # ------------------ msousa@353: # Perform arithmetic evaluation on the ARGs, and store the result in the msousa@353: # global $as_val. Take advantage of shells that can avoid forks. The arguments msousa@353: # must be portable across $(()) and expr. msousa@353: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : msousa@353: eval 'as_fn_arith () msousa@353: { msousa@353: as_val=$(( $* )) msousa@353: }' msousa@353: else msousa@353: as_fn_arith () msousa@353: { msousa@353: as_val=`expr "$@" || test $? -eq 1` msousa@353: } msousa@353: fi # as_fn_arith msousa@353: msousa@353: msousa@353: if expr a : '\(a\)' >/dev/null 2>&1 && msousa@353: test "X`expr 00001 : '.*\(...\)'`" = X001; then msousa@353: as_expr=expr msousa@353: else msousa@353: as_expr=false msousa@353: fi msousa@353: msousa@353: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then msousa@353: as_basename=basename msousa@353: else msousa@353: as_basename=false msousa@353: fi msousa@353: msousa@353: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then msousa@353: as_dirname=dirname msousa@353: else msousa@353: as_dirname=false msousa@353: fi msousa@353: msousa@353: as_me=`$as_basename -- "$0" || msousa@353: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ msousa@353: X"$0" : 'X\(//\)$' \| \ msousa@353: X"$0" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X/"$0" | msousa@353: sed '/^.*\/\([^/][^/]*\)\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\/\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\/\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: msousa@353: # Avoid depending upon Character Ranges. msousa@353: as_cr_letters='abcdefghijklmnopqrstuvwxyz' msousa@353: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' msousa@353: as_cr_Letters=$as_cr_letters$as_cr_LETTERS msousa@353: as_cr_digits='0123456789' msousa@353: as_cr_alnum=$as_cr_Letters$as_cr_digits msousa@353: msousa@353: ECHO_C= ECHO_N= ECHO_T= msousa@353: case `echo -n x` in #((((( msousa@353: -n*) msousa@353: case `echo 'xy\c'` in msousa@353: *c*) ECHO_T=' ';; # ECHO_T is single tab character. msousa@353: xy) ECHO_C='\c';; msousa@353: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null msousa@353: ECHO_T=' ';; msousa@353: esac;; msousa@353: *) msousa@353: ECHO_N='-n';; msousa@353: esac msousa@353: msousa@353: rm -f conf$$ conf$$.exe conf$$.file msousa@353: if test -d conf$$.dir; then msousa@353: rm -f conf$$.dir/conf$$.file msousa@353: else msousa@353: rm -f conf$$.dir msousa@353: mkdir conf$$.dir 2>/dev/null msousa@353: fi msousa@353: if (echo >conf$$.file) 2>/dev/null; then msousa@353: if ln -s conf$$.file conf$$ 2>/dev/null; then msousa@353: as_ln_s='ln -s' msousa@353: # ... but there are two gotchas: msousa@353: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. msousa@353: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. msousa@353: # In both cases, we have to default to `cp -p'. msousa@353: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || msousa@353: as_ln_s='cp -p' msousa@353: elif ln conf$$.file conf$$ 2>/dev/null; then msousa@353: as_ln_s=ln msousa@353: else msousa@353: as_ln_s='cp -p' msousa@353: fi msousa@353: else msousa@353: as_ln_s='cp -p' msousa@353: fi msousa@353: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file msousa@353: rmdir conf$$.dir 2>/dev/null msousa@353: msousa@353: msousa@353: # as_fn_mkdir_p msousa@353: # ------------- msousa@353: # Create "$as_dir" as a directory, including parents if necessary. msousa@353: as_fn_mkdir_p () msousa@353: { msousa@353: msousa@353: case $as_dir in #( msousa@353: -*) as_dir=./$as_dir;; msousa@353: esac msousa@353: test -d "$as_dir" || eval $as_mkdir_p || { msousa@353: as_dirs= msousa@353: while :; do msousa@353: case $as_dir in #( msousa@353: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( msousa@353: *) as_qdir=$as_dir;; msousa@353: esac msousa@353: as_dirs="'$as_qdir' $as_dirs" msousa@353: as_dir=`$as_dirname -- "$as_dir" || msousa@353: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$as_dir" : 'X\(//\)[^/]' \| \ msousa@353: X"$as_dir" : 'X\(//\)$' \| \ msousa@353: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$as_dir" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: test -d "$as_dir" && break msousa@353: done msousa@353: test -z "$as_dirs" || eval "mkdir $as_dirs" laurent@375: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" msousa@353: msousa@353: msousa@353: } # as_fn_mkdir_p msousa@353: if mkdir -p . 2>/dev/null; then msousa@353: as_mkdir_p='mkdir -p "$as_dir"' msousa@353: else msousa@353: test -d ./-p && rmdir ./-p msousa@353: as_mkdir_p=false msousa@353: fi msousa@353: msousa@353: if test -x / >/dev/null 2>&1; then msousa@353: as_test_x='test -x' msousa@353: else msousa@353: if ls -dL / >/dev/null 2>&1; then msousa@353: as_ls_L_option=L msousa@353: else msousa@353: as_ls_L_option= msousa@353: fi msousa@353: as_test_x=' msousa@353: eval sh -c '\'' msousa@353: if test -d "$1"; then msousa@353: test -d "$1/."; msousa@353: else msousa@353: case $1 in #( msousa@353: -*)set "./$1";; msousa@353: esac; msousa@353: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( msousa@353: ???[sx]*):;;*)false;;esac;fi msousa@353: '\'' sh msousa@353: ' msousa@353: fi msousa@353: as_executable_p=$as_test_x msousa@353: msousa@353: # Sed expression to map a string onto a valid CPP name. msousa@353: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" msousa@353: msousa@353: # Sed expression to map a string onto a valid variable name. msousa@353: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" msousa@353: msousa@353: msousa@353: exec 6>&1 msousa@353: ## ----------------------------------- ## msousa@353: ## Main body of $CONFIG_STATUS script. ## msousa@353: ## ----------------------------------- ## msousa@353: _ASEOF msousa@353: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: # Save the log message, to keep $0 and so on meaningful, and to msousa@353: # report actual input values of CONFIG_FILES etc. instead of their msousa@353: # values after options handling. msousa@353: ac_log=" msousa@353: This file was extended by matiec $as_me 0.1, which was laurent@375: generated by GNU Autoconf 2.68. Invocation command line was msousa@353: msousa@353: CONFIG_FILES = $CONFIG_FILES msousa@353: CONFIG_HEADERS = $CONFIG_HEADERS msousa@353: CONFIG_LINKS = $CONFIG_LINKS msousa@353: CONFIG_COMMANDS = $CONFIG_COMMANDS msousa@353: $ $0 $@ msousa@353: msousa@353: on `(hostname || uname -n) 2>/dev/null | sed 1q` msousa@353: " msousa@353: msousa@353: _ACEOF msousa@353: msousa@353: case $ac_config_files in *" msousa@353: "*) set x $ac_config_files; shift; ac_config_files=$*;; msousa@353: esac msousa@353: msousa@353: case $ac_config_headers in *" msousa@353: "*) set x $ac_config_headers; shift; ac_config_headers=$*;; msousa@353: esac msousa@353: msousa@353: msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: # Files that config.status was made for. laurent@375: config_files="$ac_config_files" laurent@375: config_headers="$ac_config_headers" laurent@375: config_commands="$ac_config_commands" msousa@353: msousa@353: _ACEOF msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: ac_cs_usage="\ msousa@353: \`$as_me' instantiates files and other configuration actions msousa@353: from templates according to the current configuration. Unless the files msousa@353: and actions are specified as TAGs, all are instantiated by default. msousa@353: msousa@353: Usage: $0 [OPTION]... [TAG]... msousa@353: msousa@353: -h, --help print this help, then exit msousa@353: -V, --version print version number and configuration settings, then exit msousa@353: --config print configuration, then exit msousa@353: -q, --quiet, --silent msousa@353: do not print progress messages msousa@353: -d, --debug don't remove temporary files msousa@353: --recheck update $as_me by reconfiguring in the same conditions msousa@353: --file=FILE[:TEMPLATE] msousa@353: instantiate the configuration file FILE msousa@353: --header=FILE[:TEMPLATE] msousa@353: instantiate the configuration header FILE msousa@353: msousa@353: Configuration files: msousa@353: $config_files msousa@353: msousa@353: Configuration headers: msousa@353: $config_headers msousa@353: msousa@353: Configuration commands: msousa@353: $config_commands msousa@353: msousa@363: Report bugs to ." msousa@353: msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" msousa@353: ac_cs_version="\\ msousa@353: matiec config.status 0.1 laurent@375: configured by $0, generated by GNU Autoconf 2.68, msousa@353: with options \\"\$ac_cs_config\\" msousa@353: laurent@375: Copyright (C) 2010 Free Software Foundation, Inc. msousa@353: This config.status script is free software; the Free Software Foundation msousa@353: gives unlimited permission to copy, distribute and modify it." msousa@353: msousa@353: ac_pwd='$ac_pwd' msousa@353: srcdir='$srcdir' msousa@353: INSTALL='$INSTALL' msousa@353: MKDIR_P='$MKDIR_P' msousa@353: AWK='$AWK' msousa@353: test -n "\$AWK" || AWK=awk msousa@353: _ACEOF msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: # The default lists apply if the user does not specify any file. msousa@353: ac_need_defaults=: msousa@353: while test $# != 0 msousa@353: do msousa@353: case $1 in laurent@375: --*=?*) msousa@353: ac_option=`expr "X$1" : 'X\([^=]*\)='` msousa@353: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` msousa@353: ac_shift=: msousa@353: ;; laurent@375: --*=) laurent@375: ac_option=`expr "X$1" : 'X\([^=]*\)='` laurent@375: ac_optarg= laurent@375: ac_shift=: laurent@375: ;; msousa@353: *) msousa@353: ac_option=$1 msousa@353: ac_optarg=$2 msousa@353: ac_shift=shift msousa@353: ;; msousa@353: esac msousa@353: msousa@353: case $ac_option in msousa@353: # Handling of the options. msousa@353: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) msousa@353: ac_cs_recheck=: ;; msousa@353: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) msousa@353: $as_echo "$ac_cs_version"; exit ;; msousa@353: --config | --confi | --conf | --con | --co | --c ) msousa@353: $as_echo "$ac_cs_config"; exit ;; msousa@353: --debug | --debu | --deb | --de | --d | -d ) msousa@353: debug=: ;; msousa@353: --file | --fil | --fi | --f ) msousa@353: $ac_shift msousa@353: case $ac_optarg in msousa@353: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; laurent@375: '') as_fn_error $? "missing file argument" ;; msousa@353: esac msousa@353: as_fn_append CONFIG_FILES " '$ac_optarg'" msousa@353: ac_need_defaults=false;; msousa@353: --header | --heade | --head | --hea ) msousa@353: $ac_shift msousa@353: case $ac_optarg in msousa@353: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; msousa@353: esac msousa@353: as_fn_append CONFIG_HEADERS " '$ac_optarg'" msousa@353: ac_need_defaults=false;; msousa@353: --he | --h) msousa@353: # Conflict between --help and --header laurent@375: as_fn_error $? "ambiguous option: \`$1' msousa@353: Try \`$0 --help' for more information.";; msousa@353: --help | --hel | -h ) msousa@353: $as_echo "$ac_cs_usage"; exit ;; msousa@353: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ msousa@353: | -silent | --silent | --silen | --sile | --sil | --si | --s) msousa@353: ac_cs_silent=: ;; msousa@353: msousa@353: # This is an error. laurent@375: -*) as_fn_error $? "unrecognized option: \`$1' msousa@353: Try \`$0 --help' for more information." ;; msousa@353: msousa@353: *) as_fn_append ac_config_targets " $1" msousa@353: ac_need_defaults=false ;; msousa@353: msousa@353: esac msousa@353: shift msousa@353: done msousa@353: msousa@353: ac_configure_extra_args= msousa@353: msousa@353: if $ac_cs_silent; then msousa@353: exec 6>/dev/null msousa@353: ac_configure_extra_args="$ac_configure_extra_args --silent" msousa@353: fi msousa@353: msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: if \$ac_cs_recheck; then msousa@353: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion msousa@353: shift msousa@353: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 msousa@353: CONFIG_SHELL='$SHELL' msousa@353: export CONFIG_SHELL msousa@353: exec "\$@" msousa@353: fi msousa@353: msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: exec 5>>config.log msousa@353: { msousa@353: echo msousa@353: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX msousa@353: ## Running $as_me. ## msousa@353: _ASBOX msousa@353: $as_echo "$ac_log" msousa@353: } >&5 msousa@353: msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: # msousa@353: # INIT-COMMANDS msousa@353: # msousa@353: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" msousa@353: msousa@353: _ACEOF msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: msousa@353: # Handling of arguments. msousa@353: for ac_config_target in $ac_config_targets msousa@353: do msousa@353: case $ac_config_target in msousa@353: "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; msousa@353: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; msousa@353: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; msousa@353: "absyntax/Makefile") CONFIG_FILES="$CONFIG_FILES absyntax/Makefile" ;; msousa@353: "absyntax_utils/Makefile") CONFIG_FILES="$CONFIG_FILES absyntax_utils/Makefile" ;; msousa@353: "stage1_2/Makefile") CONFIG_FILES="$CONFIG_FILES stage1_2/Makefile" ;; msousa@353: "stage3/Makefile") CONFIG_FILES="$CONFIG_FILES stage3/Makefile" ;; msousa@353: "stage4/Makefile") CONFIG_FILES="$CONFIG_FILES stage4/Makefile" ;; Matteo@369: "stage4/generate_c/Makefile") CONFIG_FILES="$CONFIG_FILES stage4/generate_c/Makefile" ;; Matteo@369: "stage4/generate_iec/Makefile") CONFIG_FILES="$CONFIG_FILES stage4/generate_iec/Makefile" ;; msousa@353: laurent@375: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; msousa@353: esac msousa@353: done msousa@353: msousa@353: msousa@353: # If the user did not use the arguments to specify the items to instantiate, msousa@353: # then the envvar interface is used. Set only those that are not. msousa@353: # We use the long form for the default assignment because of an extremely msousa@353: # bizarre bug on SunOS 4.1.3. msousa@353: if $ac_need_defaults; then msousa@353: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files msousa@353: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers msousa@353: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands msousa@353: fi msousa@353: msousa@353: # Have a temporary directory for convenience. Make it in the build tree msousa@353: # simply because there is no reason against having it here, and in addition, msousa@353: # creating and moving files from /tmp can sometimes cause problems. msousa@353: # Hook for its removal unless debugging. msousa@353: # Note that there is a small window in which the directory will not be cleaned: msousa@353: # after its creation but before its name has been assigned to `$tmp'. msousa@353: $debug || msousa@353: { laurent@375: tmp= ac_tmp= msousa@353: trap 'exit_status=$? laurent@375: : "${ac_tmp:=$tmp}" laurent@375: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status msousa@353: ' 0 msousa@353: trap 'as_fn_exit 1' 1 2 13 15 msousa@353: } msousa@353: # Create a (secure) tmp directory for tmp files. msousa@353: msousa@353: { msousa@353: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && laurent@375: test -d "$tmp" msousa@353: } || msousa@353: { msousa@353: tmp=./conf$$-$RANDOM msousa@353: (umask 077 && mkdir "$tmp") laurent@375: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 laurent@375: ac_tmp=$tmp msousa@353: msousa@353: # Set up the scripts for CONFIG_FILES section. msousa@353: # No need to generate them if there are no CONFIG_FILES. msousa@353: # This happens for instance with `./config.status config.h'. msousa@353: if test -n "$CONFIG_FILES"; then msousa@353: msousa@353: msousa@353: ac_cr=`echo X | tr X '\015'` msousa@353: # On cygwin, bash can eat \r inside `` if the user requested igncr. msousa@353: # But we know of no other shell where ac_cr would be empty at this msousa@353: # point, so we can use a bashism as a fallback. msousa@353: if test "x$ac_cr" = x; then msousa@353: eval ac_cr=\$\'\\r\' msousa@353: fi msousa@353: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` msousa@353: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then laurent@375: ac_cs_awk_cr='\\r' msousa@353: else msousa@353: ac_cs_awk_cr=$ac_cr msousa@353: fi msousa@353: laurent@375: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && msousa@353: _ACEOF msousa@353: msousa@353: msousa@353: { msousa@353: echo "cat >conf$$subs.awk <<_ACEOF" && msousa@353: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && msousa@353: echo "_ACEOF" msousa@353: } >conf$$subs.sh || laurent@375: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 laurent@375: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` msousa@353: ac_delim='%!_!# ' msousa@353: for ac_last_try in false false false false false :; do msousa@353: . ./conf$$subs.sh || laurent@375: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 msousa@353: msousa@353: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` msousa@353: if test $ac_delim_n = $ac_delim_num; then msousa@353: break msousa@353: elif $ac_last_try; then laurent@375: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 msousa@353: else msousa@353: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " msousa@353: fi msousa@353: done msousa@353: rm -f conf$$subs.sh msousa@353: msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 laurent@375: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && msousa@353: _ACEOF msousa@353: sed -n ' msousa@353: h msousa@353: s/^/S["/; s/!.*/"]=/ msousa@353: p msousa@353: g msousa@353: s/^[^!]*!// msousa@353: :repl msousa@353: t repl msousa@353: s/'"$ac_delim"'$// msousa@353: t delim msousa@353: :nl msousa@353: h msousa@353: s/\(.\{148\}\)..*/\1/ msousa@353: t more1 msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ msousa@353: p msousa@353: n msousa@353: b repl msousa@353: :more1 msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ msousa@353: p msousa@353: g msousa@353: s/.\{148\}// msousa@353: t nl msousa@353: :delim msousa@353: h msousa@353: s/\(.\{148\}\)..*/\1/ msousa@353: t more2 msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/"/ msousa@353: p msousa@353: b msousa@353: :more2 msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ msousa@353: p msousa@353: g msousa@353: s/.\{148\}// msousa@353: t delim msousa@353: ' >$CONFIG_STATUS || ac_write_fail=1 msousa@353: rm -f conf$$subs.awk msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: _ACAWK laurent@375: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && msousa@353: for (key in S) S_is_set[key] = 1 msousa@353: FS = "" msousa@353: msousa@353: } msousa@353: { msousa@353: line = $ 0 msousa@353: nfields = split(line, field, "@") msousa@353: substed = 0 msousa@353: len = length(field[1]) msousa@353: for (i = 2; i < nfields; i++) { msousa@353: key = field[i] msousa@353: keylen = length(key) msousa@353: if (S_is_set[key]) { msousa@353: value = S[key] msousa@353: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) msousa@353: len += length(value) + length(field[++i]) msousa@353: substed = 1 msousa@353: } else msousa@353: len += 1 + keylen msousa@353: } msousa@353: msousa@353: print line msousa@353: } msousa@353: msousa@353: _ACAWK msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then msousa@353: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" msousa@353: else msousa@353: cat laurent@375: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ laurent@375: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 laurent@375: _ACEOF laurent@375: laurent@375: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), laurent@375: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and msousa@353: # trailing colons and then remove the whole line if VPATH becomes empty msousa@353: # (actually we leave an empty line to preserve line numbers). msousa@353: if test "x$srcdir" = x.; then laurent@375: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ laurent@375: h laurent@375: s/// laurent@375: s/^/:/ laurent@375: s/[ ]*$/:/ laurent@375: s/:\$(srcdir):/:/g laurent@375: s/:\${srcdir}:/:/g laurent@375: s/:@srcdir@:/:/g laurent@375: s/^:*// msousa@353: s/:*$// laurent@375: x laurent@375: s/\(=[ ]*\).*/\1/ laurent@375: G laurent@375: s/\n// msousa@353: s/^[^=]*=[ ]*$// msousa@353: }' msousa@353: fi msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: fi # test -n "$CONFIG_FILES" msousa@353: msousa@353: # Set up the scripts for CONFIG_HEADERS section. msousa@353: # No need to generate them if there are no CONFIG_HEADERS. msousa@353: # This happens for instance with `./config.status Makefile'. msousa@353: if test -n "$CONFIG_HEADERS"; then laurent@375: cat >"$ac_tmp/defines.awk" <<\_ACAWK || msousa@353: BEGIN { msousa@353: _ACEOF msousa@353: msousa@353: # Transform confdefs.h into an awk script `defines.awk', embedded as msousa@353: # here-document in config.status, that substitutes the proper values into msousa@353: # config.h.in to produce config.h. msousa@353: msousa@353: # Create a delimiter string that does not exist in confdefs.h, to ease msousa@353: # handling of long lines. msousa@353: ac_delim='%!_!# ' msousa@353: for ac_last_try in false false :; do laurent@375: ac_tt=`sed -n "/$ac_delim/p" confdefs.h` laurent@375: if test -z "$ac_tt"; then msousa@353: break msousa@353: elif $ac_last_try; then laurent@375: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 msousa@353: else msousa@353: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " msousa@353: fi msousa@353: done msousa@353: msousa@353: # For the awk script, D is an array of macro values keyed by name, msousa@353: # likewise P contains macro parameters if any. Preserve backslash msousa@353: # newline sequences. msousa@353: msousa@353: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* msousa@353: sed -n ' msousa@353: s/.\{148\}/&'"$ac_delim"'/g msousa@353: t rset msousa@353: :rset msousa@353: s/^[ ]*#[ ]*define[ ][ ]*/ / msousa@353: t def msousa@353: d msousa@353: :def msousa@353: s/\\$// msousa@353: t bsnl msousa@353: s/["\\]/\\&/g msousa@353: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ msousa@353: D["\1"]=" \3"/p msousa@353: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p msousa@353: d msousa@353: :bsnl msousa@353: s/["\\]/\\&/g msousa@353: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ msousa@353: D["\1"]=" \3\\\\\\n"\\/p msousa@353: t cont msousa@353: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p msousa@353: t cont msousa@353: d msousa@353: :cont msousa@353: n msousa@353: s/.\{148\}/&'"$ac_delim"'/g msousa@353: t clear msousa@353: :clear msousa@353: s/\\$// msousa@353: t bsnlc msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/"/p msousa@353: d msousa@353: :bsnlc msousa@353: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p msousa@353: b cont msousa@353: ' >$CONFIG_STATUS || ac_write_fail=1 msousa@353: msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: for (key in D) D_is_set[key] = 1 msousa@353: FS = "" msousa@353: } msousa@353: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { msousa@353: line = \$ 0 msousa@353: split(line, arg, " ") msousa@353: if (arg[1] == "#") { msousa@353: defundef = arg[2] msousa@353: mac1 = arg[3] msousa@353: } else { msousa@353: defundef = substr(arg[1], 2) msousa@353: mac1 = arg[2] msousa@353: } msousa@353: split(mac1, mac2, "(") #) msousa@353: macro = mac2[1] msousa@353: prefix = substr(line, 1, index(line, defundef) - 1) msousa@353: if (D_is_set[macro]) { msousa@353: # Preserve the white space surrounding the "#". msousa@353: print prefix "define", macro P[macro] D[macro] msousa@353: next msousa@353: } else { msousa@353: # Replace #undef with comments. This is necessary, for example, msousa@353: # in the case of _POSIX_SOURCE, which is predefined and required msousa@353: # on some systems where configure will not decide to define it. msousa@353: if (defundef == "undef") { msousa@353: print "/*", prefix defundef, macro, "*/" msousa@353: next msousa@353: } msousa@353: } msousa@353: } msousa@353: { print } msousa@353: _ACAWK msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 laurent@375: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 msousa@353: fi # test -n "$CONFIG_HEADERS" msousa@353: msousa@353: msousa@353: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" msousa@353: shift msousa@353: for ac_tag msousa@353: do msousa@353: case $ac_tag in msousa@353: :[FHLC]) ac_mode=$ac_tag; continue;; msousa@353: esac msousa@353: case $ac_mode$ac_tag in msousa@353: :[FHL]*:*);; laurent@375: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; msousa@353: :[FH]-) ac_tag=-:-;; msousa@353: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; msousa@353: esac msousa@353: ac_save_IFS=$IFS msousa@353: IFS=: msousa@353: set x $ac_tag msousa@353: IFS=$ac_save_IFS msousa@353: shift msousa@353: ac_file=$1 msousa@353: shift msousa@353: msousa@353: case $ac_mode in msousa@353: :L) ac_source=$1;; msousa@353: :[FH]) msousa@353: ac_file_inputs= msousa@353: for ac_f msousa@353: do msousa@353: case $ac_f in laurent@375: -) ac_f="$ac_tmp/stdin";; msousa@353: *) # Look for the file first in the build tree, then in the source tree msousa@353: # (if the path is not absolute). The absolute path cannot be DOS-style, msousa@353: # because $ac_f cannot contain `:'. msousa@353: test -f "$ac_f" || msousa@353: case $ac_f in msousa@353: [\\/$]*) false;; msousa@353: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; msousa@353: esac || laurent@375: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; msousa@353: esac msousa@353: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac msousa@353: as_fn_append ac_file_inputs " '$ac_f'" msousa@353: done msousa@353: msousa@353: # Let's still pretend it is `configure' which instantiates (i.e., don't msousa@353: # use $as_me), people would be surprised to read: msousa@353: # /* config.h. Generated by config.status. */ msousa@353: configure_input='Generated from '` msousa@353: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' msousa@353: `' by configure.' msousa@353: if test x"$ac_file" != x-; then msousa@353: configure_input="$ac_file. $configure_input" msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 msousa@353: $as_echo "$as_me: creating $ac_file" >&6;} msousa@353: fi msousa@353: # Neutralize special characters interpreted by sed in replacement strings. msousa@353: case $configure_input in #( msousa@353: *\&* | *\|* | *\\* ) msousa@353: ac_sed_conf_input=`$as_echo "$configure_input" | msousa@353: sed 's/[\\\\&|]/\\\\&/g'`;; #( msousa@353: *) ac_sed_conf_input=$configure_input;; msousa@353: esac msousa@353: msousa@353: case $ac_tag in laurent@375: *:-:* | *:-) cat >"$ac_tmp/stdin" \ laurent@375: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; msousa@353: esac msousa@353: ;; msousa@353: esac msousa@353: msousa@353: ac_dir=`$as_dirname -- "$ac_file" || msousa@353: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$ac_file" : 'X\(//\)[^/]' \| \ msousa@353: X"$ac_file" : 'X\(//\)$' \| \ msousa@353: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$ac_file" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: as_dir="$ac_dir"; as_fn_mkdir_p msousa@353: ac_builddir=. msousa@353: msousa@353: case "$ac_dir" in msousa@353: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; msousa@353: *) msousa@353: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` msousa@353: # A ".." for each directory in $ac_dir_suffix. msousa@353: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` msousa@353: case $ac_top_builddir_sub in msousa@353: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; msousa@353: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; msousa@353: esac ;; msousa@353: esac msousa@353: ac_abs_top_builddir=$ac_pwd msousa@353: ac_abs_builddir=$ac_pwd$ac_dir_suffix msousa@353: # for backward compatibility: msousa@353: ac_top_builddir=$ac_top_build_prefix msousa@353: msousa@353: case $srcdir in msousa@353: .) # We are building in place. msousa@353: ac_srcdir=. msousa@353: ac_top_srcdir=$ac_top_builddir_sub msousa@353: ac_abs_top_srcdir=$ac_pwd ;; msousa@353: [\\/]* | ?:[\\/]* ) # Absolute name. msousa@353: ac_srcdir=$srcdir$ac_dir_suffix; msousa@353: ac_top_srcdir=$srcdir msousa@353: ac_abs_top_srcdir=$srcdir ;; msousa@353: *) # Relative name. msousa@353: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix msousa@353: ac_top_srcdir=$ac_top_build_prefix$srcdir msousa@353: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; msousa@353: esac msousa@353: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix msousa@353: msousa@353: msousa@353: case $ac_mode in msousa@353: :F) msousa@353: # msousa@353: # CONFIG_FILE msousa@353: # msousa@353: msousa@353: case $INSTALL in msousa@353: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; msousa@353: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; msousa@353: esac msousa@353: ac_MKDIR_P=$MKDIR_P msousa@353: case $MKDIR_P in msousa@353: [\\/$]* | ?:[\\/]* ) ;; msousa@353: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; msousa@353: esac msousa@353: _ACEOF msousa@353: msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: # If the template does not know about datarootdir, expand it. msousa@353: # FIXME: This hack should be removed a few years after 2.60. msousa@353: ac_datarootdir_hack=; ac_datarootdir_seen= msousa@353: ac_sed_dataroot=' msousa@353: /datarootdir/ { msousa@353: p msousa@353: q msousa@353: } msousa@353: /@datadir@/p msousa@353: /@docdir@/p msousa@353: /@infodir@/p msousa@353: /@localedir@/p msousa@353: /@mandir@/p' msousa@353: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in msousa@353: *datarootdir*) ac_datarootdir_seen=yes;; msousa@353: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 msousa@353: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: ac_datarootdir_hack=' msousa@353: s&@datadir@&$datadir&g msousa@353: s&@docdir@&$docdir&g msousa@353: s&@infodir@&$infodir&g msousa@353: s&@localedir@&$localedir&g msousa@353: s&@mandir@&$mandir&g msousa@353: s&\\\${datarootdir}&$datarootdir&g' ;; msousa@353: esac msousa@353: _ACEOF msousa@353: msousa@353: # Neutralize VPATH when `$srcdir' = `.'. msousa@353: # Shell code in configure.ac might set extrasub. msousa@353: # FIXME: do we really want to maintain this feature? msousa@353: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 msousa@353: ac_sed_extra="$ac_vpsub msousa@353: $extrasub msousa@353: _ACEOF msousa@353: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 msousa@353: :t msousa@353: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b msousa@353: s|@configure_input@|$ac_sed_conf_input|;t t msousa@353: s&@top_builddir@&$ac_top_builddir_sub&;t t msousa@353: s&@top_build_prefix@&$ac_top_build_prefix&;t t msousa@353: s&@srcdir@&$ac_srcdir&;t t msousa@353: s&@abs_srcdir@&$ac_abs_srcdir&;t t msousa@353: s&@top_srcdir@&$ac_top_srcdir&;t t msousa@353: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t msousa@353: s&@builddir@&$ac_builddir&;t t msousa@353: s&@abs_builddir@&$ac_abs_builddir&;t t msousa@353: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t msousa@353: s&@INSTALL@&$ac_INSTALL&;t t msousa@353: s&@MKDIR_P@&$ac_MKDIR_P&;t t msousa@353: $ac_datarootdir_hack msousa@353: " laurent@375: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ laurent@375: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 msousa@353: msousa@353: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && laurent@375: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && laurent@375: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ laurent@375: "$ac_tmp/out"`; test -z "$ac_out"; } && msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' laurent@375: which seems to be undefined. Please make sure it is defined" >&5 msousa@353: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' laurent@375: which seems to be undefined. Please make sure it is defined" >&2;} laurent@375: laurent@375: rm -f "$ac_tmp/stdin" msousa@353: case $ac_file in laurent@375: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; laurent@375: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; msousa@353: esac \ laurent@375: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 msousa@353: ;; msousa@353: :H) msousa@353: # msousa@353: # CONFIG_HEADER msousa@353: # msousa@353: if test x"$ac_file" != x-; then msousa@353: { msousa@353: $as_echo "/* $configure_input */" \ laurent@375: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" laurent@375: } >"$ac_tmp/config.h" \ laurent@375: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 laurent@375: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 msousa@353: $as_echo "$as_me: $ac_file is unchanged" >&6;} msousa@353: else msousa@353: rm -f "$ac_file" laurent@375: mv "$ac_tmp/config.h" "$ac_file" \ laurent@375: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 msousa@353: fi msousa@353: else msousa@353: $as_echo "/* $configure_input */" \ laurent@375: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ laurent@375: || as_fn_error $? "could not create -" "$LINENO" 5 msousa@353: fi msousa@353: # Compute "$ac_file"'s index in $config_headers. msousa@353: _am_arg="$ac_file" msousa@353: _am_stamp_count=1 msousa@353: for _am_header in $config_headers :; do msousa@353: case $_am_header in msousa@353: $_am_arg | $_am_arg:* ) msousa@353: break ;; msousa@353: * ) msousa@353: _am_stamp_count=`expr $_am_stamp_count + 1` ;; msousa@353: esac msousa@353: done msousa@353: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || msousa@353: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$_am_arg" : 'X\(//\)[^/]' \| \ msousa@353: X"$_am_arg" : 'X\(//\)$' \| \ msousa@353: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$_am_arg" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'`/stamp-h$_am_stamp_count msousa@353: ;; msousa@353: msousa@353: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 msousa@353: $as_echo "$as_me: executing $ac_file commands" >&6;} msousa@353: ;; msousa@353: esac msousa@353: msousa@353: msousa@353: case $ac_file$ac_mode in msousa@353: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { msousa@353: # Autoconf 2.62 quotes --file arguments for eval, but not when files msousa@353: # are listed without --file. Let's play safe and only enable the eval msousa@353: # if we detect the quoting. msousa@353: case $CONFIG_FILES in msousa@353: *\'*) eval set x "$CONFIG_FILES" ;; msousa@353: *) set x $CONFIG_FILES ;; msousa@353: esac msousa@353: shift msousa@353: for mf msousa@353: do msousa@353: # Strip MF so we end up with the name of the file. msousa@353: mf=`echo "$mf" | sed -e 's/:.*$//'` msousa@353: # Check whether this is an Automake generated Makefile or not. msousa@353: # We used to match only the files named `Makefile.in', but msousa@353: # some people rename them; so instead we look at the file content. msousa@353: # Grep'ing the first line is not enough: some people post-process msousa@353: # each Makefile.in and add a new line on top of each file to say so. msousa@353: # Grep'ing the whole file is not good either: AIX grep has a line msousa@353: # limit of 2048, but all sed's we know have understand at least 4000. msousa@353: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then msousa@353: dirpart=`$as_dirname -- "$mf" || msousa@353: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$mf" : 'X\(//\)[^/]' \| \ msousa@353: X"$mf" : 'X\(//\)$' \| \ msousa@353: X"$mf" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$mf" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: else msousa@353: continue msousa@353: fi msousa@353: # Extract the definition of DEPDIR, am__include, and am__quote msousa@353: # from the Makefile without running `make'. msousa@353: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` msousa@353: test -z "$DEPDIR" && continue msousa@353: am__include=`sed -n 's/^am__include = //p' < "$mf"` msousa@353: test -z "am__include" && continue msousa@353: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` msousa@353: # When using ansi2knr, U may be empty or an underscore; expand it msousa@353: U=`sed -n 's/^U = //p' < "$mf"` msousa@353: # Find all dependency output files, they are included files with msousa@353: # $(DEPDIR) in their names. We invoke sed twice because it is the msousa@353: # simplest approach to changing $(DEPDIR) to its actual value in the msousa@353: # expansion. msousa@353: for file in `sed -n " msousa@353: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ msousa@353: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do msousa@353: # Make sure the directory exists. msousa@353: test -f "$dirpart/$file" && continue msousa@353: fdir=`$as_dirname -- "$file" || msousa@353: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ msousa@353: X"$file" : 'X\(//\)[^/]' \| \ msousa@353: X"$file" : 'X\(//\)$' \| \ msousa@353: X"$file" : 'X\(/\)' \| . 2>/dev/null || msousa@353: $as_echo X"$file" | msousa@353: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)[^/].*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\/\)$/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: /^X\(\/\).*/{ msousa@353: s//\1/ msousa@353: q msousa@353: } msousa@353: s/.*/./; q'` msousa@353: as_dir=$dirpart/$fdir; as_fn_mkdir_p msousa@353: # echo "creating $dirpart/$file" msousa@353: echo '# dummy' > "$dirpart/$file" msousa@353: done msousa@353: done msousa@353: } msousa@353: ;; msousa@353: msousa@353: esac msousa@353: done # for ac_tag msousa@353: msousa@353: msousa@353: as_fn_exit 0 msousa@353: _ACEOF msousa@353: ac_clean_files=$ac_clean_files_save msousa@353: msousa@353: test $ac_write_fail = 0 || laurent@375: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 msousa@353: msousa@353: msousa@353: # configure is writing to config.log, and then calls config.status. msousa@353: # config.status does its own redirection, appending to config.log. msousa@353: # Unfortunately, on DOS this fails, as config.log is still kept open msousa@353: # by configure, so config.status won't be able to write to it; its msousa@353: # output is simply discarded. So we exec the FD to /dev/null, msousa@353: # effectively closing config.log, so it can be properly (re)opened and msousa@353: # appended to by config.status. When coming back to configure, we msousa@353: # need to make the FD available again. msousa@353: if test "$no_create" != yes; then msousa@353: ac_cs_success=: msousa@353: ac_config_status_args= msousa@353: test "$silent" = yes && msousa@353: ac_config_status_args="$ac_config_status_args --quiet" msousa@353: exec 5>/dev/null msousa@353: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false msousa@353: exec 5>>config.log msousa@353: # Use ||, not &&, to avoid exiting from the if with $? = 1, which msousa@353: # would make configure fail if this is the last instruction. laurent@375: $ac_cs_success || as_fn_exit 1 msousa@353: fi msousa@353: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then msousa@353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 msousa@353: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} msousa@353: fi msousa@353: msousa@353: msousa@353: