[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd configure configure.in
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd configure configure.in |
Date: |
Mon, 02 Feb 2009 14:51:03 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 09/02/02 14:51:03
Modified files:
. : configure configure.in
Log message:
More broken LAPACK install checks
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure?cvsroot=libcvd&r1=1.136&r2=1.137
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure.in?cvsroot=libcvd&r1=1.137&r2=1.138
Patches:
Index: configure
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -b -r1.136 -r1.137
--- configure 24 Jan 2009 19:30:05 -0000 1.136
+++ configure 2 Feb 2009 14:51:02 -0000 1.137
@@ -4375,8 +4375,6 @@
-
-
################################################################################
#
# Compiler flags and optimization
@@ -8743,6 +8741,8 @@
+
+
if test "$with_lapack" != no && test "$have_lapack" != yes
then
if test "$with_lapack" == ""
@@ -8868,6 +8868,125 @@
save_CXXFLAGS="$CXXFLAGS"
a=
+ { $as_echo "$as_me:$LINENO: checking if blas is needed for LAPACK" >&5
+$as_echo_n "checking if blas is needed for LAPACK... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: " >&5
+$as_echo "" >&6; }
+ LIBS="$LIBS -lblas"
+
+{ $as_echo "$as_me:$LINENO: checking for zupmtr_ in -llapack" >&5
+$as_echo_n "checking for zupmtr_ in -llapack... " >&6; }
+if test "${ac_cv_lib_lapack_zupmtr_+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-llapack $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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char zupmtr_ ();
+int
+main ()
+{
+return zupmtr_ ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_lapack_zupmtr_=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_lapack_zupmtr_=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_zupmtr_" >&5
+$as_echo "$ac_cv_lib_lapack_zupmtr_" >&6; }
+if test "x$ac_cv_lib_lapack_zupmtr_" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBLAPACK 1
+_ACEOF
+
+ LIBS="-llapack $LIBS"
+
+else
+ a=1
+fi
+
+
+
+ if test x$a == x
+ then
+ cat >>confdefs.h <<\_ACEOF
+#define CVD_HAVE_LAPACK 1
+_ACEOF
+
+ have_lapack=yes
+
+ options="$options lapack"
+
+ else
+ LIBS="$save_LIBS"
+ CXXFLAGS="$save_CXXFLAGS"
+ fi
+ fi
+
+ if test "$have_lapack" != yes
+ then
+ :
+
+ fi
+
+
+
+ if test "$with_lapack" != no && test "$have_lapack" != yes
+ then
+ if test "$with_lapack" == ""
+ then
+ with_lapack=yes
+ fi
+
+ save_LIBS="$LIBS"
+ save_CXXFLAGS="$CXXFLAGS"
+ a=
+
{ $as_echo "$as_me:$LINENO: checking if f2c is needed for LAPACK" >&5
$as_echo_n "checking if f2c is needed for LAPACK... " >&6; }
{ $as_echo "$as_me:$LINENO: result: " >&5
@@ -8987,8 +9106,8 @@
save_CXXFLAGS="$CXXFLAGS"
a=
- { $as_echo "$as_me:$LINENO: checking if f2c is needed for LAPACK" >&5
-$as_echo_n "checking if f2c is needed for LAPACK... " >&6; }
+ { $as_echo "$as_me:$LINENO: checking if g2c is needed for LAPACK" >&5
+$as_echo_n "checking if g2c is needed for LAPACK... " >&6; }
{ $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
LIBS="$LIBS -lg2c"
@@ -9106,8 +9225,8 @@
save_CXXFLAGS="$CXXFLAGS"
a=
- { $as_echo "$as_me:$LINENO: checking if f2c is needed for LAPACK" >&5
-$as_echo_n "checking if f2c is needed for LAPACK... " >&6; }
+ { $as_echo "$as_me:$LINENO: checking if gfortran is needed for LAPACK"
>&5
+$as_echo_n "checking if gfortran is needed for LAPACK... " >&6; }
{ $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
LIBS="$LIBS -lgfortran"
@@ -10296,6 +10415,8 @@
+
+
if test "$with_tiff" != no && test "$have_tiff" != yes
then
if test "$with_tiff" == ""
Index: configure.in
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure.in,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -b -r1.137 -r1.138
--- configure.in 24 Jan 2009 19:30:09 -0000 1.137
+++ configure.in 2 Feb 2009 14:51:03 -0000 1.138
@@ -154,8 +154,6 @@
fi
fi])
-
-
################################################################################
#
# Compiler flags and optimization
@@ -650,11 +648,20 @@
AC_CHECK_FUNC(dgesvd_, [], [a=1])
])
+
+
CHECK_FOR_OPTION(lapack, [
AC_CHECK_LIB(lapack, dgesvd_, [], [a=1])
])
CHECK_FOR_OPTION(lapack, [
+ AC_MSG_CHECKING(if blas is needed for LAPACK)
+ AC_MSG_RESULT()
+ APPEND(LIBS, -lblas)
+ AC_CHECK_LIB(lapack, zupmtr_, [], [a=1])
+])
+
+CHECK_FOR_OPTION(lapack, [
AC_MSG_CHECKING(if f2c is needed for LAPACK)
AC_MSG_RESULT()
APPEND(LIBS, -lf2c)
@@ -662,14 +669,14 @@
])
CHECK_FOR_OPTION(lapack, [
- AC_MSG_CHECKING(if f2c is needed for LAPACK)
+ AC_MSG_CHECKING(if g2c is needed for LAPACK)
AC_MSG_RESULT()
APPEND(LIBS, -lg2c)
AC_CHECK_LIB(lapack, dpotrs_, [], [a=1])
])
CHECK_FOR_OPTION(lapack, [
- AC_MSG_CHECKING(if f2c is needed for LAPACK)
+ AC_MSG_CHECKING(if gfortran is needed for LAPACK)
AC_MSG_RESULT()
APPEND(LIBS, -lgfortran)
AC_CHECK_LIB(lapack, dpotri_, [], [a=1])
@@ -730,6 +737,8 @@
AC_CHECK_LIB(tiff, TIFFReadRGBAImage,[],[a=1])
])
+
+
CHECK_FOR_OPTION(tiff, [
AC_MSG_CHECKING([if perhaps libtiff requires zlib])
AC_MSG_RESULT([])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd configure configure.in,
Edward Rosten <=