Get CPLEX location (include and libdir) from the environment.
authorklao
Tue, 21 Jun 2005 14:57:17 +0000
changeset 150714ca1624e8e8
parent 1506 e8f1ad6cc8dd
child 1508 389a94a1d9eb
Get CPLEX location (include and libdir) from the environment.
(On lemon.cs.elte.hu use "cplex_env" command to set the environment
appropriately.)
config/lx_check_cplex.m4
     1.1 --- a/config/lx_check_cplex.m4	Mon Jun 20 09:08:20 2005 +0000
     1.2 +++ b/config/lx_check_cplex.m4	Tue Jun 21 14:57:17 2005 +0000
     1.3 @@ -21,12 +21,16 @@
     1.4        CPLEX_CFLAGS="-I$with_cplex_includedir"
     1.5      elif test x"$with_cplex" != x"yes"; then
     1.6        CPLEX_CFLAGS="-I$with_cplex/include"
     1.7 +    elif test x"$CPLEX_INCLUDEDIR" != x; then
     1.8 +      CPLEX_CFLAGS="-I$CPLEX_INCLUDEDIR"
     1.9      fi
    1.10  
    1.11      if test x"$with_cplex_libdir" != x"no"; then
    1.12        CPLEX_LDFLAGS="-L$with_cplex_libdir"
    1.13      elif test x"$with_cplex" != x"yes"; then
    1.14        CPLEX_LDFLAGS="-L$with_cplex/lib"
    1.15 +    elif test x"$CPLEX_LIBDIR" != x; then
    1.16 +      CPLEX_LDFLAGS="-L$CPLEX_LIBDIR"
    1.17      fi
    1.18      CPLEX_LIBS="-lcplex -lm -lpthread"
    1.19