PACKAGE_STRING=
PACKAGE_BUGREPORT=
-ac_unique_file="cppmain.c"
+ac_unique_file="sdcpp.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
EGREP
warn_cflags
SET_MAKE
+AWK
LN
LN_S
RANLIB
fi
# Find some useful tools
+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
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ echo "$as_me:$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
+ { echo "$as_me:$LINENO: result: $AWK" >&5
+echo "${ECHO_T}$AWK" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+# We need awk to run opts.sh (to create options.c and options.h).
+# Bail out if it's missing.
+case ${AWK} in
+ "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
+echo "$as_me: error: can't build without awk, bailing out" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
{ echo "$as_me:$LINENO: checking whether ln works" >&5
echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
if test "${gcc_cv_prog_LN+set}" = set; then
ac_compiler_gnu=$ac_cv_c_compiler_gnu
cat > conftest.$ac_ext <<EOF
-#line 5126 "configure"
+#line 5177 "configure"
#include "confdefs.h"
#ifdef HAVE_LIMITS_H
-for ac_func in clock strchr strrchr lstat
+
+for ac_func in clock strsignal strchr strrchr lstat
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
# We will need to find libiberty.h and ansidecl.h
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
-for ac_func in getenv abort errno \
+for ac_func in getenv abort strsignal errno \
malloc realloc calloc free clock
do
ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
#define HAVE_DECL_ABORT 1
_ACEOF
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_DECL_STRSIGNAL 1
+_ACEOF
+
cat >>confdefs.h <<\_ACEOF
#define HAVE_DECL_ERRNO 1
_ACEOF
EGREP!$EGREP$ac_delim
warn_cflags!$warn_cflags$ac_delim
SET_MAKE!$SET_MAKE$ac_delim
+AWK!$AWK$ac_delim
LN!$LN$ac_delim
LN_S!$LN_S$ac_delim
RANLIB!$RANLIB$ac_delim
out_file!$out_file$ac_delim
out_object_file!$out_object_file$ac_delim
symbolic_link!$symbolic_link$ac_delim
-thread_file!$thread_file$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+thread_file!$thread_file$ac_delim
c_target_objs!$c_target_objs$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5