summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-08-18 15:41:17 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-08-18 15:41:17 +0400
commit56a7c644e777377dcfb9e543ecd8bb2fdc93eaf3 (patch)
tree4e46beb10c6a644f91e3203851f8e75f63f57094
parent10c1e8877df2e17224ef09f73fffe6a5ac242e68 (diff)
downloadapt-56a7c644e777377dcfb9e543ecd8bb2fdc93eaf3.tar.gz
Fixed order in configure.ac
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index c51b2ef9..5ee6c60c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,12 +5,6 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
AC_CONFIG_HEADERS([config.h])
-AC_LANG_PUSH([C++])
-AC_CHECK_HEADER(gtest/gtest.h,,
- AC_MSG_ERROR([failed: I need gtest to build tests]),
-)
-AC_LANG_POP([C++])
-
__apt_macros_h="apt-pkg/contrib/macros.h"
ap_maj=`$AWK '/^\#define APT_PKG_MAJOR/ {print $3}' $srcdir/$__apt_macros_h`
ap_min=`$AWK '/^\#define APT_PKG_MINOR/ {print $3}' $srcdir/$__apt_macros_h`
@@ -57,6 +51,12 @@ AC_SEARCH_LIBS([connect], [socket])
AC_SEARCH_LIBS([pthread_create], [pthread])
AC_SEARCH_LIBS([openpty], [util libutil])
+AC_LANG_PUSH([C++])
+AC_CHECK_HEADER(gtest/gtest.h,,
+ AC_MSG_ERROR([failed: I need gtest to build tests]),
+)
+AC_LANG_POP([C++])
+
have_curl="no"
AC_CHECK_HEADER([curl/curl.h],
[ AC_CHECK_LIB([curl], [curl_easy_init], [have_curl="yes"]) ],