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:
Wolfgang Lux 2013-07-14 14:59:55 +00:00
parent 4bfe421e45
commit e5b37b9aa1
3 changed files with 1812 additions and 1762 deletions

View file

@ -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

3551
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -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)])