Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
63b2464b
Commit
63b2464b
authored
21 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Hacks to disable C++ stuff.
parent
2d039d2b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+27
-19
27 additions, 19 deletions
configure.ac
with
27 additions
and
19 deletions
configure.ac
+
27
−
19
View file @
63b2464b
...
@@ -53,7 +53,7 @@ dnl with the CFLAGS to the user. Mmmh.
...
@@ -53,7 +53,7 @@ dnl with the CFLAGS to the user. Mmmh.
dnl
dnl
test -z "$CFLAGS" && CFLAGS=" "
test -z "$CFLAGS" && CFLAGS=" "
test -z "$FFLAGS" && FFLAGS=" "
test -z "$FFLAGS" && FFLAGS=" "
test -z "$CXXFLAGS" && CXXFLAGS=" "
dnl
test -z "$CXXFLAGS" && CXXFLAGS=" "
dnl
dnl
dnl ****************************************************************************
dnl ****************************************************************************
dnl
dnl
...
@@ -76,6 +76,14 @@ dnl
...
@@ -76,6 +76,14 @@ dnl
if test `basename $CC` = icc; then
if test `basename $CC` = icc; then
GCC=yes
GCC=yes
fi
fi
dnl
dnl work around a bug in libtool which pulls in the C++ compiler which
dnl we do not want at the moment. Remove the next two lines when this
dnl changes!
dnl
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG],[:])
AC_DEFUN([AC_LIBTOOL_CXX],[:])
dnl *********************** end CXX hack ***************************************
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
if test `basename $CC` = icc; then
if test `basename $CC` = icc; then
GCC=no
GCC=no
...
@@ -92,19 +100,20 @@ if test -z "${ALBERTA_DEBUG_CFLAGS}"; then
...
@@ -92,19 +100,20 @@ if test -z "${ALBERTA_DEBUG_CFLAGS}"; then
ALBERTA_DEBUG_CFLAGS="-g"
ALBERTA_DEBUG_CFLAGS="-g"
fi
fi
fi
fi
AC_
SUBST(
ALBERTA_DEBUG_CFLAGS)
AC_
ARG_VAR([
ALBERTA_DEBUG_CFLAGS
],[Compiler-flags used to create the debug-enabled libraries]
)
dnl
dnl
dnl ****************************************************************************
dnl ****************************************************************************
dnl
dnl
dnl set default optimizing flags, but allow for user-override
dnl set default optimizing flags, but allow for user-override
dnl
dnl
if test
"${CFLAGS}" = "
"; then
if test
-z "${ALBERTA_OPTIMISE_CFLAGS}
"; then
if test "$GCC" = yes; then
if test "$GCC" = yes; then
CFLAGS="-O3"
ALBERTA_OPTIMISE_
CFLAGS="-O3"
else
else
CFLAGS="-O"
ALBERTA_OPTIMISE_
CFLAGS="-O"
fi
fi
fi
fi
AC_ARG_VAR([ALBERTA_OPTIMISE_CFLAGS],[Compiler-flags used to create the optimised libraries])
if test "${FFLAGS}" = " "; then
if test "${FFLAGS}" = " "; then
if test "$GCC" = yes; then
if test "$GCC" = yes; then
FFLAGS="-O3"
FFLAGS="-O3"
...
@@ -112,13 +121,13 @@ if test "${FFLAGS}" = " "; then
...
@@ -112,13 +121,13 @@ if test "${FFLAGS}" = " "; then
FFLAGS="-O"
FFLAGS="-O"
fi
fi
fi
fi
if test "${CXXFLAGS}" = " "; then
dnl
if test "${CXXFLAGS}" = " "; then
if test "$GCC" = yes; then
dnl
if test "$GCC" = yes; then
CXXFLAGS="-O3"
dnl
CXXFLAGS="-O3"
else
dnl
else
CXXFLAGS="-O"
dnl
CXXFLAGS="-O"
fi
dnl
fi
fi
dnl
fi
dnl
dnl
dnl ****************************************************************************
dnl ****************************************************************************
dnl
dnl
...
@@ -142,9 +151,6 @@ AC_CHECK_FUNCS([getopt_long],[],
...
@@ -142,9 +151,6 @@ AC_CHECK_FUNCS([getopt_long],[],
GNUCOMPAT_INCLUDE_PATH='$(top_srcdir)/gnu-compat/'])
GNUCOMPAT_INCLUDE_PATH='$(top_srcdir)/gnu-compat/'])
AC_SUBST([GNUCOMPAT_INCLUDE_PATH])
AC_SUBST([GNUCOMPAT_INCLUDE_PATH])
# look for X11 library paths AND sets all necessary flags (X_CFLAGS) e.g.
AC_PATH_XTRA
# Checks for header files.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDC
AC_CHECK_HEADERS([malloc.h unistd.h X11/Xlib.h X11/Xutil.h],,
AC_CHECK_HEADERS([malloc.h unistd.h X11/Xlib.h X11/Xutil.h],,
...
@@ -184,7 +190,7 @@ esac
...
@@ -184,7 +190,7 @@ esac
dnl
dnl
dnl check for BLAS library. The BLAS may come under different names. We default
dnl check for BLAS library. The BLAS may come under different names. We default
dnl to -lblas, but other possibilities are sunperf, atlas, c
p
ml (Alpha AXP)
dnl to -lblas, but other possibilities are sunperf, atlas, c
x
ml (Alpha AXP)
dnl etc etc etc etc etc etc etc etc etc etc ...........................
dnl etc etc etc etc etc etc etc etc etc etc ...........................
dnl
dnl
dnl Let the user decide what it wants (handled by ALBERTA_CHECK_PACKAGE()
dnl Let the user decide what it wants (handled by ALBERTA_CHECK_PACKAGE()
...
@@ -210,7 +216,9 @@ dnl
...
@@ -210,7 +216,9 @@ dnl
ALBERTA_CHECK_PACKAGE(gltools, gltools, , ${X_ALL_LIBS}, glmesh.h,,,optional)
ALBERTA_CHECK_PACKAGE(gltools, gltools, , ${X_ALL_LIBS}, glmesh.h,,,optional)
dnl
dnl
dnl some defines to enable building of alberta_movi
dnl Some defines to enable building of alberta_movi. This is more
dnl complicated than necessary so that it is easier to build a
dnl stand-alone version of albert_movi.
dnl
dnl
ALBERTA_CHECK_PACKAGE(grape, gr, , ${OPENGL_LIB} ${X_ALL_LIBS}, grape.h,,, optional)
ALBERTA_CHECK_PACKAGE(grape, gr, , ${OPENGL_LIB} ${X_ALL_LIBS}, grape.h,,, optional)
AM_CONDITIONAL(GRAPE, test -n "${GRAPE_LIB}")
AM_CONDITIONAL(GRAPE, test -n "${GRAPE_LIB}")
...
@@ -249,7 +257,7 @@ dnl NOTA BENE: using NEIGH_IN_EL=1 is probably buggy.], 0)
...
@@ -249,7 +257,7 @@ dnl NOTA BENE: using NEIGH_IN_EL=1 is probably buggy.], 0)
# Debugging
# Debugging
#
#
SIMPLE_ENABLE_FLAG([debug], [disable building of ALBERTA libraries with debugging information.], 1)
SIMPLE_ENABLE_FLAG([debug], [disable building of ALBERTA libraries with debugging information.], 1)
-
# building of parametric versions is disabled by default, but can be
# building of parametric versions is disabled by default, but can be
# enabled using --enable-DIMDIMOFWORLD-dimension switches (the macros
# enabled using --enable-DIMDIMOFWORLD-dimension switches (the macros
# below do _not_ enable the builds, but simply implement
# below do _not_ enable the builds, but simply implement
...
@@ -267,7 +275,7 @@ ALBERTA_DIMENSION_ENABLE(2,3)
...
@@ -267,7 +275,7 @@ ALBERTA_DIMENSION_ENABLE(2,3)
AC_CONFIG_COMMANDS_POST([
AC_CONFIG_COMMANDS_POST([
if ! test "$srcdir" = \. ; then
if ! test "$srcdir" = \. ; then
AC_MSG_
RESULT
([Copying $srcdir/DEMO to current directory])
AC_MSG_
CHECKING
([Copying $srcdir/DEMO to current directory])
( cd $srcdir && tar cf - DEMO ) | tar xf -
( cd $srcdir && tar cf - DEMO ) | tar xf -
rm -rf `find DEMO -name CVS`
rm -rf `find DEMO -name CVS`
fi])
fi])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment