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
10315f90
Commit
10315f90
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
use C++ for all compilation tests
parent
b7057eec
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
+272
-29
272 additions, 29 deletions
configure
configure.in
+4
-1
4 additions, 1 deletion
configure.in
with
276 additions
and
30 deletions
configure
+
272
−
29
View file @
10315f90
...
@@ -309,7 +309,7 @@ ac_includes_default="\
...
@@ -309,7 +309,7 @@ ac_includes_default="\
# include <unistd.h>
# include <unistd.h>
#endif"
#endif"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB AR FLTKCONFIG EGREP UNAME FLAGS OPTIM LINKER GMSH_DIRS GMSH_LIBS POSTBUILD 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB AR FLTKCONFIG
CXXCPP
EGREP UNAME FLAGS OPTIM LINKER GMSH_DIRS GMSH_LIBS POSTBUILD LIBOBJS LTLIBOBJS'
ac_subst_files
=
''
ac_subst_files
=
''
# Initialize some variables set by options.
# Initialize some variables set by options.
...
@@ -778,6 +778,10 @@ ac_env_CPP_set=${CPP+set}
...
@@ -778,6 +778,10 @@ ac_env_CPP_set=${CPP+set}
ac_env_CPP_value
=
$CPP
ac_env_CPP_value
=
$CPP
ac_cv_env_CPP_set
=
${
CPP
+set
}
ac_cv_env_CPP_set
=
${
CPP
+set
}
ac_cv_env_CPP_value
=
$CPP
ac_cv_env_CPP_value
=
$CPP
ac_env_CXXCPP_set
=
${
CXXCPP
+set
}
ac_env_CXXCPP_value
=
$CXXCPP
ac_cv_env_CXXCPP_set
=
${
CXXCPP
+set
}
ac_cv_env_CXXCPP_value
=
$CXXCPP
#
#
# Report the --help message.
# Report the --help message.
...
@@ -896,6 +900,7 @@ Some influential environment variables:
...
@@ -896,6 +900,7 @@ Some influential environment variables:
CXX C++ compiler command
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXFLAGS C++ compiler flags
CPP C preprocessor
CPP C preprocessor
CXXCPP C++ preprocessor
Use these variables to override the choices made by `configure' or to help
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
it to find libraries and programs with nonstandard names/locations.
...
@@ -2788,6 +2793,13 @@ fi
...
@@ -2788,6 +2793,13 @@ fi
LINKER
=
"
${
CXX
}
"
LINKER
=
"
${
CXX
}
"
POSTBUILD
=
""
POSTBUILD
=
""
ac_ext
=
cc
ac_cpp
=
'$CXXCPP $CPPFLAGS'
ac_compile
=
'$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu
=
$ac_cv_cxx_compiler_gnu
case
"
$UNAME
"
in
case
"
$UNAME
"
in
CYGWIN
*
)
CYGWIN
*
)
if
test
"x
$enable_cygwin
"
!=
"xyes"
;
then
if
test
"x
$enable_cygwin
"
!=
"xyes"
;
then
...
@@ -3030,11 +3042,11 @@ See \`config.log' for more details." >&2;}
...
@@ -3030,11 +3042,11 @@ See \`config.log' for more details." >&2;}
{
(
exit
1
)
;
exit
1
;
}
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
fi
ac_ext
=
c
ac_ext
=
c
c
ac_cpp
=
'$CPP $CPPFLAGS'
ac_cpp
=
'$
CXX
CPP $CPPFLAGS'
ac_compile
=
'$C
C
-c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_compile
=
'$C
XX
-c $C
XX
FLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$C
C
-o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_link
=
'$C
XX
-o conftest$ac_exeext $C
XX
FLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu
=
$ac_cv_c_compiler_gnu
ac_compiler_gnu
=
$ac_cv_c
xx
_compiler_gnu
case
"
$UNAME
"
in
case
"
$UNAME
"
in
...
@@ -3311,7 +3323,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3311,7 +3323,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3405,7 +3417,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3405,7 +3417,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3489,7 +3501,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3489,7 +3501,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3563,7 +3575,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3563,7 +3575,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3650,7 +3662,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3650,7 +3662,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3719,7 +3731,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3719,7 +3731,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3820,7 +3832,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3820,7 +3832,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3916,7 +3928,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -3916,7 +3928,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -3973,7 +3985,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -3973,7 +3985,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4352,7 +4364,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4352,7 +4364,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4419,7 +4431,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4419,7 +4431,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4554,7 +4566,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4554,7 +4566,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4638,7 +4650,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4638,7 +4650,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4727,7 +4739,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4727,7 +4739,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4807,7 +4819,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -4807,7 +4819,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -4928,6 +4940,236 @@ case "$UNAME" in
...
@@ -4928,6 +4940,236 @@ case "$UNAME" in
esac
esac
ac_ext
=
cc
ac_cpp
=
'$CXXCPP $CPPFLAGS'
ac_compile
=
'$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu
=
$ac_cv_cxx_compiler_gnu
echo
"
$as_me
:
$LINENO
: checking how to run the C++ preprocessor"
>
&5
echo
$ECHO_N
"checking how to run the C++ preprocessor...
$ECHO_C
"
>
&6
if
test
-z
"
$CXXCPP
"
;
then
if
test
"
${
ac_cv_prog_CXXCPP
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
# Double quotes because CXXCPP needs to be expanded
for
CXXCPP
in
"
$CXX
-E"
"/lib/cpp"
do
ac_preproc_ok
=
false
for
ac_cxx_preproc_warn_flag
in
''
yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_cpp
conftest.
$ac_ext
\"
"
)
>
&5
(
eval
$ac_cpp
conftest.
$ac_ext
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
>
/dev/null
;
then
if
test
-s
conftest.err
;
then
ac_cpp_err
=
$ac_cxx_preproc_warn_flag
ac_cpp_err
=
$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err
=
fi
else
ac_cpp_err
=
yes
fi
if
test
-z
"
$ac_cpp_err
"
;
then
:
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
# Broken: fails on valid input.
continue
fi
rm
-f
conftest.err conftest.
$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_cpp
conftest.
$ac_ext
\"
"
)
>
&5
(
eval
$ac_cpp
conftest.
$ac_ext
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
>
/dev/null
;
then
if
test
-s
conftest.err
;
then
ac_cpp_err
=
$ac_cxx_preproc_warn_flag
ac_cpp_err
=
$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err
=
fi
else
ac_cpp_err
=
yes
fi
if
test
-z
"
$ac_cpp_err
"
;
then
# Broken: success on invalid input.
continue
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
# Passes both tests.
ac_preproc_ok
=
:
break
fi
rm
-f
conftest.err conftest.
$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm
-f
conftest.err conftest.
$ac_ext
if
$ac_preproc_ok
;
then
break
fi
done
ac_cv_prog_CXXCPP
=
$CXXCPP
fi
CXXCPP
=
$ac_cv_prog_CXXCPP
else
ac_cv_prog_CXXCPP
=
$CXXCPP
fi
echo
"
$as_me
:
$LINENO
: result:
$CXXCPP
"
>
&5
echo
"
${
ECHO_T
}
$CXXCPP
"
>
&6
ac_preproc_ok
=
false
for
ac_cxx_preproc_warn_flag
in
''
yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_cpp
conftest.
$ac_ext
\"
"
)
>
&5
(
eval
$ac_cpp
conftest.
$ac_ext
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
>
/dev/null
;
then
if
test
-s
conftest.err
;
then
ac_cpp_err
=
$ac_cxx_preproc_warn_flag
ac_cpp_err
=
$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err
=
fi
else
ac_cpp_err
=
yes
fi
if
test
-z
"
$ac_cpp_err
"
;
then
:
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
# Broken: fails on valid input.
continue
fi
rm
-f
conftest.err conftest.
$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_cpp
conftest.
$ac_ext
\"
"
)
>
&5
(
eval
$ac_cpp
conftest.
$ac_ext
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
>
/dev/null
;
then
if
test
-s
conftest.err
;
then
ac_cpp_err
=
$ac_cxx_preproc_warn_flag
ac_cpp_err
=
$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err
=
fi
else
ac_cpp_err
=
yes
fi
if
test
-z
"
$ac_cpp_err
"
;
then
# Broken: success on invalid input.
continue
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
# Passes both tests.
ac_preproc_ok
=
:
break
fi
rm
-f
conftest.err conftest.
$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm
-f
conftest.err conftest.
$ac_ext
if
$ac_preproc_ok
;
then
:
else
{
{
echo
"
$as_me
:
$LINENO
: error: C++ preprocessor
\"
$CXXCPP
\"
fails sanity check
See
\`
config.log' for more details."
>
&5
echo
"
$as_me
: error: C++ preprocessor
\"
$CXXCPP
\"
fails sanity check
See
\`
config.log' for more details."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
ac_ext
=
cc
ac_cpp
=
'$CXXCPP $CPPFLAGS'
ac_compile
=
'$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link
=
'$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu
=
$ac_cv_cxx_compiler_gnu
echo
"
$as_me
:
$LINENO
: checking for egrep"
>
&5
echo
"
$as_me
:
$LINENO
: checking for egrep"
>
&5
echo
$ECHO_N
"checking for egrep...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking for egrep...
$ECHO_C
"
>
&6
...
@@ -4977,7 +5219,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -4977,7 +5219,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5148,7 +5390,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5148,7 +5390,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5214,7 +5456,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5214,7 +5456,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5277,7 +5519,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5277,7 +5519,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5318,7 +5560,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5318,7 +5560,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5375,7 +5617,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5375,7 +5617,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5416,7 +5658,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5416,7 +5658,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -5481,7 +5723,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
...
@@ -5481,7 +5723,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
{
ac_try
=
'test -z "$ac_c
xx
_werror_flag"
|| test ! -s conftest.err'
|| test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
(
eval
$ac_try
)
2>&5
...
@@ -6263,6 +6505,7 @@ s,@RANLIB@,$RANLIB,;t t
...
@@ -6263,6 +6505,7 @@ s,@RANLIB@,$RANLIB,;t t
s,@ac_ct_RANLIB@,
$ac_ct_RANLIB
,;t t
s,@ac_ct_RANLIB@,
$ac_ct_RANLIB
,;t t
s,@AR@,
$AR
,;t t
s,@AR@,
$AR
,;t t
s,@FLTKCONFIG@,
$FLTKCONFIG
,;t t
s,@FLTKCONFIG@,
$FLTKCONFIG
,;t t
s,@CXXCPP@,
$CXXCPP
,;t t
s,@EGREP@,
$EGREP
,;t t
s,@EGREP@,
$EGREP
,;t t
s,@UNAME@,
$UNAME
,;t t
s,@UNAME@,
$UNAME
,;t t
s,@FLAGS@,
$FLAGS
,;t t
s,@FLAGS@,
$FLAGS
,;t t
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
4
−
1
View file @
10315f90
dnl $Id: configure.in,v 1.12
5
2007-05-
03 08:50:01
geuzaine Exp $
dnl $Id: configure.in,v 1.12
6
2007-05-
20 21:52:25
geuzaine Exp $
dnl
dnl
dnl Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
dnl Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
dnl
dnl
...
@@ -141,6 +141,9 @@ fi
...
@@ -141,6 +141,9 @@ fi
LINKER="${CXX}"
LINKER="${CXX}"
POSTBUILD=""
POSTBUILD=""
dnl Use c++ for all compilation tests
AC_LANG(C++)
dnl Take care of no-cygwin option before doing any other tests
dnl Take care of no-cygwin option before doing any other tests
case "$UNAME" in
case "$UNAME" in
CYGWIN*)
CYGWIN*)
...
...
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