diff options
author | Tom Tromey <tromey@cygnus.com> | 1998-03-19 15:24:22 +0800 |
---|---|---|
committer | Tom Tromey <tromey@src.gnome.org> | 1998-03-19 15:24:22 +0800 |
commit | dc8628becc1e9a03bc40dfcc7a06325d7be5cd55 (patch) | |
tree | 4f05d567d97a10d6f7467fb02f964bd50be319a3 /macros/gnome-support.m4 | |
parent | 40c9962c2e20dba309212f088db6962fcea4b99d (diff) | |
download | gsoc2013-evolution-dc8628becc1e9a03bc40dfcc7a06325d7be5cd55.tar.gz gsoc2013-evolution-dc8628becc1e9a03bc40dfcc7a06325d7be5cd55.tar.zst gsoc2013-evolution-dc8628becc1e9a03bc40dfcc7a06325d7be5cd55.zip |
Cache results of argp check.
Thu Mar 19 00:17:46 1998 Tom Tromey <tromey@cygnus.com>
* gnome-support.m4: Cache results of argp check.
svn path=/trunk/; revision=69
Diffstat (limited to 'macros/gnome-support.m4')
-rw-r--r-- | macros/gnome-support.m4 | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4 index d6645a3d89..d309f6deaf 100644 --- a/macros/gnome-support.m4 +++ b/macros/gnome-support.m4 @@ -14,10 +14,18 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[ # We check for argp_domain because we use it, and it appears only in # very recent versions of the argp library. - AC_TRY_COMPILE([#include <argp.h>], [ - struct argp foo; - extern char *foo2; - foo.argp_domain = foo2;],,LIBOBJS="$LIBOBJS argp-ba.o argp-eexst.o argp-fmtstream.o argp-fs-xinl.o argp-help.o argp-parse.o argp-pv.o argp-pvh.o argp-xinl.o") + AC_CACHE_CHECK([for working argp code], gnome_cv_argp, [ + AC_TRY_COMPILE([#include <argp.h>], [ + struct argp foo; + extern char *foo2; + foo.argp_domain = foo2;], + gnome_cv_argp=yes, + gnome_cv_argp=no)]) + + if test "$gnome_cv_argp" = no; then + LIBOBJS="$LIBOBJS argp-ba.o argp-eexst.o argp-fmtstream.o argp-fs-xinl.o argp-help.o argp-parse.o argp-pv.o argp-pvh.o argp-xinl.o" + fi + # This header enables some optimizations inside argp. AC_CHECK_HEADERS(linewrap.h) |