configure.in

Thu, 06 Aug 2009 13:04:50 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 06 Aug 2009 13:04:50 +0200
changeset 14
1c58588f9cb6
parent 12
ceb4ba3d2d00
permissions
-rw-r--r--

Correct cursor method signatures and explicitly require XML linkage.

michael@1 1 ##
michael@1 2 ## OSSP asgui - Accounting system graphical user interface
michael@12 3 ## Copyright (c) 2002-2009 The OSSP Project (http://www.ossp.org/)
michael@12 4 ## Copyright (c) 2002-2009 Ralf S. Engelschall <rse@engelschall.com>
michael@12 5 ## Copyright (c) 2002-2009 Michael Schloh von Bennewitz <michael@schloh.com>
michael@12 6 ## Copyright (c) 2002-2009 Cable & Wireless Telecommunications Services GmbH
michael@1 7 ##
michael@1 8 ## This file is part of OSSP asgui, an accounting system graphical user
michael@3 9 ## interface which can be found at http://asgui.europalab.com/.
michael@1 10 ##
michael@1 11 ## Permission to use, copy, modify, and distribute this software for
michael@1 12 ## any purpose with or without fee is hereby granted, provided that
michael@1 13 ## the above copyright notice and this permission notice appear in all
michael@1 14 ## copies.
michael@1 15 ##
michael@1 16 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@1 17 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@1 18 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@1 19 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@1 20 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@1 21 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@1 22 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@1 23 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@1 24 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@1 25 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@1 26 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@1 27 ## SUCH DAMAGE.
michael@1 28 ##
michael@1 29 ## configure.in: Autoconf configure template
michael@1 30 ##
michael@1 31
michael@1 32 dnl Version requirement and information
michael@1 33 AC_PREREQ(2.53)
michael@1 34 AC_REVISION(1.0)
michael@1 35 AC_INIT
michael@1 36
michael@1 37 ASGUI_VERSION_STR=`./shtool version -l c -d long as_version.cpp`
michael@1 38 ./shtool echo -e "Configuring %BOSSP as-gui%b, version %B${ASGUI_VERSION_STR}%b"
michael@1 39 AC_SUBST(ASGUI_VERSION_STR)
michael@1 40
michael@1 41 dnl Process this file with autoconf
michael@1 42 AC_CONFIG_HEADERS(ac_config.h)
michael@1 43 AC_LANG_CPLUSPLUS
michael@1 44
michael@1 45 dnl Checks basic requirements
michael@1 46 AC_PROG_CXX
michael@1 47 AC_PROG_CXXCPP
michael@1 48 AC_PROG_INSTALL
michael@1 49
michael@1 50 AC_PROG_CC
michael@1 51 AC_PROG_CPP
michael@1 52 AC_PROG_CC_STDC
michael@1 53
michael@1 54 dnl Checks header requirements
michael@1 55 AC_HEADER_STDC
michael@1 56 AC_HEADER_TIME
michael@1 57 AC_CHECK_HEADERS(sys/sockio.h net/if.h netinet/in.h)
michael@1 58
michael@1 59 dnl Portable thread conf from acx_pthread.m4 autoconf macro
michael@1 60 ACX_PTHREAD
michael@1 61 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
michael@1 62 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
michael@1 63 LIBS="`echo $PTHREAD_CFLAGS | sed -e 's;.*\(-[[pmk]]thread[[s]]*\).*;\1;'` $LIBS"
michael@1 64
michael@1 65 dnl Do Qt checks
michael@14 66 PKG_CHECK_MODULES(QT, Qt3Support QtXml, have_qt=true, AC_MSG_ERROR([No qt installation found]))
michael@1 67 AC_SUBST(QT_LIBS)
michael@1 68 AC_SUBST(QT_CFLAGS)
michael@1 69
michael@1 70 dnl Find Qt locations
michael@1 71 AC_CHECK_QT
michael@1 72 AC_SUBST(QTBASE)
michael@1 73 AC_CHECK_UIC
michael@1 74 AC_SUBST(UIC)
michael@1 75 AC_CHECK_MOC
michael@1 76 AC_SUBST(MOC)
michael@1 77
michael@1 78 dnl Check generic libraries
michael@1 79 AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl"])
michael@1 80 AC_CHECK_LIB(rt, sched_get_priority_min, [LIBS="$LIBS -lrt"])
michael@1 81
michael@1 82 dnl Check other requirements
michael@1 83 AC_PROG_MAKE_SET
michael@1 84 AC_CHECK_DEBUGGING
michael@1 85
michael@1 86 dnl Check low level network device necessities
michael@1 87 # AC_CHECK_SIOCGIFHWADDR
michael@1 88 # AC_CHECK_SIOGHWADDR
michael@1 89 # AC_CHECK_SIOCGIFCONF
michael@1 90 # AC_CHECK_SIOCGENADDR
michael@1 91 # AC_STRUCT_SA_LEN
michael@1 92
michael@1 93 dnl Check for Dmalloc library
michael@1 94 AC_CHECK_EXTLIB([Dmalloc],
michael@1 95 dmalloc, dmalloc_debug, dmalloc.h,
michael@1 96 [AC_DEFINE(WITH_DMALLOC, 1, [Define to 1 if building with Dmalloc])])
michael@1 97
michael@1 98 dnl Test for the local CORBA implementation
michael@1 99 AC_TEST_MICO
michael@1 100 AC_SUBST(CORBABASE)
michael@1 101
michael@1 102 dnl Test for the local SOAP implementation
michael@1 103 AC_TEST_ESOAP
michael@1 104 AC_SUBST(SOAPBASE)
michael@1 105
michael@1 106 dnl Check data type sizes of particular architecture
michael@1 107 dnl Hack: We're really interested in the unsigned types,
michael@1 108 dnl but they're the same size according to ISO C++
michael@1 109 AC_CHECK_SIZEOF(char)
michael@1 110 AC_CHECK_SIZEOF(short)
michael@1 111 AC_CHECK_SIZEOF(int)
michael@1 112 AC_CHECK_SIZEOF(long)
michael@1 113
michael@1 114 enable_shared=no
michael@1 115 export enable_shared
michael@1 116 enable_headline=no
michael@1 117 export enable_headline
michael@1 118
michael@1 119 dnl Make all the necessary Makefiles
michael@1 120 AC_OUTPUT(Makefile)

mercurial