Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
fc467ce1
Commit
fc467ce1
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
--enable-static
parent
6ef7fe4c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+27
-15
27 additions, 15 deletions
configure
configure.in
+19
-11
19 additions, 11 deletions
configure.in
with
46 additions
and
26 deletions
configure
+
27
−
15
View file @
fc467ce1
...
...
@@ -830,16 +830,18 @@ if test -n "$ac_init_help"; then
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-gsl use GSL as numerical toolkit (default=yes)
--enable-gui build the graphical user interface (default=yes)
--enable-parallel enable parallel version (default=no)
--enable-triangle compile Triangle if available (default=yes)
--enable-gsl use GSL as numerical toolkit (default=yes)
--enable-static GCC only: build a statically linked executable
(default=no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gsl-prefix=PFX prefix where GSL is installed
--with-fltk-prefix=PFX prefix where FLTK is installed
--with-gsl-prefix=PFX prefix where GSL is installed
--with-jpeg-prefix=PFX prefix where the JPEG code is installed
Some influential environment variables:
...
...
@@ -1203,14 +1205,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Check whether --with-gsl-prefix or --without-gsl-prefix was given.
if
test
"
${
with_gsl_prefix
+set
}
"
=
set
;
then
withval
=
"
$with_gsl_prefix
"
GSL_PREFIX
=
$withval
else
GSL_PREFIX
=
"
$GSL_DIR
"
fi
;
# Check whether --with-fltk-prefix or --without-fltk-prefix was given.
if
test
"
${
with_fltk_prefix
+set
}
"
=
set
;
then
withval
=
"
$with_fltk_prefix
"
...
...
@@ -1219,6 +1213,14 @@ else
FLTK_PREFIX
=
"
$FLTK_DIR
"
fi
;
# Check whether --with-gsl-prefix or --without-gsl-prefix was given.
if
test
"
${
with_gsl_prefix
+set
}
"
=
set
;
then
withval
=
"
$with_gsl_prefix
"
GSL_PREFIX
=
$withval
else
GSL_PREFIX
=
"
$GSL_DIR
"
fi
;
# Check whether --with-jpeg-prefix or --without-jpeg-prefix was given.
if
test
"
${
with_jpeg_prefix
+set
}
"
=
set
;
then
withval
=
"
$with_jpeg_prefix
"
...
...
@@ -1227,6 +1229,11 @@ else
JPEG_PREFIX
=
"
$JPEG_DIR
"
fi
;
# Check whether --enable-gsl or --disable-gsl was given.
if
test
"
${
enable_gsl
+set
}
"
=
set
;
then
enableval
=
"
$enable_gsl
"
fi
;
# Check whether --enable-gui or --disable-gui was given.
if
test
"
${
enable_gui
+set
}
"
=
set
;
then
enableval
=
"
$enable_gui
"
...
...
@@ -1242,9 +1249,9 @@ if test "${enable_triangle+set}" = set; then
enableval
=
"
$enable_triangle
"
fi
;
# Check whether --enable-
gsl
or --disable-
gsl
was given.
if
test
"
${
enable_
gsl
+set
}
"
=
set
;
then
enableval
=
"
$enable_
gsl
"
# Check whether --enable-
static
or --disable-
static
was given.
if
test
"
${
enable_
static
+set
}
"
=
set
;
then
enableval
=
"
$enable_
static
"
fi
;
...
...
@@ -3140,8 +3147,6 @@ echo "$as_me: error: " >&2;}
fi
fi
GMSH_LIBS
=
"
${
GMSH_LIBS
}
-lm"
if
test
"x
$enable_parallel
"
=
"xyes"
;
then
FLAGS
=
"-DPARALLEL
${
FLAGS
}
"
fi
...
...
@@ -3149,6 +3154,13 @@ fi
LINKER
=
"
${
CXX
}
"
POSTBUILD
=
""
if
test
"x
$enable_static
"
=
"xyes"
;
then
GMSH_LIBS
=
"
${
GMSH_LIBS
}
-ldl -lpthread -lm"
LINKER
=
"
${
LINKER
}
-static"
else
GMSH_LIBS
=
"
${
GMSH_LIBS
}
-lm"
fi
case
"
$UNAME
"
in
CYGWIN
*
|
MINGW
*
)
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
19
−
11
View file @
fc467ce1
dnl "$Id: configure.in,v 1.2
7
2003-02-2
3 05
:5
1
:27 geuzaine Exp $"
dnl "$Id: configure.in,v 1.2
8
2003-02-2
8 17
:5
4
:27 geuzaine Exp $"
dnl
dnl Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
dnl
...
...
@@ -29,20 +29,23 @@ dnl Check that this is the gmsh source tree
AC_INIT(Parser/Gmsh.y)
dnl Parse '--with' command-line options
AC_ARG_WITH(gsl-prefix,
AC_HELP_STRING([--with-gsl-prefix=PFX],
[prefix where GSL is installed]),
[GSL_PREFIX=$withval],[GSL_PREFIX="$GSL_DIR"])
AC_ARG_WITH(fltk-prefix,
AC_HELP_STRING([--with-fltk-prefix=PFX],
[prefix where FLTK is installed]),
[FLTK_PREFIX=$withval],[FLTK_PREFIX="$FLTK_DIR"])
AC_ARG_WITH(gsl-prefix,
AC_HELP_STRING([--with-gsl-prefix=PFX],
[prefix where GSL is installed]),
[GSL_PREFIX=$withval],[GSL_PREFIX="$GSL_DIR"])
AC_ARG_WITH(jpeg-prefix,
AC_HELP_STRING([--with-jpeg-prefix=PFX],
[prefix where the JPEG code is installed]),
[JPEG_PREFIX=$withval],[JPEG_PREFIX="$JPEG_DIR"])
dnl Parse '--enable' command line options
AC_ARG_ENABLE(gsl,
AC_HELP_STRING([--enable-gsl],
[use GSL as numerical toolkit (default=yes)]))
AC_ARG_ENABLE(gui,
AC_HELP_STRING([--enable-gui],
[build the graphical user interface (default=yes)]))
...
...
@@ -52,9 +55,9 @@ AC_ARG_ENABLE(parallel,
AC_ARG_ENABLE(triangle,
AC_HELP_STRING([--enable-triangle],
[compile Triangle if available (default=yes)]))
AC_ARG_ENABLE(
gsl
,
AC_HELP_STRING([--enable-
gsl
],
[
use GSL as numerical toolkit
(default=
yes
)]))
AC_ARG_ENABLE(
static
,
AC_HELP_STRING([--enable-
static
],
[
GCC only: build a statically linked executable
(default=
no
)]))
dnl Get the operating system and version number
UNAME=`uname`
...
...
@@ -215,9 +218,6 @@ if test "x${GSL}" != "xyes"; then
fi
fi
dnl Finish link line
GMSH_LIBS="${GMSH_LIBS} -lm"
dnl Check if we should build the parallel version
if test "x$enable_parallel" = "xyes"; then
FLAGS="-DPARALLEL ${FLAGS}"
...
...
@@ -227,6 +227,14 @@ dnl Set default linker and post build action
LINKER="${CXX}"
POSTBUILD=""
dnl Finish link line
if test "x$enable_static" = "xyes"; then
GMSH_LIBS="${GMSH_LIBS} -ldl -lpthread -lm"
LINKER="${LINKER} -static"
else
GMSH_LIBS="${GMSH_LIBS} -lm"
fi
dnl Modify defaults according to OS
case "$UNAME" in
...
...
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