lp_solve / configure.ac

AC_PREREQ(2.52)
AC_INIT([lpsolve],5.5.0.14,[], [])
AC_CONFIG_SRCDIR(lp_simplex.c)
AC_CANONICAL_HOST

SHARED_LIB=liblpsolve55.so
SO=.so
case $host_os in
  hp*|HP*)
    DEF=-ldld
    case `uname -m` in
      ia64) SO=.so;;
      *)    SO=.sl;;
    esac
    if test "$GCC" = yes;
      then CCSHARED="-fPIC";
      else CCSHARED="+z";
    fi;;
  CYGWIN*)
    SO=.dll;;
  linux)
    CCSHARED="-fPIC";;
  apple-darwin)
    DEF=-ldl -idirafter /usr/include/sys -DINTEGERTIME -Wno-long-double
    ;;
  OpenUNIX*|UnixWare*)
    DEF='-dy -DNOLONGLONG'
    if test "$GCC" = "yes"
      then CCSHARED="-fPIC"
      else CCSHARED="-K PIC"
    fi;;
  SCO_SV*)
    DEF='-dy -DNOLONGLONG'
    if test "$GCC" = "yes"
      then CCSHARED="-fPIC"
      else CCSHARED="-Kpic -belf"
    fi;;
 *)
esac

AC_SUBST(SO)
AC_SUBST(CCSHARED)
AC_SUBST(DEF)
AC_SUBST(SHARED_LIB)

AC_PROG_CC
if test "x$GCC" != "xyes"
then
  echo "*** non GNU CC compiler detected."
  echo "*** This package has not been tested very well with non GNU compilers"
fi

AC_PROG_INSTALL
AC_CONFIG_FILES([ \
	Makefile \
])
AC_OUTPUT
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.