Implements a Proxy detection (WPAD) interface for Linux, Mac OSX and Windows. Offers a GUI for manual proxy settings and automatic WPAD detection. The GUI is based on QT.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

86 lines
2.2 KiB

# $Id$
AC_INIT([README])
PACKAGENAME=proxyface
MAJOR=1
MINOR=0
LEAST='$Revision$'
LEAST=${LEAST#* }
LEAST=${LEAST% *}
AC_MSG_WARN(LEAST=$LEAST)
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])
AC_CONFIG_FILES([makefile proxyface/makefile
proxyface/libproxyface.pc debian/changelog])
# programs
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
# libtool versioning
LIB_MAJOR=$(($MAJOR+$MINOR))
LIB_MINOR=$LEAST
LIB_LEAST=$MINOR
LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}"
AC_SUBST(LIB_VERSION)
AC_SUBST(PACKAGENAME)
AC_SUBST(MAJOR)
AC_SUBST(MINOR)
AC_SUBST(LEAST)
# Qt Environment
CPPFLAGS+=" -DUNICODE -DQT_NO_DEBUG"
CPPFLAGS+=" -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -DQT_CORE_LIB"
AC_CHECK_HEADER(QtCore/QString, [found="yes"], [found="no"])
if test "$found" == "no"; then
AC_MSG_CHECKING([looking for qt headers])
for file in /usr/include/qt4 /usr/local/include/qt4 /opt/include/qt4 \
/opt/local/include/qt4 /opt/local/libexec/qt4-mac/include \
/usr/include /usr/local/include \
/opt/include /opt/local/include; do
if test -d ${file}/QtCore; then
CPPFLAGS+=" -I$file"
found=$file
break;
fi
done
AC_MSG_RESULT([$found])
fi
if test "$found" == "no"; then
case $host in
*darwin*)
PROXYLIB="-lproxy"
;;
*mingw*|*win*)
PROXYLIB="-lwinhttp"
;;
*)
PROXYLIB="-lproxy"
;;
esac
AC_SUBST(PROXYLIB)
AC_MSG_WARN([Qt Headers not found])
else
AC_CHECK_PROGS([MOC], [moc-qt4 moc-mac moc])
test -n "$MOC" || AC_MSG_ERROR([moc for Qt 4 not found!])
AC_SUBST(MOC)
AC_CHECK_PROGS([UIC], [uic-qt4 uic-mac uic])
test -n "$UIC" || AC_MSG_ERROR([uic for Qt 4 not found!])
AC_SUBST(UIC)
AC_CHECK_PROGS([LRELEASE], [lrelease-qt4 lrelease-mac lrelease])
test -n "$LRELEASE" || AC_MSG_ERROR([lrelease for Qt 4 not found!])
AC_SUBST(LRELEASE)
AC_CHECK_PROGS([LUPDATE], [lupdate-qt4 lupdate-mac lupdate])
test -n "$LUPDATE" || AC_MSG_ERROR([lupdate for Qt 4 not found!])
AC_SUBST(LUPDATE)
AC_ARG_VAR(LUPDATE_ARGS, [arguments for qt lupdate command, e.g. -no-obsolete])
fi
AC_OUTPUT