configure (scrot-0.8) | : | configure (scrot-1.6.tar.bz2) |
---|---|---|
#! /bin/sh | #! /bin/sh | |
# Guess values for system-dependent variables and create Makefiles. | # Guess values for system-dependent variables and create Makefiles. | |
# Generated by GNU Autoconf 2.57. | # Generated by GNU Autoconf 2.69 for scrot 1.6. | |
# | ||
# Report bugs to <https://github.com/resurrecting-open-source-projects/scrot/iss | ||
ues>. | ||
# | ||
# | ||
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | ||
# | ||
# | # | |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
# Free Software Foundation, Inc. | ||
# This configure script is free software; the Free Software Foundation | # This configure script is free software; the Free Software Foundation | |
# gives unlimited permission to copy, distribute and modify it. | # gives unlimited permission to copy, distribute and modify it. | |
## --------------------- ## | ## -------------------- ## | |
## M4sh Initialization. ## | ## M4sh Initialization. ## | |
## --------------------- ## | ## -------------------- ## | |
# Be Bourne compatible | # Be more Bourne compatible | |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | DUALCASE=1; export DUALCASE # for MKS sh | |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
emulate sh | emulate sh | |
NULLCMD=: | NULLCMD=: | |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
# is contrary to our usage. Disable this feature. | # is contrary to our usage. Disable this feature. | |
alias -g '${1+"$@"}'='"$@"' | alias -g '${1+"$@"}'='"$@"' | |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | setopt NO_GLOB_SUBST | |
set -o posix | else | |
case `(set -o) 2>/dev/null` in #( | ||
*posix*) : | ||
set -o posix ;; #( | ||
*) : | ||
;; | ||
esac | ||
fi | fi | |
# Support unset when possible. | as_nl=' | |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ' | |
as_unset=unset | export as_nl | |
else | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
as_unset=false | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
# Prefer a ksh shell builtin over an external printf program on Solaris, | ||
# but without wasting forks for bash or zsh. | ||
if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
as_echo='print -r --' | ||
as_echo_n='print -rn --' | ||
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
as_echo='printf %s\n' | ||
as_echo_n='printf %s' | ||
else | ||
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
as_echo_n='/usr/ucb/echo -n' | ||
else | ||
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
as_echo_n_body='eval | ||
arg=$1; | ||
case $arg in #( | ||
*"$as_nl"*) | ||
expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
esac; | ||
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
' | ||
export as_echo_n_body | ||
as_echo_n='sh -c $as_echo_n_body as_echo' | ||
fi | ||
export as_echo_body | ||
as_echo='sh -c $as_echo_body as_echo' | ||
fi | ||
# The user is always right. | ||
if test "${PATH_SEPARATOR+set}" != set; then | ||
PATH_SEPARATOR=: | ||
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
PATH_SEPARATOR=';' | ||
} | ||
fi | fi | |
# Work around bugs in pre-3.0 UWIN ksh. | # IFS | |
$as_unset ENV MAIL MAILPATH | # We need space, tab and new line, in precisely that order. Quoting is | |
# there to prevent editors from complaining about space-tab. | ||
# (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
# splitting by setting IFS to empty value.) | ||
IFS=" "" $as_nl" | ||
# Find who we are. Look in the path if we contain no directory separator. | ||
as_myself= | ||
case $0 in #(( | ||
*[\\/]* ) as_myself=$0 ;; | ||
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
done | ||
IFS=$as_save_IFS | ||
;; | ||
esac | ||
# We did not find ourselves, most probably we were run as `sh COMMAND' | ||
# in which case we are not to be found in the path. | ||
if test "x$as_myself" = x; then | ||
as_myself=$0 | ||
fi | ||
if test ! -f "$as_myself"; then | ||
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n | ||
ame" >&2 | ||
exit 1 | ||
fi | ||
# Unset variables that we do not need and which cause bugs (e.g. in | ||
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
# suppresses any "Segmentation fault" message there. '((' could | ||
# trigger a bug in pdksh 5.2.14. | ||
for as_var in BASH_ENV ENV MAIL MAILPATH | ||
do eval test x\${$as_var+set} = xset \ | ||
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
done | ||
PS1='$ ' | PS1='$ ' | |
PS2='> ' | PS2='> ' | |
PS4='+ ' | PS4='+ ' | |
# NLS nuisances. | # NLS nuisances. | |
for as_var in \ | LC_ALL=C | |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | export LC_ALL | |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | LANGUAGE=C | |
LC_TELEPHONE LC_TIME | export LANGUAGE | |
# CDPATH. | ||
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
# Use a proper internal environment variable to ensure we don't fall | ||
# into an infinite loop, continuously re-executing ourselves. | ||
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | ||
_as_can_reexec=no; export _as_can_reexec; | ||
# We cannot yet assume a decent shell, so we have to provide a | ||
# neutralization value for shells without unset; and this also | ||
# works around shells that cannot unset nonexistent variables. | ||
# Preserve -v and -x to the replacement shell. | ||
BASH_ENV=/dev/null | ||
ENV=/dev/null | ||
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
case $- in # (((( | ||
*v*x* | *x*v* ) as_opts=-vx ;; | ||
*v* ) as_opts=-v ;; | ||
*x* ) as_opts=-x ;; | ||
* ) as_opts= ;; | ||
esac | ||
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
# Admittedly, this is quite paranoid, since all the known shells bail | ||
# out after a failed `exec'. | ||
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
as_fn_exit 255 | ||
fi | ||
# We don't want this to propagate to other subprocesses. | ||
{ _as_can_reexec=; unset _as_can_reexec;} | ||
if test "x$CONFIG_SHELL" = x; then | ||
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev | ||
/null 2>&1; then : | ||
emulate sh | ||
NULLCMD=: | ||
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
# is contrary to our usage. Disable this feature. | ||
alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
setopt NO_GLOB_SUBST | ||
else | ||
case \`(set -o) 2>/dev/null\` in #( | ||
*posix*) : | ||
set -o posix ;; #( | ||
*) : | ||
;; | ||
esac | ||
fi | ||
" | ||
as_required="as_fn_return () { (exit \$1); } | ||
as_fn_success () { as_fn_return 0; } | ||
as_fn_failure () { as_fn_return 1; } | ||
as_fn_ret_success () { return 0; } | ||
as_fn_ret_failure () { return 1; } | ||
exitcode=0 | ||
as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
else | ||
exitcode=1; echo positional parameters were not saved. | ||
fi | ||
test x\$exitcode = x0 || exit 1 | ||
test -x / || exit 1" | ||
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$ | ||
as_suggested" as_lineno_1a=\$LINENO | ||
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as | ||
_lineno_2a=\$LINENO | ||
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' | ||
|| exit 1 | ||
test \$(( 1 + 1 )) = 2 || exit 1" | ||
if (eval "$as_required") 2>/dev/null; then : | ||
as_have_required=yes | ||
else | ||
as_have_required=no | ||
fi | ||
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then | ||
: | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
as_found=false | ||
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
do | do | |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | IFS=$as_save_IFS | |
eval $as_var=C; export $as_var | test -z "$as_dir" && as_dir=. | |
as_found=: | ||
case $as_dir in #( | ||
/*) | ||
for as_base in sh bash ksh sh5; do | ||
# Try only shells that exist, to save several forks. | ||
as_shell=$as_dir/$as_base | ||
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a " | ||
$as_shell"; } 2>/dev/null; then : | ||
CONFIG_SHELL=$as_shell as_have_required=yes | ||
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run= | ||
a "$as_shell"; } 2>/dev/null; then : | ||
break 2 | ||
fi | ||
fi | ||
done;; | ||
esac | ||
as_found=false | ||
done | ||
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL | ||
"; } 2>/dev/null; then : | ||
CONFIG_SHELL=$SHELL as_have_required=yes | ||
fi; } | ||
IFS=$as_save_IFS | ||
if test "x$CONFIG_SHELL" != x; then : | ||
export CONFIG_SHELL | ||
# We cannot yet assume a decent shell, so we have to provide a | ||
# neutralization value for shells without unset; and this also | ||
# works around shells that cannot unset nonexistent variables. | ||
# Preserve -v and -x to the replacement shell. | ||
BASH_ENV=/dev/null | ||
ENV=/dev/null | ||
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
case $- in # (((( | ||
*v*x* | *x*v* ) as_opts=-vx ;; | ||
*v* ) as_opts=-v ;; | ||
*x* ) as_opts=-x ;; | ||
* ) as_opts= ;; | ||
esac | ||
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
# Admittedly, this is quite paranoid, since all the known shells bail | ||
# out after a failed `exec'. | ||
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
exit 255 | ||
fi | ||
if test x$as_have_required = xno; then : | ||
$as_echo "$0: This script requires a shell more modern than all" | ||
$as_echo "$0: the shells that I found on your system." | ||
if test x${ZSH_VERSION+set} = xset ; then | ||
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
$as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
else | else | |
$as_unset $as_var | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
$0: https://github.com/resurrecting-open-source-projects/scrot/issues | ||
$0: about your system, including any error possibly output | ||
$0: before this message. Then install a modern shell, or | ||
$0: manually run the script under such a shell if you do | ||
$0: have one." | ||
fi | fi | |
done | exit 1 | |
fi | ||
fi | ||
fi | ||
SHELL=${CONFIG_SHELL-/bin/sh} | ||
export SHELL | ||
# Unset more variables known to interfere with behavior of common tools. | ||
CLICOLOR_FORCE= GREP_OPTIONS= | ||
unset CLICOLOR_FORCE GREP_OPTIONS | ||
## --------------------- ## | ||
## M4sh Shell Functions. ## | ||
## --------------------- ## | ||
# as_fn_unset VAR | ||
# --------------- | ||
# Portably unset VAR. | ||
as_fn_unset () | ||
{ | ||
{ eval $1=; unset $1;} | ||
} | ||
as_unset=as_fn_unset | ||
# Required to use basename. | # as_fn_set_status STATUS | |
if expr a : '\(a\)' >/dev/null 2>&1; then | # ----------------------- | |
# Set $? to STATUS, without forking. | ||
as_fn_set_status () | ||
{ | ||
return $1 | ||
} # as_fn_set_status | ||
# as_fn_exit STATUS | ||
# ----------------- | ||
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
as_fn_exit () | ||
{ | ||
set +e | ||
as_fn_set_status $1 | ||
exit $1 | ||
} # as_fn_exit | ||
# as_fn_mkdir_p | ||
# ------------- | ||
# Create "$as_dir" as a directory, including parents if necessary. | ||
as_fn_mkdir_p () | ||
{ | ||
case $as_dir in #( | ||
-*) as_dir=./$as_dir;; | ||
esac | ||
test -d "$as_dir" || eval $as_mkdir_p || { | ||
as_dirs= | ||
while :; do | ||
case $as_dir in #( | ||
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
*) as_qdir=$as_dir;; | ||
esac | ||
as_dirs="'$as_qdir' $as_dirs" | ||
as_dir=`$as_dirname -- "$as_dir" || | ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
X"$as_dir" : 'X\(//\)$' \| \ | ||
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
$as_echo X"$as_dir" | | ||
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
s//\1/ | ||
q | ||
} | ||
/^X\(\/\/\)[^/].*/{ | ||
s//\1/ | ||
q | ||
} | ||
/^X\(\/\/\)$/{ | ||
s//\1/ | ||
q | ||
} | ||
/^X\(\/\).*/{ | ||
s//\1/ | ||
q | ||
} | ||
s/.*/./; q'` | ||
test -d "$as_dir" && break | ||
done | ||
test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
} # as_fn_mkdir_p | ||
# as_fn_executable_p FILE | ||
# ----------------------- | ||
# Test if FILE is an executable regular file. | ||
as_fn_executable_p () | ||
{ | ||
test -f "$1" && test -x "$1" | ||
} # as_fn_executable_p | ||
# as_fn_append VAR VALUE | ||
# ---------------------- | ||
# Append the text in VALUE to the end of the definition contained in VAR. Take | ||
# advantage of any shell optimizations that allow amortized linear growth over | ||
# repeated appends, instead of the typical quadratic growth present in naive | ||
# implementations. | ||
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
eval 'as_fn_append () | ||
{ | ||
eval $1+=\$2 | ||
}' | ||
else | ||
as_fn_append () | ||
{ | ||
eval $1=\$$1\$2 | ||
} | ||
fi # as_fn_append | ||
# as_fn_arith ARG... | ||
# ------------------ | ||
# Perform arithmetic evaluation on the ARGs, and store the result in the | ||
# global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
# must be portable across $(()) and expr. | ||
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
eval 'as_fn_arith () | ||
{ | ||
as_val=$(( $* )) | ||
}' | ||
else | ||
as_fn_arith () | ||
{ | ||
as_val=`expr "$@" || test $? -eq 1` | ||
} | ||
fi # as_fn_arith | ||
# as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
# ---------------------------------------- | ||
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
# script with STATUS, using 1 if that was 0. | ||
as_fn_error () | ||
{ | ||
as_status=$1; test $as_status -eq 0 && as_status=1 | ||
if test "$4"; then | ||
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
fi | ||
$as_echo "$as_me: error: $2" >&2 | ||
as_fn_exit $as_status | ||
} # as_fn_error | ||
if expr a : '\(a\)' >/dev/null 2>&1 && | ||
test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
as_expr=expr | as_expr=expr | |
else | else | |
as_expr=false | as_expr=false | |
fi | fi | |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
as_basename=basename | as_basename=basename | |
else | else | |
as_basename=false | as_basename=false | |
fi | fi | |
# Name of the executable. | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
as_me=`$as_basename "$0" || | as_dirname=dirname | |
else | ||
as_dirname=false | ||
fi | ||
as_me=`$as_basename -- "$0" || | ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
X"$0" : 'X\(//\)$' \| \ | X"$0" : 'X\(//\)$' \| \ | |
X"$0" : 'X\(/\)$' \| \ | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
. : '\(.\)' 2>/dev/null || | $as_echo X/"$0" | | |
echo X/"$0" | | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | s//\1/ | |
/^X\/\(\/\/\)$/{ s//\1/; q; } | q | |
/^X\/\(\/\).*/{ s//\1/; q; } | } | |
s/.*/./; q'` | /^X\/\(\/\/\)$/{ | |
s//\1/ | ||
q | ||
} | ||
/^X\/\(\/\).*/{ | ||
s//\1/ | ||
q | ||
} | ||
s/.*/./; q'` | ||
# PATH needs CR, and LINENO needs CR and PATH. | ||
# Avoid depending upon Character Ranges. | # Avoid depending upon Character Ranges. | |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
as_cr_digits='0123456789' | as_cr_digits='0123456789' | |
as_cr_alnum=$as_cr_Letters$as_cr_digits | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
# The user is always right. | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
if test "${PATH_SEPARATOR+set}" != set; then | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
echo "#! /bin/sh" >conf$$.sh | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
echo "exit 0" >>conf$$.sh | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
chmod +x conf$$.sh | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | sed -n ' | |
PATH_SEPARATOR=';' | p | |
else | /[$]LINENO/= | |
PATH_SEPARATOR=: | ' <$as_myself | | |
fi | ||
rm -f conf$$.sh | ||
fi | ||
as_lineno_1=$LINENO | ||
as_lineno_2=$LINENO | ||
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
test "x$as_lineno_1" != "x$as_lineno_2" && | ||
test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
# Find who we are. Look in the path if we contain no path at all | ||
# relative or not. | ||
case $0 in | ||
*[\\/]* ) as_myself=$0 ;; | ||
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
done | ||
;; | ||
esac | ||
# We did not find ourselves, most probably we were run as `sh COMMAND' | ||
# in which case we are not to be found in the path. | ||
if test "x$as_myself" = x; then | ||
as_myself=$0 | ||
fi | ||
if test ! -f "$as_myself"; then | ||
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
case $CONFIG_SHELL in | ||
'') | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for as_base in sh bash ksh sh5; do | ||
case $as_dir in | ||
/*) | ||
if ("$as_dir/$as_base" -c ' | ||
as_lineno_1=$LINENO | ||
as_lineno_2=$LINENO | ||
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
test "x$as_lineno_1" != "x$as_lineno_2" && | ||
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; | ||
export BASH_ENV; } | ||
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
CONFIG_SHELL=$as_dir/$as_base | ||
export CONFIG_SHELL | ||
exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
fi;; | ||
esac | ||
done | ||
done | ||
;; | ||
esac | ||
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
# uniformly replaced by the line number. The first 'sed' inserts a | ||
# line-number line before each line; the second 'sed' does the real | ||
# work. The second script uses 'N' to pair each line-number line | ||
# with the numbered line, and appends trailing '-' during | ||
# substitution so that $LINENO is not a special case at line end. | ||
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
sed '=' <$as_myself | | ||
sed ' | sed ' | |
s/[$]LINENO.*/&-/ | ||
t lineno | ||
b | ||
:lineno | ||
N | N | |
s,$,-, | :loop | |
: loop | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
t loop | t loop | |
s,-$,, | s/-\n.*// | |
s,^['$as_cr_digits']*\n,, | ||
' >$as_me.lineno && | ' >$as_me.lineno && | |
chmod +x $as_me.lineno || | chmod +x "$as_me.lineno" || | |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s | |
" >&2 | hell" >&2; as_fn_exit 1; } | |
{ (exit 1); exit 1; }; } | ||
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have | ||
# already done that, so ensure we don't try to do so again and fall | ||
# in an infinite loop. This has already happened in practice. | ||
_as_can_reexec=no; export _as_can_reexec | ||
# Don't try to exec as it changes $[0], causing all sort of problems | # Don't try to exec as it changes $[0], causing all sort of problems | |
# (the dirname of $[0] is not the place where we might find the | # (the dirname of $[0] is not the place where we might find the | |
# original and so on. Autoconf is especially sensible to this). | # original and so on. Autoconf is especially sensitive to this). | |
. ./$as_me.lineno | . "./$as_me.lineno" | |
# Exit status is that of the last command. | # Exit status is that of the last command. | |
exit | exit | |
} | } | |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ECHO_C= ECHO_N= ECHO_T= | |
*c*,-n*) ECHO_N= ECHO_C=' | case `echo -n x` in #((((( | |
' ECHO_T=' ' ;; | -n*) | |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | case `echo 'xy\c'` in | |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
xy) ECHO_C='\c';; | ||
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
ECHO_T=' ';; | ||
esac;; | ||
*) | ||
ECHO_N='-n';; | ||
esac | esac | |
if expr a : '\(a\)' >/dev/null 2>&1; then | rm -f conf$$ conf$$.exe conf$$.file | |
as_expr=expr | if test -d conf$$.dir; then | |
rm -f conf$$.dir/conf$$.file | ||
else | else | |
as_expr=false | rm -f conf$$.dir | |
mkdir conf$$.dir 2>/dev/null | ||
fi | fi | |
if (echo >conf$$.file) 2>/dev/null; then | ||
rm -f conf$$ conf$$.exe conf$$.file | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
echo >conf$$.file | ||
if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
# We could just check for DJGPP; but this test a) works b) is more generic | ||
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
if test -f conf$$.exe; then | ||
# Don't use ln at all; we don't have any links | ||
as_ln_s='cp -p' | ||
else | ||
as_ln_s='ln -s' | as_ln_s='ln -s' | |
# ... but there are two gotchas: | ||
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
# In both cases, we have to default to `cp -pR'. | ||
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
as_ln_s='cp -pR' | ||
elif ln conf$$.file conf$$ 2>/dev/null; then | ||
as_ln_s=ln | ||
else | ||
as_ln_s='cp -pR' | ||
fi | fi | |
elif ln conf$$.file conf$$ 2>/dev/null; then | ||
as_ln_s=ln | ||
else | else | |
as_ln_s='cp -p' | as_ln_s='cp -pR' | |
fi | fi | |
rm -f conf$$ conf$$.exe conf$$.file | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
rmdir conf$$.dir 2>/dev/null | ||
if mkdir -p . 2>/dev/null; then | if mkdir -p . 2>/dev/null; then | |
as_mkdir_p=: | as_mkdir_p='mkdir -p "$as_dir"' | |
else | else | |
test -d ./-p && rmdir ./-p | ||
as_mkdir_p=false | as_mkdir_p=false | |
fi | fi | |
as_executable_p="test -f" | as_test_x='test -x' | |
as_executable_p=as_fn_executable_p | ||
# Sed expression to map a string onto a valid CPP name. | # Sed expression to map a string onto a valid CPP name. | |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
# Sed expression to map a string onto a valid variable name. | # Sed expression to map a string onto a valid variable name. | |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
# IFS | ||
# We need space, tab and new line, in precisely that order. | ||
as_nl=' | ||
' | ||
IFS=" $as_nl" | ||
# CDPATH. | test -n "$DJDIR" || exec 7<&0 </dev/null | |
$as_unset CDPATH | exec 6>&1 | |
# Name of the host. | # Name of the host. | |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
# so uname gets run too. | # so uname gets run too. | |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
exec 6>&1 | ||
# | # | |
# Initializations. | # Initializations. | |
# | # | |
ac_default_prefix=/usr/local | ac_default_prefix=/usr/local | |
ac_clean_files= | ||
ac_config_libobj_dir=. | ac_config_libobj_dir=. | |
LIBOBJS= | ||
cross_compiling=no | cross_compiling=no | |
subdirs= | subdirs= | |
MFLAGS= | MFLAGS= | |
MAKEFLAGS= | MAKEFLAGS= | |
SHELL=${CONFIG_SHELL-/bin/sh} | ||
# Maximum number of lines to put in a shell here document. | ||
# This variable seems obsolete. It should probably be removed, and | ||
# only ac_max_sed_lines should be used. | ||
: ${ac_max_here_lines=38} | ||
# Identity of this package. | # Identity of this package. | |
PACKAGE_NAME= | PACKAGE_NAME='scrot' | |
PACKAGE_TARNAME= | PACKAGE_TARNAME='scrot' | |
PACKAGE_VERSION= | PACKAGE_VERSION='1.6' | |
PACKAGE_STRING= | PACKAGE_STRING='scrot 1.6' | |
PACKAGE_BUGREPORT= | PACKAGE_BUGREPORT='https://github.com/resurrecting-open-source-projects/scrot/is | |
sues' | ||
PACKAGE_URL='https://github.com/resurrecting-open-source-projects/scrot' | ||
ac_unique_file="src/main.c" | ac_unique_file="src/main.c" | |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION | # Factoring default headers for most tests. | |
PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bind | ac_includes_default="\ | |
ir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir inc | #include <stdio.h> | |
ludedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS EC | #ifdef HAVE_SYS_TYPES_H | |
HO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERS | # include <sys/types.h> | |
ION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPP | #endif | |
FLAGS ac_ct_CC EXEEXT OBJEXT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GI | #ifdef HAVE_SYS_STAT_H | |
BLIB_CONFIG GIBLIB_LIBS GIBLIB_CFLAGS LIBOBJS LIBOBJS LTLIBOBJS' | # include <sys/stat.h> | |
#endif | ||
#ifdef STDC_HEADERS | ||
# include <stdlib.h> | ||
# include <stddef.h> | ||
#else | ||
# ifdef HAVE_STDLIB_H | ||
# include <stdlib.h> | ||
# endif | ||
#endif | ||
#ifdef HAVE_STRING_H | ||
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
# include <memory.h> | ||
# endif | ||
# include <string.h> | ||
#endif | ||
#ifdef HAVE_STRINGS_H | ||
# include <strings.h> | ||
#endif | ||
#ifdef HAVE_INTTYPES_H | ||
# include <inttypes.h> | ||
#endif | ||
#ifdef HAVE_STDINT_H | ||
# include <stdint.h> | ||
#endif | ||
#ifdef HAVE_UNISTD_H | ||
# include <unistd.h> | ||
#endif" | ||
ac_subst_vars='am__EXEEXT_FALSE | ||
am__EXEEXT_TRUE | ||
LTLIBOBJS | ||
LIBOBJS | ||
EGREP | ||
GREP | ||
CPP | ||
XMKMF | ||
IMLIB2_LIBS | ||
IMLIB2_CFLAGS | ||
XFIXES_LIBS | ||
XFIXES_CFLAGS | ||
XEXT_LIBS | ||
XEXT_CFLAGS | ||
XCOMPOSITE_LIBS | ||
XCOMPOSITE_CFLAGS | ||
X11_LIBS | ||
X11_CFLAGS | ||
PKG_CONFIG_LIBDIR | ||
PKG_CONFIG_PATH | ||
PKG_CONFIG | ||
MAINT | ||
MAINTAINER_MODE_FALSE | ||
MAINTAINER_MODE_TRUE | ||
am__fastdepCC_FALSE | ||
am__fastdepCC_TRUE | ||
CCDEPMODE | ||
am__nodep | ||
AMDEPBACKSLASH | ||
AMDEP_FALSE | ||
AMDEP_TRUE | ||
am__include | ||
DEPDIR | ||
OBJEXT | ||
EXEEXT | ||
ac_ct_CC | ||
CPPFLAGS | ||
LDFLAGS | ||
CFLAGS | ||
CC | ||
AM_BACKSLASH | ||
AM_DEFAULT_VERBOSITY | ||
AM_DEFAULT_V | ||
AM_V | ||
am__untar | ||
am__tar | ||
AMTAR | ||
am__leading_dot | ||
SET_MAKE | ||
AWK | ||
mkdir_p | ||
MKDIR_P | ||
INSTALL_STRIP_PROGRAM | ||
STRIP | ||
install_sh | ||
MAKEINFO | ||
AUTOHEADER | ||
AUTOMAKE | ||
AUTOCONF | ||
ACLOCAL | ||
VERSION | ||
PACKAGE | ||
CYGPATH_W | ||
am__isrc | ||
INSTALL_DATA | ||
INSTALL_SCRIPT | ||
INSTALL_PROGRAM | ||
target_alias | ||
host_alias | ||
build_alias | ||
LIBS | ||
ECHO_T | ||
ECHO_N | ||
ECHO_C | ||
DEFS | ||
mandir | ||
localedir | ||
libdir | ||
psdir | ||
pdfdir | ||
dvidir | ||
htmldir | ||
infodir | ||
docdir | ||
oldincludedir | ||
includedir | ||
runstatedir | ||
localstatedir | ||
sharedstatedir | ||
sysconfdir | ||
datadir | ||
datarootdir | ||
libexecdir | ||
sbindir | ||
bindir | ||
program_transform_name | ||
prefix | ||
exec_prefix | ||
PACKAGE_URL | ||
PACKAGE_BUGREPORT | ||
PACKAGE_STRING | ||
PACKAGE_VERSION | ||
PACKAGE_TARNAME | ||
PACKAGE_NAME | ||
PATH_SEPARATOR | ||
SHELL | ||
am__quote' | ||
ac_subst_files='' | ac_subst_files='' | |
ac_user_opts=' | ||
enable_option_checking | ||
enable_silent_rules | ||
enable_dependency_tracking | ||
enable_maintainer_mode | ||
with_x | ||
' | ||
ac_precious_vars='build_alias | ||
host_alias | ||
target_alias | ||
CC | ||
CFLAGS | ||
LDFLAGS | ||
LIBS | ||
CPPFLAGS | ||
PKG_CONFIG | ||
PKG_CONFIG_PATH | ||
PKG_CONFIG_LIBDIR | ||
X11_CFLAGS | ||
X11_LIBS | ||
XCOMPOSITE_CFLAGS | ||
XCOMPOSITE_LIBS | ||
XEXT_CFLAGS | ||
XEXT_LIBS | ||
XFIXES_CFLAGS | ||
XFIXES_LIBS | ||
IMLIB2_CFLAGS | ||
IMLIB2_LIBS | ||
XMKMF | ||
CPP' | ||
# Initialize some variables set by options. | # Initialize some variables set by options. | |
ac_init_help= | ac_init_help= | |
ac_init_version=false | ac_init_version=false | |
ac_unrecognized_opts= | ||
ac_unrecognized_sep= | ||
# The variables have the same names as the options, with | # The variables have the same names as the options, with | |
# dashes changed to underlines. | # dashes changed to underlines. | |
cache_file=/dev/null | cache_file=/dev/null | |
exec_prefix=NONE | exec_prefix=NONE | |
no_create= | no_create= | |
no_recursion= | no_recursion= | |
prefix=NONE | prefix=NONE | |
program_prefix=NONE | program_prefix=NONE | |
program_suffix=NONE | program_suffix=NONE | |
program_transform_name=s,x,x, | program_transform_name=s,x,x, | |
skipping to change at line 295 | skipping to change at line 785 | |
srcdir= | srcdir= | |
verbose= | verbose= | |
x_includes=NONE | x_includes=NONE | |
x_libraries=NONE | x_libraries=NONE | |
# Installation directory options. | # Installation directory options. | |
# These are left unexpanded so users can "make install exec_prefix=/foo" | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
# and all the variables that are supposed to be based on exec_prefix | # and all the variables that are supposed to be based on exec_prefix | |
# by default will actually change. | # by default will actually change. | |
# Use braces instead of parens because sh, perl, etc. also accept them. | # Use braces instead of parens because sh, perl, etc. also accept them. | |
# (The list follows the same order as the GNU Coding Standards.) | ||
bindir='${exec_prefix}/bin' | bindir='${exec_prefix}/bin' | |
sbindir='${exec_prefix}/sbin' | sbindir='${exec_prefix}/sbin' | |
libexecdir='${exec_prefix}/libexec' | libexecdir='${exec_prefix}/libexec' | |
datadir='${prefix}/share' | datarootdir='${prefix}/share' | |
datadir='${datarootdir}' | ||
sysconfdir='${prefix}/etc' | sysconfdir='${prefix}/etc' | |
sharedstatedir='${prefix}/com' | sharedstatedir='${prefix}/com' | |
localstatedir='${prefix}/var' | localstatedir='${prefix}/var' | |
libdir='${exec_prefix}/lib' | runstatedir='${localstatedir}/run' | |
includedir='${prefix}/include' | includedir='${prefix}/include' | |
oldincludedir='/usr/include' | oldincludedir='/usr/include' | |
infodir='${prefix}/info' | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
mandir='${prefix}/man' | infodir='${datarootdir}/info' | |
htmldir='${docdir}' | ||
dvidir='${docdir}' | ||
pdfdir='${docdir}' | ||
psdir='${docdir}' | ||
libdir='${exec_prefix}/lib' | ||
localedir='${datarootdir}/locale' | ||
mandir='${datarootdir}/man' | ||
ac_prev= | ac_prev= | |
ac_dashdash= | ||
for ac_option | for ac_option | |
do | do | |
# If the previous option needs an argument, assign it. | # If the previous option needs an argument, assign it. | |
if test -n "$ac_prev"; then | if test -n "$ac_prev"; then | |
eval "$ac_prev=\$ac_option" | eval $ac_prev=\$ac_option | |
ac_prev= | ac_prev= | |
continue | continue | |
fi | fi | |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | case $ac_option in | |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
*=) ac_optarg= ;; | ||
*) ac_optarg=yes ;; | ||
esac | ||
# Accept the important Cygnus configure options, so we can diagnose typos. | # Accept the important Cygnus configure options, so we can diagnose typos. | |
case $ac_option in | case $ac_dashdash$ac_option in | |
--) | ||
ac_dashdash=yes ;; | ||
-bindir | --bindir | --bindi | --bind | --bin | --bi) | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
ac_prev=bindir ;; | ac_prev=bindir ;; | |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bindir=$ac_optarg ;; | bindir=$ac_optarg ;; | |
-build | --build | --buil | --bui | --bu) | -build | --build | --buil | --bui | --bu) | |
ac_prev=build_alias ;; | ac_prev=build_alias ;; | |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
build_alias=$ac_optarg ;; | build_alias=$ac_optarg ;; | |
skipping to change at line 344 | skipping to change at line 850 | |
-cache-file | --cache-file | --cache-fil | --cache-fi \ | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
ac_prev=cache_file ;; | ac_prev=cache_file ;; | |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
cache_file=$ac_optarg ;; | cache_file=$ac_optarg ;; | |
--config-cache | -C) | --config-cache | -C) | |
cache_file=config.cache ;; | cache_file=config.cache ;; | |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) | -datadir | --datadir | --datadi | --datad) | |
ac_prev=datadir ;; | ac_prev=datadir ;; | |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
| --da=*) | ||
datadir=$ac_optarg ;; | datadir=$ac_optarg ;; | |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
| --dataroo | --dataro | --datar) | ||
ac_prev=datarootdir ;; | ||
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
datarootdir=$ac_optarg ;; | ||
-disable-* | --disable-*) | -disable-* | --disable-*) | |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
# Reject names that are not valid shell variable names. | # Reject names that are not valid shell variable names. | |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 | as_fn_error $? "invalid feature name: $ac_useropt" | |
{ (exit 1); exit 1; }; } | ac_useropt_orig=$ac_useropt | |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
eval "enable_$ac_feature=no" ;; | case $ac_user_opts in | |
*" | ||
"enable_$ac_useropt" | ||
"*) ;; | ||
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl | ||
e-$ac_useropt_orig" | ||
ac_unrecognized_sep=', ';; | ||
esac | ||
eval enable_$ac_useropt=no ;; | ||
-docdir | --docdir | --docdi | --doc | --do) | ||
ac_prev=docdir ;; | ||
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
docdir=$ac_optarg ;; | ||
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
ac_prev=dvidir ;; | ||
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
dvidir=$ac_optarg ;; | ||
-enable-* | --enable-*) | -enable-* | --enable-*) | |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
# Reject names that are not valid shell variable names. | # Reject names that are not valid shell variable names. | |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 | as_fn_error $? "invalid feature name: $ac_useropt" | |
{ (exit 1); exit 1; }; } | ac_useropt_orig=$ac_useropt | |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
case $ac_option in | case $ac_user_opts in | |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | *" | |
*) ac_optarg=yes ;; | "enable_$ac_useropt" | |
"*) ;; | ||
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable | ||
-$ac_useropt_orig" | ||
ac_unrecognized_sep=', ';; | ||
esac | esac | |
eval "enable_$ac_feature='$ac_optarg'" ;; | eval enable_$ac_useropt=\$ac_optarg ;; | |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| --exec | --exe | --ex) | | --exec | --exe | --ex) | |
ac_prev=exec_prefix ;; | ac_prev=exec_prefix ;; | |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| --exec=* | --exe=* | --ex=*) | | --exec=* | --exe=* | --ex=*) | |
exec_prefix=$ac_optarg ;; | exec_prefix=$ac_optarg ;; | |
skipping to change at line 397 | skipping to change at line 929 | |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
ac_init_help=recursive ;; | ac_init_help=recursive ;; | |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
ac_init_help=short ;; | ac_init_help=short ;; | |
-host | --host | --hos | --ho) | -host | --host | --hos | --ho) | |
ac_prev=host_alias ;; | ac_prev=host_alias ;; | |
-host=* | --host=* | --hos=* | --ho=*) | -host=* | --host=* | --hos=* | --ho=*) | |
host_alias=$ac_optarg ;; | host_alias=$ac_optarg ;; | |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
ac_prev=htmldir ;; | ||
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
| --ht=*) | ||
htmldir=$ac_optarg ;; | ||
-includedir | --includedir | --includedi | --included | --include \ | -includedir | --includedir | --includedi | --included | --include \ | |
| --includ | --inclu | --incl | --inc) | | --includ | --inclu | --incl | --inc) | |
ac_prev=includedir ;; | ac_prev=includedir ;; | |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| --includ=* | --inclu=* | --incl=* | --inc=*) | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
includedir=$ac_optarg ;; | includedir=$ac_optarg ;; | |
-infodir | --infodir | --infodi | --infod | --info | --inf) | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
ac_prev=infodir ;; | ac_prev=infodir ;; | |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
skipping to change at line 421 | skipping to change at line 959 | |
-libdir=* | --libdir=* | --libdi=* | --libd=*) | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
libdir=$ac_optarg ;; | libdir=$ac_optarg ;; | |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| --libexe | --libex | --libe) | | --libexe | --libex | --libe) | |
ac_prev=libexecdir ;; | ac_prev=libexecdir ;; | |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| --libexe=* | --libex=* | --libe=*) | | --libexe=* | --libex=* | --libe=*) | |
libexecdir=$ac_optarg ;; | libexecdir=$ac_optarg ;; | |
-localedir | --localedir | --localedi | --localed | --locale) | ||
ac_prev=localedir ;; | ||
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
localedir=$ac_optarg ;; | ||
-localstatedir | --localstatedir | --localstatedi | --localstated \ | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| --localstate | --localstat | --localsta | --localst \ | | --localstate | --localstat | --localsta | --localst | --locals) | |
| --locals | --local | --loca | --loc | --lo) | ||
ac_prev=localstatedir ;; | ac_prev=localstatedir ;; | |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
localstatedir=$ac_optarg ;; | localstatedir=$ac_optarg ;; | |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
ac_prev=mandir ;; | ac_prev=mandir ;; | |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
mandir=$ac_optarg ;; | mandir=$ac_optarg ;; | |
-nfp | --nfp | --nf) | -nfp | --nfp | --nf) | |
# Obsolete; use --without-fp. | # Obsolete; use --without-fp. | |
with_fp=no ;; | with_fp=no ;; | |
skipping to change at line 492 | skipping to change at line 1033 | |
ac_prev=program_transform_name ;; | ac_prev=program_transform_name ;; | |
-program-transform-name=* | --program-transform-name=* \ | -program-transform-name=* | --program-transform-name=* \ | |
| --program-transform-nam=* | --program-transform-na=* \ | | --program-transform-nam=* | --program-transform-na=* \ | |
| --program-transform-n=* | --program-transform-=* \ | | --program-transform-n=* | --program-transform-=* \ | |
| --program-transform=* | --program-transfor=* \ | | --program-transform=* | --program-transfor=* \ | |
| --program-transfo=* | --program-transf=* \ | | --program-transfo=* | --program-transf=* \ | |
| --program-trans=* | --program-tran=* \ | | --program-trans=* | --program-tran=* \ | |
| --progr-tra=* | --program-tr=* | --program-t=*) | | --progr-tra=* | --program-tr=* | --program-t=*) | |
program_transform_name=$ac_optarg ;; | program_transform_name=$ac_optarg ;; | |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
ac_prev=pdfdir ;; | ||
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
pdfdir=$ac_optarg ;; | ||
-psdir | --psdir | --psdi | --psd | --ps) | ||
ac_prev=psdir ;; | ||
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
psdir=$ac_optarg ;; | ||
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| -silent | --silent | --silen | --sile | --sil) | | -silent | --silent | --silen | --sile | --sil) | |
silent=yes ;; | silent=yes ;; | |
-runstatedir | --runstatedir | --runstatedi | --runstated \ | ||
| --runstate | --runstat | --runsta | --runst | --runs \ | ||
| --run | --ru | --r) | ||
ac_prev=runstatedir ;; | ||
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | ||
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | ||
| --run=* | --ru=* | --r=*) | ||
runstatedir=$ac_optarg ;; | ||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
ac_prev=sbindir ;; | ac_prev=sbindir ;; | |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| --sbi=* | --sb=*) | | --sbi=* | --sb=*) | |
sbindir=$ac_optarg ;; | sbindir=$ac_optarg ;; | |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| --sharedst | --shareds | --shared | --share | --shar \ | | --sharedst | --shareds | --shared | --share | --shar \ | |
| --sha | --sh) | | --sha | --sh) | |
skipping to change at line 542 | skipping to change at line 1102 | |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
target_alias=$ac_optarg ;; | target_alias=$ac_optarg ;; | |
-v | -verbose | --verbose | --verbos | --verbo | --verb) | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
verbose=yes ;; | verbose=yes ;; | |
-version | --version | --versio | --versi | --vers | -V) | -version | --version | --versio | --versi | --vers | -V) | |
ac_init_version=: ;; | ac_init_version=: ;; | |
-with-* | --with-*) | -with-* | --with-*) | |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
# Reject names that are not valid shell variable names. | # Reject names that are not valid shell variable names. | |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 | as_fn_error $? "invalid package name: $ac_useropt" | |
{ (exit 1); exit 1; }; } | ac_useropt_orig=$ac_useropt | |
ac_package=`echo $ac_package| sed 's/-/_/g'` | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
case $ac_option in | case $ac_user_opts in | |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | *" | |
*) ac_optarg=yes ;; | "with_$ac_useropt" | |
"*) ;; | ||
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ | ||
ac_useropt_orig" | ||
ac_unrecognized_sep=', ';; | ||
esac | esac | |
eval "with_$ac_package='$ac_optarg'" ;; | eval with_$ac_useropt=\$ac_optarg ;; | |
-without-* | --without-*) | -without-* | --without-*) | |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
# Reject names that are not valid shell variable names. | # Reject names that are not valid shell variable names. | |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 | as_fn_error $? "invalid package name: $ac_useropt" | |
{ (exit 1); exit 1; }; } | ac_useropt_orig=$ac_useropt | |
ac_package=`echo $ac_package | sed 's/-/_/g'` | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
eval "with_$ac_package=no" ;; | case $ac_user_opts in | |
*" | ||
"with_$ac_useropt" | ||
"*) ;; | ||
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou | ||
t-$ac_useropt_orig" | ||
ac_unrecognized_sep=', ';; | ||
esac | ||
eval with_$ac_useropt=no ;; | ||
--x) | --x) | |
# Obsolete; use --with-x. | # Obsolete; use --with-x. | |
with_x=yes ;; | with_x=yes ;; | |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| --x-incl | --x-inc | --x-in | --x-i) | | --x-incl | --x-inc | --x-in | --x-i) | |
ac_prev=x_includes ;; | ac_prev=x_includes ;; | |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
x_includes=$ac_optarg ;; | x_includes=$ac_optarg ;; | |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
ac_prev=x_libraries ;; | ac_prev=x_libraries ;; | |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
x_libraries=$ac_optarg ;; | x_libraries=$ac_optarg ;; | |
-*) { echo "$as_me: error: unrecognized option: $ac_option | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
Try \`$0 --help' for more information." >&2 | Try \`$0 --help' for more information" | |
{ (exit 1); exit 1; }; } | ||
;; | ;; | |
*=*) | *=*) | |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
# Reject names that are not valid shell variable names. | # Reject names that are not valid shell variable names. | |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | case $ac_envvar in #( | |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
{ (exit 1); exit 1; }; } | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | esac | |
eval "$ac_envvar='$ac_optarg'" | eval $ac_envvar=\$ac_optarg | |
export $ac_envvar ;; | export $ac_envvar ;; | |
*) | *) | |
# FIXME: should be removed in autoconf 3.0. | # FIXME: should be removed in autoconf 3.0. | |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opti | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opt | |
on} | ion}" | |
;; | ;; | |
esac | esac | |
done | done | |
if test -n "$ac_prev"; then | if test -n "$ac_prev"; then | |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
{ echo "$as_me: error: missing argument to $ac_option" >&2 | as_fn_error $? "missing argument to $ac_option" | |
{ (exit 1); exit 1; }; } | ||
fi | fi | |
# Be sure to have absolute paths. | if test -n "$ac_unrecognized_opts"; then | |
for ac_var in exec_prefix prefix | case $enable_option_checking in | |
do | no) ;; | |
eval ac_val=$`echo $ac_var` | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
case $ac_val in | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt | |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; | s" >&2 ;; | |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var | ||
: $ac_val" >&2 | ||
{ (exit 1); exit 1; }; };; | ||
esac | esac | |
done | fi | |
# Be sure to have absolute paths. | # Check all directory arguments for consistency. | |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
localstatedir libdir includedir oldincludedir infodir mandir | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
libdir localedir mandir runstatedir | ||
do | do | |
eval ac_val=$`echo $ac_var` | eval ac_val=\$$ac_var | |
# Remove trailing slashes. | ||
case $ac_val in | ||
*/ ) | ||
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
eval $ac_var=\$ac_val;; | ||
esac | ||
# Be sure to have absolute directory names. | ||
case $ac_val in | case $ac_val in | |
[\\/$]* | ?:[\\/]* ) ;; | [\\/$]* | ?:[\\/]* ) continue;; | |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
: $ac_val" >&2 | ||
{ (exit 1); exit 1; }; };; | ||
esac | esac | |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
done | done | |
# There might be people who depend on the old broken behavior: `$host' | # There might be people who depend on the old broken behavior: `$host' | |
# used to hold the argument of --host etc. | # used to hold the argument of --host etc. | |
# FIXME: To remove some day. | # FIXME: To remove some day. | |
build=$build_alias | build=$build_alias | |
host=$host_alias | host=$host_alias | |
target=$target_alias | target=$target_alias | |
# FIXME: To remove some day. | # FIXME: To remove some day. | |
if test "x$host_alias" != x; then | if test "x$host_alias" != x; then | |
if test "x$build_alias" = x; then | if test "x$build_alias" = x; then | |
cross_compiling=maybe | cross_compiling=maybe | |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --ho | ||
st. | ||
If a cross compiler is detected then cross compile mode will be used." >&2 | ||
elif test "x$build_alias" != "x$host_alias"; then | elif test "x$build_alias" != "x$host_alias"; then | |
cross_compiling=yes | cross_compiling=yes | |
fi | fi | |
fi | fi | |
ac_tool_prefix= | ac_tool_prefix= | |
test -n "$host_alias" && ac_tool_prefix=$host_alias- | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
test "$silent" = yes && exec 6>/dev/null | test "$silent" = yes && exec 6>/dev/null | |
ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
ac_ls_di=`ls -di .` && | ||
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
as_fn_error $? "working directory cannot be determined" | ||
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
as_fn_error $? "pwd does not report name of working directory" | ||
# Find the source files, if location was not specified. | # Find the source files, if location was not specified. | |
if test -z "$srcdir"; then | if test -z "$srcdir"; then | |
ac_srcdir_defaulted=yes | ac_srcdir_defaulted=yes | |
# Try the directory containing this script, then its parent. | # Try the directory containing this script, then the parent directory. | |
ac_confdir=`(dirname "$0") 2>/dev/null || | ac_confdir=`$as_dirname -- "$as_myself" || | |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
X"$0" : 'X\(//\)[^/]' \| \ | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
X"$0" : 'X\(//\)$' \| \ | X"$as_myself" : 'X\(//\)$' \| \ | |
X"$0" : 'X\(/\)' \| \ | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
. : '\(.\)' 2>/dev/null || | $as_echo X"$as_myself" | | |
echo X"$0" | | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | s//\1/ | |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } | q | |
/^X\(\/\/\)$/{ s//\1/; q; } | } | |
/^X\(\/\).*/{ s//\1/; q; } | /^X\(\/\/\)[^/].*/{ | |
s/.*/./; q'` | s//\1/ | |
q | ||
} | ||
/^X\(\/\/\)$/{ | ||
s//\1/ | ||
q | ||
} | ||
/^X\(\/\).*/{ | ||
s//\1/ | ||
q | ||
} | ||
s/.*/./; q'` | ||
srcdir=$ac_confdir | srcdir=$ac_confdir | |
if test ! -r $srcdir/$ac_unique_file; then | if test ! -r "$srcdir/$ac_unique_file"; then | |
srcdir=.. | srcdir=.. | |
fi | fi | |
else | else | |
ac_srcdir_defaulted=no | ac_srcdir_defaulted=no | |
fi | fi | |
if test ! -r $srcdir/$ac_unique_file; then | if test ! -r "$srcdir/$ac_unique_file"; then | |
if test "$ac_srcdir_defaulted" = yes; then | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
or .." >&2 | fi | |
{ (exit 1); exit 1; }; } | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
else | ac_abs_confdir=`( | |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
{ (exit 1); exit 1; }; } | pwd)` | |
fi | # When building in place, set srcdir=. | |
fi | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | srcdir=. | |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work | fi | |
" >&2 | # Remove unnecessary trailing slashes from srcdir. | |
{ (exit 1); exit 1; }; } | # Double slashes in file names in object file debugging info | |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | # mess up M-x gdb in Emacs. | |
ac_env_build_alias_set=${build_alias+set} | case $srcdir in | |
ac_env_build_alias_value=$build_alias | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
ac_cv_env_build_alias_set=${build_alias+set} | esac | |
ac_cv_env_build_alias_value=$build_alias | for ac_var in $ac_precious_vars; do | |
ac_env_host_alias_set=${host_alias+set} | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
ac_env_host_alias_value=$host_alias | eval ac_env_${ac_var}_value=\$${ac_var} | |
ac_cv_env_host_alias_set=${host_alias+set} | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
ac_cv_env_host_alias_value=$host_alias | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
ac_env_target_alias_set=${target_alias+set} | done | |
ac_env_target_alias_value=$target_alias | ||
ac_cv_env_target_alias_set=${target_alias+set} | ||
ac_cv_env_target_alias_value=$target_alias | ||
ac_env_CC_set=${CC+set} | ||
ac_env_CC_value=$CC | ||
ac_cv_env_CC_set=${CC+set} | ||
ac_cv_env_CC_value=$CC | ||
ac_env_CFLAGS_set=${CFLAGS+set} | ||
ac_env_CFLAGS_value=$CFLAGS | ||
ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
ac_cv_env_CFLAGS_value=$CFLAGS | ||
ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
ac_env_LDFLAGS_value=$LDFLAGS | ||
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
ac_env_CPPFLAGS_value=$CPPFLAGS | ||
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
# | # | |
# Report the --help message. | # Report the --help message. | |
# | # | |
if test "$ac_init_help" = "long"; then | if test "$ac_init_help" = "long"; then | |
# Omit some internal or obsolete options to make the list less imposing. | # Omit some internal or obsolete options to make the list less imposing. | |
# This message is too long to be a string in the A/UX 3.1 sh. | # This message is too long to be a string in the A/UX 3.1 sh. | |
cat <<_ACEOF | cat <<_ACEOF | |
\`configure' configures this package to adapt to many kinds of systems. | \`configure' configures scrot 1.6 to adapt to many kinds of systems. | |
Usage: $0 [OPTION]... [VAR=VALUE]... | Usage: $0 [OPTION]... [VAR=VALUE]... | |
To assign environment variables (e.g., CC, CFLAGS...), specify them as | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
VAR=VALUE. See below for descriptions of some of the useful variables. | VAR=VALUE. See below for descriptions of some of the useful variables. | |
Defaults for the options are specified in brackets. | Defaults for the options are specified in brackets. | |
Configuration: | Configuration: | |
-h, --help display this help and exit | -h, --help display this help and exit | |
--help=short display options specific to this package | --help=short display options specific to this package | |
--help=recursive display the short help of all the included packages | --help=recursive display the short help of all the included packages | |
-V, --version display version information and exit | -V, --version display version information and exit | |
-q, --quiet, --silent do not print \`checking...' messages | -q, --quiet, --silent do not print \`checking ...' messages | |
--cache-file=FILE cache test results in FILE [disabled] | --cache-file=FILE cache test results in FILE [disabled] | |
-C, --config-cache alias for \`--cache-file=config.cache' | -C, --config-cache alias for \`--cache-file=config.cache' | |
-n, --no-create do not create output files | -n, --no-create do not create output files | |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
_ACEOF | ||
cat <<_ACEOF | ||
Installation directories: | Installation directories: | |
--prefix=PREFIX install architecture-independent files in PREFIX | --prefix=PREFIX install architecture-independent files in PREFIX | |
[$ac_default_prefix] | [$ac_default_prefix] | |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
[PREFIX] | [PREFIX] | |
By default, \`make install' will install all the files in | By default, \`make install' will install all the files in | |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
for instance \`--prefix=\$HOME'. | for instance \`--prefix=\$HOME'. | |
For better control, use the options below. | For better control, use the options below. | |
Fine tuning of the installation directories: | Fine tuning of the installation directories: | |
--bindir=DIR user executables [EPREFIX/bin] | --bindir=DIR user executables [EPREFIX/bin] | |
--sbindir=DIR system admin executables [EPREFIX/sbin] | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
--libexecdir=DIR program executables [EPREFIX/libexec] | --libexecdir=DIR program executables [EPREFIX/libexec] | |
--datadir=DIR read-only architecture-independent data [PREFIX/share] | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
--libdir=DIR object code libraries [EPREFIX/lib] | --libdir=DIR object code libraries [EPREFIX/lib] | |
--includedir=DIR C header files [PREFIX/include] | --includedir=DIR C header files [PREFIX/include] | |
--oldincludedir=DIR C header files for non-gcc [/usr/include] | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
--infodir=DIR info documentation [PREFIX/info] | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
--mandir=DIR man documentation [PREFIX/man] | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
--infodir=DIR info documentation [DATAROOTDIR/info] | ||
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
--mandir=DIR man documentation [DATAROOTDIR/man] | ||
--docdir=DIR documentation root [DATAROOTDIR/doc/scrot] | ||
--htmldir=DIR html documentation [DOCDIR] | ||
--dvidir=DIR dvi documentation [DOCDIR] | ||
--pdfdir=DIR pdf documentation [DOCDIR] | ||
--psdir=DIR ps documentation [DOCDIR] | ||
_ACEOF | _ACEOF | |
cat <<\_ACEOF | cat <<\_ACEOF | |
Program names: | Program names: | |
--program-prefix=PREFIX prepend PREFIX to installed program names | --program-prefix=PREFIX prepend PREFIX to installed program names | |
--program-suffix=SUFFIX append SUFFIX to installed program names | --program-suffix=SUFFIX append SUFFIX to installed program names | |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
X features: | ||
--x-includes=DIR X include files are in DIR | ||
--x-libraries=DIR X library files are in DIR | ||
_ACEOF | _ACEOF | |
fi | fi | |
if test -n "$ac_init_help"; then | if test -n "$ac_init_help"; then | |
case $ac_init_help in | ||
short | recursive ) echo "Configuration of scrot 1.6:";; | ||
esac | ||
cat <<\_ACEOF | cat <<\_ACEOF | |
Optional Features: | Optional Features: | |
--disable-option-checking ignore unrecognized --enable/--with options | ||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
--enable-maintainer-mode enable make rules and dependencies not useful | --enable-silent-rules less verbose build output (undo: "make V=1") | |
(and sometimes confusing) to the casual installer | --disable-silent-rules verbose build output (undo: "make V=0") | |
--enable-dependency-tracking | ||
do not reject slow dependency extractors | ||
--disable-dependency-tracking | ||
speeds up one-time build | ||
--enable-maintainer-mode | ||
enable make rules and dependencies not useful (and | ||
sometimes confusing) to the casual installer | ||
Optional Packages: | Optional Packages: | |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
--with-giblib-prefix=PFX Prefix where giblib is installed (optional) | --with-x use the X Window System | |
--with-giblib-exec-prefix=PFX Exec prefix where giblib is installed (optional) | ||
Some influential environment variables: | Some influential environment variables: | |
CC C compiler command | CC C compiler command | |
CFLAGS C compiler flags | CFLAGS C compiler flags | |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
nonstandard directory <lib dir> | nonstandard directory <lib dir> | |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | LIBS libraries to pass to the linker, e.g. -l<library> | |
headers in a nonstandard directory <include dir> | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
you have headers in a nonstandard directory <include dir> | ||
PKG_CONFIG path to pkg-config utility | ||
PKG_CONFIG_PATH | ||
directories to add to pkg-config's search path | ||
PKG_CONFIG_LIBDIR | ||
path overriding pkg-config's built-in search path | ||
X11_CFLAGS C compiler flags for X11, overriding pkg-config | ||
X11_LIBS linker flags for X11, overriding pkg-config | ||
XCOMPOSITE_CFLAGS | ||
C compiler flags for XCOMPOSITE, overriding pkg-config | ||
XCOMPOSITE_LIBS | ||
linker flags for XCOMPOSITE, overriding pkg-config | ||
XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config | ||
XEXT_LIBS linker flags for XEXT, overriding pkg-config | ||
XFIXES_CFLAGS | ||
C compiler flags for XFIXES, overriding pkg-config | ||
XFIXES_LIBS linker flags for XFIXES, overriding pkg-config | ||
IMLIB2_CFLAGS | ||
C compiler flags for IMLIB2, overriding pkg-config | ||
IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config | ||
XMKMF Path to xmkmf, Makefile generator for X Window System | ||
CPP C preprocessor | ||
Use these variables to override the choices made by `configure' or to help | Use these variables to override the choices made by `configure' or to help | |
it to find libraries and programs with nonstandard names/locations. | it to find libraries and programs with nonstandard names/locations. | |
Report bugs to <https://github.com/resurrecting-open-source-projects/scrot/issue | ||
s>. | ||
scrot home page: <https://github.com/resurrecting-open-source-projects/scrot>. | ||
_ACEOF | _ACEOF | |
ac_status=$? | ||
fi | fi | |
if test "$ac_init_help" = "recursive"; then | if test "$ac_init_help" = "recursive"; then | |
# If there are subdirs, report their specific --help. | # If there are subdirs, report their specific --help. | |
ac_popdir=`pwd` | ||
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
test -d $ac_dir || continue | test -d "$ac_dir" || | |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
continue | ||
ac_builddir=. | ac_builddir=. | |
if test "$ac_dir" != .; then | case "$ac_dir" in | |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
# A "../" for each directory in $ac_dir_suffix. | *) | |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
else | # A ".." for each directory in $ac_dir_suffix. | |
ac_dir_suffix= ac_top_builddir= | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
fi | case $ac_top_builddir_sub in | |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
esac ;; | ||
esac | ||
ac_abs_top_builddir=$ac_pwd | ||
ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
# for backward compatibility: | ||
ac_top_builddir=$ac_top_build_prefix | ||
case $srcdir in | case $srcdir in | |
.) # No --srcdir option. We are building in place. | .) # We are building in place. | |
ac_srcdir=. | ac_srcdir=. | |
if test -z "$ac_top_builddir"; then | ac_top_srcdir=$ac_top_builddir_sub | |
ac_top_srcdir=. | ac_abs_top_srcdir=$ac_pwd ;; | |
else | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
fi ;; | ||
[\\/]* | ?:[\\/]* ) # Absolute path. | ||
ac_srcdir=$srcdir$ac_dir_suffix; | ac_srcdir=$srcdir$ac_dir_suffix; | |
ac_top_srcdir=$srcdir ;; | ac_top_srcdir=$srcdir | |
*) # Relative path. | ac_abs_top_srcdir=$srcdir ;; | |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | *) # Relative name. | |
ac_top_srcdir=$ac_top_builddir$srcdir ;; | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
esac | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
# absolute. | esac | |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | ||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | cd "$ac_dir" || { ac_status=$?; continue; } | |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | # Check for guested configure. | |
if test -f "$ac_srcdir/configure.gnu"; then | ||
cd $ac_dir | echo && | |
# Check for guested configure; otherwise get Cygnus style configure. | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
if test -f $ac_srcdir/configure.gnu; then | elif test -f "$ac_srcdir/configure"; then | |
echo | echo && | |
$SHELL $ac_srcdir/configure.gnu --help=recursive | $SHELL "$ac_srcdir/configure" --help=recursive | |
elif test -f $ac_srcdir/configure; then | ||
echo | ||
$SHELL $ac_srcdir/configure --help=recursive | ||
elif test -f $ac_srcdir/configure.ac || | ||
test -f $ac_srcdir/configure.in; then | ||
echo | ||
$ac_configure --help | ||
else | else | |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
fi | fi || ac_status=$? | |
cd $ac_popdir | cd "$ac_pwd" || { ac_status=$?; break; } | |
done | done | |
fi | fi | |
test -n "$ac_init_help" && exit 0 | test -n "$ac_init_help" && exit $ac_status | |
if $ac_init_version; then | if $ac_init_version; then | |
cat <<\_ACEOF | cat <<\_ACEOF | |
scrot configure 1.6 | ||
generated by GNU Autoconf 2.69 | ||
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | Copyright (C) 2012 Free Software Foundation, Inc. | |
Free Software Foundation, Inc. | ||
This configure script is free software; the Free Software Foundation | This configure script is free software; the Free Software Foundation | |
gives unlimited permission to copy, distribute and modify it. | gives unlimited permission to copy, distribute and modify it. | |
_ACEOF | _ACEOF | |
exit 0 | exit | |
fi | fi | |
exec 5>config.log | ||
cat >&5 <<_ACEOF | ## ------------------------ ## | |
## Autoconf initialization. ## | ||
## ------------------------ ## | ||
# ac_fn_c_try_compile LINENO | ||
# -------------------------- | ||
# Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
ac_fn_c_try_compile () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
rm -f conftest.$ac_objext | ||
if { { ac_try="$ac_compile" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compile") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
grep -v '^ *+' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
mv -f conftest.er1 conftest.err | ||
fi | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } && { | ||
test -z "$ac_c_werror_flag" || | ||
test ! -s conftest.err | ||
} && test -s conftest.$ac_objext; then : | ||
ac_retval=0 | ||
else | ||
$as_echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
ac_retval=1 | ||
fi | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
as_fn_set_status $ac_retval | ||
} # ac_fn_c_try_compile | ||
# ac_fn_c_try_cpp LINENO | ||
# ---------------------- | ||
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
ac_fn_c_try_cpp () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
grep -v '^ *+' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
mv -f conftest.er1 conftest.err | ||
fi | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } > conftest.i && { | ||
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
test ! -s conftest.err | ||
}; then : | ||
ac_retval=0 | ||
else | ||
$as_echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
ac_retval=1 | ||
fi | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
as_fn_set_status $ac_retval | ||
} # ac_fn_c_try_cpp | ||
# ac_fn_c_try_link LINENO | ||
# ----------------------- | ||
# Try to link conftest.$ac_ext, and return whether this succeeded. | ||
ac_fn_c_try_link () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
rm -f conftest.$ac_objext conftest$ac_exeext | ||
if { { ac_try="$ac_link" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_link") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
grep -v '^ *+' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
mv -f conftest.er1 conftest.err | ||
fi | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } && { | ||
test -z "$ac_c_werror_flag" || | ||
test ! -s conftest.err | ||
} && test -s conftest$ac_exeext && { | ||
test "$cross_compiling" = yes || | ||
test -x conftest$ac_exeext | ||
}; then : | ||
ac_retval=0 | ||
else | ||
$as_echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
ac_retval=1 | ||
fi | ||
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
# interfere with the next link command; also delete a directory that is | ||
# left behind by Apple's compiler. We do this before executing the actions. | ||
rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
as_fn_set_status $ac_retval | ||
} # ac_fn_c_try_link | ||
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
# ------------------------------------------------------- | ||
# Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
# the include files in INCLUDES and setting the cache variable VAR | ||
# accordingly. | ||
ac_fn_c_check_header_mongrel () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
if eval \${$3+:} false; then : | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
$as_echo_n "checking for $2... " >&6; } | ||
if eval \${$3+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
fi | ||
eval ac_res=\$$3 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
$as_echo "$ac_res" >&6; } | ||
else | ||
# Is the header compilable? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
$as_echo_n "checking $2 usability... " >&6; } | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
$4 | ||
#include <$2> | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_header_compiler=yes | ||
else | ||
ac_header_compiler=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
$as_echo "$ac_header_compiler" >&6; } | ||
# Is the header present? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
$as_echo_n "checking $2 presence... " >&6; } | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <$2> | ||
_ACEOF | ||
if ac_fn_c_try_cpp "$LINENO"; then : | ||
ac_header_preproc=yes | ||
else | ||
ac_header_preproc=no | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
$as_echo "$ac_header_preproc" >&6; } | ||
# So? What about this header? | ||
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
yes:no: ) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compil | ||
er, rejected by the preprocessor!" >&5 | ||
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preproc | ||
essor!" >&2;} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co | ||
mpiler's result" >&5 | ||
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
;; | ||
no:yes:* ) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be | ||
compiled" >&5 | ||
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing | ||
prerequisite headers?" >&5 | ||
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2; | ||
} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf docum | ||
entation" >&5 | ||
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present | ||
But Cannot Be Compiled\"" >&5 | ||
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" > | ||
&2;} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co | ||
mpiler's result" >&5 | ||
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
( $as_echo "## ----------------------------------------------------------------- | ||
--------------- ## | ||
## Report this to https://github.com/resurrecting-open-source-projects/scrot/iss | ||
ues ## | ||
## ----------------------------------------------------------------------------- | ||
--- ##" | ||
) | sed "s/^/$as_me: WARNING: /" >&2 | ||
;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
$as_echo_n "checking for $2... " >&6; } | ||
if eval \${$3+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
eval "$3=\$ac_header_compiler" | ||
fi | ||
eval ac_res=\$$3 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
$as_echo "$ac_res" >&6; } | ||
fi | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
} # ac_fn_c_check_header_mongrel | ||
# ac_fn_c_try_run LINENO | ||
# ---------------------- | ||
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
# that executables *can* be run. | ||
ac_fn_c_try_run () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
if { { ac_try="$ac_link" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_link") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
{ { case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_try") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; }; then : | ||
ac_retval=0 | ||
else | ||
$as_echo "$as_me: program exited with status $ac_status" >&5 | ||
$as_echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
ac_retval=$ac_status | ||
fi | ||
rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
as_fn_set_status $ac_retval | ||
} # ac_fn_c_try_run | ||
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
# ------------------------------------------------------- | ||
# Tests whether HEADER exists and can be compiled using the include files in | ||
# INCLUDES, setting the cache variable VAR accordingly. | ||
ac_fn_c_check_header_compile () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
$as_echo_n "checking for $2... " >&6; } | ||
if eval \${$3+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
$4 | ||
#include <$2> | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
eval "$3=yes" | ||
else | ||
eval "$3=no" | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
eval ac_res=\$$3 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
$as_echo "$ac_res" >&6; } | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
} # ac_fn_c_check_header_compile | ||
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
# ------------------------------------------- | ||
# Tests whether TYPE exists after having included INCLUDES, setting cache | ||
# variable VAR accordingly. | ||
ac_fn_c_check_type () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
$as_echo_n "checking for $2... " >&6; } | ||
if eval \${$3+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
eval "$3=no" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
$4 | ||
int | ||
main () | ||
{ | ||
if (sizeof ($2)) | ||
return 0; | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
$4 | ||
int | ||
main () | ||
{ | ||
if (sizeof (($2))) | ||
return 0; | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
else | ||
eval "$3=yes" | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
eval ac_res=\$$3 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
$as_echo "$ac_res" >&6; } | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
} # ac_fn_c_check_type | ||
# ac_fn_c_check_func LINENO FUNC VAR | ||
# ---------------------------------- | ||
# Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
ac_fn_c_check_func () | ||
{ | ||
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
$as_echo_n "checking for $2... " >&6; } | ||
if eval \${$3+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
#define $2 innocuous_$2 | ||
/* System header to define __stub macros and hopefully few prototypes, | ||
which can conflict with char $2 (); below. | ||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
<limits.h> exists even on freestanding compilers. */ | ||
#ifdef __STDC__ | ||
# include <limits.h> | ||
#else | ||
# include <assert.h> | ||
#endif | ||
#undef $2 | ||
/* Override any GCC internal prototype to avoid an error. | ||
Use char because int might match the return type of a GCC | ||
builtin and then its argument prototype would still apply. */ | ||
#ifdef __cplusplus | ||
extern "C" | ||
#endif | ||
char $2 (); | ||
/* The GNU C library defines this for functions which it implements | ||
to always fail with ENOSYS. Some functions are actually named | ||
something starting with __ and the normal name is an alias. */ | ||
#if defined __stub_$2 || defined __stub___$2 | ||
choke me | ||
#endif | ||
int | ||
main () | ||
{ | ||
return $2 (); | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_link "$LINENO"; then : | ||
eval "$3=yes" | ||
else | ||
eval "$3=no" | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext \ | ||
conftest$ac_exeext conftest.$ac_ext | ||
fi | ||
eval ac_res=\$$3 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
$as_echo "$ac_res" >&6; } | ||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
} # ac_fn_c_check_func | ||
cat >config.log <<_ACEOF | ||
This file contains any messages produced by compilers while | This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | running configure, to aid debugging if configure makes a mistake. | |
It was created by $as_me, which was | It was created by scrot $as_me 1.6, which was | |
generated by GNU Autoconf 2.57. Invocation command line was | generated by GNU Autoconf 2.69. Invocation command line was | |
$ $0 $@ | $ $0 $@ | |
_ACEOF | _ACEOF | |
exec 5>>config.log | ||
{ | { | |
cat <<_ASUNAME | cat <<_ASUNAME | |
## --------- ## | ## --------- ## | |
## Platform. ## | ## Platform. ## | |
## --------- ## | ## --------- ## | |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
uname -m = `(uname -m) 2>/dev/null || echo unknown` | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
uname -r = `(uname -r) 2>/dev/null || echo unknown` | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
uname -s = `(uname -s) 2>/dev/null || echo unknown` | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
uname -v = `(uname -v) 2>/dev/null || echo unknown` | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
_ASUNAME | _ASUNAME | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
echo "PATH: $as_dir" | $as_echo "PATH: $as_dir" | |
done | done | |
IFS=$as_save_IFS | ||
} >&5 | } >&5 | |
cat >&5 <<_ACEOF | cat >&5 <<_ACEOF | |
## ----------- ## | ## ----------- ## | |
## Core tests. ## | ## Core tests. ## | |
## ----------- ## | ## ----------- ## | |
_ACEOF | _ACEOF | |
# Keep a trace of the command line. | # Keep a trace of the command line. | |
# Strip out --no-create and --no-recursion so they do not pile up. | # Strip out --no-create and --no-recursion so they do not pile up. | |
# Strip out --silent because we don't want to record it for future runs. | # Strip out --silent because we don't want to record it for future runs. | |
# Also quote any args containing shell meta-characters. | # Also quote any args containing shell meta-characters. | |
# Make two passes to allow for proper duplicate-argument suppression. | # Make two passes to allow for proper duplicate-argument suppression. | |
ac_configure_args= | ac_configure_args= | |
ac_configure_args0= | ac_configure_args0= | |
ac_configure_args1= | ac_configure_args1= | |
ac_sep= | ||
ac_must_keep_next=false | ac_must_keep_next=false | |
for ac_pass in 1 2 | for ac_pass in 1 2 | |
do | do | |
for ac_arg | for ac_arg | |
do | do | |
case $ac_arg in | case $ac_arg in | |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| -silent | --silent | --silen | --sile | --sil) | | -silent | --silent | --silen | --sile | --sil) | |
continue ;; | continue ;; | |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | *\'*) | |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
esac | esac | |
case $ac_pass in | case $ac_pass in | |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2) | 2) | |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" | as_fn_append ac_configure_args1 " '$ac_arg'" | |
if test $ac_must_keep_next = true; then | if test $ac_must_keep_next = true; then | |
ac_must_keep_next=false # Got value, back to normal. | ac_must_keep_next=false # Got value, back to normal. | |
else | else | |
case $ac_arg in | case $ac_arg in | |
*=* | --config-cache | -C | -disable-* | --disable-* \ | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
| -with-* | --with-* | -without-* | --without-* | --x) | | -with-* | --with-* | -without-* | --without-* | --x) | |
case "$ac_configure_args0 " in | case "$ac_configure_args0 " in | |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
esac | esac | |
;; | ;; | |
-* ) ac_must_keep_next=true ;; | -* ) ac_must_keep_next=true ;; | |
esac | esac | |
fi | fi | |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | as_fn_append ac_configure_args " '$ac_arg'" | |
# Get rid of the leading space. | ||
ac_sep=" " | ||
;; | ;; | |
esac | esac | |
done | done | |
done | done | |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_ | { ac_configure_args0=; unset ac_configure_args0;} | |
configure_args0=; export ac_configure_args0; } | { ac_configure_args1=; unset ac_configure_args1;} | |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_ | ||
configure_args1=; export ac_configure_args1; } | ||
# When interrupted or exit'd, cleanup temporary files, and complete | # When interrupted or exit'd, cleanup temporary files, and complete | |
# config.log. We remove comments because anyway the quotes in there | # config.log. We remove comments because anyway the quotes in there | |
# would cause problems or look ugly. | # would cause problems or look ugly. | |
# WARNING: Be sure not to use single quotes in there, as some shells, | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
# such as our DU 5.0 friend, will then `close' the trap. | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
trap 'exit_status=$? | trap 'exit_status=$? | |
# Save into config.log some information that might help in debugging. | # Save into config.log some information that might help in debugging. | |
{ | { | |
echo | echo | |
cat <<\_ASBOX | $as_echo "## ---------------- ## | |
## ---------------- ## | ||
## Cache variables. ## | ## Cache variables. ## | |
## ---------------- ## | ## ---------------- ##" | |
_ASBOX | ||
echo | echo | |
# The following way of writing the cache mishandles newlines in values, | # The following way of writing the cache mishandles newlines in values, | |
{ | ( | |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ | ||
''`; do | ||
eval ac_val=\$$ac_var | ||
case $ac_val in #( | ||
*${as_nl}*) | ||
case $ac_var in #( | ||
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ | ||
ac_var contains a newline" >&5 | ||
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
esac | ||
case $ac_var in #( | ||
_ | IFS | as_nl) ;; #( | ||
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
*) { eval $ac_var=; unset $ac_var;} ;; | ||
esac ;; | ||
esac | ||
done | ||
(set) 2>&1 | | (set) 2>&1 | | |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
*ac_space=\ *) | *${as_nl}ac_space=\ *) | |
sed -n \ | sed -n \ | |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | "s/'\''/'\''\\\\'\'''\''/g; | |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'" | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/ | |
'/p" | p" | |
;; | ;; #( | |
*) | *) | |
sed -n \ | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
;; | ;; | |
esac; | esac | | |
} | sort | |
) | ||
echo | echo | |
cat <<\_ASBOX | $as_echo "## ----------------- ## | |
## ----------------- ## | ||
## Output variables. ## | ## Output variables. ## | |
## ----------------- ## | ## ----------------- ##" | |
_ASBOX | ||
echo | echo | |
for ac_var in $ac_subst_vars | for ac_var in $ac_subst_vars | |
do | do | |
eval ac_val=$`echo $ac_var` | eval ac_val=\$$ac_var | |
echo "$ac_var='"'"'$ac_val'"'"'" | case $ac_val in | |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"` | ||
;; | ||
esac | ||
$as_echo "$ac_var='\''$ac_val'\''" | ||
done | sort | done | sort | |
echo | echo | |
if test -n "$ac_subst_files"; then | if test -n "$ac_subst_files"; then | |
cat <<\_ASBOX | $as_echo "## ------------------- ## | |
## ------------- ## | ## File substitutions. ## | |
## Output files. ## | ## ------------------- ##" | |
## ------------- ## | ||
_ASBOX | ||
echo | echo | |
for ac_var in $ac_subst_files | for ac_var in $ac_subst_files | |
do | do | |
eval ac_val=$`echo $ac_var` | eval ac_val=\$$ac_var | |
echo "$ac_var='"'"'$ac_val'"'"'" | case $ac_val in | |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g" | ||
`;; | ||
esac | ||
$as_echo "$ac_var='\''$ac_val'\''" | ||
done | sort | done | sort | |
echo | echo | |
fi | fi | |
if test -s confdefs.h; then | if test -s confdefs.h; then | |
cat <<\_ASBOX | $as_echo "## ----------- ## | |
## ----------- ## | ||
## confdefs.h. ## | ## confdefs.h. ## | |
## ----------- ## | ## ----------- ##" | |
_ASBOX | ||
echo | echo | |
sed "/^$/d" confdefs.h | sort | cat confdefs.h | |
echo | echo | |
fi | fi | |
test "$ac_signal" != 0 && | test "$ac_signal" != 0 && | |
echo "$as_me: caught signal $ac_signal" | $as_echo "$as_me: caught signal $ac_signal" | |
echo "$as_me: exit $exit_status" | $as_echo "$as_me: exit $exit_status" | |
} >&5 | } >&5 | |
rm -f core core.* *.core && | rm -f core *.core core.conftest.* && | |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
exit $exit_status | exit $exit_status | |
' 0 | ' 0 | |
for ac_signal in 1 2 13 15; do | for ac_signal in 1 2 13 15; do | |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
done | done | |
ac_signal=0 | ac_signal=0 | |
# confdefs.h avoids OS command line length limits that DEFS can exceed. | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
rm -rf conftest* confdefs.h | rm -f -r conftest* confdefs.h | |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
echo >confdefs.h | $as_echo "/* confdefs.h */" > confdefs.h | |
# Predefined preprocessor variables. | # Predefined preprocessor variables. | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE_NAME "$PACKAGE_NAME" | #define PACKAGE_NAME "$PACKAGE_NAME" | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
_ACEOF | _ACEOF | |
skipping to change at line 1104 | skipping to change at line 2141 | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE_STRING "$PACKAGE_STRING" | #define PACKAGE_STRING "$PACKAGE_STRING" | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | ||
#define PACKAGE_URL "$PACKAGE_URL" | ||
_ACEOF | ||
# Let the site file select an alternate cache file if it wants to. | # Let the site file select an alternate cache file if it wants to. | |
# Prefer explicitly selected file to automatically selected ones. | # Prefer an explicitly selected file to automatically selected ones. | |
if test -z "$CONFIG_SITE"; then | ac_site_file1=NONE | |
if test "x$prefix" != xNONE; then | ac_site_file2=NONE | |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | if test -n "$CONFIG_SITE"; then | |
else | # We do not want a PATH search for config.site. | |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/con | case $CONFIG_SITE in #(( | |
fig.site" | -*) ac_site_file1=./$CONFIG_SITE;; | |
fi | */*) ac_site_file1=$CONFIG_SITE;; | |
*) ac_site_file1=./$CONFIG_SITE;; | ||
esac | ||
elif test "x$prefix" != xNONE; then | ||
ac_site_file1=$prefix/share/config.site | ||
ac_site_file2=$prefix/etc/config.site | ||
else | ||
ac_site_file1=$ac_default_prefix/share/config.site | ||
ac_site_file2=$ac_default_prefix/etc/config.site | ||
fi | fi | |
for ac_site_file in $CONFIG_SITE; do | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
if test -r "$ac_site_file"; then | do | |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | test "x$ac_site_file" = xNONE && continue | |
echo "$as_me: loading site script $ac_site_file" >&6;} | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" | ||
>&5 | ||
$as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
sed 's/^/| /' "$ac_site_file" >&5 | sed 's/^/| /' "$ac_site_file" >&5 | |
. "$ac_site_file" | . "$ac_site_file" \ | |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "failed to load site script $ac_site_file | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | fi | |
done | done | |
if test -r "$cache_file"; then | if test -r "$cache_file"; then | |
# Some versions of bash will fail to source /dev/null (special | # Some versions of bash will fail to source /dev/null (special files | |
# files actually), so we avoid doing that. | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
if test -f "$cache_file"; then | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
echo "$as_me: loading cache $cache_file" >&6;} | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
case $cache_file in | case $cache_file in | |
[\\/]* | ?:[\\/]* ) . $cache_file;; | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
*) . ./$cache_file;; | *) . "./$cache_file";; | |
esac | esac | |
fi | fi | |
else | else | |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
echo "$as_me: creating cache $cache_file" >&6;} | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
>$cache_file | >$cache_file | |
fi | fi | |
# Check that the precious variables saved in the cache have kept the same | # Check that the precious variables saved in the cache have kept the same | |
# value. | # value. | |
ac_cache_corrupted=false | ac_cache_corrupted=false | |
for ac_var in `(set) 2>&1 | | for ac_var in $ac_precious_vars; do | |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
eval ac_old_set=\$ac_cv_env_${ac_var}_set | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
eval ac_new_set=\$ac_env_${ac_var}_set | eval ac_new_set=\$ac_env_${ac_var}_set | |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
eval ac_new_val="\$ac_env_${ac_var}_value" | eval ac_new_val=\$ac_env_${ac_var}_value | |
case $ac_old_set,$ac_new_set in | case $ac_old_set,$ac_new_set in | |
set,) | set,) | |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$a | |
previous run" >&5 | c_old_val' in the previous run" >&5 | |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" > | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru | |
&2;} | n" >&2;} | |
ac_cache_corrupted=: ;; | ac_cache_corrupted=: ;; | |
,set) | ,set) | |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in | |
>&5 | the previous run" >&5 | |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ac_cache_corrupted=: ;; | ac_cache_corrupted=: ;; | |
,);; | ,);; | |
*) | *) | |
if test "x$ac_old_val" != "x$ac_new_val"; then | if test "x$ac_old_val" != "x$ac_new_val"; then | |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous | # differences in whitespace do not lead to failure. | |
run:" >&5 | ac_old_val_w=`echo x $ac_old_val` | |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ac_new_val_w=`echo x $ac_new_val` | |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
echo "$as_me: former value: $ac_old_val" >&2;} | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed | |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | since the previous run:" >&5 | |
echo "$as_me: current value: $ac_new_val" >&2;} | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
ac_cache_corrupted=: | ac_cache_corrupted=: | |
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace c | ||
hanges in \`$ac_var' since the previous run:" >&5 | ||
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p | ||
revious run:" >&2;} | ||
eval $ac_var=\$ac_old_val | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" | ||
>&5 | ||
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" | ||
>&5 | ||
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
fi;; | fi;; | |
esac | esac | |
# Pass precious variables to config.status. | # Pass precious variables to config.status. | |
if test "$ac_new_set" = set; then | if test "$ac_new_set" = set; then | |
case $ac_new_val in | case $ac_new_val in | |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
*) ac_arg=$ac_var=$ac_new_val ;; | *) ac_arg=$ac_var=$ac_new_val ;; | |
esac | esac | |
case " $ac_configure_args " in | case " $ac_configure_args " in | |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
esac | esac | |
fi | fi | |
done | done | |
if $ac_cache_corrupted; then | if $ac_cache_corrupted; then | |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the b | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
uild" >&5 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can | |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file | compromise the build" >&5 | |
' and start over" >&5 | $as_echo "$as_me: error: changes in the environment can compromise the build" >& | |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov | 2;} | |
er" >&2;} | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" | |
{ (exit 1); exit 1; }; } | "$LINENO" 5 | |
fi | fi | |
## -------------------- ## | ||
## Main body of script. ## | ||
## -------------------- ## | ||
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
am__api_version="1.4" | am__api_version='1.16' | |
ac_aux_dir= | ac_aux_dir= | |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
if test -f $ac_dir/install-sh; then | if test -f "$ac_dir/install-sh"; then | |
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |
ac_install_sh="$ac_aux_dir/install-sh -c" | ac_install_sh="$ac_aux_dir/install-sh -c" | |
break | break | |
elif test -f $ac_dir/install.sh; then | elif test -f "$ac_dir/install.sh"; then | |
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |
ac_install_sh="$ac_aux_dir/install.sh -c" | ac_install_sh="$ac_aux_dir/install.sh -c" | |
break | break | |
elif test -f $ac_dir/shtool; then | elif test -f "$ac_dir/shtool"; then | |
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |
ac_install_sh="$ac_aux_dir/shtool install -c" | ac_install_sh="$ac_aux_dir/shtool install -c" | |
break | break | |
fi | fi | |
done | done | |
if test -z "$ac_aux_dir"; then | if test -z "$ac_aux_dir"; then | |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcd | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \ | |
ir $srcdir/.. $srcdir/../.." >&5 | "$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. | fi | |
$srcdir/../.." >&2;} | ||
{ (exit 1); exit 1; }; } | # These three variables are undocumented and unsupported, | |
fi | # and are intended to be withdrawn in a future Autoconf release. | |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" | # They can cause serious problems if a builder's source tree is in a directory | |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" | # whose full name contains unusual characters. | |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
# Find a good install program. We prefer a C program (faster), | # Find a good install program. We prefer a C program (faster), | |
# so one script is as good as another. But avoid the broken or | # so one script is as good as another. But avoid the broken or | |
# incompatible versions: | # incompatible versions: | |
# SysV /etc/install, /usr/sbin/install | # SysV /etc/install, /usr/sbin/install | |
# SunOS /usr/etc/install | # SunOS /usr/etc/install | |
# IRIX /sbin/install | # IRIX /sbin/install | |
# AIX /bin/install | # AIX /bin/install | |
# AmigaOS /C/install, which installs bootblocks on floppy discs | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
# OS/2's system install, which has a completely different semantic | ||
# ./install, which can be erroneously created by make from ./install.sh. | # ./install, which can be erroneously created by make from ./install.sh. | |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | # Reject install programs that cannot install multiple files. | |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" | |
>&5 | ||
$as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
if test -z "$INSTALL"; then | if test -z "$INSTALL"; then | |
if test "${ac_cv_path_install+set}" = set; then | if ${ac_cv_path_install+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
# Account for people who put trailing slashes in PATH elements. | # Account for people who put trailing slashes in PATH elements. | |
case $as_dir/ in | case $as_dir/ in #(( | |
./ | .// | /cC/* | \ | ./ | .// | /[cC]/* | \ | |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
/usr/ucb/* ) ;; | /usr/ucb/* ) ;; | |
*) | *) | |
# OSF1 and SCO ODT 3.0 have their own names for install. | # OSF1 and SCO ODT 3.0 have their own names for install. | |
# Don't use installbsd from OSF since it installs stuff as root | # Don't use installbsd from OSF since it installs stuff as root | |
# by default. | # by default. | |
for ac_prog in ginstall scoinst install; do | for ac_prog in ginstall scoinst install; do | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
if test $ac_prog = install && | if test $ac_prog = install && | |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
# AIX install. It has an incompatible calling convention. | # AIX install. It has an incompatible calling convention. | |
: | : | |
elif test $ac_prog = install && | elif test $ac_prog = install && | |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
# program-specific install script used by HP pwplus--don't use. | # program-specific install script used by HP pwplus--don't use. | |
: | : | |
else | else | |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | rm -rf conftest.one conftest.two conftest.dir | |
break 3 | echo one > conftest.one | |
fi | echo two > conftest.two | |
fi | mkdir conftest.dir | |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd` | ||
/conftest.dir" && | ||
test -s conftest.one && test -s conftest.two && | ||
test -s conftest.dir/conftest.one && | ||
test -s conftest.dir/conftest.two | ||
then | ||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
break 3 | ||
fi | ||
fi | ||
fi | ||
done | done | |
done | done | |
;; | ;; | |
esac | esac | |
done | ||
done | ||
IFS=$as_save_IFS | ||
rm -rf conftest.one conftest.two conftest.dir | ||
fi | fi | |
if test "${ac_cv_path_install+set}" = set; then | if test "${ac_cv_path_install+set}" = set; then | |
INSTALL=$ac_cv_path_install | INSTALL=$ac_cv_path_install | |
else | else | |
# As a last resort, use the slow shell script. We don't cache a | # As a last resort, use the slow shell script. Don't cache a | |
# path for INSTALL within a source directory, because that will | # value for INSTALL within a source directory, because that will | |
# break other packages using the cache if that directory is | # break other packages using the cache if that directory is | |
# removed, or if the path is relative. | # removed, or if the value is a relative name. | |
INSTALL=$ac_install_sh | INSTALL=$ac_install_sh | |
fi | fi | |
fi | fi | |
echo "$as_me:$LINENO: result: $INSTALL" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
echo "${ECHO_T}$INSTALL" >&6 | $as_echo "$INSTALL" >&6; } | |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
# It thinks the first close brace ends the variable substitution. | # It thinks the first close brace ends the variable substitution. | |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s | |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | ane" >&5 | |
# Just in case | $as_echo_n "checking whether build environment is sane... " >&6; } | |
sleep 1 | # Reject unsafe characters in $srcdir or the absolute working directory | |
echo timestamp > conftestfile | # name. Accept space and tab only in the latter. | |
# Do `set' in a subshell so we don't clobber the current shell's | am_lf=' | |
' | ||
case `pwd` in | ||
*[\\\"\#\$\&\'\`$am_lf]*) | ||
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | ||
esac | ||
case $srcdir in | ||
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | ||
esac | ||
# Do 'set' in a subshell so we don't clobber the current shell's | ||
# arguments. Must try -L first in case configure is actually a | # arguments. Must try -L first in case configure is actually a | |
# symlink; some systems play weird games with the mod time of symlinks | # symlink; some systems play weird games with the mod time of symlinks | |
# (eg FreeBSD returns the mod time of the symlink's containing | # (eg FreeBSD returns the mod time of the symlink's containing | |
# directory). | # directory). | |
if ( | if ( | |
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | am_has_slept=no | |
if test "$*" = "X"; then | for am_try in 1 2; do | |
# -L didn't work. | echo "timestamp, slept: $am_has_slept" > conftest.file | |
set X `ls -t $srcdir/configure conftestfile` | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
fi | if test "$*" = "X"; then | |
if test "$*" != "X $srcdir/configure conftestfile" \ | # -L didn't work. | |
&& test "$*" != "X conftestfile $srcdir/configure"; then | set X `ls -t "$srcdir/configure" conftest.file` | |
fi | ||
# If neither matched, then we have a broken ls. This can happen | if test "$*" != "X $srcdir/configure conftest.file" \ | |
# if, for instance, CONFIG_SHELL is bash and it inherits a | && test "$*" != "X conftest.file $srcdir/configure"; then | |
# broken ls alias from the environment. This has actually | ||
# happened. Such a system could not be considered "sane". | ||
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there i | ||
s not a broken | ||
alias in your environment" >&5 | ||
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
alias in your environment" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
test "$2" = conftestfile | # If neither matched, then we have a broken ls. This can happen | |
# if, for instance, CONFIG_SHELL is bash and it inherits a | ||
# broken ls alias from the environment. This has actually | ||
# happened. Such a system could not be considered "sane". | ||
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
alias in your environment" "$LINENO" 5 | ||
fi | ||
if test "$2" = conftest.file || test $am_try -eq 2; then | ||
break | ||
fi | ||
# Just in case. | ||
sleep 1 | ||
am_has_slept=yes | ||
done | ||
test "$2" = conftest.file | ||
) | ) | |
then | then | |
# Ok. | # Ok. | |
: | : | |
else | else | |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed | as_fn_error $? "newly created file is older than distributed files! | |
files! | Check your system clock" "$LINENO" 5 | |
Check your system clock" >&5 | ||
echo "$as_me: error: newly created file is older than distributed files! | ||
Check your system clock" >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | fi | |
rm -f conftest* | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
echo "$as_me:$LINENO: result: yes" >&5 | $as_echo "yes" >&6; } | |
echo "${ECHO_T}yes" >&6 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
# generated files are strictly newer. | ||
am_sleep_pid= | ||
if grep 'slept: no' conftest.file >/dev/null 2>&1; then | ||
( sleep 1 ) & | ||
am_sleep_pid=$! | ||
fi | ||
rm -f conftest.file | ||
test "$program_prefix" != NONE && | test "$program_prefix" != NONE && | |
program_transform_name="s,^,$program_prefix,;$program_transform_name" | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
# Use a double $ so make ignores it. | # Use a double $ so make ignores it. | |
test "$program_suffix" != NONE && | test "$program_suffix" != NONE && | |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
# Double any \ or $. echo might interpret backslashes. | # Double any \ or $. | |
# By default was `s,x,x', remove it if useless. | # By default was `s,x,x', remove it if useless. | |
cat <<\_ACEOF >conftest.sed | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
s/[\\$]/&&/g;s/;s,x,x,$// | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
_ACEOF | ||
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
rm conftest.sed | ||
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | # Expand $ac_aux_dir to an absolute path. | |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | ||
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | if test x"${MISSING+set}" != xset; then | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | MISSING="\${SHELL} '$am_aux_dir/missing'" | |
fi | ||
# Use eval to expand $SHELL | ||
if eval "$MISSING --is-lightweight"; then | ||
am_missing_run="$MISSING " | ||
else | ||
am_missing_run= | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old | ||
or missing" >&5 | ||
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | ||
fi | ||
if test x"${install_sh+set}" != xset; then | ||
case $am_aux_dir in | ||
*\ * | *\ *) | ||
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
*) | ||
install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
esac | ||
fi | ||
# Installed binaries are usually stripped using 'strip' when the user | ||
# run "make install-strip". However 'strip' might not be the right | ||
# tool to use in cross-compilation environments, therefore Automake | ||
# will honor the 'STRIP' environment variable to overrule this program. | ||
if test "$cross_compiling" != no; then | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program n | ||
ame with args. | ||
set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_STRIP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$STRIP"; then | ||
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
STRIP=$ac_cv_prog_STRIP | ||
if test -n "$STRIP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
$as_echo "$STRIP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_STRIP"; then | ||
ac_ct_STRIP=$STRIP | ||
# Extract the first word of "strip", so it can be a program name with args. | ||
set dummy strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_STRIP"; then | ||
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_STRIP="strip" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
if test -n "$ac_ct_STRIP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
$as_echo "$ac_ct_STRIP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_STRIP" = x; then | ||
STRIP=":" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
STRIP=$ac_ct_STRIP | ||
fi | ||
else | ||
STRIP="$ac_cv_prog_STRIP" | ||
fi | ||
fi | ||
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >& | ||
5 | ||
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
if test -z "$MKDIR_P"; then | ||
if ${ac_cv_path_mkdir+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in mkdir gmkdir; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | ||
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
'mkdir (GNU coreutils) '* | \ | ||
'mkdir (coreutils) '* | \ | ||
'mkdir (fileutils) '4.1*) | ||
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
break 3;; | ||
esac | ||
done | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
test -d ./--version && rmdir ./--version | ||
if test "${ac_cv_path_mkdir+set}" = set; then | ||
MKDIR_P="$ac_cv_path_mkdir -p" | ||
else | ||
# As a last resort, use the slow shell script. Don't cache a | ||
# value for MKDIR_P within a source directory, because that will | ||
# break other packages using the cache if that directory is | ||
# removed, or if the value is a relative name. | ||
MKDIR_P="$ac_install_sh -d" | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
$as_echo "$MKDIR_P" >&6; } | ||
for ac_prog in gawk mawk nawk awk | ||
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_AWK+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$AWK"; then | ||
ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_AWK="$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
AWK=$ac_cv_prog_AWK | ||
if test -n "$AWK"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
$as_echo "$AWK" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$AWK" && break | ||
done | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M | ||
AKE)" >&5 | ||
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
set x ${MAKE-make} | ||
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
cat >conftest.make <<\_ACEOF | cat >conftest.make <<\_ACEOF | |
SHELL = /bin/sh | ||
all: | all: | |
@echo 'ac_maketemp="$(MAKE)"' | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
_ACEOF | _ACEOF | |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
if test -n "$ac_maketemp"; then | *@@@%%%=?*=@@@%%%*) | |
eval ac_cv_prog_make_${ac_make}_set=yes | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
else | *) | |
eval ac_cv_prog_make_${ac_make}_set=no | eval ac_cv_prog_make_${ac_make}_set=no;; | |
fi | esac | |
rm -f conftest.make | rm -f conftest.make | |
fi | fi | |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
echo "$as_me:$LINENO: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
echo "${ECHO_T}yes" >&6 | $as_echo "yes" >&6; } | |
SET_MAKE= | SET_MAKE= | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
SET_MAKE="MAKE=${MAKE-make}" | SET_MAKE="MAKE=${MAKE-make}" | |
fi | fi | |
PACKAGE=scrot | rm -rf .tst 2>/dev/null | |
mkdir .tst 2>/dev/null | ||
if test -d .tst; then | ||
am__leading_dot=. | ||
else | ||
am__leading_dot=_ | ||
fi | ||
rmdir .tst 2>/dev/null | ||
VERSION=0.8 | # Check whether --enable-silent-rules was given. | |
if test "${enable_silent_rules+set}" = set; then : | ||
enableval=$enable_silent_rules; | ||
fi | ||
case $enable_silent_rules in # ((( | ||
yes) AM_DEFAULT_VERBOSITY=0;; | ||
no) AM_DEFAULT_VERBOSITY=1;; | ||
*) AM_DEFAULT_VERBOSITY=1;; | ||
esac | ||
am_make=${MAKE-make} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nest | ||
ed variables" >&5 | ||
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } | ||
if ${am_cv_make_support_nested_variables+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if $as_echo 'TRUE=$(BAR$(V)) | ||
BAR0=false | ||
BAR1=true | ||
V=1 | ||
am__doit: | ||
@$(TRUE) | ||
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | ||
am_cv_make_support_nested_variables=yes | ||
else | ||
am_cv_make_support_nested_variables=no | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_vari | ||
ables" >&5 | ||
$as_echo "$am_cv_make_support_nested_variables" >&6; } | ||
if test $am_cv_make_support_nested_variables = yes; then | ||
AM_V='$(V)' | ||
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | ||
else | ||
AM_V=$AM_DEFAULT_VERBOSITY | ||
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | ||
fi | ||
AM_BACKSLASH='\' | ||
if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
# is not polluted with repeated "-I." | ||
am__isrc=' -I$(srcdir)' | ||
# test to see if srcdir already configured | ||
if test -f $srcdir/config.status; then | ||
as_fn_error $? "source directory already configured; run \"make distclean\" | ||
there first" "$LINENO" 5 | ||
fi | ||
fi | ||
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | # test whether we have cygpath | |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"ma | if test -z "$CYGPATH_W"; then | |
ke distclean\" there first" >&5 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
echo "$as_me: error: source directory already configured; run \"make distclean\" | CYGPATH_W='cygpath -w' | |
there first" >&2;} | else | |
{ (exit 1); exit 1; }; } | CYGPATH_W=echo | |
fi | ||
fi | fi | |
# Define the identity of the package. | ||
PACKAGE='scrot' | ||
VERSION='1.6' | ||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE "$PACKAGE" | #define PACKAGE "$PACKAGE" | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define VERSION "$VERSION" | #define VERSION "$VERSION" | |
_ACEOF | _ACEOF | |
missing_dir=`cd $ac_aux_dir && pwd` | # Some tools Automake needs. | |
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 | ||
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
# Run test in a subshell; some versions of sh will print an error if | ||
# an executable is not found, even if stderr is redirected. | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
# Redirect stdin to placate older versions of autoconf. Sigh. | ||
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
ACLOCAL=aclocal-${am__api_version} | ||
echo "$as_me:$LINENO: result: found" >&5 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
echo "${ECHO_T}found" >&6 | ||
else | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" | ||
echo "$as_me:$LINENO: result: missing" >&5 | # For better backward compatibility. To be removed once Automake 1.9.x | |
echo "${ECHO_T}missing" >&6 | # dies out for good. For more background, see: | |
fi | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | ||
echo "$as_me:$LINENO: checking for working autoconf" >&5 | mkdir_p='$(MKDIR_P)' | |
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | ||
# Run test in a subshell; some versions of sh will print an error if | # We need awk for the "check" target (and possibly the TAP driver). The | |
# an executable is not found, even if stderr is redirected. | # system "awk" is bad on some platforms. | |
# Redirect stdin to placate older versions of autoconf. Sigh. | # Always define AMTAR for backward compatibility. Yes, it's still used | |
if (autoconf --version) < /dev/null > /dev/null 2>&1; then | # in the wild :-( We should find a proper way to deprecate it ... | |
AUTOCONF=autoconf | AMTAR='$${TAR-tar}' | |
echo "$as_me:$LINENO: result: found" >&5 | ||
echo "${ECHO_T}found" >&6 | # We'll loop over all known methods to create a tar archive until one works. | |
else | _am_tools='gnutar pax cpio none' | |
AUTOCONF="$missing_dir/missing autoconf" | ||
echo "$as_me:$LINENO: result: missing" >&5 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
echo "${ECHO_T}missing" >&6 | ||
fi | # POSIX will say in a future version that running "rm -f" with no argument | |
# is OK; and we want to be able to make that assumption in our Makefile | ||
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 | # recipes. So use an aggressive probe to check that the usage we want is | |
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 | # actually supported "in the wild" to an acceptable degree. | |
# Run test in a subshell; some versions of sh will print an error if | # See automake bug#10828. | |
# an executable is not found, even if stderr is redirected. | # To make any issue more visible, cause the running configure to be aborted | |
# Redirect stdin to placate older versions of autoconf. Sigh. | # by default if the 'rm' program in use doesn't match our expectations; the | |
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then | # user can still override this though. | |
AUTOMAKE=automake-${am__api_version} | if rm -f && rm -fr && rm -rf; then : OK; else | |
echo "$as_me:$LINENO: result: found" >&5 | cat >&2 <<'END' | |
echo "${ECHO_T}found" >&6 | Oops! | |
else | ||
AUTOMAKE="$missing_dir/missing automake-${am__api_version}" | Your 'rm' program seems unable to run without file operands specified | |
echo "$as_me:$LINENO: result: missing" >&5 | on the command line, even when the '-f' option is present. This is contrary | |
echo "${ECHO_T}missing" >&6 | to the behaviour of most rm programs out there, and not conforming with | |
fi | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
echo "$as_me:$LINENO: checking for working autoheader" >&5 | Please tell bug-automake@gnu.org about your system, including the value | |
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | of your $PATH and any error possibly output before this message. This | |
# Run test in a subshell; some versions of sh will print an error if | can help us improve future automake versions. | |
# an executable is not found, even if stderr is redirected. | ||
# Redirect stdin to placate older versions of autoconf. Sigh. | END | |
if (autoheader --version) < /dev/null > /dev/null 2>&1; then | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
AUTOHEADER=autoheader | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
echo "$as_me:$LINENO: result: found" >&5 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
echo "${ECHO_T}found" >&6 | echo >&2 | |
else | else | |
AUTOHEADER="$missing_dir/missing autoheader" | cat >&2 <<'END' | |
echo "$as_me:$LINENO: result: missing" >&5 | Aborting the configuration process, to ensure you take notice of the issue. | |
echo "${ECHO_T}missing" >&6 | ||
fi | You can download and install GNU coreutils to get an 'rm' implementation | |
that behaves properly: <https://www.gnu.org/software/coreutils/>. | ||
echo "$as_me:$LINENO: checking for working makeinfo" >&5 | ||
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | If you want to complete the configuration process using your problematic | |
# Run test in a subshell; some versions of sh will print an error if | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
# an executable is not found, even if stderr is redirected. | to "yes", and re-run configure. | |
# Redirect stdin to placate older versions of autoconf. Sigh. | ||
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | END | |
MAKEINFO=makeinfo | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
echo "$as_me:$LINENO: result: found" >&5 | fi | |
echo "${ECHO_T}found" >&6 | ||
else | ||
MAKEINFO="$missing_dir/missing makeinfo" | ||
echo "$as_me:$LINENO: result: missing" >&5 | ||
echo "${ECHO_T}missing" >&6 | ||
fi | fi | |
ac_config_headers="$ac_config_headers src/config.h" | ac_config_headers="$ac_config_headers src/config.h" | |
ac_config_commands="$ac_config_commands default-1" | ac_config_commands="$ac_config_commands src/scrot_config.h" | |
# Checks for programs. | ||
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args. | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args. | |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_CC+set}" = set; then | if ${ac_cv_prog_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$CC"; then | if test -n "$CC"; then | |
ac_cv_prog_CC="$CC" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_CC="${ac_tool_prefix}gcc" | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
fi | fi | |
fi | fi | |
CC=$ac_cv_prog_CC | CC=$ac_cv_prog_CC | |
if test -n "$CC"; then | if test -n "$CC"; then | |
echo "$as_me:$LINENO: result: $CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
echo "${ECHO_T}$CC" >&6 | $as_echo "$CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
fi | fi | |
if test -z "$ac_cv_prog_CC"; then | if test -z "$ac_cv_prog_CC"; then | |
ac_ct_CC=$CC | ac_ct_CC=$CC | |
# Extract the first word of "gcc", so it can be a program name with args. | # Extract the first word of "gcc", so it can be a program name with args. | |
set dummy gcc; ac_word=$2 | set dummy gcc; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_CC"; then | if test -n "$ac_ct_CC"; then | |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_CC="gcc" | ac_cv_prog_ac_ct_CC="gcc" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
fi | fi | |
fi | fi | |
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
if test -n "$ac_ct_CC"; then | if test -n "$ac_ct_CC"; then | |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
echo "${ECHO_T}$ac_ct_CC" >&6 | $as_echo "$ac_ct_CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
CC=$ac_ct_CC | if test "x$ac_ct_CC" = x; then | |
CC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
else | else | |
CC="$ac_cv_prog_CC" | CC="$ac_cv_prog_CC" | |
fi | fi | |
if test -z "$CC"; then | if test -z "$CC"; then | |
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na | |
with args. | me with args. | |
set dummy ${ac_tool_prefix}cc; ac_word=$2 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_CC+set}" = set; then | if ${ac_cv_prog_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$CC"; then | if test -n "$CC"; then | |
ac_cv_prog_CC="$CC" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_CC="${ac_tool_prefix}cc" | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
fi | fi | |
fi | fi | |
CC=$ac_cv_prog_CC | CC=$ac_cv_prog_CC | |
if test -n "$CC"; then | if test -n "$CC"; then | |
echo "$as_me:$LINENO: result: $CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
echo "${ECHO_T}$CC" >&6 | $as_echo "$CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
fi | ||
if test -z "$ac_cv_prog_CC"; then | ||
ac_ct_CC=$CC | ||
# Extract the first word of "cc", so it can be a program name with args. | ||
set dummy cc; ac_word=$2 | ||
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
if test -n "$ac_ct_CC"; then | ||
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_CC="cc" | ||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
break 2 | ||
fi | fi | |
done | ||
done | ||
fi | ||
fi | ||
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
if test -n "$ac_ct_CC"; then | ||
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
echo "${ECHO_T}$ac_ct_CC" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | ||
fi | ||
CC=$ac_ct_CC | ||
else | ||
CC="$ac_cv_prog_CC" | ||
fi | ||
fi | fi | |
if test -z "$CC"; then | if test -z "$CC"; then | |
# Extract the first word of "cc", so it can be a program name with args. | # Extract the first word of "cc", so it can be a program name with args. | |
set dummy cc; ac_word=$2 | set dummy cc; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_CC+set}" = set; then | if ${ac_cv_prog_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$CC"; then | if test -n "$CC"; then | |
ac_cv_prog_CC="$CC" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
ac_prog_rejected=no | ac_prog_rejected=no | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
ac_prog_rejected=yes | ac_prog_rejected=yes | |
continue | continue | |
fi | fi | |
ac_cv_prog_CC="cc" | ac_cv_prog_CC="cc" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
if test $ac_prog_rejected = yes; then | if test $ac_prog_rejected = yes; then | |
# We found a bogon in the path, so make sure we never use it. | # We found a bogon in the path, so make sure we never use it. | |
set dummy $ac_cv_prog_CC | set dummy $ac_cv_prog_CC | |
shift | shift | |
if test $# != 0; then | if test $# != 0; then | |
# We chose a different compiler from the bogus one. | # We chose a different compiler from the bogus one. | |
# However, it has the same basename, so the bogon will be chosen | # However, it has the same basename, so the bogon will be chosen | |
# first if we set CC to just the basename; use the full file name. | # first if we set CC to just the basename; use the full file name. | |
shift | shift | |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
fi | fi | |
fi | fi | |
fi | fi | |
fi | fi | |
CC=$ac_cv_prog_CC | CC=$ac_cv_prog_CC | |
if test -n "$CC"; then | if test -n "$CC"; then | |
echo "$as_me:$LINENO: result: $CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
echo "${ECHO_T}$CC" >&6 | $as_echo "$CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
fi | fi | |
if test -z "$CC"; then | if test -z "$CC"; then | |
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
for ac_prog in cl | for ac_prog in cl.exe | |
do | do | |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. | |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_CC+set}" = set; then | if ${ac_cv_prog_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$CC"; then | if test -n "$CC"; then | |
ac_cv_prog_CC="$CC" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
fi | fi | |
fi | fi | |
CC=$ac_cv_prog_CC | CC=$ac_cv_prog_CC | |
if test -n "$CC"; then | if test -n "$CC"; then | |
echo "$as_me:$LINENO: result: $CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
echo "${ECHO_T}$CC" >&6 | $as_echo "$CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$CC" && break | test -n "$CC" && break | |
done | done | |
fi | fi | |
if test -z "$CC"; then | if test -z "$CC"; then | |
ac_ct_CC=$CC | ac_ct_CC=$CC | |
for ac_prog in cl | for ac_prog in cl.exe | |
do | do | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
set dummy $ac_prog; ac_word=$2 | set dummy $ac_prog; ac_word=$2 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_CC"; then | if test -n "$ac_ct_CC"; then | |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_CC="$ac_prog" | ac_cv_prog_ac_ct_CC="$ac_prog" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | ||
fi | fi | |
fi | fi | |
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
if test -n "$ac_ct_CC"; then | if test -n "$ac_ct_CC"; then | |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
echo "${ECHO_T}$ac_ct_CC" >&6 | $as_echo "$ac_ct_CC" >&6; } | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$ac_ct_CC" && break | test -n "$ac_ct_CC" && break | |
done | done | |
CC=$ac_ct_CC | if test "x$ac_ct_CC" = x; then | |
CC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
fi | fi | |
fi | fi | |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' | |
in \$PATH | :" >&5 | |
See \`config.log' for more details." >&5 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
echo "$as_me: error: no acceptable C compiler found in \$PATH | as_fn_error $? "no acceptable C compiler found in \$PATH | |
See \`config.log' for more details." >&2;} | See \`config.log' for more details" "$LINENO" 5; } | |
{ (exit 1); exit 1; }; } | ||
# Provide some information about the compiler. | # Provide some information about the compiler. | |
echo "$as_me:$LINENO:" \ | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
"checking for C compiler version" >&5 | set X $ac_compile | |
ac_compiler=`set X $ac_compile; echo $2` | ac_compiler=$2 | |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | for ac_option in --version -v -V -qversion; do | |
(eval $ac_compiler --version </dev/null >&5) 2>&5 | { { ac_try="$ac_compiler $ac_option >&5" | |
ac_status=$? | case "(($ac_try" in | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
(exit $ac_status); } | *) ac_try_echo=$ac_try;; | |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | esac | |
(eval $ac_compiler -v </dev/null >&5) 2>&5 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
ac_status=$? | $as_echo "$ac_try_echo"; } >&5 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
(exit $ac_status); } | ac_status=$? | |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | if test -s conftest.err; then | |
(eval $ac_compiler -V </dev/null >&5) 2>&5 | sed '10a\ | |
ac_status=$? | ... rest of stderr output deleted ... | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 10q' conftest.err >conftest.er1 | |
(exit $ac_status); } | cat conftest.er1 >&5 | |
fi | ||
cat >conftest.$ac_ext <<_ACEOF | rm -f conftest.er1 conftest.err | |
#line $LINENO "configure" | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
/* confdefs.h. */ | test $ac_status = 0; } | |
_ACEOF | done | |
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
ac_clean_files_save=$ac_clean_files | ac_clean_files_save=$ac_clean_files | |
ac_clean_files="$ac_clean_files a.out a.exe b.out" | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
# Try to create an executable without -o first, disregard a.out. | # Try to create an executable without -o first, disregard a.out. | |
# It will help us diagnose broken compilers, and finding out an intuition | # It will help us diagnose broken compilers, and finding out an intuition | |
# of exeext. | # of exeext. | |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" | |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | >&5 | |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | $as_echo_n "checking whether the C compiler works... " >&6; } | |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
(eval $ac_link_default) 2>&5 | ||
ac_status=$? | # The possible output files: | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
(exit $ac_status); }; then | ||
# Find the output, starting from the most likely. This scheme is | ac_rmfiles= | |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last | for ac_file in $ac_files | |
# resort. | do | |
case $ac_file in | ||
# Be careful to initialize this variable, since it used to be cached. | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | | |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | *.inf | *.dSYM | *.o | *.obj ) ;; | |
ac_cv_exeext= | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
# b.out is created by i960 compilers. | esac | |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | done | |
rm -f $ac_rmfiles | ||
if { { ac_try="$ac_link_default" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_link_default") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then : | ||
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
# in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
# so that the user can short-circuit this test for compilers unknown to | ||
# Autoconf. | ||
for ac_file in $ac_files '' | ||
do | do | |
test -f "$ac_file" || continue | test -f "$ac_file" || continue | |
case $ac_file in | case $ac_file in | |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *. | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | | |
obj ) | *.inf | *.dSYM | *.o | *.obj ) | |
;; | ;; | |
conftest.$ac_ext ) | ||
# This is the source file. | ||
;; | ||
[ab].out ) | [ab].out ) | |
# We found the default executable, but exeext='' is most | # We found the default executable, but exeext='' is most | |
# certainly right. | # certainly right. | |
break;; | break;; | |
*.* ) | *.* ) | |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
# FIXME: I believe we export ac_cv_exeext for Libtool, | then :; else | |
# but it would be cool to find out if it's true. Does anybody | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
# maintain Libtool? --akim. | fi | |
export ac_cv_exeext | # We set ac_cv_exeext here because the later test for it is not | |
break;; | # safe: cross compilers may not add the suffix if given an `-o' | |
# argument, so we may need to know it at that point already. | ||
# Even if this section looks crufty: it has the advantage of | ||
# actually working. | ||
break;; | ||
* ) | * ) | |
break;; | break;; | |
esac | esac | |
done | done | |
else | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables | else | |
See \`config.log' for more details." >&5 | ac_file='' | |
echo "$as_me: error: C compiler cannot create executables | ||
See \`config.log' for more details." >&2;} | ||
{ (exit 77); exit 77; }; } | ||
fi | fi | |
if test -z "$ac_file"; then : | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
$as_echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error 77 "C compiler cannot create executables | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output | ||
file name" >&5 | ||
$as_echo_n "checking for C compiler default output file name... " >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
$as_echo "$ac_file" >&6; } | ||
ac_exeext=$ac_cv_exeext | ac_exeext=$ac_cv_exeext | |
echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
echo "${ECHO_T}$ac_file" >&6 | ||
# Check the compiler produces executables we can run. If not, either | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
# the compiler is broken, or we cross compile. | ||
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
# If not cross compiling, check that we can run a simple program. | ||
if test "$cross_compiling" != yes; then | ||
if { ac_try='./$ac_file' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
cross_compiling=no | ||
else | ||
if test "$cross_compiling" = maybe; then | ||
cross_compiling=yes | ||
else | ||
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
If you meant to cross compile, use \`--host'. | ||
See \`config.log' for more details." >&5 | ||
echo "$as_me: error: cannot run C compiled programs. | ||
If you meant to cross compile, use \`--host'. | ||
See \`config.log' for more details." >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | ||
fi | ||
fi | ||
echo "$as_me:$LINENO: result: yes" >&5 | ||
echo "${ECHO_T}yes" >&6 | ||
rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
ac_clean_files=$ac_clean_files_save | ac_clean_files=$ac_clean_files_save | |
# Check the compiler produces executables we can run. If not, either | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
# the compiler is broken, or we cross compile. | $as_echo_n "checking for suffix of executables... " >&6; } | |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | if { { ac_try="$ac_link" | |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | case "(($ac_try" in | |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
echo "${ECHO_T}$cross_compiling" >&6 | *) ac_try_echo=$ac_try;; | |
esac | ||
echo "$as_me:$LINENO: checking for suffix of executables" >&5 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | $as_echo "$ac_try_echo"; } >&5 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | (eval "$ac_link") 2>&5 | |
(eval $ac_link) 2>&5 | ||
ac_status=$? | ac_status=$? | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
(exit $ac_status); }; then | test $ac_status = 0; }; then : | |
# If both `conftest.exe' and `conftest' are `present' (well, observable) | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
# work properly (i.e., refer to `conftest.exe'), while it won't with | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
# `rm'. | # `rm'. | |
for ac_file in conftest.exe conftest conftest.*; do | for ac_file in conftest.exe conftest conftest.*; do | |
test -f "$ac_file" || continue | test -f "$ac_file" || continue | |
case $ac_file in | case $ac_file in | |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *. obj ) ;; | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
export ac_cv_exeext | break;; | |
break;; | ||
* ) break;; | * ) break;; | |
esac | esac | |
done | done | |
else | else | |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
compile and link | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
See \`config.log' for more details." >&5 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and li | See \`config.log' for more details" "$LINENO" 5; } | |
nk | fi | |
See \`config.log' for more details." >&2;} | rm -f conftest conftest$ac_cv_exeext | |
{ (exit 1); exit 1; }; } | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
fi | $as_echo "$ac_cv_exeext" >&6; } | |
rm -f conftest$ac_cv_exeext | ||
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
rm -f conftest.$ac_ext | rm -f conftest.$ac_ext | |
EXEEXT=$ac_cv_exeext | EXEEXT=$ac_cv_exeext | |
ac_exeext=$EXEEXT | ac_exeext=$EXEEXT | |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | /* end confdefs.h. */ | |
if test "${ac_cv_objext+set}" = set; then | #include <stdio.h> | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | int | |
else | main () | |
cat >conftest.$ac_ext <<_ACEOF | { | |
#line $LINENO "configure" | FILE *f = fopen ("conftest.out", "w"); | |
/* confdefs.h. */ | return ferror (f) || fclose (f) != 0; | |
; | ||
return 0; | ||
} | ||
_ACEOF | _ACEOF | |
cat confdefs.h >>conftest.$ac_ext | ac_clean_files="$ac_clean_files conftest.out" | |
cat >>conftest.$ac_ext <<_ACEOF | # Check that the compiler produces executables we can run. If not, either | |
# the compiler is broken, or we cross compile. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling | ||
" >&5 | ||
$as_echo_n "checking whether we are cross compiling... " >&6; } | ||
if test "$cross_compiling" != yes; then | ||
{ { ac_try="$ac_link" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_link") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
if { ac_try='./conftest$ac_cv_exeext' | ||
{ { case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_try") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; }; then | ||
cross_compiling=no | ||
else | ||
if test "$cross_compiling" = maybe; then | ||
cross_compiling=yes | ||
else | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "cannot run C compiled programs. | ||
If you meant to cross compile, use \`--host'. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
$as_echo "$cross_compiling" >&6; } | ||
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
ac_clean_files=$ac_clean_files_save | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >& | ||
5 | ||
$as_echo_n "checking for suffix of object files... " >&6; } | ||
if ${ac_cv_objext+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.o conftest.obj | rm -f conftest.o conftest.obj | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | if { { ac_try="$ac_compile" | |
(eval $ac_compile) 2>&5 | case "(($ac_try" in | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compile") 2>&5 | ||
ac_status=$? | ac_status=$? | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
(exit $ac_status); }; then | test $ac_status = 0; }; then : | |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | for ac_file in conftest.o conftest.obj conftest.*; do | |
test -f "$ac_file" || continue; | ||
case $ac_file in | case $ac_file in | |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
break;; | break;; | |
esac | esac | |
done | done | |
else | else | |
echo "$as_me: failed program was:" >&5 | $as_echo "$as_me: failed program was:" >&5 | |
sed 's/^/| /' conftest.$ac_ext >&5 | sed 's/^/| /' conftest.$ac_ext >&5 | |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot c | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
ompile | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
See \`config.log' for more details." >&5 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
echo "$as_me: error: cannot compute suffix of object files: cannot compile | See \`config.log' for more details" "$LINENO" 5; } | |
See \`config.log' for more details." >&2;} | ||
{ (exit 1); exit 1; }; } | ||
fi | fi | |
rm -f conftest.$ac_cv_objext conftest.$ac_ext | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
fi | fi | |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
echo "${ECHO_T}$ac_cv_objext" >&6 | $as_echo "$ac_cv_objext" >&6; } | |
OBJEXT=$ac_cv_objext | OBJEXT=$ac_cv_objext | |
ac_objext=$OBJEXT | ac_objext=$OBJEXT | |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C | |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | compiler" >&5 | |
if test "${ac_cv_c_compiler_gnu+set}" = set; then | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
else | $as_echo_n "(cached) " >&6 | |
cat >conftest.$ac_ext <<_ACEOF | else | |
#line $LINENO "configure" | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
#ifndef __GNUC__ | #ifndef __GNUC__ | |
choke me | choke me | |
#endif | #endif | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | if ac_fn_c_try_compile "$LINENO"; then : | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
(eval $ac_compile) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && | ||
{ ac_try='test -s conftest.$ac_objext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
ac_compiler_gnu=yes | ac_compiler_gnu=yes | |
else | else | |
echo "$as_me: failed program was:" >&5 | ac_compiler_gnu=no | |
sed 's/^/| /' conftest.$ac_ext >&5 | ||
ac_compiler_gnu=no | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ac_cv_c_compiler_gnu=$ac_compiler_gnu | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
fi | fi | |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
GCC=`test $ac_compiler_gnu = yes && echo yes` | if test $ac_compiler_gnu = yes; then | |
GCC=yes | ||
else | ||
GCC= | ||
fi | ||
ac_test_CFLAGS=${CFLAGS+set} | ac_test_CFLAGS=${CFLAGS+set} | |
ac_save_CFLAGS=$CFLAGS | ac_save_CFLAGS=$CFLAGS | |
CFLAGS="-g" | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | if ${ac_cv_prog_cc_g+:} false; then : | |
if test "${ac_cv_prog_cc_g+set}" = set; then | $as_echo_n "(cached) " >&6 | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | else | |
else | ac_save_c_werror_flag=$ac_c_werror_flag | |
cat >conftest.$ac_ext <<_ACEOF | ac_c_werror_flag=yes | |
#line $LINENO "configure" | ac_cv_prog_cc_g=no | |
/* confdefs.h. */ | CFLAGS="-g" | |
_ACEOF | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | if ac_fn_c_try_compile "$LINENO"; then : | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
(eval $ac_compile) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && | ||
{ ac_try='test -s conftest.$ac_objext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
ac_cv_prog_cc_g=yes | ac_cv_prog_cc_g=yes | |
else | else | |
echo "$as_me: failed program was:" >&5 | CFLAGS="" | |
sed 's/^/| /' conftest.$ac_ext >&5 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | ||
ac_cv_prog_cc_g=no | int | |
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
else | ||
ac_c_werror_flag=$ac_save_c_werror_flag | ||
CFLAGS="-g" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_prog_cc_g=yes | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fi | fi | |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ac_c_werror_flag=$ac_save_c_werror_flag | |
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
$as_echo "$ac_cv_prog_cc_g" >&6; } | ||
if test "$ac_test_CFLAGS" = set; then | if test "$ac_test_CFLAGS" = set; then | |
CFLAGS=$ac_save_CFLAGS | CFLAGS=$ac_save_CFLAGS | |
elif test $ac_cv_prog_cc_g = yes; then | elif test $ac_cv_prog_cc_g = yes; then | |
if test "$GCC" = yes; then | if test "$GCC" = yes; then | |
CFLAGS="-g -O2" | CFLAGS="-g -O2" | |
else | else | |
CFLAGS="-g" | CFLAGS="-g" | |
fi | fi | |
else | else | |
if test "$GCC" = yes; then | if test "$GCC" = yes; then | |
CFLAGS="-O2" | CFLAGS="-O2" | |
else | else | |
CFLAGS= | CFLAGS= | |
fi | fi | |
fi | fi | |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C | |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 89" >&5 | |
if test "${ac_cv_prog_cc_stdc+set}" = set; then | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | if ${ac_cv_prog_cc_c89+:} false; then : | |
$as_echo_n "(cached) " >&6 | ||
else | else | |
ac_cv_prog_cc_stdc=no | ac_cv_prog_cc_c89=no | |
ac_save_CC=$CC | ac_save_CC=$CC | |
cat >conftest.$ac_ext <<_ACEOF | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
#line $LINENO "configure" | ||
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
#include <stdarg.h> | #include <stdarg.h> | |
#include <stdio.h> | #include <stdio.h> | |
#include <sys/types.h> | struct stat; | |
#include <sys/stat.h> | ||
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
struct buf { int x; }; | struct buf { int x; }; | |
FILE * (*rcsopen) (struct buf *, struct stat *, int); | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
static char *e (p, i) | static char *e (p, i) | |
char **p; | char **p; | |
int i; | int i; | |
{ | { | |
return p[i]; | return p[i]; | |
} | } | |
static char *f (char * (*g) (char **, int), char **p, ...) | static char *f (char * (*g) (char **, int), char **p, ...) | |
{ | { | |
char *s; | char *s; | |
va_list v; | va_list v; | |
va_start (v,p); | va_start (v,p); | |
s = g (p, va_arg (v,int)); | s = g (p, va_arg (v,int)); | |
va_end (v); | va_end (v); | |
return s; | return s; | |
} | } | |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
function prototypes and stuff, but not '\xHH' hex character constants. | ||
These don't provoke an error unfortunately, instead are silently treated | ||
as 'x'. The following induces an error, until -std is added to get | ||
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
array size at least. It's necessary to write '\x00'==0 to get something | ||
that's true only with -std. */ | ||
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
inside strings and character constants. */ | ||
#define FOO(x) 'x' | ||
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
int test (int i, double x); | int test (int i, double x); | |
struct s1 {int (*f) (int a);}; | struct s1 {int (*f) (int a);}; | |
struct s2 {int (*f) (double a);}; | struct s2 {int (*f) (double a);}; | |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt); | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt); | |
int argc; | int argc; | |
char **argv; | char **argv; | |
int | int | |
main () | main () | |
{ | { | |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
# Don't try gcc -ansi; that turns off useful extensions and | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
# breaks some systems' header files. | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
# AIX -qlanglvl=ansi | ||
# Ultrix and OSF/1 -std1 | ||
# HP-UX 10.20 and later -Ae | ||
# HP-UX older versions -Aa -D_HPUX_SOURCE | ||
# SVR4 -Xc -D__EXTENSIONS__ | ||
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO | ||
NS__" | ||
do | do | |
CC="$ac_save_CC $ac_arg" | CC="$ac_save_CC $ac_arg" | |
rm -f conftest.$ac_objext | if ac_fn_c_try_compile "$LINENO"; then : | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ac_cv_prog_cc_c89=$ac_arg | |
(eval $ac_compile) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && | ||
{ ac_try='test -s conftest.$ac_objext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
ac_cv_prog_cc_stdc=$ac_arg | ||
break | ||
else | ||
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
fi | fi | |
rm -f conftest.$ac_objext | rm -f core conftest.err conftest.$ac_objext | |
test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
done | done | |
rm -f conftest.$ac_ext conftest.$ac_objext | rm -f conftest.$ac_ext | |
CC=$ac_save_CC | CC=$ac_save_CC | |
fi | fi | |
# AC_CACHE_VAL | ||
case "x$ac_cv_prog_cc_stdc" in | case "x$ac_cv_prog_cc_c89" in | |
x|xno) | x) | |
echo "$as_me:$LINENO: result: none needed" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
echo "${ECHO_T}none needed" >&6 ;; | $as_echo "none needed" >&6; } ;; | |
xno) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
$as_echo "unsupported" >&6; } ;; | ||
*) | *) | |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | CC="$CC $ac_cv_prog_cc_c89" | |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
CC="$CC $ac_cv_prog_cc_stdc" ;; | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
esac | esac | |
if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
# Some people use a C++ compiler to compile C. Since we use `exit', | fi | |
# in C++ we need to declare it. In case someone uses the same compiler | ||
# for both compiling C and C++ we need to have the C++ compiler decide | ac_ext=c | |
# the declaration of exit, since it's the most demanding environment. | ac_cpp='$CPP $CPPFLAGS' | |
cat >conftest.$ac_ext <<_ACEOF | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
#ifndef __cplusplus | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
choke me | LIBS >&5' | |
#endif | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
_ACEOF | ||
rm -f conftest.$ac_objext | ac_ext=c | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ac_cpp='$CPP $CPPFLAGS' | |
(eval $ac_compile) 2>&5 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_status=$? | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | LIBS >&5' | |
(exit $ac_status); } && | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
{ ac_try='test -s conftest.$ac_objext' | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | -o together" >&5 | |
(eval $ac_try) 2>&5 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
ac_status=$? | if ${am_cv_prog_cc_c_o+:} false; then : | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | $as_echo_n "(cached) " >&6 | |
(exit $ac_status); }; }; then | else | |
for ac_declaration in \ | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
''\ | ||
'#include <stdlib.h>' \ | ||
'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
'extern "C" void std::exit (int); using std::exit;' \ | ||
'extern "C" void exit (int) throw ();' \ | ||
'extern "C" void exit (int);' \ | ||
'void exit (int);' | ||
do | ||
cat >conftest.$ac_ext <<_ACEOF | ||
#line $LINENO "configure" | ||
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
#include <stdlib.h> | ||
$ac_declaration | ||
int | int | |
main () | main () | |
{ | { | |
exit (42); | ||
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | # Make sure it works both with $CC and with simple cc. | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
(eval $ac_compile) 2>&5 | # compilers refuse to overwrite an existing .o file with -o, | |
ac_status=$? | # though they will create one. | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | am_cv_prog_cc_c_o=yes | |
(exit $ac_status); } && | for am_i in 1 2; do | |
{ ac_try='test -s conftest.$ac_objext' | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | >&5 | |
(eval $ac_try) 2>&5 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
ac_status=$? | ac_status=$? | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
(exit $ac_status); }; }; then | (exit $ac_status); } \ | |
: | && test -f conftest2.$ac_objext; then | |
: OK | ||
else | ||
am_cv_prog_cc_c_o=no | ||
break | ||
fi | ||
done | ||
rm -f core conftest* | ||
unset am_i | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | ||
$as_echo "$am_cv_prog_cc_c_o" >&6; } | ||
if test "$am_cv_prog_cc_c_o" != yes; then | ||
# Losing compiler, so override with the script. | ||
# FIXME: It is wrong to rewrite CC. | ||
# But if we don't then we get into trouble of one sort or another. | ||
# A longer-term fix would be to have automake use am__CC in this case, | ||
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
CC="$am_aux_dir/compile $CC" | ||
fi | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
DEPDIR="${am__leading_dot}deps" | ||
ac_config_commands="$ac_config_commands depfiles" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports | ||
the include directive" >&5 | ||
$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >& | ||
6; } | ||
cat > confinc.mk << 'END' | ||
am__doit: | ||
@echo this is the am__doit target >confinc.out | ||
.PHONY: am__doit | ||
END | ||
am__include="#" | ||
am__quote= | ||
# BSD make does it like this. | ||
echo '.include "confinc.mk" # ignored' > confmf.BSD | ||
# Other make implementations (GNU, Solaris 10, AIX) do it like this. | ||
echo 'include confinc.mk # ignored' > confmf.GNU | ||
_am_result=no | ||
for s in GNU BSD; do | ||
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 | ||
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } | ||
case $?:`cat confinc.out 2>/dev/null` in #( | ||
'0:this is the am__doit target') : | ||
case $s in #( | ||
BSD) : | ||
am__include='.include' am__quote='"' ;; #( | ||
*) : | ||
am__include='include' am__quote='' ;; | ||
esac ;; #( | ||
*) : | ||
;; | ||
esac | ||
if test "$am__include" != "#"; then | ||
_am_result="yes ($s style)" | ||
break | ||
fi | ||
done | ||
rm -f confinc.* confmf.* | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 | ||
$as_echo "${_am_result}" >&6; } | ||
# Check whether --enable-dependency-tracking was given. | ||
if test "${enable_dependency_tracking+set}" = set; then : | ||
enableval=$enable_dependency_tracking; | ||
fi | ||
if test "x$enable_dependency_tracking" != xno; then | ||
am_depcomp="$ac_aux_dir/depcomp" | ||
AMDEPBACKSLASH='\' | ||
am__nodep='_no' | ||
fi | ||
if test "x$enable_dependency_tracking" != xno; then | ||
AMDEP_TRUE= | ||
AMDEP_FALSE='#' | ||
else | ||
AMDEP_TRUE='#' | ||
AMDEP_FALSE= | ||
fi | ||
depcc="$CC" am_compiler_list= | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& | ||
5 | ||
$as_echo_n "checking dependency style of $depcc... " >&6; } | ||
if ${am_cv_CC_dependencies_compiler_type+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
# We make a subdir and do the tests there. Otherwise we can end up | ||
# making bogus files that we don't know about and never remove. For | ||
# instance it was reported that on HP-UX the gcc test will end up | ||
# making a dummy file named 'D' -- because '-MD' means "put the output | ||
# in D". | ||
rm -rf conftest.dir | ||
mkdir conftest.dir | ||
# Copy depcomp to subdir because otherwise we won't find it if we're | ||
# using a relative directory. | ||
cp "$am_depcomp" conftest.dir | ||
cd conftest.dir | ||
# We will build objects and dependencies in a subdirectory because | ||
# it helps to detect inapplicable dependency modes. For instance | ||
# both Tru64's cc and ICC support -MD to output dependencies as a | ||
# side effect of compilation, but ICC will put the dependencies in | ||
# the current directory while Tru64 will put them in the object | ||
# directory. | ||
mkdir sub | ||
am_cv_CC_dependencies_compiler_type=none | ||
if test "$am_compiler_list" = ""; then | ||
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
fi | ||
am__universal=false | ||
case " $depcc " in #( | ||
*\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
esac | ||
for depmode in $am_compiler_list; do | ||
# Setup a source with many dependencies, because some compilers | ||
# like to wrap large dependency lists on column 80 (with \), and | ||
# we should not choose a depcomp mode which is confused by this. | ||
# | ||
# We need to recreate these files for each test, as the compiler may | ||
# overwrite some of them when testing with obscure command lines. | ||
# This happens at least with the AIX C compiler. | ||
: > sub/conftest.c | ||
for i in 1 2 3 4 5 6; do | ||
echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | ||
# Solaris 10 /bin/sh. | ||
echo '/* dummy */' > sub/conftst$i.h | ||
done | ||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
# We check with '-c' and '-o' for the sake of the "dashmstdout" | ||
# mode. It turns out that the SunPro C++ compiler does not properly | ||
# handle '-M -o', and we need to detect this. Also, some Intel | ||
# versions had trouble with output in subdirs. | ||
am__obj=sub/conftest.${OBJEXT-o} | ||
am__minus_obj="-o $am__obj" | ||
case $depmode in | ||
gcc) | ||
# This depmode causes a compiler race in universal mode. | ||
test "$am__universal" = false || continue | ||
;; | ||
nosideeffect) | ||
# After this tag, mechanisms are not by side-effect, so they'll | ||
# only be used when explicitly requested. | ||
if test "x$enable_dependency_tracking" = xyes; then | ||
continue | ||
else | ||
break | ||
fi | ||
;; | ||
msvc7 | msvc7msys | msvisualcpp | msvcmsys) | ||
# This compiler won't grok '-c -o', but also, the minuso test has | ||
# not run yet. These depmodes are late enough in the game, and | ||
# so weak that their functioning should not be impacted. | ||
am__obj=conftest.${OBJEXT-o} | ||
am__minus_obj= | ||
;; | ||
none) break ;; | ||
esac | ||
if depmode=$depmode \ | ||
source=sub/conftest.c object=$am__obj \ | ||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
>/dev/null 2>conftest.err && | ||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
# icc doesn't choke on unknown options, it will just issue warnings | ||
# or remarks (even with -Werror). So we grep stderr for any message | ||
# that says an option was ignored or not supported. | ||
# When given -MP, icc 7.0 and 7.1 complain thusly: | ||
# icc: Command line warning: ignoring option '-M'; no argument required | ||
# The diagnosis changed in icc 8.0: | ||
# icc: Command line remark: option '-MP' not supported | ||
if (grep 'ignoring option' conftest.err || | ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
am_cv_CC_dependencies_compiler_type=$depmode | ||
break | ||
fi | ||
fi | ||
done | ||
cd .. | ||
rm -rf conftest.dir | ||
else | else | |
echo "$as_me: failed program was:" >&5 | am_cv_CC_dependencies_compiler_type=none | |
sed 's/^/| /' conftest.$ac_ext >&5 | fi | |
continue | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler | |
cat >conftest.$ac_ext <<_ACEOF | _type" >&5 | |
#line $LINENO "configure" | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
/* confdefs.h. */ | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | if | |
cat >>conftest.$ac_ext <<_ACEOF | test "x$enable_dependency_tracking" != xno \ | |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
am__fastdepCC_TRUE= | ||
am__fastdepCC_FALSE='#' | ||
else | ||
am__fastdepCC_TRUE='#' | ||
am__fastdepCC_FALSE= | ||
fi | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam | ||
e with args. | ||
set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_CC"; then | ||
ac_ct_CC=$CC | ||
# Extract the first word of "gcc", so it can be a program name with args. | ||
set dummy gcc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_CC"; then | ||
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_CC="gcc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
if test -n "$ac_ct_CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
$as_echo "$ac_ct_CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_CC" = x; then | ||
CC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
else | ||
CC="$ac_cv_prog_CC" | ||
fi | ||
if test -z "$CC"; then | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program na | ||
me with args. | ||
set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
fi | ||
if test -z "$CC"; then | ||
# Extract the first word of "cc", so it can be a program name with args. | ||
set dummy cc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
ac_prog_rejected=no | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
ac_prog_rejected=yes | ||
continue | ||
fi | ||
ac_cv_prog_CC="cc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
if test $ac_prog_rejected = yes; then | ||
# We found a bogon in the path, so make sure we never use it. | ||
set dummy $ac_cv_prog_CC | ||
shift | ||
if test $# != 0; then | ||
# We chose a different compiler from the bogus one. | ||
# However, it has the same basename, so the bogon will be chosen | ||
# first if we set CC to just the basename; use the full file name. | ||
shift | ||
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
fi | ||
fi | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$CC"; then | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in cl.exe | ||
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | ||
m name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$CC" && break | ||
done | ||
fi | ||
if test -z "$CC"; then | ||
ac_ct_CC=$CC | ||
for ac_prog in cl.exe | ||
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_CC"; then | ||
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_CC="$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
if test -n "$ac_ct_CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
$as_echo "$ac_ct_CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$ac_ct_CC" && break | ||
done | ||
if test "x$ac_ct_CC" = x; then | ||
CC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
fi | ||
fi | ||
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' | ||
:" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "no acceptable C compiler found in \$PATH | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
# Provide some information about the compiler. | ||
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
set X $ac_compile | ||
ac_compiler=$2 | ||
for ac_option in --version -v -V -qversion; do | ||
{ { ac_try="$ac_compiler $ac_option >&5" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | ||
rm -f conftest.er1 conftest.err | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
done | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C | ||
compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
if ${ac_cv_c_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
$ac_declaration | ||
int | int | |
main () | main () | |
{ | { | |
exit (42); | #ifndef __GNUC__ | |
choke me | ||
#endif | ||
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | if ac_fn_c_try_compile "$LINENO"; then : | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ac_compiler_gnu=yes | |
(eval $ac_compile) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && | ||
{ ac_try='test -s conftest.$ac_objext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
break | ||
else | else | |
echo "$as_me: failed program was:" >&5 | ac_compiler_gnu=no | |
sed 's/^/| /' conftest.$ac_ext >&5 | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
done | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
rm -f conftest* | if test $ac_compiler_gnu = yes; then | |
if test -n "$ac_declaration"; then | GCC=yes | |
echo '#ifdef __cplusplus' >>confdefs.h | else | |
echo $ac_declaration >>confdefs.h | GCC= | |
echo '#endif' >>confdefs.h | ||
fi | fi | |
ac_test_CFLAGS=${CFLAGS+set} | ||
ac_save_CFLAGS=$CFLAGS | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
$as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
if ${ac_cv_prog_cc_g+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
ac_save_c_werror_flag=$ac_c_werror_flag | ||
ac_c_werror_flag=yes | ||
ac_cv_prog_cc_g=no | ||
CFLAGS="-g" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_prog_cc_g=yes | ||
else | else | |
echo "$as_me: failed program was:" >&5 | CFLAGS="" | |
sed 's/^/| /' conftest.$ac_ext >&5 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | ||
fi | int | |
rm -f conftest.$ac_objext conftest.$ac_ext | main () | |
ac_ext=c | { | |
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | ; | |
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | return 0; | |
if test "${am_cv_prog_cc_stdc+set}" = set; then | } | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
else | ||
am_cv_prog_cc_stdc=no | ||
ac_save_CC="$CC" | ||
# Don't try gcc -ansi; that turns off useful extensions and | ||
# breaks some systems' header files. | ||
# AIX -qlanglvl=ansi | ||
# Ultrix and OSF/1 -std1 | ||
# HP-UX -Aa -D_HPUX_SOURCE | ||
# SVR4 -Xc -D__EXTENSIONS__ | ||
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__ | ||
" | ||
do | ||
CC="$ac_save_CC $ac_arg" | ||
cat >conftest.$ac_ext <<_ACEOF | ||
#line $LINENO "configure" | ||
/* confdefs.h. */ | ||
_ACEOF | _ACEOF | |
cat confdefs.h >>conftest.$ac_ext | if ac_fn_c_try_compile "$LINENO"; then : | |
cat >>conftest.$ac_ext <<_ACEOF | ||
else | ||
ac_c_werror_flag=$ac_save_c_werror_flag | ||
CFLAGS="-g" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_prog_cc_g=yes | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_c_werror_flag=$ac_save_c_werror_flag | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
$as_echo "$ac_cv_prog_cc_g" >&6; } | ||
if test "$ac_test_CFLAGS" = set; then | ||
CFLAGS=$ac_save_CFLAGS | ||
elif test $ac_cv_prog_cc_g = yes; then | ||
if test "$GCC" = yes; then | ||
CFLAGS="-g -O2" | ||
else | ||
CFLAGS="-g" | ||
fi | ||
else | ||
if test "$GCC" = yes; then | ||
CFLAGS="-O2" | ||
else | ||
CFLAGS= | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C | ||
89" >&5 | ||
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
if ${ac_cv_prog_cc_c89+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
ac_cv_prog_cc_c89=no | ||
ac_save_CC=$CC | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
#include <stdarg.h> | #include <stdarg.h> | |
#include <stdio.h> | #include <stdio.h> | |
#include <sys/types.h> | struct stat; | |
#include <sys/stat.h> | ||
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
struct buf { int x; }; | struct buf { int x; }; | |
FILE * (*rcsopen) (struct buf *, struct stat *, int); | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
static char *e (p, i) | static char *e (p, i) | |
char **p; | char **p; | |
int i; | int i; | |
{ | { | |
return p[i]; | return p[i]; | |
} | } | |
static char *f (char * (*g) (char **, int), char **p, ...) | static char *f (char * (*g) (char **, int), char **p, ...) | |
{ | { | |
char *s; | char *s; | |
va_list v; | va_list v; | |
va_start (v,p); | va_start (v,p); | |
s = g (p, va_arg (v,int)); | s = g (p, va_arg (v,int)); | |
va_end (v); | va_end (v); | |
return s; | return s; | |
} | } | |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
function prototypes and stuff, but not '\xHH' hex character constants. | ||
These don't provoke an error unfortunately, instead are silently treated | ||
as 'x'. The following induces an error, until -std is added to get | ||
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
array size at least. It's necessary to write '\x00'==0 to get something | ||
that's true only with -std. */ | ||
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
inside strings and character constants. */ | ||
#define FOO(x) 'x' | ||
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
int test (int i, double x); | int test (int i, double x); | |
struct s1 {int (*f) (int a);}; | struct s1 {int (*f) (int a);}; | |
struct s2 {int (*f) (double a);}; | struct s2 {int (*f) (double a);}; | |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt); | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt); | |
int argc; | int argc; | |
char **argv; | char **argv; | |
int | int | |
main () | main () | |
{ | { | |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
(eval $ac_compile) 2>&5 | do | |
ac_status=$? | CC="$ac_save_CC $ac_arg" | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | if ac_fn_c_try_compile "$LINENO"; then : | |
(exit $ac_status); } && | ac_cv_prog_cc_c89=$ac_arg | |
{ ac_try='test -s conftest.$ac_objext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
am_cv_prog_cc_stdc="$ac_arg"; break | ||
else | ||
echo "$as_me: failed program was:" >&5 | ||
sed 's/^/| /' conftest.$ac_ext >&5 | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext | |
test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
done | done | |
CC="$ac_save_CC" | rm -f conftest.$ac_ext | |
CC=$ac_save_CC | ||
fi | fi | |
# AC_CACHE_VAL | ||
case "x$ac_cv_prog_cc_c89" in | ||
x) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
$as_echo "none needed" >&6; } ;; | ||
xno) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
$as_echo "unsupported" >&6; } ;; | ||
*) | ||
CC="$CC $ac_cv_prog_cc_c89" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
esac | ||
if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
if test -z "$am_cv_prog_cc_stdc"; then | ||
echo "$as_me:$LINENO: result: none needed" >&5 | ||
echo "${ECHO_T}none needed" >&6 | ||
else | ||
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 | ||
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | ||
fi | fi | |
case "x$am_cv_prog_cc_stdc" in | ||
x|xno) ;; | ||
*) CC="$CC $am_cv_prog_cc_stdc" ;; | ||
esac | ||
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ac_ext=c | |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | ac_cpp='$CPP $CPPFLAGS' | |
if test "${ac_cv_c_const+set}" = set; then | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and | ||
-o together" >&5 | ||
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | ||
if ${am_cv_prog_cc_c_o+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
cat >conftest.$ac_ext <<_ACEOF | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
#line $LINENO "configure" | ||
/* confdefs.h. */ | ||
_ACEOF | ||
cat confdefs.h >>conftest.$ac_ext | ||
cat >>conftest.$ac_ext <<_ACEOF | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
/* FIXME: Include the comments suggested by Paul. */ | ||
#ifndef __cplusplus | ||
/* Ultrix mips cc rejects this. */ | ||
typedef int charset[2]; | ||
const charset x; | ||
/* SunOS 4.1.1 cc rejects this. */ | ||
char const *const *ccp; | ||
char **p; | ||
/* NEC SVR4.0.2 mips cc rejects this. */ | ||
struct point {int x, y;}; | ||
static struct point const zero = {0,0}; | ||
/* AIX XL C 1.02.0.0 rejects this. | ||
It does not let you subtract one const X* pointer from another in | ||
an arm of an if-expression whose if-part is not a constant | ||
expression */ | ||
const char *g = "string"; | ||
ccp = &g + (g ? g-g : 0); | ||
/* HPUX 7.0 cc rejects these. */ | ||
++ccp; | ||
p = (char**) ccp; | ||
ccp = (char const *const *) p; | ||
{ /* SCO 3.2v4 cc rejects this. */ | ||
char *t; | ||
char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
*t++ = 0; | ||
} | ||
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
int x[] = {25, 17}; | ||
const int *foo = &x[0]; | ||
++foo; | ||
} | ||
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
typedef const int *iptr; | ||
iptr p = 0; | ||
++p; | ||
} | ||
{ /* AIX XL C 1.02.0.0 rejects this saying | ||
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
struct s { int j; const int *ap[3]; }; | ||
struct s *b; b->j = 5; | ||
} | ||
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
const int foo = 10; | ||
} | ||
#endif | ||
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext | # Make sure it works both with $CC and with simple cc. | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
(eval $ac_compile) 2>&5 | # compilers refuse to overwrite an existing .o file with -o, | |
ac_status=$? | # though they will create one. | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | am_cv_prog_cc_c_o=yes | |
(exit $ac_status); } && | for am_i in 1 2; do | |
{ ac_try='test -s conftest.$ac_objext' | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | >&5 | |
(eval $ac_try) 2>&5 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
ac_status=$? | ac_status=$? | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
(exit $ac_status); }; }; then | (exit $ac_status); } \ | |
ac_cv_c_const=yes | && test -f conftest2.$ac_objext; then | |
else | : OK | |
echo "$as_me: failed program was:" >&5 | else | |
sed 's/^/| /' conftest.$ac_ext >&5 | am_cv_prog_cc_c_o=no | |
break | ||
ac_cv_c_const=no | fi | |
done | ||
rm -f core conftest* | ||
unset am_i | ||
fi | fi | |
rm -f conftest.$ac_objext conftest.$ac_ext | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
$as_echo "$am_cv_prog_cc_c_o" >&6; } | ||
if test "$am_cv_prog_cc_c_o" != yes; then | ||
# Losing compiler, so override with the script. | ||
# FIXME: It is wrong to rewrite CC. | ||
# But if we don't then we get into trouble of one sort or another. | ||
# A longer-term fix would be to have automake use am__CC in this case, | ||
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
CC="$am_aux_dir/compile $CC" | ||
fi | fi | |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ac_ext=c | |
echo "${ECHO_T}$ac_cv_c_const" >&6 | ac_cpp='$CPP $CPPFLAGS' | |
if test $ac_cv_c_const = no; then | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
cat >>confdefs.h <<\_ACEOF | LIBS >&5' | |
#define const | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
_ACEOF | ||
fi | depcc="$CC" am_compiler_list= | |
# Find a good install program. We prefer a C program (faster), | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& | |
# so one script is as good as another. But avoid the broken or | 5 | |
# incompatible versions: | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
# SysV /etc/install, /usr/sbin/install | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
# SunOS /usr/etc/install | $as_echo_n "(cached) " >&6 | |
# IRIX /sbin/install | else | |
# AIX /bin/install | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
# AmigaOS /C/install, which installs bootblocks on floppy discs | # We make a subdir and do the tests there. Otherwise we can end up | |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | # making bogus files that we don't know about and never remove. For | |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args | # instance it was reported that on HP-UX the gcc test will end up | |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | # making a dummy file named 'D' -- because '-MD' means "put the output | |
# ./install, which can be erroneously created by make from ./install.sh. | # in D". | |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | rm -rf conftest.dir | |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | mkdir conftest.dir | |
if test -z "$INSTALL"; then | # Copy depcomp to subdir because otherwise we won't find it if we're | |
if test "${ac_cv_path_install+set}" = set; then | # using a relative directory. | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | cp "$am_depcomp" conftest.dir | |
else | cd conftest.dir | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | # We will build objects and dependencies in a subdirectory because | |
for as_dir in $PATH | # it helps to detect inapplicable dependency modes. For instance | |
do | # both Tru64's cc and ICC support -MD to output dependencies as a | |
IFS=$as_save_IFS | # side effect of compilation, but ICC will put the dependencies in | |
test -z "$as_dir" && as_dir=. | # the current directory while Tru64 will put them in the object | |
# Account for people who put trailing slashes in PATH elements. | # directory. | |
case $as_dir/ in | mkdir sub | |
./ | .// | /cC/* | \ | ||
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | am_cv_CC_dependencies_compiler_type=none | |
/usr/ucb/* ) ;; | if test "$am_compiler_list" = ""; then | |
*) | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
# OSF1 and SCO ODT 3.0 have their own names for install. | fi | |
# Don't use installbsd from OSF since it installs stuff as root | am__universal=false | |
# by default. | case " $depcc " in #( | |
for ac_prog in ginstall scoinst install; do | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
for ac_exec_ext in '' $ac_executable_extensions; do | esac | |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
if test $ac_prog = install && | for depmode in $am_compiler_list; do | |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | # Setup a source with many dependencies, because some compilers | |
# AIX install. It has an incompatible calling convention. | # like to wrap large dependency lists on column 80 (with \), and | |
: | # we should not choose a depcomp mode which is confused by this. | |
elif test $ac_prog = install && | # | |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | # We need to recreate these files for each test, as the compiler may | |
# program-specific install script used by HP pwplus--don't use. | # overwrite some of them when testing with obscure command lines. | |
: | # This happens at least with the AIX C compiler. | |
else | : > sub/conftest.c | |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | for i in 1 2 3 4 5 6; do | |
break 3 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
fi | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
fi | # Solaris 10 /bin/sh. | |
done | echo '/* dummy */' > sub/conftst$i.h | |
done | done | |
;; | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
esac | ||
done | ||
# We check with '-c' and '-o' for the sake of the "dashmstdout" | ||
# mode. It turns out that the SunPro C++ compiler does not properly | ||
# handle '-M -o', and we need to detect this. Also, some Intel | ||
# versions had trouble with output in subdirs. | ||
am__obj=sub/conftest.${OBJEXT-o} | ||
am__minus_obj="-o $am__obj" | ||
case $depmode in | ||
gcc) | ||
# This depmode causes a compiler race in universal mode. | ||
test "$am__universal" = false || continue | ||
;; | ||
nosideeffect) | ||
# After this tag, mechanisms are not by side-effect, so they'll | ||
# only be used when explicitly requested. | ||
if test "x$enable_dependency_tracking" = xyes; then | ||
continue | ||
else | ||
break | ||
fi | ||
;; | ||
msvc7 | msvc7msys | msvisualcpp | msvcmsys) | ||
# This compiler won't grok '-c -o', but also, the minuso test has | ||
# not run yet. These depmodes are late enough in the game, and | ||
# so weak that their functioning should not be impacted. | ||
am__obj=conftest.${OBJEXT-o} | ||
am__minus_obj= | ||
;; | ||
none) break ;; | ||
esac | ||
if depmode=$depmode \ | ||
source=sub/conftest.c object=$am__obj \ | ||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
>/dev/null 2>conftest.err && | ||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
# icc doesn't choke on unknown options, it will just issue warnings | ||
# or remarks (even with -Werror). So we grep stderr for any message | ||
# that says an option was ignored or not supported. | ||
# When given -MP, icc 7.0 and 7.1 complain thusly: | ||
# icc: Command line warning: ignoring option '-M'; no argument required | ||
# The diagnosis changed in icc 8.0: | ||
# icc: Command line remark: option '-MP' not supported | ||
if (grep 'ignoring option' conftest.err || | ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
am_cv_CC_dependencies_compiler_type=$depmode | ||
break | ||
fi | ||
fi | ||
done | ||
cd .. | ||
rm -rf conftest.dir | ||
else | ||
am_cv_CC_dependencies_compiler_type=none | ||
fi | fi | |
if test "${ac_cv_path_install+set}" = set; then | ||
INSTALL=$ac_cv_path_install | ||
else | ||
# As a last resort, use the slow shell script. We don't cache a | ||
# path for INSTALL within a source directory, because that will | ||
# break other packages using the cache if that directory is | ||
# removed, or if the path is relative. | ||
INSTALL=$ac_install_sh | ||
fi | ||
fi | ||
echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
echo "${ECHO_T}$INSTALL" >&6 | ||
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | fi | |
# It thinks the first close brace ends the variable substitution. | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler | |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | _type" >&5 | |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | if | |
test "x$enable_dependency_tracking" != xno \ | ||
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
am__fastdepCC_TRUE= | ||
am__fastdepCC_FALSE='#' | ||
else | ||
am__fastdepCC_TRUE='#' | ||
am__fastdepCC_FALSE= | ||
fi | ||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M | |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | AKE)" >&5 | |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | set x ${MAKE-make} | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
cat >conftest.make <<\_ACEOF | cat >conftest.make <<\_ACEOF | |
SHELL = /bin/sh | ||
all: | all: | |
@echo 'ac_maketemp="$(MAKE)"' | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
_ACEOF | _ACEOF | |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
if test -n "$ac_maketemp"; then | *@@@%%%=?*=@@@%%%*) | |
eval ac_cv_prog_make_${ac_make}_set=yes | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
else | *) | |
eval ac_cv_prog_make_${ac_make}_set=no | eval ac_cv_prog_make_${ac_make}_set=no;; | |
fi | esac | |
rm -f conftest.make | rm -f conftest.make | |
fi | fi | |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
echo "$as_me:$LINENO: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
echo "${ECHO_T}yes" >&6 | $as_echo "yes" >&6; } | |
SET_MAKE= | SET_MAKE= | |
else | else | |
echo "$as_me:$LINENO: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}no" >&6 | $as_echo "no" >&6; } | |
SET_MAKE="MAKE=${MAKE-make}" | SET_MAKE="MAKE=${MAKE-make}" | |
fi | fi | |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-s | |
Makefiles" >&5 | pecific portions of Makefiles" >&5 | |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefil | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles | |
es... $ECHO_C" >&6 | ... " >&6; } | |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was gi | # Check whether --enable-maintainer-mode was given. | |
ven. | if test "${enable_maintainer_mode+set}" = set; then : | |
if test "${enable_maintainer_mode+set}" = set; then | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
enableval="$enable_maintainer_mode" | ||
USE_MAINTAINER_MODE=$enableval | ||
else | else | |
USE_MAINTAINER_MODE=no | USE_MAINTAINER_MODE=no | |
fi; | fi | |
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | ||
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | ||
if test $USE_MAINTAINER_MODE = yes; then | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
$as_echo "$USE_MAINTAINER_MODE" >&6; } | ||
if test $USE_MAINTAINER_MODE = yes; then | ||
MAINTAINER_MODE_TRUE= | MAINTAINER_MODE_TRUE= | |
MAINTAINER_MODE_FALSE='#' | MAINTAINER_MODE_FALSE='#' | |
else | else | |
MAINTAINER_MODE_TRUE='#' | MAINTAINER_MODE_TRUE='#' | |
MAINTAINER_MODE_FALSE= | MAINTAINER_MODE_FALSE= | |
fi | fi | |
MAINT=$MAINTAINER_MODE_TRUE | MAINT=$MAINTAINER_MODE_TRUE | |
# Check whether --with-giblib-prefix or --without-giblib-prefix was given. | # Checks for libraries. | |
if test "${with_giblib_prefix+set}" = set; then | ||
withval="$with_giblib_prefix" | ||
giblib_config_prefix="$withval" | ||
else | ||
giblib_config_prefix="" | ||
fi; | ||
# Check whether --with-giblib-exec-prefix or --without-giblib-exec-prefix was gi | ||
ven. | ||
if test "${with_giblib_exec_prefix+set}" = set; then | ||
withval="$with_giblib_exec_prefix" | ||
giblib_config_exec_prefix="$withval" | ||
else | ||
giblib_config_exec_prefix="" | ||
fi; | ||
if test x$giblib_config_exec_prefix != x ; then | ||
giblib_config_args="$giblib_config_args --exec-prefix=$giblib_config_exec_p | ||
refix" | ||
if test x${GIBLIB_CONFIG+set} != xset ; then | ||
GIBLIB_CONFIG=$giblib_config_exec_prefix/bin/giblib-config | ||
fi | ||
fi | ||
if test x$giblib_config_prefix != x ; then | ||
giblib_config_args="$giblib_config_args --prefix=$giblib_config_prefix" | ||
if test x${GIBLIB_CONFIG+set} != xset ; then | ||
GIBLIB_CONFIG=$giblib_config_prefix/bin/giblib-config | ||
fi | ||
fi | ||
# Extract the first word of "giblib-config", so it can be a program name with | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
args. | if test -n "$ac_tool_prefix"; then | |
set dummy giblib-config; ac_word=$2 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a prog | |
echo "$as_me:$LINENO: checking for $ac_word" >&5 | ram name with args. | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
if test "${ac_cv_path_GIBLIB_CONFIG+set}" = set; then | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
case $GIBLIB_CONFIG in | case $PKG_CONFIG in | |
[\\/]* | ?:[\\/]*) | [\\/]* | ?:[\\/]*) | |
ac_cv_path_GIBLIB_CONFIG="$GIBLIB_CONFIG" # Let the user override the test wit h a path. | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a pa th. | |
;; | ;; | |
*) | *) | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_path_GIBLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | |
&5 | ||
break 2 | break 2 | |
fi | fi | |
done | done | |
done | ||
IFS=$as_save_IFS | ||
;; | ||
esac | ||
fi | ||
PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
if test -n "$PKG_CONFIG"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
$as_echo "$PKG_CONFIG" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
# Extract the first word of "pkg-config", so it can be a program name with arg | ||
s. | ||
set dummy pkg-config; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
case $ac_pt_PKG_CONFIG in | ||
[\\/]* | ?:[\\/]*) | ||
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the te | ||
st with a path. | ||
;; | ||
*) | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | done | |
done | ||
IFS=$as_save_IFS | ||
test -z "$ac_cv_path_GIBLIB_CONFIG" && ac_cv_path_GIBLIB_CONFIG="no" | ||
;; | ;; | |
esac | esac | |
fi | fi | |
GIBLIB_CONFIG=$ac_cv_path_GIBLIB_CONFIG | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
if test -n "$ac_pt_PKG_CONFIG"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
$as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_pt_PKG_CONFIG" = x; then | ||
PKG_CONFIG="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
fi | ||
else | ||
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
fi | ||
fi | ||
if test -n "$PKG_CONFIG"; then | ||
_pkg_min_version=0.9.0 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least | ||
version $_pkg_min_version" >&5 | ||
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; | ||
} | ||
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
PKG_CONFIG="" | ||
fi | ||
fi | ||
pkg_failed=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 | ||
$as_echo_n "checking for x11... " >&6; } | ||
if test -n "$X11_CFLAGS"; then | ||
pkg_cv_X11_CFLAGS="$X11_CFLAGS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"x11\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "x11") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$X11_LIBS"; then | ||
pkg_cv_X11_LIBS="$X11_LIBS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"x11\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "x11") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$GIBLIB_CONFIG"; then | if test $pkg_failed = yes; then | |
echo "$as_me:$LINENO: result: $GIBLIB_CONFIG" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
echo "${ECHO_T}$GIBLIB_CONFIG" >&6 | $as_echo "no" >&6; } | |
else | ||
echo "$as_me:$LINENO: result: no" >&5 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
echo "${ECHO_T}no" >&6 | _pkg_short_errors_supported=yes | |
fi | else | |
_pkg_short_errors_supported=no | ||
echo "$as_me:$LINENO: checking for giblib - version >= 1.2.3" >&5 | fi | |
echo $ECHO_N "checking for giblib - version >= 1.2.3... $ECHO_C" >&6 | if test $_pkg_short_errors_supported = yes; then | |
X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflag | ||
no_giblib="" | s --libs "x11" 2>&1` | |
if test "$GIBLIB_CONFIG" = "no" ; then | else | |
no_giblib=yes | X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" | |
else | 2>&1` | |
GIBLIB_CFLAGS="`$GIBLIB_CONFIG $giblib_config_args --cflags`" | ||
GIBLIB_LIBS="`$GIBLIB_CONFIG $giblib_config_args --libs`" | ||
giblib_config_major_version=`$GIBLIB_CONFIG $giblib_config_args \ | ||
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
giblib_config_minor_version=`$GIBLIB_CONFIG $giblib_config_args \ | ||
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
giblib_config_micro_version=`$GIBLIB_CONFIG $giblib_config_args \ | ||
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
giblib_wanted_major_version="1" | ||
giblib_wanted_minor_version="2" | ||
giblib_wanted_micro_version="3" | ||
# Compare wanted version to what config script returned. | ||
# If I knew what library was being run, i'd probably also compile | ||
# a test program at this point (which also extracted and tested | ||
# the version in some library-specific way) | ||
if test "$giblib_config_major_version" -lt \ | ||
"$giblib_wanted_major_version" \ | ||
-o \( "$giblib_config_major_version" -eq \ | ||
"$giblib_wanted_major_version" \ | ||
-a "$giblib_config_minor_version" -lt \ | ||
"$giblib_wanted_minor_version" \) \ | ||
-o \( "$giblib_config_major_version" -eq \ | ||
"$giblib_wanted_major_version" \ | ||
-a "$giblib_config_minor_version" -eq \ | ||
"$giblib_wanted_minor_version" \ | ||
-a "$giblib_config_micro_version" -lt \ | ||
"$giblib_wanted_micro_version" \) ; then | ||
# older version found | ||
no_giblib=yes | ||
echo -n "*** An old version of giblib " | ||
echo -n "($giblib_config_major_version" | ||
echo -n ".$giblib_config_minor_version" | ||
echo ".$giblib_config_micro_version) was found." | ||
echo -n "*** You need a version of giblib newer than " | ||
echo -n "$giblib_wanted_major_version" | ||
echo -n ".$giblib_wanted_minor_version" | ||
echo ".$giblib_wanted_micro_version." | ||
echo "***" | ||
echo "*** If you have already installed a sufficiently new version, th | ||
is error" | ||
echo "*** probably means that the wrong copy of the giblib-config shel | ||
l script is" | ||
echo "*** being found. The easiest way to fix this is to remove the ol | ||
d version" | ||
echo "*** of giblib, but you can also set the GIBLIB_CONFIG environmen | ||
t to point to the" | ||
echo "*** correct copy of giblib-config. (In this case, you will have | ||
to" | ||
echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /e | ||
tc/ld.so.conf" | ||
echo "*** so that the correct libraries are found at run-time)" | ||
fi | fi | |
# Put the nasty error message in config.log where it belongs | ||
echo "$X11_PKG_ERRORS" >&5 | ||
fi | as_fn_error $? "Package requirements (x11) were not met: | |
if test "x$no_giblib" = x ; then | ||
echo "$as_me:$LINENO: result: yes" >&5 | ||
echo "${ECHO_T}yes" >&6 | ||
else | $X11_PKG_ERRORS | |
echo "$as_me:$LINENO: result: no" >&5 | ||
echo "${ECHO_T}no" >&6 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
if test "$GIBLIB_CONFIG" = "no" ; then | installed software in a non-standard prefix. | |
echo "*** The giblib-config script installed by giblib could not be found | ||
" | Alternatively, you may set the environment variables X11_CFLAGS | |
echo "*** If giblib was installed in PREFIX, make sure PREFIX/bin is in" | and X11_LIBS to avoid the need to call pkg-config. | |
echo "*** your path, or set the GIBLIB_CONFIG environment variable to the | See the pkg-config man page for more details." "$LINENO" 5 | |
" | elif test $pkg_failed = untried; then | |
echo "*** full path to giblib-config." | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
fi | $as_echo "no" >&6; } | |
GIBLIB_CFLAGS="" | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
GIBLIB_LIBS="" | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
{ { echo "$as_me:$LINENO: error: Cannot find giblib: Is giblib-config in th | as_fn_error $? "The pkg-config script could not be found or is too old. Make su | |
e path?" >&5 | re it | |
echo "$as_me: error: Cannot find giblib: Is giblib-config in the path?" >&2;} | is in your PATH or set the PKG_CONFIG environment variable to the full | |
{ (exit 1); exit 1; }; } | path to pkg-config. | |
fi | ||
Alternatively, you may set the environment variables X11_CFLAGS | ||
LIBS="$LIBS -lm" | and X11_LIBS to avoid the need to call pkg-config. | |
GIBLIB_LIBS=`giblib-config --libs` | See the pkg-config man page for more details. | |
GIBLIB_CFLAGS=`giblib-config --cflags` | ||
To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
echo "$as_me:$LINENO: checking for getopt_long" >&5 | See \`config.log' for more details" "$LINENO" 5; } | |
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6 | else | |
if test "${ac_cv_func_getopt_long+set}" = set; then | X11_CFLAGS=$pkg_cv_X11_CFLAGS | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | X11_LIBS=$pkg_cv_X11_LIBS | |
else | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
cat >conftest.$ac_ext <<_ACEOF | $as_echo "yes" >&6; } | |
#line $LINENO "configure" | ||
/* confdefs.h. */ | fi | |
pkg_failed=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcomposite" >&5 | ||
$as_echo_n "checking for xcomposite... " >&6; } | ||
if test -n "$XCOMPOSITE_CFLAGS"; then | ||
pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xcomposite\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$XCOMPOSITE_LIBS"; then | ||
pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xcomposite\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test $pkg_failed = yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
_pkg_short_errors_supported=yes | ||
else | ||
_pkg_short_errors_supported=no | ||
fi | ||
if test $_pkg_short_errors_supported = yes; then | ||
XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors | ||
--cflags --libs "xcomposite" 2>&1` | ||
else | ||
XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs | ||
"xcomposite" 2>&1` | ||
fi | ||
# Put the nasty error message in config.log where it belongs | ||
echo "$XCOMPOSITE_PKG_ERRORS" >&5 | ||
as_fn_error $? "Package requirements (xcomposite) were not met: | ||
$XCOMPOSITE_PKG_ERRORS | ||
Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
installed software in a non-standard prefix. | ||
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS | ||
and XCOMPOSITE_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details." "$LINENO" 5 | ||
elif test $pkg_failed = untried; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "The pkg-config script could not be found or is too old. Make su | ||
re it | ||
is in your PATH or set the PKG_CONFIG environment variable to the full | ||
path to pkg-config. | ||
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS | ||
and XCOMPOSITE_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details. | ||
To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS | ||
XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
pkg_failed=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xext" >&5 | ||
$as_echo_n "checking for xext... " >&6; } | ||
if test -n "$XEXT_CFLAGS"; then | ||
pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xext\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xext") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$XEXT_LIBS"; then | ||
pkg_cv_XEXT_LIBS="$XEXT_LIBS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xext\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xext") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test $pkg_failed = yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
_pkg_short_errors_supported=yes | ||
else | ||
_pkg_short_errors_supported=no | ||
fi | ||
if test $_pkg_short_errors_supported = yes; then | ||
XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cfla | ||
gs --libs "xext" 2>&1` | ||
else | ||
XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext | ||
" 2>&1` | ||
fi | ||
# Put the nasty error message in config.log where it belongs | ||
echo "$XEXT_PKG_ERRORS" >&5 | ||
as_fn_error $? "Package requirements (xext) were not met: | ||
$XEXT_PKG_ERRORS | ||
Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
installed software in a non-standard prefix. | ||
Alternatively, you may set the environment variables XEXT_CFLAGS | ||
and XEXT_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details." "$LINENO" 5 | ||
elif test $pkg_failed = untried; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "The pkg-config script could not be found or is too old. Make su | ||
re it | ||
is in your PATH or set the PKG_CONFIG environment variable to the full | ||
path to pkg-config. | ||
Alternatively, you may set the environment variables XEXT_CFLAGS | ||
and XEXT_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details. | ||
To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS | ||
XEXT_LIBS=$pkg_cv_XEXT_LIBS | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
pkg_failed=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xfixes" >&5 | ||
$as_echo_n "checking for xfixes... " >&6; } | ||
if test -n "$XFIXES_CFLAGS"; then | ||
pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xfixes\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$XFIXES_LIBS"; then | ||
pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"xfixes\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test $pkg_failed = yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
_pkg_short_errors_supported=yes | ||
else | ||
_pkg_short_errors_supported=no | ||
fi | ||
if test $_pkg_short_errors_supported = yes; then | ||
XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cf | ||
lags --libs "xfixes" 2>&1` | ||
else | ||
XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf | ||
ixes" 2>&1` | ||
fi | ||
# Put the nasty error message in config.log where it belongs | ||
echo "$XFIXES_PKG_ERRORS" >&5 | ||
as_fn_error $? "Package requirements (xfixes) were not met: | ||
$XFIXES_PKG_ERRORS | ||
Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
installed software in a non-standard prefix. | ||
Alternatively, you may set the environment variables XFIXES_CFLAGS | ||
and XFIXES_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details." "$LINENO" 5 | ||
elif test $pkg_failed = untried; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "The pkg-config script could not be found or is too old. Make su | ||
re it | ||
is in your PATH or set the PKG_CONFIG environment variable to the full | ||
path to pkg-config. | ||
Alternatively, you may set the environment variables XFIXES_CFLAGS | ||
and XFIXES_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details. | ||
To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS | ||
XFIXES_LIBS=$pkg_cv_XFIXES_LIBS | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
pkg_failed=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5 | ||
$as_echo_n "checking for imlib2... " >&6; } | ||
if test -n "$IMLIB2_CFLAGS"; then | ||
pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"imlib2\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "imlib2") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test -n "$IMLIB2_LIBS"; then | ||
pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS" | ||
elif test -n "$PKG_CONFIG"; then | ||
if test -n "$PKG_CONFIG" && \ | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err | ||
ors \"imlib2\""; } >&5 | ||
($PKG_CONFIG --exists --print-errors "imlib2") 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null` | ||
test "x$?" != "x0" && pkg_failed=yes | ||
else | ||
pkg_failed=yes | ||
fi | ||
else | ||
pkg_failed=untried | ||
fi | ||
if test $pkg_failed = yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
_pkg_short_errors_supported=yes | ||
else | ||
_pkg_short_errors_supported=no | ||
fi | ||
if test $_pkg_short_errors_supported = yes; then | ||
IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cf | ||
lags --libs "imlib2" 2>&1` | ||
else | ||
IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "im | ||
lib2" 2>&1` | ||
fi | ||
# Put the nasty error message in config.log where it belongs | ||
echo "$IMLIB2_PKG_ERRORS" >&5 | ||
as_fn_error $? "Package requirements (imlib2) were not met: | ||
$IMLIB2_PKG_ERRORS | ||
Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
installed software in a non-standard prefix. | ||
Alternatively, you may set the environment variables IMLIB2_CFLAGS | ||
and IMLIB2_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details." "$LINENO" 5 | ||
elif test $pkg_failed = untried; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "The pkg-config script could not be found or is too old. Make su | ||
re it | ||
is in your PATH or set the PKG_CONFIG environment variable to the full | ||
path to pkg-config. | ||
Alternatively, you may set the environment variables IMLIB2_CFLAGS | ||
and IMLIB2_LIBS to avoid the need to call pkg-config. | ||
See the pkg-config man page for more details. | ||
To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS | ||
IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
# Checks for header files. | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" | ||
>&5 | ||
$as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
# On Suns, sometimes $CPP names a directory. | ||
if test -n "$CPP" && test -d "$CPP"; then | ||
CPP= | ||
fi | ||
if test -z "$CPP"; then | ||
if ${ac_cv_prog_CPP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
# Double quotes because CPP needs to be expanded | ||
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
do | ||
ac_preproc_ok=false | ||
for ac_c_preproc_warn_flag in '' yes | ||
do | ||
# Use a header file that comes with gcc, so configuring glibc | ||
# with a fresh cross-compiler works. | ||
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
# <limits.h> exists even on freestanding compilers. | ||
# On the NeXT, cc -E runs the code through the compiler's parser, | ||
# not just through cpp. "Syntax error" is here to catch this case. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#ifdef __STDC__ | ||
# include <limits.h> | ||
#else | ||
# include <assert.h> | ||
#endif | ||
Syntax error | ||
_ACEOF | ||
if ac_fn_c_try_cpp "$LINENO"; then : | ||
else | ||
# Broken: fails on valid input. | ||
continue | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
# OK, works on sane cases. Now check whether nonexistent headers | ||
# can be detected and how. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <ac_nonexistent.h> | ||
_ACEOF | _ACEOF | |
cat confdefs.h >>conftest.$ac_ext | if ac_fn_c_try_cpp "$LINENO"; then : | |
cat >>conftest.$ac_ext <<_ACEOF | # Broken: success on invalid input. | |
continue | ||
else | ||
# Passes both tests. | ||
ac_preproc_ok=: | ||
break | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
done | ||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
rm -f conftest.i conftest.err conftest.$ac_ext | ||
if $ac_preproc_ok; then : | ||
break | ||
fi | ||
done | ||
ac_cv_prog_CPP=$CPP | ||
fi | ||
CPP=$ac_cv_prog_CPP | ||
else | ||
ac_cv_prog_CPP=$CPP | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
$as_echo "$CPP" >&6; } | ||
ac_preproc_ok=false | ||
for ac_c_preproc_warn_flag in '' yes | ||
do | ||
# Use a header file that comes with gcc, so configuring glibc | ||
# with a fresh cross-compiler works. | ||
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
# <limits.h> exists even on freestanding compilers. | ||
# On the NeXT, cc -E runs the code through the compiler's parser, | ||
# not just through cpp. "Syntax error" is here to catch this case. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
/* System header to define __stub macros and hopefully few prototypes, | ||
which can conflict with char getopt_long (); below. | ||
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
<limits.h> exists even on freestanding compilers. */ | ||
#ifdef __STDC__ | #ifdef __STDC__ | |
# include <limits.h> | # include <limits.h> | |
#else | #else | |
# include <assert.h> | # include <assert.h> | |
#endif | #endif | |
/* Override any gcc2 internal prototype to avoid an error. */ | Syntax error | |
#ifdef __cplusplus | _ACEOF | |
extern "C" | if ac_fn_c_try_cpp "$LINENO"; then : | |
else | ||
# Broken: fails on valid input. | ||
continue | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
# OK, works on sane cases. Now check whether nonexistent headers | ||
# can be detected and how. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <ac_nonexistent.h> | ||
_ACEOF | ||
if ac_fn_c_try_cpp "$LINENO"; then : | ||
# Broken: success on invalid input. | ||
continue | ||
else | ||
# Passes both tests. | ||
ac_preproc_ok=: | ||
break | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
done | ||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
rm -f conftest.i conftest.err conftest.$ac_ext | ||
if $ac_preproc_ok; then : | ||
else | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
$as_echo_n "checking for X... " >&6; } | ||
# Check whether --with-x was given. | ||
if test "${with_x+set}" = set; then : | ||
withval=$with_x; | ||
fi | ||
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
if test "x$with_x" = xno; then | ||
# The user explicitly disabled X. | ||
have_x=disabled | ||
else | ||
case $x_includes,$x_libraries in #( | ||
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 | ||
;; #( | ||
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
# One or both of the vars are not set, and there is no cached value. | ||
ac_x_includes=no ac_x_libraries=no | ||
rm -f -r conftest.dir | ||
if mkdir conftest.dir; then | ||
cd conftest.dir | ||
cat >Imakefile <<'_ACEOF' | ||
incroot: | ||
@echo incroot='${INCROOT}' | ||
usrlibdir: | ||
@echo usrlibdir='${USRLIBDIR}' | ||
libdir: | ||
@echo libdir='${LIBDIR}' | ||
_ACEOF | ||
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; the | ||
n | ||
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
for ac_var in incroot usrlibdir libdir; do | ||
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_v | ||
ar=//p'\`" | ||
done | ||
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
for ac_extension in a so sl dylib la dll; do | ||
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
ac_im_usrlibdir=$ac_im_libdir; break | ||
fi | ||
done | ||
# Screen out bogus values from the imake configuration. They are | ||
# bogus both because they are the default anyway, and because | ||
# using them would break gcc on systems where it needs fixed includes. | ||
case $ac_im_incroot in | ||
/usr/include) ac_x_includes= ;; | ||
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
esac | ||
case $ac_im_usrlibdir in | ||
/usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
esac | ||
fi | ||
cd .. | ||
rm -f -r conftest.dir | ||
fi | ||
# Standard set of common directories for X headers. | ||
# Check X11 before X11Rn because it is often a symlink to the current release. | ||
ac_x_header_dirs=' | ||
/usr/X11/include | ||
/usr/X11R7/include | ||
/usr/X11R6/include | ||
/usr/X11R5/include | ||
/usr/X11R4/include | ||
/usr/include/X11 | ||
/usr/include/X11R7 | ||
/usr/include/X11R6 | ||
/usr/include/X11R5 | ||
/usr/include/X11R4 | ||
/usr/local/X11/include | ||
/usr/local/X11R7/include | ||
/usr/local/X11R6/include | ||
/usr/local/X11R5/include | ||
/usr/local/X11R4/include | ||
/usr/local/include/X11 | ||
/usr/local/include/X11R7 | ||
/usr/local/include/X11R6 | ||
/usr/local/include/X11R5 | ||
/usr/local/include/X11R4 | ||
/usr/X386/include | ||
/usr/x386/include | ||
/usr/XFree86/include/X11 | ||
/usr/include | ||
/usr/local/include | ||
/usr/unsupported/include | ||
/usr/athena/include | ||
/usr/local/x11r5/include | ||
/usr/lpp/Xamples/include | ||
/usr/openwin/include | ||
/usr/openwin/share/include' | ||
if test "$ac_x_includes" = no; then | ||
# Guess where to find include files, by looking for Xlib.h. | ||
# First, try using that file with no special directory specified. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <X11/Xlib.h> | ||
_ACEOF | ||
if ac_fn_c_try_cpp "$LINENO"; then : | ||
# We can compile using X headers with no special include directory. | ||
ac_x_includes= | ||
else | ||
for ac_dir in $ac_x_header_dirs; do | ||
if test -r "$ac_dir/X11/Xlib.h"; then | ||
ac_x_includes=$ac_dir | ||
break | ||
fi | ||
done | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
fi # $ac_x_includes = no | ||
if test "$ac_x_libraries" = no; then | ||
# Check for the libraries. | ||
# See if we find them without any special options. | ||
# Don't add to $LIBS permanently. | ||
ac_save_LIBS=$LIBS | ||
LIBS="-lX11 $LIBS" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <X11/Xlib.h> | ||
int | ||
main () | ||
{ | { | |
#endif | XrmInitialize () | |
/* We use char because int might match the return type of a gcc2 | ; | |
builtin and then its argument prototype would still apply. */ | return 0; | |
char getopt_long (); | } | |
/* The GNU C library defines this for functions which it implements | _ACEOF | |
to always fail with ENOSYS. Some functions are actually named | if ac_fn_c_try_link "$LINENO"; then : | |
something starting with __ and the normal name is an alias. */ | LIBS=$ac_save_LIBS | |
#if defined (__stub_getopt_long) || defined (__stub___getopt_long) | # We can link X programs with no special library path. | |
choke me | ac_x_libraries= | |
else | ||
LIBS=$ac_save_LIBS | ||
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g | ||
` | ||
do | ||
# Don't even attempt the hair of trying to link an X program! | ||
for ac_extension in a so sl dylib la dll; do | ||
if test -r "$ac_dir/libX11.$ac_extension"; then | ||
ac_x_libraries=$ac_dir | ||
break 2 | ||
fi | ||
done | ||
done | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext \ | ||
conftest$ac_exeext conftest.$ac_ext | ||
fi # $ac_x_libraries = no | ||
case $ac_x_includes,$ac_x_libraries in #( | ||
no,* | *,no | *\'*) | ||
# Didn't find X, or a directory has "'" in its name. | ||
ac_cv_have_x="have_x=no";; #( | ||
*) | ||
# Record where we found X for the cache. | ||
ac_cv_have_x="have_x=yes\ | ||
ac_x_includes='$ac_x_includes'\ | ||
ac_x_libraries='$ac_x_libraries'" | ||
esac | ||
fi | ||
;; #( | ||
*) have_x=yes;; | ||
esac | ||
eval "$ac_cv_have_x" | ||
fi # $with_x != no | ||
if test "$have_x" != yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
$as_echo "$have_x" >&6; } | ||
no_x=yes | ||
else | ||
# If each of the values was on the command line, it overrides each guess. | ||
test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
# Update the cache value to reflect the command line values. | ||
ac_cv_have_x="have_x=yes\ | ||
ac_x_includes='$x_includes'\ | ||
ac_x_libraries='$x_libraries'" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, heade | ||
rs $x_includes" >&5 | ||
$as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin | ||
es and -e" >&5 | ||
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
if ${ac_cv_path_GREP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -z "$GREP"; then | ||
ac_path_GREP_found=false | ||
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in grep ggrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
as_fn_executable_p "$ac_path_GREP" || continue | ||
# Check for GNU ac_path_GREP and select it if it is found. | ||
# Check for GNU $ac_path_GREP | ||
case `"$ac_path_GREP" --version 2>&1` in | ||
*GNU*) | ||
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'GREP' >> "conftest.nl" | ||
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. | ||
out" 2>/dev/null || break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_GREP="$ac_path_GREP" | ||
ac_path_GREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_GREP_found && break 3 | ||
done | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
if test -z "$ac_cv_path_GREP"; then | ||
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us | ||
r/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | ||
ac_cv_path_GREP=$GREP | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
$as_echo "$ac_cv_path_GREP" >&6; } | ||
GREP="$ac_cv_path_GREP" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
$as_echo_n "checking for egrep... " >&6; } | ||
if ${ac_cv_path_EGREP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
then ac_cv_path_EGREP="$GREP -E" | ||
else | ||
if test -z "$EGREP"; then | ||
ac_path_EGREP_found=false | ||
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in egrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
as_fn_executable_p "$ac_path_EGREP" || continue | ||
# Check for GNU ac_path_EGREP and select it if it is found. | ||
# Check for GNU $ac_path_EGREP | ||
case `"$ac_path_EGREP" --version 2>&1` in | ||
*GNU*) | ||
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'EGREP' >> "conftest.nl" | ||
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre | ||
ak | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_EGREP="$ac_path_EGREP" | ||
ac_path_EGREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_EGREP_found && break 3 | ||
done | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
if test -z "$ac_cv_path_EGREP"; then | ||
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u | ||
sr/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | ||
ac_cv_path_EGREP=$EGREP | ||
fi | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
$as_echo "$ac_cv_path_EGREP" >&6; } | ||
EGREP="$ac_cv_path_EGREP" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
$as_echo_n "checking for ANSI C header files... " >&6; } | ||
if ${ac_cv_header_stdc+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <stdlib.h> | ||
#include <stdarg.h> | ||
#include <string.h> | ||
#include <float.h> | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_header_stdc=yes | ||
else | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
if test $ac_cv_header_stdc = yes; then | ||
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <string.h> | ||
_ACEOF | ||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
$EGREP "memchr" >/dev/null 2>&1; then : | ||
else | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f conftest* | ||
fi | ||
if test $ac_cv_header_stdc = yes; then | ||
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <stdlib.h> | ||
_ACEOF | ||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
$EGREP "free" >/dev/null 2>&1; then : | ||
else | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f conftest* | ||
fi | ||
if test $ac_cv_header_stdc = yes; then | ||
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
if test "$cross_compiling" = yes; then : | ||
: | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <ctype.h> | ||
#include <stdlib.h> | ||
#if ((' ' & 0x0FF) == 0x020) | ||
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
#else | #else | |
char (*f) () = getopt_long; | # define ISLOWER(c) \ | |
(('a' <= (c) && (c) <= 'i') \ | ||
|| ('j' <= (c) && (c) <= 'r') \ | ||
|| ('s' <= (c) && (c) <= 'z')) | ||
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
#endif | #endif | |
#ifdef __cplusplus | ||
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
int | ||
main () | ||
{ | ||
int i; | ||
for (i = 0; i < 256; i++) | ||
if (XOR (islower (i), ISLOWER (i)) | ||
|| toupper (i) != TOUPPER (i)) | ||
return 2; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_run "$LINENO"; then : | ||
else | ||
ac_cv_header_stdc=no | ||
fi | ||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
fi | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
$as_echo "$ac_cv_header_stdc" >&6; } | ||
if test $ac_cv_header_stdc = yes; then | ||
$as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
fi | ||
# On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
inttypes.h stdint.h unistd.h | ||
do : | ||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include | ||
s_default | ||
" | ||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
_ACEOF | ||
fi | ||
done | ||
for ac_header in stdint.h sys/time.h unistd.h | ||
do : | ||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include | ||
s_default" | ||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
_ACEOF | ||
fi | ||
done | ||
# Checks for typedefs, structures, and compiler characteristics. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to | ||
C99" >&5 | ||
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | ||
if ${ac_cv_header_stdbool_h+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <stdbool.h> | ||
#ifndef bool | ||
"error: bool is not defined" | ||
#endif | ||
#ifndef false | ||
"error: false is not defined" | ||
#endif | ||
#if false | ||
"error: false is not 0" | ||
#endif | ||
#ifndef true | ||
"error: true is not defined" | ||
#endif | ||
#if true != 1 | ||
"error: true is not 1" | ||
#endif | ||
#ifndef __bool_true_false_are_defined | ||
"error: __bool_true_false_are_defined is not defined" | ||
#endif | ||
struct s { _Bool s: 1; _Bool t; } s; | ||
char a[true == 1 ? 1 : -1]; | ||
char b[false == 0 ? 1 : -1]; | ||
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | ||
char d[(bool) 0.5 == true ? 1 : -1]; | ||
/* See body of main program for 'e'. */ | ||
char f[(_Bool) 0.0 == false ? 1 : -1]; | ||
char g[true]; | ||
char h[sizeof (_Bool)]; | ||
char i[sizeof s.t]; | ||
enum { j = false, k = true, l = false * true, m = true * 256 }; | ||
/* The following fails for | ||
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | ||
_Bool n[m]; | ||
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | ||
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | ||
/* Catch a bug in an HP-UX C compiler. See | ||
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161 | ||
.html | ||
*/ | ||
_Bool q = true; | ||
_Bool *pq = &q; | ||
int | ||
main () | ||
{ | ||
bool e = &s; | ||
*pq |= q; | ||
*pq |= ! q; | ||
/* Refer to every declared value, to avoid compiler optimizations. | ||
*/ | ||
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | ||
+ !m + !n + !o + !p + !q + !pq); | ||
; | ||
return 0; | ||
} | } | |
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_header_stdbool_h=yes | ||
else | ||
ac_cv_header_stdbool_h=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | ||
$as_echo "$ac_cv_header_stdbool_h" >&6; } | ||
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default | ||
" | ||
if test "x$ac_cv_type__Bool" = xyes; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define HAVE__BOOL 1 | ||
_ACEOF | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
$as_echo_n "checking for inline... " >&6; } | ||
if ${ac_cv_c_inline+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
ac_cv_c_inline=no | ||
for ac_kw in inline __inline__ __inline; do | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#ifndef __cplusplus | ||
typedef int foo_t; | ||
static $ac_kw foo_t static_foo () {return 0; } | ||
$ac_kw foo_t foo () {return 0; } | ||
#endif | #endif | |
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_c_inline=$ac_kw | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
test "$ac_cv_c_inline" != no && break | ||
done | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
$as_echo "$ac_cv_c_inline" >&6; } | ||
case $ac_cv_c_inline in | ||
inline | yes) ;; | ||
*) | ||
case $ac_cv_c_inline in | ||
no) ac_val=;; | ||
*) ac_val=$ac_cv_c_inline;; | ||
esac | ||
cat >>confdefs.h <<_ACEOF | ||
#ifndef __cplusplus | ||
#define inline $ac_val | ||
#endif | ||
_ACEOF | ||
;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const | ||
" >&5 | ||
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
if ${ac_cv_c_const+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | int | |
main () | main () | |
{ | { | |
return f != getopt_long; | ||
#ifndef __cplusplus | ||
/* Ultrix mips cc rejects this sort of thing. */ | ||
typedef int charset[2]; | ||
const charset cs = { 0, 0 }; | ||
/* SunOS 4.1.1 cc rejects this. */ | ||
char const *const *pcpcc; | ||
char **ppc; | ||
/* NEC SVR4.0.2 mips cc rejects this. */ | ||
struct point {int x, y;}; | ||
static struct point const zero = {0,0}; | ||
/* AIX XL C 1.02.0.0 rejects this. | ||
It does not let you subtract one const X* pointer from another in | ||
an arm of an if-expression whose if-part is not a constant | ||
expression */ | ||
const char *g = "string"; | ||
pcpcc = &g + (g ? g-g : 0); | ||
/* HPUX 7.0 cc rejects these. */ | ||
++pcpcc; | ||
ppc = (char**) pcpcc; | ||
pcpcc = (char const *const *) ppc; | ||
{ /* SCO 3.2v4 cc rejects this sort of thing. */ | ||
char tx; | ||
char *t = &tx; | ||
char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
*t++ = 0; | ||
if (s) return 0; | ||
} | ||
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
int x[] = {25, 17}; | ||
const int *foo = &x[0]; | ||
++foo; | ||
} | ||
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
typedef const int *iptr; | ||
iptr p = 0; | ||
++p; | ||
} | ||
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | ||
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
struct s { int j; const int *ap[3]; } bx; | ||
struct s *b = &bx; b->j = 5; | ||
} | ||
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
const int foo = 10; | ||
if (!foo) return 0; | ||
} | ||
return !cs[0] && !zero.x; | ||
#endif | ||
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
rm -f conftest.$ac_objext conftest$ac_exeext | if ac_fn_c_try_compile "$LINENO"; then : | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ac_cv_c_const=yes | |
(eval $ac_link) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } && | ||
{ ac_try='test -s conftest$ac_exeext' | ||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
(eval $ac_try) 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; }; then | ||
ac_cv_func_getopt_long=yes | ||
else | else | |
echo "$as_me: failed program was:" >&5 | ac_cv_c_const=no | |
sed 's/^/| /' conftest.$ac_ext >&5 | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
$as_echo "$ac_cv_c_const" >&6; } | ||
if test $ac_cv_c_const = no; then | ||
$as_echo "#define const /**/" >>confdefs.h | ||
ac_cv_func_getopt_long=no | ||
fi | fi | |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | ||
if test "x$ac_cv_type_size_t" = xyes; then : | ||
else | ||
cat >>confdefs.h <<_ACEOF | ||
#define size_t unsigned int | ||
_ACEOF | ||
fi | fi | |
echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 | ||
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_de | |
if test $ac_cv_func_getopt_long = yes; then | fault" | |
: | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
cat >>confdefs.h <<_ACEOF | ||
#define HAVE_PTRDIFF_T 1 | ||
_ACEOF | ||
fi | ||
# Required: Checks for library functions. | ||
for ac_header in stdlib.h | ||
do : | ||
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac | ||
_includes_default" | ||
if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define HAVE_STDLIB_H 1 | ||
_ACEOF | ||
fi | ||
done | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc | ||
" >&5 | ||
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } | ||
if ${ac_cv_func_malloc_0_nonnull+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test "$cross_compiling" = yes; then : | ||
ac_cv_func_malloc_0_nonnull=no | ||
else | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
# include <stdlib.h> | ||
#else | ||
char *malloc (); | ||
#endif | ||
int | ||
main () | ||
{ | ||
return ! malloc (0); | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_run "$LINENO"; then : | ||
ac_cv_func_malloc_0_nonnull=yes | ||
else | else | |
LIBOBJS="$LIBOBJS getopt.o getopt1.o" | ac_cv_func_malloc_0_nonnull=no | |
fi | fi | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" > | ||
&5 | ||
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | ||
if test $ac_cv_func_malloc_0_nonnull = yes; then : | ||
ac_config_files="$ac_config_files Makefile scrot.s | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h | |
pec src/Makefile" | ||
else | ||
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h | ||
case " $LIBOBJS " in | ||
*" malloc.$ac_objext "* ) ;; | ||
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" | ||
;; | ||
esac | ||
$as_echo "#define malloc rpl_malloc" >>confdefs.h | ||
fi | ||
for ac_func in getopt_long getsubopt atexit gethostname memset select strchr str | ||
dup strerror strpbrk strrchr strtol | ||
do : | ||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
_ACEOF | ||
else | ||
as_fn_error $? "required functions are not present." "$LINENO" 5 | ||
fi | ||
done | ||
# Optional: Checks for library functions. | ||
for ac_func in strndup | ||
do : | ||
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" | ||
if test "x$ac_cv_func_strndup" = xyes; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define HAVE_STRNDUP 1 | ||
_ACEOF | ||
fi | ||
done | ||
ac_config_files="$ac_config_files Makefile src/Makefile" | ||
cat >confcache <<\_ACEOF | cat >confcache <<\_ACEOF | |
# This file is a shell script that caches the results of configure | # This file is a shell script that caches the results of configure | |
# tests run on this system so they can be shared between configure | # tests run on this system so they can be shared between configure | |
# scripts and configure runs, see configure's option --config-cache. | # scripts and configure runs, see configure's option --config-cache. | |
# It is not useful on other systems. If it contains results you don't | # It is not useful on other systems. If it contains results you don't | |
# want to keep, you may remove or edit it. | # want to keep, you may remove or edit it. | |
# | # | |
# config.status only pays attention to the cache file if you give it | # config.status only pays attention to the cache file if you give it | |
# the --recheck option to rerun configure. | # the --recheck option to rerun configure. | |
# | # | |
# `ac_cv_env_foo' variables (set or unset) will be overridden when | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
# loading this file, other *unset* `ac_cv_foo' will be assigned the | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
# following values. | # following values. | |
_ACEOF | _ACEOF | |
# The following way of writing the cache mishandles newlines in values, | # The following way of writing the cache mishandles newlines in values, | |
# but we know of no workaround that is simple, portable, and efficient. | # but we know of no workaround that is simple, portable, and efficient. | |
# So, don't put newlines in cache variables' values. | # So, we kill variables containing newlines. | |
# Ultrix sh set writes to stderr and can't be redirected directly, | # Ultrix sh set writes to stderr and can't be redirected directly, | |
# and sets the high bit in the cache file unless we assign to the vars. | # and sets the high bit in the cache file unless we assign to the vars. | |
{ | ( | |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d | ||
o | ||
eval ac_val=\$$ac_var | ||
case $ac_val in #( | ||
*${as_nl}*) | ||
case $ac_var in #( | ||
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ | ||
ac_var contains a newline" >&5 | ||
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
esac | ||
case $ac_var in #( | ||
_ | IFS | as_nl) ;; #( | ||
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
*) { eval $ac_var=; unset $ac_var;} ;; | ||
esac ;; | ||
esac | ||
done | ||
(set) 2>&1 | | (set) 2>&1 | | |
case `(ac_space=' '; set | grep ac_space) 2>&1` in | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
*ac_space=\ *) | *${as_nl}ac_space=\ *) | |
# `set' does not quote correctly, so add quotes (double-quote | # `set' does not quote correctly, so add quotes: double-quote | |
# substitution turns \\\\ into \\, and sed turns \\ into \). | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
sed -n \ | sed -n \ | |
"s/'/'\\\\''/g; | "s/'/'\\\\''/g; | |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
;; | ;; #( | |
*) | *) | |
# `set' quotes correctly as required by POSIX, so do not add quotes. | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
sed -n \ | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
;; | ;; | |
esac; | esac | | |
} | | sort | |
) | | ||
sed ' | sed ' | |
/^ac_cv_env_/b end | ||
t clear | t clear | |
: clear | :clear | |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
t end | t end | |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
: end' >>confcache | :end' >>confcache | |
if diff $cache_file confcache >/dev/null 2>&1; then :; else | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
if test -w $cache_file; then | if test -w "$cache_file"; then | |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | if test "x$cache_file" != "x/dev/null"; then | |
cat confcache >$cache_file | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
$as_echo "$as_me: updating cache $cache_file" >&6;} | ||
if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
cat confcache >"$cache_file" | ||
else | ||
case $cache_file in #( | ||
*/* | ?:*) | ||
mv -f confcache "$cache_file"$$ && | ||
mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
*) | ||
mv -f confcache "$cache_file" ;; | ||
esac | ||
fi | ||
fi | ||
else | else | |
echo "not updating unwritable cache $cache_file" | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cach | |
e_file" >&5 | ||
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
fi | fi | |
fi | fi | |
rm -f confcache | rm -f confcache | |
test "x$prefix" = xNONE && prefix=$ac_default_prefix | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
# Let make expand exec_prefix. | # Let make expand exec_prefix. | |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
# VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
# trailing colons and then remove the whole line if VPATH becomes empty | ||
# (actually we leave an empty line to preserve line numbers). | ||
if test "x$srcdir" = x.; then | ||
ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
s/:*\$(srcdir):*/:/; | ||
s/:*\${srcdir}:*/:/; | ||
s/:*@srcdir@:*/:/; | ||
s/^\([^=]*=[ ]*\):*/\1/; | ||
s/:*$//; | ||
s/^[^=]*=[ ]*$//; | ||
}' | ||
fi | ||
DEFS=-DHAVE_CONFIG_H | DEFS=-DHAVE_CONFIG_H | |
ac_libobjs= | ac_libobjs= | |
ac_ltlibobjs= | ac_ltlibobjs= | |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
# 1. Remove the extension, and $U if already installed. | # 1. Remove the extension, and $U if already installed. | |
ac_i=`echo "$ac_i" | | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
# 2. Add them. | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | # will be set to the directory where LIBOBJS objects are built. | |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
done | done | |
LIBOBJS=$ac_libobjs | LIBOBJS=$ac_libobjs | |
LTLIBOBJS=$ac_ltlibobjs | LTLIBOBJS=$ac_ltlibobjs | |
: ${CONFIG_STATUS=./config.status} | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer | |
than configure" >&5 | ||
$as_echo_n "checking that generated files are newer than configure... " >&6; } | ||
if test -n "$am_sleep_pid"; then | ||
# Hide warnings about reused PIDs. | ||
wait $am_sleep_pid 2>/dev/null | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | ||
$as_echo "done" >&6; } | ||
if test -n "$EXEEXT"; then | ||
am__EXEEXT_TRUE= | ||
am__EXEEXT_FALSE='#' | ||
else | ||
am__EXEEXT_TRUE='#' | ||
am__EXEEXT_FALSE= | ||
fi | ||
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
fi | ||
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
fi | ||
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
fi | ||
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | ||
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | ||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
fi | ||
: "${CONFIG_STATUS=./config.status}" | ||
ac_write_fail=0 | ||
ac_clean_files_save=$ac_clean_files | ac_clean_files_save=$ac_clean_files | |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
echo "$as_me: creating $CONFIG_STATUS" >&6;} | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
cat >$CONFIG_STATUS <<_ACEOF | as_write_fail=0 | |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
#! $SHELL | #! $SHELL | |
# Generated by $as_me. | # Generated by $as_me. | |
# Run this file to recreate the current configuration. | # Run this file to recreate the current configuration. | |
# Compiler output produced by configure, useful for debugging | # Compiler output produced by configure, useful for debugging | |
# configure, is in config.log if it exists. | # configure, is in config.log if it exists. | |
debug=false | debug=false | |
ac_cs_recheck=false | ac_cs_recheck=false | |
ac_cs_silent=false | ac_cs_silent=false | |
SHELL=\${CONFIG_SHELL-$SHELL} | ||
_ACEOF | ||
cat >>$CONFIG_STATUS <<\_ACEOF | ||
## --------------------- ## | ||
## M4sh Initialization. ## | ||
## --------------------- ## | ||
# Be Bourne compatible | SHELL=\${CONFIG_SHELL-$SHELL} | |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | export SHELL | |
_ASEOF | ||
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
## -------------------- ## | ||
## M4sh Initialization. ## | ||
## -------------------- ## | ||
# Be more Bourne compatible | ||
DUALCASE=1; export DUALCASE # for MKS sh | ||
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
emulate sh | emulate sh | |
NULLCMD=: | NULLCMD=: | |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
# is contrary to our usage. Disable this feature. | # is contrary to our usage. Disable this feature. | |
alias -g '${1+"$@"}'='"$@"' | alias -g '${1+"$@"}'='"$@"' | |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | setopt NO_GLOB_SUBST | |
set -o posix | else | |
case `(set -o) 2>/dev/null` in #( | ||
*posix*) : | ||
set -o posix ;; #( | ||
*) : | ||
;; | ||
esac | ||
fi | fi | |
# Support unset when possible. | as_nl=' | |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ' | |
as_unset=unset | export as_nl | |
else | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
as_unset=false | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
# Prefer a ksh shell builtin over an external printf program on Solaris, | ||
# but without wasting forks for bash or zsh. | ||
if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
as_echo='print -r --' | ||
as_echo_n='print -rn --' | ||
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
as_echo='printf %s\n' | ||
as_echo_n='printf %s' | ||
else | ||
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
as_echo_n='/usr/ucb/echo -n' | ||
else | ||
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
as_echo_n_body='eval | ||
arg=$1; | ||
case $arg in #( | ||
*"$as_nl"*) | ||
expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
esac; | ||
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
' | ||
export as_echo_n_body | ||
as_echo_n='sh -c $as_echo_n_body as_echo' | ||
fi | ||
export as_echo_body | ||
as_echo='sh -c $as_echo_body as_echo' | ||
fi | fi | |
# Work around bugs in pre-3.0 UWIN ksh. | # The user is always right. | |
$as_unset ENV MAIL MAILPATH | if test "${PATH_SEPARATOR+set}" != set; then | |
PATH_SEPARATOR=: | ||
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
PATH_SEPARATOR=';' | ||
} | ||
fi | ||
# IFS | ||
# We need space, tab and new line, in precisely that order. Quoting is | ||
# there to prevent editors from complaining about space-tab. | ||
# (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
# splitting by setting IFS to empty value.) | ||
IFS=" "" $as_nl" | ||
# Find who we are. Look in the path if we contain no directory separator. | ||
as_myself= | ||
case $0 in #(( | ||
*[\\/]* ) as_myself=$0 ;; | ||
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
done | ||
IFS=$as_save_IFS | ||
;; | ||
esac | ||
# We did not find ourselves, most probably we were run as `sh COMMAND' | ||
# in which case we are not to be found in the path. | ||
if test "x$as_myself" = x; then | ||
as_myself=$0 | ||
fi | ||
if test ! -f "$as_myself"; then | ||
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n | ||
ame" >&2 | ||
exit 1 | ||
fi | ||
# Unset variables that we do not need and which cause bugs (e.g. in | ||
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
# suppresses any "Segmentation fault" message there. '((' could | ||
# trigger a bug in pdksh 5.2.14. | ||
for as_var in BASH_ENV ENV MAIL MAILPATH | ||
do eval test x\${$as_var+set} = xset \ | ||
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
done | ||
PS1='$ ' | PS1='$ ' | |
PS2='> ' | PS2='> ' | |
PS4='+ ' | PS4='+ ' | |
# NLS nuisances. | # NLS nuisances. | |
for as_var in \ | LC_ALL=C | |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | export LC_ALL | |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | LANGUAGE=C | |
LC_TELEPHONE LC_TIME | export LANGUAGE | |
do | ||
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
eval $as_var=C; export $as_var | ||
else | ||
$as_unset $as_var | ||
fi | ||
done | ||
# Required to use basename. | # CDPATH. | |
if expr a : '\(a\)' >/dev/null 2>&1; then | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
# as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
# ---------------------------------------- | ||
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
# script with STATUS, using 1 if that was 0. | ||
as_fn_error () | ||
{ | ||
as_status=$1; test $as_status -eq 0 && as_status=1 | ||
if test "$4"; then | ||
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
fi | ||
$as_echo "$as_me: error: $2" >&2 | ||
as_fn_exit $as_status | ||
} # as_fn_error | ||
# as_fn_set_status STATUS | ||
# ----------------------- | ||
# Set $? to STATUS, without forking. | ||
as_fn_set_status () | ||
{ | ||
return $1 | ||
} # as_fn_set_status | ||
# as_fn_exit STATUS | ||
# ----------------- | ||
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
as_fn_exit () | ||
{ | ||
set +e | ||
as_fn_set_status $1 | ||
exit $1 | ||
} # as_fn_exit | ||
# as_fn_unset VAR | ||
# --------------- | ||
# Portably unset VAR. | ||
as_fn_unset () | ||
{ | ||
{ eval $1=; unset $1;} | ||
} | ||
as_unset=as_fn_unset | ||
# as_fn_append VAR VALUE | ||
# ---------------------- | ||
# Append the text in VALUE to the end of the definition contained in VAR. Take | ||
# advantage of any shell optimizations that allow amortized linear growth over | ||
# repeated appends, instead of the typical quadratic growth present in naive | ||
# implementations. | ||
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
eval 'as_fn_append () | ||
{ | ||
eval $1+=\$2 | ||
}' | ||
else | ||
as_fn_append () | ||
{ | ||
eval $1=\$$1\$2 | ||
} | ||
fi # as_fn_append | ||
# as_fn_arith ARG... | ||
# ------------------ | ||
# Perform arithmetic evaluation on the ARGs, and store the result in the | ||
# global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
# must be portable across $(()) and expr. | ||
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
eval 'as_fn_arith () | ||
{ | ||
as_val=$(( $* )) | ||
}' | ||
else | ||
as_fn_arith () | ||
{ | ||
as_val=`expr "$@" || test $? -eq 1` | ||
} | ||
fi # as_fn_arith | ||
if expr a : '\(a\)' >/dev/null 2>&1 && | ||
test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
as_expr=expr | as_expr=expr | |
else | else | |
as_expr=false | as_expr=false | |
fi | fi | |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |