]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move shared lib detection to the right place again. No use to do it
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 21 Feb 2001 16:43:24 +0000 (16:43 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 21 Feb 2001 16:43:24 +0000 (16:43 +0000)
before compiler is detected.

git-svn-id: https://svn.dealii.org/trunk@4005 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index 5374e926ce2a178e9fa2c76df4d386d145149057..27d44739359dbf98301513574d84026d10596605 100644 (file)
@@ -44,54 +44,6 @@ AC_LANG_CPLUSPLUS
 
 
 
-
-dnl -------------------------------------------------------------
-dnl Test whether shared libraries support is requested.
-dnl Default is yes, but value will be adjusted to operating system
-dnl below.
-dnl This has been moved before the compiler section, so CXXFLAGS and
-dnl LDFLAGS can be set accordingly
-dnl -------------------------------------------------------------
-AC_ARG_ENABLE(shared,
-[  --enable-shared Set compiler flags to generate shared libraries],
-    enableshared=$enableval,
-    enableshared=yes)
-
-dnl On AIX and alpha, shared libs don't work for us at present, so 
-dnl disable them (we should probably use libtool there). Likewise on
-dnl CygWin Windows systems, where we don't know how to create shared
-dnl libs at all (at least at present)
-case "$target" in
-   *-aix* | alpha*-linux* | alpha*-osf4* | *cygwin )
-          AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead)
-          enableshared=no 
-          ;;
-esac
-
-
-dnl Set compile flags accordingly
-if test $enableshared = yes ; then
-  AC_MSG_RESULT(configuring for shared libraries)
-  CFLAGS="$CFLAGS -fPIC"
-  CXXFLAGS="$CXXFLAGS -fPIC"
-  LDFLAGS="$LDFLAGS -fPIC"
-
-  lib_suffix=.so;
-else
-  AC_MSG_RESULT(configuring for static libraries)
-dnl Define these variables so they are not filled with default values later
-  CFLAGS="$CFLAGS "
-  CXXFLAGS="$CXXFLAGS "
-  LDFLAGS="$LDFLAGS "
-
-  lib_suffix=.a;
-fi
-
-
-AC_SUBST(enableshared)
-AC_SUBST(lib_suffix)
-
-
 dnl -------------------------------------------------------------
 dnl Find external programs
 dnl -------------------------------------------------------------
@@ -164,6 +116,57 @@ AC_SUBST(GXX_VERSION)
 
 
 
+dnl -------------------------------------------------------------
+dnl Next test whether shared libraries support is requested. This
+dnl has to be done before other flags are set, as they might depend
+dnl on whether we want to use shared libs.
+dnl 
+dnl Default to shared libs is yes, but value will be adjusted to 
+dnl operating system below.
+dnl -------------------------------------------------------------
+AC_ARG_ENABLE(shared,
+[  --enable-shared Set compiler flags to generate shared libraries],
+    enableshared=$enableval,
+    enableshared=yes)
+
+dnl On AIX and alpha, shared libs don't work for us at present, so 
+dnl disable them (we should probably use libtool there). Likewise on
+dnl CygWin Windows systems, where we don't know how to create shared
+dnl libs at all (at least at present)
+case "$target" in
+   *-aix* | alpha*-linux* | alpha*-osf4* | *cygwin )
+          AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead)
+          enableshared=no 
+          ;;
+esac
+
+
+dnl Set compile flags accordingly
+if test $enableshared = yes ; then
+  AC_MSG_RESULT(configuring for shared libraries)
+  CFLAGS="$CFLAGS -fPIC"
+  CXXFLAGS="$CXXFLAGS -fPIC"
+  LDFLAGS="$LDFLAGS -fPIC"
+
+  lib_suffix=.so;
+else
+  AC_MSG_RESULT(configuring for static libraries)
+dnl Define these variables so they are not filled with default values later
+  CFLAGS="$CFLAGS "
+  CXXFLAGS="$CXXFLAGS "
+  LDFLAGS="$LDFLAGS "
+
+  lib_suffix=.a;
+fi
+
+
+AC_SUBST(enableshared)
+AC_SUBST(lib_suffix)
+
+
+
+
+
 dnl -------------------------------------------------------------
 dnl Set compiler flags to their default values. They will be 
 dnl modified according to other options further down below

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.