1*3d8817e4Smioddnl Process this file with autoconf to produce a configure script. 2*3d8817e4Smioddnl 3*3d8817e4SmiodAC_PREREQ(2.57) 4*3d8817e4SmiodAC_INIT(ar.c) 5*3d8817e4Smiod 6*3d8817e4SmiodAC_CANONICAL_SYSTEM 7*3d8817e4SmiodAC_ISC_POSIX 8*3d8817e4Smiod 9*3d8817e4Smiodchangequote(,)dnl 10*3d8817e4SmiodBFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 11*3d8817e4Smiodchangequote([,])dnl 12*3d8817e4SmiodAM_INIT_AUTOMAKE(binutils, ${BFD_VERSION}) 13*3d8817e4Smiod 14*3d8817e4SmiodAM_PROG_LIBTOOL 15*3d8817e4Smiod 16*3d8817e4SmiodAC_ARG_ENABLE(targets, 17*3d8817e4Smiod[ --enable-targets alternative target configurations], 18*3d8817e4Smiod[case "${enableval}" in 19*3d8817e4Smiod yes | "") AC_ERROR(enable-targets option must specify target names or 'all') 20*3d8817e4Smiod ;; 21*3d8817e4Smiod no) enable_targets= ;; 22*3d8817e4Smiod *) enable_targets=$enableval ;; 23*3d8817e4Smiodesac])dnl 24*3d8817e4SmiodAC_ARG_ENABLE(commonbfdlib, 25*3d8817e4Smiod[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library], 26*3d8817e4Smiod[case "${enableval}" in 27*3d8817e4Smiod yes) commonbfdlib=true ;; 28*3d8817e4Smiod no) commonbfdlib=false ;; 29*3d8817e4Smiod *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;; 30*3d8817e4Smiodesac])dnl 31*3d8817e4Smiod 32*3d8817e4SmiodAM_BINUTILS_WARNINGS 33*3d8817e4Smiod 34*3d8817e4SmiodAM_CONFIG_HEADER(config.h:config.in) 35*3d8817e4Smiod 36*3d8817e4Smiodif test -z "$target" ; then 37*3d8817e4Smiod AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) 38*3d8817e4Smiodfi 39*3d8817e4Smiodif test -z "$host" ; then 40*3d8817e4Smiod AC_MSG_ERROR(Unrecognized host system type; please check config.sub.) 41*3d8817e4Smiodfi 42*3d8817e4Smiod 43*3d8817e4SmiodAC_PROG_CC 44*3d8817e4SmiodAC_GNU_SOURCE 45*3d8817e4Smiod 46*3d8817e4SmiodAC_PROG_YACC 47*3d8817e4SmiodAM_PROG_LEX 48*3d8817e4Smiod 49*3d8817e4SmiodALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi" 50*3d8817e4SmiodCY_GNU_GETTEXT 51*3d8817e4Smiod 52*3d8817e4SmiodAM_MAINTAINER_MODE 53*3d8817e4SmiodAC_EXEEXT 54*3d8817e4Smiodif test -n "$EXEEXT"; then 55*3d8817e4Smiod AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1, 56*3d8817e4Smiod [Does the platform use an executable suffix?]) 57*3d8817e4Smiodfi 58*3d8817e4SmiodAC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}", 59*3d8817e4Smiod [Suffix used for executables, if any.]) 60*3d8817e4Smiod 61*3d8817e4Smiod# host-specific stuff: 62*3d8817e4Smiod 63*3d8817e4SmiodHDEFINES= 64*3d8817e4Smiod 65*3d8817e4Smiod. ${srcdir}/../bfd/configure.host 66*3d8817e4Smiod 67*3d8817e4SmiodAC_SUBST(HDEFINES) 68*3d8817e4SmiodAR=${AR-ar} 69*3d8817e4SmiodAC_SUBST(AR) 70*3d8817e4SmiodAC_PROG_RANLIB 71*3d8817e4SmiodAC_PROG_INSTALL 72*3d8817e4Smiod 73*3d8817e4SmiodBFD_CC_FOR_BUILD 74*3d8817e4Smiod 75*3d8817e4SmiodDEMANGLER_NAME=c++filt 76*3d8817e4Smiodcase "${host}" in 77*3d8817e4Smiod *-*-go32* | *-*-msdos*) 78*3d8817e4Smiod DEMANGLER_NAME=cxxfilt 79*3d8817e4Smiodesac 80*3d8817e4SmiodAC_SUBST(DEMANGLER_NAME) 81*3d8817e4Smiod 82*3d8817e4SmiodAC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h) 83*3d8817e4SmiodAC_HEADER_SYS_WAIT 84*3d8817e4SmiodAC_FUNC_ALLOCA 85*3d8817e4SmiodAC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll) 86*3d8817e4Smiod 87*3d8817e4Smiod# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE 88*3d8817e4Smiod# needs to be defined for it 89*3d8817e4SmiodAC_MSG_CHECKING([for fopen64]) 90*3d8817e4SmiodAC_CACHE_VAL(bu_cv_have_fopen64, 91*3d8817e4Smiod[AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");], 92*3d8817e4Smiodbu_cv_have_fopen64=yes, 93*3d8817e4Smiod[saved_CPPFLAGS=$CPPFLAGS 94*3d8817e4Smiod CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" 95*3d8817e4Smiod AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");], 96*3d8817e4Smiodbu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE", 97*3d8817e4Smiodbu_cv_have_fopen64=no) 98*3d8817e4Smiod CPPFLAGS=$saved_CPPFLAGS])]) 99*3d8817e4SmiodAC_MSG_RESULT($bu_cv_have_fopen64) 100*3d8817e4Smiodif test "$bu_cv_have_fopen64" != no; then 101*3d8817e4Smiod AC_DEFINE([HAVE_FOPEN64], 1, 102*3d8817e4Smiod [Is fopen64 available?]) 103*3d8817e4Smiodfi 104*3d8817e4SmiodAC_MSG_CHECKING([for stat64]) 105*3d8817e4SmiodAC_CACHE_VAL(bu_cv_have_stat64, 106*3d8817e4Smiod[AC_TRY_LINK([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);], 107*3d8817e4Smiodbu_cv_have_stat64=yes, 108*3d8817e4Smiod[saved_CPPFLAGS=$CPPFLAGS 109*3d8817e4Smiod CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" 110*3d8817e4Smiod AC_TRY_LINK([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);], 111*3d8817e4Smiodbu_cv_have_stat64="need -D_LARGEFILE64_SOURCE", 112*3d8817e4Smiodbu_cv_have_stat64=no) 113*3d8817e4Smiod CPPFLAGS=$saved_CPPFLAGS])]) 114*3d8817e4SmiodAC_MSG_RESULT($bu_cv_have_stat64) 115*3d8817e4Smiodif test "$bu_cv_have_stat64" != no; then 116*3d8817e4Smiod AC_DEFINE([HAVE_STAT64], 1, 117*3d8817e4Smiod [Is stat64 available?]) 118*3d8817e4Smiodfi 119*3d8817e4Smiodif test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ 120*3d8817e4Smiod || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then 121*3d8817e4Smiod AC_DEFINE([_LARGEFILE64_SOURCE], 1, 122*3d8817e4Smiod [Enable LFS]) 123*3d8817e4Smiod CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" 124*3d8817e4Smiodfi 125*3d8817e4Smiod 126*3d8817e4Smiod# Some systems have frexp only in -lm, not in -lc. 127*3d8817e4SmiodAC_SEARCH_LIBS(frexp, m) 128*3d8817e4Smiod 129*3d8817e4SmiodAC_MSG_CHECKING(for time_t in time.h) 130*3d8817e4SmiodAC_CACHE_VAL(bu_cv_decl_time_t_time_h, 131*3d8817e4Smiod[AC_TRY_COMPILE([#include <time.h>], [time_t i;], 132*3d8817e4Smiodbu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)]) 133*3d8817e4SmiodAC_MSG_RESULT($bu_cv_decl_time_t_time_h) 134*3d8817e4Smiodif test $bu_cv_decl_time_t_time_h = yes; then 135*3d8817e4Smiod AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1, 136*3d8817e4Smiod [Is the type time_t defined in <time.h>?]) 137*3d8817e4Smiodfi 138*3d8817e4Smiod 139*3d8817e4SmiodAC_MSG_CHECKING(for time_t in sys/types.h) 140*3d8817e4SmiodAC_CACHE_VAL(bu_cv_decl_time_t_types_h, 141*3d8817e4Smiod[AC_TRY_COMPILE([#include <sys/types.h>], [time_t i;], 142*3d8817e4Smiodbu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)]) 143*3d8817e4SmiodAC_MSG_RESULT($bu_cv_decl_time_t_types_h) 144*3d8817e4Smiodif test $bu_cv_decl_time_t_types_h = yes; then 145*3d8817e4Smiod AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1, 146*3d8817e4Smiod [Is the type time_t defined in <sys/types.h>?]) 147*3d8817e4Smiodfi 148*3d8817e4Smiod 149*3d8817e4SmiodAC_MSG_CHECKING(for a known getopt prototype in unistd.h) 150*3d8817e4SmiodAC_CACHE_VAL(bu_cv_decl_getopt_unistd_h, 151*3d8817e4Smiod[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);], 152*3d8817e4Smiodbu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)]) 153*3d8817e4SmiodAC_MSG_RESULT($bu_cv_decl_getopt_unistd_h) 154*3d8817e4Smiodif test $bu_cv_decl_getopt_unistd_h = yes; then 155*3d8817e4Smiod AC_DEFINE([HAVE_DECL_GETOPT], 1, 156*3d8817e4Smiod [Is the prototype for getopt in <unistd.h> in the expected format?]) 157*3d8817e4Smiodfi 158*3d8817e4Smiod 159*3d8817e4Smiod# Under Next 3.2 <utime.h> apparently does not define struct utimbuf 160*3d8817e4Smiod# by default. 161*3d8817e4SmiodAC_MSG_CHECKING([for utime.h]) 162*3d8817e4SmiodAC_CACHE_VAL(bu_cv_header_utime_h, 163*3d8817e4Smiod[AC_TRY_COMPILE([#include <sys/types.h> 164*3d8817e4Smiod#ifdef HAVE_TIME_H 165*3d8817e4Smiod#include <time.h> 166*3d8817e4Smiod#endif 167*3d8817e4Smiod#include <utime.h>], 168*3d8817e4Smiod[struct utimbuf s;], 169*3d8817e4Smiodbu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)]) 170*3d8817e4SmiodAC_MSG_RESULT($bu_cv_header_utime_h) 171*3d8817e4Smiodif test $bu_cv_header_utime_h = yes; then 172*3d8817e4Smiod AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?]) 173*3d8817e4Smiodfi 174*3d8817e4Smiod 175*3d8817e4SmiodAC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked, 176*3d8817e4Smiod snprintf, vsnprintf]) 177*3d8817e4Smiod 178*3d8817e4SmiodBFD_BINARY_FOPEN 179*3d8817e4Smiod 180*3d8817e4Smiod# target-specific stuff: 181*3d8817e4Smiod 182*3d8817e4Smiod# Canonicalize the secondary target names. 183*3d8817e4Smiodif test -n "$enable_targets"; then 184*3d8817e4Smiod for targ in `echo $enable_targets | sed 's/,/ /g'` 185*3d8817e4Smiod do 186*3d8817e4Smiod result=`$ac_config_sub $targ 2>/dev/null` 187*3d8817e4Smiod if test -n "$result"; then 188*3d8817e4Smiod canon_targets="$canon_targets $result" 189*3d8817e4Smiod else 190*3d8817e4Smiod # Allow targets that config.sub doesn't recognize, like "all". 191*3d8817e4Smiod canon_targets="$canon_targets $targ" 192*3d8817e4Smiod fi 193*3d8817e4Smiod done 194*3d8817e4Smiodfi 195*3d8817e4Smiod 196*3d8817e4Smiodall_targets=false 197*3d8817e4SmiodBUILD_NLMCONV= 198*3d8817e4SmiodNLMCONV_DEFS= 199*3d8817e4SmiodBUILD_SRCONV= 200*3d8817e4SmiodBUILD_DLLTOOL= 201*3d8817e4SmiodDLLTOOL_DEFS= 202*3d8817e4SmiodBUILD_WINDRES= 203*3d8817e4SmiodBUILD_DLLWRAP= 204*3d8817e4SmiodBUILD_MISC= 205*3d8817e4SmiodOBJDUMP_DEFS= 206*3d8817e4Smiod 207*3d8817e4Smiodfor targ in $target $canon_targets 208*3d8817e4Smioddo 209*3d8817e4Smiod if test "x$targ" = "xall"; then 210*3d8817e4Smiod all_targets=true 211*3d8817e4Smiod BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' 212*3d8817e4Smiod BUILD_SRCONV='$(SRCONV_PROG)' 213*3d8817e4Smiod NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" 214*3d8817e4Smiod else 215*3d8817e4Smiod case $targ in 216*3d8817e4Smiodchangequote(,)dnl 217*3d8817e4Smiod i[3-7]86*-*-netware*) 218*3d8817e4Smiodchangequote([,])dnl 219*3d8817e4Smiod BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' 220*3d8817e4Smiod NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" 221*3d8817e4Smiod ;; 222*3d8817e4Smiod alpha*-*-netware*) 223*3d8817e4Smiod BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' 224*3d8817e4Smiod NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" 225*3d8817e4Smiod ;; 226*3d8817e4Smiod powerpc*-*-netware*) 227*3d8817e4Smiod BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' 228*3d8817e4Smiod NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" 229*3d8817e4Smiod ;; 230*3d8817e4Smiod sparc*-*-netware*) 231*3d8817e4Smiod BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' 232*3d8817e4Smiod NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" 233*3d8817e4Smiod ;; 234*3d8817e4Smiod esac 235*3d8817e4Smiod case $targ in 236*3d8817e4Smiod *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; 237*3d8817e4Smiod esac 238*3d8817e4Smiod case $targ in 239*3d8817e4Smiod arm-epoc-pe*) 240*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 241*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" 242*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 243*3d8817e4Smiod ;; 244*3d8817e4Smiod arm-*-pe* | arm-*-wince) 245*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 246*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" 247*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 248*3d8817e4Smiod ;; 249*3d8817e4Smiod thumb-*-pe*) 250*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 251*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" 252*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 253*3d8817e4Smiod ;; 254*3d8817e4Smiodchangequote(,)dnl 255*3d8817e4Smiod i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) 256*3d8817e4Smiodchangequote([,])dnl 257*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 258*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" 259*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 260*3d8817e4Smiod BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' 261*3d8817e4Smiod ;; 262*3d8817e4Smiodchangequote(,)dnl 263*3d8817e4Smiod i[3-7]86-*-interix) 264*3d8817e4Smiodchangequote([,])dnl 265*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)' 266*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" 267*3d8817e4Smiod ;; 268*3d8817e4Smiodchangequote(,)dnl 269*3d8817e4Smiod powerpc*-aix5.[01]) 270*3d8817e4Smiodchangequote([,])dnl 271*3d8817e4Smiod ;; 272*3d8817e4Smiod powerpc*-aix5.*) 273*3d8817e4Smiod OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" 274*3d8817e4Smiod ;; 275*3d8817e4Smiod powerpc*-*-pe* | powerpc*-*-cygwin*) 276*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 277*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" 278*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 279*3d8817e4Smiod ;; 280*3d8817e4Smiod sh*-*-pe) 281*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 282*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" 283*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 284*3d8817e4Smiod ;; 285*3d8817e4Smiod mips*-*-pe) 286*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 287*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" 288*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 289*3d8817e4Smiod ;; 290*3d8817e4Smiod mcore-*-pe) 291*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 292*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" 293*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 294*3d8817e4Smiod ;; 295*3d8817e4Smiod mcore-*-elf) 296*3d8817e4Smiod BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 297*3d8817e4Smiod DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" 298*3d8817e4Smiod ;; 299*3d8817e4Smiod esac 300*3d8817e4Smiod fi 301*3d8817e4Smioddone 302*3d8817e4Smiod 303*3d8817e4Smiodif test "${with_windres+set}" = set; then 304*3d8817e4Smiod BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 305*3d8817e4Smiodfi 306*3d8817e4Smiod 307*3d8817e4SmiodAC_SUBST(NLMCONV_DEFS) 308*3d8817e4SmiodAC_SUBST(BUILD_NLMCONV) 309*3d8817e4SmiodAC_SUBST(BUILD_SRCONV) 310*3d8817e4SmiodAC_SUBST(BUILD_DLLTOOL) 311*3d8817e4SmiodAC_SUBST(DLLTOOL_DEFS) 312*3d8817e4SmiodAC_SUBST(BUILD_WINDRES) 313*3d8817e4SmiodAC_SUBST(BUILD_DLLWRAP) 314*3d8817e4SmiodAC_SUBST(BUILD_MISC) 315*3d8817e4SmiodAC_SUBST(OBJDUMP_DEFS) 316*3d8817e4Smiod 317*3d8817e4SmiodAC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.]) 318*3d8817e4Smiod 319*3d8817e4Smiodtarg=$target 320*3d8817e4Smiod. $srcdir/../bfd/config.bfd 321*3d8817e4Smiodif test "x$targ_underscore" = "xyes"; then 322*3d8817e4Smiod UNDERSCORE=1 323*3d8817e4Smiodelse 324*3d8817e4Smiod UNDERSCORE=0 325*3d8817e4Smiodfi 326*3d8817e4SmiodAC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE, 327*3d8817e4Smiod [Define to 1 if user symbol names have a leading underscore, 0 if not.]) 328*3d8817e4Smiod 329*3d8817e4Smiod# Emulation 330*3d8817e4Smiodfor targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` 331*3d8817e4Smioddo 332*3d8817e4Smiod # Canonicalize the secondary target names. 333*3d8817e4Smiod result=`$ac_config_sub $targ_alias 2>/dev/null` 334*3d8817e4Smiod if test -n "$result"; then 335*3d8817e4Smiod targ=$result 336*3d8817e4Smiod else 337*3d8817e4Smiod targ=$targ_alias 338*3d8817e4Smiod fi 339*3d8817e4Smiod 340*3d8817e4Smiod . ${srcdir}/configure.tgt 341*3d8817e4Smiod 342*3d8817e4Smiod EMULATION=$targ_emul 343*3d8817e4Smiod EMULATION_VECTOR=$targ_emul_vector 344*3d8817e4Smioddone 345*3d8817e4Smiod 346*3d8817e4SmiodAC_SUBST(EMULATION) 347*3d8817e4SmiodAC_SUBST(EMULATION_VECTOR) 348*3d8817e4Smiod 349*3d8817e4Smiod# Required for html and install-html 350*3d8817e4SmiodAC_SUBST(datarootdir) 351*3d8817e4SmiodAC_SUBST(docdir) 352*3d8817e4SmiodAC_SUBST(htmldir) 353*3d8817e4Smiod 354*3d8817e4SmiodAC_OUTPUT(Makefile doc/Makefile po/Makefile.in:po/Make-in, 355*3d8817e4Smiod[ 356*3d8817e4Smiodcase "x$CONFIG_FILES" in 357*3d8817e4Smiod*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; 358*3d8817e4Smiodesac 359*3d8817e4Smiod]) 360