dnl Roland McGrath, and Noah Friedman.
dnl
dnl
-dnl checks for programs
+dnl ### checks for programs
dnl
dnl
define(AC_PROG_CC,
])dnl
dnl
define(AC_PROG_INSTALL,
-[# Make sure to not get the incompatible SysV /etc/install and
+[AC_REQUIRE([AC_CONFIG_AUX_DEFAULT])dnl
+# Make sure to not get the incompatible SysV /etc/install and
# /usr/sbin/install, which might be in PATH before a BSD-like install,
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
IFS="$ac_save_ifs"
fi
if test -z "$INSTALL"; then
- if test -f ${srcdir}/install.sh; then
- # As a last resort, use the slow shell script.
- INSTALL=AC_PROG_INSTALL_INSTALL_SH
- else
- AC_WARN(${srcdir}/install.sh not found; using cp)
- INSTALL=cp
- fi
+ # As a last resort, use the slow shell script.
+ INSTALL="$ac_install_sh"
fi
AC_SUBST(INSTALL)dnl
AC_VERBOSE(setting INSTALL to $INSTALL)
AC_SUBST(INSTALL_DATA)dnl
AC_VERBOSE(setting INSTALL_DATA to $INSTALL_DATA)
])dnl
-dnl Defined separately so a configure.in can redefine if necessary.
-dnl We want the top-level source directory, not the subdir's srcdir.
-dnl This relies on top_srcdir being substituted after INSTALL.
-define(AC_PROG_INSTALL_INSTALL_SH, ['@top_srcdir@/install.sh -c'])dnl
dnl
define(AC_LN_S,
[AC_CHECKING(for ln -s)
then
rm -f conftestdata
LN_S="ln -s"
+ AC_VERBOSE(ln -s is supported)
else
LN_S=ln
+ AC_VERBOSE(ln -s is not supported)
fi
AC_SUBST(LN_S)
])dnl
])dnl
dnl
dnl
-dnl checks for header files
+dnl ### checks for header files
dnl
dnl
define(AC_STDC_HEADERS,
AC_DEFINE($2) ac_dir_header=$1)dnl
fi])dnl
dnl
+define(AC_STAT_MACROS_BROKEN,[AC_CHECKING(for broken stat file mode macros)
+AC_PROGRAM_EGREP([You lose], [#include <sys/types.h>
+#include <sys/stat.h>
+#ifdef S_ISBLK
+#if S_ISBLK (S_IFDIR)
+You lose.
+#endif
+#ifdef S_IFCHR
+#if S_ISBLK (S_IFCHR)
+You lose.
+#endif
+#endif /* S_IFCHR */
+#endif /* S_ISBLK */
+#ifdef S_ISLNK
+#if S_ISLNK (S_IFREG)
+You lose.
+#endif
+#endif /* S_ISLNK */
+#ifdef S_ISSOCK
+#if S_ISSOCK (S_IFREG)
+You lose.
+#endif
+#endif /* S_ISSOCK */
+], AC_DEFINE(STAT_MACROS_BROKEN))])dnl
+dnl
+define(AC_SYS_SIGLIST_DECLARED,[dnl
+AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
+ [#include <signal.h>
+/* NetBSD declares sys_siglist in <unistd.h>. */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif], [char *msg = *(sys_siglist + 1);],
+ AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
+dnl
dnl
-dnl checks for typedefs
+dnl ### checks for typedefs
dnl
dnl
define(AC_GETGROUPS_T,
)dnl
dnl
dnl
-dnl checks for functions
+dnl ### checks for functions
dnl
dnl
define(AC_MMAP, [
#define CLSIZE 1
#endif /* no CLSIZE */
#else /* no NBPG */
+#ifdef NBPC
#define getpagesize() NBPC
+#else /* no NBPC */
+#define getpagesize() PAGESIZE /* SVR4 */
+#endif /* no NBPC */
#endif /* no NBPG */
#endif /* no EXEC_PAGESIZE */
#endif /* not HAVE_GETPAGESIZE */
])dnl
dnl
dnl
-dnl checks for structure members
+dnl ### checks for structure members
dnl
dnl
define(AC_STRUCT_TM,
AC_DEFINE(HAVE_ST_RDEV))])dnl
dnl
dnl
-dnl checks for compiler characteristics
+dnl ### checks for compiler characteristics
dnl
dnl
define(AC_CROSS_CHECK,
lack of working const], , [$ac_prog], , AC_DEFINE(const,))])dnl
dnl
dnl
-dnl checks for operating system services
+dnl ### checks for operating system services
dnl
dnl
define(AC_HAVE_POUNDBANG, [dnl
])dnl
dnl
dnl
-dnl checks for UNIX variants
+dnl ### checks for UNIX variants
dnl
dnl
define(AC_AIX,
define(AC_DYNIX_SEQ,
[AC_HAVE_LIBRARY(seq, LIBS="$LIBS -lseq")
])dnl
-dnl
-define(AC_STAT_MACROS_BROKEN,[AC_CHECKING(for broken stat file mode macros)
-AC_PROGRAM_EGREP([You lose], [#include <sys/types.h>
-#include <sys/stat.h>
-#ifdef S_ISBLK
-#if S_ISBLK (S_IFDIR)
-You lose.
-#endif
-#ifdef S_IFCHR
-#if S_ISBLK (S_IFCHR)
-You lose.
-#endif
-#endif /* S_IFCHR */
-#endif /* S_ISBLK */
-#ifdef S_ISLNK
-#if S_ISLNK (S_IFREG)
-You lose.
-#endif
-#endif /* S_ISLNK */
-#ifdef S_ISSOCK
-#if S_ISSOCK (S_IFREG)
-You lose.
-#endif
-#endif /* S_ISSOCK */
-], AC_DEFINE(STAT_MACROS_BROKEN))])dnl
-dnl
-dnl
-define(AC_SYS_SIGLIST_DECLARED,[dnl
-AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
- [#include <signal.h>
-/* NetBSD declares sys_siglist in <unistd.h>. */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif], [char *msg = *(sys_siglist + 1);],
- AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
-dnl
dnl Roland McGrath, and Noah Friedman.
dnl
dnl
-dnl checks for programs
+dnl ### checks for programs
dnl
dnl
define(AC_PROG_CC,
])dnl
dnl
define(AC_PROG_INSTALL,
-[# Make sure to not get the incompatible SysV /etc/install and
+[AC_REQUIRE([AC_CONFIG_AUX_DEFAULT])dnl
+# Make sure to not get the incompatible SysV /etc/install and
# /usr/sbin/install, which might be in PATH before a BSD-like install,
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
IFS="$ac_save_ifs"
fi
if test -z "$INSTALL"; then
- if test -f ${srcdir}/install.sh; then
- # As a last resort, use the slow shell script.
- INSTALL=AC_PROG_INSTALL_INSTALL_SH
- else
- AC_WARN(${srcdir}/install.sh not found; using cp)
- INSTALL=cp
- fi
+ # As a last resort, use the slow shell script.
+ INSTALL="$ac_install_sh"
fi
AC_SUBST(INSTALL)dnl
AC_VERBOSE(setting INSTALL to $INSTALL)
AC_SUBST(INSTALL_DATA)dnl
AC_VERBOSE(setting INSTALL_DATA to $INSTALL_DATA)
])dnl
-dnl Defined separately so a configure.in can redefine if necessary.
-dnl We want the top-level source directory, not the subdir's srcdir.
-dnl This relies on top_srcdir being substituted after INSTALL.
-define(AC_PROG_INSTALL_INSTALL_SH, ['@top_srcdir@/install.sh -c'])dnl
dnl
define(AC_LN_S,
[AC_CHECKING(for ln -s)
then
rm -f conftestdata
LN_S="ln -s"
+ AC_VERBOSE(ln -s is supported)
else
LN_S=ln
+ AC_VERBOSE(ln -s is not supported)
fi
AC_SUBST(LN_S)
])dnl
])dnl
dnl
dnl
-dnl checks for header files
+dnl ### checks for header files
dnl
dnl
define(AC_STDC_HEADERS,
AC_DEFINE($2) ac_dir_header=$1)dnl
fi])dnl
dnl
+define(AC_STAT_MACROS_BROKEN,[AC_CHECKING(for broken stat file mode macros)
+AC_PROGRAM_EGREP([You lose], [#include <sys/types.h>
+#include <sys/stat.h>
+#ifdef S_ISBLK
+#if S_ISBLK (S_IFDIR)
+You lose.
+#endif
+#ifdef S_IFCHR
+#if S_ISBLK (S_IFCHR)
+You lose.
+#endif
+#endif /* S_IFCHR */
+#endif /* S_ISBLK */
+#ifdef S_ISLNK
+#if S_ISLNK (S_IFREG)
+You lose.
+#endif
+#endif /* S_ISLNK */
+#ifdef S_ISSOCK
+#if S_ISSOCK (S_IFREG)
+You lose.
+#endif
+#endif /* S_ISSOCK */
+], AC_DEFINE(STAT_MACROS_BROKEN))])dnl
+dnl
+define(AC_SYS_SIGLIST_DECLARED,[dnl
+AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
+ [#include <signal.h>
+/* NetBSD declares sys_siglist in <unistd.h>. */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif], [char *msg = *(sys_siglist + 1);],
+ AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
+dnl
dnl
-dnl checks for typedefs
+dnl ### checks for typedefs
dnl
dnl
define(AC_GETGROUPS_T,
)dnl
dnl
dnl
-dnl checks for functions
+dnl ### checks for functions
dnl
dnl
define(AC_MMAP, [
#define CLSIZE 1
#endif /* no CLSIZE */
#else /* no NBPG */
+#ifdef NBPC
#define getpagesize() NBPC
+#else /* no NBPC */
+#define getpagesize() PAGESIZE /* SVR4 */
+#endif /* no NBPC */
#endif /* no NBPG */
#endif /* no EXEC_PAGESIZE */
#endif /* not HAVE_GETPAGESIZE */
])dnl
dnl
dnl
-dnl checks for structure members
+dnl ### checks for structure members
dnl
dnl
define(AC_STRUCT_TM,
AC_DEFINE(HAVE_ST_RDEV))])dnl
dnl
dnl
-dnl checks for compiler characteristics
+dnl ### checks for compiler characteristics
dnl
dnl
define(AC_CROSS_CHECK,
lack of working const], , [$ac_prog], , AC_DEFINE(const,))])dnl
dnl
dnl
-dnl checks for operating system services
+dnl ### checks for operating system services
dnl
dnl
define(AC_HAVE_POUNDBANG, [dnl
])dnl
dnl
dnl
-dnl checks for UNIX variants
+dnl ### checks for UNIX variants
dnl
dnl
define(AC_AIX,
define(AC_DYNIX_SEQ,
[AC_HAVE_LIBRARY(seq, LIBS="$LIBS -lseq")
])dnl
-dnl
-define(AC_STAT_MACROS_BROKEN,[AC_CHECKING(for broken stat file mode macros)
-AC_PROGRAM_EGREP([You lose], [#include <sys/types.h>
-#include <sys/stat.h>
-#ifdef S_ISBLK
-#if S_ISBLK (S_IFDIR)
-You lose.
-#endif
-#ifdef S_IFCHR
-#if S_ISBLK (S_IFCHR)
-You lose.
-#endif
-#endif /* S_IFCHR */
-#endif /* S_ISBLK */
-#ifdef S_ISLNK
-#if S_ISLNK (S_IFREG)
-You lose.
-#endif
-#endif /* S_ISLNK */
-#ifdef S_ISSOCK
-#if S_ISSOCK (S_IFREG)
-You lose.
-#endif
-#endif /* S_ISSOCK */
-], AC_DEFINE(STAT_MACROS_BROKEN))])dnl
-dnl
-dnl
-define(AC_SYS_SIGLIST_DECLARED,[dnl
-AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
- [#include <signal.h>
-/* NetBSD declares sys_siglist in <unistd.h>. */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif], [char *msg = *(sys_siglist + 1);],
- AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
-dnl