summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-04-24 21:26:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-04-24 21:26:32 (GMT)
commit4dcf59ae4461eec74a180d77783d9064d2aa3a58 (patch)
tree3c720b6ce64b7e81e6e28f773755fe0fb97cfde9 /configure
parent98b5a7f9c5a881c849cd536579bb121cf185e2db (diff)
downloadhdf5-4dcf59ae4461eec74a180d77783d9064d2aa3a58.zip
hdf5-4dcf59ae4461eec74a180d77783d9064d2aa3a58.tar.gz
hdf5-4dcf59ae4461eec74a180d77783d9064d2aa3a58.tar.bz2
[svn-r376] ./acconfig.h
./configure.in ./config/BlankForm ./src/H5.c Configure tries to figure out how to print `long long' types and then defines PRINTF_LL_WIDTH to be `ll' or `q' or something. It does this by running little sprintf() programs with various formats until it gets one that works. If this causes problems when cross compiling (like with parallel machines) then you may add the following to the appropriate config file: hdf5_cv_printf_ll=${hdf5_cv_printf_ll='ll'} or hdf5_cv_printf_ll=${hdf5_cv_printf_ll='q'} or hdf5_cv_printf_ll=${hdf5_cv_printf_ll='l'} ./config/intel-osf1 ./config/irix5.3 Updated these config files to match the others. This allows the `--enable-production' configure flag to work properly.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure57
1 files changed, 49 insertions, 8 deletions
diff --git a/configure b/configure
index ccfb0fc..f0d73e6 100755
--- a/configure
+++ b/configure
@@ -2082,8 +2082,49 @@ else
fi
rm -f conftest*
+echo $ac_n "checking how to print long long""... $ac_c" 1>&6
+echo "configure:2087: checking how to print long long" >&5;
+if eval "test \"`echo '$''{'hdf5_cv_printf_ll'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ for hdf5_cv_printf_ll in ll q l; do
+ if test "$cross_compiling" = yes; then
+ { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2096 "configure"
+#include "confdefs.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+ main() {char *s=malloc(128);
+ long long x = (long long)1048576 * (long long)1048576;
+ sprintf(s,"%${hdf5_cv_printf_ll}d",x);
+ exit (strcmp(s,"1099511627776"));}
+EOF
+if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+then
+ break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -fr conftest*
+fi
+
+ done
+fi
+
+echo "$ac_t""$hdf5_cv_printf_ll" 1>&6
+cat >> confdefs.h <<EOF
+#define PRINTF_LL_WIDTH "$hdf5_cv_printf_ll"
+EOF
+
+
+
echo $ac_n "checking for debug flags""... $ac_c" 1>&6
-echo "configure:2087: checking for debug flags" >&5;
+echo "configure:2128: checking for debug flags" >&5;
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
enableval="$enable_debug"
@@ -2121,7 +2162,7 @@ if test "${enable_parallel+set}" = set; then
fi
echo $ac_n "checking for parallel support""... $ac_c" 1>&6
-echo "configure:2125: checking for parallel support" >&5;
+echo "configure:2166: checking for parallel support" >&5;
@@ -2148,7 +2189,7 @@ EOF
CFLAGS="$CFLAGS $MPI_LIB"
RUNTEST="$RUNTEST"
echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6
-echo "configure:2152: checking for main in -lmpi" >&5
+echo "configure:2193: checking for main in -lmpi" >&5
ac_lib_var=`echo mpi'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2156,14 +2197,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmpi $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2160 "configure"
+#line 2201 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2190,7 +2231,7 @@ else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for main in -lmpio""... $ac_c" 1>&6
-echo "configure:2194: checking for main in -lmpio" >&5
+echo "configure:2235: checking for main in -lmpio" >&5
ac_lib_var=`echo mpio'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2198,14 +2239,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmpio $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2202 "configure"
+#line 2243 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else