1995-11-08 23:44:38 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.3)dnl
|
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
1996-06-03 23:58:45 +08:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
|
|
|
|
1995-11-08 23:44:38 +08:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
|
|
|
AC_C_CROSS
|
|
|
|
if test "x$cross_compiling" = "xno"; then
|
|
|
|
CC_FOR_BUILD='$(CC)'
|
|
|
|
else
|
|
|
|
CC_FOR_BUILD=gcc
|
|
|
|
fi
|
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
|
1996-06-03 23:58:45 +08:00
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h)
|
|
|
|
AC_CHECK_LIB(m, fabs)
|
|
|
|
AC_CHECK_FUNCS(aint anint)
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile,
|
|
|
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|