summaryrefslogtreecommitdiff
path: root/lib/make
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-02-15 22:49:14 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-02-15 22:49:14 +0000
commit8aeae751ec354d8e0cde18839b70bd3cef040119 (patch)
tree1d6ed45312231d64a952fd69bba17bc737cdcf66 /lib/make
parent61cfdaf85ad0237ecd7375639f8b1e80d7bcfd14 (diff)
Added detection of string.h
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1381 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r--lib/make/cctk_Config.h.in1
-rwxr-xr-xlib/make/configure46
-rw-r--r--lib/make/configure.in2
3 files changed, 46 insertions, 3 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in
index f2191610..c7f339cd 100644
--- a/lib/make/cctk_Config.h.in
+++ b/lib/make/cctk_Config.h.in
@@ -70,6 +70,7 @@
#undef TIME_WITH_SYS_TIME
#undef HAVE_TIME_H
#undef HAVE_UNISTD_H
+#undef HAVE_STRING_H
/* Timing stuff */
diff --git a/lib/make/configure b/lib/make/configure
index bfd88dd2..8635c0dd 100755
--- a/lib/make/configure
+++ b/lib/make/configure
@@ -2748,13 +2748,53 @@ else
fi
done
+for cctk_hdr in string.h
+do
+cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
+echo "configure:2756: checking for $cctk_hdr" >&5
+if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2761 "configure"
+#include "confdefs.h"
+#include <$cctk_hdr>
+int main() {
+return 0;
+; return 0; }
+EOF
+if { (eval echo configure:2768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ eval "cctk_cv_header_$cctk_safe=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "cctk_cv_header_$cctk_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$cctk_cv_header_'$cctk_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cctk_tr_hdr=HAVE_`echo $cctk_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+#define $cctk_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:2753: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:2793: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2758 "configure"
+#line 2798 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -2763,7 +2803,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
-if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
diff --git a/lib/make/configure.in b/lib/make/configure.in
index b1a35397..aa623283 100644
--- a/lib/make/configure.in
+++ b/lib/make/configure.in
@@ -234,6 +234,8 @@ dnl Include file stuff
CCTK_CHECK_HEADERS(sys/time.h)
CCTK_CHECK_HEADERS(unistd.h)
+CCTK_CHECK_HEADERS(string.h)
+
AC_HEADER_TIME
dnl Misc stuff