[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trying to get AC_PATH_PROG into config.h...
From: |
Assar Westerlund |
Subject: |
Re: trying to get AC_PATH_PROG into config.h... |
Date: |
01 Dec 2000 14:05:54 +0100 |
User-agent: |
Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 |
Matthew Whitworth <address@hidden> writes:
> I'm writing a program that invokes external programs via popen(), and I'm
> trying to autoconfiscate the package. I have been trying to use the
> AC_PATH_PROG macro to locate a program. It seems to be working while the
> configure script is running and the value is available in Makefile.in, but
> I'm not exactly sure how to get the value (the full path to the program)
> in my config.h (where I really need it).
There's a different between AC_SUBST:ing and AC_DEFINE:ing.
Something like the configure.in below should probably do what you
want.
/assar
AC_INIT(configure.in)
AC_CONFIG_HEADER(config.h)
AC_PATH_PROG(PINGPATH, ping)
AC_DEFINE_UNQUOTED(PINGPATH, "$PINGPATH", [path to ping])
AC_OUTPUT(Makefile)