1 dnl Copyright (C) 1999-2001 Free Software Foundation, Inc.
2 dnl This file is part of the GNU LIBICONV Library.
4 dnl The GNU LIBICONV Library is free software; you can redistribute it
5 dnl and/or modify it under the terms of the GNU Library General Public
6 dnl License as published by the Free Software Foundation; either version 2
7 dnl of the License, or (at your option) any later version.
9 dnl The GNU LIBICONV Library is distributed in the hope that it will be
10 dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 dnl Library General Public License for more details.
14 dnl You should have received a copy of the GNU Library General Public
15 dnl License along with the GNU LIBICONV Library; see the file COPYING.LIB.
16 dnl If not, write to the Free Software Foundation, Inc., 59 Temple Place -
17 dnl Suite 330, Boston, MA 02111-1307, USA. */
22 AC_CONFIG_AUX_DIR(autoconf)
23 AC_CONFIG_HEADER(lib/config.h)
26 dnl checks for programs
30 AC_PROG_GCC_TRADITIONAL
37 dnl check for host type
39 CL_CANONICAL_HOST(autoconf)
41 dnl checks for UNIX variants that set DEFS
47 dnl checks for compiler output filename suffixes
52 dnl check for build configuration
58 dnl checks for header files
60 AC_CHECK_HEADERS(locale.h)
62 dnl checks for typedefs
66 dnl checks for functions and declarations
69 if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
76 AC_CHECK_FUNCS(mbrtowc wcrtomb mbsinit setlocale)
80 dnl check whether OS supports plug libraries
85 solaris*) OS="solaris" ;;
88 if test -n "$OS"; then
91 PLUGLIB="libiconv_plug.so"
97 if test -d "${srcdir}/tests"; then
98 TESTS_MAKEFILE=tests/Makefile
102 AC_OUTPUT(Makefile lib/Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h)
103 AC_OUTPUT_SUBDIRS(libcharset)