m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: 5-gary-debug-m4-fallback.patch


From: Gary V. Vaughan
Subject: FYI: 5-gary-debug-m4-fallback.patch
Date: Tue, 4 Sep 2001 00:06:36 +0100
User-agent: Mutt/1.3.21i

Index: ChangeLog
from  Gary V. Vaughan  <address@hidden>

        * config/debug.m4 (AC_LIBTOOL_COMPILER_OPTION): Provide a fallback
        implementation for the cvs impaired libtool user.

Index: config/debug.m4
===================================================================
RCS file: /cvsroot/m4/m4/config/debug.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- config/debug.m4     2001/08/19 10:27:10     1.3
+++ config/debug.m4     2001/09/03 22:58:35     1.4
@@ -20,7 +20,42 @@
 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 ## Boston, MA 02111-1307, USA.
 
-# serial 4
+# serial 5
+
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+#              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+ifdef([AC_LIBTOOL_COMPILER_OPTION], [],
+[AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
+  [AC_CACHE_CHECK([$1], [$2],
+    [$2=no
+    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+     save_CFLAGS="$CFLAGS"
+     CFLAGS="$CFLAGS $3"
+     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+     if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
+       # The compiler can only warn and ignore the option if not recognized
+       # So say no if there are warnings
+       if test -s conftest.err; then
+         # Append any errors to the config.log.
+         cat conftest.err 1>&AS_MESSAGE_LOG_FD
+       else
+         $2=yes
+       fi
+     fi
+     $rm conftest*
+     CFLAGS="$save_CFLAGS"
+   ])
+
+  if test x"[$]$2" = xyes; then
+      ifelse([$5], , :, [$5])
+  else
+      ifelse([$6], , :, [$6])
+  fi
+  ])
+])# AC_LIBTOOL_COMPILER_OPTION
+
 
 # M4_AC_CHECK_DEBUGGING
 # ---------------------

-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]