Changeset 878

Show
Ignore:
Timestamp:
07/15/08 06:00:41 (4 months ago)
Author:
michael
Message:

automake-1.10.1

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r874 r878  
    1 # Makefile.in generated by automake 1.10 from Makefile.am. 
     1# Makefile.in generated by automake 1.9.6 from Makefile.am. 
    22# @configure_input@ 
    33 
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 
    5 # 2003, 2004, 2005, 2006  Free Software Foundation, Inc. 
     5# 2003, 2004, 2005  Free Software Foundation, Inc. 
    66# This Makefile.in is free software; the Free Software Foundation 
    77# gives unlimited permission to copy and/or distribute it, 
     
    2020# Process this file with automake to produce Makefile.in 
    2121 
     22srcdir = @srcdir@ 
     23top_srcdir = @top_srcdir@ 
    2224VPATH = @srcdir@ 
    2325pkgdatadir = $(datadir)/@PACKAGE@ 
    2426pkglibdir = $(libdir)/@PACKAGE@ 
    2527pkgincludedir = $(includedir)/@PACKAGE@ 
     28top_builddir = . 
    2629am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 
     30INSTALL = @INSTALL@ 
    2731install_sh_DATA = $(install_sh) -c -m 644 
    2832install_sh_PROGRAM = $(install_sh) -c 
     
    3943host_triplet = @host@ 
    4044bin_PROGRAMS = lcd4linux$(EXEEXT) 
    41 subdir = . 
    4245DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 
    4346  $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 
    4447  $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ 
    45   TODO config.guess config.rpath config.sub depcomp install-sh \ 
    46   missing mkinstalldirs 
     48  TODO config.guess config.sub depcomp install-sh missing \ 
     49  mkinstalldirs 
     50subdir = . 
    4751ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    4852am__aclocal_m4_deps = $(top_srcdir)/curses.m4 \ 
     
    5256  $(ACLOCAL_M4) 
    5357am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 
    54  configure.lineno config.status.lineno 
     58 configure.lineno configure.status.lineno 
    5559mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 
    5660CONFIG_HEADER = config.h 
     
    7175  plugin_test.$(OBJEXT) plugin_time.$(OBJEXT) 
    7276lcd4linux_OBJECTS = $(am_lcd4linux_OBJECTS) 
    73 lcd4linux_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(lcd4linux_LDFLAGS) \ 
    74   $(LDFLAGS) -o $@ 
    75 DEFAULT_INCLUDES = -I.@am__isrc@ 
     77DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 
    7678depcomp = $(SHELL) $(top_srcdir)/depcomp 
    7779am__depfiles_maybe = depfiles 
     
    9698distcleancheck_listfiles = find . -type f -print 
    9799ACLOCAL = @ACLOCAL@ 
     100AMDEP_FALSE = @AMDEP_FALSE@ 
     101AMDEP_TRUE = @AMDEP_TRUE@ 
    98102AMTAR = @AMTAR@ 
    99103AUTOCONF = @AUTOCONF@ 
     
    119123EXEEXT = @EXEEXT@ 
    120124GREP = @GREP@ 
    121 INSTALL = @INSTALL@ 
    122125INSTALL_DATA = @INSTALL_DATA@ 
    123126INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
     
    132135LTLIBOBJS = @LTLIBOBJS@ 
    133136MAKEINFO = @MAKEINFO@ 
    134 MKDIR_P = @MKDIR_P@ 
    135137OBJEXT = @OBJEXT@ 
    136138PACKAGE = @PACKAGE@ 
     
    160162X_LIBS = @X_LIBS@ 
    161163X_PRE_LIBS = @X_PRE_LIBS@ 
    162 abs_builddir = @abs_builddir@ 
    163 abs_srcdir = @abs_srcdir@ 
    164 abs_top_builddir = @abs_top_builddir@ 
    165 abs_top_srcdir = @abs_top_srcdir@ 
    166164ac_ct_CC = @ac_ct_CC@ 
     165am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 
     166am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 
    167167am__include = @am__include@ 
    168168am__leading_dot = @am__leading_dot@ 
     
    176176build_os = @build_os@ 
    177177build_vendor = @build_vendor@ 
    178 builddir = @builddir@ 
    179178datadir = @datadir@ 
    180179datarootdir = @datarootdir@ 
     
    204203sbindir = @sbindir@ 
    205204sharedstatedir = @sharedstatedir@ 
    206 srcdir = @srcdir@ 
    207205sysconfdir = @sysconfdir@ 
    208206target_alias = @target_alias@ 
    209 top_builddir = @top_builddir@ 
    210 top_srcdir = @top_srcdir@ 
    211207AUTOMAKE_OPTIONS = gnu 
    212208CLEANFILES = *~ 
     
    399395  @if test ! -f $@; then \ 
    400396    rm -f stamp-h1; \ 
    401     $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ 
     397    $(MAKE) stamp-h1; \ 
    402398  else :; fi 
    403399 
     
    414410install-binPROGRAMS: $(bin_PROGRAMS) 
    415411  @$(NORMAL_INSTALL) 
    416   test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" 
     412  test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" 
    417413  @list='$(bin_PROGRAMS)'; for p in $$list; do \ 
    418414    p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 
     
    437433lcd4linux$(EXEEXT): $(lcd4linux_OBJECTS) $(lcd4linux_DEPENDENCIES)  
    438434  @rm -f lcd4linux$(EXEEXT) 
    439   $(lcd4linux_LINK) $(lcd4linux_OBJECTS) $(lcd4linux_LDADD) $(LIBS) 
     435  $(LINK) $(lcd4linux_LDFLAGS) $(lcd4linux_OBJECTS) $(lcd4linux_LDADD) $(LIBS) 
    440436 
    441437mostlyclean-compile: 
     
    546542 
    547543.c.o: 
    548 @am__fastdepCC_TRUE@  $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 
    549 @am__fastdepCC_TRUE@  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 
     544@am__fastdepCC_TRUE@  if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 
     545@am__fastdepCC_TRUE@  then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 
    550546@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 
    551547@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
     
    553549 
    554550.c.obj: 
    555 @am__fastdepCC_TRUE@  $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 
    556 @am__fastdepCC_TRUE@  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 
     551@am__fastdepCC_TRUE@  if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 
     552@am__fastdepCC_TRUE@  then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 
    557553@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 
    558554@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 
    559555@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 
     556uninstall-info-am: 
    560557 
    561558ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 
     
    609606distdir: $(DISTFILES) 
    610607  $(am__remove_distdir) 
    611   test -d $(distdir) || mkdir $(distdir) 
    612   @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 
    613   topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 
    614   list='$(DISTFILES)'; \ 
    615     dist_files=`for file in $$list; do echo $$file; done | \ 
    616     sed -e "s|^$$srcdirstrip/||;t" \ 
    617         -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 
    618   case $$dist_files in \ 
    619     */*) $(MKDIR_P) `echo "$$dist_files" | \ 
    620          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 
    621          sort -u` ;; \ 
    622   esac; \ 
    623   for file in $$dist_files; do \ 
     608  mkdir $(distdir) 
     609  @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 
     610  topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 
     611  list='$(DISTFILES)'; for file in $$list; do \ 
     612    case $$file in \ 
     613      $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 
     614      $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 
     615    esac; \ 
    624616    if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 
     617    dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 
     618    if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 
     619      dir="/$$dir"; \ 
     620      $(mkdir_p) "$(distdir)$$dir"; \ 
     621    else \ 
     622      dir=''; \ 
     623    fi; \ 
    625624    if test -d $$d/$$file; then \ 
    626       dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 
    627625      if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 
    628626        cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 
     
    638636    ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 
    639637    ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 
    640     ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 
     638    ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ 
    641639  || chmod -R a+r $(distdir) 
    642640dist-gzip: distdir 
     
    713711  @(echo "$(distdir) archives ready for distribution: "; \ 
    714712    list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 
    715     sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 
     713    sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' 
    716714distuninstallcheck: 
    717715  @cd $(distuninstallcheck_dir) \ 
     
    737735installdirs: 
    738736  for dir in "$(DESTDIR)$(bindir)"; do \ 
    739     test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 
     737    test -z "$$dir" || $(mkdir_p) "$$dir"; \ 
    740738  done 
    741739install: install-am 
     
    787785install-data-am: 
    788786 
    789 install-dvi: install-dvi-am 
    790  
    791787install-exec-am: install-binPROGRAMS 
    792788 
    793 install-html: install-html-am 
    794  
    795789install-info: install-info-am 
    796790 
    797791install-man: 
    798  
    799 install-pdf: install-pdf-am 
    800  
    801 install-ps: install-ps-am 
    802792 
    803793installcheck-am: 
     
    822812ps-am: 
    823813 
    824 uninstall-am: uninstall-binPROGRAMS 
    825  
    826 .MAKE: install-am install-strip 
     814uninstall-am: uninstall-binPROGRAMS uninstall-info-am 
    827815 
    828816.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ 
     
    832820  distclean-tags distcleancheck distdir distuninstallcheck dvi \ 
    833821  dvi-am html html-am info info-am install install-am \ 
    834   install-binPROGRAMS install-data install-data-am install-dvi \ 
    835   install-dvi-am install-exec install-exec-am install-html \ 
    836   install-html-am install-info install-info-am install-man \ 
    837   install-pdf install-pdf-am install-ps install-ps-am \ 
     822  install-binPROGRAMS install-data install-data-am install-exec \ 
     823  install-exec-am install-info install-info-am install-man \ 
    838824  install-strip installcheck installcheck-am installdirs \ 
    839825  maintainer-clean maintainer-clean-generic mostlyclean \ 
    840826  mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ 
    841   tags uninstall uninstall-am uninstall-binPROGRAMS 
     827  tags uninstall uninstall-am uninstall-binPROGRAMS \ 
     828  uninstall-info-am 
    842829 
    843830 
  • trunk/aclocal.m4

    r874 r878  
    1 # generated automatically by aclocal 1.10 -*- Autoconf -*- 
     1# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 
    22 
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
    4 # 2005, 2006  Free Software Foundation, Inc. 
     4# 2005, 2006, 2007, 2008  Free Software Foundation, Inc. 
    55# This file is free software; the Free Software Foundation 
    66# gives unlimited permission to copy and/or distribute it, 
     
    1212# PARTICULAR PURPOSE. 
    1313 
    14 m4_if(m4_PACKAGE_VERSION, [2.61],, 
    15 [m4_fatal([this file was generated for autoconf 2.61. 
    16 You have another version of autoconf.  If you want to use that, 
    17 you should regenerate the build system entirely.], [63])]) 
    18  
    19 # iconv.m4 serial AM4 (gettext-0.11.3) 
    20 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
     14m4_ifndef([AC_AUTOCONF_VERSION], 
     15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 
     16m4_if(AC_AUTOCONF_VERSION, [2.61],, 
     17[m4_warning([this file was generated for autoconf 2.61. 
     18You have another version of autoconf.  It may work, but is not guaranteed to. 
     19If you have problems, you may need to regenerate the build system entirely. 
     20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 
     21 
     22# iconv.m4 serial AM6 (gettext-0.17) 
     23dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc. 
    2124dnl This file is free software; the Free Software Foundation 
    2225dnl gives unlimited permission to copy and/or distribute it, 
     
    4043  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
    4144  dnl those with the standalone portable GNU libiconv installed). 
     45  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 
    4246 
    4347  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
     
    5256  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 
    5357 
    54   AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ 
     58  AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [ 
    5559    am_cv_func_iconv="no, consider installing GNU libiconv" 
    5660    am_cv_lib_iconv=no 
     
    7579  ]) 
    7680  if test "$am_cv_func_iconv" = yes; then 
    77     AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) 
     81    AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [ 
     82      dnl This tests against bugs in AIX 5.1 and HP-UX 11.11. 
     83      am_save_LIBS="$LIBS" 
     84      if test $am_cv_lib_iconv = yes; then 
     85        LIBS="$LIBS $LIBICONV" 
     86      fi 
     87      AC_TRY_RUN([ 
     88#include <iconv.h> 
     89#include <string.h> 
     90int main () 
     91{ 
     92  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 
     93     returns.  */ 
     94  { 
     95    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 
     96    if (cd_utf8_to_88591 != (iconv_t)(-1)) 
     97      { 
     98        static const char input[] = "\342\202\254"; /* EURO SIGN */ 
     99        char buf[10]; 
     100        const char *inptr = input; 
     101        size_t inbytesleft = strlen (input); 
     102        char *outptr = buf; 
     103        size_t outbytesleft = sizeof (buf); 
     104        size_t res = iconv (cd_utf8_to_88591, 
     105                            (char **) &inptr, &inbytesleft, 
     106                            &outptr, &outbytesleft); 
     107        if (res == 0) 
     108          return 1; 
     109      } 
     110  } 
     111#if 0 /* This bug could be worked around by the caller.  */ 
     112  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */ 
     113  { 
     114    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 
     115    if (cd_88591_to_utf8 != (iconv_t)(-1)) 
     116      { 
     117        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 
     118        char buf[50]; 
     119        const char *inptr = input; 
     120        size_t inbytesleft = strlen (input); 
     121        char *outptr = buf; 
     122        size_t outbytesleft = sizeof (buf); 
     123        size_t res = iconv (cd_88591_to_utf8, 
     124                            (char **) &inptr, &inbytesleft, 
     125                            &outptr, &outbytesleft); 
     126        if ((int)res > 0) 
     127          return 1; 
     128      } 
     129  } 
     130#endif 
     131  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 
     132     provided.  */ 
     133  if (/* Try standardized names.  */ 
     134      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 
     135      /* Try IRIX, OSF/1 names.  */ 
     136      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 
     137      /* Try AIX names.  */ 
     138      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 
     139      /* Try HP-UX names.  */ 
     140      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 
     141    return 1; 
     142  return 0; 
     143}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], 
     144        [case "$host_os" in 
     145           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 
     146           *)            am_cv_func_iconv_works="guessing yes" ;; 
     147         esac]) 
     148      LIBS="$am_save_LIBS" 
     149    ]) 
     150    case "$am_cv_func_iconv_works" in 
     151      *no) am_func_iconv=no am_cv_lib_iconv=no ;; 
     152      *)   am_func_iconv=yes ;; 
     153    esac 
     154  else 
     155    am_func_iconv=no am_cv_lib_iconv=no 
     156  fi 
     157  if test "$am_func_iconv" = yes; then 
     158    AC_DEFINE(HAVE_ICONV, 1, 
     159      [Define if you have the iconv() function and it works.]) 
    78160  fi 
    79161  if test "$am_cv_lib_iconv" = yes; then 
     
    230312]) 
    231313 
    232 # lib-link.m4 serial 9 (gettext-0.16) 
    233 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. 
     314# lib-link.m4 serial 13 (gettext-0.17) 
     315dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. 
    234316dnl This file is free software; the Free Software Foundation 
    235317dnl gives unlimited permission to copy and/or distribute it, 
     
    238320dnl From Bruno Haible. 
    239321 
    240 AC_PREREQ(2.50) 
     322AC_PREREQ(2.54) 
    241323 
    242324dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 
     
    244326dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 
    245327dnl augments the CPPFLAGS variable. 
     328dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 
     329dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    246330AC_DEFUN([AC_LIB_LINKFLAGS], 
    247331[ 
     
    256340    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 
    257341    ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 
     342    ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" 
    258343  ]) 
    259344  LIB[]NAME="$ac_cv_lib[]Name[]_libs" 
    260345  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 
    261346  INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 
     347  LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" 
    262348  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    263349  AC_SUBST([LIB]NAME) 
    264350  AC_SUBST([LTLIB]NAME) 
     351  AC_SUBST([LIB]NAME[_PREFIX]) 
    265352  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 
    266353  dnl results of this search when this library appears as a dependency. 
     
    278365dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 
    279366dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 
     367dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 
     368dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    280369AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 
    281370[ 
     
    314403    LIB[]NAME= 
    315404    LTLIB[]NAME= 
     405    LIB[]NAME[]_PREFIX= 
    316406  fi 
    317407  AC_SUBST([HAVE_LIB]NAME) 
    318408  AC_SUBST([LIB]NAME) 
    319409  AC_SUBST([LTLIB]NAME) 
     410  AC_SUBST([LIB]NAME[_PREFIX]) 
    320411  undefine([Name]) 
    321412  undefine([NAME]) 
     
    323414 
    324415dnl Determine the platform dependent parameters needed to use rpath: 
    325 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, 
    326 dnl hardcode_direct, hardcode_minus_L. 
     416dnl   acl_libext, 
     417dnl   acl_shlibext, 
     418dnl   acl_hardcode_libdir_flag_spec, 
     419dnl   acl_hardcode_libdir_separator, 
     420dnl   acl_hardcode_direct, 
     421dnl   acl_hardcode_minus_L. 
    327422AC_DEFUN([AC_LIB_RPATH], 
    328423[ 
     
    341436  ]) 
    342437  wl="$acl_cv_wl" 
    343   libext="$acl_cv_libext" 
    344   shlibext="$acl_cv_shlibext" 
    345   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 
    346   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 
    347   hardcode_direct="$acl_cv_hardcode_direct" 
    348   hardcode_minus_L="$acl_cv_hardcode_minus_L" 
     438  acl_libext="$acl_cv_libext" 
     439  acl_shlibext="$acl_cv_shlibext" 
     440  acl_libname_spec="$acl_cv_libname_spec" 
     441  acl_library_names_spec="$acl_cv_library_names_spec" 
     442  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 
     443  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 
     444  acl_hardcode_direct="$acl_cv_hardcode_direct" 
     445  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 
    349446  dnl Determine whether the user wants rpath handling at all. 
    350447  AC_ARG_ENABLE(rpath, 
     
    356453dnl the libraries corresponding to explicit and implicit dependencies. 
    357454dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 
     455dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found 
     456dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 
    358457AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 
    359458[ 
     
    361460  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    362461                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
     462  dnl Autoconf >= 2.61 supports dots in --with options. 
     463  define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) 
    363464  dnl By default, look in $includedir and $libdir. 
    364465  use_additional=yes 
     
    367468    eval additional_libdir=\"$libdir\" 
    368469  ]) 
    369   AC_LIB_ARG_WITH([lib$1-prefix], 
    370 [  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib 
    371   --without-lib$1-prefix     don't search for lib$1 in includedir and libdir], 
     470  AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], 
     471[  --with-lib]N_A_M_E[-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib 
     472  --without-lib]N_A_M_E[-prefix     don't search for lib$1 in includedir and libdir], 
    372473[ 
    373474    if test "X$withval" = "Xno"; then 
     
    390491  LTLIB[]NAME= 
    391492  INC[]NAME= 
     493  LIB[]NAME[]_PREFIX= 
    392494  rpathdirs= 
    393495  ltrpathdirs= 
     
    429531          found_so= 
    430532          found_a= 
     533          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name 
     534          if test -n "$acl_shlibext"; then 
     535            shrext=".$acl_shlibext"             # typically: shrext=.so 
     536          else 
     537            shrext= 
     538          fi 
    431539          if test $use_additional = yes; then 
    432             if test -n "$shlibext" \ 
    433                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    434                     || { test "$shlibext" = dll \ 
    435                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
    436               found_dir="$additional_libdir" 
    437               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    438                 found_so="$additional_libdir/lib$name.$shlibext" 
     540            dir="$additional_libdir" 
     541            dnl The same code as in the loop below: 
     542            dnl First look for a shared library. 
     543            if test -n "$acl_shlibext"; then 
     544              if test -f "$dir/$libname$shrext"; then 
     545                found_dir="$dir" 
     546                found_so="$dir/$libname$shrext" 
    439547              else 
    440                 found_so="$additional_libdir/lib$name.dll.a" 
     548                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 
     549                  ver=`(cd "$dir" && \ 
     550                        for f in "$libname$shrext".*; do echo "$f"; done \ 
     551                        | sed -e "s,^$libname$shrext\\\\.,," \ 
     552                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 
     553                        | sed 1q ) 2>/dev/null` 
     554                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 
     555                    found_dir="$dir" 
     556                    found_so="$dir/$libname$shrext.$ver" 
     557                  fi 
     558                else 
     559                  eval library_names=\"$acl_library_names_spec\" 
     560                  for f in $library_names; do 
     561                    if test -f "$dir/$f"; then 
     562                      found_dir="$dir" 
     563                      found_so="$dir/$f" 
     564                      break 
     565                    fi 
     566                  done 
     567                fi 
    441568              fi 
    442               if test -f "$additional_libdir/lib$name.la"; then 
    443                 found_la="$additional_libdir/lib$name.la" 
     569            fi 
     570            dnl Then look for a static library. 
     571            if test "X$found_dir" = "X"; then 
     572              if test -f "$dir/$libname.$acl_libext"; then 
     573                found_dir="$dir" 
     574                found_a="$dir/$libname.$acl_libext" 
    444575              fi 
    445             else 
    446               if test -f "$additional_libdir/lib$name.$libext"; then 
    447                 found_dir="$additional_libdir" 
    448                 found_a="$additional_libdir/lib$name.$libext" 
    449                 if test -f "$additional_libdir/lib$name.la"; then 
    450                   found_la="$additional_libdir/lib$name.la" 
    451                 fi 
     576            fi 
     577            if test "X$found_dir" != "X"; then 
     578              if test -f "$dir/$libname.la"; then 
     579                found_la="$dir/$libname.la" 
    452580              fi 
    453581            fi 
     
    459587                -L*) 
    460588                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    461                   if test -n "$shlibext" \ 
    462                      && { test -f "$dir/lib$name.$shlibext" \ 
    463                           || { test "$shlibext" = dll \ 
    464                                && test -f "$dir/lib$name.dll.a"; }; }; then 
    465                     found_dir="$dir" 
    466                     if test -f "$dir/lib$name.$shlibext"; then 
    467                       found_so="$dir/lib$name.$shlibext" 
     589                  dnl First look for a shared library. 
     590                  if test -n "$acl_shlibext"; then 
     591                    if test -f "$dir/$libname$shrext"; then 
     592                      found_dir="$dir" 
     593                      found_so="$dir/$libname$shrext" 
    468594                    else 
    469                       found_so="$dir/lib$name.dll.a" 
     595                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 
     596                        ver=`(cd "$dir" && \ 
     597                              for f in "$libname$shrext".*; do echo "$f"; done \ 
     598                              | sed -e "s,^$libname$shrext\\\\.,," \ 
     599                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 
     600                              | sed 1q ) 2>/dev/null` 
     601                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 
     602                          found_dir="$dir" 
     603                          found_so="$dir/$libname$shrext.$ver" 
     604                        fi 
     605                      else 
     606                        eval library_names=\"$acl_library_names_spec\" 
     607                        for f in $library_names; do 
     608                          if test -f "$dir/$f"; then 
     609                            found_dir="$dir" 
     610                            found_so="$dir/$f" 
     611                            break 
     612                          fi 
     613                        done 
     614                      fi 
    470615                    fi 
    471                     if test -f "$dir/lib$name.la"; then 
    472                       found_la="$dir/lib$name.la"