Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Sat Dec 10 11:55:02 2005 UTC (18 years, 3 months ago) by orrisroot
Branch: MAIN
CVS Tags: AL_PORTING, REL20051226, REL20060323, tag20060615, tag20070307current, tag20061130, merge_to_20060605, tag20070307, REL20060213, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.6: +2 -2 lines
- updated autotools versions.
   autoconf -> 2.59
   automake -> 1.9.6
   libtool  -> 1.5.20
- fixed help messages and indents for './configure --help'.
- fixed extra files list for 'make dist'
- added COPYING file

1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.59])
5 AC_REVISION($Id: configure.in,v 1.6 2005/10/05 08:12:46 orrisroot Exp $)
6
7 AC_INIT([xnpal], [1.0.0], [software@ni.brain.riken.jp])
8
9 AC_CONFIG_SRCDIR([account.cc])
10 AM_CONFIG_HEADER([config.h])
11 AC_CONFIG_AUX_DIR(config)
12 AC_CANONICAL_TARGET
13 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
14
15
16 AM_MAINTAINER_MODE
17
18 # Checks for programs.
19 AM_DISABLE_STATIC
20 AC_PROG_CXX
21 AC_PROG_CC
22 AC_PROG_CPP
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25 AC_PROG_MAKE_SET
26 AC_PROG_RANLIB
27 AC_LIBTOOL_DLOPEN
28 AC_PROG_LIBTOOL
29
30 AM_XNI_PATH_XML2([2.6.17])
31 AM_PATH_IODBC([3.0.6])
32 AM_PATH_UNIXODBC([2.2.9])
33 AM_PATH_ZLIB
34 AM_PATH_OPENSSL
35 AM_PATH_PHP([4.3.2])
36
37 ODBC_CFLAGS=""
38 ODBC_LIBS=""
39 if test x"$UNIXODBC_LIBS" = x ; then
40 if test x"$IODBC_LIBS" = x ; then
41 AC_MSG_ERROR([odbc library required but not found])
42 else
43 ODBC_CFLAGS="$IODBC_CFLAGS"
44 ODBC_LIBS="$IODBC_LIBS"
45 fi
46 else
47 ODBC_CFLAGS="$UNIXODBC_CFLAGS"
48 ODBC_LIBS="$UNIXODBC_LIBS"
49 fi
50
51 XNPAL_CFLAGS="$XML_CPPFLAGS $ODBC_CFLAGS $ZLIB_CFLAGS $OPENSSL_CFLAGS"
52 XNPAL_LIBADD="$XML_LIBS $ODBC_LIBS $ZLIB_LIBS $OPENSSL_LIBS"
53
54 AC_SUBST([XNPAL_CFLAGS])
55 AC_SUBST([XNPAL_LIBADD])
56
57 dnl check where to log
58 AC_MSG_CHECKING(if logging to syslog wanted)
59 AC_ARG_ENABLE(syslog, AC_HELP_STRING([--enable-syslog], [Enable logging to syslog]), syslog=yes)
60 if test x-$syslog = "x-yes"; then
61 AC_MSG_RESULT(yes)
62 AC_DEFINE(USE_SYSLOG,,[logging to syslog enabled])
63 else
64 AC_MSG_RESULT(no)
65 fi
66 AC_SUBST(USE_SYSLOG)
67
68 # Checks for header files.
69 AC_HEADER_STDC
70 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h syslog.h unistd.h utime.h])
71
72 # Checks for typedefs, structures, and compiler characteristics.
73 AC_C_CONST
74 AC_TYPE_SIZE_T
75 AC_STRUCT_TM
76 AC_CHECK_TYPE(time_t, long)
77
78 # Checks for library functions.
79 AC_FUNC_MALLOC
80 AC_FUNC_STAT
81 AC_FUNC_STRTOD
82 AC_CHECK_FUNCS([memset strchr strncasecmp])
83
84 AC_CONFIG_FILES([Makefile xnpal-config])
85 AC_OUTPUT

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26