diff options
author | Tom Tromey <tromey@cygnus.com> | 1998-03-04 08:14:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@src.gnome.org> | 1998-03-04 08:14:23 +0000 |
commit | 57d4fa47101ca70533ac12c5e0ae4c0fd1f6cf1c (patch) | |
tree | cecc3b26c3ea26afc8f7c0b6a24f1850d81c9ff4 /macros/gnome-support.m4 | |
parent | 0b894b71ff07b25a2de028fe0dda3cb2d806ba9e (diff) | |
download | gnome-common-57d4fa47101ca70533ac12c5e0ae4c0fd1f6cf1c.tar.gz |
Check for argp code, strndup, program_invocation_name,
Wed Mar 4 01:02:55 1998 Tom Tromey <tromey@cygnus.com>
* gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for argp code,
strndup, program_invocation_name, program_invocation_short_name.
svn path=/trunk/; revision=105
Diffstat (limited to 'macros/gnome-support.m4')
-rw-r--r-- | macros/gnome-support.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4 index 28b8e11..381bc98 100644 --- a/macros/gnome-support.m4 +++ b/macros/gnome-support.m4 @@ -2,6 +2,13 @@ dnl libsupport stuff dnl GNOME_SUPPORT_CHECKS AC_DEFUN([GNOME_SUPPORT_CHECKS],[ AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o") - AC_REPLACE_FUNCS(strtok_r strcasecmp) + AC_CHECK_FUNCS(argp_parse,,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-xinl.o") + AC_TRY_LINK([#include <errno.h>],[ + char *foo = program_invocation_short_name], [ + AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME)]) + AC_TRY_LINK([#include <errno.h>],[ + char *foo = program_invocation_name], [ + AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)]) + AC_REPLACE_FUNCS(strtok_r strcasecmp strndup) AC_SUBST(LIBOBJS) ]) |