2002-08-02 23:57:46 +04:00
|
|
|
dnl synergy -- mouse and keyboard sharing utility
|
|
|
|
dnl Copyright (C) 2002 Chris Schoeneman
|
|
|
|
dnl
|
|
|
|
dnl This package is free software; you can redistribute it and/or
|
|
|
|
dnl modify it under the terms of the GNU General Public License
|
|
|
|
dnl found in the file COPYING that should have accompanied this file.
|
|
|
|
dnl
|
|
|
|
dnl This package is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
dnl GNU General Public License for more details.
|
|
|
|
|
2002-06-18 23:44:34 +04:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2002-08-01 15:45:21 +04:00
|
|
|
dnl initialize
|
2003-01-05 01:01:32 +03:00
|
|
|
AC_INIT(lib/common/common.h)
|
2002-06-19 12:23:08 +04:00
|
|
|
AC_CONFIG_AUX_DIR(config)
|
2002-08-01 15:45:21 +04:00
|
|
|
|
|
|
|
dnl current version
|
2003-01-18 19:21:36 +03:00
|
|
|
MAJOR_VERSION=1
|
|
|
|
MINOR_VERSION=0
|
2003-04-13 18:38:40 +04:00
|
|
|
RELEASE_VERSION=7
|
2002-08-01 15:45:21 +04:00
|
|
|
|
|
|
|
dnl initialize automake
|
|
|
|
AM_INIT_AUTOMAKE(synergy, $MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2002-06-18 23:44:34 +04:00
|
|
|
|
|
|
|
dnl information on the package
|
|
|
|
|
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_RANLIB
|
2002-12-22 17:51:41 +03:00
|
|
|
AC_CHECK_PROG(HAVE_DOT, dot, YES, NO)
|
2002-06-18 23:44:34 +04:00
|
|
|
|
2002-09-01 14:31:10 +04:00
|
|
|
dnl do checks using C++
|
2002-09-01 20:43:47 +04:00
|
|
|
AC_LANG_CPLUSPLUS
|
2002-09-01 14:31:10 +04:00
|
|
|
|
2002-12-25 13:35:59 +03:00
|
|
|
dnl our files end in .cpp not .C so tests should also end in .cpp
|
|
|
|
ac_ext=cpp
|
|
|
|
|
|
|
|
dnl check compiler
|
|
|
|
ACX_CHECK_CXX
|
|
|
|
|
2002-10-29 01:49:21 +03:00
|
|
|
dnl checks for libraries
|
|
|
|
ACX_PTHREAD(,AC_MSG_ERROR(You must have pthreads to compile synergy))
|
|
|
|
ACX_CHECK_NANOSLEEP
|
2002-12-25 13:35:59 +03:00
|
|
|
ACX_CHECK_INET_ATON
|
2002-10-29 01:49:21 +03:00
|
|
|
|
2002-06-18 23:44:34 +04:00
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
2003-01-12 00:06:21 +03:00
|
|
|
AC_CHECK_HEADERS([unistd.h sys/time.h sys/types.h wchar.h])
|
2002-12-25 13:35:59 +03:00
|
|
|
AC_CHECK_HEADERS([sys/socket.h sys/select.h])
|
2002-09-01 14:31:10 +04:00
|
|
|
AC_CHECK_HEADERS([istream ostream sstream])
|
2002-06-19 16:21:26 +04:00
|
|
|
AC_HEADER_TIME
|
2002-06-18 23:44:34 +04:00
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
2002-11-03 21:09:28 +03:00
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
|
2002-06-19 15:23:49 +04:00
|
|
|
AC_CHECK_HEADERS([X11/extensions/XTest.h])
|
2003-04-15 02:15:56 +04:00
|
|
|
|
|
|
|
AC_CHECK_LIB(Xinerama, XineramaQueryExtension, AC_CHECK_HEADERS([X11/extensions/Xinerama.h]) [X_LIBS="$X_LIBS -lXinerama"], , [$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
|
2002-11-03 21:09:28 +03:00
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
2002-06-18 23:44:34 +04:00
|
|
|
|
|
|
|
dnl checks for types
|
2002-09-01 14:31:10 +04:00
|
|
|
AC_TYPE_SIZE_T
|
2002-12-25 13:35:59 +03:00
|
|
|
ACX_CHECK_SOCKLEN_T
|
2002-06-18 23:44:34 +04:00
|
|
|
|
|
|
|
dnl checks for structures
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
dnl checks for compiler characteristics
|
2002-06-19 15:23:49 +04:00
|
|
|
AC_CHECK_SIZEOF(char, 1)
|
|
|
|
AC_CHECK_SIZEOF(short, 2)
|
|
|
|
AC_CHECK_SIZEOF(int, 2)
|
|
|
|
AC_CHECK_SIZEOF(long, 4)
|
2002-09-01 14:31:10 +04:00
|
|
|
ACX_CHECK_CXX_BOOL(,AC_MSG_ERROR(Your compiler must support bool to compile synergy))
|
|
|
|
ACX_CHECK_CXX_EXCEPTIONS(,AC_MSG_ERROR(Your compiler must support exceptions to compile synergy))
|
|
|
|
ACX_CHECK_CXX_CASTS(,AC_MSG_ERROR(Your compiler must support C++ casts to compile synergy))
|
|
|
|
ACX_CHECK_CXX_MUTABLE(,AC_MSG_ERROR(Your compiler must support mutable to compile synergy))
|
|
|
|
ACX_CHECK_CXX_STDLIB(,AC_MSG_ERROR(Your compiler must support the C++ standard library to compile synergy))
|
2002-06-18 23:44:34 +04:00
|
|
|
|
|
|
|
dnl checks for library functions
|
|
|
|
dnl AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_STRFTIME
|
2002-06-19 15:58:48 +04:00
|
|
|
AC_CHECK_FUNCS(gmtime_r)
|
2002-11-03 21:09:28 +03:00
|
|
|
ACX_CHECK_GETPWUID_R
|
2002-08-01 15:45:21 +04:00
|
|
|
AC_CHECK_FUNCS(vsnprintf)
|
2002-10-23 02:35:13 +04:00
|
|
|
AC_CHECK_FUNCS(wcrtomb mbrtowc mbsinit)
|
2002-10-17 02:01:50 +04:00
|
|
|
AC_FUNC_SELECT_ARGTYPES
|
|
|
|
ACX_CHECK_POLL
|
2002-06-18 23:44:34 +04:00
|
|
|
dnl use AC_REPLACE_FUNCS() for stuff in string.h
|
|
|
|
|
|
|
|
dnl checks for system services
|
|
|
|
|
|
|
|
|
|
|
|
dnl adjust variables for X11 and pthreads
|
2002-12-25 13:35:59 +03:00
|
|
|
CXXFLAGS="$CXXFLAGS $SYNERGY_CXXFLAGS $X_CFLAGS $PTHREAD_CFLAGS"
|
|
|
|
LIBS="$NANOSLEEP_LIBS $INET_ATON_LIBS $PTHREAD_LIBS $LIBS"
|
2002-06-18 23:44:34 +04:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2002-07-30 20:52:46 +04:00
|
|
|
lib/Makefile
|
2003-01-05 01:01:32 +03:00
|
|
|
lib/arch/Makefile
|
2002-07-30 20:52:46 +04:00
|
|
|
lib/base/Makefile
|
2003-01-05 01:01:32 +03:00
|
|
|
lib/common/Makefile
|
2002-07-30 20:52:46 +04:00
|
|
|
lib/mt/Makefile
|
|
|
|
lib/io/Makefile
|
|
|
|
lib/http/Makefile
|
|
|
|
lib/net/Makefile
|
|
|
|
lib/synergy/Makefile
|
|
|
|
lib/platform/Makefile
|
|
|
|
lib/client/Makefile
|
|
|
|
lib/server/Makefile
|
|
|
|
cmd/Makefile
|
2002-08-11 15:49:36 +04:00
|
|
|
cmd/launcher/Makefile
|
2002-08-12 02:43:07 +04:00
|
|
|
cmd/synergyc/Makefile
|
|
|
|
cmd/synergys/Makefile
|
2002-08-01 22:56:54 +04:00
|
|
|
dist/Makefile
|
|
|
|
dist/rpm/Makefile
|
|
|
|
dist/rpm/synergy.spec
|
2002-08-02 21:57:54 +04:00
|
|
|
doc/doxygen.cfg
|
2002-06-18 23:44:34 +04:00
|
|
|
])
|