From: Christian Grothoff Date: Fri, 25 Mar 2011 13:37:36 +0000 (+0000) Subject: spell it out X-Git-Tag: initial-import-from-subversion-38251~18905 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d84aa485a4e0801ce82266e0edc7dacd2da649d;p=oweals%2Fgnunet.git spell it out --- diff --git a/configure.ac b/configure.ac index 3e45ddaa5..b3a965e3b 100644 --- a/configure.ac +++ b/configure.ac @@ -256,16 +256,16 @@ fi # $build = $target #AM_CONDITIONAL(HAVE_GLPK, test x$glpk = xtrue) #AC_CHECK_LIB([glpk],[glp_create_prob]) -a=true -AC_CHECK_HEADERS(glpk.h, ,[a=false]) -AC_CHECK_LIB([glpk],[glp_create_prob], , [a=false]) -if test $a == false +glpk=true +AC_CHECK_HEADERS(glpk.h, ,[gplk=false]) +AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false]) +if test $gplk == false then - AM_CONDITIONAL(HAVE_GLPK, [test x$a = xtrue]) - AM_CONDITIONAL(HAVE_LIBGLPK, [test x$a != x$a]) + AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue]) + AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk]) else - AM_CONDITIONAL(HAVE_GLPK, [test x$a = xtrue]) - AM_CONDITIONAL(HAVE_LIBGLPK, [test x$a = x$a]) + AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue]) + AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk]) fi # test for kvm and kstat (for CPU stats under BSD/Solaris)