Mercurial > hg > octave-nkf
comparison configure.in @ 6289:e8c4edcfe43d
[project @ 2007-02-08 20:06:54 by jwe]
author | jwe |
---|---|
date | Thu, 08 Feb 2007 20:06:55 +0000 |
parents | c6a7b0453f9a |
children | 4e81fe3bceff |
comparison
equal
deleted
inserted
replaced
6288:0c6d07b9240e | 6289:e8c4edcfe43d |
---|---|
27 | 27 |
28 EXTERN_CFLAGS="$CFLAGS" | 28 EXTERN_CFLAGS="$CFLAGS" |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | 29 EXTERN_CXXFLAGS="$CXXFLAGS" |
30 | 30 |
31 AC_INIT | 31 AC_INIT |
32 AC_REVISION($Revision: 1.554 $) | 32 AC_REVISION($Revision: 1.555 $) |
33 AC_PREREQ(2.57) | 33 AC_PREREQ(2.57) |
34 AC_CONFIG_SRCDIR([src/octave.cc]) | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
35 AC_CONFIG_HEADER(config.h) | 35 AC_CONFIG_HEADER(config.h) |
36 | 36 |
37 OCTAVE_HOST_TYPE | 37 OCTAVE_HOST_TYPE |
588 glpk_lib="$with_glpk" | 588 glpk_lib="$with_glpk" |
589 fi | 589 fi |
590 | 590 |
591 GLPK_LIBS= | 591 GLPK_LIBS= |
592 if test -n "$glpk_lib"; then | 592 if test -n "$glpk_lib"; then |
593 AC_CHECK_LIB($glpk_lib, glp_lpx_simplex, [ | 593 AC_CHECK_LIB($glpk_lib, glp_lpx_simplex, [GLPK_LIBS="-l$glpk_lib"], [ |
594 AC_CHECK_LIB($glpk_lib, _glp_lpx_simplex, [GLPK_LIBS="-l$glpk_lib"], [])]) | |
595 if test -n "$GLPK_LIBS"; then | |
594 AC_CHECK_HEADERS(glpk.h, [ | 596 AC_CHECK_HEADERS(glpk.h, [ |
595 GLPK_LIBS="-l$glpk_lib" | 597 GLPK_LIBS="-l$glpk_lib" |
596 AC_DEFINE(HAVE_GLPK, 1, [Define if GLPK is available.])], [ | 598 AC_DEFINE(HAVE_GLPK, 1, [Define if GLPK is available.])], [ |
597 glpk_missing=yes])]) | 599 GLPK_LIBS= |
600 glpk_missing=yes]) | |
601 fi | |
598 fi | 602 fi |
599 AC_SUBST(GLPK_LIBS) | 603 AC_SUBST(GLPK_LIBS) |
600 if test "$glpk_missing" = yes; then | 604 if test "$glpk_missing" = yes; then |
601 warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled." | 605 warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled." |
602 fi | 606 fi |