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.
 
 
 
 

73 lines
1.6 KiB

AC_INIT([README])
PACKAGENAME=proxyface
MAJOR=1
MINOR=0
LEAST=0
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])
AC_CONFIG_FILES([makefile proxyface/makefile])
# 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)
case $host in
*darwin*)
PROXYLIB="-lproxy"
;;
*mingw*|*win*)
PROXYLIB="-lwinhttp"
;;
*)
PROXYLIB="-lproxy"
;;
esac
AC_SUBST(PROXYLIB)
# Qt Environment
CPPFLAGS+=" -DUNICODE -DQT_NO_DEBUG"
CPPFLAGS+=" -DQT_GUI_LIB -DQT_NETWORK_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
AC_MSG_ERROR([Qt Headers not found])
fi
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_OUTPUT