1999-05-03 07:29:11 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
2005-05-15 18:19:45 +00:00
|
|
|
AC_PREREQ(2.57)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_INIT(ar.c)
|
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
2000-09-07 21:08:51 +00:00
|
|
|
AC_ISC_POSIX
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2001-02-27 06:43:56 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|
|
|
changequote([,])dnl
|
|
|
|
AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2007-04-14 20:38:13 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_GNU_SOURCE
|
|
|
|
AC_PROG_LIBTOOL
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(targets,
|
|
|
|
[ --enable-targets alternative target configurations],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
|
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])dnl
|
|
|
|
AC_ARG_ENABLE(commonbfdlib,
|
|
|
|
[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) commonbfdlib=true ;;
|
|
|
|
no) commonbfdlib=false ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
|
|
|
|
esac])dnl
|
|
|
|
|
2005-07-01 15:19:47 +00:00
|
|
|
AM_BINUTILS_WARNINGS
|
2005-04-14 05:26:44 +00:00
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
AM_CONFIG_HEADER(config.h:config.in)
|
|
|
|
|
|
|
|
if test -z "$target" ; then
|
|
|
|
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
|
|
|
fi
|
|
|
|
if test -z "$host" ; then
|
|
|
|
AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PROG_YACC
|
|
|
|
AM_PROG_LEX
|
|
|
|
|
2007-08-31 10:32:43 +00:00
|
|
|
ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
|
2006-05-31 15:14:46 +00:00
|
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
|
|
|
AM_PO_SUBDIRS
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
2006-12-11 15:09:46 +00:00
|
|
|
AM_CONDITIONAL(GENINSRC_NEVER, false)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_EXEEXT
|
1999-06-22 22:50:22 +00:00
|
|
|
if test -n "$EXEEXT"; then
|
|
|
|
AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
|
|
|
|
[Does the platform use an executable suffix?])
|
|
|
|
fi
|
Based on patches from Mumit Khan <khan@xraylith.wisc.EDU>:
* configure.in: Define EXECUTABLE_SUFFIX.
* dlltool.c: Include "dyn-string.h". Include <stdarg.h> based on
ANSI_PROTOTYPES, not __STDC__.
(outfile): Remove.
(gen_exp_file): Change uses of outfile to use alloca.
(make_one_lib_file, make_head, make_tail): Likewise.
(gen_lib_file): Likewise.
(look_for_prog): New static function.
(deduce_name): Rewrite to use look_for_prog.
(mcore_elf_gen_out_file): Use dyn_string_t rather than outfile.
* dllwrap.c: Don't include <stdio.h>, <errno.h>, <string.h>,
<stdlib.h>, or <unistd.h>. Include <sys/stat.h> and either
<stdarg.h> or <varargs.h>.
(driver_name): Initialize to NULL, not "gcc".
(dlltool_name): Initialize to NULL, not "dlltool".
(display, inform, look_for_prog, deduce_name): New static
functions.
(usage): Mention -mno-cygwin.
(OPTION_MNO_CYGWIN): Define.
(main): Handle -mno-cygwin. Deduce driver_name and dlltool_name.
* resrc.c (look_for_default): Make static. Remove unused local
path. Check using EXECUTABLE_SUFFIX.
(read_rc_file): Allocate enough space to hold EXECUTABLE_SUFFIX.
* Makefile.am: Rebuild dependencies.
(dllwrap_LDADD): Add $(INTLLIBS).
* configure, Makefile.in, config.in: Rebuild.
1999-06-22 20:39:46 +00:00
|
|
|
AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
|
|
|
|
[Suffix used for executables, if any.])
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
# host-specific stuff:
|
|
|
|
|
|
|
|
HDEFINES=
|
|
|
|
|
|
|
|
. ${srcdir}/../bfd/configure.host
|
|
|
|
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
BFD_CC_FOR_BUILD
|
|
|
|
|
1999-08-08 18:09:48 +00:00
|
|
|
DEMANGLER_NAME=c++filt
|
|
|
|
case "${host}" in
|
|
|
|
*-*-go32* | *-*-msdos*)
|
|
|
|
DEMANGLER_NAME=cxxfilt
|
|
|
|
esac
|
|
|
|
AC_SUBST(DEMANGLER_NAME)
|
|
|
|
|
2006-10-29 19:07:54 +00:00
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_FUNC_ALLOCA
|
2002-06-21 02:34:38 +00:00
|
|
|
AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
|
2006-10-13 09:43:29 +00:00
|
|
|
AC_CHECK_FUNC([mkstemp],
|
|
|
|
AC_DEFINE([HAVE_MKSTEMP], 1,
|
|
|
|
[Define to 1 if you have the `mkstemp' function.]))
|
|
|
|
AC_CHECK_FUNC([mkdtemp],
|
|
|
|
AC_DEFINE([HAVE_MKDTEMP], 1,
|
|
|
|
[Define to 1 if you have the `mkdtemp' function.]))
|
2001-12-04 10:11:22 +00:00
|
|
|
|
|
|
|
# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
|
|
|
|
# needs to be defined for it
|
|
|
|
AC_MSG_CHECKING([for fopen64])
|
|
|
|
AC_CACHE_VAL(bu_cv_have_fopen64,
|
|
|
|
[AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");],
|
|
|
|
bu_cv_have_fopen64=yes,
|
|
|
|
[saved_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
|
|
|
AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");],
|
|
|
|
bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
|
|
|
|
bu_cv_have_fopen64=no)
|
|
|
|
CPPFLAGS=$saved_CPPFLAGS])])
|
|
|
|
AC_MSG_RESULT($bu_cv_have_fopen64)
|
2002-06-21 02:41:52 +00:00
|
|
|
if test "$bu_cv_have_fopen64" != no; then
|
2001-12-04 10:11:22 +00:00
|
|
|
AC_DEFINE([HAVE_FOPEN64], 1,
|
|
|
|
[Is fopen64 available?])
|
2004-10-13 14:33:51 +00:00
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([for stat64])
|
|
|
|
AC_CACHE_VAL(bu_cv_have_stat64,
|
|
|
|
[AC_TRY_LINK([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);],
|
|
|
|
bu_cv_have_stat64=yes,
|
|
|
|
[saved_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
|
|
|
AC_TRY_LINK([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);],
|
|
|
|
bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE",
|
|
|
|
bu_cv_have_stat64=no)
|
|
|
|
CPPFLAGS=$saved_CPPFLAGS])])
|
|
|
|
AC_MSG_RESULT($bu_cv_have_stat64)
|
|
|
|
if test "$bu_cv_have_stat64" != no; then
|
|
|
|
AC_DEFINE([HAVE_STAT64], 1,
|
|
|
|
[Is stat64 available?])
|
|
|
|
fi
|
|
|
|
if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
|
|
|
|
|| test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
|
|
|
|
AC_DEFINE([_LARGEFILE64_SOURCE], 1,
|
|
|
|
[Enable LFS])
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
2001-12-04 10:11:22 +00:00
|
|
|
fi
|
1999-05-03 07:29:11 +00:00
|
|
|
|
1999-06-12 15:20:21 +00:00
|
|
|
# Some systems have frexp only in -lm, not in -lc.
|
2000-02-26 00:59:51 +00:00
|
|
|
AC_SEARCH_LIBS(frexp, m)
|
1999-06-12 15:20:21 +00:00
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_MSG_CHECKING(for time_t in time.h)
|
|
|
|
AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
|
|
|
|
[AC_TRY_COMPILE([#include <time.h>], [time_t i;],
|
|
|
|
bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
|
|
|
|
AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
|
|
|
|
if test $bu_cv_decl_time_t_time_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
|
|
|
|
[Is the type time_t defined in <time.h>?])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for time_t in sys/types.h)
|
|
|
|
AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
|
|
|
|
[AC_TRY_COMPILE([#include <sys/types.h>], [time_t i;],
|
|
|
|
bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
|
|
|
|
AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
|
|
|
|
if test $bu_cv_decl_time_t_types_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
|
|
|
|
[Is the type time_t defined in <sys/types.h>?])
|
|
|
|
fi
|
|
|
|
|
2005-03-31 14:40:41 +00:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
|
|
|
|
[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);],
|
|
|
|
bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
|
|
|
|
AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
|
|
|
|
if test $bu_cv_decl_getopt_unistd_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_DECL_GETOPT], 1,
|
|
|
|
[Is the prototype for getopt in <unistd.h> in the expected format?])
|
|
|
|
fi
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
|
|
|
|
# by default.
|
|
|
|
AC_MSG_CHECKING([for utime.h])
|
|
|
|
AC_CACHE_VAL(bu_cv_header_utime_h,
|
|
|
|
[AC_TRY_COMPILE([#include <sys/types.h>
|
|
|
|
#ifdef HAVE_TIME_H
|
|
|
|
#include <time.h>
|
|
|
|
#endif
|
|
|
|
#include <utime.h>],
|
|
|
|
[struct utimbuf s;],
|
|
|
|
bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
|
|
|
|
AC_MSG_RESULT($bu_cv_header_utime_h)
|
|
|
|
if test $bu_cv_header_utime_h = yes; then
|
|
|
|
AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
|
|
|
|
fi
|
|
|
|
|
2006-02-09 11:49:53 +00:00
|
|
|
AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
|
|
|
|
snprintf, vsnprintf])
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
BFD_BINARY_FOPEN
|
|
|
|
|
|
|
|
# target-specific stuff:
|
|
|
|
|
|
|
|
# Canonicalize the secondary target names.
|
|
|
|
if test -n "$enable_targets"; then
|
|
|
|
for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|
|
|
do
|
1999-09-14 23:29:35 +00:00
|
|
|
result=`$ac_config_sub $targ 2>/dev/null`
|
1999-05-03 07:29:11 +00:00
|
|
|
if test -n "$result"; then
|
|
|
|
canon_targets="$canon_targets $result"
|
|
|
|
else
|
|
|
|
# Allow targets that config.sub doesn't recognize, like "all".
|
|
|
|
canon_targets="$canon_targets $targ"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
* Makefile.am: Add LIBICONV to windres.
* acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
* configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
* config.in: Add ICONV defines.
* aclocal: Regenerate.
* confugure: Regenerate.
* winduni.c: (local_iconv_map codepages, wind_language_t, languages, unicode_is$
(ascii_from_unicode): Use codepage_from_unicode.
(ascii_from_unicode): Use unicode_from_codepage.
Use for cygwin windows API for unicode transformation.
* winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New macros.
(wind_language_t, local_iconv_map): New types.
(wind_find_language_by_id, wind_find_language_by_codepage,
(unicode_is_valid_codepage, wind_find_codepage_info, unicode_from_codepage, c$
2007-06-05 13:10:30 +00:00
|
|
|
AC_CHECK_HEADER(iconv.h)
|
|
|
|
AM_ICONV
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
all_targets=false
|
|
|
|
BUILD_NLMCONV=
|
|
|
|
NLMCONV_DEFS=
|
|
|
|
BUILD_SRCONV=
|
|
|
|
BUILD_DLLTOOL=
|
|
|
|
DLLTOOL_DEFS=
|
2007-02-02 13:59:54 +00:00
|
|
|
DLLTOOL_DEFAULT=
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_WINDRES=
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC=
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_DLLWRAP=
|
|
|
|
BUILD_MISC=
|
2007-02-28 01:29:32 +00:00
|
|
|
BUILD_INSTALL_MISC=
|
2001-01-09 20:25:31 +00:00
|
|
|
OBJDUMP_DEFS=
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
for targ in $target $canon_targets
|
|
|
|
do
|
|
|
|
if test "x$targ" = "xall"; then
|
|
|
|
all_targets=true
|
|
|
|
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
|
|
|
|
BUILD_SRCONV='$(SRCONV_PROG)'
|
|
|
|
NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
|
2007-02-28 01:29:32 +00:00
|
|
|
BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
|
2007-10-16 16:05:41 +00:00
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
|
|
|
|
fi
|
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
|
|
|
|
BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
|
1999-05-03 07:29:11 +00:00
|
|
|
else
|
|
|
|
case $targ in
|
|
|
|
changequote(,)dnl
|
2003-05-16 16:30:27 +00:00
|
|
|
i[3-7]86*-*-netware*)
|
1999-05-03 07:29:11 +00:00
|
|
|
changequote([,])dnl
|
|
|
|
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
|
|
|
|
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
|
|
|
|
;;
|
|
|
|
alpha*-*-netware*)
|
|
|
|
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
|
|
|
|
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
|
|
|
|
;;
|
|
|
|
powerpc*-*-netware*)
|
|
|
|
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
|
|
|
|
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
|
|
|
|
;;
|
|
|
|
sparc*-*-netware*)
|
|
|
|
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
|
|
|
|
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
case $targ in
|
|
|
|
*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
|
|
|
|
esac
|
|
|
|
case $targ in
|
2000-12-19 22:22:02 +00:00
|
|
|
arm-epoc-pe*)
|
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
|
|
|
|
fi
|
2000-12-19 22:22:02 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
2000-12-19 22:22:02 +00:00
|
|
|
;;
|
2006-08-21 08:12:46 +00:00
|
|
|
arm-wince-pe* | arm-*-wince)
|
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
|
|
|
|
fi
|
2006-08-21 08:12:46 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
2006-08-21 08:12:46 +00:00
|
|
|
;;
|
|
|
|
arm-*-pe*)
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
|
|
|
|
fi
|
1999-05-03 07:29:11 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2003-04-01 10:52:43 +00:00
|
|
|
thumb-*-pe*)
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
|
|
|
|
fi
|
1999-05-03 07:29:11 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2007-01-08 17:21:50 +00:00
|
|
|
x86_64-*-mingw*)
|
2006-09-20 11:35:11 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
|
|
|
|
fi
|
2006-09-20 11:35:11 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
2006-09-20 11:35:11 +00:00
|
|
|
BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
|
|
|
|
;;
|
1999-05-03 07:29:11 +00:00
|
|
|
changequote(,)dnl
|
2003-05-16 16:30:27 +00:00
|
|
|
i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
|
1999-05-03 07:29:11 +00:00
|
|
|
changequote([,])dnl
|
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
|
|
|
|
fi
|
1999-05-03 07:29:11 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2003-05-16 16:30:27 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
i[3-7]86-*-interix)
|
|
|
|
changequote([,])dnl
|
1999-08-05 15:35:10 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
|
|
|
|
fi
|
1999-08-05 15:35:10 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
|
|
|
|
;;
|
2004-01-02 17:08:05 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
powerpc*-aix5.[01])
|
|
|
|
changequote([,])dnl
|
|
|
|
;;
|
|
|
|
powerpc*-aix5.*)
|
|
|
|
OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
|
|
|
|
;;
|
2002-05-08 23:15:36 +00:00
|
|
|
powerpc*-*-pe* | powerpc*-*-cygwin*)
|
1999-05-03 07:29:11 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
|
|
|
|
fi
|
1999-05-03 07:29:11 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2007-08-24 15:37:37 +00:00
|
|
|
powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
|
2007-02-28 01:29:32 +00:00
|
|
|
BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
|
2007-01-11 06:24:40 +00:00
|
|
|
;;
|
2002-05-08 23:15:36 +00:00
|
|
|
sh*-*-pe)
|
2000-02-24 19:37:32 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
|
|
|
|
fi
|
2000-02-24 19:37:32 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
2000-02-24 19:37:32 +00:00
|
|
|
;;
|
2007-02-27 08:31:46 +00:00
|
|
|
spu-*-*)
|
2007-02-28 01:29:32 +00:00
|
|
|
BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
|
2007-02-27 08:31:46 +00:00
|
|
|
;;
|
2002-05-08 23:15:36 +00:00
|
|
|
mips*-*-pe)
|
2000-02-24 19:37:32 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
|
|
|
|
fi
|
2000-02-24 19:37:32 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
2000-02-24 19:37:32 +00:00
|
|
|
;;
|
2003-04-01 10:52:43 +00:00
|
|
|
mcore-*-pe)
|
1999-05-15 15:25:22 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
|
|
|
|
fi
|
1999-05-15 15:25:22 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
2007-06-19 13:24:33 +00:00
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2003-04-01 10:52:43 +00:00
|
|
|
mcore-*-elf)
|
1999-05-15 15:25:22 +00:00
|
|
|
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
|
2007-02-02 13:59:54 +00:00
|
|
|
if test -z "$DLLTOOL_DEFAULT"; then
|
|
|
|
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
|
|
|
|
fi
|
1999-05-15 15:25:22 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
|
1999-08-05 15:35:10 +00:00
|
|
|
;;
|
2007-02-05 19:56:32 +00:00
|
|
|
mep-*)
|
|
|
|
OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
|
|
|
|
;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2007-02-02 13:59:54 +00:00
|
|
|
DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
|
|
|
|
|
2001-08-03 16:27:22 +00:00
|
|
|
if test "${with_windres+set}" = set; then
|
|
|
|
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
|
|
|
|
fi
|
|
|
|
|
2007-06-19 13:24:33 +00:00
|
|
|
if test "${with_windmc+set}" = set; then
|
|
|
|
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
|
|
|
|
fi
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_SUBST(NLMCONV_DEFS)
|
|
|
|
AC_SUBST(BUILD_NLMCONV)
|
|
|
|
AC_SUBST(BUILD_SRCONV)
|
|
|
|
AC_SUBST(BUILD_DLLTOOL)
|
|
|
|
AC_SUBST(DLLTOOL_DEFS)
|
|
|
|
AC_SUBST(BUILD_WINDRES)
|
2007-06-19 13:24:33 +00:00
|
|
|
AC_SUBST(BUILD_WINDMC)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_SUBST(BUILD_DLLWRAP)
|
|
|
|
AC_SUBST(BUILD_MISC)
|
2007-02-28 01:29:32 +00:00
|
|
|
AC_SUBST(BUILD_INSTALL_MISC)
|
2001-01-09 20:25:31 +00:00
|
|
|
AC_SUBST(OBJDUMP_DEFS)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
|
|
|
|
|
|
|
|
targ=$target
|
|
|
|
. $srcdir/../bfd/config.bfd
|
|
|
|
if test "x$targ_underscore" = "xyes"; then
|
|
|
|
UNDERSCORE=1
|
|
|
|
else
|
|
|
|
UNDERSCORE=0
|
|
|
|
fi
|
2002-09-17 07:09:47 +00:00
|
|
|
AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
|
|
|
|
[Define to 1 if user symbol names have a leading underscore, 0 if not.])
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2002-03-18 12:46:27 +00:00
|
|
|
# Emulation
|
|
|
|
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
|
|
|
do
|
|
|
|
# Canonicalize the secondary target names.
|
|
|
|
result=`$ac_config_sub $targ_alias 2>/dev/null`
|
|
|
|
if test -n "$result"; then
|
|
|
|
targ=$result
|
|
|
|
else
|
|
|
|
targ=$targ_alias
|
|
|
|
fi
|
|
|
|
|
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
|
|
|
|
EMULATION=$targ_emul
|
|
|
|
EMULATION_VECTOR=$targ_emul_vector
|
|
|
|
done
|
|
|
|
|
|
|
|
AC_SUBST(EMULATION)
|
|
|
|
AC_SUBST(EMULATION_VECTOR)
|
|
|
|
|
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options.
* configure: Regenerate.
bfd/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
htmldir. Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST for datarootdir, docdir and htmldir.
* configure: Regenerate.
bfd/doc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html and install-html-am targets.
Define datarootdir, docdir and htmldir.
* Makefile.in: Regenerate.
binutils/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
etc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add htmldir,
docdir and datarootdir.
* configure.texi: Document install-html target.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
gas/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
gprof/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html, install-html-am and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
intl/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* intl/Makefile.in: Add html info and dvi and install-html to .PHONY
Add install-html target.
ld/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html, install-html-am, and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* po/Make-in: Add install-html target.
opcodes/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target.
* Makefile.in: Regenerate.
2006-04-06 21:49:35 +00:00
|
|
|
# Required for html and install-html
|
|
|
|
AC_SUBST(datarootdir)
|
|
|
|
AC_SUBST(docdir)
|
|
|
|
AC_SUBST(htmldir)
|
|
|
|
|
2006-05-31 15:14:46 +00:00
|
|
|
AC_OUTPUT(Makefile doc/Makefile po/Makefile.in:po/Make-in)
|