Author: derek Date: Thu Sep 7 23:29:08 2006 New Revision: 81 Added: sofaswitch/trunk/callflow/configure.in Log: Add this file, so autogen.sh works. Added: sofaswitch/trunk/callflow/configure.in ============================================================================== --- (empty file) +++ sofaswitch/trunk/callflow/configure.in Thu Sep 7 23:29:08 2006 @@ -0,0 +1,79 @@ +dnl Process this file with autoconf to produce a configure script. + +dnl --------------------------------------------------------------------------- +dnl Name: configure.in +dnl Purpose: Create configure for callflow sample project +dnl Author: Linus McCabe +dnl Created: 2004-09-17 +dnl RCS-ID: $Id$ +dnl Copyright: (c) 2004 Linus McCabe <linus@mccabe.nu> +dnl Licence: The wxWidgets License +dnl --------------------------------------------------------------------------- + +dnl generic init +AC_INIT(src/callflow.cpp) +dnl AM_CONFIG_HEADER(config.h:config.h.in) +AM_INIT_AUTOMAKE(callflow, 0.0.1) +dnl AC_PROG_MAKE_SET +dnl AC_ARG_PROGRAM +dnl AC_PROG_INSTALL +AC_PROG_LIBTOOL + +dnl check for programs we use +AC_PROG_CXX + +AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin ) +if [[ "$WX_CONFIG" = "no" ]] ; then + AC_MSG_ERROR("Could not find wx-config: is wxWindows installed? is wx-config in your path?") +fi + +WXCONFIG=wx-config +AC_ARG_WITH(wx-config, +[[ --with-wx-config=FILE Use the given path to wx-config when determining + wxWidgets configuration; defaults to "wx-config"]], +[ + if test "$withval" != "yes" -a "$withval" != ""; then + WXCONFIG=$withval + fi +]) +AC_MSG_CHECKING([wxWidgets version]) +if wxversion=`$WXCONFIG --version`; then + AC_MSG_RESULT([$wxversion]) +else + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([wxWidgets is required. Try --with-wx-config.]) +fi + +WX_CPPFLAGS="`$WXCONFIG --cppflags`" +WX_CXXFLAGS="`$WXCONFIG --cxxflags | sed -e 's/-fno-exceptions//'`" +WX_LIBS="`$WXCONFIG --libs`" + +CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" +CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS" + +AC_SUBST(WX_LIBS) + +AC_ARG_ENABLE(debug, +[ --enable-debug, Enable debug build], +[ + debugbuild="y" + CXXFLAGS="${CXXFLAGS} -ggdb" +]) + +dnl that's all, folks +AC_OUTPUT([ + Makefile + src/Makefile + ]) + +dnl Summarized output +echo +echo "***************************************" +echo + +if [[ "$debugbuild" = "y" ]]; then +echo "Debug Enabled" +else +echo "Debug Disabled" +fi +