Changeset 1548 for ThirdParty/ASL/trunk
- Timestamp:
- May 8, 2010 9:54:35 AM (10 years ago)
- Location:
- ThirdParty/ASL/trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/ASL/trunk/Makefile.am
r1411 r1548 17 17 libampl = $(AMPLSOLVER_A) 18 18 19 if SKIPMAKE 20 alltargets = 21 else 22 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 23 endif 19 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 24 20 25 21 all-local: $(alltargets) … … 35 31 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl) 36 32 37 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 33 thirdpartyincludedir = $(includedir)/coin/ThirdParty 34 thirdpartyinclude_HEADERS = \ 35 solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \ 36 solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \ 37 stdio1.h arith.h 38 39 thirdpartylibdir = $(libdir)/coin/ThirdParty 40 thirdpartylib_DATA = $(libampl) 41 42 if COIN_HAS_PKGCONFIG 43 addlibsdir = $(datadir)/coin/doc/ThirdParty/ASL 44 addlibs_DATA = asl_addlibs.txt 45 46 asl_addlibs.txt : coinasl.pc 47 PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinasl > asl_addlibs.txt 48 endif 49 50 pkgconfiglibdir = $(libdir)/pkgconfig 51 pkgconfiglib_DATA = coinasl.pc 52 53 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) asl_addlibs.txt 38 54 39 55 ######################################################################## -
ThirdParty/ASL/trunk/Makefile.in
r1411 r1548 28 28 # Documentation installation # 29 29 ######################################################################## 30 31 30 32 srcdir = @srcdir@ 31 33 top_srcdir = @top_srcdir@ … … 55 57 $(srcdir)/../../install-sh $(srcdir)/../../ltmain.sh \ 56 58 $(srcdir)/../../missing $(srcdir)/Makefile.am \ 57 $(srcdir)/Makefile.in $(srcdir)/compile_MS_ASL.in \ 58 $(srcdir)/compile_Unix_ASL.in $(top_srcdir)/configure 59 $(srcdir)/Makefile.in $(srcdir)/coinasl-uninstalled.pc.in \ 60 $(srcdir)/coinasl.pc.in $(srcdir)/compile_MS_ASL.in \ 61 $(srcdir)/compile_Unix_ASL.in $(thirdpartyinclude_HEADERS) \ 62 $(top_srcdir)/configure 59 63 @HAVE_EXTERNALS_TRUE@am__append_1 = Externals 60 64 @HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp … … 68 72 configure.lineno configure.status.lineno 69 73 mkinstalldirs = $(install_sh) -d 70 CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL 74 CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL coinasl.pc \ 75 coinasl-uninstalled.pc 71 76 SOURCES = 72 77 DIST_SOURCES = 78 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 79 am__vpath_adj = case $$p in \ 80 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 81 *) f=$$p;; \ 82 esac; 83 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 84 am__installdirs = "$(DESTDIR)$(addlibsdir)" \ 85 "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" \ 86 "$(DESTDIR)$(thirdpartyincludedir)" 87 addlibsDATA_INSTALL = $(INSTALL_DATA) 88 pkgconfiglibDATA_INSTALL = $(INSTALL_DATA) 89 thirdpartylibDATA_INSTALL = $(INSTALL_DATA) 90 DATA = $(addlibs_DATA) $(pkgconfiglib_DATA) $(thirdpartylib_DATA) 91 thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER) 92 HEADERS = $(thirdpartyinclude_HEADERS) 93 ETAGS = etags 94 CTAGS = ctags 73 95 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 74 96 distdir = $(PACKAGE)-$(VERSION) … … 82 104 distuninstallcheck_listfiles = find . -type f -print 83 105 distcleancheck_listfiles = find . -type f -print 106 ABSBUILDDIR = @ABSBUILDDIR@ 107 ABSPATH_AMPLSOLVER_INSTALLED = @ABSPATH_AMPLSOLVER_INSTALLED@ 108 ABSPATH_AMPLSOLVER_UNINSTALLED = @ABSPATH_AMPLSOLVER_UNINSTALLED@ 84 109 ACLOCAL = @ACLOCAL@ 85 110 ADDLIBS = @ADDLIBS@ … … 92 117 AMTAR = @AMTAR@ 93 118 AR = @AR@ 94 ASLLIB = @ASLLIB@95 119 ASLMAKEFLAGS = @ASLMAKEFLAGS@ 96 ASL_CPPFLAGS = @ASL_CPPFLAGS@97 120 AUTOCONF = @AUTOCONF@ 98 121 AUTOHEADER = @AUTOHEADER@ … … 105 128 CDEFS = @CDEFS@ 106 129 CFLAGS = @CFLAGS@ 107 COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@ 108 COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@ 130 COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@ 131 COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@ 132 COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@ 109 133 CPP = @CPP@ 110 134 CPPFLAGS = @CPPFLAGS@ … … 145 169 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ 146 170 MAKEINFO = @MAKEINFO@ 147 MAKEOKFILE = @MAKEOKFILE@148 171 MPICC = @MPICC@ 149 172 MSVC_COMPILE_FALSE = @MSVC_COMPILE_FALSE@ … … 158 181 PACKAGE_VERSION = @PACKAGE_VERSION@ 159 182 PATH_SEPARATOR = @PATH_SEPARATOR@ 183 PKG_CONFIG = @PKG_CONFIG@ 160 184 RANLIB = @RANLIB@ 161 185 RPATH_FLAGS = @RPATH_FLAGS@ 162 186 SET_MAKE = @SET_MAKE@ 163 187 SHELL = @SHELL@ 164 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@165 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@166 188 STRIP = @STRIP@ 167 189 VERSION = @VERSION@ 168 190 VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@ 191 _SVN_REV = @_SVN_REV@ 169 192 abs_bin_dir = @abs_bin_dir@ 170 193 abs_include_dir = @abs_include_dir@ … … 179 202 ac_ct_STRIP = @ac_ct_STRIP@ 180 203 ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@ 204 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 181 205 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 182 206 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ … … 199 223 have_automake = @have_automake@ 200 224 have_svn = @have_svn@ 225 have_svnversion = @have_svnversion@ 201 226 host = @host@ 202 227 host_alias = @host_alias@ … … 228 253 compdir = compdir 229 254 libampl = $(AMPLSOLVER_A) 230 @SKIPMAKE_FALSE@alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 231 @SKIPMAKE_TRUE@alltargets = 232 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 255 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 256 thirdpartyincludedir = $(includedir)/coin/ThirdParty 257 thirdpartyinclude_HEADERS = \ 258 solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \ 259 solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \ 260 stdio1.h arith.h 261 262 thirdpartylibdir = $(libdir)/coin/ThirdParty 263 thirdpartylib_DATA = $(libampl) 264 @COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/ASL 265 @COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = asl_addlibs.txt 266 pkgconfiglibdir = $(libdir)/pkgconfig 267 pkgconfiglib_DATA = coinasl.pc 268 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) asl_addlibs.txt 233 269 234 270 ######################################################################## … … 239 275 DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES) 240 276 DocFiles = README AUTHORS LICENSE 241 DocInstallDir = $( prefix)/share/doc/coin/$(PACKAGE_NAME)277 DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME) 242 278 all: all-am 243 279 … … 280 316 compile_Unix_ASL: $(top_builddir)/config.status $(srcdir)/compile_Unix_ASL.in 281 317 cd $(top_builddir) && $(SHELL) ./config.status $@ 318 coinasl.pc: $(top_builddir)/config.status $(srcdir)/coinasl.pc.in 319 cd $(top_builddir) && $(SHELL) ./config.status $@ 320 coinasl-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinasl-uninstalled.pc.in 321 cd $(top_builddir) && $(SHELL) ./config.status $@ 282 322 283 323 mostlyclean-libtool: … … 290 330 -rm -f libtool 291 331 uninstall-info-am: 332 install-addlibsDATA: $(addlibs_DATA) 333 @$(NORMAL_INSTALL) 334 test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)" 335 @list='$(addlibs_DATA)'; for p in $$list; do \ 336 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 337 f=$(am__strip_dir) \ 338 echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \ 339 $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \ 340 done 341 342 uninstall-addlibsDATA: 343 @$(NORMAL_UNINSTALL) 344 @list='$(addlibs_DATA)'; for p in $$list; do \ 345 f=$(am__strip_dir) \ 346 echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \ 347 rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \ 348 done 349 install-pkgconfiglibDATA: $(pkgconfiglib_DATA) 350 @$(NORMAL_INSTALL) 351 test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)" 352 @list='$(pkgconfiglib_DATA)'; for p in $$list; do \ 353 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 354 f=$(am__strip_dir) \ 355 echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \ 356 $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \ 357 done 358 359 uninstall-pkgconfiglibDATA: 360 @$(NORMAL_UNINSTALL) 361 @list='$(pkgconfiglib_DATA)'; for p in $$list; do \ 362 f=$(am__strip_dir) \ 363 echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \ 364 rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \ 365 done 366 install-thirdpartylibDATA: $(thirdpartylib_DATA) 367 @$(NORMAL_INSTALL) 368 test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)" 369 @list='$(thirdpartylib_DATA)'; for p in $$list; do \ 370 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 371 f=$(am__strip_dir) \ 372 echo " $(thirdpartylibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \ 373 $(thirdpartylibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \ 374 done 375 376 uninstall-thirdpartylibDATA: 377 @$(NORMAL_UNINSTALL) 378 @list='$(thirdpartylib_DATA)'; for p in $$list; do \ 379 f=$(am__strip_dir) \ 380 echo " rm -f '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \ 381 rm -f "$(DESTDIR)$(thirdpartylibdir)/$$f"; \ 382 done 383 install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS) 384 @$(NORMAL_INSTALL) 385 test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)" 386 @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \ 387 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 388 f=$(am__strip_dir) \ 389 echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \ 390 $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \ 391 done 392 393 uninstall-thirdpartyincludeHEADERS: 394 @$(NORMAL_UNINSTALL) 395 @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \ 396 f=$(am__strip_dir) \ 397 echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \ 398 rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \ 399 done 400 401 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 402 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 403 unique=`for i in $$list; do \ 404 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 405 done | \ 406 $(AWK) ' { files[$$0] = 1; } \ 407 END { for (i in files) print i; }'`; \ 408 mkid -fID $$unique 292 409 tags: TAGS 293 TAGS: 294 410 411 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 412 $(TAGS_FILES) $(LISP) 413 tags=; \ 414 here=`pwd`; \ 415 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 416 unique=`for i in $$list; do \ 417 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 418 done | \ 419 $(AWK) ' { files[$$0] = 1; } \ 420 END { for (i in files) print i; }'`; \ 421 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 422 test -n "$$unique" || unique=$$empty_fix; \ 423 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 424 $$tags $$unique; \ 425 fi 295 426 ctags: CTAGS 296 CTAGS: 297 427 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 428 $(TAGS_FILES) $(LISP) 429 tags=; \ 430 here=`pwd`; \ 431 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 432 unique=`for i in $$list; do \ 433 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 434 done | \ 435 $(AWK) ' { files[$$0] = 1; } \ 436 END { for (i in files) print i; }'`; \ 437 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 438 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 439 $$tags $$unique 440 441 GTAGS: 442 here=`$(am__cd) $(top_builddir) && pwd` \ 443 && cd $(top_srcdir) \ 444 && gtags -i $(GTAGS_ARGS) $$here 445 446 distclean-tags: 447 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 298 448 299 449 distdir: $(DISTFILES) 300 450 $(am__remove_distdir) 301 451 mkdir $(distdir) 302 $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools 452 $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools $(distdir)/solvers 303 453 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 304 454 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ … … 426 576 check-am: all-am 427 577 check: check-am 428 all-am: Makefile all-local578 all-am: Makefile $(DATA) $(HEADERS) all-local 429 579 installdirs: 580 for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \ 581 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 582 done 430 583 install: install-am 431 584 install-exec: install-exec-am … … 461 614 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 462 615 -rm -f Makefile 463 distclean-am: clean-am distclean-generic distclean-libtool 616 distclean-am: clean-am distclean-generic distclean-libtool \ 617 distclean-tags 464 618 465 619 dvi: dvi-am … … 473 627 info-am: 474 628 475 install-data-am: 629 install-data-am: install-addlibsDATA install-pkgconfiglibDATA \ 630 install-thirdpartyincludeHEADERS install-thirdpartylibDATA 476 631 477 632 install-exec-am: … … 501 656 ps-am: 502 657 503 uninstall-am: uninstall-info-am 504 505 .PHONY: all all-am all-local am--refresh check check-am clean \ 506 clean-generic clean-libtool dist dist-all dist-bzip2 dist-gzip \ 507 dist-shar dist-tarZ dist-zip distcheck distclean \ 508 distclean-generic distclean-libtool distcleancheck distdir \ 509 distuninstallcheck dvi dvi-am html html-am info info-am \ 510 install install-am install-data install-data-am install-exec \ 511 install-exec-am install-info install-info-am install-man \ 512 install-strip installcheck installcheck-am installdirs \ 513 maintainer-clean maintainer-clean-generic mostlyclean \ 514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 515 uninstall uninstall-am uninstall-info-am 658 uninstall-am: uninstall-addlibsDATA uninstall-info-am \ 659 uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \ 660 uninstall-thirdpartylibDATA 661 662 .PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \ 663 clean clean-generic clean-libtool ctags dist dist-all \ 664 dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \ 665 distclean distclean-generic distclean-libtool distclean-tags \ 666 distcleancheck distdir distuninstallcheck dvi dvi-am html \ 667 html-am info info-am install install-addlibsDATA install-am \ 668 install-data install-data-am install-exec install-exec-am \ 669 install-info install-info-am install-man \ 670 install-pkgconfiglibDATA install-strip \ 671 install-thirdpartyincludeHEADERS install-thirdpartylibDATA \ 672 installcheck installcheck-am installdirs maintainer-clean \ 673 maintainer-clean-generic mostlyclean mostlyclean-generic \ 674 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ 675 uninstall-addlibsDATA uninstall-am uninstall-info-am \ 676 uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \ 677 uninstall-thirdpartylibDATA 516 678 517 679 … … 524 686 525 687 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl) 688 689 @COIN_HAS_PKGCONFIG_TRUE@asl_addlibs.txt : coinasl.pc 690 @COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinasl > asl_addlibs.txt 526 691 527 692 install-doc: $(DocFiles) -
ThirdParty/ASL/trunk/configure
r1411 r1548 10 10 # 11 11 # 12 # Copyright 2006 International Business Machines and others.12 # Copyright 2006, 2007, 2009 International Business Machines and others. 13 13 # All Rights Reserved. 14 14 # This file is part of the open source package Coin which is distributed … … 473 473 #endif" 474 474 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 build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILESLIBOBJS LTLIBOBJS'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 build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH AMPLSOLVER_A ABSPATH_AMPLSOLVER_INSTALLED ABSPATH_AMPLSOLVER_UNINSTALLED ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 974 974 ac_cv_env_FFLAGS_set=${FFLAGS+set} 975 975 ac_cv_env_FFLAGS_value=$FFLAGS 976 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 977 ac_env_PKG_CONFIG_value=$PKG_CONFIG 978 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 979 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 976 980 ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set} 977 981 ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS … … 1077 1081 optimize for fast installation [default=yes] 1078 1082 --disable-libtool-lock avoid locking (might break parallel builds) 1083 --enable-pkg-config use pkg-config if available (default is yes) 1079 1084 1080 1085 Optional Packages: … … 1088 1093 --with-tags[=TAGS] 1089 1094 include additional configurations [automatic] 1090 --with- asldir specify path to AMPL solver directory (or BUILD for1091 compilation, or "no" for disabling AMPL)1095 --with-coin-instdir prefix of installation directory for precompiled 1096 COIN packages 1092 1097 1093 1098 Some influential environment variables: … … 1109 1114 F77 Fortran 77 compiler command 1110 1115 FFLAGS Fortran 77 compiler flags 1116 PKG_CONFIG path to pkg-config utility 1111 1117 ASLMAKEFLAGS 1112 1118 Compilation flags necessary for compiling the AMPL solver … … 1220 1226 1221 1227 1222 Copyright 2006 International Business Machines and others.1228 Copyright 2006, 2007, 2009 International Business Machines and others. 1223 1229 All Rights Reserved. 1224 1230 This file is part of the open source package Coin which is distributed … … 1669 1675 fi 1670 1676 1677 1678 #Set the project's version number 1679 if test "x" != x; then 1680 1681 cat >>confdefs.h <<_ACEOF 1682 #define _VERSION "$PACKAGE_VERSION" 1683 _ACEOF 1684 1685 fi 1686 1687 #Set the project's SVN revision number 1688 # Extract the first word of "svnversion", so it can be a program name with args. 1689 set dummy svnversion; ac_word=$2 1690 echo "$as_me:$LINENO: checking for $ac_word" >&5 1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1692 if test "${ac_cv_prog_have_svnversion+set}" = set; then 1693 echo $ECHO_N "(cached) $ECHO_C" >&6 1694 else 1695 if test -n "$have_svnversion"; then 1696 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. 1697 else 1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1699 for as_dir in $PATH 1700 do 1701 IFS=$as_save_IFS 1702 test -z "$as_dir" && as_dir=. 1703 for ac_exec_ext in '' $ac_executable_extensions; do 1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1705 ac_cv_prog_have_svnversion="yes" 1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1707 break 2 1708 fi 1709 done 1710 done 1711 1712 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" 1713 fi 1714 fi 1715 have_svnversion=$ac_cv_prog_have_svnversion 1716 if test -n "$have_svnversion"; then 1717 echo "$as_me:$LINENO: result: $have_svnversion" >&5 1718 echo "${ECHO_T}$have_svnversion" >&6 1719 else 1720 echo "$as_me:$LINENO: result: no" >&5 1721 echo "${ECHO_T}no" >&6 1722 fi 1723 1724 if test "x$have_svnversion" = xyes && test "x" != x; then 1725 1726 _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion` 1727 if test $_SVN_REV != exported; then 1728 1729 cat >>confdefs.h <<_ACEOF 1730 #define _SVN_REV "$_SVN_REV" 1731 _ACEOF 1732 1733 fi 1734 fi 1671 1735 1672 1736 # We set the following variable so that we know later in AC_COIN_FINALIZE … … 4737 4801 *-*-irix6*) 4738 4802 # Find out which ABI we are using. 4739 echo '#line 4 739"configure"' > conftest.$ac_ext4803 echo '#line 4803 "configure"' > conftest.$ac_ext 4740 4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4741 4805 (eval $ac_compile) 2>&5 … … 6336 6400 6337 6401 # Provide some information about the compiler. 6338 echo "$as_me:6 338:" \6402 echo "$as_me:6402:" \ 6339 6403 "checking for Fortran 77 compiler version" >&5 6340 6404 ac_compiler=`set X $ac_compile; echo $2` … … 7403 7467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7404 7468 -e 's:$: $lt_compiler_flag:'` 7405 (eval echo "\"\$as_me:74 05: $lt_compile\"" >&5)7469 (eval echo "\"\$as_me:7469: $lt_compile\"" >&5) 7406 7470 (eval "$lt_compile" 2>conftest.err) 7407 7471 ac_status=$? 7408 7472 cat conftest.err >&5 7409 echo "$as_me:74 09: \$? = $ac_status" >&57473 echo "$as_me:7473: \$? = $ac_status" >&5 7410 7474 if (exit $ac_status) && test -s "$ac_outfile"; then 7411 7475 # The compiler can only warn and ignore the option if not recognized … … 7671 7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7672 7736 -e 's:$: $lt_compiler_flag:'` 7673 (eval echo "\"\$as_me:7 673: $lt_compile\"" >&5)7737 (eval echo "\"\$as_me:7737: $lt_compile\"" >&5) 7674 7738 (eval "$lt_compile" 2>conftest.err) 7675 7739 ac_status=$? 7676 7740 cat conftest.err >&5 7677 echo "$as_me:7 677: \$? = $ac_status" >&57741 echo "$as_me:7741: \$? = $ac_status" >&5 7678 7742 if (exit $ac_status) && test -s "$ac_outfile"; then 7679 7743 # The compiler can only warn and ignore the option if not recognized … … 7775 7839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7776 7840 -e 's:$: $lt_compiler_flag:'` 7777 (eval echo "\"\$as_me:7 777: $lt_compile\"" >&5)7841 (eval echo "\"\$as_me:7841: $lt_compile\"" >&5) 7778 7842 (eval "$lt_compile" 2>out/conftest.err) 7779 7843 ac_status=$? 7780 7844 cat out/conftest.err >&5 7781 echo "$as_me:7 781: \$? = $ac_status" >&57845 echo "$as_me:7845: \$? = $ac_status" >&5 7782 7846 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7783 7847 then … … 10120 10184 lt_status=$lt_dlunknown 10121 10185 cat > conftest.$ac_ext <<EOF 10122 #line 101 22"configure"10186 #line 10186 "configure" 10123 10187 #include "confdefs.h" 10124 10188 … … 10220 10284 lt_status=$lt_dlunknown 10221 10285 cat > conftest.$ac_ext <<EOF 10222 #line 102 22"configure"10286 #line 10286 "configure" 10223 10287 #include "confdefs.h" 10224 10288 … … 12564 12628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12565 12629 -e 's:$: $lt_compiler_flag:'` 12566 (eval echo "\"\$as_me:12 566: $lt_compile\"" >&5)12630 (eval echo "\"\$as_me:12630: $lt_compile\"" >&5) 12567 12631 (eval "$lt_compile" 2>conftest.err) 12568 12632 ac_status=$? 12569 12633 cat conftest.err >&5 12570 echo "$as_me:12 570: \$? = $ac_status" >&512634 echo "$as_me:12634: \$? = $ac_status" >&5 12571 12635 if (exit $ac_status) && test -s "$ac_outfile"; then 12572 12636 # The compiler can only warn and ignore the option if not recognized … … 12668 12732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12669 12733 -e 's:$: $lt_compiler_flag:'` 12670 (eval echo "\"\$as_me:12 670: $lt_compile\"" >&5)12734 (eval echo "\"\$as_me:12734: $lt_compile\"" >&5) 12671 12735 (eval "$lt_compile" 2>out/conftest.err) 12672 12736 ac_status=$? 12673 12737 cat out/conftest.err >&5 12674 echo "$as_me:12 674: \$? = $ac_status" >&512738 echo "$as_me:12738: \$? = $ac_status" >&5 12675 12739 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12676 12740 then … … 14238 14302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14239 14303 -e 's:$: $lt_compiler_flag:'` 14240 (eval echo "\"\$as_me:14 240: $lt_compile\"" >&5)14304 (eval echo "\"\$as_me:14304: $lt_compile\"" >&5) 14241 14305 (eval "$lt_compile" 2>conftest.err) 14242 14306 ac_status=$? 14243 14307 cat conftest.err >&5 14244 echo "$as_me:14 244: \$? = $ac_status" >&514308 echo "$as_me:14308: \$? = $ac_status" >&5 14245 14309 if (exit $ac_status) && test -s "$ac_outfile"; then 14246 14310 # The compiler can only warn and ignore the option if not recognized … … 14342 14406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14343 14407 -e 's:$: $lt_compiler_flag:'` 14344 (eval echo "\"\$as_me:14 344: $lt_compile\"" >&5)14408 (eval echo "\"\$as_me:14408: $lt_compile\"" >&5) 14345 14409 (eval "$lt_compile" 2>out/conftest.err) 14346 14410 ac_status=$? 14347 14411 cat out/conftest.err >&5 14348 echo "$as_me:14 348: \$? = $ac_status" >&514412 echo "$as_me:14412: \$? = $ac_status" >&5 14349 14413 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14350 14414 then … … 16549 16613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16550 16614 -e 's:$: $lt_compiler_flag:'` 16551 (eval echo "\"\$as_me:16 551: $lt_compile\"" >&5)16615 (eval echo "\"\$as_me:16615: $lt_compile\"" >&5) 16552 16616 (eval "$lt_compile" 2>conftest.err) 16553 16617 ac_status=$? 16554 16618 cat conftest.err >&5 16555 echo "$as_me:16 555: \$? = $ac_status" >&516619 echo "$as_me:16619: \$? = $ac_status" >&5 16556 16620 if (exit $ac_status) && test -s "$ac_outfile"; then 16557 16621 # The compiler can only warn and ignore the option if not recognized … … 16817 16881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16818 16882 -e 's:$: $lt_compiler_flag:'` 16819 (eval echo "\"\$as_me:168 19: $lt_compile\"" >&5)16883 (eval echo "\"\$as_me:16883: $lt_compile\"" >&5) 16820 16884 (eval "$lt_compile" 2>conftest.err) 16821 16885 ac_status=$? 16822 16886 cat conftest.err >&5 16823 echo "$as_me:168 23: \$? = $ac_status" >&516887 echo "$as_me:16887: \$? = $ac_status" >&5 16824 16888 if (exit $ac_status) && test -s "$ac_outfile"; then 16825 16889 # The compiler can only warn and ignore the option if not recognized … … 16921 16985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16922 16986 -e 's:$: $lt_compiler_flag:'` 16923 (eval echo "\"\$as_me:169 23: $lt_compile\"" >&5)16987 (eval echo "\"\$as_me:16987: $lt_compile\"" >&5) 16924 16988 (eval "$lt_compile" 2>out/conftest.err) 16925 16989 ac_status=$? 16926 16990 cat out/conftest.err >&5 16927 echo "$as_me:169 27: \$? = $ac_status" >&516991 echo "$as_me:16991: \$? = $ac_status" >&5 16928 16992 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16929 16993 then … … 19823 19887 } 19824 19888 19825 # See what we're actually going to do for ASL. This will define ampllib. 19826 coin_aslobjdir=../ThirdParty/ASL 19827 coin_aslsrcdir=$srcdir/$coin_aslobjdir 19889 # Check if pkg-config is available (to setup addlibs file) 19890 19891 19892 # Check whether --enable-pkg-config or --disable-pkg-config was given. 19893 if test "${enable_pkg_config+set}" = set; then 19894 enableval="$enable_pkg_config" 19895 use_pkgconfig="$enableval" 19896 else 19897 use_pkgconfig=yes 19898 fi; 19899 19900 if test $use_pkgconfig = yes ; then 19901 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19902 if test -n "$ac_tool_prefix"; then 19903 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19904 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19905 echo "$as_me:$LINENO: checking for $ac_word" >&5 19906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19907 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19908 echo $ECHO_N "(cached) $ECHO_C" >&6 19909 else 19910 case $PKG_CONFIG in 19911 [\\/]* | ?:[\\/]*) 19912 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19913 ;; 19914 *) 19915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19916 for as_dir in $PATH 19917 do 19918 IFS=$as_save_IFS 19919 test -z "$as_dir" && as_dir=. 19920 for ac_exec_ext in '' $ac_executable_extensions; do 19921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19922 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19924 break 2 19925 fi 19926 done 19927 done 19928 19929 ;; 19930 esac 19931 fi 19932 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19933 19934 if test -n "$PKG_CONFIG"; then 19935 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19936 echo "${ECHO_T}$PKG_CONFIG" >&6 19937 else 19938 echo "$as_me:$LINENO: result: no" >&5 19939 echo "${ECHO_T}no" >&6 19940 fi 19941 19942 fi 19943 if test -z "$ac_cv_path_PKG_CONFIG"; then 19944 ac_pt_PKG_CONFIG=$PKG_CONFIG 19945 # Extract the first word of "pkg-config", so it can be a program name with args. 19946 set dummy pkg-config; ac_word=$2 19947 echo "$as_me:$LINENO: checking for $ac_word" >&5 19948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19949 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19950 echo $ECHO_N "(cached) $ECHO_C" >&6 19951 else 19952 case $ac_pt_PKG_CONFIG in 19953 [\\/]* | ?:[\\/]*) 19954 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19955 ;; 19956 *) 19957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19958 for as_dir in $PATH 19959 do 19960 IFS=$as_save_IFS 19961 test -z "$as_dir" && as_dir=. 19962 for ac_exec_ext in '' $ac_executable_extensions; do 19963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19964 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19966 break 2 19967 fi 19968 done 19969 done 19970 19971 ;; 19972 esac 19973 fi 19974 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19975 19976 if test -n "$ac_pt_PKG_CONFIG"; then 19977 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19978 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19979 else 19980 echo "$as_me:$LINENO: result: no" >&5 19981 echo "${ECHO_T}no" >&6 19982 fi 19983 19984 PKG_CONFIG=$ac_pt_PKG_CONFIG 19985 else 19986 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19987 fi 19988 19989 fi 19990 if test -n "$PKG_CONFIG"; then 19991 _pkg_min_version=0.9.0 19992 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19993 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19994 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19995 echo "$as_me:$LINENO: result: yes" >&5 19996 echo "${ECHO_T}yes" >&6 19997 else 19998 echo "$as_me:$LINENO: result: no" >&5 19999 echo "${ECHO_T}no" >&6 20000 PKG_CONFIG="" 20001 fi 20002 fi 20003 20004 # check if pkg-config supports the short-errors flag 20005 if test -n "$PKG_CONFIG" && \ 20006 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20007 pkg_short_errors=" --short-errors " 20008 else 20009 pkg_short_errors="" 20010 fi 20011 fi 20012 20013 20014 20015 if test -n "$PKG_CONFIG"; then 20016 COIN_HAS_PKGCONFIG_TRUE= 20017 COIN_HAS_PKGCONFIG_FALSE='#' 20018 else 20019 COIN_HAS_PKGCONFIG_TRUE='#' 20020 COIN_HAS_PKGCONFIG_FALSE= 20021 fi 20022 20023 20024 20025 # assemble search path for pkg-config, if we are in a project setup 20026 if test x$coin_projectdir = xyes ; then 20027 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20028 20029 # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there 20030 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, 20031 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 20032 if test -d "${prefix}"; then 20033 COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20034 fi 20035 20036 20037 # Check whether --with-coin-instdir or --without-coin-instdir was given. 20038 if test "${with_coin_instdir+set}" = set; then 20039 withval="$with_coin_instdir" 20040 if test -d "$withval"; then : ; else 20041 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 20042 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} 20043 { (exit 1); exit 1; }; } 20044 fi 20045 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20046 20047 fi; 20048 20049 # in a classic setup, we want to find uninstalled projects 20050 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory 20051 # unfortunately, if the user set prefix, then we do not know where the project base directory is located 20052 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) 20053 if test -e ../coin_subdirs.txt ; then 20054 for i in `cat ../coin_subdirs.txt` ; do 20055 if test -d ../$i ; then 20056 COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}" 20057 fi 20058 done 20059 fi 20060 20061 if test -e ../../coin_subdirs.txt ; then 20062 for i in `cat ../../coin_subdirs.txt` ; do 20063 if test -d ../../$i ; then 20064 COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}" 20065 fi 20066 done 20067 fi 20068 20069 20070 fi 20071 20072 20073 20074 ############################################################################# 20075 # AMPL SOLVER LIBRARY # 20076 ############################################################################# 19828 20077 19829 20078 # Determine the name of the ASL library 20079 20080 # Set a substitutable variable with the library name, and determine the compilation style. 20081 19830 20082 case "$CC" in 19831 20083 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 19832 ampllib=amplsolv.lib ;; 20084 AMPLSOLVER_A=amplsolv.lib 20085 msvc_compile=yes 20086 ;; 19833 20087 *) 19834 ampllib=amplsolver.a ;; 20088 AMPLSOLVER_A=amplsolver.a 20089 msvc_compile=no 20090 ;; 19835 20091 esac 19836 19837 19838 # Check whether --with-asldir or --without-asldir was given. 19839 if test "${with_asldir+set}" = set; then 19840 withval="$with_asldir" 19841 use_asldir=$withval 19842 else 19843 use_asldir= 19844 fi; 19845 19846 if test "$use_asldir" = BUILD; then 19847 if test "$PACKAGE_NAME" != ThirdPartyASL; then 19848 # If we are configuring ThirdParty/ASL, don't check 19849 if test -r $coin_aslobjdir/.MakeOk; then :; else 19850 { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5 19851 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;} 19852 { (exit 1); exit 1; }; } 19853 fi 19854 fi 19855 elif test -z "$use_asldir"; then 19856 # try to find sources - if not given don't compile 19857 if test "$PACKAGE_NAME" != ThirdPartyASL; then 19858 if test -r $coin_aslobjdir/.MakeOk; then 19859 use_asldir=BUILD 19860 else 19861 use_asldir=no 19862 fi 19863 else 19864 use_asldir=no 19865 fi 19866 elif test "$use_asldir" != "no"; then 19867 if test -r $use_asldir/$ampllib; then 19868 19869 : 19870 else 19871 { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5 19872 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;} 19873 { (exit 1); exit 1; }; } 19874 : 19875 fi 19876 19877 if test -r $use_asldir/asl.h; then 19878 19879 : 19880 else 19881 { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5 19882 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;} 19883 { (exit 1); exit 1; }; } 19884 : 19885 fi 19886 19887 use_asldir=`cd $use_asldir; pwd` 20092 { echo "$as_me:$LINENO: Configuring ASL to build $AMPLSOLVER_A." >&5 20093 echo "$as_me: Configuring ASL to build $AMPLSOLVER_A." >&6;} 20094 20095 # Set substitutable variables with the absolute path to the library name 20096 # translate to windows style if necessary, but use slashes instead of backslashes 20097 ABSPATH_AMPLSOLVER_INSTALLED=`${CYGPATH_W} ${libdir}/coin/ThirdParty/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'` 20098 curdir=`pwd` 20099 ABSPATH_AMPLSOLVER_UNINSTALLED=`${CYGPATH_W} ${curdir}/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'` 20100 20101 20102 20103 # Determine flags to be passed on the command line to (n)make. The main 20104 # activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the 20105 # (n)make command line. 20106 # NON_STDIO no longer appears in any source file; removed all mention. 20107 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined. 20108 20109 if test -z "$ASLMAKEFLAGS" ; then 20110 asladdcflags= 19888 20111 case $build in 19889 *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;; 20112 *-linux*) 20113 case $CC in 20114 pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*) 20115 asladdcflags="$asladdcflags -DNO_fpu_control";; 20116 esac 20117 ;; 19890 20118 esac 19891 fi 19892 19893 # Variable containing ASL library (including full path) 19894 19895 # Variable containing flags for including ASL header files 19896 19897 19898 if test "$use_asldir" = BUILD; then 19899 coin_aslobjdir=`cd $coin_aslobjdir; pwd` 19900 ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg` 19901 coin_aslsrcdir=`cd $coin_aslsrcdir; pwd` 19902 ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg` 19903 elif test "$use_asldir" != no; then 19904 ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg` 19905 ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg` 19906 fi 19907 19908 if test "$use_asldir" != no; then 20119 20120 # Various feature checks. Force the language to be C while we do this to avoid 20121 # issues with C++ (re)declarations. 19909 20122 ac_ext=c 19910 20123 ac_cpp='$CPP $CPPFLAGS' … … 19913 20126 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19914 20127 19915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&519916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&619917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then19918 echo $ECHO_N "(cached) $ECHO_C" >&619919 else19920 ac_check_lib_save_LIBS=$LIBS19921 LIBS="-ldl $LIBS"19922 cat >conftest.$ac_ext <<_ACEOF19923 /* confdefs.h. */19924 _ACEOF19925 cat confdefs.h >>conftest.$ac_ext19926 cat >>conftest.$ac_ext <<_ACEOF19927 /* end confdefs.h. */19928 19929 /* Override any gcc2 internal prototype to avoid an error. */19930 #ifdef __cplusplus19931 extern "C"19932 #endif19933 /* We use char because int might match the return type of a gcc219934 builtin and then its argument prototype would still apply. */19935 char dlopen ();19936 int19937 main ()19938 {19939 dlopen ();19940 ;19941 return 0;19942 }19943 _ACEOF19944 rm -f conftest.$ac_objext conftest$ac_exeext19945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&519946 (eval $ac_link) 2>conftest.er119947 ac_status=$?19948 grep -v '^ *+' conftest.er1 >conftest.err19949 rm -f conftest.er119950 cat conftest.err >&519951 echo "$as_me:$LINENO: \$? = $ac_status" >&519952 (exit $ac_status); } &&19953 { ac_try='test -z "$ac_c_werror_flag"19954 || test ! -s conftest.err'19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&519956 (eval $ac_try) 2>&519957 ac_status=$?19958 echo "$as_me:$LINENO: \$? = $ac_status" >&519959 (exit $ac_status); }; } &&19960 { ac_try='test -s conftest$ac_exeext'19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&519962 (eval $ac_try) 2>&519963 ac_status=$?19964 echo "$as_me:$LINENO: \$? = $ac_status" >&519965 (exit $ac_status); }; }; then19966 ac_cv_lib_dl_dlopen=yes19967 else19968 echo "$as_me: failed program was:" >&519969 sed 's/^/| /' conftest.$ac_ext >&519970 19971 ac_cv_lib_dl_dlopen=no19972 fi19973 rm -f conftest.err conftest.$ac_objext \19974 conftest$ac_exeext conftest.$ac_ext19975 LIBS=$ac_check_lib_save_LIBS19976 fi19977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&519978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&619979 if test $ac_cv_lib_dl_dlopen = yes; then19980 ASLLIB="$ASLLIB -ldl"19981 fi19982 19983 coin_has_asl=yes19984 19985 cat >>confdefs.h <<\_ACEOF19986 #define COIN_HAS_ASL 119987 _ACEOF19988 19989 ac_ext=c19990 ac_cpp='$CPP $CPPFLAGS'19991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'19992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'19993 ac_compiler_gnu=$ac_cv_c_compiler_gnu19994 19995 else19996 coin_has_asl=no19997 fi19998 19999 20000 if test $coin_has_asl = yes; then20001 COIN_HAS_ASL_TRUE=20002 COIN_HAS_ASL_FALSE='#'20003 else20004 COIN_HAS_ASL_TRUE='#'20005 COIN_HAS_ASL_FALSE=20006 fi20007 20008 20009 20010 MAKEOKFILE=.MakeOk20011 if test $coin_has_asl != no && test "$use_asldir" != BUILD; then20012 skip_further_test=yes20013 rm -f $MAKEOKFILE20014 { echo "$as_me:$LINENO: The ASL sources don't need to be compiled" >&520015 echo "$as_me: The ASL sources don't need to be compiled" >&6;}20016 MAKEOKFILE=20017 else20018 touch $MAKEOKFILE20019 fi20020 20021 20022 20023 if test -z "$MAKEOKFILE"; then20024 SKIPMAKE_TRUE=20025 SKIPMAKE_FALSE='#'20026 else20027 SKIPMAKE_TRUE='#'20028 SKIPMAKE_FALSE=20029 fi20030 20031 20032 #############################################################################20033 # AMPL SOLVER LIBRARY #20034 #############################################################################20035 20036 if test x$skip_further_test != xyes; then20037 20038 # Set a substitutable variable with the library name, and determine the20039 # compilation style.20040 20041 20042 AMPLSOLVER_A=$ampllib20043 case "$CC" in20044 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)20045 msvc_compile=yes ;;20046 *)20047 msvc_compile=no ;;20048 esac20049 { echo "$as_me:$LINENO: Configuring ASL to build $AMPLSOLVER_A." >&520050 echo "$as_me: Configuring ASL to build $AMPLSOLVER_A." >&6;}20051 20052 # Determine flags to be passed on the command line to (n)make. The main20053 # activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the20054 # (n)make command line.20055 # NON_STDIO no longer appears in any source file; removed all mention.20056 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined.20057 20058 if test -z "$ASLMAKEFLAGS" ; then20059 asladdcflags=20060 case $build in20061 *-linux*)20062 case $CC in20063 pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)20064 asladdcflags="$asladdcflags -DNO_fpu_control";;20065 esac20066 ;;20067 esac20068 20069 # Various feature checks. Force the language to be C while we do this to avoid20070 # issues with C++ (re)declarations.20071 20072 ac_ext=c20073 ac_cpp='$CPP $CPPFLAGS'20074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'20075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'20076 ac_compiler_gnu=$ac_cv_c_compiler_gnu20077 20078 20128 20079 20129 # The critical function for NO_RUSAGE is getrusage(). Use a standard test. 20080 20130 20081 20131 echo "$as_me:$LINENO: checking for getrusage" >&5 20082 20132 echo $ECHO_N "checking for getrusage... $ECHO_C" >&6 20083 20133 cat >conftest.$ac_ext <<_ACEOF 20084 20134 /* confdefs.h. */ 20085 20135 _ACEOF … … 20125 20175 20126 20176 asladdcflags="$asladdcflags -DNO_RUSAGE" 20127 20177 echo "$as_me:$LINENO: result: no" >&5 20128 20178 echo "${ECHO_T}no" >&6 20129 20179 fi … … 20138 20188 # system, but it's easy to check. 20139 20189 20140 20190 echo "$as_me:$LINENO: checking for long long" >&5 20141 20191 echo $ECHO_N "checking for long long... $ECHO_C" >&6 20142 20192 if test "${ac_cv_type_long_long+set}" = set; then … … 20202 20252 20203 20253 # Back to whatever language we were in. 20204 20205 ac_ext=c 20254 ac_ext=c 20206 20255 ac_cpp='$CPP $CPPFLAGS' 20207 20256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 20211 20260 20212 20261 # On BlueGene disable dynamic library loading 20213 20214 if test x"$enable_bg" = xyes; then 20215 asladdcflags="$asladdcflags -DNO_FUNCADD" 20216 fi 20262 if test x"$enable_bg" = xyes; then 20263 asladdcflags="$asladdcflags -DNO_FUNCADD" 20264 fi 20217 20265 20218 20266 # Groom CFLAGS before we merge it with asladdcflags. 20219 20267 # Remove -Werror if present, to make sure we are not interrupting compilation 20220 20268 # of ASL because of warning messages. The cl equivalent is -WX. 20221 20222 bla= 20223 if test x$msvc_compile = xyes ; then 20224 warnToErr="-WX" 20225 else 20226 warnToErr="-Werror" 20269 bla= 20270 if test x$msvc_compile = xyes ; then 20271 warnToErr="-WX" 20272 else 20273 warnToErr="-Werror" 20274 fi 20275 for i in $CFLAGS; do 20276 if test "$i" != "$warnToErr"; then 20277 bla="$bla $i" 20227 20278 fi 20228 for i in $CFLAGS; do 20229 if test "$i" != "$warnToErr"; then 20230 bla="$bla $i" 20231 fi 20232 done 20233 ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\"" 20279 done 20280 ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\"" 20234 20281 20235 20282 # Somehow, the flags specified here cause ASL to segfault on the AIX 20236 20283 # compiler, so take them out. 20237 20238 case $CC in 20239 xlc* | */xlc* | mpxlc* | */mpxlc*) 20240 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'` 20241 ;; 20242 pgcc* | */pgcc*) 20243 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'` 20244 ;; 20245 esac 20284 case $CC in 20285 xlc* | */xlc* | mpxlc* | */mpxlc*) 20286 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'` 20287 ;; 20288 pgcc* | */pgcc*) 20289 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'` 20290 ;; 20291 esac 20246 20292 20247 20293 # Limit GNU make to one thread. But remember that if we're building with 20248 20294 # cl, ultimately we're going to use nmake, which knows nothing of this. 20249 20250 if test x$msvc_compile = xno ; then 20251 rm -rf conftest.mak 20252 ($am_make -v > conftest.grp) 2>&5 20253 if $EGREP GNU conftest.grp >&5 ; then 20254 ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS" 20255 fi 20256 rm -f conftest.grp 20295 if test x$msvc_compile = xno ; then 20296 rm -rf conftest.mak 20297 ($am_make -v > conftest.grp) 2>&5 20298 if $EGREP GNU conftest.grp >&5 ; then 20299 ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS" 20257 20300 fi 20301 rm -f conftest.grp 20258 20302 fi 20259 20303 fi 20260 20304 # End if-then to construct ASLMAKEFLAGS. Announce the result. 20261 20305 20262 20306 { echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5 20263 20307 echo "$as_me: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&6;} 20264 20308 20265 20266 fi20267 20309 20268 20310 # Set automake conditional and generate the output files. … … 20284 20326 20285 20327 ac_config_files="$ac_config_files compile_Unix_ASL" 20328 20329 ac_config_files="$ac_config_files coinasl.pc coinasl-uninstalled.pc" 20286 20330 20287 20331 … … 20341 20385 done 20342 20386 subdirs="$new_subdirs" 20387 fi 20388 20389 # need to come before AC_OUTPUT 20390 if test x$coin_projectdir != xyes; then 20391 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 20392 echo $coin_subdirs > coin_subdirs.txt 20393 else 20394 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 20395 ABSBUILDDIR="`pwd`" 20396 20343 20397 fi 20344 20398 … … 20507 20561 { (exit 1); exit 1; }; } 20508 20562 fi 20509 if test -z "${COIN_HAS_ ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then20510 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ ASL\" was never defined.20563 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then 20564 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 20511 20565 Usually this means the macro was only invoked conditionally." >&5 20512 echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined. 20513 Usually this means the macro was only invoked conditionally." >&2;} 20514 { (exit 1); exit 1; }; } 20515 fi 20516 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then 20517 { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined. 20518 Usually this means the macro was only invoked conditionally." >&5 20519 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined. 20566 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 20520 20567 Usually this means the macro was only invoked conditionally." >&2;} 20521 20568 { (exit 1); exit 1; }; } … … 20970 21017 "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;; 20971 21018 "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;; 21019 "coinasl.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl.pc" ;; 21020 "coinasl-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl-uninstalled.pc" ;; 20972 21021 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20973 21022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 … … 21063 21112 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t 21064 21113 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t 21114 s,@have_svnversion@,$have_svnversion,;t t 21115 s,@_SVN_REV@,$_SVN_REV,;t t 21065 21116 s,@EGREP@,$EGREP,;t t 21066 21117 s,@LN_S@,$LN_S,;t t … … 21149 21200 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 21150 21201 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 21151 s,@ASLLIB@,$ASLLIB,;t t 21152 s,@ASL_CPPFLAGS@,$ASL_CPPFLAGS,;t t 21153 s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t 21154 s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t 21155 s,@MAKEOKFILE@,$MAKEOKFILE,;t t 21156 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t 21157 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t 21202 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 21203 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 21204 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t 21205 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t 21206 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 21158 21207 s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t 21208 s,@ABSPATH_AMPLSOLVER_INSTALLED@,$ABSPATH_AMPLSOLVER_INSTALLED,;t t 21209 s,@ABSPATH_AMPLSOLVER_UNINSTALLED@,$ABSPATH_AMPLSOLVER_UNINSTALLED,;t t 21159 21210 s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t 21160 21211 s,@MSVC_COMPILE_TRUE@,$MSVC_COMPILE_TRUE,;t t … … 21162 21213 s,@LIBEXT@,$LIBEXT,;t t 21163 21214 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 21215 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 21164 21216 s,@LIBOBJS@,$LIBOBJS,;t t 21165 21217 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
ThirdParty/ASL/trunk/configure.ac
r1411 r1548 1 # Copyright (C) 2007 International Business Machines.1 # Copyright (C) 2007, 2009 International Business Machines. 2 2 # All Rights Reserved. 3 3 # This file is distributed under the Common Public License. … … 17 17 18 18 AC_COPYRIGHT([ 19 Copyright 2006 International Business Machines and others.19 Copyright 2006, 2007, 2009 International Business Machines and others. 20 20 All Rights Reserved. 21 21 This file is part of the open source package Coin which is distributed … … 59 59 AC_COIN_INIT_AUTO_TOOLS 60 60 61 # See what we're actually going to do for ASL. This will define ampllib. 62 AC_COIN_HAS_ASL 63 64 MAKEOKFILE=.MakeOk 65 if test $coin_has_asl != no && test "$use_asldir" != BUILD; then 66 skip_further_test=yes 67 rm -f $MAKEOKFILE 68 AC_MSG_NOTICE([The ASL sources don't need to be compiled]) 69 MAKEOKFILE= 70 else 71 touch $MAKEOKFILE 72 fi 73 AC_SUBST(MAKEOKFILE) 74 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") 61 # Check if pkg-config is available (to setup addlibs file) 62 AC_COIN_HAS_PKGCONFIG 75 63 76 64 ############################################################################# … … 78 66 ############################################################################# 79 67 80 if test x$skip_further_test != xyes; then 68 # Determine the name of the ASL library 81 69 82 # Set a substitutable variable with the library name, and determine the 83 # compilation style. 70 # Set a substitutable variable with the library name, and determine the compilation style. 71 AC_SUBST(AMPLSOLVER_A) 72 case "$CC" in 73 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 74 AMPLSOLVER_A=amplsolv.lib 75 msvc_compile=yes 76 ;; 77 *) 78 AMPLSOLVER_A=amplsolver.a 79 msvc_compile=no 80 ;; 81 esac 82 AC_MSG_NOTICE([Configuring ASL to build $AMPLSOLVER_A.]) 84 83 85 AC_SUBST(AMPLSOLVER_A) 86 AMPLSOLVER_A=$ampllib 87 case "$CC" in 88 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 89 msvc_compile=yes ;; 90 *) 91 msvc_compile=no ;; 92 esac 93 AC_MSG_NOTICE([Configuring ASL to build $AMPLSOLVER_A.]) 84 # Set substitutable variables with the absolute path to the library name 85 # translate to windows style if necessary, but use slashes instead of backslashes 86 ABSPATH_AMPLSOLVER_INSTALLED=`${CYGPATH_W} ${libdir}/coin/ThirdParty/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'` 87 curdir=`pwd` 88 ABSPATH_AMPLSOLVER_UNINSTALLED=`${CYGPATH_W} ${curdir}/${AMPLSOLVER_A} | sed -e 's/\\\\/\\//g'` 89 AC_SUBST(ABSPATH_AMPLSOLVER_INSTALLED) 90 AC_SUBST(ABSPATH_AMPLSOLVER_UNINSTALLED) 94 91 95 92 # Determine flags to be passed on the command line to (n)make. The main … … 99 96 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined. 100 97 101 102 103 104 105 106 107 108 109 110 98 if test -z "$ASLMAKEFLAGS" ; then 99 asladdcflags= 100 case $build in 101 *-linux*) 102 case $CC in 103 pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*) 104 asladdcflags="$asladdcflags -DNO_fpu_control";; 105 esac 106 ;; 107 esac 111 108 112 109 # Various feature checks. Force the language to be C while we do this to avoid 113 110 # issues with C++ (re)declarations. 114 115 AC_LANG_PUSH(C) 111 AC_LANG_PUSH(C) 116 112 117 113 # The critical function for NO_RUSAGE is getrusage(). Use a standard test. 118 114 119 120 121 122 123 124 115 AC_MSG_CHECKING([for getrusage]) 116 AC_LINK_IFELSE( 117 [AC_LANG_PROGRAM([[]],[[getrusage()]])], 118 [AC_MSG_RESULT([yes])], 119 [asladdcflags="$asladdcflags -DNO_RUSAGE" 120 AC_MSG_RESULT([no])]) 125 121 126 122 # Check for long long; we need to define NO_LONG_LONG if it's not present. ASL … … 131 127 # system, but it's easy to check. 132 128 133 134 129 AC_CHECK_TYPE([long long],[], 130 [asladdcflags="$asladdcflags -DNO_LONG_LONG"],[]) 135 131 136 132 # Back to whatever language we were in. 137 138 AC_LANG_POP(C) 133 AC_LANG_POP(C) 139 134 140 135 # On BlueGene disable dynamic library loading 141 142 if test x"$enable_bg" = xyes; then 143 asladdcflags="$asladdcflags -DNO_FUNCADD" 144 fi 136 if test x"$enable_bg" = xyes; then 137 asladdcflags="$asladdcflags -DNO_FUNCADD" 138 fi 145 139 146 140 # Groom CFLAGS before we merge it with asladdcflags. 147 141 # Remove -Werror if present, to make sure we are not interrupting compilation 148 142 # of ASL because of warning messages. The cl equivalent is -WX. 149 150 bla= 151 if test x$msvc_compile = xyes ; then 152 warnToErr="-WX" 153 else 154 warnToErr="-Werror" 143 bla= 144 if test x$msvc_compile = xyes ; then 145 warnToErr="-WX" 146 else 147 warnToErr="-Werror" 148 fi 149 for i in $CFLAGS; do 150 if test "$i" != "$warnToErr"; then 151 bla="$bla $i" 155 152 fi 156 for i in $CFLAGS; do 157 if test "$i" != "$warnToErr"; then 158 bla="$bla $i" 159 fi 160 done 161 ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\"" 153 done 154 ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\"" 162 155 163 156 # Somehow, the flags specified here cause ASL to segfault on the AIX 164 157 # compiler, so take them out. 165 166 case $CC in 167 xlc* | */xlc* | mpxlc* | */mpxlc*) 168 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'` 169 ;; 170 pgcc* | */pgcc*) 171 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'` 172 ;; 173 esac 158 case $CC in 159 xlc* | */xlc* | mpxlc* | */mpxlc*) 160 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e sed 's/-O3/-O/g'` 161 ;; 162 pgcc* | */pgcc*) 163 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'` 164 ;; 165 esac 174 166 175 167 # Limit GNU make to one thread. But remember that if we're building with 176 168 # cl, ultimately we're going to use nmake, which knows nothing of this. 177 178 if test x$msvc_compile = xno ; then 179 rm -rf conftest.mak 180 ($am_make -v > conftest.grp) 2>&5 181 if $EGREP GNU conftest.grp >&5 ; then 182 ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS" 183 fi 184 rm -f conftest.grp 169 if test x$msvc_compile = xno ; then 170 rm -rf conftest.mak 171 ($am_make -v > conftest.grp) 2>&5 172 if $EGREP GNU conftest.grp >&5 ; then 173 ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS" 185 174 fi 175 rm -f conftest.grp 186 176 fi 187 177 fi 188 178 # End if-then to construct ASLMAKEFLAGS. Announce the result. 189 179 190 AC_MSG_NOTICE([Command line flags for (n)make \"$ASLMAKEFLAGS\".]) 191 AC_ARG_VAR(ASLMAKEFLAGS, 192 [Compilation flags necessary for compiling the AMPL solver library]) 193 194 fi 180 AC_MSG_NOTICE([Command line flags for (n)make \"$ASLMAKEFLAGS\".]) 181 AC_ARG_VAR(ASLMAKEFLAGS, [Compilation flags necessary for compiling the AMPL solver library]) 195 182 196 183 # Set automake conditional and generate the output files. … … 201 188 AC_CONFIG_FILES([compile_MS_ASL],[chmod a+x compile_MS_ASL]) 202 189 AC_CONFIG_FILES([compile_Unix_ASL],[chmod a+x compile_Unix_ASL]) 190 AC_CONFIG_FILES([coinasl.pc coinasl-uninstalled.pc]) 203 191 204 192 AC_COIN_FINALIZE
Note: See TracChangeset
for help on using the changeset viewer.