mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Rewrite test whether the compiler supports the non-fragile ABI with
portable code that does not rely on a BSD compatible echo command. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@36884 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4bfe421e45
commit
e5b37b9aa1
3 changed files with 1812 additions and 1762 deletions
|
@ -1,3 +1,10 @@
|
|||
2013-07-14 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* configure.ac: Rewrite test whether the compiler supports the
|
||||
non-fragile ABI with portable code that does not rely on a BSD
|
||||
compatible echo command.
|
||||
* configure: Regenerated.
|
||||
|
||||
2013-07-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* rules.make: Fix order of includes directories ... SYSTEM_INCLUDES
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -57,6 +57,9 @@ AC_PROG_CXX
|
|||
#AC_PROG_OBJCXX
|
||||
OBJCXX="${CXX}"
|
||||
|
||||
# We may use egrep for some tests further down below
|
||||
AC_PROG_EGREP
|
||||
|
||||
AC_CANONICAL_TARGET([])
|
||||
|
||||
|
||||
|
@ -1380,13 +1383,12 @@ return __has_feature(objc_nonfragile_abi) ? 0 : 1;
|
|||
fi
|
||||
else
|
||||
if test x"$USE_NONFRAGILE_ABI" != x"no"; then
|
||||
default_nonfragile=`echo -e '#ifndef __has_feature\n#define __has_feature(x) 0\n#endif\n__has_feature(objc_nonfragile_abi)'|$CC $CFLAGS -E -x objective-c - -o - |tail -1`
|
||||
|
||||
if test x$default_nonfragile = x1; then
|
||||
USE_NONFRAGILE_ABI=yes;
|
||||
else
|
||||
USE_NONFRAGILE_ABI=no;
|
||||
fi
|
||||
AC_EGREP_CPP([^1$], [
|
||||
#ifndef __has_feature
|
||||
#define __has_feature(x) 0
|
||||
#endif
|
||||
__has_feature(objc_nonfragile_abi)
|
||||
], USE_NONFRAGILE_ABI=yes, USE_NONFRAGILE_ABI=no)
|
||||
fi
|
||||
if test x"$USE_NONFRAGILE_ABI" = x"yes"; then
|
||||
AC_MSG_RESULT([yes (compiler default)])
|
||||
|
|
Loading…
Reference in a new issue