43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
|
Subject: configure.ac: Change AC_LANG_SOURCE() into AC_LANG_PROGRAM()
|
||
|
|
||
|
---
|
||
|
configure.ac | 8 ++------
|
||
|
1 files changed, 2 insertions(+), 6 deletions(-)
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 743fe29..c150ca3 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -162,7 +162,7 @@ AC_CHECK_HEADER(sys/acct.h,
|
||
|
dnl
|
||
|
dnl find out where utmp/pacct are stored
|
||
|
dnl
|
||
|
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||
|
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <sys/types.h>
|
||
|
@@ -241,9 +241,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||
|
# endif
|
||
|
# endif
|
||
|
#endif
|
||
|
-
|
||
|
-main ()
|
||
|
-{
|
||
|
+]], [[
|
||
|
FILE *fp;
|
||
|
fp = fopen ("locs", "w");
|
||
|
fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE);
|
||
|
@@ -251,8 +249,6 @@ main ()
|
||
|
fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE);
|
||
|
fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE);
|
||
|
fclose (fp);
|
||
|
- exit(0);
|
||
|
-}
|
||
|
]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ])
|
||
|
AC_TYPE_PID_T dnl for sys/acct.h
|
||
|
AC_TYPE_UID_T dnl same as above
|
||
|
--
|
||
|
1.7.7
|
||
|
|