]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only generate PETSc documentation if PETSc is present.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 May 2004 13:34:50 +0000 (13:34 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 May 2004 13:34:50 +0000 (13:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@9172 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure
deal.II/configure.in
deal.II/doc/doxygen/options.dox.in

index 54c686da127d24fa9f21b6fc4d3833b3f03b0bab..81b4885b419fe6a9db384fe48b2cc3459bda5c88 100644 (file)
@@ -3773,6 +3773,12 @@ AC_DEFUN(DEAL_II_CONFIGURE_PETSC, dnl
     AC_DEFINE(DEAL_II_USE_PETSC, 1,
               [Defined if a PETSc installation was found and is going
                to be used])
+    dnl Set an additional variable (not via AC_DEFINE, since we don't want
+    dnl to have it in config.h) which we can use in doc/doxygen/options.dox.in.
+    dnl If we have PETSc, then the value of this variable expands to
+    dnl defining the string "DEAL_II_USE_PETSC" for the preprocessor. If
+    dnl we don't have no PETSc, then it does not define this string.
+    DEAL_II_DEFINE_DEAL_II_USE_PETSC=DEAL_II_USE_PETSC
   fi
 
 
index f4d8fef1be023102455dff091ea948cf0bb3db87..8adb8ef9605f631ef5501f059e5c791ee408735a 100755 (executable)
@@ -273,7 +273,7 @@ PACKAGE_BUGREPORT=
 
 ac_unique_file="deal.II"
 ac_subdirs_all="$ac_subdirs_all contrib tests"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DEAL_II_VERSION DEAL_II_MAJOR DEAL_II_MINOR DEAL_II_PATH DEAL2_DIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GXX_VERSION CXXFLAGSG CXXFLAGSO CXXFLAGSPIC SHLIBLD LDFLAGSPIC enablemultithreading withmultithreading F77 F77_VERSION F77FLAGSO F77FLAGSG F77FLAGSPIC F77LIBS enableshared lib_suffix AR RANLIB ac_ct_RANLIB enablemultigrid TECPLOT_LIBRARY_PATH TECPLOT_INCLUDE_PATH USE_CONTRIB_HSL USE_CONTRIB_PETSC DEAL_II_PETSC_DIR DEAL_II_PETSC_ARCH DEAL_II_PETSC_VERSION_MAJOR DEAL_II_PETSC_VERSION_MINOR DEAL_II_PETSC_VERSION_SUBMINOR USE_CONTRIB_METIS DEAL_II_METIS_DIR kdocdir kdocversion DOXYGEN DOT DEAL_II_HAVE_DOT PERL subdirs LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DEAL_II_VERSION DEAL_II_MAJOR DEAL_II_MINOR DEAL_II_PATH DEAL2_DIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GXX_VERSION CXXFLAGSG CXXFLAGSO CXXFLAGSPIC SHLIBLD LDFLAGSPIC enablemultithreading withmultithreading F77 F77_VERSION F77FLAGSO F77FLAGSG F77FLAGSPIC F77LIBS enableshared lib_suffix AR RANLIB ac_ct_RANLIB enablemultigrid TECPLOT_LIBRARY_PATH TECPLOT_INCLUDE_PATH USE_CONTRIB_HSL USE_CONTRIB_PETSC DEAL_II_PETSC_DIR DEAL_II_PETSC_ARCH DEAL_II_PETSC_VERSION_MAJOR DEAL_II_PETSC_VERSION_MINOR DEAL_II_PETSC_VERSION_SUBMINOR DEAL_II_DEFINE_DEAL_II_USE_PETSC USE_CONTRIB_METIS DEAL_II_METIS_DIR kdocdir kdocversion DOXYGEN DOT DEAL_II_HAVE_DOT PERL subdirs LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -7860,6 +7860,7 @@ cat >>confdefs.h <<\_ACEOF
 #define DEAL_II_USE_PETSC 1
 _ACEOF
 
+                        DEAL_II_DEFINE_DEAL_II_USE_PETSC=DEAL_II_USE_PETSC
   fi
 
 
@@ -7940,6 +7941,7 @@ echo "${ECHO_T}$PETSC_VERSION" >&6
 
 
 
+
     echo "$as_me:$LINENO: checking for Metis library directory" >&5
 echo $ECHO_N "checking for Metis library directory... $ECHO_C" >&6
 
@@ -8999,6 +9001,7 @@ s,@DEAL_II_PETSC_ARCH@,$DEAL_II_PETSC_ARCH,;t t
 s,@DEAL_II_PETSC_VERSION_MAJOR@,$DEAL_II_PETSC_VERSION_MAJOR,;t t
 s,@DEAL_II_PETSC_VERSION_MINOR@,$DEAL_II_PETSC_VERSION_MINOR,;t t
 s,@DEAL_II_PETSC_VERSION_SUBMINOR@,$DEAL_II_PETSC_VERSION_SUBMINOR,;t t
+s,@DEAL_II_DEFINE_DEAL_II_USE_PETSC@,$DEAL_II_DEFINE_DEAL_II_USE_PETSC,;t t
 s,@USE_CONTRIB_METIS@,$USE_CONTRIB_METIS,;t t
 s,@DEAL_II_METIS_DIR@,$DEAL_II_METIS_DIR,;t t
 s,@kdocdir@,$kdocdir,;t t
index d35a5893b83175ea96dc110f6cef85cf4114b113..09d9497c465c7de6b183641281563e4fda980774 100644 (file)
@@ -345,6 +345,7 @@ AC_SUBST(DEAL_II_PETSC_ARCH)
 AC_SUBST(DEAL_II_PETSC_VERSION_MAJOR)
 AC_SUBST(DEAL_II_PETSC_VERSION_MINOR)
 AC_SUBST(DEAL_II_PETSC_VERSION_SUBMINOR)
+AC_SUBST(DEAL_II_DEFINE_DEAL_II_USE_PETSC)
 
 DEAL_II_CONFIGURE_METIS
 AC_SUBST(USE_CONTRIB_METIS)
index 4db1eaff385196498af9c524d82d84cb029a9ae0..8d75853322321bb76979e2709e41b78144cccb18 100644 (file)
@@ -914,7 +914,7 @@ INCLUDE_FILE_PATTERNS  =
 # or name=definition (no spaces). If the definition and the = are 
 # omitted =1 is assumed.
 
-PREDEFINED             = DEBUG=1 DEAL_II_USE_PETSC=7
+PREDEFINED             = DEBUG=1 @DEAL_II_DEFINE_DEAL_II_USE_PETSC@
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
 # this tag can be used to specify a list of macro names that should be expanded. 

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.