]> Git Repo - binutils.git/blame - sim/w65/configure.in
* xcofflink.c: More improvements, mostly to fix handling of
[binutils.git] / sim / w65 / configure.in
CommitLineData
b6de8f6a
ILT
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.3)dnl
3AC_INIT(Makefile.in)
321a78a5 4
b6de8f6a 5AC_CONFIG_HEADER(config.h:config.in)
321a78a5 6
b6de8f6a
ILT
7AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
8AC_CANONICAL_SYSTEM
9AC_ARG_PROGRAM
321a78a5
SC
10
11. ${srcdir}/../../bfd/configure.host
12
b6de8f6a
ILT
13AC_PROG_CC
14AC_SUBST(CFLAGS)
15AC_SUBST(HDEFINES)
16AR=${AR-ar}
17AC_SUBST(AR)
18AC_PROG_RANLIB
19
20# Put a plausible default for CC_FOR_BUILD in Makefile.
21AC_C_CROSS
22if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
24else
25 CC_FOR_BUILD=gcc
321a78a5 26fi
b6de8f6a
ILT
27AC_SUBST(CC_FOR_BUILD)
28
29AC_CHECK_HEADERS(stdlib.h time.h unistd.h)
30
31AC_MSG_CHECKING([whether printf must be declared])
32AC_CACHE_VAL(sim_cv_decl_needed_printf,
33[AC_TRY_COMPILE([#include <stdio.h>],
34[int (*pfn) = (int (*)) printf],
35sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)])
36AC_MSG_RESULT($sim_cv_decl_needed_printf)
37if test $sim_cv_decl_needed_printf = yes; then
38 AC_DEFINE(NEED_DECLARATION_PRINTF)
321a78a5
SC
39fi
40
b6de8f6a
ILT
41AC_OUTPUT(Makefile,
42[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
This page took 0.096663 seconds and 4 git commands to generate.