comparison configure.ac @ 17322:253155592cd5

merge of 'e39985139f646da2edf8d287dd521e2fce8c3cb2' and 'ff39939277122047daad77a5941cd085ca559d59'
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Thu, 31 May 2007 03:06:46 +0000
parents 8a7238fb7905
children 9a1c7a566d7c
comparison
equal deleted inserted replaced
16749:0fa4a3e9b318 17322:253155592cd5
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. 44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes.
45 # 45 #
46 m4_define([purple_lt_current], [0]) 46 m4_define([purple_lt_current], [0])
47 m4_define([purple_major_version], [2]) 47 m4_define([purple_major_version], [2])
48 m4_define([purple_minor_version], [0]) 48 m4_define([purple_minor_version], [0])
49 m4_define([purple_micro_version], [0]) 49 m4_define([purple_micro_version], [1])
50 m4_define([purple_version_suffix], [beta7]) 50 m4_define([purple_version_suffix], [])
51 m4_define([purple_version], 51 m4_define([purple_version],
52 [purple_major_version.purple_minor_version.purple_micro_version]) 52 [purple_major_version.purple_minor_version.purple_micro_version])
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) 53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
54 54
55 m4_define([gnt_lt_current], [0]) 55 m4_define([gnt_lt_current], [0])
56 m4_define([gnt_major_version], [1]) 56 m4_define([gnt_major_version], [1])
57 m4_define([gnt_minor_version], [0]) 57 m4_define([gnt_minor_version], [0])
58 m4_define([gnt_micro_version], [0]) 58 m4_define([gnt_micro_version], [1])
59 m4_define([gnt_version_suffix], [beta7]) 59 m4_define([gnt_version_suffix], [])
60 m4_define([gnt_version], 60 m4_define([gnt_version],
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) 61 [gnt_major_version.gnt_minor_version.gnt_micro_version])
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) 62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix]))
63 63
64 64
91 AC_SUBST(GNT_VERSION) 91 AC_SUBST(GNT_VERSION)
92 92
93 GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version" 93 GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version"
94 AC_SUBST(GNT_LT_VERSION_INFO) 94 AC_SUBST(GNT_LT_VERSION_INFO)
95 95
96 AC_DEFINE(PIDGIN_NAME, "Pidgin", [The user-visible application name])
97
98 AC_PATH_PROG(sedpath, sed) 96 AC_PATH_PROG(sedpath, sed)
99 97
100 dnl Storing configure arguments 98 dnl Storing configure arguments
101 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) 99 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
102 100
138 ;; 136 ;;
139 esac 137 esac
140 138
141 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"
142 AM_GLIB_GNU_GETTEXT 140 AM_GLIB_GNU_GETTEXT
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
143 154
144 dnl we don't use autobreak on cygwin!! 155 dnl we don't use autobreak on cygwin!!
145 dnl AC_CYGWIN 156 dnl AC_CYGWIN
146 157
147 dnl Checks for header files. 158 dnl Checks for header files.
896 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 907 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
897 908
898 AC_CHECK_HEADER(sys/utsname.h) 909 AC_CHECK_HEADER(sys/utsname.h)
899 AC_CHECK_FUNC(uname) 910 AC_CHECK_FUNC(uname)
900 911
901 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], enable_fortify="$enableval", enable_fortify=yes) 912 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
902
903 AC_ARG_ENABLE(mcheck, [AC_HELP_STRING([--enable-mcheck], [compile with mcheck (malloc debugging) support])], enable_mcheck="$enableval", enable_mcheck="$enable_debug")
904 if test "x$enable_mcheck" = "xyes" ; then
905 orig_LIBS="$LIBS"
906 LIBS="$LIBS -lmcheck"
907 AC_MSG_CHECKING(for mcheck support)
908 AC_TRY_COMPILE([], [
909 int main() {return 0;}
910 ], [
911 AC_MSG_RESULT(yes)
912 ], [
913 AC_MSG_RESULT(no)
914 LIBS="$orig_LIBS"
915 ])
916 fi
917 913
918 if test "x$GCC" = "xyes"; then 914 if test "x$GCC" = "xyes"; then
919 dnl We enable -Wall later. 915 dnl We enable -Wall later.
920 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. 916 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
921 dnl This leads to warnings we don't want. 917 dnl This leads to warnings we don't want.
1189 AC_PATH_PROG(perlpath, perl) 1185 AC_PATH_PROG(perlpath, perl)
1190 AC_MSG_CHECKING(for Perl compile flags) 1186 AC_MSG_CHECKING(for Perl compile flags)
1191 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` 1187 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
1192 if test "_$PERL_CFLAGS" = _ ; then 1188 if test "_$PERL_CFLAGS" = _ ; then
1193 AC_MSG_RESULT([not found, building without perl.]) 1189 AC_MSG_RESULT([not found, building without perl.])
1194 enable_perl = no 1190 enable_perl=no
1195 else 1191 else
1196 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` 1192 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'`
1197 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` 1193 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'`
1198 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` 1194 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'`
1199 if test "$system" = "Linux"; then 1195 if test "$system" = "Linux"; then
1924 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) 1920 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf)
1925 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) 1921 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
1926 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) 1922 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
1927 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) 1923 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
1928 AC_CHECK_HEADERS(termios.h) 1924 AC_CHECK_HEADERS(termios.h)
1925 AC_CHECK_HEADERS(sys/sysctl.h sys/socket.h)
1929 AC_VAR_TIMEZONE_EXTERNALS 1926 AC_VAR_TIMEZONE_EXTERNALS
1930 1927
1931 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, 1928 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
1932 AC_TRY_COMPILE([ 1929 AC_TRY_COMPILE([
1933 #include <time.h> 1930 #include <time.h>
1990 AC_SUBST(enable_dot) 1987 AC_SUBST(enable_dot)
1991 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes") 1988 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes")
1992 1989
1993 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], 1990 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],
1994 [compile with debugging support])], , enable_debug=no) 1991 [compile with debugging support])], , enable_debug=no)
1992
1995 if test "x$enable_debug" = "xyes" ; then 1993 if test "x$enable_debug" = "xyes" ; then
1996 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 1994 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
1997 fi
1998
1999 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts],
2000 [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no)
2001 if test "x$enable_fatal_asserts" = "xyes" ; then
2002 AC_DEFINE(PURPLE_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).])
2003 fi 1995 fi
2004 1996
2005 AC_OUTPUT([Makefile 1997 AC_OUTPUT([Makefile
2006 Doxyfile 1998 Doxyfile
2007 doc/Makefile 1999 doc/Makefile
2063 pidgin/pixmaps/toolbar/16/scalable/Makefile 2055 pidgin/pixmaps/toolbar/16/scalable/Makefile
2064 pidgin/pixmaps/toolbar/22/Makefile 2056 pidgin/pixmaps/toolbar/22/Makefile
2065 pidgin/pixmaps/toolbar/22/scalable/Makefile 2057 pidgin/pixmaps/toolbar/22/scalable/Makefile
2066 pidgin/pixmaps/tray/Makefile 2058 pidgin/pixmaps/tray/Makefile
2067 pidgin/pixmaps/tray/16/Makefile 2059 pidgin/pixmaps/tray/16/Makefile
2060 pidgin/pixmaps/tray/16/scalable/Makefile
2068 pidgin/pixmaps/tray/22/Makefile 2061 pidgin/pixmaps/tray/22/Makefile
2062 pidgin/pixmaps/tray/22/scalable/Makefile
2069 pidgin/plugins/Makefile 2063 pidgin/plugins/Makefile
2070 pidgin/plugins/cap/Makefile 2064 pidgin/plugins/cap/Makefile
2071 pidgin/plugins/gestures/Makefile 2065 pidgin/plugins/gestures/Makefile
2072 pidgin/plugins/gevolution/Makefile 2066 pidgin/plugins/gevolution/Makefile
2073 pidgin/plugins/musicmessaging/Makefile 2067 pidgin/plugins/musicmessaging/Makefile
2147 echo Build with Perl support....... : $enable_perl 2141 echo Build with Perl support....... : $enable_perl
2148 echo Build with Tcl support........ : $enable_tcl 2142 echo Build with Tcl support........ : $enable_tcl
2149 echo Build with Tk support......... : $enable_tk 2143 echo Build with Tk support......... : $enable_tk
2150 echo 2144 echo
2151 echo Print debugging messages...... : $enable_debug 2145 echo Print debugging messages...... : $enable_debug
2152 echo Assertions are fatal.......... : $enable_fatal_asserts
2153 echo 2146 echo
2154 eval eval echo Pidgin will be installed in $bindir. 2147 eval eval echo Pidgin will be installed in $bindir.
2155 if test "x$pidginpath" != "x" ; then 2148 if test "x$pidginpath" != "x" ; then
2156 echo Warning: You have an old copy of Pidgin at $pidginpath. 2149 echo Warning: You have an old copy of Pidgin at $pidginpath.
2157 fi 2150 fi