From: Gary V. Vaughan Date: Thu, 7 Sep 2000 20:14:45 +0000 (+0000) Subject: * libtool.m4 (_LT_AC_LTCONFIG_HACK): with_gcc is only useful in X-Git-Tag: release-1-3d~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1529b47e2bfd5ee11054f19ed4fbb262d07f08d3;p=thirdparty%2Flibtool.git * libtool.m4 (_LT_AC_LTCONFIG_HACK): with_gcc is only useful in ltmain.sh as it has not yet been set in libtool.m4. Use $ac_cv_prog_gcc instead. --- diff --git a/ChangeLog b/ChangeLog index 599994115..0da2bc730 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-09-07 Gary V. Vaughan + * libtool.m4 (_LT_AC_LTCONFIG_HACK): with_gcc is only useful in + ltmain.sh as it has not yet been set in libtool.m4. Use + $ac_cv_prog_gcc instead. + * doc/PLATFORMS: Updated. * configure.in (AC_PROG_AWK): Removed -- no longer required by diff --git a/libtool.m4 b/libtool.m4 index 83132848d..5d6acaf85 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -722,7 +722,7 @@ fi ## FIXME: this should be a separate macro ## -if test "$with_gcc" = yes; then +if test "$ac_cv_prog_gcc" = yes; then # Check to see if options -fno-rtti -fno-exceptions are supported by compiler AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) echo "int some_variable = 0;" > conftest.c @@ -798,7 +798,7 @@ cygwin* | mingw*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. - if test "$with_gcc" != yes; then + if test "$ac_cv_prog_gcc" != yes; then with_gnu_ld=no fi ;; @@ -1001,7 +1001,7 @@ else # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes - if test "$with_gcc" = yes && test -z "$link_static_flag"; then + if test "$ac_cv_prog_gcc" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported @@ -1011,7 +1011,7 @@ else aix4*) hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' hardcode_libdir_separator=':' - if test "$with_gcc" = yes; then + if test "$ac_cv_prog_gcc" = yes; then collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null @@ -1113,7 +1113,7 @@ else ;; irix5* | irix6*) - if test "$with_gcc" = yes; then + if test "$ac_cv_prog_gcc" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' @@ -1150,7 +1150,7 @@ else ;; osf3*) - if test "$with_gcc" = yes; then + if test "$ac_cv_prog_gcc" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else @@ -1162,7 +1162,7 @@ else ;; osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$with_gcc" = yes; then + if test "$ac_cv_prog_gcc" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else @@ -1413,7 +1413,7 @@ cygwin* | mingw*) need_version=no need_lib_prefix=no changequote(,)dnl - if test "$with_gcc" = yes; then + if test "$ac_cv_prog_gcc" = yes; then library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' else library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' @@ -1863,7 +1863,7 @@ elif test "$shlibpath_overrides_runpath" = yes || fi variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$with_gcc" = yes; then +if test "$ac_cv_prog_gcc" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi @@ -2129,7 +2129,7 @@ AR_FLAGS=$lt_AR_FLAGS CC=$lt_CC # Is the compiler the GNU C compiler? -with_gcc=$with_gcc +with_gcc=$ac_cv_prog_gcc # The linker used to build libraries. LD=$lt_LD