1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
5 dnl This file is part of GNU Libidn.
7 dnl This program is free software: you can redistribute it and/or modify
8 dnl it under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation, either version 3 of the License, or
10 dnl (at your option) any later version.
12 dnl This program is distributed in the hope that it will be useful,
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 dnl GNU General Public License for more details.
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
21 AC_INIT([GNU Libidn], [1.15], [bug-libidn@gnu.org])
22 AC_COPYRIGHT([Copyright (c) 2002-2008 Simon Josefsson <simon@josefsson.org>.])
24 # Library code modified: REVISION++
25 # Interfaces changed/added/removed: CURRENT++ REVISION=0
26 # Interfaces added: AGE++
27 # Interfaces removed: AGE=0
28 AC_SUBST(LT_CURRENT, 16)
29 AC_SUBST(LT_REVISION, 44)
33 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
36 AC_CONFIG_AUX_DIR([build-aux])
37 AC_CONFIG_MACRO_DIR([m4])
38 AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override])
39 AC_CONFIG_HEADERS(config.h)
41 # Checks for programs.
47 AM_MISSING_PROG(PERL, perl, $missing_dir)
48 AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
49 AM_GNU_GETTEXT(external)
50 AM_GNU_GETTEXT_VERSION(0.17)
54 if test "$am_cv_func_iconv" != "yes"; then
58 Your system does not have iconv(). The iconv() function is not
59 strictly required by the source code. However, that may change in
60 the future, unless you report that this may be a problem for you.
62 Please report this to $PACKAGE_BUGREPORT.
67 # Checks for header files.
70 # For gnulib stuff in gl/.
74 # Check if locale stuff works
77 # Make it possible to disable TLD code.
78 AC_ARG_ENABLE(tld, AC_HELP_STRING([--disable-tld], [disable TLD code]),
79 enable_tld=$enableval, enable_tld=yes)
80 AM_CONDITIONAL(TLD, test "$enable_tld" != "no")
81 if test "$enable_tld" != "no"; then
82 AC_DEFINE([WITH_TLD], 1, [Define to 1 if you want TLD code.])
84 AC_MSG_CHECKING([if TLD API for specific TLD rules should be built])
85 AC_MSG_RESULT($enable_tld)
91 AC_ARG_ENABLE(java, AC_HELP_STRING([--enable-java], [enable Java API]),,
97 if test "$enable_java" != "no"; then
99 AM_MISSING_PROG(GJDOC, gjdoc, $missing_dir)
101 AM_CONDITIONAL(JAVA, test "$enable_java" != "no")
102 AC_MSG_CHECKING([if implementation in Java should be built])
103 AC_MSG_RESULT($enable_java)
106 AM_CONDITIONAL(CSHARP, test -n "$HAVE_CSHARPCOMP")
107 AC_MSG_CHECKING([[if implementation in C# should be built]])
108 if test -n "$HAVE_CSHARPCOMP"; then
113 AC_MSG_RESULT($enable_csharp)
116 sj_UPDATE_HEADER_VERSION([$srcdir/lib/stringprep.h])
118 AC_ARG_ENABLE([gcc-warnings],
119 [AS_HELP_STRING([--enable-gcc-warnings],
120 [turn on lots of GCC warnings (for developers)])],
123 *) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
125 gl_gcc_warnings=$enableval],
129 if test "$gl_gcc_warnings" = yes; then
130 gl_WARN_ADD([-Werror], [WERROR_CFLAGS])
131 gl_WARN_ADD([-Wframe-larger-than=80], [WSTACK_CFLAGS])
133 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
134 nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
135 nw="$nw -Woverlength-strings" # Some of our strings are too large
136 nw="$nw -Wsign-conversion" # Too many warnings for now
137 nw="$nw -Wconversion" # Too many warnings for now
138 nw="$nw -Wtraditional" # Warns on #elif which we use often
139 nw="$nw -Wtraditional-conversion" # Too many warnings for now
140 nw="$nw -Wmissing-noreturn" # Too many warnings for now
141 nw="$nw -Wunreachable-code" # Too many false positives
142 nw="$nw -Wlogical-op" # Too many false positives
144 gl_MANYWARN_ALL_GCC([ws])
145 gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw])
150 gl_WARN_ADD([-Wno-missing-field-initializers])
151 gl_WARN_ADD([-fdiagnostics-show-option])
158 contrib/doxygen/Doxyfile
162 doc/reference/Makefile
163 doc/specifications/Makefile
170 java/gnu/inet/Makefile
171 java/gnu/inet/encoding/Makefile
182 AC_MSG_NOTICE([summary of build options:
184 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
186 Install prefix: ${prefix}
188 Warning flags: ${WARN_CFLAGS}
189 Library types: Shared=${enable_shared}, Static=${enable_static}
190 Valgrind: ${VALGRIND}
191 Version script: $have_ld_version_script
192 TLD code: $enable_tld
193 Build Java port: $enable_java
194 Build C# port: $enable_csharp