SHELL = /bin/sh
DISTFILES = README Makefile.in INSTALL NEWS COPYING ChangeLog \
-autoconf.texi autoconf.info* standards.texi make-stds.texi standards.info* \
+autoconf.texi autoconf.info standards.texi make-stds.texi standards.info \
texinfo.tex acconfig.h autoconf.sh acgeneral.m4 acspecific.m4 \
configure configure.in autoheader.sh mkinstalldirs install.sh
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
-compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
+compile='${CC-cc} $CFLAGS $LDFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
# /usr/ucb/install on SVR4, which tries to use the nonexistent group
-# `staff'. On most BSDish systems install is in /usr/bin, not /usr/ucb
-# anyway. Sigh.
+# `staff', or /sbin/install on IRIX which has incompatible command-line
+# syntax. Sigh.
+#
+# On most BSDish systems install is in /usr/bin, not /usr/ucb
+# anyway.
+# This turns out not to be true, so the mere pathname isn't an indication
+# of whether the program works. What we really need is a set of tests for
+# the install program to see if it actually works in all the required ways.
if test "z${INSTALL}" = "z" ; then
echo checking for install
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
#test -z "$dir" && dir=.
case "$dir" in
- ''|.|/etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
+ ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
*)
if test -f $dir/installbsd; then
INSTALL="$dir/installbsd -c" # OSF1
#include <unistd.h>
#endif], [char *msg = *(sys_siglist + 1);],
AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
-dnl
\ No newline at end of file
+dnl
while test $# -gt 0 ; do
case "z${1}" in
z-h | z--help | z--h* )
- echo "${usage}" 1>&2; exit 1 ;;
+ echo "${usage}" 1>&2; exit 0 ;;
z--macrodir=* | z--m*=* )
AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
shift ;;
while test $# -gt 0 ; do
case "z${1}" in
z-h | z--help | z--h* )
- echo "${usage}" 1>&2; exit 1 ;;
+ echo "${usage}" 1>&2; exit 0 ;;
z--macrodir=* | z--m*=* )
AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
shift ;;
statements in a template file.
For example, suppose your @file{configure.in} calls
-@code{AC_CONFIG_HEADER(conf.h)} and @code{AC_UNISTD_H}. You could have
-code like this in @file{conf.h.in}:
+@code{AC_CONFIG_HEADER(conf.h)} and @code{AC_HAVE_HEADERS(unistd.h)}.
+You could have code like this in @file{conf.h.in}:
@example
@group
AC_CONST
AC_UID_T
AC_STDC_HEADERS
-AC_UNISTD_H
-AC_HAVE_HEADERS(string.h fcntl.h utime.h sys/io/trioctl.h)
+AC_HAVE_HEADERS(string.h fcntl.h utime.h unistd.h sys/io/trioctl.h)
AC_REPLACE_FUNCS(fnmatch bcopy mkdir strdup)
AC_HAVE_FUNCS(strerror lchown)
AC_VPRINTF
sym="`echo ${lib} | sed 's/[^a-zA-Z0-9_]/_/g' | tr '[a-z]' '[A-Z]'`"
echo "
/* Define if you have the ${lib} library (-l${lib}). */
-#undef HAVE_${sym}"
+#undef HAVE_LIB${sym}"
done
status=0
sym="`echo ${lib} | sed 's/[^a-zA-Z0-9_]/_/g' | tr '[a-z]' '[A-Z]'`"
echo "
/* Define if you have the ${lib} library (-l${lib}). */
-#undef HAVE_${sym}"
+#undef HAVE_LIB${sym}"
done
status=0
while test $# -gt 0 ; do
case "z${1}" in
z-h | z--help | z--h* )
- echo "${usage}" 1>&2; exit 1 ;;
+ echo "${usage}" 1>&2; exit 0 ;;
z--macrodir=* | z--m*=* )
AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
shift ;;
sym="`echo ${lib} | sed 's/[^a-zA-Z0-9_]/_/g' | tr '[a-z]' '[A-Z]'`"
echo "
/* Define if you have the ${lib} library (-l${lib}). */
-#undef HAVE_${sym}"
+#undef HAVE_LIB${sym}"
done
status=0
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acgeneral.m4)
-AC_PROGRAMS_CHECK(M4, gnum4 gm4, m4)
+AC_PROGRAMS_PATH(M4, gnum4 gm4 m4, m4)
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
SHELL = /bin/sh
DISTFILES = README Makefile.in INSTALL NEWS COPYING ChangeLog \
-autoconf.texi autoconf.info* standards.texi make-stds.texi standards.info* \
+autoconf.texi autoconf.info standards.texi make-stds.texi standards.info \
texinfo.tex acconfig.h autoconf.sh acgeneral.m4 acspecific.m4 \
configure configure.in autoheader.sh mkinstalldirs install.sh
statements in a template file.
For example, suppose your @file{configure.in} calls
-@code{AC_CONFIG_HEADER(conf.h)} and @code{AC_UNISTD_H}. You could have
-code like this in @file{conf.h.in}:
+@code{AC_CONFIG_HEADER(conf.h)} and @code{AC_HAVE_HEADERS(unistd.h)}.
+You could have code like this in @file{conf.h.in}:
@example
@group
AC_CONST
AC_UID_T
AC_STDC_HEADERS
-AC_UNISTD_H
-AC_HAVE_HEADERS(string.h fcntl.h utime.h sys/io/trioctl.h)
+AC_HAVE_HEADERS(string.h fcntl.h utime.h unistd.h sys/io/trioctl.h)
AC_REPLACE_FUNCS(fnmatch bcopy mkdir strdup)
AC_HAVE_FUNCS(strerror lchown)
AC_VPRINTF
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
-compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
+compile='${CC-cc} $CFLAGS $LDFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
# /usr/ucb/install on SVR4, which tries to use the nonexistent group
-# `staff'. On most BSDish systems install is in /usr/bin, not /usr/ucb
-# anyway. Sigh.
+# `staff', or /sbin/install on IRIX which has incompatible command-line
+# syntax. Sigh.
+#
+# On most BSDish systems install is in /usr/bin, not /usr/ucb
+# anyway.
+# This turns out not to be true, so the mere pathname isn't an indication
+# of whether the program works. What we really need is a set of tests for
+# the install program to see if it actually works in all the required ways.
if test "z${INSTALL}" = "z" ; then
echo checking for install
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
#test -z "$dir" && dir=.
case "$dir" in
- ''|.|/etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
+ ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
*)
if test -f $dir/installbsd; then
INSTALL="$dir/installbsd -c" # OSF1
#include <unistd.h>
#endif], [char *msg = *(sys_siglist + 1);],
AC_DEFINE(SYS_SIGLIST_DECLARED))])dnl
-dnl
\ No newline at end of file
+dnl