forked from premiere/premiere-libtorrent
get rid of some duplicated flags during build and in pkg-config
This commit is contained in:
parent
426e653213
commit
c23fda2e2a
|
@ -36,6 +36,8 @@ INTERFACE_VERSION_INFO=$VERSION_INFO_CURRENT:$VERSION_INFO_REVISION:$VERSION_INF
|
||||||
AC_SUBST(INTERFACE_VERSION_INFO)
|
AC_SUBST(INTERFACE_VERSION_INFO)
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
if test -z "$(which $CC)"; then
|
if test -z "$(which $CC)"; then
|
||||||
|
@ -59,10 +61,6 @@ AC_SYS_LARGEFILE
|
||||||
|
|
||||||
dnl Check for pthreads.
|
dnl Check for pthreads.
|
||||||
ACX_PTHREAD
|
ACX_PTHREAD
|
||||||
dnl Apply pthread config.
|
|
||||||
CC=$PTHREAD_CC
|
|
||||||
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
|
|
||||||
LIBS="$LIBS $PTHREAD_LIBS"
|
|
||||||
|
|
||||||
AM_CONDITIONAL([ENABLE_SHIPPED_ASIO], false)
|
AM_CONDITIONAL([ENABLE_SHIPPED_ASIO], false)
|
||||||
|
|
||||||
|
@ -297,7 +295,7 @@ if [[ "$zlib" = "shipped" ]]; then
|
||||||
AM_CONDITIONAL([ENABLE_SHIPPED_ZLIB], true)
|
AM_CONDITIONAL([ENABLE_SHIPPED_ZLIB], true)
|
||||||
ZLIBINCL="-I\$(top_srcdir)/zlib"
|
ZLIBINCL="-I\$(top_srcdir)/zlib"
|
||||||
elif [[ "$zlib" = "system" ]]; then
|
elif [[ "$zlib" = "system" ]]; then
|
||||||
ZLIB="-lz"
|
ZLIB="" # AC_CHECK_LIB will add -lz to @LIBS@ automatically
|
||||||
AM_CONDITIONAL([ENABLE_SHIPPED_ZLIB], false)
|
AM_CONDITIONAL([ENABLE_SHIPPED_ZLIB], false)
|
||||||
ZLIBINCL=""
|
ZLIBINCL=""
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -12,6 +12,6 @@ Name: libtorrent-rasterbar
|
||||||
Description: Bittorrent library.
|
Description: Bittorrent library.
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Libs: -L${libdir} -ltorrent-rasterbar
|
Libs: -L${libdir} -ltorrent-rasterbar
|
||||||
Libs.private: @LIBS@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @PTHREAD_LIBS@ @SSL_LIBS@ @BOOST_SYSTEM_LIB@ @SSL_LDFLAGS@
|
Libs.private: @LIBS@ @BOOST_SYSTEM_LIB@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @PTHREAD_LIBS@ @SSL_LIBS@ @ZLIB@
|
||||||
Cflags: -I${includedir} -I${includedir}/libtorrent @COMPILETIME_OPTIONS@ @SSL_CXXFLAGS@
|
Cflags: -I${includedir} -I${includedir}/libtorrent @SSL_CXXFLAGS@ @COMPILETIME_OPTIONS@
|
||||||
|
|
||||||
|
|
|
@ -51,18 +51,14 @@ dnl [ AC_MSG_RESULT(yes)
|
||||||
ssldir="$dir"
|
ssldir="$dir"
|
||||||
if test -f "$dir/include/openssl/ssl.h"; then
|
if test -f "$dir/include/openssl/ssl.h"; then
|
||||||
found_ssl="yes";
|
found_ssl="yes";
|
||||||
SSL_CFLAGS="$CFLAGS -I$ssldir/include/openssl -DHAVE_SSL";
|
SSL_CFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
|
||||||
AC_SUBST(SSL_CFLAGS)
|
SSL_CXXFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
|
||||||
SSL_CXXFLAGS="$CXXFLAGS -I$ssldir/include/openssl -DHAVE_SSL";
|
|
||||||
AC_SUBST(SSL_CXXFLAGS)
|
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
if test -f "$dir/include/ssl.h"; then
|
if test -f "$dir/include/ssl.h"; then
|
||||||
found_ssl="yes";
|
found_ssl="yes";
|
||||||
SSL_CFLAGS="$CFLAGS -I$ssldir/include/ -DHAVE_SSL";
|
SSL_CFLAGS="-I$ssldir/include/ -DHAVE_SSL";
|
||||||
AC_SUBST(SSL_CFLAGS)
|
SSL_CXXFLAGS="-I$ssldir/include/ -DHAVE_SSL";
|
||||||
SSL_CXXFLAGS="$CXXFLAGS -I$ssldir/include/ -DHAVE_SSL";
|
|
||||||
AC_SUBST(SSL_CXXFLAGS)
|
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -70,12 +66,14 @@ dnl [ AC_MSG_RESULT(yes)
|
||||||
AC_MSG_ERROR(Cannot find ssl libraries)
|
AC_MSG_ERROR(Cannot find ssl libraries)
|
||||||
else
|
else
|
||||||
printf "OpenSSL found in $ssldir\n";
|
printf "OpenSSL found in $ssldir\n";
|
||||||
SSL_LIBS="$LIBS -lssl -lcrypto";
|
SSL_LIBS="-lssl -lcrypto";
|
||||||
AC_SUBST(SSL_LIBS)
|
SSL_LDFLAGS="-L$ssldir/lib";
|
||||||
SSL_LDFLAGS="$LDFLAGS -L$ssldir/lib";
|
|
||||||
AC_SUBST(SSL_LDFLAGS)
|
|
||||||
HAVE_SSL=yes
|
HAVE_SSL=yes
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(SSL_CFLAGS)
|
||||||
|
AC_SUBST(SSL_CXXFLAGS)
|
||||||
|
AC_SUBST(SSL_LIBS)
|
||||||
|
AC_SUBST(SSL_LDFLAGS)
|
||||||
AC_SUBST(HAVE_SSL)
|
AC_SUBST(HAVE_SSL)
|
||||||
dnl ],
|
dnl ],
|
||||||
dnl [
|
dnl [
|
||||||
|
|
Loading…
Reference in New Issue