AC_INIT(librr/rr.h) # (from gtk+ configure.in) # Making releases: # RR_MICRO_VERSION += 1; # RR_INTERFACE_AGE += 1; # RR_BINARY_AGE += 1; # if any functions have been added, set RR_INTERFACE_AGE to 0. # if backwards compatibility has been broken, # set RR_BINARY_AGE and RR_INTERFACE_AGE to 0. # RR_MAJOR_VERSION=0 RR_MINOR_VERSION=9 RR_MICRO_VERSION=1 RR_INTERFACE_AGE=1 RR_BINARY_AGE=1 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION.$RR_MICRO_VERSION AC_SUBST(RR_MAJOR_VERSION) AC_SUBST(RR_MINOR_VERSION) AC_SUBST(RR_MICRO_VERSION) AC_SUBST(RR_INTERFACE_AGE) AC_SUBST(RR_BINARY_AGE) AC_SUBST(RR_VERSION_VERSION) # libtool versioning LT_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION LT_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE` LT_REVISION=$RR_INTERFACE_AGE LT_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE` LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE` AC_SUBST(LT_RELEASE) AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) AC_SUBST(LT_CURRENT_MINUS_AGE) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE(roadrunner, $RR_VERSION) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE echo -n "checking for feather on bird..." sleep 1 echo " yes" AC_PROG_CC AC_ISC_POSIX AC_HEADER_STDC AM_PROG_LIBTOOL PKG_CHECK_MODULES(RR, glib-2.0 >= 2.0.1 \ gthread-2.0 >= 2.0.1 \ gobject-2.0 >= 2.0.1 \ libxml-2.0 >= 2.4.16) ################################################## # Debugging ################################################## RR_G_LOG_DOMAIN='-DG_LOG_DOMAIN=\"RR\"' AC_SUBST(RR_G_LOG_DOMAIN) AC_ARG_ENABLE(debug, [ --enable-debug Enable debug output [default=yes]], enable_debug="$enableval", enable_debug=yes, enable_debug=no) if test x$enable_debug = xno ; then echo "Debugging disabled" RR_CFLAGS="$RR_CFLAGS -DRR_NO_DEBUG" fi AC_ARG_ENABLE(debug_net, [ --enable-debug-net Enable network debugging [default=yes]], enable_debug_net="$enableval", enable_debug_net=yes) if test x$enable_debug_net = xyes ; then echo "Network debugging enabled" RR_CFLAGS="$RR_CFLAGS -DRR_DEBUG_NET_ENABLE" fi ################################################## # Check for gtk-doc. ################################################## AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ]) if test "x$with_html_dir" = "x" ; then HTML_DIR='${datadir}/gtk-doc/html' else HTML_DIR=$with_html_dir fi AC_SUBST(HTML_DIR) AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false) gtk_doc_min_version=0.9 if $GTKDOC ; then gtk_doc_version=`gtkdoc-mkdb --version` AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]) IFS="${IFS= }"; gtk_save_IFS="$IFS"; IFS="." set $gtk_doc_version for min in $gtk_doc_min_version ; do cur=$1; shift if test -z $min ; then break; fi if test -z $cur ; then GTKDOC=false; break; fi if test $cur -gt $min ; then break ; fi if test $cur -lt $min ; then GTKDOC=false; break ; fi done IFS="$gtk_save_IFS" if $GTKDOC ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) GTKDOC=false fi fi dnl Let people disable the gtk-doc stuff. AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto) if test x$enable_gtk_doc = xauto ; then if test x$GTKDOC = xtrue ; then enable_gtk_doc=yes else enable_gtk_doc=no fi fi AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) AC_SUBST(RR_CFLAGS) AC_SUBST(RR_LIBS) AC_OUTPUT([ Makefile doc/Makefile doc/reference/Makefile build/Makefile debian/Makefile build/win32/Makefile librr/Makefile librr/tcp/Makefile librr/message/Makefile profiles/Makefile profiles/null_echo/Makefile profiles/rot13/Makefile tests/Makefile examples/Makefile roadrunner.pc]) echo echo "--------------------------------------------------" echo "-- Welcome to the RoadRunner experience --" echo "--------------------------------------------------" echo if test x$enable_debug = xyes ; then echo " + debugging enabled." else echo " - debugging disabled." fi if test x$enable_debug_net = xyes ; then echo " + net debugging enabled." else echo " - net debugging disabled." fi echo echo "--------------------------------------------------" echo "-- There is no omelette. --" echo "--------------------------------------------------" echo