The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / qlibc / 0003-fix-openssl-mysql-checks.patch
1 Allow to explicitly disable openssl and mysql
2
3 AC_ARG_WITH() is being incorrectly used: the third argument indicates
4 the action that needs to be taken when a value was passed, when not
5 the option is enabled. Therefore, the result of the existing code was
6 that when you passed --without-mysql or --without-openssl, the
7 $withval variable would get the value 'yes', which is obviously wrong.
8
9 Instead, we simply empty this third argument, because $withval is
10 already properly filled with 'yes' or 'no' by the AC_ARG_WITH()
11 function.
12
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14
15 Index: b/configure.ac
16 ===================================================================
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -170,7 +170,7 @@
20  ## --with section
21  ##
22  
23 -AC_ARG_WITH([openssl],[AS_HELP_STRING([--with-openssl], [This will enable HTTPS support in qhttpclient extension API. When it's enabled, user applications will need to link openssl library with -lssl option.])],[withval=yes],[withval=no])
24 +AC_ARG_WITH([openssl],[AS_HELP_STRING([--with-openssl], [This will enable HTTPS support in qhttpclient extension API. When it's enabled, user applications will need to link openssl library with -lssl option.])],[],[withval=no])
25  if test "$withval" = yes; then
26         if test "$with_openssl" = yes; then
27                 with_openssl="/usr/include"
28 @@ -185,7 +185,7 @@
29         fi
30  fi
31  
32 -AC_ARG_WITH([mysql],[AS_HELP_STRING([--with-mysql], [This will enable MySQL database support in qdatabase extension API. When it's enabled, user applications need to link mysql client library. (ex: -lmysqlclient)])],[withval=yes],[withval=no])
33 +AC_ARG_WITH([mysql],[AS_HELP_STRING([--with-mysql], [This will enable MySQL database support in qdatabase extension API. When it's enabled, user applications need to link mysql client library. (ex: -lmysqlclient)])],[],[withval=no])
34  if test "$withval" = yes; then
35         if test "$with_mysql" = yes; then
36                 with_mysql="/usr/include/mysql"