Ignore:
Timestamp:
Jul 25, 2007 10:46:01 PM (14 years ago)
Author:
stefan
Message:

lous changes on glpk setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Glpk/trunk/configure

    r430 r436  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKCOINLIB COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    1971119711coin_glpksrcdir=$abs_source_dir/$coin_glpkobjdir
    1971219712
     19713use_thirdpartyglpk=no
     19714
     19715# Check for the requested component. If the user specified an external glpk
     19716# library don't force a ThirdParty build, let the error propagate.
     19717
    1971319718
    1971419719  echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5
     
    1989419899
    1989519900
    19896 
    19897 MAKEOKFILE=.MakeOk
    19898 use_glpk="$GLPKLIB"
    19899 if test "$GLPKLIB" == ""; then
    19900 
     19901 if test x"$coin_has_glpk" = xfalse && test x"$GLPKLIB" = x ; then
     19902   use_thirdpartyglpk=try
     19903 fi
     19904
     19905
     19906# If the user has supplied an external library, use it. Otherwise, consider
     19907# a build in ThirdParty/Glpk. If we build, assume we get both glpk and gmpl.
     19908
     19909if test x"$use_thirdpartyglpk" = xtry ; then
     19910  MAKEOKFILE=.MakeOk
    1990119911  # Check if the Glpk's ThirdParty project has been configured
    1990219912  if test "$PACKAGE_NAME" != ThirdPartyGlpk; then
    1990319913    if test -r $coin_glpkobjdir/.MakeOk; then
    19904       use_glpk=BUILD
     19914      use_thirdpartyglpk=build
     19915    else
     19916      use_thirdpartyglpk=no
    1990519917    fi
     19918  else
     19919    use_thirdpartyglpk=build
    1990619920  fi
    19907 fi
    19908 
    19909 if test x"$use_glpk" == xBUILD; then
    19910 
    19911   GLPKCOINLIB=`cd $coin_glpkobjdir; pwd`/libcoinglpk.la
    19912 
    19913 
    19914   GLPKINCDIR="$coin_glpksrcdir/glpk/include"
     19921
     19922# If we're building, set the library and include directory variables, create a
     19923# preprocessor symbol, define a variable that says we're using glpk/gmpl, and
     19924# another to indicate a link check is a bad idea (hard to do before the library
     19925# exists).
     19926
     19927  if test x"$use_thirdpartyglpk" == xbuild ; then
     19928    GLPKLIB=`cd $coin_glpkobjdir; pwd`/libcoinglpk.la
     19929
     19930    ADDLIBS="$GLPKLIB $ADDLIBS"
     19931    GLPKINCDIR="$coin_glpksrcdir/glpk/include"
     19932
    1991519933
    1991619934cat >>confdefs.h <<\_ACEOF
     
    1991819936_ACEOF
    1991919937
    19920 
    19921   # This is a "true" for AM_CONDITIONAL(COIN_HAS_GLPK)
     19938    coin_has_glpk=true
     19939    glpk_libcheck=no
     19940    { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5
     19941echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;}
     19942  fi
     19943fi
     19944
     19945# Define the necessary automake conditionals.
     19946
     19947
     19948
     19949if test x"$coin_has_glpk" = xtrue; then
    1992219950  COIN_HAS_GLPK_TRUE=
    1992319951  COIN_HAS_GLPK_FALSE='#'
    19924 
    19925   coin_has_glpk=yes
    19926 
    19927   { echo "$as_me:$LINENO: Using Glpk in ThirdParty" >&5
    19928 echo "$as_me: Using Glpk in ThirdParty" >&6;}
    19929 fi
    19930 
    19931 
    19932 
    19933 if test x"$use_glpk" = xBUILD; then
     19952else
     19953  COIN_HAS_GLPK_TRUE='#'
     19954  COIN_HAS_GLPK_FALSE=
     19955fi
     19956
     19957
     19958
     19959if test x"$use_thirdpartyglpk" = xbuild; then
    1993419960  COIN_BUILD_GLPK_TRUE=
    1993519961  COIN_BUILD_GLPK_FALSE='#'
     
    1994319969
    1994419970rm -f $MAKEOKFILE
    19945 if test $coin_has_glpk = yes && test "$use_glpk" != BUILD; then
    19946   { echo "$as_me:$LINENO: The Glpk sources don't need to be compiled" >&5
     19971if test x"$use_thirdpartyglpk" = xbuild ; then
     19972  touch $MAKEOKFILE
     19973else
     19974  if test x$coin_has_glpk = xtrue ; then
     19975    { echo "$as_me:$LINENO: The Glpk sources don't need to be compiled" >&5
    1994719976echo "$as_me: The Glpk sources don't need to be compiled" >&6;}
     19977  else
     19978    { echo "$as_me:$LINENO: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&5
     19979echo "$as_me: WARNING: Glpk source is available but will not be built. No valid external library is detected. Are you sure this is what you want?" >&2;}
     19980  fi
    1994819981  MAKEOKFILE=
    19949 else
    19950   touch $MAKEOKFILE
    19951 fi
    19952 
    19953 
    19954 
    19955 if test -z "$MAKEOKFILE"; then
    19956   SKIPMAKE_TRUE=
    19957   SKIPMAKE_FALSE='#'
    19958 else
    19959   SKIPMAKE_TRUE='#'
    19960   SKIPMAKE_FALSE=
    1996119982fi
    1996219983
     
    2019620217   { (exit 1); exit 1; }; }
    2019720218fi
     20219if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
     20220  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
     20221Usually this means the macro was only invoked conditionally." >&5
     20222echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
     20223Usually this means the macro was only invoked conditionally." >&2;}
     20224   { (exit 1); exit 1; }; }
     20225fi
    2019820226if test -z "${COIN_BUILD_GLPK_TRUE}" && test -z "${COIN_BUILD_GLPK_FALSE}"; then
    2019920227  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    2020020228Usually this means the macro was only invoked conditionally." >&5
    2020120229echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    20202 Usually this means the macro was only invoked conditionally." >&2;}
    20203    { (exit 1); exit 1; }; }
    20204 fi
    20205 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    20206   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    20207 Usually this means the macro was only invoked conditionally." >&5
    20208 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2020920230Usually this means the macro was only invoked conditionally." >&2;}
    2021020231   { (exit 1); exit 1; }; }
     
    2083220853s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
    2083320854s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
    20834 s,@GLPKCOINLIB@,$GLPKCOINLIB,;t t
    2083520855s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t
    2083620856s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t
    2083720857s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    20838 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    20839 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2084020858s,@GLPKDIR@,$GLPKDIR,;t t
    2084120859s,@LIBEXT@,$LIBEXT,;t t
Note: See TracChangeset for help on using the changeset viewer.