mirror of git://gcc.gnu.org/git/gcc.git
configure.ac (AC_USE_SYSTEM_EXTENSIONS): Add.
2011-06-08 Douglas B Rupp <rupp@gnat.com> * fixincludes/configure.ac (AC_USE_SYSTEM_EXTENSIONS): Add. * fixincludes/configure: Regenerate. * fixincludes/config.h.in: Regenerate. From-SVN: r174818
This commit is contained in:
parent
a608debe1c
commit
207202016c
|
@ -1,3 +1,9 @@
|
||||||
|
2011-06-08 Douglas B Rupp <rupp@gnat.com>
|
||||||
|
|
||||||
|
* configure.ac (AC_USE_SYSTEM_EXTENSIONS): Add.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* config.h.in: Regenerate.
|
||||||
|
|
||||||
2011-06-06 Peter O'Gorman <pogma@thewrittenword.com>
|
2011-06-06 Peter O'Gorman <pogma@thewrittenword.com>
|
||||||
|
|
||||||
* inclhack.def (aix_net_if_arp): New fix.
|
* inclhack.def (aix_net_if_arp): New fix.
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Define to 1 if you have the declaration of `basename', and to 0 if you
|
/* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
|
||||||
don't. */
|
you don't. */
|
||||||
#ifndef USED_FOR_TARGET
|
#ifndef USED_FOR_TARGET
|
||||||
#undef HAVE_DECL_BASENAME
|
#undef HAVE_DECL_BASENAME
|
||||||
#endif
|
#endif
|
||||||
|
@ -393,6 +393,47 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Enable extensions on AIX 3, Interix. */
|
||||||
|
#ifndef _ALL_SOURCE
|
||||||
|
# undef _ALL_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable GNU extensions on systems that have them. */
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
# undef _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable threading extensions on Solaris. */
|
||||||
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
|
#endif
|
||||||
|
/* Enable extensions on HP NonStop. */
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
#endif
|
||||||
|
/* Enable general extensions on Solaris. */
|
||||||
|
#ifndef __EXTENSIONS__
|
||||||
|
# undef __EXTENSIONS__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Define to 1 if on MINIX. */
|
||||||
|
#ifndef USED_FOR_TARGET
|
||||||
|
#undef _MINIX
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||||
|
this defined. */
|
||||||
|
#ifndef USED_FOR_TARGET
|
||||||
|
#undef _POSIX_1_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||||
|
#ifndef USED_FOR_TARGET
|
||||||
|
#undef _POSIX_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Define to xatexit if the host system does not support atexit */
|
/* Define to xatexit if the host system does not support atexit */
|
||||||
#ifndef USED_FOR_TARGET
|
#ifndef USED_FOR_TARGET
|
||||||
#undef atexit
|
#undef atexit
|
||||||
|
|
|
@ -591,15 +591,15 @@ ac_includes_default="\
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
MAINT
|
MAINT
|
||||||
EGREP
|
|
||||||
GREP
|
|
||||||
CPP
|
|
||||||
TARGET
|
TARGET
|
||||||
target_noncanonical
|
target_noncanonical
|
||||||
WERROR
|
WERROR
|
||||||
WARN_PEDANTIC
|
WARN_PEDANTIC
|
||||||
WARN_CFLAGS
|
WARN_CFLAGS
|
||||||
SED
|
SED
|
||||||
|
EGREP
|
||||||
|
GREP
|
||||||
|
CPP
|
||||||
OBJEXT
|
OBJEXT
|
||||||
EXEEXT
|
EXEEXT
|
||||||
ac_ct_CC
|
ac_ct_CC
|
||||||
|
@ -1464,48 +1464,6 @@ fi
|
||||||
|
|
||||||
} # ac_fn_c_try_cpp
|
} # ac_fn_c_try_cpp
|
||||||
|
|
||||||
# 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
||||||
return $ac_retval
|
|
||||||
|
|
||||||
} # ac_fn_c_try_run
|
|
||||||
|
|
||||||
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
||||||
|
@ -1593,6 +1551,48 @@ fi
|
||||||
|
|
||||||
} # ac_fn_c_check_header_mongrel
|
} # 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
||||||
|
return $ac_retval
|
||||||
|
|
||||||
|
} # ac_fn_c_try_run
|
||||||
|
|
||||||
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
# Tests whether HEADER exists and can be compiled using the include files in
|
# Tests whether HEADER exists and can be compiled using the include files in
|
||||||
|
@ -4028,262 +4028,7 @@ 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
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
|
||||||
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
|
||||||
if test "${ac_cv_path_SED+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
|
||||||
for ac_i in 1 2 3 4 5 6 7; do
|
|
||||||
ac_script="$ac_script$as_nl$ac_script"
|
|
||||||
done
|
|
||||||
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
|
||||||
{ ac_script=; unset ac_script;}
|
|
||||||
if test -z "$SED"; then
|
|
||||||
ac_path_SED_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
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_prog in sed gsed; do
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
|
||||||
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
|
||||||
# Check for GNU ac_path_SED and select it if it is found.
|
|
||||||
# Check for GNU $ac_path_SED
|
|
||||||
case `"$ac_path_SED" --version 2>&1` in
|
|
||||||
*GNU*)
|
|
||||||
ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
|
|
||||||
"$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
|
|
||||||
# Best one so far, save it but keep looking for a better one
|
|
||||||
ac_cv_path_SED="$ac_path_SED"
|
|
||||||
ac_path_SED_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_SED_found && break 3
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
if test -z "$ac_cv_path_SED"; then
|
|
||||||
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ac_cv_path_SED=$SED
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
|
||||||
$as_echo "$ac_cv_path_SED" >&6; }
|
|
||||||
SED="$ac_cv_path_SED"
|
|
||||||
rm -f conftest.sed
|
|
||||||
|
|
||||||
|
|
||||||
# Figure out what compiler warnings we can enable.
|
|
||||||
# See config/warnings.m4 for details.
|
|
||||||
|
|
||||||
|
|
||||||
WARN_CFLAGS=
|
|
||||||
save_CFLAGS="$CFLAGS"
|
|
||||||
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
|
|
||||||
-Wmissing-prototypes -Wold-style-definition \
|
|
||||||
-Wmissing-format-attribute -Wno-overlength-strings; do
|
|
||||||
as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
|
|
||||||
$as_echo_n "checking whether $CC supports $option... " >&6; }
|
|
||||||
if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
CFLAGS="$option"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
eval "$as_acx_Woption=yes"
|
|
||||||
else
|
|
||||||
eval "$as_acx_Woption=no"
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
|
|
||||||
fi
|
|
||||||
eval ac_res=\$$as_acx_Woption
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
||||||
$as_echo "$ac_res" >&6; }
|
|
||||||
if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
|
|
||||||
WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
CFLAGS="$save_CFLAGS"
|
|
||||||
|
|
||||||
WARN_PEDANTIC=
|
|
||||||
if test "$GCC" = yes; then :
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
|
|
||||||
$as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
|
|
||||||
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
save_CFLAGS="$CFLAGS"
|
|
||||||
CFLAGS="-pedantic -Wno-long-long"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
acx_cv_prog_cc_pedantic__Wno_long_long=yes
|
|
||||||
else
|
|
||||||
acx_cv_prog_cc_pedantic__Wno_long_long=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
CFLAGS="$save_CFLAGS"
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
|
|
||||||
$as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
|
|
||||||
if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
|
|
||||||
WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Only enable with --enable-werror-always until existing warnings are
|
|
||||||
# corrected.
|
|
||||||
WERROR=
|
|
||||||
# Check whether --enable-werror-always was given.
|
|
||||||
if test "${enable_werror_always+set}" = set; then :
|
|
||||||
enableval=$enable_werror_always;
|
|
||||||
else
|
|
||||||
enable_werror_always=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $enable_werror_always = yes; then :
|
|
||||||
WERROR="$WERROR${WERROR:+ }-Werror"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Determine the noncanonical target name, for directory use.
|
|
||||||
case ${build_alias} in
|
|
||||||
"") build_noncanonical=${build} ;;
|
|
||||||
*) build_noncanonical=${build_alias} ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case ${host_alias} in
|
|
||||||
"") host_noncanonical=${build_noncanonical} ;;
|
|
||||||
*) host_noncanonical=${host_alias} ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case ${target_alias} in
|
|
||||||
"") target_noncanonical=${host_noncanonical} ;;
|
|
||||||
*) target_noncanonical=${target_alias} ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Specify the local prefix
|
|
||||||
local_prefix=
|
|
||||||
|
|
||||||
# Check whether --with-local-prefix was given.
|
|
||||||
if test "${with_local_prefix+set}" = set; then :
|
|
||||||
withval=$with_local_prefix; case "${withval}" in
|
|
||||||
yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
|
|
||||||
no) ;;
|
|
||||||
*) local_prefix=$with_local_prefix ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Default local prefix if it is empty
|
|
||||||
if test x$local_prefix = x; then
|
|
||||||
local_prefix=/usr/local
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Choose one or two-process fix methodology. Systems that cannot handle
|
|
||||||
# bi-directional pipes must use the two process method.
|
|
||||||
#
|
|
||||||
# Check whether --enable-twoprocess was given.
|
|
||||||
if test "${enable_twoprocess+set}" = set; then :
|
|
||||||
enableval=$enable_twoprocess; if test "x$enable_twoprocess" = xyes; then
|
|
||||||
TARGET=twoprocess
|
|
||||||
else
|
|
||||||
TARGET=oneprocess
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
case $host in
|
|
||||||
i?86-*-msdosdjgpp* | \
|
|
||||||
i?86-*-mingw32* | \
|
|
||||||
x86_64-*-mingw32* | \
|
|
||||||
*-*-beos* )
|
|
||||||
TARGET=twoprocess
|
|
||||||
;;
|
|
||||||
|
|
||||||
* )
|
|
||||||
TARGET=oneprocess
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test $TARGET = twoprocess; then
|
|
||||||
|
|
||||||
$as_echo "#define SEPARATE_FIX_PROC 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $host in
|
|
||||||
vax-dec-bsd* )
|
|
||||||
|
|
||||||
$as_echo "#define exit xexit" >>confdefs.h
|
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define atexit xatexit" >>confdefs.h
|
|
||||||
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define EXE_EXT "$ac_exeext"
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
# Checks for header files.
|
|
||||||
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'
|
||||||
|
@ -4682,6 +4427,434 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
||||||
|
MINIX=yes
|
||||||
|
else
|
||||||
|
MINIX=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "$MINIX" = yes; then
|
||||||
|
|
||||||
|
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
$as_echo "#define _MINIX 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
||||||
|
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
||||||
|
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
# define __EXTENSIONS__ 1
|
||||||
|
$ac_includes_default
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
ac_cv_safe_to_define___extensions__=yes
|
||||||
|
else
|
||||||
|
ac_cv_safe_to_define___extensions__=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
||||||
|
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
||||||
|
test $ac_cv_safe_to_define___extensions__ = yes &&
|
||||||
|
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
||||||
|
|
||||||
|
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
||||||
|
|
||||||
|
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
||||||
|
|
||||||
|
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
||||||
|
|
||||||
|
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
||||||
|
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
||||||
|
if test "${ac_cv_path_SED+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
||||||
|
for ac_i in 1 2 3 4 5 6 7; do
|
||||||
|
ac_script="$ac_script$as_nl$ac_script"
|
||||||
|
done
|
||||||
|
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
||||||
|
{ ac_script=; unset ac_script;}
|
||||||
|
if test -z "$SED"; then
|
||||||
|
ac_path_SED_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
|
||||||
|
do
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
test -z "$as_dir" && as_dir=.
|
||||||
|
for ac_prog in sed gsed; do
|
||||||
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||||
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
||||||
|
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
||||||
|
# Check for GNU ac_path_SED and select it if it is found.
|
||||||
|
# Check for GNU $ac_path_SED
|
||||||
|
case `"$ac_path_SED" --version 2>&1` in
|
||||||
|
*GNU*)
|
||||||
|
ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
|
||||||
|
"$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
|
||||||
|
# Best one so far, save it but keep looking for a better one
|
||||||
|
ac_cv_path_SED="$ac_path_SED"
|
||||||
|
ac_path_SED_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_SED_found && break 3
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
if test -z "$ac_cv_path_SED"; then
|
||||||
|
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ac_cv_path_SED=$SED
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
||||||
|
$as_echo "$ac_cv_path_SED" >&6; }
|
||||||
|
SED="$ac_cv_path_SED"
|
||||||
|
rm -f conftest.sed
|
||||||
|
|
||||||
|
|
||||||
|
# Figure out what compiler warnings we can enable.
|
||||||
|
# See config/warnings.m4 for details.
|
||||||
|
|
||||||
|
WARN_CFLAGS=
|
||||||
|
save_CFLAGS="$CFLAGS"
|
||||||
|
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
|
||||||
|
-Wmissing-prototypes -Wold-style-definition \
|
||||||
|
-Wmissing-format-attribute -Wno-overlength-strings; do
|
||||||
|
as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
|
||||||
|
$as_echo_n "checking whether $CC supports $option... " >&6; }
|
||||||
|
if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
CFLAGS="$option"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
eval "$as_acx_Woption=yes"
|
||||||
|
else
|
||||||
|
eval "$as_acx_Woption=no"
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
|
||||||
|
fi
|
||||||
|
eval ac_res=\$$as_acx_Woption
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
||||||
|
$as_echo "$ac_res" >&6; }
|
||||||
|
if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
|
||||||
|
WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
CFLAGS="$save_CFLAGS"
|
||||||
|
|
||||||
|
WARN_PEDANTIC=
|
||||||
|
if test "$GCC" = yes; then :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
|
||||||
|
$as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
|
||||||
|
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS="-pedantic -Wno-long-long"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
acx_cv_prog_cc_pedantic__Wno_long_long=yes
|
||||||
|
else
|
||||||
|
acx_cv_prog_cc_pedantic__Wno_long_long=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
CFLAGS="$save_CFLAGS"
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
|
||||||
|
$as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
|
||||||
|
if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
|
||||||
|
WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Only enable with --enable-werror-always until existing warnings are
|
||||||
|
# corrected.
|
||||||
|
WERROR=
|
||||||
|
# Check whether --enable-werror-always was given.
|
||||||
|
if test "${enable_werror_always+set}" = set; then :
|
||||||
|
enableval=$enable_werror_always;
|
||||||
|
else
|
||||||
|
enable_werror_always=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $enable_werror_always = yes; then :
|
||||||
|
WERROR="$WERROR${WERROR:+ }-Werror"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Determine the noncanonical target name, for directory use.
|
||||||
|
case ${build_alias} in
|
||||||
|
"") build_noncanonical=${build} ;;
|
||||||
|
*) build_noncanonical=${build_alias} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case ${host_alias} in
|
||||||
|
"") host_noncanonical=${build_noncanonical} ;;
|
||||||
|
*) host_noncanonical=${host_alias} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case ${target_alias} in
|
||||||
|
"") target_noncanonical=${host_noncanonical} ;;
|
||||||
|
*) target_noncanonical=${target_alias} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the local prefix
|
||||||
|
local_prefix=
|
||||||
|
|
||||||
|
# Check whether --with-local-prefix was given.
|
||||||
|
if test "${with_local_prefix+set}" = set; then :
|
||||||
|
withval=$with_local_prefix; case "${withval}" in
|
||||||
|
yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
|
||||||
|
no) ;;
|
||||||
|
*) local_prefix=$with_local_prefix ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Default local prefix if it is empty
|
||||||
|
if test x$local_prefix = x; then
|
||||||
|
local_prefix=/usr/local
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Choose one or two-process fix methodology. Systems that cannot handle
|
||||||
|
# bi-directional pipes must use the two process method.
|
||||||
|
#
|
||||||
|
# Check whether --enable-twoprocess was given.
|
||||||
|
if test "${enable_twoprocess+set}" = set; then :
|
||||||
|
enableval=$enable_twoprocess; if test "x$enable_twoprocess" = xyes; then
|
||||||
|
TARGET=twoprocess
|
||||||
|
else
|
||||||
|
TARGET=oneprocess
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
case $host in
|
||||||
|
i?86-*-msdosdjgpp* | \
|
||||||
|
i?86-*-mingw32* | \
|
||||||
|
x86_64-*-mingw32* | \
|
||||||
|
*-*-beos* )
|
||||||
|
TARGET=twoprocess
|
||||||
|
;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
TARGET=oneprocess
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test $TARGET = twoprocess; then
|
||||||
|
|
||||||
|
$as_echo "#define SEPARATE_FIX_PROC 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
vax-dec-bsd* )
|
||||||
|
|
||||||
|
$as_echo "#define exit xexit" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
$as_echo "#define atexit xatexit" >>confdefs.h
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define EXE_EXT "$ac_exeext"
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
# Checks for header files.
|
||||||
|
{ $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 test "${ac_cv_header_stdc+set}" = set; 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
|
||||||
|
# define ISLOWER(c) \
|
||||||
|
(('a' <= (c) && (c) <= 'i') \
|
||||||
|
|| ('j' <= (c) && (c) <= 'r') \
|
||||||
|
|| ('s' <= (c) && (c) <= 'z'))
|
||||||
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
|
for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
|
||||||
sys/stat.h
|
sys/stat.h
|
||||||
do :
|
do :
|
||||||
|
|
|
@ -6,6 +6,7 @@ AC_CONFIG_AUX_DIR(..)
|
||||||
m4_sinclude(../libtool.m4)
|
m4_sinclude(../libtool.m4)
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
AC_PROG_SED
|
AC_PROG_SED
|
||||||
|
|
||||||
# Figure out what compiler warnings we can enable.
|
# Figure out what compiler warnings we can enable.
|
||||||
|
|
Loading…
Reference in New Issue