summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-09 21:16:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-09 21:16:15 (GMT)
commit1290c4808d3e9890c765b1445f66b823c9026734 (patch)
tree9e58157806d50d98464de76f0db679cd9d793684
parenta771c6fc66cb04d2d104eba05f6b3fd10737cf65 (diff)
downloadhdf5-1290c4808d3e9890c765b1445f66b823c9026734.zip
hdf5-1290c4808d3e9890c765b1445f66b823c9026734.tar.gz
hdf5-1290c4808d3e9890c765b1445f66b823c9026734.tar.bz2
[svn-r3251] Purpose:
New configure feature. Description: The H5private.h header file was re-defining the strdup function on several platforms, generating a warning. Solution: Detect if the system defines a strdup function and don't re-define it, if so. Platforms tested: FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4)
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index d3528fb..f44df01 100755
--- a/configure
+++ b/configure
@@ -8799,7 +8799,7 @@ else
fi
done
-for ac_func in compress2 setsysinfo longjmp signal sigaction
+for ac_func in compress2 setsysinfo longjmp signal sigaction strdup
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8806: checking for $ac_func" >&5
diff --git a/configure.in b/configure.in
index 0e28e50..3d53bfc 100644
--- a/configure.in
+++ b/configure.in
@@ -1025,7 +1025,7 @@ dnl Check for functions.
dnl
AC_CHECK_FUNCS(getpwuid gethostname system getrusage fork waitpid)
AC_CHECK_FUNCS(gettimeofday BSDgettimeofday difftime snprintf vsnprintf)
-AC_CHECK_FUNCS(compress2 setsysinfo longjmp signal sigaction)
+AC_CHECK_FUNCS(compress2 setsysinfo longjmp signal sigaction strdup)
AC_TRY_COMPILE([#include<sys/types.h>],
[off64_t n = 0;],
AC_CHECK_FUNCS(lseek64 fseek64),