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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
1c7965a7
Commit
1c7965a7
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
configure should exit if compilers are missing
parent
d66e6bd8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+14
-9
14 additions, 9 deletions
configure
configure.in
+12
-9
12 additions, 9 deletions
configure.in
with
26 additions
and
18 deletions
configure
+
14
−
9
View file @
1c7965a7
...
@@ -2343,6 +2343,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
...
@@ -2343,6 +2343,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_link
=
'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu
=
$ac_cv_c_compiler_gnu
ac_compiler_gnu
=
$ac_cv_c_compiler_gnu
if
test
"x
${
CC
}
"
=
"x"
-o
"x
${
CXX
}
"
=
"x"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: Could not find required compilers, aborting."
>
&5
echo
"
$as_me
: error: Could not find required compilers, aborting."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
FLAGS
=
""
FLAGS
=
""
INCLS
=
""
INCLS
=
""
...
@@ -2628,6 +2633,7 @@ else
...
@@ -2628,6 +2633,7 @@ else
RANLIB
=
"
$ac_cv_prog_RANLIB
"
RANLIB
=
"
$ac_cv_prog_RANLIB
"
fi
fi
# Extract the first word of "ar", so it can be a program name with args.
# Extract the first word of "ar", so it can be a program name with args.
set
dummy ar
;
ac_word
=
$2
set
dummy ar
;
ac_word
=
$2
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
...
@@ -2667,6 +2673,12 @@ else
...
@@ -2667,6 +2673,12 @@ else
echo
"
${
ECHO_T
}
no"
>
&6
echo
"
${
ECHO_T
}
no"
>
&6
fi
fi
if
test
"x
${
AR
}
"
=
"x:"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: Could not find the library archiver, aborting."
>
&5
echo
"
$as_me
: error: Could not find the library archiver, aborting."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
AR
=
"
${
AR
}
ruvs"
...
@@ -2731,13 +2743,6 @@ fi
...
@@ -2731,13 +2743,6 @@ fi
if
test
"x
${
AR
}
"
=
"x:"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: Could not find the library archiver"
>
&5
echo
"
$as_me
: error: Could not find the library archiver"
>
&2
;
}
{
(
exit
aborting.
)
;
exit
aborting.
;
}
;
}
fi
AR
=
"
${
AR
}
ruvs"
GMSH_DIRS
=
"Common DataStr Geo Mesh Numeric Parallel Parser Plugin"
GMSH_DIRS
=
"Common DataStr Geo Mesh Numeric Parallel Parser Plugin"
if
test
"x
$enable_gui
"
!=
"xno"
;
then
if
test
"x
$enable_gui
"
!=
"xno"
;
then
...
@@ -3141,8 +3146,8 @@ fi
...
@@ -3141,8 +3146,8 @@ fi
echo
"versions <= 1.1.1 have a bug in the singular value decomposition"
echo
"versions <= 1.1.1 have a bug in the singular value decomposition"
echo
"algorithm that will cause Gmsh to hang during mesh generation."
echo
"algorithm that will cause Gmsh to hang during mesh generation."
echo
"********************************************************************"
echo
"********************************************************************"
{
{
echo
"
$as_me
:
$LINENO
: error: "
>
&5
{
{
echo
"
$as_me
:
$LINENO
: error:
Could not find GSL, aborting.
"
>
&5
echo
"
$as_me
: error: "
>
&2
;
}
echo
"
$as_me
: error:
Could not find GSL, aborting.
"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
12
−
9
View file @
1c7965a7
dnl "$Id: configure.in,v 1.
29
2003-03-01
04:07:04
geuzaine Exp $"
dnl "$Id: configure.in,v 1.
30
2003-03-01
20:49:38
geuzaine Exp $"
dnl
dnl
dnl Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
dnl Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
dnl
dnl
...
@@ -69,6 +69,9 @@ fi
...
@@ -69,6 +69,9 @@ fi
dnl Check for default compilers
dnl Check for default compilers
AC_PROG_CC
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CXX
if test "x${CC}" = "x" -o "x${CXX}" = "x" ; then
AC_MSG_ERROR([Could not find required compilers, aborting.])
fi
dnl Set default flags
dnl Set default flags
FLAGS=""
FLAGS=""
...
@@ -78,7 +81,13 @@ OPTIM="${CXXFLAGS}"
...
@@ -78,7 +81,13 @@ OPTIM="${CXXFLAGS}"
dnl Check for various programs
dnl Check for various programs
AC_PROG_CPP
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_RANLIB
dnl How to build static libraries?
AC_PATH_PROG(AR, ar)
AC_PATH_PROG(AR, ar)
if test "x${AR}" = "x:"; then
AC_MSG_ERROR([Could not find the library archiver, aborting.])
fi
AR="${AR} ruvs"
dnl Check for standard math library
dnl Check for standard math library
AC_CHECK_LIB(m,main)
AC_CHECK_LIB(m,main)
...
@@ -86,12 +95,6 @@ AC_CHECK_LIB(m,main)
...
@@ -86,12 +95,6 @@ AC_CHECK_LIB(m,main)
dnl See if we need a .exe extension on executables
dnl See if we need a .exe extension on executables
AC_EXEEXT
AC_EXEEXT
dnl How to build static libraries?
if test "x${AR}" = "x:"; then
AC_MSG_ERROR(Could not find the library archiver, aborting.)
fi
AR="${AR} ruvs"
dnl Set default subdirectories and libraries
dnl Set default subdirectories and libraries
GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin"
GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin"
...
@@ -111,7 +114,7 @@ if test "x$enable_gui" != "xno"; then
...
@@ -111,7 +114,7 @@ if test "x$enable_gui" != "xno"; then
AC_PATH_PROG(FLTKCONFIG,fltk-config)
AC_PATH_PROG(FLTKCONFIG,fltk-config)
fi
fi
if test "x$FLTKCONFIG" = "x"; then
if test "x$FLTKCONFIG" = "x"; then
AC_MSG_ERROR(Could not find fltk-config. Try --with-fltk-prefix?)
AC_MSG_ERROR(
[
Could not find fltk-config. Try --with-fltk-prefix?
]
)
fi
fi
GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`"
GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`"
INCLS="${INCLS} `$FLTKCONFIG --use-gl --use-images --cxxflags`"
INCLS="${INCLS} `$FLTKCONFIG --use-gl --use-images --cxxflags`"
...
@@ -214,7 +217,7 @@ if test "x${GSL}" != "xyes"; then
...
@@ -214,7 +217,7 @@ if test "x${GSL}" != "xyes"; then
echo "versions <= 1.1.1 have a bug in the singular value decomposition"
echo "versions <= 1.1.1 have a bug in the singular value decomposition"
echo "algorithm that will cause Gmsh to hang during mesh generation."
echo "algorithm that will cause Gmsh to hang during mesh generation."
echo "********************************************************************"
echo "********************************************************************"
AC_MSG_ERROR()
AC_MSG_ERROR(
[Could not find GSL, aborting.]
)
fi
fi
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