/[cvs]/eggdrop1.9/iconv.m4
ViewVC logotype

Contents of /eggdrop1.9/iconv.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Oct 10 01:20:08 2001 UTC (18 years ago) by ite
Branch: MAIN
* Refactored the tree (especially src/modules.c) to use the libltdl
  wrapper. Modules are configured to be lt_dlopened or dl_preopened (if
  the system doesn't support shared libraries).
* Should compile modules on more SunOs environments and on Beos too.
* Libtoolized the package: modules and internal libraries build system
  more protable than ever.
* Wiped out old makefiles in favour of automake and Makefile.am's
  files.
* Misc cleanups.
* Updated bootstrap script
* Moved doc/AUTHORS to ./AUTHORS
* Updated config.guess and config.sub
* Changed misc/ to ./ temporairly
* Got rid of misc/modconfig, and more in general of the old module
  configuration stuff, in favor of an incoming ./configure parametrized
  choice.
* Moved configure macros from aclocal.m4 to acinclude.m4 since aclocal.m4
  is now generated by aclocal on bootstrap.
* Removed no more necessary macros like EGG_EXEEXT because of
  libltdl+automake power ;P
* Removed EGG_CHECK_LIBSAFE_SSCANF macro that wasn't necessary anymore
  after gettext support.
* Added preliminary EGG_DEBUG_OPTIONS macro.
* Heavily stripped EGG_CHECK_OS macro and got rid of some system
  specific defines that were dead because of libltdl.
* Updated .cvsignore files.
* Improved make dist target.
* make static is gone in favor of ./configure --disable-shared.
* make debug is gone in favor of future ./configure --with-debug
  options.
* Others targets are gone in favor of more GNU standard targets.
* Updated po/eggdrop.pot.
# Egglib is now compiled and linked in the core.
* Moved compress.mod's specific configure macros to the top configure script.
* Switched to gettext 0.10.40 and pre-gettextized the devel tree.

1 #serial AM2
2
3 dnl From Bruno Haible.
4
5 AC_DEFUN([AM_ICONV],
6 [
7 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
8 dnl those with the standalone portable GNU libiconv installed).
9
10 AC_ARG_WITH([libiconv-prefix],
11 [ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
12 for dir in `echo "$withval" | tr : ' '`; do
13 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15 done
16 ])
17
18 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
19 am_cv_func_iconv="no, consider installing GNU libiconv"
20 am_cv_lib_iconv=no
21 AC_TRY_LINK([#include <stdlib.h>
22 #include <iconv.h>],
23 [iconv_t cd = iconv_open("","");
24 iconv(cd,NULL,NULL,NULL,NULL);
25 iconv_close(cd);],
26 am_cv_func_iconv=yes)
27 if test "$am_cv_func_iconv" != yes; then
28 am_save_LIBS="$LIBS"
29 LIBS="$LIBS -liconv"
30 AC_TRY_LINK([#include <stdlib.h>
31 #include <iconv.h>],
32 [iconv_t cd = iconv_open("","");
33 iconv(cd,NULL,NULL,NULL,NULL);
34 iconv_close(cd);],
35 am_cv_lib_iconv=yes
36 am_cv_func_iconv=yes)
37 LIBS="$am_save_LIBS"
38 fi
39 ])
40 if test "$am_cv_func_iconv" = yes; then
41 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
42 AC_MSG_CHECKING([for iconv declaration])
43 AC_CACHE_VAL(am_cv_proto_iconv, [
44 AC_TRY_COMPILE([
45 #include <stdlib.h>
46 #include <iconv.h>
47 extern
48 #ifdef __cplusplus
49 "C"
50 #endif
51 #if defined(__STDC__) || defined(__cplusplus)
52 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
53 #else
54 size_t iconv();
55 #endif
56 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
57 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
58 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
59 AC_MSG_RESULT([$]{ac_t:-
60 }[$]am_cv_proto_iconv)
61 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
62 [Define as const if the declaration of iconv() needs const.])
63 fi
64 LIBICONV=
65 if test "$am_cv_lib_iconv" = yes; then
66 LIBICONV="-liconv"
67 fi
68 AC_SUBST(LIBICONV)
69 ])

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23