#! /bin/sh
-# From configure.in Revision: 1.218 .
+# From configure.in Revision: 1.219 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for deal.II 5.3.pre.
#
is included by the argument -llapacklib. If no
argument is given, use -llapack. Default is not to
use -llapack.
+ --with-zlib=zlib use the compression library zlib for gzipped input and output
+ and link it with -lzlib (the default is -lz).
+ Make sure the library is in the search path of ld.
--with-cpu=cpu Optimize specifically for the given CPU type,
rather than just generating code for this
processor family.
else
echo "$as_me:$LINENO: checking UmfPack library" >&5
echo $ECHO_N "checking UmfPack library... $ECHO_C" >&6
- UMFPACK_LIB='$(LIBDIR)/liblac_umfpack$(lib-suffix)'
UMFPACK_INCLUDE_DIR='-I$D/contrib/umfpack/UMFPACK/Include'
USE_CONTRIB_UMFPACK='yes'
echo "$as_me:$LINENO: result: using included version" >&5
fi;
+if test "x$with_zlib" = "x" ; then
+ with_zlib="yes"
+fi
+
+
+# Check whether --with-zlib or --without-zlib was given.
+if test "${with_zlib+set}" = set; then
+ withval="$with_zlib"
+
+ if test "x$withval" != "xyes" ; then
+ as_ac_Lib=`echo "ac_cv_lib_$withval''_crc32" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for crc32 in -l$withval" >&5
+echo $ECHO_N "checking for crc32 in -l$withval... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$withval $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char crc32 ();
+int
+main ()
+{
+crc32 ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Lib=no"
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
+ LIBS="-l$withval $LIBS"
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBZ 1
+_ACEOF
+
+
+fi
+
+ else
+
+echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
+echo $ECHO_N "checking for crc32 in -lz... $ECHO_C" >&6
+if test "${ac_cv_lib_z_crc32+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lz $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char crc32 ();
+int
+main ()
+{
+crc32 ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_z_crc32=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_z_crc32=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
+echo "${ECHO_T}$ac_cv_lib_z_crc32" >&6
+if test $ac_cv_lib_z_crc32 = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBZ 1
+_ACEOF
+
+ LIBS="-lz $LIBS"
+
+fi
+
+ fi
+
+fi;
+
+
echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
# deal.II top level directory
D=..
+# get options which hold for all files of the project
+include $D/common/Make.global_options
+
# create lists of file names
cc-files = $(shell echo source/*.cc)
-o-files-base = $(addprefix $(LIBDIR)/lac/, $(patsubst source/%,%,$(cc-files:.cc=.$(OBJEXT))))
-o-files = $(sort $(o-files-base))
-go-files = $(o-files:.$(OBJEXT)=.g.$(OBJEXT))
+o-files-base = $(sort $(addprefix $(LIBDIR)/lac/, $(patsubst source/%,%,$(cc-files:.cc=.$(OBJEXT)))))
+o-files = $(o-files-base)
+go-files = $(o-files-base:.$(OBJEXT)=.g.$(OBJEXT))
h-files = $(sort $(shell echo include/lac/*.h))
-# get options which hold for all files of the project
-include $D/common/Make.global_options
+# if umfpack was configured, simply link all the umfpack files into liblac.
+# these object files should have been generated before we got to the present
+# directory
+ifeq ($(USE_CONTRIB_UMFPACK),yes)
+ umfpack-files = $(sort $(shell echo $(LIBDIR)/contrib/umfpack/*.$(OBJEXT)))
+ o-files += $(umfpack-files)
+ go-files += $(umfpack-files)
+endif
# production rules
deplibs.o += $(lib-contrib-petsc.o)
endif
- # and UMFPACK
- ifeq ($(USE_CONTRIB_UMFPACK),yes)
- deplibs.g += $(LIBDIR)/liblac_umfpack$(lib-suffix)
- deplibs.o += $(LIBDIR)/liblac_umfpack$(lib-suffix)
- endif
-
# for cygwin, also llapack and such are necessary
# we better link all libraries mentioned in $(libs)
ifeq ($(findstring cygwin,$(TARGET)),cygwin)