comparison configure.ac @ 17182:618a3748ff64

merge of '6a857845ed772173ecc2083603f0d661eb52c68a' and 'f806da14ec2d87cd6650b921eaeed3c6d6587598'
author Richard Laager <rlaager@wiktel.com>
date Mon, 21 May 2007 20:58:23 +0000
parents 555469b10122
children 92f7afd6c640 a770353e7306
comparison
equal deleted inserted replaced
16937:e42309469a4a 17182:618a3748ff64
137 esac 137 esac
138 138
139 ALL_LINGUAS="af am ar az bg bn bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr gl gu he hi hu id it ja ka kn ko ku lt mk my_MM nb ne nl nn pa pl pt_BR pt ps ro ru sk sl sq sr sr@Latn sv ta te th tr uk vi xh zh_CN zh_HK zh_TW" 139 ALL_LINGUAS="af am ar az bg bn bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr gl gu he hi hu id it ja ka kn ko ku lt mk my_MM nb ne nl nn pa pl pt_BR pt ps ro ru sk sl sq sr sr@Latn sv ta te th tr uk vi xh zh_CN zh_HK zh_TW"
140 AM_GLIB_GNU_GETTEXT 140 AM_GLIB_GNU_GETTEXT
141 141
142 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that
143 dnl AM_GLIB_GNU_GETTEXT found it.
144
145 if test x$MSGFMT = xno -o x$GMSGFMT = x
146 then
147 AC_ERROR([
148
149 The msgfmt command is required to build libpurple. If it is installed
150 on your system, ensure that it is in your path. If it is not, install
151 GNU gettext to continue.
152 ])
153 fi
154
142 dnl we don't use autobreak on cygwin!! 155 dnl we don't use autobreak on cygwin!!
143 dnl AC_CYGWIN 156 dnl AC_CYGWIN
144 157
145 dnl Checks for header files. 158 dnl Checks for header files.
146 AC_HEADER_STDC 159 AC_HEADER_STDC
890 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 903 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
891 904
892 AC_CHECK_HEADER(sys/utsname.h) 905 AC_CHECK_HEADER(sys/utsname.h)
893 AC_CHECK_FUNC(uname) 906 AC_CHECK_FUNC(uname)
894 907
895 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], enable_fortify="$enableval", enable_fortify=yes) 908 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
896
897 AC_ARG_ENABLE(mcheck, [AC_HELP_STRING([--enable-mcheck], [compile with mcheck (malloc debugging) support])], enable_mcheck="$enableval", enable_mcheck="$enable_debug")
898 if test "x$enable_mcheck" = "xyes" ; then
899 orig_LIBS="$LIBS"
900 LIBS="$LIBS -lmcheck"
901 AC_MSG_CHECKING(for mcheck support)
902 AC_TRY_COMPILE([], [
903 int main() {return 0;}
904 ], [
905 AC_MSG_RESULT(yes)
906 ], [
907 AC_MSG_RESULT(no)
908 LIBS="$orig_LIBS"
909 ])
910 fi
911 909
912 if test "x$GCC" = "xyes"; then 910 if test "x$GCC" = "xyes"; then
913 dnl We enable -Wall later. 911 dnl We enable -Wall later.
914 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. 912 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
915 dnl This leads to warnings we don't want. 913 dnl This leads to warnings we don't want.
1985 AC_SUBST(enable_dot) 1983 AC_SUBST(enable_dot)
1986 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes") 1984 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes")
1987 1985
1988 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], 1986 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],
1989 [compile with debugging support])], , enable_debug=no) 1987 [compile with debugging support])], , enable_debug=no)
1988
1990 if test "x$enable_debug" = "xyes" ; then 1989 if test "x$enable_debug" = "xyes" ; then
1991 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 1990 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
1992 fi
1993
1994 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts],
1995 [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no)
1996 if test "x$enable_fatal_asserts" = "xyes" ; then
1997 AC_DEFINE(PURPLE_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).])
1998 fi 1991 fi
1999 1992
2000 AC_OUTPUT([Makefile 1993 AC_OUTPUT([Makefile
2001 Doxyfile 1994 Doxyfile
2002 doc/Makefile 1995 doc/Makefile
2143 echo Build with Perl support....... : $enable_perl 2136 echo Build with Perl support....... : $enable_perl
2144 echo Build with Tcl support........ : $enable_tcl 2137 echo Build with Tcl support........ : $enable_tcl
2145 echo Build with Tk support......... : $enable_tk 2138 echo Build with Tk support......... : $enable_tk
2146 echo 2139 echo
2147 echo Print debugging messages...... : $enable_debug 2140 echo Print debugging messages...... : $enable_debug
2148 echo Assertions are fatal.......... : $enable_fatal_asserts
2149 echo 2141 echo
2150 eval eval echo Pidgin will be installed in $bindir. 2142 eval eval echo Pidgin will be installed in $bindir.
2151 if test "x$pidginpath" != "x" ; then 2143 if test "x$pidginpath" != "x" ; then
2152 echo Warning: You have an old copy of Pidgin at $pidginpath. 2144 echo Warning: You have an old copy of Pidgin at $pidginpath.
2153 fi 2145 fi