configure.ac 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. dnl Process this file with autoconf to produce a configure script.
  2. sinclude(../config/enable.m4)
  3. sinclude(../config/tls.m4)
  4. sinclude(../config/acx.m4)
  5. sinclude(../config/no-executables.m4)
  6. sinclude(../config/lib-ld.m4)
  7. sinclude(../config/override.m4)
  8. sinclude(../config/picflag.m4)
  9. sinclude(../config/dfp.m4)
  10. sinclude(../config/unwind_ipinfo.m4)
  11. sinclude(../config/gthr.m4)
  12. AC_PREREQ(2.64)
  13. AC_INIT([GNU C Runtime Library], 1.0,,[libgcc])
  14. AC_CONFIG_SRCDIR([static-object.mk])
  15. # The libgcc should not depend on any header files
  16. AC_DEFUN([_AC_INCLUDES_DEFAULT_REQUIREMENTS],
  17. [m4_divert_text([DEFAULTS],
  18. [ac_includes_default='/* none */'])])
  19. AC_ARG_WITH(target-subdir,
  20. [ --with-target-subdir=SUBDIR Configuring in a subdirectory for target])
  21. AC_ARG_WITH(cross-host,
  22. [ --with-cross-host=HOST Configuring with a cross compiler])
  23. AC_ARG_WITH(ld,
  24. [ --with-ld arrange to use the specified ld (full pathname)])
  25. if test "${srcdir}" = "."; then
  26. if test -n "${with_build_subdir}"; then
  27. libgcc_topdir="${srcdir}/../.."
  28. with_target_subdir=
  29. elif test -z "${with_target_subdir}"; then
  30. libgcc_topdir="${srcdir}/.."
  31. else
  32. if test "${with_target_subdir}" != "."; then
  33. libgcc_topdir="${srcdir}/${with_multisrctop}../.."
  34. else
  35. libgcc_topdir="${srcdir}/${with_multisrctop}.."
  36. fi
  37. fi
  38. else
  39. libgcc_topdir="${srcdir}/.."
  40. fi
  41. AC_SUBST(libgcc_topdir)
  42. AC_CONFIG_AUX_DIR($libgcc_topdir)
  43. AC_CONFIG_HEADER(auto-target.h:config.in)
  44. AC_ARG_ENABLE(shared,
  45. [ --disable-shared don't provide a shared libgcc],
  46. [
  47. case $enable_shared in
  48. yes | no) ;;
  49. *)
  50. enable_shared=no
  51. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  52. for pkg in $enableval; do
  53. if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
  54. enable_shared=yes
  55. fi
  56. done
  57. IFS="$ac_save_ifs"
  58. ;;
  59. esac
  60. ], [enable_shared=yes])
  61. AC_SUBST(enable_shared)
  62. AC_ARG_ENABLE(vtable-verify,
  63. [ --enable-vtable-verify Enable vtable verification feature ],
  64. [case "$enableval" in
  65. yes) enable_vtable_verify=yes ;;
  66. no) enable_vtable_verify=no ;;
  67. *) enable_vtable_verify=no;;
  68. esac],
  69. [enable_vtable_verify=no])
  70. AC_SUBST(enable_vtable_verify)
  71. AC_ARG_WITH(aix-soname,
  72. [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
  73. [shared library versioning (aka "SONAME") variant to provide on AIX])],
  74. [case "${host}:${enable_shared}" in
  75. power*-*-aix[[5-9]]*:yes)
  76. AC_MSG_CHECKING([which variant of shared library versioning to provide for shared libgcc])
  77. case ${withval} in
  78. aix|svr4|both) ;;
  79. *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]);;
  80. esac
  81. AC_MSG_RESULT($withval)
  82. ;;
  83. *) with_aix_soname=aix ;;
  84. esac
  85. ], [with_aix_soname=aix])
  86. AC_SUBST(with_aix_soname)
  87. GCC_PICFLAG
  88. AC_SUBST(PICFLAG)
  89. AC_MSG_CHECKING([for --enable-version-specific-runtime-libs])
  90. AC_ARG_ENABLE(version-specific-runtime-libs,
  91. [ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ],
  92. [case "$enableval" in
  93. yes) version_specific_libs=yes ;;
  94. no) version_specific_libs=no ;;
  95. *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
  96. esac],
  97. [version_specific_libs=no])
  98. AC_MSG_RESULT($version_specific_libs)
  99. AC_ARG_WITH(slibdir,
  100. [ --with-slibdir=DIR shared libraries in DIR [LIBDIR]],
  101. slibdir="$with_slibdir",
  102. if test "${version_specific_libs}" = yes; then
  103. slibdir='$(libsubdir)'
  104. elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
  105. slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
  106. else
  107. slibdir='$(libdir)'
  108. fi)
  109. AC_SUBST(slibdir)
  110. # Command-line options.
  111. # Very limited version of AC_MAINTAINER_MODE.
  112. AC_ARG_ENABLE([maintainer-mode],
  113. [AC_HELP_STRING([--enable-maintainer-mode],
  114. [enable make rules and dependencies not useful (and
  115. sometimes confusing) to the casual installer])],
  116. [case ${enable_maintainer_mode} in
  117. yes) MAINT='' ;;
  118. no) MAINT='#' ;;
  119. *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
  120. esac
  121. maintainer_mode=${enableval}],
  122. [MAINT='#'])
  123. AC_SUBST([MAINT])dnl
  124. AC_PROG_INSTALL
  125. AC_PROG_AWK
  126. # We need awk; bail out if it's missing.
  127. case ${AWK} in
  128. "") AC_MSG_ERROR([can't build without awk, bailing out]) ;;
  129. esac
  130. AC_CANONICAL_HOST
  131. ACX_NONCANONICAL_HOST
  132. ACX_NONCANONICAL_TARGET
  133. GCC_TOPLEV_SUBDIRS
  134. # Calculate toolexeclibdir
  135. # Also toolexecdir, though it's only used in toolexeclibdir
  136. case ${version_specific_libs} in
  137. yes)
  138. # Need the gcc compiler version to know where to install libraries
  139. # and header files if --enable-version-specific-runtime-libs option
  140. # is selected.
  141. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  142. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  143. ;;
  144. no)
  145. if test -n "$with_cross_host" &&
  146. test x"$with_cross_host" != x"no"; then
  147. # Install a library built with a cross compiler in tooldir, not libdir.
  148. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  149. toolexeclibdir='$(toolexecdir)/lib'
  150. else
  151. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  152. toolexeclibdir='$(libdir)'
  153. fi
  154. multi_os_directory=`$CC -print-multi-os-directory`
  155. case $multi_os_directory in
  156. .) ;; # Avoid trailing /.
  157. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  158. esac
  159. ;;
  160. esac
  161. AC_SUBST(toolexecdir)
  162. AC_SUBST(toolexeclibdir)
  163. dnl These must be called before AM_PROG_LIBTOOL, because it may want
  164. dnl to call AC_CHECK_PROG.
  165. AC_CHECK_TOOL(AR, ar)
  166. AC_CHECK_TOOL(LIPO, lipo, :)
  167. AC_CHECK_TOOL(NM, nm)
  168. AC_CHECK_TOOL(RANLIB, ranlib, :)
  169. AC_CHECK_TOOL(STRIP, strip, :)
  170. AC_PROG_LN_S
  171. GCC_NO_EXECUTABLES
  172. AC_PROG_CC
  173. AC_PROG_CPP_WERROR
  174. AC_CHECK_SIZEOF([double])
  175. AC_CHECK_SIZEOF([long double])
  176. AS_VAR_ARITH([double_type_size], [$ac_cv_sizeof_double \* 8])
  177. AS_VAR_ARITH([long_double_type_size], [$ac_cv_sizeof_long_double \* 8])
  178. AC_SUBST(double_type_size)
  179. AC_SUBST(long_double_type_size)
  180. AC_CHECK_HEADERS(inttypes.h stdint.h stdlib.h ftw.h \
  181. unistd.h sys/stat.h sys/types.h \
  182. string.h strings.h memory.h)
  183. AC_HEADER_STDC
  184. # Check for decimal float support.
  185. AC_CACHE_CHECK([whether decimal floating point is supported], [libgcc_cv_dfp],
  186. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  187. #include <fenv.h>
  188. ]], [[
  189. _Decimal32 x;
  190. int fe_except =
  191. FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
  192. ]])],
  193. [libgcc_cv_dfp=yes],
  194. [libgcc_cv_dfp=no])])
  195. decimal_float=$libgcc_cv_dfp
  196. AC_SUBST(decimal_float)
  197. GCC_AC_ENABLE_DECIMAL_FLOAT([$host])
  198. # Check for fixed-point support.
  199. AC_CACHE_CHECK([whether fixed-point is supported], [libgcc_cv_fixed_point],
  200. [AC_COMPILE_IFELSE([_Sat _Fract x;], [libgcc_cv_fixed_point=yes],
  201. [libgcc_cv_fixed_point=no])])
  202. fixed_point=$libgcc_cv_fixed_point
  203. AC_SUBST(fixed_point)
  204. # For platforms with the unwind ABI which includes an unwind library,
  205. # libunwind, we can choose to use the system libunwind.
  206. # config.gcc also contains tests of with_system_libunwind.
  207. GCC_CHECK_UNWIND_GETIPINFO
  208. # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
  209. # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
  210. # libobjc/configure.ac (for Objective-C).
  211. # FIXME: This should be centralized in config/sjlj.m4.
  212. AC_ARG_ENABLE(sjlj-exceptions,
  213. AC_HELP_STRING([--enable-sjlj-exceptions],
  214. [force use of builtin_setjmp for exceptions]),
  215. [case "$enableval" in
  216. yes|no|auto) ;;
  217. *) AC_MSG_ERROR([unknown argument to --enable-sjlj-exceptions]) ;;
  218. esac],
  219. [enable_sjlj_exceptions=auto])
  220. AC_CACHE_CHECK([whether to use setjmp/longjmp exceptions],
  221. [libgcc_cv_lib_sjlj_exceptions],
  222. [AC_LANG_CONFTEST(
  223. [AC_LANG_SOURCE([
  224. void bar ();
  225. void clean (int *);
  226. void foo ()
  227. {
  228. int i __attribute__ ((cleanup (clean)));
  229. bar();
  230. }
  231. ])])
  232. CFLAGS_hold=$CFLAGS
  233. CFLAGS="--save-temps -fexceptions"
  234. libgcc_cv_lib_sjlj_exceptions=unknown
  235. AS_IF([ac_fn_c_try_compile],
  236. [if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
  237. libgcc_cv_lib_sjlj_exceptions=yes
  238. elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
  239. libgcc_cv_lib_sjlj_exceptions=no
  240. fi])
  241. CFLAGS=$CFLAGS_hold
  242. rm -f conftest*
  243. ])
  244. if test "$enable_sjlj_exceptions" = "auto"; then
  245. enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
  246. fi
  247. case $enable_sjlj_exceptions in
  248. yes)
  249. AC_DEFINE(LIBGCC_SJLJ_EXCEPTIONS, 1,
  250. [Define if the C compiler is configured for setjmp/longjmp exceptions.])
  251. ;;
  252. no)
  253. ;;
  254. *)
  255. AC_MSG_ERROR([unable to detect exception model])
  256. ;;
  257. esac
  258. AC_ARG_ENABLE([explicit-exception-frame-registration],
  259. [AC_HELP_STRING([--enable-explicit-exception-frame-registration],
  260. [register exception tables explicitly at module start, for use
  261. e.g. for compatibility with installations without PT_GNU_EH_FRAME support])],
  262. [
  263. force_explicit_eh_registry=
  264. if test "$enable_explicit_exception_frame_registration" = yes; then
  265. if test "$enable_sjlj_exceptions" = yes; then
  266. AC_MSG_ERROR([Can't enable both of --enable-sjlj-exceptions
  267. and --enable-explicit-exception-frame-registration])
  268. fi
  269. force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
  270. fi
  271. ])
  272. AC_SUBST([force_explicit_eh_registry])
  273. AC_LIB_PROG_LD_GNU
  274. AC_MSG_CHECKING([for thread model used by GCC])
  275. target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  276. AC_MSG_RESULT([$target_thread_file])
  277. # Check for assembler CFI support.
  278. AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
  279. [AC_COMPILE_IFELSE(
  280. [asm("\n\
  281. .text\n\
  282. .cfi_startproc\n\
  283. .cfi_personality 0, symbol\n\
  284. .cfi_endproc");],
  285. [libgcc_cv_cfi=yes],
  286. [libgcc_cv_cfi=no])])
  287. # Check 32bit or 64bit. In the case of MIPS, this really determines the
  288. # word size rather than the address size.
  289. cat > conftest.c <<EOF
  290. #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
  291. || defined(__mips64)
  292. host_address=64
  293. #else
  294. host_address=32
  295. #endif
  296. EOF
  297. eval `${CC-cc} -E conftest.c | grep host_address=`
  298. rm -f conftest.c
  299. case ${host} in
  300. mips*-*-*)
  301. AC_CACHE_CHECK([whether the target is hard-float],
  302. [libgcc_cv_mips_hard_float],
  303. [AC_COMPILE_IFELSE(
  304. [#ifndef __mips_hard_float
  305. #error FOO
  306. #endif],
  307. [libgcc_cv_mips_hard_float=yes],
  308. [libgcc_cv_mips_hard_float=no])])
  309. esac
  310. # Determine the version of glibc, if any, used on the target.
  311. AC_MSG_CHECKING([for target glibc version])
  312. AC_ARG_WITH([glibc-version],
  313. [AS_HELP_STRING([--with-glibc-version=M.N],
  314. [assume GCC used with glibc version M.N or later])], [
  315. if [echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$']; then
  316. glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
  317. glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
  318. else
  319. AC_MSG_ERROR([option --with-glibc-version requires a version number M.N])
  320. fi], [
  321. AC_COMPUTE_INT([glibc_version_major], [__GLIBC__],
  322. [#include <features.h>],
  323. [glibc_version_major=0])
  324. AC_COMPUTE_INT([glibc_version_minor], [__GLIBC_MINOR__],
  325. [#include <features.h>],
  326. [glibc_version_minor=0])])
  327. AC_MSG_RESULT([$glibc_version_major.$glibc_version_minor])
  328. # Determine floating-point type for powerpc*-*-linux*.
  329. # Single-precision-only FPRs are not a supported configuration for
  330. # this target, so are not allowed for in this test.
  331. case ${host} in
  332. powerpc*-*-linux*)
  333. cat > conftest.c <<EOF
  334. #ifdef __powerpc64__
  335. ppc_fp_type=64
  336. #elif defined _SOFT_FLOAT
  337. ppc_fp_type=soft
  338. #elif defined _SOFT_DOUBLE
  339. ppc_fp_type=e500v1
  340. #elif defined __NO_FPRS__
  341. ppc_fp_type=e500v2
  342. #else
  343. ppc_fp_type=hard
  344. #endif
  345. EOF
  346. eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
  347. rm -f conftest.c
  348. # glibc 2.19 and later provide all the soft-fp functions, with proper
  349. # interactions with <fenv.h> exception and rounding mode handling, so
  350. # make libgcc's versions into compat symbols if a recent enough glibc
  351. # version is being used.
  352. ppc_fp_compat=
  353. case ${ppc_fp_type} in
  354. soft|e500v1|e500v2)
  355. if test $glibc_version_major -gt 2 \
  356. || ( test $glibc_version_major -eq 2 \
  357. && test $glibc_version_minor -ge 19 ); then
  358. ppc_fp_compat="t-softfp-compat"
  359. fi
  360. ;;
  361. esac
  362. ;;
  363. esac
  364. # Collect host-machine-specific information.
  365. . ${srcdir}/config.host
  366. # Used for constructing correct paths for offload compilers.
  367. accel_dir_suffix=
  368. if test x"$enable_as_accelerator_for" != x; then
  369. accel_dir_suffix=/accel/${target_noncanonical}
  370. case "${target_noncanonical}" in
  371. *-intelmicemul-*)
  372. # In this case we expect offload compiler to be built as native, so we
  373. # need to change install directory for driver to be able to find libgcc.
  374. host_noncanonical=${enable_as_accelerator_for} ;;
  375. esac
  376. fi
  377. AC_SUBST(accel_dir_suffix)
  378. if test x"$enable_offload_targets" != x; then
  379. extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o"
  380. fi
  381. # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
  382. # This is after config.host so we can augment tmake_file.
  383. # Link with -nostartfiles -nodefaultlibs since neither are present while
  384. # building libgcc.
  385. case ${host} in
  386. i?86-*-solaris2* | x86_64-*-solaris2.1[[0-9]]*)
  387. cat > conftest.s <<EOF
  388. .section .eh_frame,"a",@unwind
  389. .zero 4
  390. .section .jcr,"aw",@progbits
  391. .zero 8
  392. EOF
  393. if AC_TRY_COMMAND(${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&AS_MESSAGE_LOG_FD); then
  394. tmake_file="${tmake_file} i386/t-crtstuff"
  395. fi
  396. ;;
  397. esac
  398. # Check if xtensa target is configured for windowed ABI and thus needs to use
  399. # custom unwind code.
  400. # This is after config.host so we can augment tmake_file.
  401. case ${host} in
  402. xtensa*-*)
  403. cat > conftest.c <<EOF
  404. #ifdef __XTENSA_CALL0_ABI__
  405. #error
  406. #endif
  407. EOF
  408. if AC_TRY_COMMAND(${CC-cc} -E -o conftest.i conftest.c 1>&AS_MESSAGE_LOG_FD); then
  409. tmake_file="${tmake_file} xtensa/t-windowed"
  410. fi
  411. ;;
  412. esac
  413. # Check for visibility support. This is after config.host so that
  414. # we can check for asm_hidden_op.
  415. AC_CACHE_CHECK([for __attribute__((visibility("hidden")))],
  416. libgcc_cv_hidden_visibility_attribute, [
  417. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
  418. libgcc_cv_hidden_visibility_attribute=no
  419. if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
  420. if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
  421. libgcc_cv_hidden_visibility_attribute=yes
  422. fi
  423. fi
  424. rm -f conftest.*
  425. ])
  426. if test $libgcc_cv_hidden_visibility_attribute = yes; then
  427. vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
  428. else
  429. vis_hide=
  430. fi
  431. AC_SUBST(vis_hide)
  432. # See if we have thread-local storage. We can only test assembler
  433. # since link-time and run-time tests require the newly built
  434. # gcc, which can't be used to build executable due to that libgcc
  435. # is yet to be built here.
  436. GCC_CHECK_CC_TLS
  437. set_have_cc_tls=
  438. if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
  439. set_have_cc_tls="-DHAVE_CC_TLS"
  440. fi
  441. AC_SUBST(set_have_cc_tls)
  442. # See if we have emulated thread-local storage.
  443. GCC_CHECK_EMUTLS
  444. set_use_emutls=
  445. if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
  446. set_use_emutls="-DUSE_EMUTLS"
  447. fi
  448. AC_SUBST(set_use_emutls)
  449. AC_CACHE_CHECK(for init priority support, libgcc_cv_init_priority, [
  450. AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,
  451. [[void ip (void) __attribute__ ((constructor (1)));]])],
  452. [libgcc_cv_init_priority=yes],[libgcc_cv_init_priority=no])])
  453. if test $libgcc_cv_init_priority = yes; then
  454. AC_DEFINE(HAVE_INIT_PRIORITY, 1,
  455. [Define if the compiler supports init priority.])
  456. fi
  457. # Conditionalize the sfp-machine.h header for this target machine.
  458. if test -z "${sfp_machine_header}"; then
  459. sfp_machine_header=$cpu_type/sfp-machine.h
  460. if test -f ${srcdir}/config/${sfp_machine_header}; then
  461. :
  462. else
  463. sfp_machine_header=no-sfp-machine.h
  464. fi
  465. fi
  466. AC_SUBST(sfp_machine_header)
  467. # Conditionalize the makefile for this target machine.
  468. tmake_file_=
  469. for f in ${tmake_file}
  470. do
  471. if test -f ${srcdir}/config/$f
  472. then
  473. tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  474. fi
  475. done
  476. tmake_file="${tmake_file_}"
  477. AC_SUBST(tmake_file)
  478. # Likewise export definitions for libgcc_tm.h
  479. tm_file_=
  480. for f in ${tm_file}
  481. do
  482. tm_file_="${tm_file_} \$(srcdir)/config/$f"
  483. done
  484. tm_file="${tm_file_}"
  485. AC_SUBST(tm_file)
  486. AC_SUBST(tm_defines)
  487. # Map from thread model to thread header.
  488. GCC_AC_THREAD_HEADER([$target_thread_file])
  489. # Substitute configuration variables
  490. AC_SUBST(cpu_type)
  491. AC_SUBST(extra_parts)
  492. AC_SUBST(asm_hidden_op)
  493. AC_CONFIG_LINKS([enable-execute-stack.c:$enable_execute_stack])
  494. AC_CONFIG_LINKS([unwind.h:$unwind_header])
  495. AC_CONFIG_LINKS([md-unwind-support.h:config/$md_unwind_header])
  496. AC_CONFIG_LINKS([sfp-machine.h:config/$sfp_machine_header])
  497. AC_CONFIG_LINKS([gthr-default.h:$thread_header])
  498. # We need multilib support.
  499. AC_CONFIG_FILES([Makefile])
  500. AC_CONFIG_COMMANDS([default],
  501. [[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  502. if test -n "$CONFIG_FILES"; then
  503. # FIXME: We shouldn't need to set ac_file
  504. ac_file=Makefile
  505. . ${libgcc_topdir}/config-ml.in
  506. fi]],
  507. [[srcdir=${srcdir}
  508. host=${host}
  509. with_target_subdir=${with_target_subdir}
  510. with_multisubdir=${with_multisubdir}
  511. ac_configure_args="--enable-multilib ${ac_configure_args}"
  512. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  513. libgcc_topdir=${libgcc_topdir}
  514. CC="${CC}"
  515. ]])
  516. AC_OUTPUT