File: configure.ac

package info (click to toggle)
muddleftpd 1.3.13.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,340 kB
  • ctags: 2,404
  • sloc: ansic: 16,327; python: 642; makefile: 345; sh: 241
file content (48 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_PREREQ(2.54)

AC_CONFIG_SRCDIR([authmsql.c])
AC_CONFIG_HEADER(config.h)

dnl Checks for programs.
AC_PROG_CC

dnl Checks for libraries.

dnl Checks for header files.
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_STRUCT_TM

dnl Checks for library functions.
AC_HEADER_STDC

dnl Check functions
AC_CHECK_FUNCS(memmove)

AC_ARG_WITH(msqlpath, AC_HELP_STRING([--with-msqlpath], [specify the top level of the msql installation tree.  (default is /usr/local/Hughes)]), 
	msqltop=$withval, msqltop=/usr/local/Hughes
)

AC_MSG_CHECKING([for msql in directory $msqltop])

if test "X$msqltop" = "X"
then
	AC_MSG_RESULT([no])
	AC_MSG_ERROR([msql directory not specified])
fi

if test -d $msqltop
then
	AC_MSG_RESULT([yes])
	CFLAGS="$CFLAGS -I$msqltop/include"
	LIBS="$LIBS $msqltop/lib/libmsql.a"
else
	AC_MSG_RESULT([no])
	AC_MSG_ERROR([msql directory not found!])
fi

AC_CONFIG_FILES([Makefile])
AC_OUTPUT