diff options
| author | tgoodwin <tgoodwin> | 1998-02-11 14:35:02 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:02 +0100 |
| commit | 93301b48619929a5839bfda8b5372c8ab1f27bd7 (patch) | |
| tree | 92245dff1f930d637f34b085364aa1778b9da146 /configure.ac | |
| parent | f579c3af795db00a013b3b078d8e1c403af62a92 (diff) | |
automake support
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 156f221..09b714e 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,16 @@ AC_INIT(rc.h) AC_CONFIG_HEADER(config.h) +dnl These are required by automake (and are a good idea, anyway). +PACKAGE=rc +VERSION=1.5b3 +RELDATE=1997-07-01 +AC_SUBST(PACKAGE) +AC_SUBST(VERSION) +AC_SUBST(RELDATE) + +AC_ARG_PROGRAM + AC_PROG_CC case "x$GCC" in xyes) @@ -180,13 +190,12 @@ xodd) ;; xno) AC_CACHE_CHECK(for named pipes, rc_cv_sys_fifo, - AC_DEFINE_UNQUOTED(TMPNAM, "/tmp/rc$$.0") AC_TRY_RUN([ #include <sys/types.h> #include <sys/stat.h> main() { - exit(mknod(TMPNAM, S_IFIFO | 0666, 0) != 0); + exit(mknod("/tmp/rc$$.0", S_IFIFO | 0666, 0) != 0); } ], rc_cv_sys_fifo=yes, rc_cv_sys_fifo=no, rc_cv_sys_fifo=no)) rm -f /tmp/rc$$.0 @@ -273,7 +282,7 @@ AC_SUBST(HISTORY) AC_ARG_WITH(addon, [ --with-addon Extra builtins, from addon.c ],[ case "x$withval" in xyes) - ADDON=addon.o + ADDON=addon.c ;; xno) ADDON='' @@ -296,4 +305,6 @@ AC_ARG_WITH(readline, [ --with-readline Bloated GNU line editing], AC_MSG_WARN(readline library not found), -ltermcap)) -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile stamp-h version.c, [ + test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h +]) |