[Nickle] nickle: Branch 'master'

Keith Packard keithp at keithp.com
Sun Dec 9 22:26:24 PST 2007


 configure.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit de73950c6dbad62d022378cf5e9e62b635458326
Author: Keith Packard <keithp at keithp.com>
Date:   Sun Dec 9 22:26:21 2007 -0800

    Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to test linker flags.
    
    The -Wl,-E option is for the linker, so testing the compiler support isn't
    sufficient.

diff --git a/configure.in b/configure.in
index 53e7ecc..91cd2cc 100644
--- a/configure.in
+++ b/configure.in
@@ -46,12 +46,12 @@ dnl ds at schleef.org
 
 AC_DEFUN([AS_COMPILER_FLAG],
 [
-  AC_MSG_CHECKING(to see if compiler understands $1)
+  AC_MSG_CHECKING([to see if compiler understands $1])
 
   save_CFLAGS="$CFLAGS"
     CFLAGS="$CFLAGS $1"
 
-  AC_COMPILE_IFELSE([ ], [flag_ok=yes], [flag_ok=no])
+  AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [flag_ok=yes], [flag_ok=no])
     CFLAGS="$save_CFLAGS"
 
   if test "X$flag_ok" = Xyes; then


More information about the Nickle mailing list