URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [configure.in] - Rev 1765
Compare with Previous | Blame | View Log
dnl This is the newlib configure.in file.dnl Process this file with autoconf to produce a configure script.AC_PREREQ(2.5)AC_INIT(libc)dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.AC_CONFIG_AUX_DIR(..)NEWLIB_CONFIGURE(.)dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try anddnl add it into NEWLIB_CONFIGURE, executable tests are made before the firstdnl line of the macro which fail because appropriate LDFLAGS are not set.if test "${use_libtool}" = "yes"; thenAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_AWKficonfigdirs="libc libm"AC_ARG_ENABLE(newlib_hw_fp,[ --enable-newlib-hw-fp Turn on hardware floating point math],[case "${enableval}" inyes) newlib_hw_fp=true ;;no) newlib_hw_fp=false ;;*) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;esac],[newlib_hw_fp=false])AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)if test -z "${with_multisubdir}"; thenconfigdirs="${configdirs} doc"have_doc=yeselsehave_doc=fiAM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)AC_CONFIG_SUBDIRS(${configdirs})CRT0=CRT0_DIR=if test -n "${sys_dir}"; thenCRT0=crt0.oCRT0_DIR=libcfiAC_SUBST(CRT0)AC_SUBST(CRT0_DIR)if test -n "${libm_machine_dir}"; thenLIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.infiAC_SUBST(LIBM_MACHINE_OBJECTLIST)if test -n "${machine_dir}"; thenMACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.infiAC_SUBST(MACHINE_OBJECTLIST)if test -n "${sys_dir}"; thenSYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.infiAC_SUBST(SYS_OBJECTLIST)if test -n "${posix_dir}"; thenPOSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.infiAC_SUBST(POSIX_OBJECTLIST)if test -n "${signal_dir}"; thenSIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.infiAC_SUBST(SIGNAL_OBJECTLIST)if test -n "${syscall_dir}"; thenSYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.infiAC_SUBST(SYSCALL_OBJECTLIST)if test -n "${unix_dir}"; thenUNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.infiAC_SUBST(UNIX_OBJECTLIST)# Put a plausible default for CC_FOR_BUILD in Makefile.if test -z "$CC_FOR_BUILD"; thenif test "x$cross_compiling" = "xno"; thenCC_FOR_BUILD='$(CC)'elseCC_FOR_BUILD=gccfifiAC_SUBST(CC_FOR_BUILD)if test "${multilib}" = "yes"; thenmultilib_arg="--enable-multilib"elsemultilib_arg=fiAC_OUTPUT(Makefile,[if test -n "$CONFIG_FILES"; then. ${newlib_basedir}/../config-ml.infi],srcdir=${srcdir}host=${host}target=${target}with_multisubdir=${with_multisubdir}ac_configure_args="${multilib_arg} ${ac_configure_args}"CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}newlib_basedir=${newlib_basedir}CC="${CC}"LDFLAGS="${LDFLAGS}")
