configure.ac 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl
  3. dnl Copyright (C) 2012-2015 Free Software Foundation, Inc.
  4. dnl
  5. dnl This file is free software; you can redistribute it and/or modify
  6. dnl it under the terms of the GNU General Public License as published by
  7. dnl the Free Software Foundation; either version 3 of the License, or
  8. dnl (at your option) any later version.
  9. dnl
  10. dnl This program is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. dnl GNU General Public License for more details.
  14. dnl
  15. dnl You should have received a copy of the GNU General Public License
  16. dnl along with this program; see the file COPYING3. If not see
  17. dnl <http://www.gnu.org/licenses/>.
  18. dnl
  19. AC_PREREQ(2.59)
  20. m4_include([../bfd/version.m4])
  21. AC_INIT([binutils], BFD_VERSION)
  22. AC_CONFIG_SRCDIR(ar.c)
  23. AC_CANONICAL_TARGET
  24. AC_ISC_POSIX
  25. AM_INIT_AUTOMAKE
  26. AC_PROG_CC
  27. AC_GNU_SOURCE
  28. AC_USE_SYSTEM_EXTENSIONS
  29. LT_INIT
  30. ACX_LARGEFILE
  31. AC_ARG_ENABLE(targets,
  32. [ --enable-targets alternative target configurations],
  33. [case "${enableval}" in
  34. yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
  35. ;;
  36. no) enable_targets= ;;
  37. *) enable_targets=$enableval ;;
  38. esac])dnl
  39. AC_ARG_ENABLE(deterministic-archives,
  40. [AS_HELP_STRING([--enable-deterministic-archives],
  41. [ar and ranlib default to -D behavior])], [
  42. if test "${enableval}" = no; then
  43. default_ar_deterministic=0
  44. else
  45. default_ar_deterministic=1
  46. fi], [default_ar_deterministic=0])
  47. AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
  48. [Should ar and ranlib use -D behavior by default?])
  49. AC_ARG_ENABLE(default-strings-all,
  50. [AS_HELP_STRING([--disable-default-strings-all],
  51. [strings defaults to --data behavior])], [
  52. if test "${enableval}" = no; then
  53. default_strings_all=0
  54. else
  55. default_strings_all=1
  56. fi], [default_strings_all=1])
  57. AC_DEFINE_UNQUOTED(DEFAULT_STRINGS_ALL, $default_strings_all,
  58. [Should strings use -a behavior by default?])
  59. AM_BINUTILS_WARNINGS
  60. AC_CONFIG_HEADERS(config.h:config.in)
  61. AH_VERBATIM([00_CONFIG_H_CHECK],
  62. [/* Check that config.h is #included before system headers
  63. (this works only for glibc, but that should be enough). */
  64. #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
  65. # error config.h must be #included before system headers
  66. #endif
  67. #define __CONFIG_H__ 1])
  68. if test -z "$target" ; then
  69. AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
  70. fi
  71. if test -z "$host" ; then
  72. AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
  73. fi
  74. AC_PROG_YACC
  75. AM_PROG_LEX
  76. ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr"
  77. ZW_GNU_GETTEXT_SISTER_DIR
  78. AM_PO_SUBDIRS
  79. AM_MAINTAINER_MODE
  80. AM_CONDITIONAL(GENINSRC_NEVER, false)
  81. AC_EXEEXT
  82. if test -n "$EXEEXT"; then
  83. AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
  84. [Does the platform use an executable suffix?])
  85. fi
  86. AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
  87. [Suffix used for executables, if any.])
  88. # host-specific stuff:
  89. HDEFINES=
  90. . ${srcdir}/../bfd/configure.host
  91. AC_SUBST(HDEFINES)
  92. AR=${AR-ar}
  93. AC_SUBST(AR)
  94. AC_PROG_RANLIB
  95. AC_PROG_INSTALL
  96. BFD_CC_FOR_BUILD
  97. DEMANGLER_NAME=c++filt
  98. case "${host}" in
  99. *-*-go32* | *-*-msdos*)
  100. DEMANGLER_NAME=cxxfilt
  101. esac
  102. AC_SUBST(DEMANGLER_NAME)
  103. AC_CHECK_SIZEOF([long])
  104. AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
  105. AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h)
  106. AC_HEADER_SYS_WAIT
  107. ACX_HEADER_STRING
  108. AC_FUNC_ALLOCA
  109. AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
  110. AC_CHECK_FUNC([mkstemp],
  111. AC_DEFINE([HAVE_MKSTEMP], 1,
  112. [Define to 1 if you have the `mkstemp' function.]))
  113. AC_CHECK_FUNC([mkdtemp],
  114. AC_DEFINE([HAVE_MKDTEMP], 1,
  115. [Define to 1 if you have the `mkdtemp' function.]))
  116. AC_MSG_CHECKING([for mbstate_t])
  117. AC_TRY_COMPILE([#include <wchar.h>],
  118. [mbstate_t teststate;],
  119. have_mbstate_t=yes, have_mbstate_t=no)
  120. AC_MSG_RESULT($have_mbstate_t)
  121. if test x"$have_mbstate_t" = xyes; then
  122. AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
  123. fi
  124. # Some systems have frexp only in -lm, not in -lc.
  125. AC_SEARCH_LIBS(frexp, m)
  126. AM_LC_MESSAGES
  127. AC_MSG_CHECKING(for time_t in time.h)
  128. AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
  129. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
  130. bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
  131. AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
  132. if test $bu_cv_decl_time_t_time_h = yes; then
  133. AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
  134. [Is the type time_t defined in <time.h>?])
  135. fi
  136. AC_MSG_CHECKING(for time_t in sys/types.h)
  137. AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
  138. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
  139. bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
  140. AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
  141. if test $bu_cv_decl_time_t_types_h = yes; then
  142. AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
  143. [Is the type time_t defined in <sys/types.h>?])
  144. fi
  145. AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
  146. AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
  147. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
  148. bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
  149. AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
  150. if test $bu_cv_decl_getopt_unistd_h = yes; then
  151. AC_DEFINE([HAVE_DECL_GETOPT], 1,
  152. [Is the prototype for getopt in <unistd.h> in the expected format?])
  153. fi
  154. # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
  155. # by default.
  156. AC_MSG_CHECKING([for utime.h])
  157. AC_CACHE_VAL(bu_cv_header_utime_h,
  158. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
  159. #ifdef HAVE_TIME_H
  160. #include <time.h>
  161. #endif
  162. #include <utime.h>],
  163. [struct utimbuf s;])],
  164. bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
  165. AC_MSG_RESULT($bu_cv_header_utime_h)
  166. if test $bu_cv_header_utime_h = yes; then
  167. AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
  168. fi
  169. AC_CHECK_DECLS([environ, fprintf, getc_unlocked, getenv,
  170. sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
  171. # Link in zlib if we can. This allows us to read compressed debug
  172. # sections. This is used only by readelf.c (objdump uses bfd for
  173. # reading compressed sections).
  174. AM_ZLIB
  175. BFD_BINARY_FOPEN
  176. # target-specific stuff:
  177. # Canonicalize the secondary target names.
  178. if test -n "$enable_targets"; then
  179. for targ in `echo $enable_targets | sed 's/,/ /g'`
  180. do
  181. result=`$ac_config_sub $targ 2>/dev/null`
  182. if test -n "$result"; then
  183. canon_targets="$canon_targets $result"
  184. else
  185. # Allow targets that config.sub doesn't recognize, like "all".
  186. canon_targets="$canon_targets $targ"
  187. fi
  188. done
  189. fi
  190. AC_CHECK_HEADER(iconv.h)
  191. AM_ICONV
  192. all_targets=false
  193. BUILD_NLMCONV=
  194. NLMCONV_DEFS=
  195. BUILD_SRCONV=
  196. BUILD_DLLTOOL=
  197. DLLTOOL_DEFS=
  198. DLLTOOL_DEFAULT=
  199. BUILD_WINDRES=
  200. BUILD_WINDMC=
  201. BUILD_DLLWRAP=
  202. BUILD_MISC=
  203. BUILD_INSTALL_MISC=
  204. OBJDUMP_DEFS=
  205. OBJDUMP_PRIVATE_VECTORS=
  206. OBJDUMP_PRIVATE_OFILES=
  207. od_vectors=
  208. for targ in $target $canon_targets
  209. do
  210. if test "x$targ" = "xall"; then
  211. all_targets=true
  212. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  213. BUILD_SRCONV='$(SRCONV_PROG)'
  214. NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
  215. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  216. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  217. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  218. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  219. if test -z "$DLLTOOL_DEFAULT"; then
  220. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  221. fi
  222. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  223. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  224. od_vectors="$od_vectors objdump_private_desc_xcoff"
  225. else
  226. case $targ in
  227. changequote(,)dnl
  228. i[3-7]86*-*-netware*)
  229. changequote([,])dnl
  230. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  231. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
  232. ;;
  233. alpha*-*-netware*)
  234. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  235. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
  236. ;;
  237. powerpc*-*-netware*)
  238. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  239. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
  240. ;;
  241. sparc*-*-netware*)
  242. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  243. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
  244. ;;
  245. esac
  246. case $targ in
  247. *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
  248. esac
  249. case $targ in
  250. arm-epoc-pe*)
  251. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  252. if test -z "$DLLTOOL_DEFAULT"; then
  253. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
  254. fi
  255. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
  256. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  257. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  258. ;;
  259. arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
  260. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  261. if test -z "$DLLTOOL_DEFAULT"; then
  262. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
  263. fi
  264. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
  265. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  266. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  267. ;;
  268. arm-*-pe*)
  269. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  270. if test -z "$DLLTOOL_DEFAULT"; then
  271. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
  272. fi
  273. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
  274. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  275. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  276. ;;
  277. x86_64-*-mingw* | x86_64-*-cygwin* | x86_64-w64-minwin64*)
  278. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  279. if test -z "$DLLTOOL_DEFAULT"; then
  280. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
  281. fi
  282. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
  283. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  284. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  285. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  286. ;;
  287. changequote(,)dnl
  288. i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
  289. changequote([,])dnl
  290. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  291. if test -z "$DLLTOOL_DEFAULT"; then
  292. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  293. fi
  294. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  295. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  296. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  297. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  298. ;;
  299. changequote(,)dnl
  300. i[3-7]86-*-interix)
  301. changequote([,])dnl
  302. BUILD_DLLTOOL='$(DLLTOOL_PROG)'
  303. if test -z "$DLLTOOL_DEFAULT"; then
  304. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  305. fi
  306. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  307. ;;
  308. changequote(,)dnl
  309. powerpc*-aix5.[01])
  310. changequote([,])dnl
  311. ;;
  312. changequote(,)dnl
  313. powerpc*-aix[5-9].*)
  314. changequote([,])dnl
  315. OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
  316. ;;
  317. powerpc*-*-pe* | powerpc*-*-cygwin*)
  318. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  319. if test -z "$DLLTOOL_DEFAULT"; then
  320. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
  321. fi
  322. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
  323. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  324. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  325. ;;
  326. powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
  327. case "$BUILD_INSTALL_MISC" in
  328. *embedspu*) ;;
  329. *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
  330. esac
  331. ;;
  332. sh*-*-pe)
  333. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  334. if test -z "$DLLTOOL_DEFAULT"; then
  335. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
  336. fi
  337. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
  338. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  339. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  340. ;;
  341. spu-*-*)
  342. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  343. ;;
  344. mips*-*-pe)
  345. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  346. if test -z "$DLLTOOL_DEFAULT"; then
  347. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
  348. fi
  349. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
  350. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  351. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  352. ;;
  353. mcore-*-pe)
  354. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  355. if test -z "$DLLTOOL_DEFAULT"; then
  356. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
  357. fi
  358. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
  359. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  360. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  361. ;;
  362. mcore-*-elf)
  363. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  364. if test -z "$DLLTOOL_DEFAULT"; then
  365. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
  366. fi
  367. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
  368. ;;
  369. mep-*)
  370. OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
  371. ;;
  372. esac
  373. # Add objdump private vectors.
  374. case $targ in
  375. avr-*-*)
  376. od_vectors="$od_vectors objdump_private_desc_elf32_avr"
  377. ;;
  378. powerpc-*-aix*)
  379. od_vectors="$od_vectors objdump_private_desc_xcoff"
  380. ;;
  381. *-*-darwin*)
  382. od_vectors="$od_vectors objdump_private_desc_mach_o"
  383. ;;
  384. esac
  385. fi
  386. done
  387. # Uniq objdump private vector, build objdump target ofiles.
  388. od_files=
  389. f=""
  390. for i in $od_vectors ; do
  391. case " $f " in
  392. *" $i "*) ;;
  393. *)
  394. f="$f $i"
  395. OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
  396. case $i in
  397. objdump_private_desc_elf32_avr)
  398. od_files="$od_files od-elf32_avr" ;;
  399. objdump_private_desc_xcoff)
  400. od_files="$od_files od-xcoff" ;;
  401. objdump_private_desc_mach_o)
  402. od_files="$od_files od-macho" ;;
  403. *) AC_MSG_ERROR(*** unknown private vector $i) ;;
  404. esac
  405. ;;
  406. esac
  407. done
  408. # Uniq objdump target ofiles
  409. f=""
  410. for i in $od_files ; do
  411. case " $f " in
  412. *" $i "*) ;;
  413. *)
  414. f="$f $i"
  415. OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
  416. ;;
  417. esac
  418. done
  419. DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
  420. if test "${with_windres+set}" = set; then
  421. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  422. fi
  423. if test "${with_windmc+set}" = set; then
  424. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  425. fi
  426. OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
  427. AC_SUBST(NLMCONV_DEFS)
  428. AC_SUBST(BUILD_NLMCONV)
  429. AC_SUBST(BUILD_SRCONV)
  430. AC_SUBST(BUILD_DLLTOOL)
  431. AC_SUBST(DLLTOOL_DEFS)
  432. AC_SUBST(BUILD_WINDRES)
  433. AC_SUBST(BUILD_WINDMC)
  434. AC_SUBST(BUILD_DLLWRAP)
  435. AC_SUBST(BUILD_MISC)
  436. AC_SUBST(BUILD_INSTALL_MISC)
  437. AC_SUBST(OBJDUMP_DEFS)
  438. AC_SUBST(OBJDUMP_PRIVATE_OFILES)
  439. AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
  440. targ=$target
  441. . $srcdir/../bfd/config.bfd
  442. if test "x$targ_underscore" = "xyes"; then
  443. UNDERSCORE=1
  444. else
  445. UNDERSCORE=0
  446. fi
  447. AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
  448. [Define to 1 if user symbol names have a leading underscore, 0 if not.])
  449. # Emulation
  450. targ=$target
  451. . ${srcdir}/configure.tgt
  452. EMULATION=$targ_emul
  453. EMULATION_VECTOR=$targ_emul_vector
  454. AC_SUBST(EMULATION)
  455. AC_SUBST(EMULATION_VECTOR)
  456. # Required for html and install-html
  457. AC_SUBST(datarootdir)
  458. AC_SUBST(docdir)
  459. AC_SUBST(htmldir)
  460. AC_SUBST(pdfdir)
  461. AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
  462. AC_OUTPUT