Changeset 1112


Ignore:
Timestamp:
Jan 29, 2004, 10:35:59 PM (22 years ago)
Author:
bird
Message:

Now it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/gettext.m4

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1111 r1112  
    5050
    5151           if test "$gt_cv_func_gettext_libc" != "yes"; then
    52              dnl Bird: this is pretty hackish, something aint working right...
     52             dnl Bird: this is pretty hackish, something aint working right...
    5353             dnl AC_CHECK_LIB isnt working it seems... its not adding -lintl to LIB...
    5454             AC_CHECK_LIB(intl, bindtextdomain,
     
    5757                 [ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
    5858                 AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
    59                  [gt_cv_func_gettext_libintl=yes; INTLLIBS="-lintl";],
     59                 gt_cv_func_gettext_libintl=yes,
    6060                 gt_cv_func_gettext_libintl=no)
    6161                 LIBS="$ac_save_LIBS";])])
     
    114114        nls_cv_header_intl=libintl.h
    115115        nls_cv_header_libgt=libgettext.h
     116      else
     117        dnl Bird: AC_CHECK_LIB doesn't seem to work. Update both LIBS and
     118        dnl INTLLIBS just in case LIBS is messed up later.
     119        echo "dbg: else: gt_cv_func_gettext_libintl" >&5
     120        if test "$gt_cv_func_gettext_libintl" = "yes"; then
     121          echo "dbg: updating LIBS" >&5
     122          LIBS="-lintl $LIBS"
     123          INTLLIBS="-lintl"
     124        fi
    116125      fi
    117126
Note: See TracChangeset for help on using the changeset viewer.