diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-12-18 16:46:03 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-12-18 16:46:03 +0000 |
commit | 96e00b336afe993141a4ed66db7554468e2506cd (patch) | |
tree | 0d6a25a13813fcfe8ddde81c906cca328da2b0d1 /libiberty/configure.ac | |
parent | 70d1ae419fd08ca43ee1ce63100ced8c11d7d325 (diff) | |
download | gdb-96e00b336afe993141a4ed66db7554468e2506cd.zip gdb-96e00b336afe993141a4ed66db7554468e2506cd.tar.gz gdb-96e00b336afe993141a4ed66db7554468e2506cd.tar.bz2 |
2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (top_builddir): Set to `.'.
(OUTPUT_OPTION): Removed.
(LIBTOOL): New.
(LTLIBOBJS): New.
(EXTRA_LTOFILES): New.
(FLAGS_TO_PASS): Add EXTRA_LTOFILES.
(all): Remove stamp-picdir.
(LTCOMPILE): New.
(.c.lo): New rule.
(REQUIRED_LTOFILES): New.
(CONFIGURED_LTOFILES): New.
($(TARGETLIB)): Check .libs for PIC object files. Depend on
$(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
(stamp-picdir): Completely removed.
(maint-missing): Pass $(REQUIRED_LTOFILES)
$(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
$(CONFIGURED_OFILES)
(maint-buildall): Depend on $(REQUIRED_LTOFILES)
$(CONFIGURED_LTOFILES).
(mostlyclean): Also remove *.lo .libs.
Run "make maint-deps".
* aclocal.m4: Include ../libtool.m4.
* config.table: Don't check --enable-shared.
* configure.ac (AC_PROG_LIBTOOL): Add.
(AC_PROG_CC_C_O): Removed.
(OUTPUT_OPTION): Removed.
(NO_MINUS_C_MINUS_O): Removed.
(ltpexecute): New substitute.
(LIBOBJS): Cleanup.
* configure: Regenerated.
* maint-tool: Updated for .lo/libtool.
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r-- | libiberty/configure.ac | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 650faee..9e13b5c 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -113,21 +113,13 @@ GCC_NO_EXECUTABLES AC_PROG_CC AC_PROG_CPP_WERROR +AC_PROG_LIBTOOL + if test x$GCC = xyes; then ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic' fi AC_SUBST(ac_libiberty_warn_cflags) -AC_PROG_CC_C_O -# autoconf is lame and doesn't give us any substitution variable for this. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then - NO_MINUS_C_MINUS_O=yes -else - OUTPUT_OPTION='-o $@' -fi -AC_SUBST(NO_MINUS_C_MINUS_O) -AC_SUBST(OUTPUT_OPTION) - AC_C_CONST AC_C_INLINE AC_C_BIGENDIAN_CROSS @@ -515,13 +507,16 @@ fi # Figure out which version of pexecute to use. case "${host}" in - *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;; - *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;; - *-*-msdos*) pexecute=./pex-msdos.o ;; - *-*-os2-emx*) pexecute=./pex-os2.o ;; - *) pexecute=./pex-unix.o ;; + *-*-mingw* | *-*-winnt*) pex=./pex-win32 ;; + *-*-msdosdjgpp*) pex=./pex-djgpp ;; + *-*-msdos*) pex=./pex-msdos ;; + *-*-os2-emx*) pex=./pex-os2 ;; + *) pex=./pex-unix ;; esac +pexecute=${pex}.o +ltpexecute=${pex}.lo AC_SUBST(pexecute) +AC_SUBST(ltpexecute) libiberty_AC_FUNC_STRNCMP @@ -534,16 +529,6 @@ else fi AC_SUBST(INSTALL_DEST) -m4_pattern_allow(LIBOBJS) -L="" -for l in x $LIBOBJS; do - case $l in - x) ;; - *) L="$L ./$l" ;; - esac -done -LIBOBJS="$L" - # We need multilib support, but only if configuring for the target. AC_CONFIG_FILES([Makefile testsuite/Makefile]) AC_CONFIG_COMMANDS([default], |