|
|
@ -73,7 +73,8 @@ AC_SUBST_FILE(README) |
|
|
|
CHANGE_LOG=ChangeLog |
|
|
|
CHANGE_LOG=ChangeLog |
|
|
|
AC_SUBST_FILE(CHANGE_LOG) |
|
|
|
AC_SUBST_FILE(CHANGE_LOG) |
|
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS="-DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"'" |
|
|
|
LIBS="${LIBS}" |
|
|
|
|
|
|
|
CPPFLAGS="${CPPFLAGS} -DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"'" |
|
|
|
|
|
|
|
|
|
|
|
# Get rid of that stupid -O2 -g opions! |
|
|
|
# Get rid of that stupid -O2 -g opions! |
|
|
|
CXXFLAGS="${CXXFLAGS:-}" |
|
|
|
CXXFLAGS="${CXXFLAGS:-}" |
|
|
@ -93,6 +94,18 @@ AC_CHECK_PROG(have_dot, dot, yes, no) |
|
|
|
PKG_PROG_PKG_CONFIG |
|
|
|
PKG_PROG_PKG_CONFIG |
|
|
|
|
|
|
|
|
|
|
|
# libraries |
|
|
|
# libraries |
|
|
|
|
|
|
|
case $host in |
|
|
|
|
|
|
|
(*mingw*|*win*) |
|
|
|
|
|
|
|
LIBS+=" -lwinhttp" |
|
|
|
|
|
|
|
CXXFLAGS+=" -DQ_OS_WIN32" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
(*) |
|
|
|
|
|
|
|
PKG_CHECK_MODULES([PROXY], [libproxy-1.0], |
|
|
|
|
|
|
|
[LIBS+=" ${PROXY_LIBS}" |
|
|
|
|
|
|
|
CXXFLAGS+=" ${PROXY_CFLAGS}" |
|
|
|
|
|
|
|
have_proxy=1]) |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets QtNetwork], |
|
|
|
PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets QtNetwork], |
|
|
|
[AC_DEFINE([HAVE_QT]) |
|
|
|
[AC_DEFINE([HAVE_QT]) |
|
|
|
UIC=${UIC:-$(pkg-config --variable=uic_location Qt5Core)} |
|
|
|
UIC=${UIC:-$(pkg-config --variable=uic_location Qt5Core)} |
|
|
@ -100,6 +113,8 @@ PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets QtNetwork], |
|
|
|
RCC=${RCC:-$(pkg-config --variable=rcc_location Qt5Core)} |
|
|
|
RCC=${RCC:-$(pkg-config --variable=rcc_location Qt5Core)} |
|
|
|
LUPDATE=${LUPDATE:-$(pkg-config --variable=lupdate_location Qt5Core)} |
|
|
|
LUPDATE=${LUPDATE:-$(pkg-config --variable=lupdate_location Qt5Core)} |
|
|
|
LRELEASE=${LRELEASE:-$(pkg-config --variable=lrelease_location Qt5Core)} |
|
|
|
LRELEASE=${LRELEASE:-$(pkg-config --variable=lrelease_location Qt5Core)} |
|
|
|
|
|
|
|
CXXFLAGS+=" -DQT_NETWORK_LIB ${QT_CFLAGS}" |
|
|
|
|
|
|
|
LIBS+=" ${QT_LIBS}" |
|
|
|
have_qt=1], |
|
|
|
have_qt=1], |
|
|
|
[PKG_CHECK_MODULES([QT], [QtCore QtGui QtNetwork], |
|
|
|
[PKG_CHECK_MODULES([QT], [QtCore QtGui QtNetwork], |
|
|
|
[AC_DEFINE([HAVE_QT]) |
|
|
|
[AC_DEFINE([HAVE_QT]) |
|
|
@ -108,6 +123,8 @@ PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets QtNetwork], |
|
|
|
RCC=${RCC:-$(pkg-config --variable=rcc_location QtCore)} |
|
|
|
RCC=${RCC:-$(pkg-config --variable=rcc_location QtCore)} |
|
|
|
LUPDATE=${LUPDATE:-$(pkg-config --variable=lupdate_location QtCore)} |
|
|
|
LUPDATE=${LUPDATE:-$(pkg-config --variable=lupdate_location QtCore)} |
|
|
|
LRELEASE=${LRELEASE:-$(pkg-config --variable=lrelease_location QtCore)} |
|
|
|
LRELEASE=${LRELEASE:-$(pkg-config --variable=lrelease_location QtCore)} |
|
|
|
|
|
|
|
CXXFLAGS+=" -DQT_NETWORK_LIB ${QT_CFLAGS}" |
|
|
|
|
|
|
|
LIBS+=" ${QT_LIBS}" |
|
|
|
have_qt=1], |
|
|
|
have_qt=1], |
|
|
|
[have_qt=0])]) |
|
|
|
[have_qt=0])]) |
|
|
|
AM_CONDITIONAL(HAVE_QT, test "$have_qt" = "1") |
|
|
|
AM_CONDITIONAL(HAVE_QT, test "$have_qt" = "1") |
|
|
@ -116,12 +133,13 @@ AC_SUBST(MOC) |
|
|
|
AC_SUBST(RCC) |
|
|
|
AC_SUBST(RCC) |
|
|
|
AC_SUBST(LUPDATE) |
|
|
|
AC_SUBST(LUPDATE) |
|
|
|
AC_SUBST(LRELEASE) |
|
|
|
AC_SUBST(LRELEASE) |
|
|
|
|
|
|
|
AC_ARG_VAR(LUPDATE_ARGS, [arguments for qt lupdate command, e.g. -no-obsolete]) |
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pedantic, |
|
|
|
AC_ARG_ENABLE(pedantic, |
|
|
|
[AS_HELP_STRING([--enable-pedantic], |
|
|
|
[AS_HELP_STRING([--enable-pedantic], |
|
|
|
[enable all warnings and checks, abort on warnings])], |
|
|
|
[enable all warnings and checks, abort on warnings])], |
|
|
|
[have_pedantic="$enableval"; test "$enableval" = "yes" && \ |
|
|
|
[have_pedantic="$enableval"; test "$enableval" = "yes" && \ |
|
|
|
AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) |
|
|
|
CXXFLAGS+=" -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) |
|
|
|
dnl problem in libs: -Wshadow -Wcast-qual |
|
|
|
dnl problem in libs: -Wshadow -Wcast-qual |
|
|
|
dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) |
|
|
|
dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) |
|
|
|
AM_CONDITIONAL(PEDANTIC, test "$enableval" = "yes") |
|
|
|
AM_CONDITIONAL(PEDANTIC, test "$enableval" = "yes") |
|
|
@ -157,9 +175,6 @@ AC_SUBST(DOC_DIR) |
|
|
|
AC_SUBST(HAVE_DOT) |
|
|
|
AC_SUBST(HAVE_DOT) |
|
|
|
AC_SUBST(THREADS) |
|
|
|
AC_SUBST(THREADS) |
|
|
|
AC_SUBST(PACKAGENAME) |
|
|
|
AC_SUBST(PACKAGENAME) |
|
|
|
AC_SUBST(AM_CXXFLAGS) |
|
|
|
|
|
|
|
AC_SUBST(AM_CPPFLAGS) |
|
|
|
|
|
|
|
AC_SUBST(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# create output |
|
|
|
# create output |
|
|
|
AC_OUTPUT |
|
|
|
AC_OUTPUT |
|
|
|