diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/configure.ac b/configure.ac index 45a4878f7..c16fbdcba 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -71,7 +71,7 @@ case "$host_os" in | |||
71 | AC_DEFINE_UNQUOTED(DARWIN,1,[This is an Apple Darwin system]) | 71 | AC_DEFINE_UNQUOTED(DARWIN,1,[This is an Apple Darwin system]) |
72 | CPPFLAGS="-D_APPLE_C_SOURCE $CPPFLAGS" | 72 | CPPFLAGS="-D_APPLE_C_SOURCE $CPPFLAGS" |
73 | CFLAGS="-fno-common $CFLAGS" | 73 | CFLAGS="-fno-common $CFLAGS" |
74 | AC_MSG_WARN([The VPN application cannot be compiled on your OS]) | 74 | AC_MSG_WARN([WARNING: The VPN application cannot be compiled on your OS]) |
75 | build_target="darwin" | 75 | build_target="darwin" |
76 | DEFAULT_INTERFACE="\"en0\"" | 76 | DEFAULT_INTERFACE="\"en0\"" |
77 | LIBPREFIX= | 77 | LIBPREFIX= |
@@ -522,7 +522,7 @@ then | |||
522 | AM_CONDITIONAL(HAVE_LIBCURL, false) | 522 | AM_CONDITIONAL(HAVE_LIBCURL, false) |
523 | if test "$gnurl" = 0 | 523 | if test "$gnurl" = 0 |
524 | then | 524 | then |
525 | AC_MSG_WARN([GNUnet requires libcurl-gnutls or gnurl >= 7.34]) | 525 | AC_MSG_WARN([ERROR: GNUnet requires libcurl-gnutls or gnurl >= 7.34]) |
526 | fi | 526 | fi |
527 | else | 527 | else |
528 | AM_CONDITIONAL(HAVE_LIBCURL, true) | 528 | AM_CONDITIONAL(HAVE_LIBCURL, true) |
@@ -542,19 +542,18 @@ AC_CHECK_MEMBERS(glp_iocp.presolve,,[gplk=false],[[#include <glpk.h>]]) | |||
542 | if test x$gplk = xfalse | 542 | if test x$gplk = xfalse |
543 | then | 543 | then |
544 | AM_CONDITIONAL(HAVE_LIBGLPK, false) | 544 | AM_CONDITIONAL(HAVE_LIBGLPK, false) |
545 | AC_MSG_WARN([GNUnet requires GLPK >= 4.32]) | 545 | AC_MSG_WARN([ERROR: GNUnet requires GLPK >= 4.32]) |
546 | else | 546 | else |
547 | AM_CONDITIONAL(HAVE_LIBGLPK, true) | 547 | AM_CONDITIONAL(HAVE_LIBGLPK, true) |
548 | AC_DEFINE([HAVE_LIBGLPK],[1],[Have GLPK]) | 548 | AC_DEFINE([HAVE_LIBGLPK],[1],[Have GLPK]) |
549 | fi | 549 | fi |
550 | 550 | ||
551 | 551 | ||
552 | |||
553 | AC_CHECK_HEADERS([nss.h],[nss=true],[nss=false]) | 552 | AC_CHECK_HEADERS([nss.h],[nss=true],[nss=false]) |
554 | if test x$nss = xfalse | 553 | if test x$nss = xfalse |
555 | then | 554 | then |
556 | AM_CONDITIONAL(HAVE_GLIBCNSS, false) | 555 | AM_CONDITIONAL(HAVE_GLIBCNSS, false) |
557 | AC_MSG_WARN([No GNU libc nss header, will not build NSS plugin]) | 556 | AC_MSG_WARN([ERROR: No GNU libc nss header, will not build NSS plugin]) |
558 | else | 557 | else |
559 | AM_CONDITIONAL(HAVE_GLIBCNSS, true) | 558 | AM_CONDITIONAL(HAVE_GLIBCNSS, true) |
560 | fi | 559 | fi |
@@ -1138,16 +1137,20 @@ AC_ARG_WITH(nssdir, | |||
1138 | esac | 1137 | esac |
1139 | ], | 1138 | ], |
1140 | [ | 1139 | [ |
1141 | if test "x$SUDO_BINARY" != "x" -o -w / | 1140 | # This test is inappropriate when installation with DESTDIR is |
1142 | then | 1141 | # run much later and uid will be root when needed. Enabling this |
1142 | # code breaks the gnunet.ebuild for gentoo. | ||
1143 | # | ||
1144 | # if test "x$SUDO_BINARY" != "x" -o -w / | ||
1145 | # then | ||
1143 | NSS_DIR="/lib" | 1146 | NSS_DIR="/lib" |
1144 | install_nss=1 | 1147 | install_nss=1 |
1145 | AC_MSG_RESULT([yes, to /lib]) | 1148 | AC_MSG_RESULT([yes, to /lib]) |
1146 | else | 1149 | # else |
1147 | NSS_DIR= | 1150 | # NSS_DIR= |
1148 | install_nss=0 | 1151 | # install_nss=0 |
1149 | AC_MSG_RESULT([no]) | 1152 | # AC_MSG_RESULT([no]) |
1150 | fi | 1153 | # fi |
1151 | ]) | 1154 | ]) |
1152 | AC_SUBST(NSS_DIR) | 1155 | AC_SUBST(NSS_DIR) |
1153 | AM_CONDITIONAL([INSTALL_NSS], [test "x$install_nss" != "x0"]) | 1156 | AM_CONDITIONAL([INSTALL_NSS], [test "x$install_nss" != "x0"]) |
@@ -1704,7 +1707,7 @@ AC_OUTPUT | |||
1704 | # warn user if mysql found but not used due to version | 1707 | # warn user if mysql found but not used due to version |
1705 | if test "$mysqlfail" = "true" | 1708 | if test "$mysqlfail" = "true" |
1706 | then | 1709 | then |
1707 | AC_MSG_NOTICE([NOTICE: MySQL found, but too old. MySQL support will not be compiled.]) | 1710 | AC_MSG_NOTICE([WARNING: MySQL found, but too old. MySQL support will not be compiled.]) |
1708 | fi | 1711 | fi |
1709 | 1712 | ||
1710 | # sqlite | 1713 | # sqlite |
@@ -1718,7 +1721,7 @@ if test "$gnurl" = "0" | |||
1718 | then | 1721 | then |
1719 | if test "x$curl" = "xfalse" | 1722 | if test "x$curl" = "xfalse" |
1720 | then | 1723 | then |
1721 | AC_MSG_NOTICE([NOTICE: libgnurl not found. http client support will not be compiled.]) | 1724 | AC_MSG_NOTICE([WARNING: libgnurl not found. http client support will not be compiled.]) |
1722 | AC_MSG_WARN([ERROR: libgnurl not found. hostlist daemon will not be compiled, and you probably WANT the hostlist daemon]) | 1725 | AC_MSG_WARN([ERROR: libgnurl not found. hostlist daemon will not be compiled, and you probably WANT the hostlist daemon]) |
1723 | else | 1726 | else |
1724 | AC_MSG_NOTICE([WARNING: libgnurl not found, trying to use libcurl-gnutls instead.]) | 1727 | AC_MSG_NOTICE([WARNING: libgnurl not found, trying to use libcurl-gnutls instead.]) |
@@ -1729,36 +1732,36 @@ fi | |||
1729 | # bluetooth | 1732 | # bluetooth |
1730 | if test "x$bluetooth" = "x0" | 1733 | if test "x$bluetooth" = "x0" |
1731 | then | 1734 | then |
1732 | AC_MSG_NOTICE([NOTICE: bluetooth library not found. bluetooth support will not be compiled.]) | 1735 | AC_MSG_NOTICE([WARNING: bluetooth library not found. bluetooth support will not be compiled.]) |
1733 | fi | 1736 | fi |
1734 | 1737 | ||
1735 | # jansson | 1738 | # jansson |
1736 | if test "x$jansson" = "x0" | 1739 | if test "x$jansson" = "x0" |
1737 | then | 1740 | then |
1738 | AC_MSG_NOTICE([NOTICE: jansson library not found. json support will not be compiled.]) | 1741 | AC_MSG_NOTICE([WARNING: jansson library not found. json support will not be compiled.]) |
1739 | fi | 1742 | fi |
1740 | 1743 | ||
1741 | #gnutls | 1744 | #gnutls |
1742 | if test x$gnutls != xtrue | 1745 | if test x$gnutls != xtrue |
1743 | then | 1746 | then |
1744 | AC_MSG_NOTICE([NOTICE: GnuTLS not found, gnunet-gns-proxy will not be built]) | 1747 | AC_MSG_NOTICE([WARNING: GnuTLS not found, gnunet-gns-proxy will not be built]) |
1745 | else | 1748 | else |
1746 | if test "x$gnutls_dane" != "x1" | 1749 | if test "x$gnutls_dane" != "x1" |
1747 | then | 1750 | then |
1748 | AC_MSG_NOTICE([NOTICE: GnuTLS has no DANE support, DANE validation will not be possible]) | 1751 | AC_MSG_NOTICE([WARNING: GnuTLS has no DANE support, DANE validation will not be possible]) |
1749 | fi | 1752 | fi |
1750 | fi | 1753 | fi |
1751 | 1754 | ||
1752 | # java ports | 1755 | # java ports |
1753 | if test "x$enable_java_ports" = "xyes" | 1756 | if test "x$enable_java_ports" = "xyes" |
1754 | then | 1757 | then |
1755 | AC_MSG_NOTICE([NOTICE: opening ports for gnunet-java bindings by default.]) | 1758 | AC_MSG_NOTICE([NOTICE: Opening ports for gnunet-java bindings by default.]) |
1756 | fi | 1759 | fi |
1757 | 1760 | ||
1758 | # MHD | 1761 | # MHD |
1759 | if test "x$lmhd" != "x1" | 1762 | if test "x$lmhd" != "x1" |
1760 | then | 1763 | then |
1761 | AC_MSG_NOTICE([NOTICE: libmicrohttpd not found, http transport will not be installed.]) | 1764 | AC_MSG_NOTICE([WARNING: libmicrohttpd not found, http transport will not be installed.]) |
1762 | fi | 1765 | fi |
1763 | 1766 | ||
1764 | # conversation | 1767 | # conversation |
@@ -1766,35 +1769,35 @@ if test "x$conversation_backend" = "xnone" | |||
1766 | then | 1769 | then |
1767 | if test "x$pulse" != "x1" | 1770 | if test "x$pulse" != "x1" |
1768 | then | 1771 | then |
1769 | AC_MSG_NOTICE([NOTICE: libpulse(audio) not found, conversation will not be built.]) | 1772 | AC_MSG_NOTICE([WARNING: libpulse(audio) not found, conversation will not be built.]) |
1770 | fi | 1773 | fi |
1771 | if test "x$opus" != "x1" | 1774 | if test "x$opus" != "x1" |
1772 | then | 1775 | then |
1773 | AC_MSG_NOTICE([NOTICE: libopus not found, conversation will not be built.]) | 1776 | AC_MSG_NOTICE([WARNING: libopus not found, conversation will not be built.]) |
1774 | fi | 1777 | fi |
1775 | if test "x$gst" != "x1" | 1778 | if test "x$gst" != "x1" |
1776 | then | 1779 | then |
1777 | AC_MSG_NOTICE([NOTICE: GStreamer not found, conversation will not be built.]) | 1780 | AC_MSG_NOTICE([WARNING: GStreamer not found, conversation will not be built.]) |
1778 | fi | 1781 | fi |
1779 | fi | 1782 | fi |
1780 | 1783 | ||
1781 | if test "$extractor" != 1 | 1784 | if test "$extractor" != 1 |
1782 | then | 1785 | then |
1783 | AC_MSG_WARN([NOTICE: libextractor not found, but various file-sharing functions require it]) | 1786 | AC_MSG_WARN([ERROR: libextractor not found, but various file-sharing functions require it]) |
1784 | fi | 1787 | fi |
1785 | 1788 | ||
1786 | AC_MSG_NOTICE([NOTICE: Database support is set to MySQL: $mysql, SQLite: $sqlite, Postgres: $postgres]) | 1789 | AC_MSG_NOTICE([NOTICE: Database support is set to MySQL: $mysql, SQLite: $sqlite, Postgres: $postgres]) |
1787 | 1790 | ||
1788 | if test "$enable_framework_build" = "yes" | 1791 | if test "$enable_framework_build" = "yes" |
1789 | then | 1792 | then |
1790 | AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.]) | 1793 | AC_MSG_NOTICE([Mac OS X framework build enabled.]) |
1791 | fi | 1794 | fi |
1792 | 1795 | ||
1793 | if test "x$install_nss" = "x0" | 1796 | if test "x$install_nss" = "x0" |
1794 | then | 1797 | then |
1795 | AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library]) | 1798 | AC_MSG_NOTICE([WARNING: Will not install GNS NSS library]) |
1796 | else | 1799 | else |
1797 | AC_MSG_NOTICE([NOTICE: Will to install GNS NSS library to $NSS_DIR]) | 1800 | AC_MSG_NOTICE([NOTICE: Will install GNS NSS library to $NSS_DIR]) |
1798 | fi | 1801 | fi |
1799 | 1802 | ||
1800 | 1803 | ||