1995-07-06 06:54:10 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-06-26 11:35:01 +08:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-07-06 06:54:10 +08:00
|
|
|
AC_INIT(Makefile.in)
|
1993-04-27 09:02:38 +08:00
|
|
|
|
1995-07-06 06:54:10 +08:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
1996-06-26 11:35:01 +08:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
1993-04-27 09:02:38 +08:00
|
|
|
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
|
(Try to) Update to new bfd autoconf scheme.
* run.c: Don't include sysdep.h.
* Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
(CC, CFLAGS, AR, RANLIB): Likewise.
(HDEFINES, TDEFINES): Define.
(CC_FOR_BUILD): Delete.
(host_makefile_frag): Delete.
(Makefile): Don't depend on frags.
* configure.in (sysdep.h): Don't create symlink.
(host_makefile_frag, frags): Deleted.
(CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
* configure: Regenerated.
1995-09-08 06:07:47 +08:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
1995-09-09 02:32:37 +08:00
|
|
|
|
|
|
|
# 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)
|
1994-11-24 13:33:47 +08:00
|
|
|
|
1995-07-06 06:54:10 +08:00
|
|
|
AC_OUTPUT(Makefile)
|