1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix.
4 if test -z "$inhibit_glue"; then
5 # For make_errlist.c, used in make_errlist.
8 for ac_func in strerror
10 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11 echo "$as_me:$LINENO: checking for $ac_func" >&5
12 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13 if eval "test \"\${$as_ac_var+set}\" = set"; then
14 echo $ECHO_N "(cached) $ECHO_C" >&6
16 cat >conftest.$ac_ext <<_ACEOF
19 cat confdefs.h >>conftest.$ac_ext
20 cat >>conftest.$ac_ext <<_ACEOF
22 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24 #define $ac_func innocuous_$ac_func
26 /* System header to define __stub macros and hopefully few prototypes,
27 which can conflict with char $ac_func (); below.
28 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29 <limits.h> exists even on freestanding compilers. */
39 /* Override any gcc2 internal prototype to avoid an error. */
44 /* We use char because int might match the return type of a gcc2
45 builtin and then its argument prototype would still apply. */
47 /* The GNU C library defines this for functions which it implements
48 to always fail with ENOSYS. Some functions are actually named
49 something starting with __ and the normal name is an alias. */
50 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53 char (*f) () = $ac_func;
67 rm -f conftest.$ac_objext conftest$ac_exeext
68 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69 (eval $ac_link) 2>conftest.er1
71 grep -v '^ *+' conftest.er1 >conftest.err
74 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75 (exit $ac_status); } &&
76 { ac_try='test -z "$ac_c_werror_flag"
77 || test ! -s conftest.err'
78 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
81 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82 (exit $ac_status); }; } &&
83 { ac_try='test -s conftest$ac_exeext'
84 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87 echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 (exit $ac_status); }; }; then
91 echo "$as_me: failed program was:" >&5
92 sed 's/^/| /' conftest.$ac_ext >&5
96 rm -f conftest.err conftest.$ac_objext \
97 conftest$ac_exeext conftest.$ac_ext
99 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
101 if test `eval echo '${'$as_ac_var'}'` = yes; then
102 cat >>confdefs.h <<_ACEOF
103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1