diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:35:26 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:35:26 +0000 |
commit | c906108c21474dfb4ed285bcc0ac6fe02cd400cc (patch) | |
tree | a0015aa5cedc19ccbab307251353a41722a3ae13 /sim/w65/configure.in | |
parent | cd946cff9ede3f30935803403f06f6ed30cad136 (diff) | |
download | gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.zip gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.gz gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.bz2 |
Initial creation of sourceware repositorygdb-4_18-branchpoint
Diffstat (limited to 'sim/w65/configure.in')
-rw-r--r-- | sim/w65/configure.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sim/w65/configure.in b/sim/w65/configure.in new file mode 100644 index 0000000..e2da7db --- /dev/null +++ b/sim/w65/configure.in @@ -0,0 +1,48 @@ +dnl Process this file with autoconf to produce a configure script. +sinclude(../common/aclocal.m4) +AC_PREREQ(2.5)dnl +AC_INIT(Makefile.in) + +AC_CONFIG_HEADER(config.h:config.in) + +AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) +AC_CANONICAL_SYSTEM +AC_ARG_PROGRAM +AC_PROG_CC +AC_PROG_INSTALL + +. ${srcdir}/../../bfd/configure.host + +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. +if test "x$cross_compiling" = "xno"; then + CC_FOR_BUILD='$(CC)' +else + CC_FOR_BUILD=gcc +fi +AC_SUBST(CC_FOR_BUILD) + +dnl We don't use gettext, but bfd does. So we do the appropriate checks +dnl to see if there are intl libraries we should link against. +ALL_LINGUAS= +CY_GNU_GETTEXT + +AC_CHECK_HEADERS(stdlib.h time.h unistd.h) + +AC_MSG_CHECKING([whether printf must be declared]) +AC_CACHE_VAL(sim_cv_decl_needed_printf, +[AC_TRY_COMPILE([#include <stdio.h>], +[int (*pfn) = (int (*)) printf], +sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)]) +AC_MSG_RESULT($sim_cv_decl_needed_printf) +if test $sim_cv_decl_needed_printf = yes; then + AC_DEFINE(NEED_DECLARATION_PRINTF) +fi + +AC_OUTPUT(Makefile, +[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac]) |