Changed to work with automake etc.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@150 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
64a3b96892
commit
569dd18db1
58
configure.in
58
configure.in
|
@ -1,11 +1,6 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(font_6x11.h)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_INSTALL
|
||||
AC_INIT(src/zm.h)
|
||||
AM_INIT_AUTOMAKE(zm,1.0.0)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
# Ask user for path to libmysqlclient stuff:.
|
||||
AC_ARG_WITH(mysql,
|
||||
|
@ -21,33 +16,30 @@ MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include"
|
|||
AC_SUBST(MYSQL_LIBS)
|
||||
AC_SUBST(MYSQL_CFLAGS)
|
||||
|
||||
CFLAGS="$CFLAGS $MYSQL_CFLAGS"
|
||||
LIBS="$LIBS $MYSQL_LIBS"
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
dnl Checks for libraries.
|
||||
dnl Replace `main' with a function in -ldl:
|
||||
AC_CHECK_LIB(dl, dlsym)
|
||||
dnl Replace `main' with a function in -ljpeg:
|
||||
AC_CHECK_LIB(jpeg, jpeg_stdio_dest, AC_MSG_WARN(All ok), AC_MSG_ERROR(No libjpeg.a found))
|
||||
dnl Replace `main' with a function in -lmysqlclient:
|
||||
AC_CHECK_LIB(mysqlclient, mysql_init, , AC_MSG_ERROR([No libmysqlclient.a found]))
|
||||
dnl Replace `main' with a function in -lz:
|
||||
AC_CHECK_LIB(z, compress)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h syslog.h unistd.h)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_STRFTIME
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS(gettimeofday strerror)
|
||||
AC_CHECK_LIB(jpeg,jpeg_start_compress,,AC_MSG_ERROR(zm requires libjpeg.a))
|
||||
AC_CHECK_LIB(z,compress,,AC_MSG_ERROR(zm requires libz.a))
|
||||
AC_CHECK_LIB(dl,dlsym,,AC_MSG_ERROR(zm requires libdl.a))
|
||||
#AC_CHECK_LIB(mysqlclient,mysql_init,,AC_MSG_ERROR(zm requires libmysqlclient.a))
|
||||
|
||||
# Ask user for path to libmysqlclient stuff:.
|
||||
#AC_ARG_WITH(webdir,
|
||||
#[ --webdir=<path> prefix of web installation. e.g. /var/www/html or /www/vhtdocs/site],
|
||||
#[webdir=$webdir],
|
||||
#AC_MSG_ERROR([You must call configure with the --webdir option.
|
||||
#This tells configure where to put the web files.
|
||||
#e.g. --webdir=/var/www/html or --webdir=/www/vhtdocs/site])
|
||||
#)
|
||||
#AC_SUBST(webdir)
|
||||
AC_SUBST(bindir)
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile web/Makefile web/zmconfig.php scripts/Makefile scripts/zmdc.pl)
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
|
|
Loading…
Reference in New Issue