5 kx #! /bin/sh
5 kx # Guess values for system-dependent variables and create Makefiles.
5 kx # Generated by GNU Autoconf 2.69 for psmisc 23.4.
5 kx #
5 kx #
5 kx # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 kx #
5 kx #
5 kx # This configure script is free software; the Free Software Foundation
5 kx # gives unlimited permission to copy, distribute and modify it.
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx # Use a proper internal environment variable to ensure we don't fall
5 kx # into an infinite loop, continuously re-executing ourselves.
5 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
5 kx _as_can_reexec=no; export _as_can_reexec;
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx as_fn_exit 255
5 kx fi
5 kx # We don't want this to propagate to other subprocesses.
5 kx { _as_can_reexec=; unset _as_can_reexec;}
5 kx if test "x$CONFIG_SHELL" = x; then
5 kx as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case \`(set -o) 2>/dev/null\` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx "
5 kx as_required="as_fn_return () { (exit \$1); }
5 kx as_fn_success () { as_fn_return 0; }
5 kx as_fn_failure () { as_fn_return 1; }
5 kx as_fn_ret_success () { return 0; }
5 kx as_fn_ret_failure () { return 1; }
5 kx
5 kx exitcode=0
5 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
5 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
5 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
5 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
5 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
5 kx
5 kx else
5 kx exitcode=1; echo positional parameters were not saved.
5 kx fi
5 kx test x\$exitcode = x0 || exit 1
5 kx test -x / || exit 1"
5 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
5 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
5 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
5 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
5 kx test \$(( 1 + 1 )) = 2 || exit 1"
5 kx if (eval "$as_required") 2>/dev/null; then :
5 kx as_have_required=yes
5 kx else
5 kx as_have_required=no
5 kx fi
5 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
5 kx
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx as_found=false
5 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx as_found=:
5 kx case $as_dir in #(
5 kx /*)
5 kx for as_base in sh bash ksh sh5; do
5 kx # Try only shells that exist, to save several forks.
5 kx as_shell=$as_dir/$as_base
5 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$as_shell as_have_required=yes
5 kx if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx break 2
5 kx fi
5 kx fi
5 kx done;;
5 kx esac
5 kx as_found=false
5 kx done
5 kx $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$SHELL as_have_required=yes
5 kx fi; }
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx if test "x$CONFIG_SHELL" != x; then :
5 kx export CONFIG_SHELL
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx exit 255
5 kx fi
5 kx
5 kx if test x$as_have_required = xno; then :
5 kx $as_echo "$0: This script requires a shell more modern than all"
5 kx $as_echo "$0: the shells that I found on your system."
5 kx if test x${ZSH_VERSION+set} = xset ; then
5 kx $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
5 kx $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5 kx else
5 kx $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
5 kx $0: including any error possibly output before this
5 kx $0: message. Then install a modern shell, or manually run
5 kx $0: the script under such a shell if you do have one."
5 kx fi
5 kx exit 1
5 kx fi
5 kx fi
5 kx fi
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx export SHELL
5 kx # Unset more variables known to interfere with behavior of common tools.
5 kx CLICOLOR_FORCE= GREP_OPTIONS=
5 kx unset CLICOLOR_FORCE GREP_OPTIONS
5 kx
5 kx ## --------------------- ##
5 kx ## M4sh Shell Functions. ##
5 kx ## --------------------- ##
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx
5 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
5 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
5 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
5 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
5 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
5 kx sed -n '
5 kx p
5 kx /[$]LINENO/=
5 kx ' <$as_myself |
5 kx sed '
5 kx s/[$]LINENO.*/&-/
5 kx t lineno
5 kx b
5 kx :lineno
5 kx N
5 kx :loop
5 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5 kx t loop
5 kx s/-\n.*//
5 kx ' >$as_me.lineno &&
5 kx chmod +x "$as_me.lineno" ||
5 kx { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5 kx
5 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5 kx # already done that, so ensure we don't try to do so again and fall
5 kx # in an infinite loop. This has already happened in practice.
5 kx _as_can_reexec=no; export _as_can_reexec
5 kx # Don't try to exec as it changes $[0], causing all sort of problems
5 kx # (the dirname of $[0] is not the place where we might find the
5 kx # original and so on. Autoconf is especially sensitive to this).
5 kx . "./$as_me.lineno"
5 kx # Exit status is that of the last command.
5 kx exit
5 kx }
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx test -n "$DJDIR" || exec 7<&0 </dev/null
5 kx exec 6>&1
5 kx
5 kx # Name of the host.
5 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5 kx # so uname gets run too.
5 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx
5 kx #
5 kx # Initializations.
5 kx #
5 kx ac_default_prefix=/usr/local
5 kx ac_clean_files=
5 kx ac_config_libobj_dir=.
5 kx LIBOBJS=
5 kx cross_compiling=no
5 kx subdirs=
5 kx MFLAGS=
5 kx MAKEFLAGS=
5 kx
5 kx # Identity of this package.
5 kx PACKAGE_NAME='psmisc'
5 kx PACKAGE_TARNAME='psmisc'
5 kx PACKAGE_VERSION='23.4'
5 kx PACKAGE_STRING='psmisc 23.4'
5 kx PACKAGE_BUGREPORT=''
5 kx PACKAGE_URL=''
5 kx
5 kx ac_unique_file="src/comm.h"
5 kx # Factoring default headers for most tests.
5 kx ac_includes_default="\
5 kx #include <stdio.h>
5 kx #ifdef HAVE_SYS_TYPES_H
5 kx # include <sys/types.h>
5 kx #endif
5 kx #ifdef HAVE_SYS_STAT_H
5 kx # include <sys/stat.h>
5 kx #endif
5 kx #ifdef STDC_HEADERS
5 kx # include <stdlib.h>
5 kx # include <stddef.h>
5 kx #else
5 kx # ifdef HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx # endif
5 kx #endif
5 kx #ifdef HAVE_STRING_H
5 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5 kx # include <memory.h>
5 kx # endif
5 kx # include <string.h>
5 kx #endif
5 kx #ifdef HAVE_STRINGS_H
5 kx # include <strings.h>
5 kx #endif
5 kx #ifdef HAVE_INTTYPES_H
5 kx # include <inttypes.h>
5 kx #endif
5 kx #ifdef HAVE_STDINT_H
5 kx # include <stdint.h>
5 kx #endif
5 kx #ifdef HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif"
5 kx
5 kx gt_needs=
5 kx ac_subst_vars='am__EXEEXT_FALSE
5 kx am__EXEEXT_TRUE
5 kx LTLIBOBJS
5 kx DEJAGNU
5 kx LIBOBJS
5 kx WANT_PEEKFD_M68K_FALSE
5 kx WANT_PEEKFD_M68K_TRUE
5 kx WANT_PEEKFD_MIPS_FALSE
5 kx WANT_PEEKFD_MIPS_TRUE
5 kx WANT_PEEKFD_ARM64_FALSE
5 kx WANT_PEEKFD_ARM64_TRUE
5 kx WANT_PEEKFD_ARM_FALSE
5 kx WANT_PEEKFD_ARM_TRUE
5 kx WANT_PEEKFD_PPC_FALSE
5 kx WANT_PEEKFD_PPC_TRUE
5 kx WANT_PEEKFD_X86_64_FALSE
5 kx WANT_PEEKFD_X86_64_TRUE
5 kx WANT_PEEKFD_I386_FALSE
5 kx WANT_PEEKFD_I386_TRUE
5 kx WANT_FUSER_FALSE
5 kx WANT_FUSER_TRUE
5 kx POSUB
5 kx LTLIBINTL
5 kx LIBINTL
5 kx INTLLIBS
5 kx LTLIBICONV
5 kx LIBICONV
5 kx INTL_MACOSX_LIBS
5 kx host_os
5 kx host_vendor
5 kx host_cpu
5 kx host
5 kx build_os
5 kx build_vendor
5 kx build_cpu
5 kx build
5 kx XGETTEXT_EXTRA_OPTIONS
5 kx MSGMERGE
5 kx XGETTEXT_015
5 kx XGETTEXT
5 kx GMSGFMT_015
5 kx MSGFMT_015
5 kx GMSGFMT
5 kx MSGFMT
5 kx GETTEXT_MACRO_VERSION
5 kx SED
5 kx HARDEN_LDFLAGS
5 kx HARDEN_CFLAGS
5 kx TERMCAP_LIB
5 kx WITH_IPV6
5 kx WITH_MOUNTINFO_LIST
5 kx WANT_TIMEOUT_STAT_FALSE
5 kx WANT_TIMEOUT_STAT_TRUE
5 kx WITH_TIMEOUT_STAT
5 kx DL_LIB
5 kx WITH_SELINUX
5 kx USE_PO4A
5 kx PO4A
5 kx USE_NLS
5 kx LN_S
5 kx am__fastdepCXX_FALSE
5 kx am__fastdepCXX_TRUE
5 kx CXXDEPMODE
5 kx ac_ct_CXX
5 kx CXXFLAGS
5 kx CXX
5 kx EGREP
5 kx GREP
5 kx CPP
5 kx am__fastdepCC_FALSE
5 kx am__fastdepCC_TRUE
5 kx CCDEPMODE
5 kx am__nodep
5 kx AMDEPBACKSLASH
5 kx AMDEP_FALSE
5 kx AMDEP_TRUE
5 kx am__include
5 kx DEPDIR
5 kx OBJEXT
5 kx EXEEXT
5 kx ac_ct_CC
5 kx CPPFLAGS
5 kx LDFLAGS
5 kx CFLAGS
5 kx CC
5 kx AM_BACKSLASH
5 kx AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V
5 kx AM_V
5 kx am__untar
5 kx am__tar
5 kx AMTAR
5 kx am__leading_dot
5 kx SET_MAKE
5 kx AWK
5 kx mkdir_p
5 kx MKDIR_P
5 kx INSTALL_STRIP_PROGRAM
5 kx STRIP
5 kx install_sh
5 kx MAKEINFO
5 kx AUTOHEADER
5 kx AUTOMAKE
5 kx AUTOCONF
5 kx ACLOCAL
5 kx VERSION
5 kx PACKAGE
5 kx CYGPATH_W
5 kx am__isrc
5 kx INSTALL_DATA
5 kx INSTALL_SCRIPT
5 kx INSTALL_PROGRAM
5 kx target_alias
5 kx host_alias
5 kx build_alias
5 kx LIBS
5 kx ECHO_T
5 kx ECHO_N
5 kx ECHO_C
5 kx DEFS
5 kx mandir
5 kx localedir
5 kx libdir
5 kx psdir
5 kx pdfdir
5 kx dvidir
5 kx htmldir
5 kx infodir
5 kx docdir
5 kx oldincludedir
5 kx includedir
5 kx runstatedir
5 kx localstatedir
5 kx sharedstatedir
5 kx sysconfdir
5 kx datadir
5 kx datarootdir
5 kx libexecdir
5 kx sbindir
5 kx bindir
5 kx program_transform_name
5 kx prefix
5 kx exec_prefix
5 kx PACKAGE_URL
5 kx PACKAGE_BUGREPORT
5 kx PACKAGE_STRING
5 kx PACKAGE_VERSION
5 kx PACKAGE_TARNAME
5 kx PACKAGE_NAME
5 kx PATH_SEPARATOR
5 kx SHELL
5 kx am__quote'
5 kx ac_subst_files=''
5 kx ac_user_opts='
5 kx enable_option_checking
5 kx enable_silent_rules
5 kx enable_dependency_tracking
5 kx enable_nls
5 kx enable_selinux
5 kx enable_timeout_stat
5 kx enable_mountinfo_list
5 kx enable_harden_flags
5 kx enable_ipv6
5 kx with_gnu_ld
5 kx enable_rpath
5 kx with_libiconv_prefix
5 kx with_libintl_prefix
5 kx enable_largefile
5 kx '
5 kx ac_precious_vars='build_alias
5 kx host_alias
5 kx target_alias
5 kx CC
5 kx CFLAGS
5 kx LDFLAGS
5 kx LIBS
5 kx CPPFLAGS
5 kx CPP
5 kx CXX
5 kx CXXFLAGS
5 kx CCC'
5 kx
5 kx
5 kx # Initialize some variables set by options.
5 kx ac_init_help=
5 kx ac_init_version=false
5 kx ac_unrecognized_opts=
5 kx ac_unrecognized_sep=
5 kx # The variables have the same names as the options, with
5 kx # dashes changed to underlines.
5 kx cache_file=/dev/null
5 kx exec_prefix=NONE
5 kx no_create=
5 kx no_recursion=
5 kx prefix=NONE
5 kx program_prefix=NONE
5 kx program_suffix=NONE
5 kx program_transform_name=s,x,x,
5 kx silent=
5 kx site=
5 kx srcdir=
5 kx verbose=
5 kx x_includes=NONE
5 kx x_libraries=NONE
5 kx
5 kx # Installation directory options.
5 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
5 kx # and all the variables that are supposed to be based on exec_prefix
5 kx # by default will actually change.
5 kx # Use braces instead of parens because sh, perl, etc. also accept them.
5 kx # (The list follows the same order as the GNU Coding Standards.)
5 kx bindir='${exec_prefix}/bin'
5 kx sbindir='${exec_prefix}/sbin'
5 kx libexecdir='${exec_prefix}/libexec'
5 kx datarootdir='${prefix}/share'
5 kx datadir='${datarootdir}'
5 kx sysconfdir='${prefix}/etc'
5 kx sharedstatedir='${prefix}/com'
5 kx localstatedir='${prefix}/var'
5 kx runstatedir='${localstatedir}/run'
5 kx includedir='${prefix}/include'
5 kx oldincludedir='/usr/include'
5 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
5 kx infodir='${datarootdir}/info'
5 kx htmldir='${docdir}'
5 kx dvidir='${docdir}'
5 kx pdfdir='${docdir}'
5 kx psdir='${docdir}'
5 kx libdir='${exec_prefix}/lib'
5 kx localedir='${datarootdir}/locale'
5 kx mandir='${datarootdir}/man'
5 kx
5 kx ac_prev=
5 kx ac_dashdash=
5 kx for ac_option
5 kx do
5 kx # If the previous option needs an argument, assign it.
5 kx if test -n "$ac_prev"; then
5 kx eval $ac_prev=\$ac_option
5 kx ac_prev=
5 kx continue
5 kx fi
5 kx
5 kx case $ac_option in
5 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
5 kx *=) ac_optarg= ;;
5 kx *) ac_optarg=yes ;;
5 kx esac
5 kx
5 kx # Accept the important Cygnus configure options, so we can diagnose typos.
5 kx
5 kx case $ac_dashdash$ac_option in
5 kx --)
5 kx ac_dashdash=yes ;;
5 kx
5 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
5 kx ac_prev=bindir ;;
5 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5 kx bindir=$ac_optarg ;;
5 kx
5 kx -build | --build | --buil | --bui | --bu)
5 kx ac_prev=build_alias ;;
5 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5 kx build_alias=$ac_optarg ;;
5 kx
5 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
5 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5 kx ac_prev=cache_file ;;
5 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5 kx cache_file=$ac_optarg ;;
5 kx
5 kx --config-cache | -C)
5 kx cache_file=config.cache ;;
5 kx
5 kx -datadir | --datadir | --datadi | --datad)
5 kx ac_prev=datadir ;;
5 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
5 kx datadir=$ac_optarg ;;
5 kx
5 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
5 kx | --dataroo | --dataro | --datar)
5 kx ac_prev=datarootdir ;;
5 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
5 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
5 kx datarootdir=$ac_optarg ;;
5 kx
5 kx -disable-* | --disable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=no ;;
5 kx
5 kx -docdir | --docdir | --docdi | --doc | --do)
5 kx ac_prev=docdir ;;
5 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
5 kx docdir=$ac_optarg ;;
5 kx
5 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
5 kx ac_prev=dvidir ;;
5 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
5 kx dvidir=$ac_optarg ;;
5 kx
5 kx -enable-* | --enable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5 kx | --exec | --exe | --ex)
5 kx ac_prev=exec_prefix ;;
5 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
5 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
5 kx | --exec=* | --exe=* | --ex=*)
5 kx exec_prefix=$ac_optarg ;;
5 kx
5 kx -gas | --gas | --ga | --g)
5 kx # Obsolete; use --with-gas.
5 kx with_gas=yes ;;
5 kx
5 kx -help | --help | --hel | --he | -h)
5 kx ac_init_help=long ;;
5 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5 kx ac_init_help=recursive ;;
5 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5 kx ac_init_help=short ;;
5 kx
5 kx -host | --host | --hos | --ho)
5 kx ac_prev=host_alias ;;
5 kx -host=* | --host=* | --hos=* | --ho=*)
5 kx host_alias=$ac_optarg ;;
5 kx
5 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
5 kx ac_prev=htmldir ;;
5 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
5 kx | --ht=*)
5 kx htmldir=$ac_optarg ;;
5 kx
5 kx -includedir | --includedir | --includedi | --included | --include \
5 kx | --includ | --inclu | --incl | --inc)
5 kx ac_prev=includedir ;;
5 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
5 kx includedir=$ac_optarg ;;
5 kx
5 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
5 kx ac_prev=infodir ;;
5 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5 kx infodir=$ac_optarg ;;
5 kx
5 kx -libdir | --libdir | --libdi | --libd)
5 kx ac_prev=libdir ;;
5 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
5 kx libdir=$ac_optarg ;;
5 kx
5 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5 kx | --libexe | --libex | --libe)
5 kx ac_prev=libexecdir ;;
5 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5 kx | --libexe=* | --libex=* | --libe=*)
5 kx libexecdir=$ac_optarg ;;
5 kx
5 kx -localedir | --localedir | --localedi | --localed | --locale)
5 kx ac_prev=localedir ;;
5 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
5 kx localedir=$ac_optarg ;;
5 kx
5 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
5 kx | --localstate | --localstat | --localsta | --localst | --locals)
5 kx ac_prev=localstatedir ;;
5 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5 kx localstatedir=$ac_optarg ;;
5 kx
5 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5 kx ac_prev=mandir ;;
5 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5 kx mandir=$ac_optarg ;;
5 kx
5 kx -nfp | --nfp | --nf)
5 kx # Obsolete; use --without-fp.
5 kx with_fp=no ;;
5 kx
5 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5 kx | --no-cr | --no-c | -n)
5 kx no_create=yes ;;
5 kx
5 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
5 kx no_recursion=yes ;;
5 kx
5 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
5 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
5 kx | --oldin | --oldi | --old | --ol | --o)
5 kx ac_prev=oldincludedir ;;
5 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5 kx oldincludedir=$ac_optarg ;;
5 kx
5 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5 kx ac_prev=prefix ;;
5 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5 kx prefix=$ac_optarg ;;
5 kx
5 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
5 kx | --program-pre | --program-pr | --program-p)
5 kx ac_prev=program_prefix ;;
5 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
5 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5 kx program_prefix=$ac_optarg ;;
5 kx
5 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
5 kx | --program-suf | --program-su | --program-s)
5 kx ac_prev=program_suffix ;;
5 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
5 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5 kx program_suffix=$ac_optarg ;;
5 kx
5 kx -program-transform-name | --program-transform-name \
5 kx | --program-transform-nam | --program-transform-na \
5 kx | --program-transform-n | --program-transform- \
5 kx | --program-transform | --program-transfor \
5 kx | --program-transfo | --program-transf \
5 kx | --program-trans | --program-tran \
5 kx | --progr-tra | --program-tr | --program-t)
5 kx ac_prev=program_transform_name ;;
5 kx -program-transform-name=* | --program-transform-name=* \
5 kx | --program-transform-nam=* | --program-transform-na=* \
5 kx | --program-transform-n=* | --program-transform-=* \
5 kx | --program-transform=* | --program-transfor=* \
5 kx | --program-transfo=* | --program-transf=* \
5 kx | --program-trans=* | --program-tran=* \
5 kx | --progr-tra=* | --program-tr=* | --program-t=*)
5 kx program_transform_name=$ac_optarg ;;
5 kx
5 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
5 kx ac_prev=pdfdir ;;
5 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
5 kx pdfdir=$ac_optarg ;;
5 kx
5 kx -psdir | --psdir | --psdi | --psd | --ps)
5 kx ac_prev=psdir ;;
5 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
5 kx psdir=$ac_optarg ;;
5 kx
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx silent=yes ;;
5 kx
5 kx -runstatedir | --runstatedir | --runstatedi | --runstated \
5 kx | --runstate | --runstat | --runsta | --runst | --runs \
5 kx | --run | --ru | --r)
5 kx ac_prev=runstatedir ;;
5 kx -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
5 kx | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
5 kx | --run=* | --ru=* | --r=*)
5 kx runstatedir=$ac_optarg ;;
5 kx
5 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
5 kx ac_prev=sbindir ;;
5 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5 kx | --sbi=* | --sb=*)
5 kx sbindir=$ac_optarg ;;
5 kx
5 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
5 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5 kx | --sharedst | --shareds | --shared | --share | --shar \
5 kx | --sha | --sh)
5 kx ac_prev=sharedstatedir ;;
5 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5 kx | --sha=* | --sh=*)
5 kx sharedstatedir=$ac_optarg ;;
5 kx
5 kx -site | --site | --sit)
5 kx ac_prev=site ;;
5 kx -site=* | --site=* | --sit=*)
5 kx site=$ac_optarg ;;
5 kx
5 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5 kx ac_prev=srcdir ;;
5 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5 kx srcdir=$ac_optarg ;;
5 kx
5 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5 kx | --syscon | --sysco | --sysc | --sys | --sy)
5 kx ac_prev=sysconfdir ;;
5 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5 kx sysconfdir=$ac_optarg ;;
5 kx
5 kx -target | --target | --targe | --targ | --tar | --ta | --t)
5 kx ac_prev=target_alias ;;
5 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5 kx target_alias=$ac_optarg ;;
5 kx
5 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
5 kx verbose=yes ;;
5 kx
5 kx -version | --version | --versio | --versi | --vers | -V)
5 kx ac_init_version=: ;;
5 kx
5 kx -with-* | --with-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -without-* | --without-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=no ;;
5 kx
5 kx --x)
5 kx # Obsolete; use --with-x.
5 kx with_x=yes ;;
5 kx
5 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5 kx | --x-incl | --x-inc | --x-in | --x-i)
5 kx ac_prev=x_includes ;;
5 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5 kx x_includes=$ac_optarg ;;
5 kx
5 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
5 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5 kx ac_prev=x_libraries ;;
5 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5 kx x_libraries=$ac_optarg ;;
5 kx
5 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
5 kx Try \`$0 --help' for more information"
5 kx ;;
5 kx
5 kx *=*)
5 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5 kx # Reject names that are not valid shell variable names.
5 kx case $ac_envvar in #(
5 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
5 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5 kx esac
5 kx eval $ac_envvar=\$ac_optarg
5 kx export $ac_envvar ;;
5 kx
5 kx *)
5 kx # FIXME: should be removed in autoconf 3.0.
5 kx $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5 kx ;;
5 kx
5 kx esac
5 kx done
5 kx
5 kx if test -n "$ac_prev"; then
5 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5 kx as_fn_error $? "missing argument to $ac_option"
5 kx fi
5 kx
5 kx if test -n "$ac_unrecognized_opts"; then
5 kx case $enable_option_checking in
5 kx no) ;;
5 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5 kx *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5 kx esac
5 kx fi
5 kx
5 kx # Check all directory arguments for consistency.
5 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
5 kx datadir sysconfdir sharedstatedir localstatedir includedir \
5 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
5 kx libdir localedir mandir runstatedir
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx # Remove trailing slashes.
5 kx case $ac_val in
5 kx */ )
5 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
5 kx eval $ac_var=\$ac_val;;
5 kx esac
5 kx # Be sure to have absolute directory names.
5 kx case $ac_val in
5 kx [\\/$]* | ?:[\\/]* ) continue;;
5 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5 kx esac
5 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5 kx done
5 kx
5 kx # There might be people who depend on the old broken behavior: `$host'
5 kx # used to hold the argument of --host etc.
5 kx # FIXME: To remove some day.
5 kx build=$build_alias
5 kx host=$host_alias
5 kx target=$target_alias
5 kx
5 kx # FIXME: To remove some day.
5 kx if test "x$host_alias" != x; then
5 kx if test "x$build_alias" = x; then
5 kx cross_compiling=maybe
5 kx elif test "x$build_alias" != "x$host_alias"; then
5 kx cross_compiling=yes
5 kx fi
5 kx fi
5 kx
5 kx ac_tool_prefix=
5 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
5 kx
5 kx test "$silent" = yes && exec 6>/dev/null
5 kx
5 kx
5 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
5 kx ac_ls_di=`ls -di .` &&
5 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5 kx as_fn_error $? "working directory cannot be determined"
5 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5 kx as_fn_error $? "pwd does not report name of working directory"
5 kx
5 kx
5 kx # Find the source files, if location was not specified.
5 kx if test -z "$srcdir"; then
5 kx ac_srcdir_defaulted=yes
5 kx # Try the directory containing this script, then the parent directory.
5 kx ac_confdir=`$as_dirname -- "$as_myself" ||
5 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_myself" : 'X\(//\)[^/]' \| \
5 kx X"$as_myself" : 'X\(//\)$' \| \
5 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_myself" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx srcdir=$ac_confdir
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx srcdir=..
5 kx fi
5 kx else
5 kx ac_srcdir_defaulted=no
5 kx fi
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5 kx fi
5 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
5 kx ac_abs_confdir=`(
5 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5 kx pwd)`
5 kx # When building in place, set srcdir=.
5 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
5 kx srcdir=.
5 kx fi
5 kx # Remove unnecessary trailing slashes from srcdir.
5 kx # Double slashes in file names in object file debugging info
5 kx # mess up M-x gdb in Emacs.
5 kx case $srcdir in
5 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
5 kx esac
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_env_${ac_var}_value=\$${ac_var}
5 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
5 kx done
5 kx
5 kx #
5 kx # Report the --help message.
5 kx #
5 kx if test "$ac_init_help" = "long"; then
5 kx # Omit some internal or obsolete options to make the list less imposing.
5 kx # This message is too long to be a string in the A/UX 3.1 sh.
5 kx cat <<_ACEOF
5 kx \`configure' configures psmisc 23.4 to adapt to many kinds of systems.
5 kx
5 kx Usage: $0 [OPTION]... [VAR=VALUE]...
5 kx
5 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
5 kx VAR=VALUE. See below for descriptions of some of the useful variables.
5 kx
5 kx Defaults for the options are specified in brackets.
5 kx
5 kx Configuration:
5 kx -h, --help display this help and exit
5 kx --help=short display options specific to this package
5 kx --help=recursive display the short help of all the included packages
5 kx -V, --version display version information and exit
5 kx -q, --quiet, --silent do not print \`checking ...' messages
5 kx --cache-file=FILE cache test results in FILE [disabled]
5 kx -C, --config-cache alias for \`--cache-file=config.cache'
5 kx -n, --no-create do not create output files
5 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
5 kx
5 kx Installation directories:
5 kx --prefix=PREFIX install architecture-independent files in PREFIX
5 kx [$ac_default_prefix]
5 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5 kx [PREFIX]
5 kx
5 kx By default, \`make install' will install all the files in
5 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
5 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5 kx for instance \`--prefix=\$HOME'.
5 kx
5 kx For better control, use the options below.
5 kx
5 kx Fine tuning of the installation directories:
5 kx --bindir=DIR user executables [EPREFIX/bin]
5 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
5 kx --libexecdir=DIR program executables [EPREFIX/libexec]
5 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
5 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
5 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
5 kx --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
5 kx --libdir=DIR object code libraries [EPREFIX/lib]
5 kx --includedir=DIR C header files [PREFIX/include]
5 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
5 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
5 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
5 kx --infodir=DIR info documentation [DATAROOTDIR/info]
5 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
5 kx --mandir=DIR man documentation [DATAROOTDIR/man]
5 kx --docdir=DIR documentation root [DATAROOTDIR/doc/psmisc]
5 kx --htmldir=DIR html documentation [DOCDIR]
5 kx --dvidir=DIR dvi documentation [DOCDIR]
5 kx --pdfdir=DIR pdf documentation [DOCDIR]
5 kx --psdir=DIR ps documentation [DOCDIR]
5 kx _ACEOF
5 kx
5 kx cat <<\_ACEOF
5 kx
5 kx Program names:
5 kx --program-prefix=PREFIX prepend PREFIX to installed program names
5 kx --program-suffix=SUFFIX append SUFFIX to installed program names
5 kx --program-transform-name=PROGRAM run sed PROGRAM on installed program names
5 kx
5 kx System types:
5 kx --build=BUILD configure for building on BUILD [guessed]
5 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
5 kx _ACEOF
5 kx fi
5 kx
5 kx if test -n "$ac_init_help"; then
5 kx case $ac_init_help in
5 kx short | recursive ) echo "Configuration of psmisc 23.4:";;
5 kx esac
5 kx cat <<\_ACEOF
5 kx
5 kx Optional Features:
5 kx --disable-option-checking ignore unrecognized --enable/--with options
5 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5 kx --enable-silent-rules less verbose build output (undo: "make V=1")
5 kx --disable-silent-rules verbose build output (undo: "make V=0")
5 kx --enable-dependency-tracking
5 kx do not reject slow dependency extractors
5 kx --disable-dependency-tracking
5 kx speeds up one-time build
5 kx --disable-nls do not use Native Language Support
5 kx --enable-selinux Enable Security-Enhanced Linux features
5 kx --enable-timeout-stat Use a timeout on stat calls (optional with argument
5 kx "static" for a static background process)
5 kx --enable-mountinfo-list Use the list in /proc/self/mountinfo to replace
5 kx stat(2) syscall on network file systems shares
5 kx --disable-harden-flags disable hardened compilier and linker flags
5 kx --disable-ipv6 Disable IPv6 checks (for uClibc)
5 kx --disable-rpath do not hardcode runtime library paths
5 kx --disable-largefile omit support for large files
5 kx
5 kx Optional Packages:
5 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5 kx --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
5 kx --without-libiconv-prefix don't search for libiconv in includedir and libdir
5 kx --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
5 kx --without-libintl-prefix don't search for libintl in includedir and libdir
5 kx
5 kx Some influential environment variables:
5 kx CC C compiler command
5 kx CFLAGS C compiler flags
5 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
5 kx nonstandard directory <lib dir>
5 kx LIBS libraries to pass to the linker, e.g. -l<library>
5 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5 kx you have headers in a nonstandard directory <include dir>
5 kx CPP C preprocessor
5 kx CXX C++ compiler command
5 kx CXXFLAGS C++ compiler flags
5 kx
5 kx Use these variables to override the choices made by `configure' or to help
5 kx it to find libraries and programs with nonstandard names/locations.
5 kx
5 kx Report bugs to the package provider.
5 kx _ACEOF
5 kx ac_status=$?
5 kx fi
5 kx
5 kx if test "$ac_init_help" = "recursive"; then
5 kx # If there are subdirs, report their specific --help.
5 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5 kx test -d "$ac_dir" ||
5 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
5 kx continue
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx cd "$ac_dir" || { ac_status=$?; continue; }
5 kx # Check for guested configure.
5 kx if test -f "$ac_srcdir/configure.gnu"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
5 kx elif test -f "$ac_srcdir/configure"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure" --help=recursive
5 kx else
5 kx $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 kx fi || ac_status=$?
5 kx cd "$ac_pwd" || { ac_status=$?; break; }
5 kx done
5 kx fi
5 kx
5 kx test -n "$ac_init_help" && exit $ac_status
5 kx if $ac_init_version; then
5 kx cat <<\_ACEOF
5 kx psmisc configure 23.4
5 kx generated by GNU Autoconf 2.69
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This configure script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it.
5 kx _ACEOF
5 kx exit
5 kx fi
5 kx
5 kx ## ------------------------ ##
5 kx ## Autoconf initialization. ##
5 kx ## ------------------------ ##
5 kx
5 kx # ac_fn_c_try_compile LINENO
5 kx # --------------------------
5 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_compile
5 kx
5 kx # ac_fn_c_try_cpp LINENO
5 kx # ----------------------
5 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_cpp ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } > conftest.i && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_cpp
5 kx
5 kx # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists, giving a warning if it cannot be compiled using
5 kx # the include files in INCLUDES and setting the cache variable VAR
5 kx # accordingly.
5 kx ac_fn_c_check_header_mongrel ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if eval \${$3+:} false; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
5 kx $as_echo_n "checking $2 usability... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_header_compiler=yes
5 kx else
5 kx ac_header_compiler=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
5 kx $as_echo "$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
5 kx $as_echo_n "checking $2 presence... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx ac_header_preproc=yes
5 kx else
5 kx ac_header_preproc=no
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
5 kx $as_echo "$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
5 kx yes:no: )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ;;
5 kx no:yes:* )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
5 kx $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
5 kx $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
5 kx $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
5 kx $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=\$ac_header_compiler"
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_mongrel
5 kx
5 kx # ac_fn_c_try_run LINENO
5 kx # ----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
5 kx # that executables *can* be run.
5 kx ac_fn_c_try_run ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: program exited with status $ac_status" >&5
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=$ac_status
5 kx fi
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_run
5 kx
5 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists and can be compiled using the include files in
5 kx # INCLUDES, setting the cache variable VAR accordingly.
5 kx ac_fn_c_check_header_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_compile
5 kx
5 kx # ac_fn_cxx_try_compile LINENO
5 kx # ----------------------------
5 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_cxx_try_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_cxx_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_cxx_try_compile
5 kx
5 kx # ac_fn_c_try_link LINENO
5 kx # -----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_link ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext && {
5 kx test "$cross_compiling" = yes ||
5 kx test -x conftest$ac_exeext
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5 kx # interfere with the next link command; also delete a directory that is
5 kx # left behind by Apple's compiler. We do this before executing the actions.
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_link
5 kx
5 kx # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
5 kx # -------------------------------------------
5 kx # Tests whether TYPE exists after having included INCLUDES, setting cache
5 kx # variable VAR accordingly.
5 kx ac_fn_c_check_type ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=no"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof ($2))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof (($2)))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx eval "$3=yes"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_type
5 kx
5 kx # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
5 kx # ----------------------------------------------------
5 kx # Tries to find if the field MEMBER exists in type AGGR, after including
5 kx # INCLUDES, setting cache variable VAR accordingly.
5 kx ac_fn_c_check_member ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
5 kx $as_echo_n "checking for $2.$3... " >&6; }
5 kx if eval \${$4+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (sizeof ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx eval "$4=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$4
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_member
5 kx
5 kx # ac_fn_c_check_func LINENO FUNC VAR
5 kx # ----------------------------------
5 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
5 kx ac_fn_c_check_func ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define $2 innocuous_$2
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char $2 (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef $2
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char $2 ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_$2 || defined __stub___$2
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return $2 ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_func
5 kx cat >config.log <<_ACEOF
5 kx This file contains any messages produced by compilers while
5 kx running configure, to aid debugging if configure makes a mistake.
5 kx
5 kx It was created by psmisc $as_me 23.4, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx $ $0 $@
5 kx
5 kx _ACEOF
5 kx exec 5>>config.log
5 kx {
5 kx cat <<_ASUNAME
5 kx ## --------- ##
5 kx ## Platform. ##
5 kx ## --------- ##
5 kx
5 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
5 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
5 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
5 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
5 kx
5 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5 kx
5 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5 kx
5 kx _ASUNAME
5 kx
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx $as_echo "PATH: $as_dir"
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx } >&5
5 kx
5 kx cat >&5 <<_ACEOF
5 kx
5 kx
5 kx ## ----------- ##
5 kx ## Core tests. ##
5 kx ## ----------- ##
5 kx
5 kx _ACEOF
5 kx
5 kx
5 kx # Keep a trace of the command line.
5 kx # Strip out --no-create and --no-recursion so they do not pile up.
5 kx # Strip out --silent because we don't want to record it for future runs.
5 kx # Also quote any args containing shell meta-characters.
5 kx # Make two passes to allow for proper duplicate-argument suppression.
5 kx ac_configure_args=
5 kx ac_configure_args0=
5 kx ac_configure_args1=
5 kx ac_must_keep_next=false
5 kx for ac_pass in 1 2
5 kx do
5 kx for ac_arg
5 kx do
5 kx case $ac_arg in
5 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx continue ;;
5 kx *\'*)
5 kx ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx case $ac_pass in
5 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
5 kx 2)
5 kx as_fn_append ac_configure_args1 " '$ac_arg'"
5 kx if test $ac_must_keep_next = true; then
5 kx ac_must_keep_next=false # Got value, back to normal.
5 kx else
5 kx case $ac_arg in
5 kx *=* | --config-cache | -C | -disable-* | --disable-* \
5 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5 kx | -with-* | --with-* | -without-* | --without-* | --x)
5 kx case "$ac_configure_args0 " in
5 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5 kx esac
5 kx ;;
5 kx -* ) ac_must_keep_next=true ;;
5 kx esac
5 kx fi
5 kx as_fn_append ac_configure_args " '$ac_arg'"
5 kx ;;
5 kx esac
5 kx done
5 kx done
5 kx { ac_configure_args0=; unset ac_configure_args0;}
5 kx { ac_configure_args1=; unset ac_configure_args1;}
5 kx
5 kx # When interrupted or exit'd, cleanup temporary files, and complete
5 kx # config.log. We remove comments because anyway the quotes in there
5 kx # would cause problems or look ugly.
5 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
5 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
5 kx trap 'exit_status=$?
5 kx # Save into config.log some information that might help in debugging.
5 kx {
5 kx echo
5 kx
5 kx $as_echo "## ---------------- ##
5 kx ## Cache variables. ##
5 kx ## ---------------- ##"
5 kx echo
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx sed -n \
5 kx "s/'\''/'\''\\\\'\'''\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
5 kx ;; #(
5 kx *)
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx )
5 kx echo
5 kx
5 kx $as_echo "## ----------------- ##
5 kx ## Output variables. ##
5 kx ## ----------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_vars
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx
5 kx if test -n "$ac_subst_files"; then
5 kx $as_echo "## ------------------- ##
5 kx ## File substitutions. ##
5 kx ## ------------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_files
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx fi
5 kx
5 kx if test -s confdefs.h; then
5 kx $as_echo "## ----------- ##
5 kx ## confdefs.h. ##
5 kx ## ----------- ##"
5 kx echo
5 kx cat confdefs.h
5 kx echo
5 kx fi
5 kx test "$ac_signal" != 0 &&
5 kx $as_echo "$as_me: caught signal $ac_signal"
5 kx $as_echo "$as_me: exit $exit_status"
5 kx } >&5
5 kx rm -f core *.core core.conftest.* &&
5 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
5 kx exit $exit_status
5 kx ' 0
5 kx for ac_signal in 1 2 13 15; do
5 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
5 kx done
5 kx ac_signal=0
5 kx
5 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
5 kx rm -f -r conftest* confdefs.h
5 kx
5 kx $as_echo "/* confdefs.h */" > confdefs.h
5 kx
5 kx # Predefined preprocessor variables.
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_NAME "$PACKAGE_NAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_STRING "$PACKAGE_STRING"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_URL "$PACKAGE_URL"
5 kx _ACEOF
5 kx
5 kx
5 kx # Let the site file select an alternate cache file if it wants to.
5 kx # Prefer an explicitly selected file to automatically selected ones.
5 kx ac_site_file1=NONE
5 kx ac_site_file2=NONE
5 kx if test -n "$CONFIG_SITE"; then
5 kx # We do not want a PATH search for config.site.
5 kx case $CONFIG_SITE in #((
5 kx -*) ac_site_file1=./$CONFIG_SITE;;
5 kx */*) ac_site_file1=$CONFIG_SITE;;
5 kx *) ac_site_file1=./$CONFIG_SITE;;
5 kx esac
5 kx elif test "x$prefix" != xNONE; then
5 kx ac_site_file1=$prefix/share/config.site
5 kx ac_site_file2=$prefix/etc/config.site
5 kx else
5 kx ac_site_file1=$ac_default_prefix/share/config.site
5 kx ac_site_file2=$ac_default_prefix/etc/config.site
5 kx fi
5 kx for ac_site_file in "$ac_site_file1" "$ac_site_file2"
5 kx do
5 kx test "x$ac_site_file" = xNONE && continue
5 kx if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
5 kx $as_echo "$as_me: loading site script $ac_site_file" >&6;}
5 kx sed 's/^/| /' "$ac_site_file" >&5
5 kx . "$ac_site_file" \
5 kx || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "failed to load site script $ac_site_file
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx done
5 kx
5 kx if test -r "$cache_file"; then
5 kx # Some versions of bash will fail to source /dev/null (special files
5 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
5 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
5 kx $as_echo "$as_me: loading cache $cache_file" >&6;}
5 kx case $cache_file in
5 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
5 kx *) . "./$cache_file";;
5 kx esac
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
5 kx $as_echo "$as_me: creating cache $cache_file" >&6;}
5 kx >$cache_file
5 kx fi
5 kx
5 kx gt_needs="$gt_needs "
5 kx # Check that the precious variables saved in the cache have kept the same
5 kx # value.
5 kx ac_cache_corrupted=false
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
5 kx eval ac_new_set=\$ac_env_${ac_var}_set
5 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
5 kx eval ac_new_val=\$ac_env_${ac_var}_value
5 kx case $ac_old_set,$ac_new_set in
5 kx set,)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,set)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,);;
5 kx *)
5 kx if test "x$ac_old_val" != "x$ac_new_val"; then
5 kx # differences in whitespace do not lead to failure.
5 kx ac_old_val_w=`echo x $ac_old_val`
5 kx ac_new_val_w=`echo x $ac_new_val`
5 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5 kx ac_cache_corrupted=:
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
5 kx $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
5 kx eval $ac_var=\$ac_old_val
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
5 kx $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
5 kx $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
5 kx fi;;
5 kx esac
5 kx # Pass precious variables to config.status.
5 kx if test "$ac_new_set" = set; then
5 kx case $ac_new_val in
5 kx *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx *) ac_arg=$ac_var=$ac_new_val ;;
5 kx esac
5 kx case " $ac_configure_args " in
5 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
5 kx esac
5 kx fi
5 kx done
5 kx if $ac_cache_corrupted; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
5 kx $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5 kx as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5 kx fi
5 kx ## -------------------- ##
5 kx ## Main body of script. ##
5 kx ## -------------------- ##
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx am__api_version='1.16'
5 kx
5 kx ac_aux_dir=
5 kx for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5 kx if test -f "$ac_dir/install-sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install-sh -c"
5 kx break
5 kx elif test -f "$ac_dir/install.sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install.sh -c"
5 kx break
5 kx elif test -f "$ac_dir/shtool"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/shtool install -c"
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$ac_aux_dir"; then
5 kx as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5 kx fi
5 kx
5 kx # These three variables are undocumented and unsupported,
5 kx # and are intended to be withdrawn in a future Autoconf release.
5 kx # They can cause serious problems if a builder's source tree is in a directory
5 kx # whose full name contains unusual characters.
5 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5 kx
5 kx
5 kx # Find a good install program. We prefer a C program (faster),
5 kx # so one script is as good as another. But avoid the broken or
5 kx # incompatible versions:
5 kx # SysV /etc/install, /usr/sbin/install
5 kx # SunOS /usr/etc/install
5 kx # IRIX /sbin/install
5 kx # AIX /bin/install
5 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
5 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5 kx # OS/2's system install, which has a completely different semantic
5 kx # ./install, which can be erroneously created by make from ./install.sh.
5 kx # Reject install programs that cannot install multiple files.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5 kx $as_echo_n "checking for a BSD-compatible install... " >&6; }
5 kx if test -z "$INSTALL"; then
5 kx if ${ac_cv_path_install+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx # Account for people who put trailing slashes in PATH elements.
5 kx case $as_dir/ in #((
5 kx ./ | .// | /[cC]/* | \
5 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5 kx /usr/ucb/* ) ;;
5 kx *)
5 kx # OSF1 and SCO ODT 3.0 have their own names for install.
5 kx # Don't use installbsd from OSF since it installs stuff as root
5 kx # by default.
5 kx for ac_prog in ginstall scoinst install; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5 kx if test $ac_prog = install &&
5 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # AIX install. It has an incompatible calling convention.
5 kx :
5 kx elif test $ac_prog = install &&
5 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # program-specific install script used by HP pwplus--don't use.
5 kx :
5 kx else
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx echo one > conftest.one
5 kx echo two > conftest.two
5 kx mkdir conftest.dir
5 kx if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5 kx test -s conftest.one && test -s conftest.two &&
5 kx test -s conftest.dir/conftest.one &&
5 kx test -s conftest.dir/conftest.two
5 kx then
5 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5 kx break 3
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx
5 kx fi
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx INSTALL=$ac_cv_path_install
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for INSTALL within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx INSTALL=$ac_install_sh
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5 kx $as_echo "$INSTALL" >&6; }
5 kx
5 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5 kx # It thinks the first close brace ends the variable substitution.
5 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5 kx $as_echo_n "checking whether build environment is sane... " >&6; }
5 kx # Reject unsafe characters in $srcdir or the absolute working directory
5 kx # name. Accept space and tab only in the latter.
5 kx am_lf='
5 kx '
5 kx case `pwd` in
5 kx *[\\\"\#\$\&\'\`$am_lf]*)
5 kx as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5 kx esac
5 kx case $srcdir in
5 kx *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5 kx as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5 kx esac
5 kx
5 kx # Do 'set' in a subshell so we don't clobber the current shell's
5 kx # arguments. Must try -L first in case configure is actually a
5 kx # symlink; some systems play weird games with the mod time of symlinks
5 kx # (eg FreeBSD returns the mod time of the symlink's containing
5 kx # directory).
5 kx if (
5 kx am_has_slept=no
5 kx for am_try in 1 2; do
5 kx echo "timestamp, slept: $am_has_slept" > conftest.file
5 kx set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5 kx if test "$*" = "X"; then
5 kx # -L didn't work.
5 kx set X `ls -t "$srcdir/configure" conftest.file`
5 kx fi
5 kx if test "$*" != "X $srcdir/configure conftest.file" \
5 kx && test "$*" != "X conftest.file $srcdir/configure"; then
5 kx
5 kx # If neither matched, then we have a broken ls. This can happen
5 kx # if, for instance, CONFIG_SHELL is bash and it inherits a
5 kx # broken ls alias from the environment. This has actually
5 kx # happened. Such a system could not be considered "sane".
5 kx as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5 kx alias in your environment" "$LINENO" 5
5 kx fi
5 kx if test "$2" = conftest.file || test $am_try -eq 2; then
5 kx break
5 kx fi
5 kx # Just in case.
5 kx sleep 1
5 kx am_has_slept=yes
5 kx done
5 kx test "$2" = conftest.file
5 kx )
5 kx then
5 kx # Ok.
5 kx :
5 kx else
5 kx as_fn_error $? "newly created file is older than distributed files!
5 kx Check your system clock" "$LINENO" 5
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx # If we didn't sleep, we still need to ensure time stamps of config.status and
5 kx # generated files are strictly newer.
5 kx am_sleep_pid=
5 kx if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5 kx ( sleep 1 ) &
5 kx am_sleep_pid=$!
5 kx fi
5 kx
5 kx rm -f conftest.file
5 kx
5 kx test "$program_prefix" != NONE &&
5 kx program_transform_name="s&^&$program_prefix&;$program_transform_name"
5 kx # Use a double $ so make ignores it.
5 kx test "$program_suffix" != NONE &&
5 kx program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5 kx # Double any \ or $.
5 kx # By default was `s,x,x', remove it if useless.
5 kx ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5 kx program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5 kx
5 kx # Expand $ac_aux_dir to an absolute path.
5 kx am_aux_dir=`cd "$ac_aux_dir" && pwd`
5 kx
5 kx if test x"${MISSING+set}" != xset; then
5 kx MISSING="\${SHELL} '$am_aux_dir/missing'"
5 kx fi
5 kx # Use eval to expand $SHELL
5 kx if eval "$MISSING --is-lightweight"; then
5 kx am_missing_run="$MISSING "
5 kx else
5 kx am_missing_run=
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5 kx $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5 kx fi
5 kx
5 kx if test x"${install_sh+set}" != xset; then
5 kx case $am_aux_dir in
5 kx *\ * | *\ *)
5 kx install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5 kx *)
5 kx install_sh="\${SHELL} $am_aux_dir/install-sh"
5 kx esac
5 kx fi
5 kx
5 kx # Installed binaries are usually stripped using 'strip' when the user
5 kx # run "make install-strip". However 'strip' might not be the right
5 kx # tool to use in cross-compilation environments, therefore Automake
5 kx # will honor the 'STRIP' environment variable to overrule this program.
5 kx if test "$cross_compiling" != no; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5 kx $as_echo "$STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5 kx $as_echo "$ac_ct_STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx fi
5 kx INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5 kx $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5 kx if test -z "$MKDIR_P"; then
5 kx if ${ac_cv_path_mkdir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in mkdir gmkdir; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5 kx case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5 kx 'mkdir (GNU coreutils) '* | \
5 kx 'mkdir (coreutils) '* | \
5 kx 'mkdir (fileutils) '4.1*)
5 kx ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5 kx break 3;;
5 kx esac
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx
5 kx test -d ./--version && rmdir ./--version
5 kx if test "${ac_cv_path_mkdir+set}" = set; then
5 kx MKDIR_P="$ac_cv_path_mkdir -p"
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for MKDIR_P within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx MKDIR_P="$ac_install_sh -d"
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5 kx $as_echo "$MKDIR_P" >&6; }
5 kx
5 kx for ac_prog in gawk mawk nawk awk
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AWK+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AWK"; then
5 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AWK="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AWK=$ac_cv_prog_AWK
5 kx if test -n "$AWK"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5 kx $as_echo "$AWK" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AWK" && break
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5 kx $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5 kx set x ${MAKE-make}
5 kx ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5 kx if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat >conftest.make <<\_ACEOF
5 kx SHELL = /bin/sh
5 kx all:
5 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
5 kx _ACEOF
5 kx # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
5 kx *@@@%%%=?*=@@@%%%*)
5 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
5 kx *)
5 kx eval ac_cv_prog_make_${ac_make}_set=no;;
5 kx esac
5 kx rm -f conftest.make
5 kx fi
5 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx SET_MAKE=
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx SET_MAKE="MAKE=${MAKE-make}"
5 kx fi
5 kx
5 kx rm -rf .tst 2>/dev/null
5 kx mkdir .tst 2>/dev/null
5 kx if test -d .tst; then
5 kx am__leading_dot=.
5 kx else
5 kx am__leading_dot=_
5 kx fi
5 kx rmdir .tst 2>/dev/null
5 kx
5 kx # Check whether --enable-silent-rules was given.
5 kx if test "${enable_silent_rules+set}" = set; then :
5 kx enableval=$enable_silent_rules;
5 kx fi
5 kx
5 kx case $enable_silent_rules in # (((
5 kx yes) AM_DEFAULT_VERBOSITY=0;;
5 kx no) AM_DEFAULT_VERBOSITY=1;;
5 kx *) AM_DEFAULT_VERBOSITY=1;;
5 kx esac
5 kx am_make=${MAKE-make}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5 kx if ${am_cv_make_support_nested_variables+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if $as_echo 'TRUE=$(BAR$(V))
5 kx BAR0=false
5 kx BAR1=true
5 kx V=1
5 kx am__doit:
5 kx @$(TRUE)
5 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5 kx am_cv_make_support_nested_variables=yes
5 kx else
5 kx am_cv_make_support_nested_variables=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
5 kx if test $am_cv_make_support_nested_variables = yes; then
5 kx AM_V='$(V)'
5 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5 kx else
5 kx AM_V=$AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5 kx fi
5 kx AM_BACKSLASH='\'
5 kx
5 kx if test "`cd $srcdir && pwd`" != "`pwd`"; then
5 kx # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5 kx # is not polluted with repeated "-I."
5 kx am__isrc=' -I$(srcdir)'
5 kx # test to see if srcdir already configured
5 kx if test -f $srcdir/config.status; then
5 kx as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # test whether we have cygpath
5 kx if test -z "$CYGPATH_W"; then
5 kx if (cygpath --version) >/dev/null 2>/dev/null; then
5 kx CYGPATH_W='cygpath -w'
5 kx else
5 kx CYGPATH_W=echo
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Define the identity of the package.
5 kx PACKAGE='psmisc'
5 kx VERSION='23.4'
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE "$PACKAGE"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define VERSION "$VERSION"
5 kx _ACEOF
5 kx
5 kx # Some tools Automake needs.
5 kx
5 kx ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5 kx
5 kx
5 kx AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5 kx
5 kx
5 kx AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5 kx
5 kx
5 kx AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5 kx
5 kx
5 kx MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5 kx
5 kx # For better backward compatibility. To be removed once Automake 1.9.x
5 kx # dies out for good. For more background, see:
5 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5 kx mkdir_p='$(MKDIR_P)'
5 kx
5 kx # We need awk for the "check" target (and possibly the TAP driver). The
5 kx # system "awk" is bad on some platforms.
5 kx # Always define AMTAR for backward compatibility. Yes, it's still used
5 kx # in the wild :-( We should find a proper way to deprecate it ...
5 kx AMTAR='$${TAR-tar}'
5 kx
5 kx
5 kx # We'll loop over all known methods to create a tar archive until one works.
5 kx _am_tools='gnutar pax cpio none'
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
5 kx $as_echo_n "checking how to create a pax tar archive... " >&6; }
5 kx
5 kx # Go ahead even if we have the value already cached. We do so because we
5 kx # need to set the values for the 'am__tar' and 'am__untar' variables.
5 kx _am_tools=${am_cv_prog_tar_pax-$_am_tools}
5 kx
5 kx for _am_tool in $_am_tools; do
5 kx case $_am_tool in
5 kx gnutar)
5 kx for _am_tar in tar gnutar gtar; do
5 kx { echo "$as_me:$LINENO: $_am_tar --version" >&5
5 kx ($_am_tar --version) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } && break
5 kx done
5 kx am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
5 kx am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
5 kx am__untar="$_am_tar -xf -"
5 kx ;;
5 kx plaintar)
5 kx # Must skip GNU tar: if it does not support --format= it doesn't create
5 kx # ustar tarball either.
5 kx (tar --version) >/dev/null 2>&1 && continue
5 kx am__tar='tar chf - "$$tardir"'
5 kx am__tar_='tar chf - "$tardir"'
5 kx am__untar='tar xf -'
5 kx ;;
5 kx pax)
5 kx am__tar='pax -L -x pax -w "$$tardir"'
5 kx am__tar_='pax -L -x pax -w "$tardir"'
5 kx am__untar='pax -r'
5 kx ;;
5 kx cpio)
5 kx am__tar='find "$$tardir" -print | cpio -o -H pax -L'
5 kx am__tar_='find "$tardir" -print | cpio -o -H pax -L'
5 kx am__untar='cpio -i -H pax -d'
5 kx ;;
5 kx none)
5 kx am__tar=false
5 kx am__tar_=false
5 kx am__untar=false
5 kx ;;
5 kx esac
5 kx
5 kx # If the value was cached, stop now. We just wanted to have am__tar
5 kx # and am__untar set.
5 kx test -n "${am_cv_prog_tar_pax}" && break
5 kx
5 kx # tar/untar a dummy directory, and stop if the command works.
5 kx rm -rf conftest.dir
5 kx mkdir conftest.dir
5 kx echo GrepMe > conftest.dir/file
5 kx { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5 kx (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx rm -rf conftest.dir
5 kx if test -s conftest.tar; then
5 kx { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5 kx ($am__untar <conftest.tar) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5 kx (cat conftest.dir/file) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5 kx fi
5 kx done
5 kx rm -rf conftest.dir
5 kx
5 kx if ${am_cv_prog_tar_pax+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx am_cv_prog_tar_pax=$_am_tool
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
5 kx $as_echo "$am_cv_prog_tar_pax" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # POSIX will say in a future version that running "rm -f" with no argument
5 kx # is OK; and we want to be able to make that assumption in our Makefile
5 kx # recipes. So use an aggressive probe to check that the usage we want is
5 kx # actually supported "in the wild" to an acceptable degree.
5 kx # See automake bug#10828.
5 kx # To make any issue more visible, cause the running configure to be aborted
5 kx # by default if the 'rm' program in use doesn't match our expectations; the
5 kx # user can still override this though.
5 kx if rm -f && rm -fr && rm -rf; then : OK; else
5 kx cat >&2 <<'END'
5 kx Oops!
5 kx
5 kx Your 'rm' program seems unable to run without file operands specified
5 kx on the command line, even when the '-f' option is present. This is contrary
5 kx to the behaviour of most rm programs out there, and not conforming with
5 kx the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5 kx
5 kx Please tell bug-automake@gnu.org about your system, including the value
5 kx of your $PATH and any error possibly output before this message. This
5 kx can help us improve future automake versions.
5 kx
5 kx END
5 kx if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5 kx echo 'Configuration will proceed anyway, since you have set the' >&2
5 kx echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5 kx echo >&2
5 kx else
5 kx cat >&2 <<'END'
5 kx Aborting the configuration process, to ensure you take notice of the issue.
5 kx
5 kx You can download and install GNU coreutils to get an 'rm' implementation
5 kx that behaves properly: <https://www.gnu.org/software/coreutils/>.
5 kx
5 kx If you want to complete the configuration process using your problematic
5 kx 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5 kx to "yes", and re-run configure.
5 kx
5 kx END
5 kx as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # Check whether --enable-silent-rules was given.
5 kx if test "${enable_silent_rules+set}" = set; then :
5 kx enableval=$enable_silent_rules;
5 kx fi
5 kx
5 kx case $enable_silent_rules in # (((
5 kx yes) AM_DEFAULT_VERBOSITY=0;;
5 kx no) AM_DEFAULT_VERBOSITY=1;;
5 kx *) AM_DEFAULT_VERBOSITY=0;;
5 kx esac
5 kx am_make=${MAKE-make}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5 kx if ${am_cv_make_support_nested_variables+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if $as_echo 'TRUE=$(BAR$(V))
5 kx BAR0=false
5 kx BAR1=true
5 kx V=1
5 kx am__doit:
5 kx @$(TRUE)
5 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5 kx am_cv_make_support_nested_variables=yes
5 kx else
5 kx am_cv_make_support_nested_variables=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
5 kx if test $am_cv_make_support_nested_variables = yes; then
5 kx AM_V='$(V)'
5 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5 kx else
5 kx AM_V=$AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5 kx fi
5 kx AM_BACKSLASH='\'
5 kx
5 kx
5 kx ac_config_headers="$ac_config_headers config.h"
5 kx
5 kx
5 kx DEPDIR="${am__leading_dot}deps"
5 kx
5 kx ac_config_commands="$ac_config_commands depfiles"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5 kx $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5 kx cat > confinc.mk << 'END'
5 kx am__doit:
5 kx @echo this is the am__doit target >confinc.out
5 kx .PHONY: am__doit
5 kx END
5 kx am__include="#"
5 kx am__quote=
5 kx # BSD make does it like this.
5 kx echo '.include "confinc.mk" # ignored' > confmf.BSD
5 kx # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5 kx echo 'include confinc.mk # ignored' > confmf.GNU
5 kx _am_result=no
5 kx for s in GNU BSD; do
5 kx { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5 kx (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx case $?:`cat confinc.out 2>/dev/null` in #(
5 kx '0:this is the am__doit target') :
5 kx case $s in #(
5 kx BSD) :
5 kx am__include='.include' am__quote='"' ;; #(
5 kx *) :
5 kx am__include='include' am__quote='' ;;
5 kx esac ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx if test "$am__include" != "#"; then
5 kx _am_result="yes ($s style)"
5 kx break
5 kx fi
5 kx done
5 kx rm -f confinc.* confmf.*
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5 kx $as_echo "${_am_result}" >&6; }
5 kx
5 kx # Check whether --enable-dependency-tracking was given.
5 kx if test "${enable_dependency_tracking+set}" = set; then :
5 kx enableval=$enable_dependency_tracking;
5 kx fi
5 kx
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx am_depcomp="$ac_aux_dir/depcomp"
5 kx AMDEPBACKSLASH='\'
5 kx am__nodep='_no'
5 kx fi
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx AMDEP_TRUE=
5 kx AMDEP_FALSE='#'
5 kx else
5 kx AMDEP_TRUE='#'
5 kx AMDEP_FALSE=
5 kx fi
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5 kx # Try to create an executable without -o first, disregard a.out.
5 kx # It will help us diagnose broken compilers, and finding out an intuition
5 kx # of exeext.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5 kx $as_echo_n "checking whether the C compiler works... " >&6; }
5 kx ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5 kx
5 kx # The possible output files:
5 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5 kx
5 kx ac_rmfiles=
5 kx for ac_file in $ac_files
5 kx do
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5 kx esac
5 kx done
5 kx rm -f $ac_rmfiles
5 kx
5 kx if { { ac_try="$ac_link_default"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link_default") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
5 kx # so that the user can short-circuit this test for compilers unknown to
5 kx # Autoconf.
5 kx for ac_file in $ac_files ''
5 kx do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5 kx ;;
5 kx [ab].out )
5 kx # We found the default executable, but exeext='' is most
5 kx # certainly right.
5 kx break;;
5 kx *.* )
5 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5 kx then :; else
5 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx fi
5 kx # We set ac_cv_exeext here because the later test for it is not
5 kx # safe: cross compilers may not add the suffix if given an `-o'
5 kx # argument, so we may need to know it at that point already.
5 kx # Even if this section looks crufty: it has the advantage of
5 kx # actually working.
5 kx break;;
5 kx * )
5 kx break;;
5 kx esac
5 kx done
5 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
5 kx
5 kx else
5 kx ac_file=''
5 kx fi
5 kx if test -z "$ac_file"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "C compiler cannot create executables
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5 kx $as_echo_n "checking for C compiler default output file name... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5 kx $as_echo "$ac_file" >&6; }
5 kx ac_exeext=$ac_cv_exeext
5 kx
5 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5 kx $as_echo_n "checking for suffix of executables... " >&6; }
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
5 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
5 kx # `rm'.
5 kx for ac_file in conftest.exe conftest conftest.*; do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx break;;
5 kx * ) break;;
5 kx esac
5 kx done
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest conftest$ac_cv_exeext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5 kx $as_echo "$ac_cv_exeext" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext
5 kx EXEEXT=$ac_cv_exeext
5 kx ac_exeext=$EXEEXT
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx FILE *f = fopen ("conftest.out", "w");
5 kx return ferror (f) || fclose (f) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files="$ac_clean_files conftest.out"
5 kx # Check that the compiler produces executables we can run. If not, either
5 kx # the compiler is broken, or we cross compile.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5 kx $as_echo_n "checking whether we are cross compiling... " >&6; }
5 kx if test "$cross_compiling" != yes; then
5 kx { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if { ac_try='./conftest$ac_cv_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then
5 kx cross_compiling=no
5 kx else
5 kx if test "$cross_compiling" = maybe; then
5 kx cross_compiling=yes
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run C compiled programs.
5 kx If you meant to cross compile, use \`--host'.
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5 kx $as_echo "$cross_compiling" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5 kx $as_echo_n "checking for suffix of object files... " >&6; }
5 kx if ${ac_cv_objext+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.o conftest.obj
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx for ac_file in conftest.o conftest.obj conftest.*; do
5 kx test -f "$ac_file" || continue;
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5 kx break;;
5 kx esac
5 kx done
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5 kx $as_echo "$ac_cv_objext" >&6; }
5 kx OBJEXT=$ac_cv_objext
5 kx ac_objext=$OBJEXT
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5 kx if ${ac_cv_c_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GCC=yes
5 kx else
5 kx GCC=
5 kx fi
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cc_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx CFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5 kx if ${ac_cv_prog_cc_c89+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx struct stat;
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
5 kx
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5 kx $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5 kx if ${am_cv_prog_cc_c_o+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx # Make sure it works both with $CC and with simple cc.
5 kx # Following AC_PROG_CC_C_O, we do the test twice because some
5 kx # compilers refuse to overwrite an existing .o file with -o,
5 kx # though they will create one.
5 kx am_cv_prog_cc_c_o=yes
5 kx for am_i in 1 2; do
5 kx if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5 kx ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } \
5 kx && test -f conftest2.$ac_objext; then
5 kx : OK
5 kx else
5 kx am_cv_prog_cc_c_o=no
5 kx break
5 kx fi
5 kx done
5 kx rm -f core conftest*
5 kx unset am_i
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5 kx $as_echo "$am_cv_prog_cc_c_o" >&6; }
5 kx if test "$am_cv_prog_cc_c_o" != yes; then
5 kx # Losing compiler, so override with the script.
5 kx # FIXME: It is wrong to rewrite CC.
5 kx # But if we don't then we get into trouble of one sort or another.
5 kx # A longer-term fix would be to have automake use am__CC in this case,
5 kx # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5 kx CC="$am_aux_dir/compile $CC"
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5 kx $as_echo_n "checking dependency style of $depcc... " >&6; }
5 kx if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named 'D' -- because '-MD' means "put the output
5 kx # in D".
5 kx rm -rf conftest.dir
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx am__universal=false
5 kx case " $depcc " in #(
5 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
5 kx esac
5 kx
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5 kx # Solaris 10 /bin/sh.
5 kx echo '/* dummy */' > sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle '-M -o', and we need to detect this. Also, some Intel
5 kx # versions had trouble with output in subdirs.
5 kx am__obj=sub/conftest.${OBJEXT-o}
5 kx am__minus_obj="-o $am__obj"
5 kx case $depmode in
5 kx gcc)
5 kx # This depmode causes a compiler race in universal mode.
5 kx test "$am__universal" = false || continue
5 kx ;;
5 kx nosideeffect)
5 kx # After this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested.
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5 kx # This compiler won't grok '-c -o', but also, the minuso test has
5 kx # not run yet. These depmodes are late enough in the game, and
5 kx # so weak that their functioning should not be impacted.
5 kx am__obj=conftest.${OBJEXT-o}
5 kx am__minus_obj=
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=$am__obj \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
5 kx # On Suns, sometimes $CPP names a directory.
5 kx if test -n "$CPP" && test -d "$CPP"; then
5 kx CPP=
5 kx fi
5 kx if test -z "$CPP"; then
5 kx if ${ac_cv_prog_CPP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Double quotes because CPP needs to be expanded
5 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5 kx do
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx break
5 kx fi
5 kx
5 kx done
5 kx ac_cv_prog_CPP=$CPP
5 kx
5 kx fi
5 kx CPP=$ac_cv_prog_CPP
5 kx else
5 kx ac_cv_prog_CPP=$CPP
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5 kx $as_echo "$CPP" >&6; }
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5 kx $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5 kx if ${ac_cv_path_GREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$GREP"; then
5 kx ac_path_GREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in grep ggrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_GREP" || continue
5 kx # Check for GNU ac_path_GREP and select it if it is found.
5 kx # Check for GNU $ac_path_GREP
5 kx case `"$ac_path_GREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'GREP' >> "conftest.nl"
5 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_GREP="$ac_path_GREP"
5 kx ac_path_GREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_GREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_GREP"; then
5 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_GREP=$GREP
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5 kx $as_echo "$ac_cv_path_GREP" >&6; }
5 kx GREP="$ac_cv_path_GREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5 kx $as_echo_n "checking for egrep... " >&6; }
5 kx if ${ac_cv_path_EGREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5 kx then ac_cv_path_EGREP="$GREP -E"
5 kx else
5 kx if test -z "$EGREP"; then
5 kx ac_path_EGREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in egrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_EGREP" || continue
5 kx # Check for GNU ac_path_EGREP and select it if it is found.
5 kx # Check for GNU $ac_path_EGREP
5 kx case `"$ac_path_EGREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'EGREP' >> "conftest.nl"
5 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_EGREP="$ac_path_EGREP"
5 kx ac_path_EGREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_EGREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_EGREP"; then
5 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_EGREP=$EGREP
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5 kx $as_echo "$ac_cv_path_EGREP" >&6; }
5 kx EGREP="$ac_cv_path_EGREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5 kx $as_echo_n "checking for ANSI C header files... " >&6; }
5 kx if ${ac_cv_header_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5 kx $as_echo "$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5 kx inttypes.h stdint.h unistd.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5 kx "
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_minix_config_h" = xyes; then :
5 kx MINIX=yes
5 kx else
5 kx MINIX=
5 kx fi
5 kx
5 kx
5 kx if test "$MINIX" = yes; then
5 kx
5 kx $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define _MINIX 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5 kx $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5 kx if ${ac_cv_safe_to_define___extensions__+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # define __EXTENSIONS__ 1
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_safe_to_define___extensions__=yes
5 kx else
5 kx ac_cv_safe_to_define___extensions__=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5 kx $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5 kx test $ac_cv_safe_to_define___extensions__ = yes &&
5 kx $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5 kx
5 kx
5 kx ac_ext=cpp
5 kx ac_cpp='$CXXCPP $CPPFLAGS'
5 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5 kx if test -z "$CXX"; then
5 kx if test -n "$CCC"; then
5 kx CXX=$CCC
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CXX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CXX"; then
5 kx ac_cv_prog_CXX="$CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CXX=$ac_cv_prog_CXX
5 kx if test -n "$CXX"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5 kx $as_echo "$CXX" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CXX" && break
5 kx done
5 kx fi
5 kx if test -z "$CXX"; then
5 kx ac_ct_CXX=$CXX
5 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CXX"; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CXX="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5 kx if test -n "$ac_ct_CXX"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5 kx $as_echo "$ac_ct_CXX" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CXX" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CXX" = x; then
5 kx CXX="g++"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CXX=$ac_ct_CXX
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5 kx if ${ac_cv_cxx_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GXX=yes
5 kx else
5 kx GXX=
5 kx fi
5 kx ac_test_CXXFLAGS=${CXXFLAGS+set}
5 kx ac_save_CXXFLAGS=$CXXFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5 kx $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cxx_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5 kx ac_cxx_werror_flag=yes
5 kx ac_cv_prog_cxx_g=no
5 kx CXXFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cxx_g=yes
5 kx else
5 kx CXXFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx CXXFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_cxx_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cxx_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5 kx $as_echo "$ac_cv_prog_cxx_g" >&6; }
5 kx if test "$ac_test_CXXFLAGS" = set; then
5 kx CXXFLAGS=$ac_save_CXXFLAGS
5 kx elif test $ac_cv_prog_cxx_g = yes; then
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-g -O2"
5 kx else
5 kx CXXFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GXX" = yes; then
5 kx CXXFLAGS="-O2"
5 kx else
5 kx CXXFLAGS=
5 kx fi
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx depcc="$CXX" am_compiler_list=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5 kx $as_echo_n "checking dependency style of $depcc... " >&6; }
5 kx if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named 'D' -- because '-MD' means "put the output
5 kx # in D".
5 kx rm -rf conftest.dir
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CXX_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx am__universal=false
5 kx case " $depcc " in #(
5 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
5 kx esac
5 kx
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5 kx # Solaris 10 /bin/sh.
5 kx echo '/* dummy */' > sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle '-M -o', and we need to detect this. Also, some Intel
5 kx # versions had trouble with output in subdirs.
5 kx am__obj=sub/conftest.${OBJEXT-o}
5 kx am__minus_obj="-o $am__obj"
5 kx case $depmode in
5 kx gcc)
5 kx # This depmode causes a compiler race in universal mode.
5 kx test "$am__universal" = false || continue
5 kx ;;
5 kx nosideeffect)
5 kx # After this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested.
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5 kx # This compiler won't grok '-c -o', but also, the minuso test has
5 kx # not run yet. These depmodes are late enough in the game, and
5 kx # so weak that their functioning should not be impacted.
5 kx am__obj=conftest.${OBJEXT-o}
5 kx am__minus_obj=
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=$am__obj \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CXX_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CXX_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5 kx $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5 kx CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCXX_TRUE=
5 kx am__fastdepCXX_FALSE='#'
5 kx else
5 kx am__fastdepCXX_TRUE='#'
5 kx am__fastdepCXX_FALSE=
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5 kx $as_echo_n "checking whether ln -s works... " >&6; }
5 kx LN_S=$as_ln_s
5 kx if test "$LN_S" = "ln -s"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5 kx $as_echo "no, using $LN_S" >&6; }
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5 kx if ${ac_cv_c_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GCC=yes
5 kx else
5 kx GCC=
5 kx fi
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cc_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx CFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5 kx if ${ac_cv_prog_cc_c89+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx struct stat;
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
5 kx
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5 kx $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5 kx if ${am_cv_prog_cc_c_o+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx # Make sure it works both with $CC and with simple cc.
5 kx # Following AC_PROG_CC_C_O, we do the test twice because some
5 kx # compilers refuse to overwrite an existing .o file with -o,
5 kx # though they will create one.
5 kx am_cv_prog_cc_c_o=yes
5 kx for am_i in 1 2; do
5 kx if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5 kx ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } \
5 kx && test -f conftest2.$ac_objext; then
5 kx : OK
5 kx else
5 kx am_cv_prog_cc_c_o=no
5 kx break
5 kx fi
5 kx done
5 kx rm -f core conftest*
5 kx unset am_i
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5 kx $as_echo "$am_cv_prog_cc_c_o" >&6; }
5 kx if test "$am_cv_prog_cc_c_o" != yes; then
5 kx # Losing compiler, so override with the script.
5 kx # FIXME: It is wrong to rewrite CC.
5 kx # But if we don't then we get into trouble of one sort or another.
5 kx # A longer-term fix would be to have automake use am__CC in this case,
5 kx # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5 kx CC="$am_aux_dir/compile $CC"
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5 kx $as_echo_n "checking dependency style of $depcc... " >&6; }
5 kx if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named 'D' -- because '-MD' means "put the output
5 kx # in D".
5 kx rm -rf conftest.dir
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx am__universal=false
5 kx case " $depcc " in #(
5 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
5 kx esac
5 kx
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5 kx # Solaris 10 /bin/sh.
5 kx echo '/* dummy */' > sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle '-M -o', and we need to detect this. Also, some Intel
5 kx # versions had trouble with output in subdirs.
5 kx am__obj=sub/conftest.${OBJEXT-o}
5 kx am__minus_obj="-o $am__obj"
5 kx case $depmode in
5 kx gcc)
5 kx # This depmode causes a compiler race in universal mode.
5 kx test "$am__universal" = false || continue
5 kx ;;
5 kx nosideeffect)
5 kx # After this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested.
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5 kx # This compiler won't grok '-c -o', but also, the minuso test has
5 kx # not run yet. These depmodes are late enough in the game, and
5 kx # so weak that their functioning should not be impacted.
5 kx am__obj=conftest.${OBJEXT-o}
5 kx am__minus_obj=
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=$am__obj \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx case $ac_cv_prog_cc_stdc in #(
5 kx no) :
5 kx ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5 kx *) :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5 kx if ${ac_cv_prog_cc_c99+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c99=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdbool.h>
5 kx #include <stdlib.h>
5 kx #include <wchar.h>
5 kx #include <stdio.h>
5 kx
5 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
5 kx #define debug(...) fprintf (stderr, __VA_ARGS__)
5 kx #define showlist(...) puts (#__VA_ARGS__)
5 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5 kx static void
5 kx test_varargs_macros (void)
5 kx {
5 kx int x = 1234;
5 kx int y = 5678;
5 kx debug ("Flag");
5 kx debug ("X = %d\n", x);
5 kx showlist (The first, second, and third items.);
5 kx report (x>y, "x is %d but y is %d", x, y);
5 kx }
5 kx
5 kx // Check long long types.
5 kx #define BIG64 18446744073709551615ull
5 kx #define BIG32 4294967295ul
5 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5 kx #if !BIG_OK
5 kx your preprocessor is broken;
5 kx #endif
5 kx #if BIG_OK
5 kx #else
5 kx your preprocessor is broken;
5 kx #endif
5 kx static long long int bignum = -9223372036854775807LL;
5 kx static unsigned long long int ubignum = BIG64;
5 kx
5 kx struct incomplete_array
5 kx {
5 kx int datasize;
5 kx double data[];
5 kx };
5 kx
5 kx struct named_init {
5 kx int number;
5 kx const wchar_t *name;
5 kx double average;
5 kx };
5 kx
5 kx typedef const char *ccp;
5 kx
5 kx static inline int
5 kx test_restrict (ccp restrict text)
5 kx {
5 kx // See if C++-style comments work.
5 kx // Iterate through items via the restricted pointer.
5 kx // Also check for declarations in for loops.
5 kx for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5 kx continue;
5 kx return 0;
5 kx }
5 kx
5 kx // Check varargs and va_copy.
5 kx static void
5 kx test_varargs (const char *format, ...)
5 kx {
5 kx va_list args;
5 kx va_start (args, format);
5 kx va_list args_copy;
5 kx va_copy (args_copy, args);
5 kx
5 kx const char *str;
5 kx int number;
5 kx float fnumber;
5 kx
5 kx while (*format)
5 kx {
5 kx switch (*format++)
5 kx {
5 kx case 's': // string
5 kx str = va_arg (args_copy, const char *);
5 kx break;
5 kx case 'd': // int
5 kx number = va_arg (args_copy, int);
5 kx break;
5 kx case 'f': // float
5 kx fnumber = va_arg (args_copy, double);
5 kx break;
5 kx default:
5 kx break;
5 kx }
5 kx }
5 kx va_end (args_copy);
5 kx va_end (args);
5 kx }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx // Check bool.
5 kx _Bool success = false;
5 kx
5 kx // Check restrict.
5 kx if (test_restrict ("String literal") == 0)
5 kx success = true;
5 kx char *restrict newvar = "Another string";
5 kx
5 kx // Check varargs.
5 kx test_varargs ("s, d' f .", "string", 65, 34.234);
5 kx test_varargs_macros ();
5 kx
5 kx // Check flexible array members.
5 kx struct incomplete_array *ia =
5 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5 kx ia->datasize = 10;
5 kx for (int i = 0; i < ia->datasize; ++i)
5 kx ia->data[i] = i * 1.234;
5 kx
5 kx // Check named initializers.
5 kx struct named_init ni = {
5 kx .number = 34,
5 kx .name = L"Test wide string",
5 kx .average = 543.34343,
5 kx };
5 kx
5 kx ni.number = 58;
5 kx
5 kx int dynamic_array[ni.number];
5 kx dynamic_array[ni.number - 1] = 543;
5 kx
5 kx // work around unused variable warnings
5 kx return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5 kx || dynamic_array[ni.number - 1] != 543);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c99=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c99" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c99" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c99"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5 kx $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c99" != xno; then :
5 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5 kx if ${ac_cv_prog_cc_c89+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx struct stat;
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx CC="$CC $ac_cv_prog_cc_c89"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
5 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5 kx else
5 kx ac_cv_prog_cc_stdc=no
5 kx fi
5 kx
5 kx fi
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5 kx $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5 kx if ${ac_cv_prog_cc_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx fi
5 kx
5 kx case $ac_cv_prog_cc_stdc in #(
5 kx no) :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;; #(
5 kx '') :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;; #(
5 kx *) :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5 kx $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5 kx $as_echo_n "checking whether NLS is requested... " >&6; }
5 kx # Check whether --enable-nls was given.
5 kx if test "${enable_nls+set}" = set; then :
5 kx enableval=$enable_nls; USE_NLS=$enableval
5 kx else
5 kx USE_NLS=yes
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5 kx $as_echo "$USE_NLS" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx for ac_prog in po4a
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_PO4A+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$PO4A"; then
5 kx ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_PO4A="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx PO4A=$ac_cv_prog_PO4A
5 kx if test -n "$PO4A"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
5 kx $as_echo "$PO4A" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$PO4A" && break
5 kx done
5 kx
5 kx if test "$USE_NLS" = "yes" && test -n "$PO4A"; then :
5 kx
5 kx USE_PO4A=yes
5 kx
5 kx else
5 kx
5 kx USE_PO4A=no
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx # SELinux support - off by default
5 kx DL_LIB=
5 kx
5 kx # Check whether --enable-selinux was given.
5 kx if test "${enable_selinux+set}" = set; then :
5 kx enableval=$enable_selinux; enable_selinux=$enableval
5 kx else
5 kx enable_selinux="no"
5 kx fi
5 kx
5 kx if test "$enable_selinux" = "yes"; then
5 kx
5 kx $as_echo "#define WITH_SELINUX 1" >>confdefs.h
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5 kx $as_echo_n "checking for library containing dlopen... " >&6; }
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' dl; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_dlopen=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_dlopen+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_dlopen=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5 kx $as_echo "$ac_cv_search_dlopen" >&6; }
5 kx ac_res=$ac_cv_search_dlopen
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx as_fn_error $? "dynamic linking unavailable, circumvent with --disable-selinux" "$LINENO" 5
5 kx fi
5 kx
5 kx if test "x$ac_cv_search_dlopen" != "xnone required"; then
5 kx DL_LIB="$ac_cv_search_dlopen"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Call fork before all stat calls to stop hanging on NFS mounts
5 kx
5 kx # Check whether --enable-timeout_stat was given.
5 kx if test "${enable_timeout_stat+set}" = set; then :
5 kx enableval=$enable_timeout_stat; enable_timeout_stat=$enableval
5 kx else
5 kx enable_timeout_stat="no"
5 kx fi
5 kx
5 kx if test "$enable_timeout_stat" = "yes"; then
5 kx
5 kx $as_echo "#define WITH_TIMEOUT_STAT 1" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$enable_timeout_stat" = "static"; then
5 kx
5 kx $as_echo "#define WITH_TIMEOUT_STAT 2" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$enable_timeout_stat" = "static"; then
5 kx WANT_TIMEOUT_STAT_TRUE=
5 kx WANT_TIMEOUT_STAT_FALSE='#'
5 kx else
5 kx WANT_TIMEOUT_STAT_TRUE='#'
5 kx WANT_TIMEOUT_STAT_FALSE=
5 kx fi
5 kx
5 kx
5 kx # Use string search for network based file systems but only if the system
5 kx # has /proc/self/mountinfo
5 kx
5 kx # Check whether --enable-mountinfo_list was given.
5 kx if test "${enable_mountinfo_list+set}" = set; then :
5 kx enableval=$enable_mountinfo_list; enable_mountinfo_list="yes"
5 kx else
5 kx enable_mountinfo_list="no"
5 kx fi
5 kx
5 kx if test "$enable_mountinfo_list" = "yes" -a -e /proc/self/mountinfo ; then
5 kx
5 kx $as_echo "#define WITH_MOUNTINFO_LIST 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # Enable hardened compile and link flags
5 kx # Check whether --enable-harden_flags was given.
5 kx if test "${enable_harden_flags+set}" = set; then :
5 kx enableval=$enable_harden_flags; enable_harden_flags=$enableval
5 kx else
5 kx enable_harden_flags="yes"
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --enable-ipv6 was given.
5 kx if test "${enable_ipv6+set}" = set; then :
5 kx enableval=$enable_ipv6; enable_ipv6=$enableval
5 kx else
5 kx enable_ipv6="yes"
5 kx fi
5 kx
5 kx if test "$enable_ipv6" = "yes"; then
5 kx
5 kx $as_echo "#define WITH_IPV6 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5 kx $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5 kx if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ltinfo $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char tgetent ();
5 kx int
5 kx main ()
5 kx {
5 kx return tgetent ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_tinfo_tgetent=yes
5 kx else
5 kx ac_cv_lib_tinfo_tgetent=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5 kx $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5 kx if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5 kx TERMCAP_LIB=-ltinfo
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5 kx $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5 kx if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lncurses $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char tgetent ();
5 kx int
5 kx main ()
5 kx {
5 kx return tgetent ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_ncurses_tgetent=yes
5 kx else
5 kx ac_cv_lib_ncurses_tgetent=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5 kx $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5 kx if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5 kx TERMCAP_LIB=-lncurses
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5 kx $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5 kx if ${ac_cv_lib_termcap_tgetent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ltermcap $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char tgetent ();
5 kx int
5 kx main ()
5 kx {
5 kx return tgetent ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_termcap_tgetent=yes
5 kx else
5 kx ac_cv_lib_termcap_tgetent=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5 kx $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5 kx if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5 kx TERMCAP_LIB=-ltermcap
5 kx else
5 kx as_fn_error $? "Cannot find tinfo, ncurses or termcap libraries" "$LINENO" 5
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_header_dirent=no
5 kx for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5 kx as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5 kx $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5 kx if eval \${$as_ac_Header+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <$ac_hdr>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx if ((DIR *) 0)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$as_ac_Header=yes"
5 kx else
5 kx eval "$as_ac_Header=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$as_ac_Header
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx ac_header_dirent=$ac_hdr; break
5 kx fi
5 kx
5 kx done
5 kx # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5 kx if test $ac_header_dirent = dirent.h; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5 kx $as_echo_n "checking for library containing opendir... " >&6; }
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char opendir ();
5 kx int
5 kx main ()
5 kx {
5 kx return opendir ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' dir; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_opendir=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_opendir=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5 kx $as_echo "$ac_cv_search_opendir" >&6; }
5 kx ac_res=$ac_cv_search_opendir
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5 kx $as_echo_n "checking for library containing opendir... " >&6; }
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char opendir ();
5 kx int
5 kx main ()
5 kx {
5 kx return opendir ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' x; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_opendir=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_opendir+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_opendir=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5 kx $as_echo "$ac_cv_search_opendir" >&6; }
5 kx ac_res=$ac_cv_search_opendir
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5 kx $as_echo_n "checking for ANSI C header files... " >&6; }
5 kx if ${ac_cv_header_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5 kx $as_echo "$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5 kx $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5 kx if ${ac_cv_header_sys_wait_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/wait.h>
5 kx #ifndef WEXITSTATUS
5 kx # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5 kx #endif
5 kx #ifndef WIFEXITED
5 kx # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int s;
5 kx wait (&s);
5 kx s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_sys_wait_h=yes
5 kx else
5 kx ac_cv_header_sys_wait_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5 kx $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5 kx if test $ac_cv_header_sys_wait_h = yes; then
5 kx
5 kx $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx for ac_header in arpa/inet.h fcntl.h langinfo.h libintl.h limits.h locale.h mntent.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h termios.h unistd.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5 kx $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5 kx if ${ac_cv_c_const+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #ifndef __cplusplus
5 kx /* Ultrix mips cc rejects this sort of thing. */
5 kx typedef int charset[2];
5 kx const charset cs = { 0, 0 };
5 kx /* SunOS 4.1.1 cc rejects this. */
5 kx char const *const *pcpcc;
5 kx char **ppc;
5 kx /* NEC SVR4.0.2 mips cc rejects this. */
5 kx struct point {int x, y;};
5 kx static struct point const zero = {0,0};
5 kx /* AIX XL C 1.02.0.0 rejects this.
5 kx It does not let you subtract one const X* pointer from another in
5 kx an arm of an if-expression whose if-part is not a constant
5 kx expression */
5 kx const char *g = "string";
5 kx pcpcc = &g + (g ? g-g : 0);
5 kx /* HPUX 7.0 cc rejects these. */
5 kx ++pcpcc;
5 kx ppc = (char**) pcpcc;
5 kx pcpcc = (char const *const *) ppc;
5 kx { /* SCO 3.2v4 cc rejects this sort of thing. */
5 kx char tx;
5 kx char *t = &tx;
5 kx char const *s = 0 ? (char *) 0 : (char const *) 0;
5 kx
5 kx *t++ = 0;
5 kx if (s) return 0;
5 kx }
5 kx { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5 kx int x[] = {25, 17};
5 kx const int *foo = &x[0];
5 kx ++foo;
5 kx }
5 kx { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5 kx typedef const int *iptr;
5 kx iptr p = 0;
5 kx ++p;
5 kx }
5 kx { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5 kx "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5 kx struct s { int j; const int *ap[3]; } bx;
5 kx struct s *b = &bx; b->j = 5;
5 kx }
5 kx { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5 kx const int foo = 10;
5 kx if (!foo) return 0;
5 kx }
5 kx return !cs[0] && !zero.x;
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_const=yes
5 kx else
5 kx ac_cv_c_const=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5 kx $as_echo "$ac_cv_c_const" >&6; }
5 kx if test $ac_cv_c_const = no; then
5 kx
5 kx $as_echo "#define const /**/" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_pid_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define pid_t int
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_size_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define size_t unsigned int
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5 kx if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_RDEV 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5 kx $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5 kx if ${ac_cv_type_uid_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uid_t" >/dev/null 2>&1; then :
5 kx ac_cv_type_uid_t=yes
5 kx else
5 kx ac_cv_type_uid_t=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5 kx $as_echo "$ac_cv_type_uid_t" >&6; }
5 kx if test $ac_cv_type_uid_t = no; then
5 kx
5 kx $as_echo "#define uid_t int" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define gid_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx # Check that harden CFLAGS and LDFLAGS will compile
5 kx if test "$enable_harden_flags" = "yes"; then :
5 kx HARDEN_CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security"
5 kx HARDEN_LDFLAGS="-Wl,-z,relro"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler supports harden flags" >&5
5 kx $as_echo_n "checking compiler supports harden flags... " >&6; }
5 kx save_harden_cflags="$CFLAGS"
5 kx CFLAGS="$CFLAGS $HARDEN_CFLAGS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }; HARDEN_CFLAGS=''
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$save_harden_cflags"
5 kx else
5 kx HARDEN_CFLAGS=""
5 kx HARDEN_LDFLAGS=""
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5 kx if ${ac_cv_path_SED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5 kx for ac_i in 1 2 3 4 5 6 7; do
5 kx ac_script="$ac_script$as_nl$ac_script"
5 kx done
5 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5 kx { ac_script=; unset ac_script;}
5 kx if test -z "$SED"; then
5 kx ac_path_SED_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in sed gsed; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_SED" || continue
5 kx # Check for GNU ac_path_SED and select it if it is found.
5 kx # Check for GNU $ac_path_SED
5 kx case `"$ac_path_SED" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo '' >> "conftest.nl"
5 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_SED="$ac_path_SED"
5 kx ac_path_SED_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_SED_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_SED"; then
5 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_SED=$SED
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5 kx $as_echo "$ac_cv_path_SED" >&6; }
5 kx SED="$ac_cv_path_SED"
5 kx rm -f conftest.sed
5 kx
5 kx
5 kx
5 kx GETTEXT_MACRO_VERSION=0.19
5 kx
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "msgfmt", so it can be a program name with args.
5 kx set dummy msgfmt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGFMT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$MSGFMT" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5 kx (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5 kx ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGFMT="$ac_cv_path_MSGFMT"
5 kx if test "$MSGFMT" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5 kx $as_echo "$MSGFMT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx # Extract the first word of "gmsgfmt", so it can be a program name with args.
5 kx set dummy gmsgfmt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GMSGFMT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GMSGFMT in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5 kx ;;
5 kx esac
5 kx fi
5 kx GMSGFMT=$ac_cv_path_GMSGFMT
5 kx if test -n "$GMSGFMT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5 kx $as_echo "$GMSGFMT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5 kx *) MSGFMT_015=$MSGFMT ;;
5 kx esac
5 kx
5 kx case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5 kx *) GMSGFMT_015=$GMSGFMT ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "xgettext", so it can be a program name with args.
5 kx set dummy xgettext; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XGETTEXT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$XGETTEXT" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5 kx (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5 kx ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx XGETTEXT="$ac_cv_path_XGETTEXT"
5 kx if test "$XGETTEXT" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5 kx $as_echo "$XGETTEXT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx rm -f messages.po
5 kx
5 kx case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5 kx *) XGETTEXT_015=$XGETTEXT ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "msgmerge", so it can be a program name with args.
5 kx set dummy msgmerge; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGMERGE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$MSGMERGE" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5 kx ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGMERGE="$ac_cv_path_MSGMERGE"
5 kx if test "$MSGMERGE" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5 kx $as_echo "$MSGMERGE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$localedir" || localedir='${datadir}/locale'
5 kx
5 kx
5 kx test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5 kx
5 kx
5 kx ac_config_commands="$ac_config_commands po-directories"
5 kx
5 kx
5 kx
5 kx if test "X$prefix" = "XNONE"; then
5 kx acl_final_prefix="$ac_default_prefix"
5 kx else
5 kx acl_final_prefix="$prefix"
5 kx fi
5 kx if test "X$exec_prefix" = "XNONE"; then
5 kx acl_final_exec_prefix='${prefix}'
5 kx else
5 kx acl_final_exec_prefix="$exec_prefix"
5 kx fi
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx # Make sure we can run config.sub.
5 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5 kx as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5 kx $as_echo_n "checking build system type... " >&6; }
5 kx if ${ac_cv_build+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_build_alias=$build_alias
5 kx test "x$ac_build_alias" = x &&
5 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5 kx test "x$ac_build_alias" = x &&
5 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5 kx $as_echo "$ac_cv_build" >&6; }
5 kx case $ac_cv_build in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5 kx esac
5 kx build=$ac_cv_build
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_build
5 kx shift
5 kx build_cpu=$1
5 kx build_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx build_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5 kx $as_echo_n "checking host system type... " >&6; }
5 kx if ${ac_cv_host+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "x$host_alias" = x; then
5 kx ac_cv_host=$ac_cv_build
5 kx else
5 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5 kx $as_echo "$ac_cv_host" >&6; }
5 kx case $ac_cv_host in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5 kx esac
5 kx host=$ac_cv_host
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_host
5 kx shift
5 kx host_cpu=$1
5 kx host_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx host_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then :
5 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test "$GCC" = yes; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5 kx $as_echo_n "checking for ld used by $CC... " >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case $ac_prog in
5 kx # Accept absolute paths.
5 kx [\\/]* | ?:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the pathname of ld
5 kx ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5 kx while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD="$ac_prog"
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test "$with_gnu_ld" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5 kx $as_echo_n "checking for GNU ld... " >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5 kx $as_echo_n "checking for non-GNU ld... " >&6; }
5 kx fi
5 kx if ${acl_cv_path_LD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$acl_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx acl_cv_path_LD="$ac_dir/$ac_prog"
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some variants of GNU ld only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx test "$with_gnu_ld" != no && break
5 kx ;;
5 kx *)
5 kx test "$with_gnu_ld" != yes && break
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$acl_save_ifs"
5 kx else
5 kx acl_cv_path_LD="$LD" # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD="$acl_cv_path_LD"
5 kx if test -n "$LD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5 kx $as_echo "$LD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5 kx if ${acl_cv_prog_gnu_ld+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
5 kx case `$LD -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx acl_cv_prog_gnu_ld=yes
5 kx ;;
5 kx *)
5 kx acl_cv_prog_gnu_ld=no
5 kx ;;
5 kx esac
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5 kx $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$acl_cv_prog_gnu_ld
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5 kx $as_echo_n "checking for shared library run path origin... " >&6; }
5 kx if ${acl_cv_rpath+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5 kx ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5 kx . ./conftest.sh
5 kx rm -f ./conftest.sh
5 kx acl_cv_rpath=done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5 kx $as_echo "$acl_cv_rpath" >&6; }
5 kx wl="$acl_cv_wl"
5 kx acl_libext="$acl_cv_libext"
5 kx acl_shlibext="$acl_cv_shlibext"
5 kx acl_libname_spec="$acl_cv_libname_spec"
5 kx acl_library_names_spec="$acl_cv_library_names_spec"
5 kx acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5 kx acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5 kx acl_hardcode_direct="$acl_cv_hardcode_direct"
5 kx acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5 kx # Check whether --enable-rpath was given.
5 kx if test "${enable_rpath+set}" = set; then :
5 kx enableval=$enable_rpath; :
5 kx else
5 kx enable_rpath=yes
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx acl_libdirstem=lib
5 kx acl_libdirstem2=
5 kx case "$host_os" in
5 kx solaris*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5 kx $as_echo_n "checking for 64-bit host... " >&6; }
5 kx if ${gl_cv_solaris_64bit+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef _LP64
5 kx sixtyfour bits
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5 kx gl_cv_solaris_64bit=yes
5 kx else
5 kx gl_cv_solaris_64bit=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5 kx $as_echo "$gl_cv_solaris_64bit" >&6; }
5 kx if test $gl_cv_solaris_64bit = yes; then
5 kx acl_libdirstem=lib/64
5 kx case "$host_cpu" in
5 kx sparc*) acl_libdirstem2=lib/sparcv9 ;;
5 kx i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx *)
5 kx searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5 kx if test -n "$searchpath"; then
5 kx acl_save_IFS="${IFS= }"; IFS=":"
5 kx for searchdir in $searchpath; do
5 kx if test -d "$searchdir"; then
5 kx case "$searchdir" in
5 kx */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5 kx */../ | */.. )
5 kx # Better ignore directories of this form. They are misleading.
5 kx ;;
5 kx *) searchdir=`cd "$searchdir" && pwd`
5 kx case "$searchdir" in
5 kx */lib64 ) acl_libdirstem=lib64 ;;
5 kx esac ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$acl_save_IFS"
5 kx fi
5 kx ;;
5 kx esac
5 kx test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx use_additional=yes
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx # Check whether --with-libiconv-prefix was given.
5 kx if test "${with_libiconv_prefix+set}" = set; then :
5 kx withval=$with_libiconv_prefix;
5 kx if test "X$withval" = "Xno"; then
5 kx use_additional=no
5 kx else
5 kx if test "X$withval" = "X"; then
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx else
5 kx additional_includedir="$withval/include"
5 kx additional_libdir="$withval/$acl_libdirstem"
5 kx if test "$acl_libdirstem2" != "$acl_libdirstem" \
5 kx && ! test -d "$withval/$acl_libdirstem"; then
5 kx additional_libdir="$withval/$acl_libdirstem2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBICONV=
5 kx LTLIBICONV=
5 kx INCICONV=
5 kx LIBICONV_PREFIX=
5 kx HAVE_LIBICONV=
5 kx rpathdirs=
5 kx ltrpathdirs=
5 kx names_already_handled=
5 kx names_next_round='iconv '
5 kx while test -n "$names_next_round"; do
5 kx names_this_round="$names_next_round"
5 kx names_next_round=
5 kx for name in $names_this_round; do
5 kx already_handled=
5 kx for n in $names_already_handled; do
5 kx if test "$n" = "$name"; then
5 kx already_handled=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$already_handled"; then
5 kx names_already_handled="$names_already_handled $name"
5 kx uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5 kx eval value=\"\$HAVE_LIB$uppername\"
5 kx if test -n "$value"; then
5 kx if test "$value" = yes; then
5 kx eval value=\"\$LIB$uppername\"
5 kx test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5 kx eval value=\"\$LTLIB$uppername\"
5 kx test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5 kx else
5 kx :
5 kx fi
5 kx else
5 kx found_dir=
5 kx found_la=
5 kx found_so=
5 kx found_a=
5 kx eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5 kx if test -n "$acl_shlibext"; then
5 kx shrext=".$acl_shlibext" # typically: shrext=.so
5 kx else
5 kx shrext=
5 kx fi
5 kx if test $use_additional = yes; then
5 kx dir="$additional_libdir"
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx for x in $LDFLAGS $LTLIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx case "$x" in
5 kx -L*)
5 kx dir=`echo "X$x" | sed -e 's/^X-L//'`
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx if test "X$found_dir" != "X"; then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5 kx if test "X$found_so" != "X"; then
5 kx if test "$enable_rpath" = no \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $found_dir"
5 kx fi
5 kx if test "$acl_hardcode_direct" = yes; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $found_dir"
5 kx fi
5 kx else
5 kx haveit=
5 kx for x in $LDFLAGS $LIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5 kx fi
5 kx if test "$acl_hardcode_minus_L" != no; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx else
5 kx if test "X$found_a" != "X"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5 kx fi
5 kx fi
5 kx additional_includedir=
5 kx case "$found_dir" in
5 kx */$acl_libdirstem | */$acl_libdirstem/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5 kx if test "$name" = 'iconv'; then
5 kx LIBICONV_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx */$acl_libdirstem2 | */$acl_libdirstem2/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5 kx if test "$name" = 'iconv'; then
5 kx LIBICONV_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx esac
5 kx if test "X$additional_includedir" != "X"; then
5 kx if test "X$additional_includedir" != "X/usr/include"; then
5 kx haveit=
5 kx if test "X$additional_includedir" = "X/usr/local/include"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx for x in $CPPFLAGS $INCICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-I$additional_includedir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_includedir"; then
5 kx INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -n "$found_la"; then
5 kx save_libdir="$libdir"
5 kx case "$found_la" in
5 kx */* | *\\*) . "$found_la" ;;
5 kx *) . "./$found_la" ;;
5 kx esac
5 kx libdir="$save_libdir"
5 kx for dep in $dependency_libs; do
5 kx case "$dep" in
5 kx -L*)
5 kx additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5 kx if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5 kx && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5 kx haveit=
5 kx if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5 kx || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx haveit=
5 kx for x in $LDFLAGS $LIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx haveit=
5 kx for x in $LDFLAGS $LTLIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx -R*)
5 kx dir=`echo "X$dep" | sed -e 's/^X-R//'`
5 kx if test "$enable_rpath" != no; then
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $dir"
5 kx fi
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $dir"
5 kx fi
5 kx fi
5 kx ;;
5 kx -l*)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5 kx ;;
5 kx *.la)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5 kx ;;
5 kx *)
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5 kx ;;
5 kx esac
5 kx done
5 kx fi
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx if test "X$rpathdirs" != "X"; then
5 kx if test -n "$acl_hardcode_libdir_separator"; then
5 kx alldirs=
5 kx for found_dir in $rpathdirs; do
5 kx alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5 kx done
5 kx acl_save_libdir="$libdir"
5 kx libdir="$alldirs"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5 kx else
5 kx for found_dir in $rpathdirs; do
5 kx acl_save_libdir="$libdir"
5 kx libdir="$found_dir"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5 kx done
5 kx fi
5 kx fi
5 kx if test "X$ltrpathdirs" != "X"; then
5 kx for found_dir in $ltrpathdirs; do
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5 kx $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5 kx if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <CoreFoundation/CFPreferences.h>
5 kx int
5 kx main ()
5 kx {
5 kx CFPreferencesCopyAppValue(NULL, NULL)
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gt_cv_func_CFPreferencesCopyAppValue=yes
5 kx else
5 kx gt_cv_func_CFPreferencesCopyAppValue=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5 kx $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5 kx if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5 kx
5 kx $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5 kx $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5 kx if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <CoreFoundation/CFLocale.h>
5 kx int
5 kx main ()
5 kx {
5 kx CFLocaleCopyCurrent();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gt_cv_func_CFLocaleCopyCurrent=yes
5 kx else
5 kx gt_cv_func_CFLocaleCopyCurrent=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5 kx $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5 kx if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5 kx
5 kx $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5 kx
5 kx fi
5 kx INTL_MACOSX_LIBS=
5 kx if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5 kx INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx POSUB=
5 kx
5 kx case " $gt_needs " in
5 kx *" need-formatstring-macros "*) gt_api_version=3 ;;
5 kx *" need-ngettext "*) gt_api_version=2 ;;
5 kx *) gt_api_version=1 ;;
5 kx esac
5 kx gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5 kx gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5 kx
5 kx if test "$USE_NLS" = "yes"; then
5 kx gt_use_preinstalled_gnugettext=no
5 kx
5 kx
5 kx if test $gt_api_version -ge 3; then
5 kx gt_revision_test_code='
5 kx #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5 kx #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5 kx #endif
5 kx typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5 kx '
5 kx else
5 kx gt_revision_test_code=
5 kx fi
5 kx if test $gt_api_version -ge 2; then
5 kx gt_expression_test_code=' + * ngettext ("", "", 0)'
5 kx else
5 kx gt_expression_test_code=
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5 kx $as_echo_n "checking for GNU gettext in libc... " >&6; }
5 kx if eval \${$gt_func_gnugettext_libc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern int *_nl_domain_bindings;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$gt_func_gnugettext_libc=yes"
5 kx else
5 kx eval "$gt_func_gnugettext_libc=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$gt_func_gnugettext_libc
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx am_save_CPPFLAGS="$CPPFLAGS"
5 kx
5 kx for element in $INCICONV; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5 kx $as_echo_n "checking for iconv... " >&6; }
5 kx if ${am_cv_func_iconv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_cv_func_iconv="no, consider installing GNU libiconv"
5 kx am_cv_lib_iconv=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test "$am_cv_func_iconv" != yes; then
5 kx am_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBICONV"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_lib_iconv=yes
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$am_save_LIBS"
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5 kx $as_echo "$am_cv_func_iconv" >&6; }
5 kx if test "$am_cv_func_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5 kx $as_echo_n "checking for working iconv... " >&6; }
5 kx if ${am_cv_func_iconv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_save_LIBS="$LIBS"
5 kx if test $am_cv_lib_iconv = yes; then
5 kx LIBS="$LIBS $LIBICONV"
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5 kx *) am_cv_func_iconv_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <iconv.h>
5 kx #include <string.h>
5 kx int main ()
5 kx {
5 kx int result = 0;
5 kx /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5 kx returns. */
5 kx {
5 kx iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5 kx if (cd_utf8_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\342\202\254"; /* EURO SIGN */
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_utf8_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 1;
5 kx iconv_close (cd_utf8_to_88591);
5 kx }
5 kx }
5 kx /* Test against Solaris 10 bug: Failures are not distinguishable from
5 kx successful returns. */
5 kx {
5 kx iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5 kx if (cd_ascii_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\263";
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_ascii_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 2;
5 kx iconv_close (cd_ascii_to_88591);
5 kx }
5 kx }
5 kx /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304";
5 kx static char buf[2] = { (char)0xDE, (char)0xAD };
5 kx const char *inptr = input;
5 kx size_t inbytesleft = 1;
5 kx char *outptr = buf;
5 kx size_t outbytesleft = 1;
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5 kx result |= 4;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #if 0 /* This bug could be worked around by the caller. */
5 kx /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5 kx char buf[50];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if ((int)res > 0)
5 kx result |= 8;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #endif
5 kx /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5 kx provided. */
5 kx if (/* Try standardized names. */
5 kx iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5 kx /* Try IRIX, OSF/1 names. */
5 kx && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5 kx /* Try AIX names. */
5 kx && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5 kx /* Try HP-UX names. */
5 kx && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5 kx result |= 16;
5 kx return result;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx am_cv_func_iconv_works=yes
5 kx else
5 kx am_cv_func_iconv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS="$am_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5 kx $as_echo "$am_cv_func_iconv_works" >&6; }
5 kx case "$am_cv_func_iconv_works" in
5 kx *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5 kx *) am_func_iconv=yes ;;
5 kx esac
5 kx else
5 kx am_func_iconv=no am_cv_lib_iconv=no
5 kx fi
5 kx if test "$am_func_iconv" = yes; then
5 kx
5 kx $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$am_cv_lib_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5 kx $as_echo_n "checking how to link with libiconv... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5 kx $as_echo "$LIBICONV" >&6; }
5 kx else
5 kx CPPFLAGS="$am_save_CPPFLAGS"
5 kx LIBICONV=
5 kx LTLIBICONV=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx use_additional=yes
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx # Check whether --with-libintl-prefix was given.
5 kx if test "${with_libintl_prefix+set}" = set; then :
5 kx withval=$with_libintl_prefix;
5 kx if test "X$withval" = "Xno"; then
5 kx use_additional=no
5 kx else
5 kx if test "X$withval" = "X"; then
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx else
5 kx additional_includedir="$withval/include"
5 kx additional_libdir="$withval/$acl_libdirstem"
5 kx if test "$acl_libdirstem2" != "$acl_libdirstem" \
5 kx && ! test -d "$withval/$acl_libdirstem"; then
5 kx additional_libdir="$withval/$acl_libdirstem2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx INCINTL=
5 kx LIBINTL_PREFIX=
5 kx HAVE_LIBINTL=
5 kx rpathdirs=
5 kx ltrpathdirs=
5 kx names_already_handled=
5 kx names_next_round='intl '
5 kx while test -n "$names_next_round"; do
5 kx names_this_round="$names_next_round"
5 kx names_next_round=
5 kx for name in $names_this_round; do
5 kx already_handled=
5 kx for n in $names_already_handled; do
5 kx if test "$n" = "$name"; then
5 kx already_handled=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$already_handled"; then
5 kx names_already_handled="$names_already_handled $name"
5 kx uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5 kx eval value=\"\$HAVE_LIB$uppername\"
5 kx if test -n "$value"; then
5 kx if test "$value" = yes; then
5 kx eval value=\"\$LIB$uppername\"
5 kx test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5 kx eval value=\"\$LTLIB$uppername\"
5 kx test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5 kx else
5 kx :
5 kx fi
5 kx else
5 kx found_dir=
5 kx found_la=
5 kx found_so=
5 kx found_a=
5 kx eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5 kx if test -n "$acl_shlibext"; then
5 kx shrext=".$acl_shlibext" # typically: shrext=.so
5 kx else
5 kx shrext=
5 kx fi
5 kx if test $use_additional = yes; then
5 kx dir="$additional_libdir"
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx for x in $LDFLAGS $LTLIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx case "$x" in
5 kx -L*)
5 kx dir=`echo "X$x" | sed -e 's/^X-L//'`
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx if test "X$found_dir" != "X"; then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5 kx if test "X$found_so" != "X"; then
5 kx if test "$enable_rpath" = no \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $found_dir"
5 kx fi
5 kx if test "$acl_hardcode_direct" = yes; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $found_dir"
5 kx fi
5 kx else
5 kx haveit=
5 kx for x in $LDFLAGS $LIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5 kx fi
5 kx if test "$acl_hardcode_minus_L" != no; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx else
5 kx if test "X$found_a" != "X"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5 kx fi
5 kx fi
5 kx additional_includedir=
5 kx case "$found_dir" in
5 kx */$acl_libdirstem | */$acl_libdirstem/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5 kx if test "$name" = 'intl'; then
5 kx LIBINTL_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx */$acl_libdirstem2 | */$acl_libdirstem2/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5 kx if test "$name" = 'intl'; then
5 kx LIBINTL_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx esac
5 kx if test "X$additional_includedir" != "X"; then
5 kx if test "X$additional_includedir" != "X/usr/include"; then
5 kx haveit=
5 kx if test "X$additional_includedir" = "X/usr/local/include"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx for x in $CPPFLAGS $INCINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-I$additional_includedir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_includedir"; then
5 kx INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -n "$found_la"; then
5 kx save_libdir="$libdir"
5 kx case "$found_la" in
5 kx */* | *\\*) . "$found_la" ;;
5 kx *) . "./$found_la" ;;
5 kx esac
5 kx libdir="$save_libdir"
5 kx for dep in $dependency_libs; do
5 kx case "$dep" in
5 kx -L*)
5 kx additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5 kx if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5 kx && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5 kx haveit=
5 kx if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5 kx || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx haveit=
5 kx for x in $LDFLAGS $LIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx haveit=
5 kx for x in $LDFLAGS $LTLIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx -R*)
5 kx dir=`echo "X$dep" | sed -e 's/^X-R//'`
5 kx if test "$enable_rpath" != no; then
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $dir"
5 kx fi
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $dir"
5 kx fi
5 kx fi
5 kx ;;
5 kx -l*)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5 kx ;;
5 kx *.la)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5 kx ;;
5 kx *)
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5 kx ;;
5 kx esac
5 kx done
5 kx fi
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx if test "X$rpathdirs" != "X"; then
5 kx if test -n "$acl_hardcode_libdir_separator"; then
5 kx alldirs=
5 kx for found_dir in $rpathdirs; do
5 kx alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5 kx done
5 kx acl_save_libdir="$libdir"
5 kx libdir="$alldirs"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5 kx else
5 kx for found_dir in $rpathdirs; do
5 kx acl_save_libdir="$libdir"
5 kx libdir="$found_dir"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5 kx done
5 kx fi
5 kx fi
5 kx if test "X$ltrpathdirs" != "X"; then
5 kx for found_dir in $ltrpathdirs; do
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5 kx $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5 kx if eval \${$gt_func_gnugettext_libintl+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_CPPFLAGS="$CPPFLAGS"
5 kx CPPFLAGS="$CPPFLAGS $INCINTL"
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBINTL"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx const char *_nl_expand_alias (const char *);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$gt_func_gnugettext_libintl=yes"
5 kx else
5 kx eval "$gt_func_gnugettext_libintl=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5 kx LIBS="$LIBS $LIBICONV"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx const char *_nl_expand_alias (const char *);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx LIBINTL="$LIBINTL $LIBICONV"
5 kx LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5 kx eval "$gt_func_gnugettext_libintl=yes"
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx CPPFLAGS="$gt_save_CPPFLAGS"
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx eval ac_res=\$$gt_func_gnugettext_libintl
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx fi
5 kx
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5 kx || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5 kx && test "$PACKAGE" != gettext-runtime \
5 kx && test "$PACKAGE" != gettext-tools; }; then
5 kx gt_use_preinstalled_gnugettext=yes
5 kx else
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx INCINTL=
5 kx fi
5 kx
5 kx
5 kx
5 kx if test -n "$INTL_MACOSX_LIBS"; then
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes" \
5 kx || test "$nls_cv_use_gnu_gettext" = "yes"; then
5 kx LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5 kx LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5 kx fi
5 kx fi
5 kx
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes" \
5 kx || test "$nls_cv_use_gnu_gettext" = "yes"; then
5 kx
5 kx $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5 kx
5 kx else
5 kx USE_NLS=no
5 kx fi
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5 kx $as_echo_n "checking whether to use NLS... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5 kx $as_echo "$USE_NLS" >&6; }
5 kx if test "$USE_NLS" = "yes"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5 kx $as_echo_n "checking where the gettext function comes from... " >&6; }
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5 kx gt_source="external libintl"
5 kx else
5 kx gt_source="libc"
5 kx fi
5 kx else
5 kx gt_source="included intl directory"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5 kx $as_echo "$gt_source" >&6; }
5 kx fi
5 kx
5 kx if test "$USE_NLS" = "yes"; then
5 kx
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5 kx $as_echo_n "checking how to link with libintl... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5 kx $as_echo "$LIBINTL" >&6; }
5 kx
5 kx for element in $INCINTL; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx
5 kx $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx POSUB=po
5 kx fi
5 kx
5 kx
5 kx
5 kx INTLLIBS="$LIBINTL"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_eax" "ac_cv_member_struct_user_regs_struct_orig_eax" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_orig_eax" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_EAX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "eax" "ac_cv_member_struct_user_regs_struct_eax" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_eax" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_EAX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ebx" "ac_cv_member_struct_user_regs_struct_ebx" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_ebx" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_EBX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ecx" "ac_cv_member_struct_user_regs_struct_ecx" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_ecx" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_ECX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "edx" "ac_cv_member_struct_user_regs_struct_edx" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_edx" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_EDX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_rax" "ac_cv_member_struct_user_regs_struct_orig_rax" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_orig_rax" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_RAX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rax" "ac_cv_member_struct_user_regs_struct_rax" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_rax" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_RAX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdi" "ac_cv_member_struct_user_regs_struct_rdi" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_rdi" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_RDI 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rsi" "ac_cv_member_struct_user_regs_struct_rsi" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_rsi" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_RSI 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdx" "ac_cv_member_struct_user_regs_struct_rdx" "#include <bits/types.h>
5 kx #include <sys/user.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_regs_struct_rdx" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_REGS_STRUCT_RDX 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_gpr3" "ac_cv_member_struct_pt_regs_orig_gpr3" "#include <linux/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_orig_gpr3" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_ORIG_GPR3 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "gpr" "ac_cv_member_struct_pt_regs_gpr" "#include <linux/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_gpr" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_GPR 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "uregs" "ac_cv_member_struct_pt_regs_uregs" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_uregs" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_UREGS 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct user_pt_regs" "regs" "ac_cv_member_struct_user_pt_regs_regs" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_user_pt_regs_regs" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_USER_PT_REGS_REGS 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "regs" "ac_cv_member_struct_pt_regs_regs" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_regs" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_REGS 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "cp0_status" "ac_cv_member_struct_pt_regs_cp0_status" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_cp0_status" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_CP0_STATUS 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_d0" "ac_cv_member_struct_pt_regs_orig_d0" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_orig_d0" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_ORIG_D0 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_member "$LINENO" "struct pt_regs" "d0" "ac_cv_member_struct_pt_regs_d0" "#include <asm/ptrace.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_pt_regs_d0" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_PT_REGS_D0 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx case ${host_os} in
5 kx gnu*)
5 kx want_fuser=no
5 kx ;;
5 kx *)
5 kx want_fuser=yes
5 kx ;;
5 kx esac
5 kx if test $want_fuser = yes; then
5 kx WANT_FUSER_TRUE=
5 kx WANT_FUSER_FALSE='#'
5 kx else
5 kx WANT_FUSER_TRUE='#'
5 kx WANT_FUSER_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_eax = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_ebx = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_edx = yes ; then
5 kx WANT_PEEKFD_I386_TRUE=
5 kx WANT_PEEKFD_I386_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_I386_TRUE='#'
5 kx WANT_PEEKFD_I386_FALSE=
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_user_regs_struct_orig_rax = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_rax = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_rdi = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_rsi = yes &&
5 kx test $ac_cv_member_struct_user_regs_struct_rdx = yes ; then
5 kx WANT_PEEKFD_X86_64_TRUE=
5 kx WANT_PEEKFD_X86_64_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_X86_64_TRUE='#'
5 kx WANT_PEEKFD_X86_64_FALSE=
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_pt_regs_orig_gpr3 = yes &&
5 kx test $ac_cv_member_struct_pt_regs_gpr = yes ; then
5 kx WANT_PEEKFD_PPC_TRUE=
5 kx WANT_PEEKFD_PPC_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_PPC_TRUE='#'
5 kx WANT_PEEKFD_PPC_FALSE=
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_pt_regs_uregs = yes; then
5 kx WANT_PEEKFD_ARM_TRUE=
5 kx WANT_PEEKFD_ARM_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_ARM_TRUE='#'
5 kx WANT_PEEKFD_ARM_FALSE=
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_user_pt_regs_regs = yes; then
5 kx WANT_PEEKFD_ARM64_TRUE=
5 kx WANT_PEEKFD_ARM64_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_ARM64_TRUE='#'
5 kx WANT_PEEKFD_ARM64_FALSE=
5 kx fi
5 kx
5 kx if test $build_cpu = mipsel &&
5 kx test $ac_cv_member_struct_pt_regs_regs = yes &&
5 kx test $ac_cv_member_struct_pt_regs_cp0_status = yes; then
5 kx WANT_PEEKFD_MIPS_TRUE=
5 kx WANT_PEEKFD_MIPS_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_MIPS_TRUE='#'
5 kx WANT_PEEKFD_MIPS_FALSE=
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_pt_regs_orig_d0 = yes &&
5 kx test $ac_cv_member_struct_pt_regs_d0 = yes; then
5 kx WANT_PEEKFD_M68K_TRUE=
5 kx WANT_PEEKFD_M68K_FALSE='#'
5 kx else
5 kx WANT_PEEKFD_M68K_TRUE='#'
5 kx WANT_PEEKFD_M68K_FALSE=
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5 kx $as_echo_n "checking whether closedir returns void... " >&6; }
5 kx if ${ac_cv_func_closedir_void+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_closedir_void=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx #include <$ac_header_dirent>
5 kx #ifndef __cplusplus
5 kx int closedir ();
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return closedir (opendir (".")) != 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_closedir_void=no
5 kx else
5 kx ac_cv_func_closedir_void=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5 kx $as_echo "$ac_cv_func_closedir_void" >&6; }
5 kx if test $ac_cv_func_closedir_void = yes; then
5 kx
5 kx $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
5 kx # -lseq on Dynix/PTX, -lgen on Unixware.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
5 kx $as_echo_n "checking for library containing getmntent... " >&6; }
5 kx if ${ac_cv_search_getmntent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char getmntent ();
5 kx int
5 kx main ()
5 kx {
5 kx return getmntent ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' sun seq gen; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_getmntent=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_getmntent+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_getmntent+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_getmntent=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
5 kx $as_echo "$ac_cv_search_getmntent" >&6; }
5 kx ac_res=$ac_cv_search_getmntent
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx ac_cv_func_getmntent=yes
5 kx
5 kx $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
5 kx
5 kx else
5 kx ac_cv_func_getmntent=no
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_c_compiler_gnu = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5 kx $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5 kx if ${ac_cv_prog_gcc_traditional+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_pattern="Autoconf.*'x'"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sgtty.h>
5 kx Autoconf TIOCGETP
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5 kx ac_cv_prog_gcc_traditional=yes
5 kx else
5 kx ac_cv_prog_gcc_traditional=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx if test $ac_cv_prog_gcc_traditional = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <termio.h>
5 kx Autoconf TCGETA
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5 kx ac_cv_prog_gcc_traditional=yes
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5 kx $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5 kx if test $ac_cv_prog_gcc_traditional = yes; then
5 kx CC="$CC -traditional"
5 kx fi
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5 kx $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5 kx if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx rm -f conftest.sym conftest.file
5 kx echo >conftest.file
5 kx if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx struct stat sbuf;
5 kx /* Linux will dereference the symlink and fail, as required by POSIX.
5 kx That is better in the sense that it means we will not
5 kx have to compile and use the lstat wrapper. */
5 kx return lstat ("conftest.sym/", &sbuf) == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=yes
5 kx else
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx else
5 kx # If the `ln -s' command failed, then we probably don't even
5 kx # have an lstat function.
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx fi
5 kx rm -f conftest.sym conftest.file
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5 kx $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5 kx
5 kx test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5 kx _ACEOF
5 kx
5 kx
5 kx if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5 kx case " $LIBOBJS " in
5 kx *" lstat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
5 kx $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
5 kx if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_lstat_empty_string_bug=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx struct stat sbuf;
5 kx return lstat ("", &sbuf) == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_lstat_empty_string_bug=no
5 kx else
5 kx ac_cv_func_lstat_empty_string_bug=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
5 kx $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
5 kx if test $ac_cv_func_lstat_empty_string_bug = yes; then
5 kx case " $LIBOBJS " in
5 kx *" lstat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_LSTAT_EMPTY_STRING_BUG 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5 kx $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5 kx if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx rm -f conftest.sym conftest.file
5 kx echo >conftest.file
5 kx if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx struct stat sbuf;
5 kx /* Linux will dereference the symlink and fail, as required by POSIX.
5 kx That is better in the sense that it means we will not
5 kx have to compile and use the lstat wrapper. */
5 kx return lstat ("conftest.sym/", &sbuf) == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=yes
5 kx else
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx else
5 kx # If the `ln -s' command failed, then we probably don't even
5 kx # have an lstat function.
5 kx ac_cv_func_lstat_dereferences_slashed_symlink=no
5 kx fi
5 kx rm -f conftest.sym conftest.file
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5 kx $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5 kx
5 kx test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5 kx _ACEOF
5 kx
5 kx
5 kx if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5 kx case " $LIBOBJS " in
5 kx *" lstat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx for ac_header in stdlib.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_stdlib_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STDLIB_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5 kx $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5 kx if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_malloc_0_nonnull=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx #else
5 kx char *malloc ();
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return ! malloc (0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_malloc_0_nonnull=yes
5 kx else
5 kx ac_cv_func_malloc_0_nonnull=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5 kx $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5 kx if test $ac_cv_func_malloc_0_nonnull = yes; then :
5 kx
5 kx $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5 kx
5 kx else
5 kx $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5 kx
5 kx case " $LIBOBJS " in
5 kx *" malloc.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx $as_echo "/* #define malloc rpl_malloc */" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5 kx $as_echo_n "checking for working memcmp... " >&6; }
5 kx if ${ac_cv_func_memcmp_working+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_memcmp_working=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Some versions of memcmp are not 8-bit clean. */
5 kx char c0 = '\100', c1 = '\200', c2 = '\201';
5 kx if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5 kx return 1;
5 kx
5 kx /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5 kx or more and with at least one buffer not starting on a 4-byte boundary.
5 kx William Lewis provided this test program. */
5 kx {
5 kx char foo[21];
5 kx char bar[21];
5 kx int i;
5 kx for (i = 0; i < 4; i++)
5 kx {
5 kx char *a = foo + i;
5 kx char *b = bar + i;
5 kx strcpy (a, "--------01111111");
5 kx strcpy (b, "--------10000000");
5 kx if (memcmp (a, b, 16) >= 0)
5 kx return 1;
5 kx }
5 kx return 0;
5 kx }
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_memcmp_working=yes
5 kx else
5 kx ac_cv_func_memcmp_working=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5 kx $as_echo "$ac_cv_func_memcmp_working" >&6; }
5 kx test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5 kx *" memcmp.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx for ac_header in stdlib.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_stdlib_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STDLIB_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5 kx $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5 kx if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_realloc_0_nonnull=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx #else
5 kx char *realloc ();
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return ! realloc (0, 0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_realloc_0_nonnull=yes
5 kx else
5 kx ac_cv_func_realloc_0_nonnull=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5 kx $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5 kx if test $ac_cv_func_realloc_0_nonnull = yes; then :
5 kx
5 kx $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5 kx
5 kx else
5 kx $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5 kx
5 kx case " $LIBOBJS " in
5 kx *" realloc.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx $as_echo "/* #define realloc rpl_realloc */" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
5 kx $as_echo_n "checking whether stat accepts an empty string... " >&6; }
5 kx if ${ac_cv_func_stat_empty_string_bug+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_func_stat_empty_string_bug=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx struct stat sbuf;
5 kx return stat ("", &sbuf) == 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_stat_empty_string_bug=no
5 kx else
5 kx ac_cv_func_stat_empty_string_bug=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
5 kx $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
5 kx if test $ac_cv_func_stat_empty_string_bug = yes; then
5 kx case " $LIBOBJS " in
5 kx *" stat.$ac_objext "* ) ;;
5 kx *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STAT_EMPTY_STRING_BUG 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx for ac_func in atexit getmntent memset nl_langinfo rawmemchr regcomp rpmatch setlocale socket strcasecmp strchr strdup strerror strpbrk strrchr strtoul
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx # Check whether --enable-largefile was given.
5 kx if test "${enable_largefile+set}" = set; then :
5 kx enableval=$enable_largefile;
5 kx fi
5 kx
5 kx if test "$enable_largefile" != no; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5 kx $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5 kx if ${ac_cv_sys_largefile_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_sys_largefile_CC=no
5 kx if test "$GCC" != yes; then
5 kx ac_save_CC=$CC
5 kx while :; do
5 kx # IRIX 6.2 and later do not support large files by default,
5 kx # so use the C compiler's -n32 option if that helps.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx CC="$CC -n32"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_largefile_CC=' -n32'; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx break
5 kx done
5 kx CC=$ac_save_CC
5 kx rm -f conftest.$ac_ext
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5 kx $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5 kx if test "$ac_cv_sys_largefile_CC" != no; then
5 kx CC=$CC$ac_cv_sys_largefile_CC
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5 kx $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_file_offset_bits+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _FILE_OFFSET_BITS 64
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=64; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_file_offset_bits=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5 kx $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5 kx case $ac_cv_sys_file_offset_bits in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx if test $ac_cv_sys_file_offset_bits = unknown; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5 kx $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_large_files+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _LARGE_FILES 1
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=1; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_large_files=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5 kx $as_echo "$ac_cv_sys_large_files" >&6; }
5 kx case $ac_cv_sys_large_files in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _LARGE_FILES $ac_cv_sys_large_files
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test x"$DEJAGNU" = x
5 kx then
5 kx DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
5 kx fi
5 kx
5 kx
5 kx ac_config_files="$ac_config_files Makefile doc/Makefile icons/Makefile po/Makefile.in man-po/Makefile testsuite/Makefile"
5 kx
5 kx cat >confcache <<\_ACEOF
5 kx # This file is a shell script that caches the results of configure
5 kx # tests run on this system so they can be shared between configure
5 kx # scripts and configure runs, see configure's option --config-cache.
5 kx # It is not useful on other systems. If it contains results you don't
5 kx # want to keep, you may remove or edit it.
5 kx #
5 kx # config.status only pays attention to the cache file if you give it
5 kx # the --recheck option to rerun configure.
5 kx #
5 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
5 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
5 kx # following values.
5 kx
5 kx _ACEOF
5 kx
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx # but we know of no workaround that is simple, portable, and efficient.
5 kx # So, we kill variables containing newlines.
5 kx # Ultrix sh set writes to stderr and can't be redirected directly,
5 kx # and sets the high bit in the cache file unless we assign to the vars.
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx # `set' does not quote correctly, so add quotes: double-quote
5 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
5 kx sed -n \
5 kx "s/'/'\\\\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 kx ;; #(
5 kx *)
5 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx ) |
5 kx sed '
5 kx /^ac_cv_env_/b end
5 kx t clear
5 kx :clear
5 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5 kx t end
5 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5 kx :end' >>confcache
5 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5 kx if test -w "$cache_file"; then
5 kx if test "x$cache_file" != "x/dev/null"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5 kx $as_echo "$as_me: updating cache $cache_file" >&6;}
5 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
5 kx cat confcache >"$cache_file"
5 kx else
5 kx case $cache_file in #(
5 kx */* | ?:*)
5 kx mv -f confcache "$cache_file"$$ &&
5 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
5 kx *)
5 kx mv -f confcache "$cache_file" ;;
5 kx esac
5 kx fi
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5 kx $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5 kx fi
5 kx fi
5 kx rm -f confcache
5 kx
5 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
5 kx # Let make expand exec_prefix.
5 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5 kx
5 kx DEFS=-DHAVE_CONFIG_H
5 kx
5 kx ac_libobjs=
5 kx ac_ltlibobjs=
5 kx U=
5 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5 kx # 1. Remove the extension, and $U if already installed.
5 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5 kx ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5 kx # will be set to the directory where LIBOBJS objects are built.
5 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5 kx done
5 kx LIBOBJS=$ac_libobjs
5 kx
5 kx LTLIBOBJS=$ac_ltlibobjs
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5 kx $as_echo_n "checking that generated files are newer than configure... " >&6; }
5 kx if test -n "$am_sleep_pid"; then
5 kx # Hide warnings about reused PIDs.
5 kx wait $am_sleep_pid 2>/dev/null
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5 kx $as_echo "done" >&6; }
5 kx if test -n "$EXEEXT"; then
5 kx am__EXEEXT_TRUE=
5 kx am__EXEEXT_FALSE='#'
5 kx else
5 kx am__EXEEXT_TRUE='#'
5 kx am__EXEEXT_FALSE=
5 kx fi
5 kx
5 kx if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5 kx as_fn_error $? "conditional \"AMDEP\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5 kx as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_TIMEOUT_STAT_TRUE}" && test -z "${WANT_TIMEOUT_STAT_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_TIMEOUT_STAT\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_FUSER_TRUE}" && test -z "${WANT_FUSER_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_FUSER\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_I386_TRUE}" && test -z "${WANT_PEEKFD_I386_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_I386\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_X86_64_TRUE}" && test -z "${WANT_PEEKFD_X86_64_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_X86_64\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_PPC_TRUE}" && test -z "${WANT_PEEKFD_PPC_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_PPC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_ARM_TRUE}" && test -z "${WANT_PEEKFD_ARM_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_ARM\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_ARM64_TRUE}" && test -z "${WANT_PEEKFD_ARM64_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_ARM64\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_MIPS_TRUE}" && test -z "${WANT_PEEKFD_MIPS_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_MIPS\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${WANT_PEEKFD_M68K_TRUE}" && test -z "${WANT_PEEKFD_M68K_FALSE}"; then
5 kx as_fn_error $? "conditional \"WANT_PEEKFD_M68K\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx : "${CONFIG_STATUS=./config.status}"
5 kx ac_write_fail=0
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5 kx $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5 kx as_write_fail=0
5 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5 kx #! $SHELL
5 kx # Generated by $as_me.
5 kx # Run this file to recreate the current configuration.
5 kx # Compiler output produced by configure, useful for debugging
5 kx # configure, is in config.log if it exists.
5 kx
5 kx debug=false
5 kx ac_cs_recheck=false
5 kx ac_cs_silent=false
5 kx
5 kx SHELL=\${CONFIG_SHELL-$SHELL}
5 kx export SHELL
5 kx _ASEOF
5 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx exec 6>&1
5 kx ## ----------------------------------- ##
5 kx ## Main body of $CONFIG_STATUS script. ##
5 kx ## ----------------------------------- ##
5 kx _ASEOF
5 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # Save the log message, to keep $0 and so on meaningful, and to
5 kx # report actual input values of CONFIG_FILES etc. instead of their
5 kx # values after options handling.
5 kx ac_log="
5 kx This file was extended by psmisc $as_me 23.4, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx CONFIG_FILES = $CONFIG_FILES
5 kx CONFIG_HEADERS = $CONFIG_HEADERS
5 kx CONFIG_LINKS = $CONFIG_LINKS
5 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
5 kx $ $0 $@
5 kx
5 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx "
5 kx
5 kx _ACEOF
5 kx
5 kx case $ac_config_files in *"
5 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
5 kx esac
5 kx
5 kx case $ac_config_headers in *"
5 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5 kx esac
5 kx
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx # Files that config.status was made for.
5 kx config_files="$ac_config_files"
5 kx config_headers="$ac_config_headers"
5 kx config_commands="$ac_config_commands"
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx ac_cs_usage="\
5 kx \`$as_me' instantiates files and other configuration actions
5 kx from templates according to the current configuration. Unless the files
5 kx and actions are specified as TAGs, all are instantiated by default.
5 kx
5 kx Usage: $0 [OPTION]... [TAG]...
5 kx
5 kx -h, --help print this help, then exit
5 kx -V, --version print version number and configuration settings, then exit
5 kx --config print configuration, then exit
5 kx -q, --quiet, --silent
5 kx do not print progress messages
5 kx -d, --debug don't remove temporary files
5 kx --recheck update $as_me by reconfiguring in the same conditions
5 kx --file=FILE[:TEMPLATE]
5 kx instantiate the configuration file FILE
5 kx --header=FILE[:TEMPLATE]
5 kx instantiate the configuration header FILE
5 kx
5 kx Configuration files:
5 kx $config_files
5 kx
5 kx Configuration headers:
5 kx $config_headers
5 kx
5 kx Configuration commands:
5 kx $config_commands
5 kx
5 kx Report bugs to the package provider."
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5 kx ac_cs_version="\\
5 kx psmisc config.status 23.4
5 kx configured by $0, generated by GNU Autoconf 2.69,
5 kx with options \\"\$ac_cs_config\\"
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This config.status script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it."
5 kx
5 kx ac_pwd='$ac_pwd'
5 kx srcdir='$srcdir'
5 kx INSTALL='$INSTALL'
5 kx MKDIR_P='$MKDIR_P'
5 kx AWK='$AWK'
5 kx test -n "\$AWK" || AWK=awk
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # The default lists apply if the user does not specify any file.
5 kx ac_need_defaults=:
5 kx while test $# != 0
5 kx do
5 kx case $1 in
5 kx --*=?*)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5 kx ac_shift=:
5 kx ;;
5 kx --*=)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=
5 kx ac_shift=:
5 kx ;;
5 kx *)
5 kx ac_option=$1
5 kx ac_optarg=$2
5 kx ac_shift=shift
5 kx ;;
5 kx esac
5 kx
5 kx case $ac_option in
5 kx # Handling of the options.
5 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5 kx ac_cs_recheck=: ;;
5 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5 kx $as_echo "$ac_cs_version"; exit ;;
5 kx --config | --confi | --conf | --con | --co | --c )
5 kx $as_echo "$ac_cs_config"; exit ;;
5 kx --debug | --debu | --deb | --de | --d | -d )
5 kx debug=: ;;
5 kx --file | --fil | --fi | --f )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx '') as_fn_error $? "missing file argument" ;;
5 kx esac
5 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --header | --heade | --head | --hea )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --he | --h)
5 kx # Conflict between --help and --header
5 kx as_fn_error $? "ambiguous option: \`$1'
5 kx Try \`$0 --help' for more information.";;
5 kx --help | --hel | -h )
5 kx $as_echo "$ac_cs_usage"; exit ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
5 kx ac_cs_silent=: ;;
5 kx
5 kx # This is an error.
5 kx -*) as_fn_error $? "unrecognized option: \`$1'
5 kx Try \`$0 --help' for more information." ;;
5 kx
5 kx *) as_fn_append ac_config_targets " $1"
5 kx ac_need_defaults=false ;;
5 kx
5 kx esac
5 kx shift
5 kx done
5 kx
5 kx ac_configure_extra_args=
5 kx
5 kx if $ac_cs_silent; then
5 kx exec 6>/dev/null
5 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx if \$ac_cs_recheck; then
5 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5 kx shift
5 kx \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5 kx CONFIG_SHELL='$SHELL'
5 kx export CONFIG_SHELL
5 kx exec "\$@"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx exec 5>>config.log
5 kx {
5 kx echo
5 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5 kx ## Running $as_me. ##
5 kx _ASBOX
5 kx $as_echo "$ac_log"
5 kx } >&5
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx #
5 kx # INIT-COMMANDS
5 kx #
5 kx AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5 kx # Capture the value of obsolete ALL_LINGUAS because we need it to compute
5 kx # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
5 kx # from automake < 1.5.
5 kx eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
5 kx # Capture the value of LINGUAS because we need it to compute CATALOGS.
5 kx LINGUAS="${LINGUAS-%UNSET%}"
5 kx
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx
5 kx # Handling of arguments.
5 kx for ac_config_target in $ac_config_targets
5 kx do
5 kx case $ac_config_target in
5 kx "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5 kx "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5 kx "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
5 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5 kx "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5 kx "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
5 kx "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
5 kx "man-po/Makefile") CONFIG_FILES="$CONFIG_FILES man-po/Makefile" ;;
5 kx "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
5 kx
5 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5 kx esac
5 kx done
5 kx
5 kx
5 kx # If the user did not use the arguments to specify the items to instantiate,
5 kx # then the envvar interface is used. Set only those that are not.
5 kx # We use the long form for the default assignment because of an extremely
5 kx # bizarre bug on SunOS 4.1.3.
5 kx if $ac_need_defaults; then
5 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5 kx fi
5 kx
5 kx # Have a temporary directory for convenience. Make it in the build tree
5 kx # simply because there is no reason against having it here, and in addition,
5 kx # creating and moving files from /tmp can sometimes cause problems.
5 kx # Hook for its removal unless debugging.
5 kx # Note that there is a small window in which the directory will not be cleaned:
5 kx # after its creation but before its name has been assigned to `$tmp'.
5 kx $debug ||
5 kx {
5 kx tmp= ac_tmp=
5 kx trap 'exit_status=$?
5 kx : "${ac_tmp:=$tmp}"
5 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5 kx ' 0
5 kx trap 'as_fn_exit 1' 1 2 13 15
5 kx }
5 kx # Create a (secure) tmp directory for tmp files.
5 kx
5 kx {
5 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5 kx test -d "$tmp"
5 kx } ||
5 kx {
5 kx tmp=./conf$$-$RANDOM
5 kx (umask 077 && mkdir "$tmp")
5 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5 kx ac_tmp=$tmp
5 kx
5 kx # Set up the scripts for CONFIG_FILES section.
5 kx # No need to generate them if there are no CONFIG_FILES.
5 kx # This happens for instance with `./config.status config.h'.
5 kx if test -n "$CONFIG_FILES"; then
5 kx
5 kx
5 kx ac_cr=`echo X | tr X '\015'`
5 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
5 kx # But we know of no other shell where ac_cr would be empty at this
5 kx # point, so we can use a bashism as a fallback.
5 kx if test "x$ac_cr" = x; then
5 kx eval ac_cr=\$\'\\r\'
5 kx fi
5 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5 kx ac_cs_awk_cr='\\r'
5 kx else
5 kx ac_cs_awk_cr=$ac_cr
5 kx fi
5 kx
5 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5 kx _ACEOF
5 kx
5 kx
5 kx {
5 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
5 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5 kx echo "_ACEOF"
5 kx } >conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false false false false :; do
5 kx . ./conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5 kx if test $ac_delim_n = $ac_delim_num; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx rm -f conf$$subs.sh
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5 kx _ACEOF
5 kx sed -n '
5 kx h
5 kx s/^/S["/; s/!.*/"]=/
5 kx p
5 kx g
5 kx s/^[^!]*!//
5 kx :repl
5 kx t repl
5 kx s/'"$ac_delim"'$//
5 kx t delim
5 kx :nl
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5 kx p
5 kx n
5 kx b repl
5 kx :more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t nl
5 kx :delim
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
5 kx p
5 kx b
5 kx :more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t delim
5 kx ' <conf$$subs.awk | sed '
5 kx /^[^""]/{
5 kx N
5 kx s/\n//
5 kx }
5 kx ' >>$CONFIG_STATUS || ac_write_fail=1
5 kx rm -f conf$$subs.awk
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx _ACAWK
5 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5 kx for (key in S) S_is_set[key] = 1
5 kx FS = ""
5 kx
5 kx }
5 kx {
5 kx line = $ 0
5 kx nfields = split(line, field, "@")
5 kx substed = 0
5 kx len = length(field[1])
5 kx for (i = 2; i < nfields; i++) {
5 kx key = field[i]
5 kx keylen = length(key)
5 kx if (S_is_set[key]) {
5 kx value = S[key]
5 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5 kx len += length(value) + length(field[++i])
5 kx substed = 1
5 kx } else
5 kx len += 1 + keylen
5 kx }
5 kx
5 kx print line
5 kx }
5 kx
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5 kx else
5 kx cat
5 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5 kx _ACEOF
5 kx
5 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5 kx # trailing colons and then remove the whole line if VPATH becomes empty
5 kx # (actually we leave an empty line to preserve line numbers).
5 kx if test "x$srcdir" = x.; then
5 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5 kx h
5 kx s///
5 kx s/^/:/
5 kx s/[ ]*$/:/
5 kx s/:\$(srcdir):/:/g
5 kx s/:\${srcdir}:/:/g
5 kx s/:@srcdir@:/:/g
5 kx s/^:*//
5 kx s/:*$//
5 kx x
5 kx s/\(=[ ]*\).*/\1/
5 kx G
5 kx s/\n//
5 kx s/^[^=]*=[ ]*$//
5 kx }'
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx fi # test -n "$CONFIG_FILES"
5 kx
5 kx # Set up the scripts for CONFIG_HEADERS section.
5 kx # No need to generate them if there are no CONFIG_HEADERS.
5 kx # This happens for instance with `./config.status Makefile'.
5 kx if test -n "$CONFIG_HEADERS"; then
5 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5 kx BEGIN {
5 kx _ACEOF
5 kx
5 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
5 kx # here-document in config.status, that substitutes the proper values into
5 kx # config.h.in to produce config.h.
5 kx
5 kx # Create a delimiter string that does not exist in confdefs.h, to ease
5 kx # handling of long lines.
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false :; do
5 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5 kx if test -z "$ac_tt"; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx
5 kx # For the awk script, D is an array of macro values keyed by name,
5 kx # likewise P contains macro parameters if any. Preserve backslash
5 kx # newline sequences.
5 kx
5 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5 kx sed -n '
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t rset
5 kx :rset
5 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
5 kx t def
5 kx d
5 kx :def
5 kx s/\\$//
5 kx t bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3"/p
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5 kx d
5 kx :bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3\\\\\\n"\\/p
5 kx t cont
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5 kx t cont
5 kx d
5 kx :cont
5 kx n
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t clear
5 kx :clear
5 kx s/\\$//
5 kx t bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
5 kx d
5 kx :bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5 kx b cont
5 kx ' <confdefs.h | sed '
5 kx s/'"$ac_delim"'/"\\\
5 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx for (key in D) D_is_set[key] = 1
5 kx FS = ""
5 kx }
5 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5 kx line = \$ 0
5 kx split(line, arg, " ")
5 kx if (arg[1] == "#") {
5 kx defundef = arg[2]
5 kx mac1 = arg[3]
5 kx } else {
5 kx defundef = substr(arg[1], 2)
5 kx mac1 = arg[2]
5 kx }
5 kx split(mac1, mac2, "(") #)
5 kx macro = mac2[1]
5 kx prefix = substr(line, 1, index(line, defundef) - 1)
5 kx if (D_is_set[macro]) {
5 kx # Preserve the white space surrounding the "#".
5 kx print prefix "define", macro P[macro] D[macro]
5 kx next
5 kx } else {
5 kx # Replace #undef with comments. This is necessary, for example,
5 kx # in the case of _POSIX_SOURCE, which is predefined and required
5 kx # on some systems where configure will not decide to define it.
5 kx if (defundef == "undef") {
5 kx print "/*", prefix defundef, macro, "*/"
5 kx next
5 kx }
5 kx }
5 kx }
5 kx { print }
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5 kx fi # test -n "$CONFIG_HEADERS"
5 kx
5 kx
5 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5 kx shift
5 kx for ac_tag
5 kx do
5 kx case $ac_tag in
5 kx :[FHLC]) ac_mode=$ac_tag; continue;;
5 kx esac
5 kx case $ac_mode$ac_tag in
5 kx :[FHL]*:*);;
5 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5 kx :[FH]-) ac_tag=-:-;;
5 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5 kx esac
5 kx ac_save_IFS=$IFS
5 kx IFS=:
5 kx set x $ac_tag
5 kx IFS=$ac_save_IFS
5 kx shift
5 kx ac_file=$1
5 kx shift
5 kx
5 kx case $ac_mode in
5 kx :L) ac_source=$1;;
5 kx :[FH])
5 kx ac_file_inputs=
5 kx for ac_f
5 kx do
5 kx case $ac_f in
5 kx -) ac_f="$ac_tmp/stdin";;
5 kx *) # Look for the file first in the build tree, then in the source tree
5 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
5 kx # because $ac_f cannot contain `:'.
5 kx test -f "$ac_f" ||
5 kx case $ac_f in
5 kx [\\/$]*) false;;
5 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5 kx esac ||
5 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5 kx esac
5 kx case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5 kx as_fn_append ac_file_inputs " '$ac_f'"
5 kx done
5 kx
5 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
5 kx # use $as_me), people would be surprised to read:
5 kx # /* config.h. Generated by config.status. */
5 kx configure_input='Generated from '`
5 kx $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5 kx `' by configure.'
5 kx if test x"$ac_file" != x-; then
5 kx configure_input="$ac_file. $configure_input"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5 kx $as_echo "$as_me: creating $ac_file" >&6;}
5 kx fi
5 kx # Neutralize special characters interpreted by sed in replacement strings.
5 kx case $configure_input in #(
5 kx *\&* | *\|* | *\\* )
5 kx ac_sed_conf_input=`$as_echo "$configure_input" |
5 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
5 kx *) ac_sed_conf_input=$configure_input;;
5 kx esac
5 kx
5 kx case $ac_tag in
5 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx ac_dir=`$as_dirname -- "$ac_file" ||
5 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$ac_file" : 'X\(//\)[^/]' \| \
5 kx X"$ac_file" : 'X\(//\)$' \| \
5 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$ac_file" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx as_dir="$ac_dir"; as_fn_mkdir_p
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx
5 kx case $ac_mode in
5 kx :F)
5 kx #
5 kx # CONFIG_FILE
5 kx #
5 kx
5 kx case $INSTALL in
5 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5 kx esac
5 kx ac_MKDIR_P=$MKDIR_P
5 kx case $MKDIR_P in
5 kx [\\/$]* | ?:[\\/]* ) ;;
5 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # If the template does not know about datarootdir, expand it.
5 kx # FIXME: This hack should be removed a few years after 2.60.
5 kx ac_datarootdir_hack=; ac_datarootdir_seen=
5 kx ac_sed_dataroot='
5 kx /datarootdir/ {
5 kx p
5 kx q
5 kx }
5 kx /@datadir@/p
5 kx /@docdir@/p
5 kx /@infodir@/p
5 kx /@localedir@/p
5 kx /@mandir@/p'
5 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5 kx *datarootdir*) ac_datarootdir_seen=yes;;
5 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_datarootdir_hack='
5 kx s&@datadir@&$datadir&g
5 kx s&@docdir@&$docdir&g
5 kx s&@infodir@&$infodir&g
5 kx s&@localedir@&$localedir&g
5 kx s&@mandir@&$mandir&g
5 kx s&\\\${datarootdir}&$datarootdir&g' ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx # Neutralize VPATH when `$srcdir' = `.'.
5 kx # Shell code in configure.ac might set extrasub.
5 kx # FIXME: do we really want to maintain this feature?
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_sed_extra="$ac_vpsub
5 kx $extrasub
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx :t
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5 kx s|@configure_input@|$ac_sed_conf_input|;t t
5 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
5 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
5 kx s&@srcdir@&$ac_srcdir&;t t
5 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
5 kx s&@top_srcdir@&$ac_top_srcdir&;t t
5 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5 kx s&@builddir@&$ac_builddir&;t t
5 kx s&@abs_builddir@&$ac_abs_builddir&;t t
5 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5 kx s&@INSTALL@&$ac_INSTALL&;t t
5 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 kx $ac_datarootdir_hack
5 kx "
5 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx
5 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&2;}
5 kx
5 kx rm -f "$ac_tmp/stdin"
5 kx case $ac_file in
5 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5 kx esac \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx ;;
5 kx :H)
5 kx #
5 kx # CONFIG_HEADER
5 kx #
5 kx if test x"$ac_file" != x-; then
5 kx {
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5 kx } >"$ac_tmp/config.h" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5 kx $as_echo "$as_me: $ac_file is unchanged" >&6;}
5 kx else
5 kx rm -f "$ac_file"
5 kx mv "$ac_tmp/config.h" "$ac_file" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx fi
5 kx else
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5 kx || as_fn_error $? "could not create -" "$LINENO" 5
5 kx fi
5 kx # Compute "$ac_file"'s index in $config_headers.
5 kx _am_arg="$ac_file"
5 kx _am_stamp_count=1
5 kx for _am_header in $config_headers :; do
5 kx case $_am_header in
5 kx $_am_arg | $_am_arg:* )
5 kx break ;;
5 kx * )
5 kx _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5 kx esac
5 kx done
5 kx echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5 kx $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$_am_arg" : 'X\(//\)[^/]' \| \
5 kx X"$_am_arg" : 'X\(//\)$' \| \
5 kx X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$_am_arg" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`/stamp-h$_am_stamp_count
5 kx ;;
5 kx
5 kx :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5 kx $as_echo "$as_me: executing $ac_file commands" >&6;}
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case $ac_file$ac_mode in
5 kx "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5 kx # Older Autoconf quotes --file arguments for eval, but not when files
5 kx # are listed without --file. Let's play safe and only enable the eval
5 kx # if we detect the quoting.
5 kx # TODO: see whether this extra hack can be removed once we start
5 kx # requiring Autoconf 2.70 or later.
5 kx case $CONFIG_FILES in #(
5 kx *\'*) :
5 kx eval set x "$CONFIG_FILES" ;; #(
5 kx *) :
5 kx set x $CONFIG_FILES ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx shift
5 kx # Used to flag and report bootstrapping failures.
5 kx am_rc=0
5 kx for am_mf
5 kx do
5 kx # Strip MF so we end up with the name of the file.
5 kx am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5 kx # Check whether this is an Automake generated Makefile which includes
5 kx # dependency-tracking related rules and includes.
5 kx # Grep'ing the whole file directly is not great: AIX grep has a line
5 kx # limit of 2048, but all sed's we know have understand at least 4000.
5 kx sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5 kx || continue
5 kx am_dirpart=`$as_dirname -- "$am_mf" ||
5 kx $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$am_mf" : 'X\(//\)[^/]' \| \
5 kx X"$am_mf" : 'X\(//\)$' \| \
5 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$am_mf" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx am_filepart=`$as_basename -- "$am_mf" ||
5 kx $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$am_mf" : 'X\(//\)$' \| \
5 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$am_mf" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx { echo "$as_me:$LINENO: cd "$am_dirpart" \
5 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
5 kx | $MAKE -f - am--depfiles" >&5
5 kx (cd "$am_dirpart" \
5 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
5 kx | $MAKE -f - am--depfiles) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } || am_rc=$?
5 kx done
5 kx if test $am_rc -ne 0; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "Something went wrong bootstrapping makefile fragments
5 kx for automatic dependency tracking. If GNU make was not used, consider
5 kx re-running the configure script with MAKE=\"gmake\" (or whatever is
5 kx necessary). You can also try re-running configure with the
5 kx '--disable-dependency-tracking' option to at least be able to build
5 kx the package (albeit without support for automatic dependency tracking).
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx { am_dirpart=; unset am_dirpart;}
5 kx { am_filepart=; unset am_filepart;}
5 kx { am_mf=; unset am_mf;}
5 kx { am_rc=; unset am_rc;}
5 kx rm -f conftest-deps.mk
5 kx }
5 kx ;;
5 kx "po-directories":C)
5 kx for ac_file in $CONFIG_FILES; do
5 kx # Support "outfile[:infile[:infile...]]"
5 kx case "$ac_file" in
5 kx *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5 kx esac
5 kx # PO directories have a Makefile.in generated from Makefile.in.in.
5 kx case "$ac_file" in */Makefile.in)
5 kx # Adjust a relative srcdir.
5 kx ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5 kx ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
5 kx ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5 kx # In autoconf-2.13 it is called $ac_given_srcdir.
5 kx # In autoconf-2.50 it is called $srcdir.
5 kx test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5 kx case "$ac_given_srcdir" in
5 kx .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5 kx /*) top_srcdir="$ac_given_srcdir" ;;
5 kx *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
5 kx esac
5 kx # Treat a directory as a PO directory if and only if it has a
5 kx # POTFILES.in file. This allows packages to have multiple PO
5 kx # directories under different names or in different locations.
5 kx if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5 kx rm -f "$ac_dir/POTFILES"
5 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5 kx gt_tab=`printf '\t'`
5 kx cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
5 kx POMAKEFILEDEPS="POTFILES.in"
5 kx # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
5 kx # on $ac_dir but don't depend on user-specified configuration
5 kx # parameters.
5 kx if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
5 kx # The LINGUAS file contains the set of available languages.
5 kx if test -n "$OBSOLETE_ALL_LINGUAS"; then
5 kx test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
5 kx fi
5 kx ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
5 kx # Hide the ALL_LINGUAS assignment from automake < 1.5.
5 kx eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
5 kx POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
5 kx else
5 kx # The set of available languages was given in configure.in.
5 kx # Hide the ALL_LINGUAS assignment from automake < 1.5.
5 kx eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
5 kx fi
5 kx # Compute POFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
5 kx # Compute UPDATEPOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
5 kx # Compute DUMMYPOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
5 kx # Compute GMOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
5 kx case "$ac_given_srcdir" in
5 kx .) srcdirpre= ;;
5 kx *) srcdirpre='$(srcdir)/' ;;
5 kx esac
5 kx POFILES=
5 kx UPDATEPOFILES=
5 kx DUMMYPOFILES=
5 kx GMOFILES=
5 kx for lang in $ALL_LINGUAS; do
5 kx POFILES="$POFILES $srcdirpre$lang.po"
5 kx UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
5 kx DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
5 kx GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
5 kx done
5 kx # CATALOGS depends on both $ac_dir and the user's LINGUAS
5 kx # environment variable.
5 kx INST_LINGUAS=
5 kx if test -n "$ALL_LINGUAS"; then
5 kx for presentlang in $ALL_LINGUAS; do
5 kx useit=no
5 kx if test "%UNSET%" != "$LINGUAS"; then
5 kx desiredlanguages="$LINGUAS"
5 kx else
5 kx desiredlanguages="$ALL_LINGUAS"
5 kx fi
5 kx for desiredlang in $desiredlanguages; do
5 kx # Use the presentlang catalog if desiredlang is
5 kx # a. equal to presentlang, or
5 kx # b. a variant of presentlang (because in this case,
5 kx # presentlang can be used as a fallback for messages
5 kx # which are not translated in the desiredlang catalog).
5 kx case "$desiredlang" in
5 kx "$presentlang"*) useit=yes;;
5 kx esac
5 kx done
5 kx if test $useit = yes; then
5 kx INST_LINGUAS="$INST_LINGUAS $presentlang"
5 kx fi
5 kx done
5 kx fi
5 kx CATALOGS=
5 kx if test -n "$INST_LINGUAS"; then
5 kx for lang in $INST_LINGUAS; do
5 kx CATALOGS="$CATALOGS $lang.gmo"
5 kx done
5 kx fi
5 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5 kx sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
5 kx for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
5 kx if test -f "$f"; then
5 kx case "$f" in
5 kx *.orig | *.bak | *~) ;;
5 kx *) cat "$f" >> "$ac_dir/Makefile" ;;
5 kx esac
5 kx fi
5 kx done
5 kx fi
5 kx ;;
5 kx esac
5 kx done ;;
5 kx
5 kx esac
5 kx done # for ac_tag
5 kx
5 kx
5 kx as_fn_exit 0
5 kx _ACEOF
5 kx ac_clean_files=$ac_clean_files_save
5 kx
5 kx test $ac_write_fail = 0 ||
5 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx
5 kx # configure is writing to config.log, and then calls config.status.
5 kx # config.status does its own redirection, appending to config.log.
5 kx # Unfortunately, on DOS this fails, as config.log is still kept open
5 kx # by configure, so config.status won't be able to write to it; its
5 kx # output is simply discarded. So we exec the FD to /dev/null,
5 kx # effectively closing config.log, so it can be properly (re)opened and
5 kx # appended to by config.status. When coming back to configure, we
5 kx # need to make the FD available again.
5 kx if test "$no_create" != yes; then
5 kx ac_cs_success=:
5 kx ac_config_status_args=
5 kx test "$silent" = yes &&
5 kx ac_config_status_args="$ac_config_status_args --quiet"
5 kx exec 5>/dev/null
5 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5 kx exec 5>>config.log
5 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5 kx # would make configure fail if this is the last instruction.
5 kx $ac_cs_success || as_fn_exit 1
5 kx fi
5 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5 kx $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5 kx fi
5 kx