pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2006-06-16
2006-06-16 11:29:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>
3ae7c0788022d57e84744e92abcc4628e6765678 (
43
lines) (+
39
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Added detection and workaround for broken icc <=> gcc compatibility.
Rev: src/configure.in:1.951
1:
-
AC_REVISION("$Id: configure.in,v 1.
950
2006/
05
/
26
15
:29:
21
mast
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
951
2006/
06
/
16
11
:29:
06
grubba
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
261:
# MY_AC_PROG_CC # The above has problems if the smartlink binary is removed. /grubba
+
+
AC_LANG_C
+
+
# Workaround for COMPILER_EXEEXT bailing out with icc and too new gcc.
+
# "Command-line error: invalid GNU version number: 403".
+
# The following seem to be the max gcc-versions:
+
#
+
# icc gcc-version
+
# 8.1 340
+
# 9.0 400?
+
# 9.1 410?
+
if test "x$CC" = "x"; then :; else
+
AC_MSG_CHECKING([whether we need an icc workaround])
+
AC_CACHE_VAL(pike_cv_need_icc_gcc_version, [
+
cat >conftest.c <<EOF
+
int main() { return 0; }
+
EOF
+
ORIG_CFLAGS="$CFLAGS"
+
for pike_cv_need_icc_gcc_version in no 420 410 400 340 330 320 310 no; do
+
if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
+
CFLAGS="$ORIG_CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
+
fi
+
if AC_TRY_EVAL(ac_compile); then
+
break;
+
fi
+
done
+
CFLAGS="$ORIG_CFLAGS"
+
])
+
AC_MSG_RESULT($pike_cv_need_icc_gcc_version)
+
if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
+
CFLAGS="$CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
+
fi
+
fi
+
AC_PROG_CC AC_PROG_CPP
2191:
# MinGW system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
950
2006/
05
/
26
15
:29:
21
mast
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
951
2006/
06
/
16
11
:29:
06
grubba
Exp $.
# MinGW-version. Do NOT edit. posix_name="`cat`" posix_prefix="/"
2229:
# Native POSIX system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
950
2006/
05
/
26
15
:29:
21
mast
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
951
2006/
06
/
16
11
:29:
06
grubba
Exp $.
# POSIX-version. Do NOT edit. cat EOF
2238:
# rntcl-style cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
950
2006/
05
/
26
15
:29:
21
mast
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
951
2006/
06
/
16
11
:29:
06
grubba
Exp $.
# RNTCL-version. Do NOT edit. sed -e "$PIKE_PATH_TRANSLATE" EOF