X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgfortran%2Fconfigure.ac;h=0e0b5a7e31fac354bb513e7f76488f1aaf6b3bcb;hb=d87d979efc70b5f6627ca12ec01d7b3cb5d701f6;hp=d97360f3275bfdad5fad0332f2ecebae5f18dc58;hpb=b7fcd3f95fa452127c1b12fdc0d702784bccff60;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index d97360f3275..0e0b5a7e31f 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -21,6 +21,18 @@ AC_ARG_ENABLE(version-specific-runtime-libs, [version_specific_libs=no]) AC_MSG_RESULT($version_specific_libs) +# Build with intermodule optimisations +AC_MSG_CHECKING([for --enable-intermodule]) +AC_ARG_ENABLE(intermodule, +[ --enable-intermodule build the library in one step], +[case "$enable_intermodule" in + yes) onestep="-onestep";; + *) onestep="";; +esac], +[onestep=""]) +AC_MSG_RESULT($enable_intermodule) +AM_CONDITIONAL(onestep,[test x$onestep = x-onestep]) +AC_SUBST(onestep) # Gets build, host, target, *_vendor, *_cpu, *_os, etc. # @@ -111,7 +123,7 @@ m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. if test "x$GCC" = "xyes"; then - AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring" + AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" ## We like to use C99 routines when available. This makes sure that ## __STDC_VERSION__ is set such that libc includes make them available. AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" @@ -121,6 +133,21 @@ if test "x$GCC" = "xyes"; then fi AC_SUBST(AM_FCFLAGS) AC_SUBST(AM_CFLAGS) +AC_SUBST(CFLAGS) + +# Check for symbol versioning (copied from libssp). +AC_MSG_CHECKING([whether symbol versioning is supported]) +cat > conftest.map <